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 libhmac 1.00. |
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 | |
dd184caf | 134 | # CDPATH. |
b0322a85 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
d9898ee8 | 136 | |
b0322a85 CE |
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;} | |
dd184caf | 162 | if test "x$CONFIG_SHELL" = x; then |
b0322a85 CE |
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 | |
dd184caf | 170 | else |
b0322a85 CE |
171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
d9898ee8 | 177 | fi |
b0322a85 CE |
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; } | |
d9898ee8 | 184 | |
dd184caf | 185 | exitcode=0 |
b0322a85 CE |
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 | |
dd184caf | 212 | else |
b0322a85 | 213 | as_have_required=no |
dd184caf | 214 | fi |
b0322a85 | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
dd184caf | 216 | |
dd184caf | 217 | else |
b0322a85 CE |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
d9898ee8 | 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=. | |
b0322a85 CE |
224 | as_found=: |
225 | case $as_dir in #( | |
d9898ee8 | 226 | /*) |
dd184caf | 227 | for as_base in sh bash ksh sh5; do |
b0322a85 CE |
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 | |
dd184caf | 237 | done;; |
238 | esac | |
b0322a85 | 239 | as_found=false |
dd184caf | 240 | done |
b0322a85 CE |
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; } | |
dd184caf | 245 | IFS=$as_save_IFS |
246 | ||
247 | ||
b0322a85 CE |
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= ;; | |
dd184caf | 262 | esac |
b0322a85 CE |
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 | |
dd184caf | 284 | fi |
dd184caf | 285 | fi |
dd184caf | 286 | fi |
b0322a85 CE |
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 | |
dd184caf | 292 | |
b0322a85 CE |
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 | |
dd184caf | 304 | |
b0322a85 CE |
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 | |
dd184caf | 312 | |
b0322a85 CE |
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 | { | |
dd184caf | 328 | |
b0322a85 CE |
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" | |
dd184caf | 367 | |
dd184caf | 368 | |
b0322a85 | 369 | } # as_fn_mkdir_p |
dd184caf | 370 | |
b0322a85 CE |
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 | |
dd184caf | 412 | |
413 | ||
b0322a85 CE |
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 | |
dd184caf | 429 | |
b0322a85 CE |
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
dd184caf | 433 | else |
b0322a85 | 434 | as_expr=false |
dd184caf | 435 | fi |
436 | ||
b0322a85 CE |
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 | as_basename=basename | |
dd184caf | 439 | else |
b0322a85 | 440 | as_basename=false |
dd184caf | 441 | fi |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
dd184caf | 445 | else |
b0322a85 | 446 | as_dirname=false |
dd184caf | 447 | fi |
448 | ||
b0322a85 CE |
449 | as_me=`$as_basename -- "$0" || |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
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'` | |
dd184caf | 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 | |
dd184caf | 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. :-) | |
dd184caf | 481 | sed -n ' |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
d9898ee8 | 485 | sed ' |
dd184caf | 486 | s/[$]LINENO.*/&-/ |
487 | t lineno | |
488 | b | |
489 | :lineno | |
d9898ee8 | 490 | N |
dd184caf | 491 | :loop |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 493 | t loop |
dd184caf | 494 | s/-\n.*// |
d9898ee8 | 495 | ' >$as_me.lineno && |
dd184caf | 496 | chmod +x "$as_me.lineno" || |
b0322a85 | 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 | |
d9898ee8 | 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 | |
dd184caf | 505 | # original and so on. Autoconf is especially sensitive to this). |
506 | . "./$as_me.lineno" | |
d9898ee8 | 507 | # Exit status is that of the last command. |
508 | exit | |
509 | } | |
510 | ||
dd184caf | 511 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 512 | case `echo -n x` in #((((( |
dd184caf | 513 | -n*) |
b0322a85 | 514 | case `echo 'xy\c'` in |
dd184caf | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
516 | xy) ECHO_C='\c';; |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
dd184caf | 519 | esac;; |
520 | *) | |
521 | ECHO_N='-n';; | |
d9898ee8 | 522 | esac |
d9898ee8 | 523 | |
524 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 525 | if test -d conf$$.dir; then |
526 | rm -f conf$$.dir/conf$$.file | |
527 | else | |
528 | rm -f conf$$.dir | |
8d138742 CE |
529 | mkdir conf$$.dir 2>/dev/null |
530 | fi | |
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. | |
b0322a85 | 537 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 539 | as_ln_s='cp -pR' |
8d138742 CE |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
541 | as_ln_s=ln | |
542 | else | |
b0322a85 | 543 | as_ln_s='cp -pR' |
8d138742 | 544 | fi |
d9898ee8 | 545 | else |
b0322a85 | 546 | as_ln_s='cp -pR' |
d9898ee8 | 547 | fi |
dd184caf | 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 550 | |
551 | if mkdir -p . 2>/dev/null; then | |
b0322a85 | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
d9898ee8 | 553 | else |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
556 | fi | |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 560 | |
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'" | |
563 | ||
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'" | |
566 | ||
d9898ee8 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
568 | ||
d9898ee8 | 569 | |
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
d9898ee8 | 573 | # Name of the host. |
b0322a85 | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 575 | # so uname gets run too. |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
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='libhmac' | |
592 | PACKAGE_TARNAME='libhmac' | |
593 | PACKAGE_VERSION='1.00' | |
594 | PACKAGE_STRING='libhmac 1.00' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="hmac.h" | |
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 | |
639 | TESTPROGS | |
640 | hashlibs | |
dd184caf | 641 | CPP |
d50284c4 | 642 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
643 | OTOOL64 |
644 | OTOOL | |
645 | LIPO | |
646 | NMEDIT | |
647 | DSYMUTIL | |
b0322a85 | 648 | MANIFEST_TOOL |
8d138742 | 649 | RANLIB |
b0322a85 | 650 | ac_ct_AR |
8d138742 | 651 | AR |
b0322a85 | 652 | DLLTOOL |
8d138742 CE |
653 | OBJDUMP |
654 | NM | |
655 | ac_ct_DUMPBIN | |
656 | DUMPBIN | |
657 | LD | |
658 | FGREP | |
659 | EGREP | |
660 | GREP | |
661 | SED | |
662 | host_os | |
663 | host_vendor | |
664 | host_cpu | |
665 | host | |
666 | build_os | |
667 | build_vendor | |
668 | build_cpu | |
669 | build | |
dd184caf | 670 | LIBTOOL |
8d138742 CE |
671 | am__fastdepCC_FALSE |
672 | am__fastdepCC_TRUE | |
673 | CCDEPMODE | |
b0322a85 | 674 | am__nodep |
8d138742 CE |
675 | AMDEPBACKSLASH |
676 | AMDEP_FALSE | |
677 | AMDEP_TRUE | |
678 | am__quote | |
679 | am__include | |
680 | DEPDIR | |
681 | OBJEXT | |
682 | EXEEXT | |
683 | ac_ct_CC | |
684 | CPPFLAGS | |
685 | LDFLAGS | |
686 | CFLAGS | |
687 | CC | |
688 | LN_S | |
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 | ' | |
dd184caf | 768 | ac_precious_vars='build_alias |
769 | host_alias | |
770 | target_alias | |
771 | CC | |
772 | CFLAGS | |
773 | LDFLAGS | |
774 | LIBS | |
775 | CPPFLAGS | |
d50284c4 | 776 | LT_SYS_LIBRARY_PATH |
8d138742 | 777 | CPP' |
dd184caf | 778 | |
d9898ee8 | 779 | |
780 | # Initialize some variables set by options. | |
781 | ac_init_help= | |
782 | ac_init_version=false | |
8d138742 CE |
783 | ac_unrecognized_opts= |
784 | ac_unrecognized_sep= | |
d9898ee8 | 785 | # The variables have the same names as the options, with |
786 | # dashes changed to underlines. | |
787 | cache_file=/dev/null | |
788 | exec_prefix=NONE | |
789 | no_create= | |
790 | no_recursion= | |
791 | prefix=NONE | |
792 | program_prefix=NONE | |
793 | program_suffix=NONE | |
794 | program_transform_name=s,x,x, | |
795 | silent= | |
796 | site= | |
797 | srcdir= | |
798 | verbose= | |
799 | x_includes=NONE | |
800 | x_libraries=NONE | |
801 | ||
802 | # Installation directory options. | |
803 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
804 | # and all the variables that are supposed to be based on exec_prefix | |
805 | # by default will actually change. | |
806 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 807 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 808 | bindir='${exec_prefix}/bin' |
809 | sbindir='${exec_prefix}/sbin' | |
810 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 811 | datarootdir='${prefix}/share' |
812 | datadir='${datarootdir}' | |
d9898ee8 | 813 | sysconfdir='${prefix}/etc' |
814 | sharedstatedir='${prefix}/com' | |
815 | localstatedir='${prefix}/var' | |
d9898ee8 | 816 | includedir='${prefix}/include' |
817 | oldincludedir='/usr/include' | |
dd184caf | 818 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
819 | infodir='${datarootdir}/info' | |
820 | htmldir='${docdir}' | |
821 | dvidir='${docdir}' | |
822 | pdfdir='${docdir}' | |
823 | psdir='${docdir}' | |
824 | libdir='${exec_prefix}/lib' | |
825 | localedir='${datarootdir}/locale' | |
826 | mandir='${datarootdir}/man' | |
d9898ee8 | 827 | |
828 | ac_prev= | |
dd184caf | 829 | ac_dashdash= |
d9898ee8 | 830 | for ac_option |
831 | do | |
832 | # If the previous option needs an argument, assign it. | |
833 | if test -n "$ac_prev"; then | |
dd184caf | 834 | eval $ac_prev=\$ac_option |
d9898ee8 | 835 | ac_prev= |
836 | continue | |
837 | fi | |
838 | ||
dd184caf | 839 | case $ac_option in |
b0322a85 CE |
840 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
841 | *=) ac_optarg= ;; | |
842 | *) ac_optarg=yes ;; | |
dd184caf | 843 | esac |
d9898ee8 | 844 | |
845 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
846 | ||
dd184caf | 847 | case $ac_dashdash$ac_option in |
848 | --) | |
849 | ac_dashdash=yes ;; | |
d9898ee8 | 850 | |
851 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
852 | ac_prev=bindir ;; | |
853 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
854 | bindir=$ac_optarg ;; | |
855 | ||
856 | -build | --build | --buil | --bui | --bu) | |
857 | ac_prev=build_alias ;; | |
858 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
859 | build_alias=$ac_optarg ;; | |
860 | ||
861 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
862 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
863 | ac_prev=cache_file ;; | |
864 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
865 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
866 | cache_file=$ac_optarg ;; | |
867 | ||
868 | --config-cache | -C) | |
869 | cache_file=config.cache ;; | |
870 | ||
dd184caf | 871 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 872 | ac_prev=datadir ;; |
dd184caf | 873 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 874 | datadir=$ac_optarg ;; |
875 | ||
dd184caf | 876 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
877 | | --dataroo | --dataro | --datar) | |
878 | ac_prev=datarootdir ;; | |
879 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
880 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
881 | datarootdir=$ac_optarg ;; | |
882 | ||
d9898ee8 | 883 | -disable-* | --disable-*) |
8d138742 | 884 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 885 | # Reject names that are not valid shell variable names. |
8d138742 | 886 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 887 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
888 | ac_useropt_orig=$ac_useropt |
889 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
890 | case $ac_user_opts in | |
891 | *" | |
892 | "enable_$ac_useropt" | |
893 | "*) ;; | |
894 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
895 | ac_unrecognized_sep=', ';; | |
896 | esac | |
897 | eval enable_$ac_useropt=no ;; | |
dd184caf | 898 | |
899 | -docdir | --docdir | --docdi | --doc | --do) | |
900 | ac_prev=docdir ;; | |
901 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
902 | docdir=$ac_optarg ;; | |
903 | ||
904 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
905 | ac_prev=dvidir ;; | |
906 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
907 | dvidir=$ac_optarg ;; | |
d9898ee8 | 908 | |
909 | -enable-* | --enable-*) | |
8d138742 | 910 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 911 | # Reject names that are not valid shell variable names. |
8d138742 | 912 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 913 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
914 | ac_useropt_orig=$ac_useropt |
915 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
916 | case $ac_user_opts in | |
917 | *" | |
918 | "enable_$ac_useropt" | |
919 | "*) ;; | |
920 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
921 | ac_unrecognized_sep=', ';; | |
922 | esac | |
923 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 924 | |
925 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
926 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
927 | | --exec | --exe | --ex) | |
928 | ac_prev=exec_prefix ;; | |
929 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
930 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
931 | | --exec=* | --exe=* | --ex=*) | |
932 | exec_prefix=$ac_optarg ;; | |
933 | ||
934 | -gas | --gas | --ga | --g) | |
935 | # Obsolete; use --with-gas. | |
936 | with_gas=yes ;; | |
937 | ||
938 | -help | --help | --hel | --he | -h) | |
939 | ac_init_help=long ;; | |
940 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
941 | ac_init_help=recursive ;; | |
942 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
943 | ac_init_help=short ;; | |
944 | ||
945 | -host | --host | --hos | --ho) | |
946 | ac_prev=host_alias ;; | |
947 | -host=* | --host=* | --hos=* | --ho=*) | |
948 | host_alias=$ac_optarg ;; | |
949 | ||
dd184caf | 950 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
951 | ac_prev=htmldir ;; | |
952 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
953 | | --ht=*) | |
954 | htmldir=$ac_optarg ;; | |
955 | ||
d9898ee8 | 956 | -includedir | --includedir | --includedi | --included | --include \ |
957 | | --includ | --inclu | --incl | --inc) | |
958 | ac_prev=includedir ;; | |
959 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
960 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
961 | includedir=$ac_optarg ;; | |
962 | ||
963 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
964 | ac_prev=infodir ;; | |
965 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
966 | infodir=$ac_optarg ;; | |
967 | ||
968 | -libdir | --libdir | --libdi | --libd) | |
969 | ac_prev=libdir ;; | |
970 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
971 | libdir=$ac_optarg ;; | |
972 | ||
973 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
974 | | --libexe | --libex | --libe) | |
975 | ac_prev=libexecdir ;; | |
976 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
977 | | --libexe=* | --libex=* | --libe=*) | |
978 | libexecdir=$ac_optarg ;; | |
979 | ||
dd184caf | 980 | -localedir | --localedir | --localedi | --localed | --locale) |
981 | ac_prev=localedir ;; | |
982 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
983 | localedir=$ac_optarg ;; | |
984 | ||
d9898ee8 | 985 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 986 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 987 | ac_prev=localstatedir ;; |
988 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 989 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 990 | localstatedir=$ac_optarg ;; |
991 | ||
992 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
993 | ac_prev=mandir ;; | |
994 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
995 | mandir=$ac_optarg ;; | |
996 | ||
997 | -nfp | --nfp | --nf) | |
998 | # Obsolete; use --without-fp. | |
999 | with_fp=no ;; | |
1000 | ||
1001 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1002 | | --no-cr | --no-c | -n) | |
1003 | no_create=yes ;; | |
1004 | ||
1005 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1006 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1007 | no_recursion=yes ;; | |
1008 | ||
1009 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1010 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1011 | | --oldin | --oldi | --old | --ol | --o) | |
1012 | ac_prev=oldincludedir ;; | |
1013 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1014 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1015 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1016 | oldincludedir=$ac_optarg ;; | |
1017 | ||
1018 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1019 | ac_prev=prefix ;; | |
1020 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1021 | prefix=$ac_optarg ;; | |
1022 | ||
1023 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1024 | | --program-pre | --program-pr | --program-p) | |
1025 | ac_prev=program_prefix ;; | |
1026 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1027 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1028 | program_prefix=$ac_optarg ;; | |
1029 | ||
1030 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1031 | | --program-suf | --program-su | --program-s) | |
1032 | ac_prev=program_suffix ;; | |
1033 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1034 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1035 | program_suffix=$ac_optarg ;; | |
1036 | ||
1037 | -program-transform-name | --program-transform-name \ | |
1038 | | --program-transform-nam | --program-transform-na \ | |
1039 | | --program-transform-n | --program-transform- \ | |
1040 | | --program-transform | --program-transfor \ | |
1041 | | --program-transfo | --program-transf \ | |
1042 | | --program-trans | --program-tran \ | |
1043 | | --progr-tra | --program-tr | --program-t) | |
1044 | ac_prev=program_transform_name ;; | |
1045 | -program-transform-name=* | --program-transform-name=* \ | |
1046 | | --program-transform-nam=* | --program-transform-na=* \ | |
1047 | | --program-transform-n=* | --program-transform-=* \ | |
1048 | | --program-transform=* | --program-transfor=* \ | |
1049 | | --program-transfo=* | --program-transf=* \ | |
1050 | | --program-trans=* | --program-tran=* \ | |
1051 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1052 | program_transform_name=$ac_optarg ;; | |
1053 | ||
dd184caf | 1054 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1055 | ac_prev=pdfdir ;; | |
1056 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1057 | pdfdir=$ac_optarg ;; | |
1058 | ||
1059 | -psdir | --psdir | --psdi | --psd | --ps) | |
1060 | ac_prev=psdir ;; | |
1061 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1062 | psdir=$ac_optarg ;; | |
1063 | ||
d9898ee8 | 1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1065 | | -silent | --silent | --silen | --sile | --sil) | |
1066 | silent=yes ;; | |
1067 | ||
1068 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1069 | ac_prev=sbindir ;; | |
1070 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1071 | | --sbi=* | --sb=*) | |
1072 | sbindir=$ac_optarg ;; | |
1073 | ||
1074 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1075 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1076 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1077 | | --sha | --sh) | |
1078 | ac_prev=sharedstatedir ;; | |
1079 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1080 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1081 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1082 | | --sha=* | --sh=*) | |
1083 | sharedstatedir=$ac_optarg ;; | |
1084 | ||
1085 | -site | --site | --sit) | |
1086 | ac_prev=site ;; | |
1087 | -site=* | --site=* | --sit=*) | |
1088 | site=$ac_optarg ;; | |
1089 | ||
1090 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1091 | ac_prev=srcdir ;; | |
1092 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1093 | srcdir=$ac_optarg ;; | |
1094 | ||
1095 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1096 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1097 | ac_prev=sysconfdir ;; | |
1098 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1099 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1100 | sysconfdir=$ac_optarg ;; | |
1101 | ||
1102 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1103 | ac_prev=target_alias ;; | |
1104 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1105 | target_alias=$ac_optarg ;; | |
1106 | ||
1107 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1108 | verbose=yes ;; | |
1109 | ||
1110 | -version | --version | --versio | --versi | --vers | -V) | |
1111 | ac_init_version=: ;; | |
1112 | ||
1113 | -with-* | --with-*) | |
8d138742 | 1114 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1115 | # Reject names that are not valid shell variable names. |
8d138742 | 1116 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1117 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1118 | ac_useropt_orig=$ac_useropt |
1119 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1120 | case $ac_user_opts in | |
1121 | *" | |
1122 | "with_$ac_useropt" | |
1123 | "*) ;; | |
1124 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1125 | ac_unrecognized_sep=', ';; | |
1126 | esac | |
1127 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1128 | |
1129 | -without-* | --without-*) | |
8d138742 | 1130 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1131 | # Reject names that are not valid shell variable names. |
8d138742 | 1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1133 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1134 | ac_useropt_orig=$ac_useropt |
1135 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1136 | case $ac_user_opts in | |
1137 | *" | |
1138 | "with_$ac_useropt" | |
1139 | "*) ;; | |
1140 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1141 | ac_unrecognized_sep=', ';; | |
1142 | esac | |
1143 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1144 | |
1145 | --x) | |
1146 | # Obsolete; use --with-x. | |
1147 | with_x=yes ;; | |
1148 | ||
1149 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1150 | | --x-incl | --x-inc | --x-in | --x-i) | |
1151 | ac_prev=x_includes ;; | |
1152 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1153 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1154 | x_includes=$ac_optarg ;; | |
1155 | ||
1156 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1157 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1158 | ac_prev=x_libraries ;; | |
1159 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1160 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1161 | x_libraries=$ac_optarg ;; | |
1162 | ||
b0322a85 CE |
1163 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1164 | Try \`$0 --help' for more information" | |
d9898ee8 | 1165 | ;; |
1166 | ||
1167 | *=*) | |
1168 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1169 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1170 | case $ac_envvar in #( |
1171 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1172 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1173 | esac | |
dd184caf | 1174 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1175 | export $ac_envvar ;; |
1176 | ||
1177 | *) | |
1178 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1179 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1180 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1181 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1182 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1183 | ;; |
1184 | ||
1185 | esac | |
1186 | done | |
1187 | ||
1188 | if test -n "$ac_prev"; then | |
1189 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1190 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1191 | fi |
1192 | ||
8d138742 CE |
1193 | if test -n "$ac_unrecognized_opts"; then |
1194 | case $enable_option_checking in | |
1195 | no) ;; | |
b0322a85 | 1196 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1197 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1198 | esac | |
1199 | fi | |
1200 | ||
1201 | # Check all directory arguments for consistency. | |
dd184caf | 1202 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1203 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1204 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1205 | libdir localedir mandir | |
d9898ee8 | 1206 | do |
dd184caf | 1207 | eval ac_val=\$$ac_var |
8d138742 CE |
1208 | # Remove trailing slashes. |
1209 | case $ac_val in | |
1210 | */ ) | |
1211 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1212 | eval $ac_var=\$ac_val;; | |
1213 | esac | |
1214 | # Be sure to have absolute directory names. | |
d9898ee8 | 1215 | case $ac_val in |
dd184caf | 1216 | [\\/$]* | ?:[\\/]* ) continue;; |
1217 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1218 | esac |
b0322a85 | 1219 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1220 | done |
1221 | ||
1222 | # There might be people who depend on the old broken behavior: `$host' | |
1223 | # used to hold the argument of --host etc. | |
1224 | # FIXME: To remove some day. | |
1225 | build=$build_alias | |
1226 | host=$host_alias | |
1227 | target=$target_alias | |
1228 | ||
1229 | # FIXME: To remove some day. | |
1230 | if test "x$host_alias" != x; then | |
1231 | if test "x$build_alias" = x; then | |
1232 | cross_compiling=maybe | |
d9898ee8 | 1233 | elif test "x$build_alias" != "x$host_alias"; then |
1234 | cross_compiling=yes | |
1235 | fi | |
1236 | fi | |
1237 | ||
1238 | ac_tool_prefix= | |
1239 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1240 | ||
1241 | test "$silent" = yes && exec 6>/dev/null | |
1242 | ||
1243 | ||
dd184caf | 1244 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1245 | ac_ls_di=`ls -di .` && | |
1246 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1247 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1249 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1250 | |
1251 | ||
d9898ee8 | 1252 | # Find the source files, if location was not specified. |
1253 | if test -z "$srcdir"; then | |
1254 | ac_srcdir_defaulted=yes | |
dd184caf | 1255 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1256 | ac_confdir=`$as_dirname -- "$as_myself" || |
1257 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1258 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1259 | X"$as_myself" : 'X\(//\)$' \| \ | |
1260 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1261 | $as_echo X"$as_myself" | | |
dd184caf | 1262 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1263 | s//\1/ | |
1264 | q | |
1265 | } | |
1266 | /^X\(\/\/\)[^/].*/{ | |
1267 | s//\1/ | |
1268 | q | |
1269 | } | |
1270 | /^X\(\/\/\)$/{ | |
1271 | s//\1/ | |
1272 | q | |
1273 | } | |
1274 | /^X\(\/\).*/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | s/.*/./; q'` | |
d9898ee8 | 1279 | srcdir=$ac_confdir |
dd184caf | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1281 | srcdir=.. |
1282 | fi | |
1283 | else | |
1284 | ac_srcdir_defaulted=no | |
1285 | fi | |
dd184caf | 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
1287 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1288 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1289 | fi |
dd184caf | 1290 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1291 | ac_abs_confdir=`( | |
b0322a85 | 1292 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1293 | pwd)` |
1294 | # When building in place, set srcdir=. | |
1295 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1296 | srcdir=. | |
1297 | fi | |
1298 | # Remove unnecessary trailing slashes from srcdir. | |
1299 | # Double slashes in file names in object file debugging info | |
1300 | # mess up M-x gdb in Emacs. | |
1301 | case $srcdir in | |
1302 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1303 | esac | |
1304 | for ac_var in $ac_precious_vars; do | |
1305 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1306 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1307 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1308 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1309 | done | |
d9898ee8 | 1310 | |
1311 | # | |
1312 | # Report the --help message. | |
1313 | # | |
1314 | if test "$ac_init_help" = "long"; then | |
1315 | # Omit some internal or obsolete options to make the list less imposing. | |
1316 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1317 | cat <<_ACEOF | |
1318 | \`configure' configures libhmac 1.00 to adapt to many kinds of systems. | |
1319 | ||
1320 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1321 | ||
1322 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1323 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1324 | ||
1325 | Defaults for the options are specified in brackets. | |
1326 | ||
1327 | Configuration: | |
1328 | -h, --help display this help and exit | |
1329 | --help=short display options specific to this package | |
1330 | --help=recursive display the short help of all the included packages | |
1331 | -V, --version display version information and exit | |
b0322a85 | 1332 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1333 | --cache-file=FILE cache test results in FILE [disabled] |
1334 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1335 | -n, --no-create do not create output files | |
1336 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1337 | ||
d9898ee8 | 1338 | Installation directories: |
1339 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1340 | [$ac_default_prefix] |
d9898ee8 | 1341 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1342 | [PREFIX] |
d9898ee8 | 1343 | |
1344 | By default, \`make install' will install all the files in | |
1345 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1346 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1347 | for instance \`--prefix=\$HOME'. | |
1348 | ||
1349 | For better control, use the options below. | |
1350 | ||
1351 | Fine tuning of the installation directories: | |
8d138742 CE |
1352 | --bindir=DIR user executables [EPREFIX/bin] |
1353 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1354 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1355 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1356 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1357 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1358 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1359 | --includedir=DIR C header files [PREFIX/include] | |
1360 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1361 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1362 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1363 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1364 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1365 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1366 | --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac] | |
1367 | --htmldir=DIR html documentation [DOCDIR] | |
1368 | --dvidir=DIR dvi documentation [DOCDIR] | |
1369 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1370 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1371 | _ACEOF |
1372 | ||
1373 | cat <<\_ACEOF | |
1374 | ||
1375 | Program names: | |
1376 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1377 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1378 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1379 | ||
1380 | System types: | |
1381 | --build=BUILD configure for building on BUILD [guessed] | |
1382 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1383 | _ACEOF | |
1384 | fi | |
1385 | ||
1386 | if test -n "$ac_init_help"; then | |
1387 | case $ac_init_help in | |
1388 | short | recursive ) echo "Configuration of libhmac 1.00:";; | |
1389 | esac | |
1390 | cat <<\_ACEOF | |
1391 | ||
1392 | Optional Features: | |
8d138742 | 1393 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1396 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1397 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1398 | --enable-dependency-tracking | |
1399 | do not reject slow dependency extractors | |
1400 | --disable-dependency-tracking | |
1401 | speeds up one-time build | |
dd184caf | 1402 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1403 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1404 | --enable-fast-install[=PKGS] |
1405 | optimize for fast installation [default=yes] | |
1406 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1407 | ||
1408 | Optional Packages: | |
1409 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1410 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1411 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1412 | both] |
d50284c4 CE |
1413 | --with-aix-soname=aix|svr4|both |
1414 | shared library versioning (aka "SONAME") variant to | |
1415 | provide on AIX, [default=aix]. | |
8d138742 | 1416 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1417 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1418 | compiler's sysroot if not specified). | |
d9898ee8 | 1419 | |
1420 | Some influential environment variables: | |
1421 | CC C compiler command | |
1422 | CFLAGS C compiler flags | |
1423 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1424 | nonstandard directory <lib dir> | |
dd184caf | 1425 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1426 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1427 | you have headers in a nonstandard directory <include dir> |
d50284c4 CE |
1428 | LT_SYS_LIBRARY_PATH |
1429 | User-defined run-time library search path. | |
d9898ee8 | 1430 | CPP C preprocessor |
d9898ee8 | 1431 | |
1432 | Use these variables to override the choices made by `configure' or to help | |
1433 | it to find libraries and programs with nonstandard names/locations. | |
1434 | ||
1435 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1436 | _ACEOF | |
dd184caf | 1437 | ac_status=$? |
d9898ee8 | 1438 | fi |
1439 | ||
b0322a85 CE |
1440 | if test "$ac_init_help" = "recursive"; then |
1441 | # If there are subdirs, report their specific --help. | |
1442 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1443 | test -d "$ac_dir" || | |
1444 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1445 | continue | |
1446 | ac_builddir=. | |
1447 | ||
1448 | case "$ac_dir" in | |
1449 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1450 | *) | |
1451 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1452 | # A ".." for each directory in $ac_dir_suffix. | |
1453 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1454 | case $ac_top_builddir_sub in | |
1455 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1456 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1457 | esac ;; | |
1458 | esac | |
1459 | ac_abs_top_builddir=$ac_pwd | |
1460 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1461 | # for backward compatibility: | |
1462 | ac_top_builddir=$ac_top_build_prefix | |
1463 | ||
1464 | case $srcdir in | |
1465 | .) # We are building in place. | |
1466 | ac_srcdir=. | |
1467 | ac_top_srcdir=$ac_top_builddir_sub | |
1468 | ac_abs_top_srcdir=$ac_pwd ;; | |
1469 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1470 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1471 | ac_top_srcdir=$srcdir | |
1472 | ac_abs_top_srcdir=$srcdir ;; | |
1473 | *) # Relative name. | |
1474 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1475 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1476 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1477 | esac | |
1478 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1479 | ||
1480 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1481 | # Check for guested configure. | |
1482 | if test -f "$ac_srcdir/configure.gnu"; then | |
1483 | echo && | |
1484 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1485 | elif test -f "$ac_srcdir/configure"; then | |
1486 | echo && | |
1487 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1488 | else | |
1489 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1490 | fi || ac_status=$? | |
1491 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1492 | done | |
1493 | fi | |
1494 | ||
1495 | test -n "$ac_init_help" && exit $ac_status | |
1496 | if $ac_init_version; then | |
1497 | cat <<\_ACEOF | |
1498 | libhmac configure 1.00 | |
1499 | generated by GNU Autoconf 2.69 | |
1500 | ||
1501 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1502 | This configure script is free software; the Free Software Foundation | |
1503 | gives unlimited permission to copy, distribute and modify it. | |
1504 | _ACEOF | |
1505 | exit | |
1506 | fi | |
1507 | ||
1508 | ## ------------------------ ## | |
1509 | ## Autoconf initialization. ## | |
1510 | ## ------------------------ ## | |
1511 | ||
1512 | # ac_fn_c_try_compile LINENO | |
1513 | # -------------------------- | |
1514 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1515 | ac_fn_c_try_compile () | |
1516 | { | |
1517 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1518 | rm -f conftest.$ac_objext | |
1519 | if { { ac_try="$ac_compile" | |
1520 | case "(($ac_try" in | |
1521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1522 | *) ac_try_echo=$ac_try;; | |
1523 | esac | |
1524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1525 | $as_echo "$ac_try_echo"; } >&5 | |
1526 | (eval "$ac_compile") 2>conftest.err | |
1527 | ac_status=$? | |
1528 | if test -s conftest.err; then | |
1529 | grep -v '^ *+' conftest.err >conftest.er1 | |
1530 | cat conftest.er1 >&5 | |
1531 | mv -f conftest.er1 conftest.err | |
1532 | fi | |
1533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1534 | test $ac_status = 0; } && { | |
1535 | test -z "$ac_c_werror_flag" || | |
1536 | test ! -s conftest.err | |
1537 | } && test -s conftest.$ac_objext; then : | |
1538 | ac_retval=0 | |
1539 | else | |
1540 | $as_echo "$as_me: failed program was:" >&5 | |
1541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1542 | ||
1543 | ac_retval=1 | |
1544 | fi | |
1545 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1546 | as_fn_set_status $ac_retval | |
1547 | ||
1548 | } # ac_fn_c_try_compile | |
1549 | ||
1550 | # ac_fn_c_try_link LINENO | |
1551 | # ----------------------- | |
1552 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1553 | ac_fn_c_try_link () | |
1554 | { | |
1555 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1557 | if { { ac_try="$ac_link" | |
1558 | case "(($ac_try" in | |
1559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1560 | *) ac_try_echo=$ac_try;; | |
1561 | esac | |
1562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1563 | $as_echo "$ac_try_echo"; } >&5 | |
1564 | (eval "$ac_link") 2>conftest.err | |
1565 | ac_status=$? | |
1566 | if test -s conftest.err; then | |
1567 | grep -v '^ *+' conftest.err >conftest.er1 | |
1568 | cat conftest.er1 >&5 | |
1569 | mv -f conftest.er1 conftest.err | |
1570 | fi | |
1571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1572 | test $ac_status = 0; } && { | |
1573 | test -z "$ac_c_werror_flag" || | |
1574 | test ! -s conftest.err | |
1575 | } && test -s conftest$ac_exeext && { | |
1576 | test "$cross_compiling" = yes || | |
1577 | test -x conftest$ac_exeext | |
1578 | }; then : | |
1579 | ac_retval=0 | |
1580 | else | |
1581 | $as_echo "$as_me: failed program was:" >&5 | |
1582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1583 | ||
1584 | ac_retval=1 | |
1585 | fi | |
1586 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1587 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1588 | # interfere with the next link command; also delete a directory that is | |
1589 | # left behind by Apple's compiler. We do this before executing the actions. | |
1590 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1591 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1592 | as_fn_set_status $ac_retval | |
1593 | ||
1594 | } # ac_fn_c_try_link | |
1595 | ||
1596 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1597 | # ------------------------------------------------------- | |
1598 | # Tests whether HEADER exists and can be compiled using the include files in | |
1599 | # INCLUDES, setting the cache variable VAR accordingly. | |
1600 | ac_fn_c_check_header_compile () | |
1601 | { | |
1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1604 | $as_echo_n "checking for $2... " >&6; } | |
1605 | if eval \${$3+:} false; then : | |
1606 | $as_echo_n "(cached) " >&6 | |
1607 | else | |
1608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1609 | /* end confdefs.h. */ | |
1610 | $4 | |
1611 | #include <$2> | |
1612 | _ACEOF | |
1613 | if ac_fn_c_try_compile "$LINENO"; then : | |
1614 | eval "$3=yes" | |
1615 | else | |
1616 | eval "$3=no" | |
1617 | fi | |
1618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1619 | fi | |
1620 | eval ac_res=\$$3 | |
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1622 | $as_echo "$ac_res" >&6; } | |
1623 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1624 | ||
1625 | } # ac_fn_c_check_header_compile | |
1626 | ||
1627 | # ac_fn_c_try_cpp LINENO | |
1628 | # ---------------------- | |
1629 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1630 | ac_fn_c_try_cpp () | |
1631 | { | |
1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1633 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1634 | case "(($ac_try" in | |
1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1636 | *) ac_try_echo=$ac_try;; | |
1637 | esac | |
1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1639 | $as_echo "$ac_try_echo"; } >&5 | |
1640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1641 | ac_status=$? | |
1642 | if test -s conftest.err; then | |
1643 | grep -v '^ *+' conftest.err >conftest.er1 | |
1644 | cat conftest.er1 >&5 | |
1645 | mv -f conftest.er1 conftest.err | |
1646 | fi | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1648 | test $ac_status = 0; } > conftest.i && { | |
1649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1650 | test ! -s conftest.err | |
1651 | }; then : | |
1652 | ac_retval=0 | |
1653 | else | |
1654 | $as_echo "$as_me: failed program was:" >&5 | |
1655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1656 | ||
1657 | ac_retval=1 | |
1658 | fi | |
1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1660 | as_fn_set_status $ac_retval | |
1661 | ||
1662 | } # ac_fn_c_try_cpp | |
1663 | ||
1664 | # ac_fn_c_try_run LINENO | |
1665 | # ---------------------- | |
1666 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1667 | # that executables *can* be run. | |
1668 | ac_fn_c_try_run () | |
1669 | { | |
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1671 | if { { ac_try="$ac_link" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_link") 2>&5 | |
1679 | ac_status=$? | |
1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1681 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1682 | { { case "(($ac_try" in | |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
1688 | (eval "$ac_try") 2>&5 | |
1689 | ac_status=$? | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; }; }; then : | |
1692 | ac_retval=0 | |
1693 | else | |
1694 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1695 | $as_echo "$as_me: failed program was:" >&5 | |
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1697 | ||
1698 | ac_retval=$ac_status | |
1699 | fi | |
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1702 | as_fn_set_status $ac_retval | |
1703 | ||
1704 | } # ac_fn_c_try_run | |
d9898ee8 | 1705 | |
b0322a85 CE |
1706 | # ac_fn_c_check_func LINENO FUNC VAR |
1707 | # ---------------------------------- | |
1708 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1709 | ac_fn_c_check_func () | |
1710 | { | |
1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1713 | $as_echo_n "checking for $2... " >&6; } | |
1714 | if eval \${$3+:} false; then : | |
1715 | $as_echo_n "(cached) " >&6 | |
1716 | else | |
1717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1718 | /* end confdefs.h. */ | |
1719 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1721 | #define $2 innocuous_$2 | |
d9898ee8 | 1722 | |
b0322a85 CE |
1723 | /* System header to define __stub macros and hopefully few prototypes, |
1724 | which can conflict with char $2 (); below. | |
1725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1726 | <limits.h> exists even on freestanding compilers. */ | |
dd184caf | 1727 | |
b0322a85 CE |
1728 | #ifdef __STDC__ |
1729 | # include <limits.h> | |
1730 | #else | |
1731 | # include <assert.h> | |
1732 | #endif | |
1733 | ||
1734 | #undef $2 | |
1735 | ||
1736 | /* Override any GCC internal prototype to avoid an error. | |
1737 | Use char because int might match the return type of a GCC | |
1738 | builtin and then its argument prototype would still apply. */ | |
1739 | #ifdef __cplusplus | |
1740 | extern "C" | |
1741 | #endif | |
1742 | char $2 (); | |
1743 | /* The GNU C library defines this for functions which it implements | |
1744 | to always fail with ENOSYS. Some functions are actually named | |
1745 | something starting with __ and the normal name is an alias. */ | |
1746 | #if defined __stub_$2 || defined __stub___$2 | |
1747 | choke me | |
1748 | #endif | |
1749 | ||
1750 | int | |
1751 | main () | |
1752 | { | |
1753 | return $2 (); | |
1754 | ; | |
1755 | return 0; | |
1756 | } | |
1757 | _ACEOF | |
1758 | if ac_fn_c_try_link "$LINENO"; then : | |
1759 | eval "$3=yes" | |
1760 | else | |
1761 | eval "$3=no" | |
1762 | fi | |
1763 | rm -f core conftest.err conftest.$ac_objext \ | |
1764 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 1765 | fi |
b0322a85 CE |
1766 | eval ac_res=\$$3 |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1768 | $as_echo "$ac_res" >&6; } | |
1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1770 | |
b0322a85 | 1771 | } # ac_fn_c_check_func |
d9898ee8 | 1772 | |
b0322a85 CE |
1773 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1774 | # ------------------------------------------- | |
1775 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1776 | # variable VAR accordingly. | |
1777 | ac_fn_c_check_type () | |
1778 | { | |
1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1781 | $as_echo_n "checking for $2... " >&6; } | |
1782 | if eval \${$3+:} false; then : | |
1783 | $as_echo_n "(cached) " >&6 | |
1784 | else | |
1785 | eval "$3=no" | |
1786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1787 | /* end confdefs.h. */ | |
1788 | $4 | |
1789 | int | |
1790 | main () | |
1791 | { | |
1792 | if (sizeof ($2)) | |
1793 | return 0; | |
1794 | ; | |
1795 | return 0; | |
1796 | } | |
d9898ee8 | 1797 | _ACEOF |
b0322a85 CE |
1798 | if ac_fn_c_try_compile "$LINENO"; then : |
1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1800 | /* end confdefs.h. */ | |
1801 | $4 | |
1802 | int | |
1803 | main () | |
1804 | { | |
1805 | if (sizeof (($2))) | |
1806 | return 0; | |
1807 | ; | |
1808 | return 0; | |
1809 | } | |
1810 | _ACEOF | |
1811 | if ac_fn_c_try_compile "$LINENO"; then : | |
1812 | ||
1813 | else | |
1814 | eval "$3=yes" | |
1815 | fi | |
1816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1817 | fi | |
1818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 1819 | fi |
b0322a85 CE |
1820 | eval ac_res=\$$3 |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1822 | $as_echo "$ac_res" >&6; } | |
1823 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1824 | ||
1825 | } # ac_fn_c_check_type | |
dd184caf | 1826 | cat >config.log <<_ACEOF |
d9898ee8 | 1827 | This file contains any messages produced by compilers while |
1828 | running configure, to aid debugging if configure makes a mistake. | |
1829 | ||
1830 | It was created by libhmac $as_me 1.00, which was | |
b0322a85 | 1831 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1832 | |
1833 | $ $0 $@ | |
1834 | ||
1835 | _ACEOF | |
dd184caf | 1836 | exec 5>>config.log |
d9898ee8 | 1837 | { |
1838 | cat <<_ASUNAME | |
1839 | ## --------- ## | |
1840 | ## Platform. ## | |
1841 | ## --------- ## | |
1842 | ||
1843 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1844 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1845 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1846 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1847 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1848 | ||
1849 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1850 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1851 | ||
1852 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1853 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1854 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1855 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1856 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1857 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1858 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1859 | ||
1860 | _ASUNAME | |
1861 | ||
1862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1863 | for as_dir in $PATH | |
1864 | do | |
1865 | IFS=$as_save_IFS | |
1866 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1867 | $as_echo "PATH: $as_dir" |
1868 | done | |
dd184caf | 1869 | IFS=$as_save_IFS |
d9898ee8 | 1870 | |
1871 | } >&5 | |
1872 | ||
1873 | cat >&5 <<_ACEOF | |
1874 | ||
1875 | ||
1876 | ## ----------- ## | |
1877 | ## Core tests. ## | |
1878 | ## ----------- ## | |
1879 | ||
1880 | _ACEOF | |
1881 | ||
1882 | ||
1883 | # Keep a trace of the command line. | |
1884 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1885 | # Strip out --silent because we don't want to record it for future runs. | |
1886 | # Also quote any args containing shell meta-characters. | |
1887 | # Make two passes to allow for proper duplicate-argument suppression. | |
1888 | ac_configure_args= | |
1889 | ac_configure_args0= | |
1890 | ac_configure_args1= | |
d9898ee8 | 1891 | ac_must_keep_next=false |
1892 | for ac_pass in 1 2 | |
1893 | do | |
1894 | for ac_arg | |
1895 | do | |
1896 | case $ac_arg in | |
1897 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1898 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1899 | | -silent | --silent | --silen | --sile | --sil) | |
1900 | continue ;; | |
dd184caf | 1901 | *\'*) |
8d138742 | 1902 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1903 | esac |
1904 | case $ac_pass in | |
b0322a85 | 1905 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 1906 | 2) |
b0322a85 | 1907 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 1908 | if test $ac_must_keep_next = true; then |
1909 | ac_must_keep_next=false # Got value, back to normal. | |
1910 | else | |
1911 | case $ac_arg in | |
1912 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1913 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1914 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1915 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1916 | case "$ac_configure_args0 " in | |
1917 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1918 | esac | |
1919 | ;; | |
1920 | -* ) ac_must_keep_next=true ;; | |
1921 | esac | |
1922 | fi | |
b0322a85 | 1923 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 1924 | ;; |
1925 | esac | |
1926 | done | |
1927 | done | |
b0322a85 CE |
1928 | { ac_configure_args0=; unset ac_configure_args0;} |
1929 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 1930 | |
1931 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1932 | # config.log. We remove comments because anyway the quotes in there | |
1933 | # would cause problems or look ugly. | |
dd184caf | 1934 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1935 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1936 | trap 'exit_status=$? |
1937 | # Save into config.log some information that might help in debugging. | |
1938 | { | |
1939 | echo | |
1940 | ||
b0322a85 | 1941 | $as_echo "## ---------------- ## |
d9898ee8 | 1942 | ## Cache variables. ## |
b0322a85 | 1943 | ## ---------------- ##" |
d9898ee8 | 1944 | echo |
1945 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1946 | ( |
1947 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1948 | eval ac_val=\$$ac_var | |
1949 | case $ac_val in #( | |
1950 | *${as_nl}*) | |
1951 | case $ac_var in #( | |
b0322a85 | 1952 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 1953 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 1954 | esac |
1955 | case $ac_var in #( | |
1956 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1957 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 1958 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 1959 | esac ;; |
1960 | esac | |
1961 | done | |
d9898ee8 | 1962 | (set) 2>&1 | |
dd184caf | 1963 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1964 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1965 | sed -n \ |
dd184caf | 1966 | "s/'\''/'\''\\\\'\'''\''/g; |
1967 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1968 | ;; #( | |
d9898ee8 | 1969 | *) |
dd184caf | 1970 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1971 | ;; |
dd184caf | 1972 | esac | |
1973 | sort | |
1974 | ) | |
d9898ee8 | 1975 | echo |
1976 | ||
b0322a85 | 1977 | $as_echo "## ----------------- ## |
d9898ee8 | 1978 | ## Output variables. ## |
b0322a85 | 1979 | ## ----------------- ##" |
d9898ee8 | 1980 | echo |
1981 | for ac_var in $ac_subst_vars | |
1982 | do | |
dd184caf | 1983 | eval ac_val=\$$ac_var |
1984 | case $ac_val in | |
8d138742 | 1985 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1986 | esac |
8d138742 | 1987 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1988 | done | sort |
1989 | echo | |
1990 | ||
1991 | if test -n "$ac_subst_files"; then | |
b0322a85 | 1992 | $as_echo "## ------------------- ## |
dd184caf | 1993 | ## File substitutions. ## |
b0322a85 | 1994 | ## ------------------- ##" |
d9898ee8 | 1995 | echo |
1996 | for ac_var in $ac_subst_files | |
1997 | do | |
dd184caf | 1998 | eval ac_val=\$$ac_var |
1999 | case $ac_val in | |
8d138742 | 2000 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2001 | esac |
8d138742 | 2002 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2003 | done | sort |
2004 | echo | |
2005 | fi | |
2006 | ||
2007 | if test -s confdefs.h; then | |
b0322a85 | 2008 | $as_echo "## ----------- ## |
d9898ee8 | 2009 | ## confdefs.h. ## |
b0322a85 | 2010 | ## ----------- ##" |
d9898ee8 | 2011 | echo |
dd184caf | 2012 | cat confdefs.h |
d9898ee8 | 2013 | echo |
2014 | fi | |
2015 | test "$ac_signal" != 0 && | |
8d138742 CE |
2016 | $as_echo "$as_me: caught signal $ac_signal" |
2017 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2018 | } >&5 |
dd184caf | 2019 | rm -f core *.core core.conftest.* && |
2020 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2021 | exit $exit_status |
dd184caf | 2022 | ' 0 |
d9898ee8 | 2023 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2024 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2025 | done |
2026 | ac_signal=0 | |
2027 | ||
2028 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2029 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2030 | |
b0322a85 CE |
2031 | $as_echo "/* confdefs.h */" > confdefs.h |
2032 | ||
d9898ee8 | 2033 | # Predefined preprocessor variables. |
2034 | ||
2035 | cat >>confdefs.h <<_ACEOF | |
2036 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2037 | _ACEOF | |
2038 | ||
d9898ee8 | 2039 | cat >>confdefs.h <<_ACEOF |
2040 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2041 | _ACEOF | |
2042 | ||
d9898ee8 | 2043 | cat >>confdefs.h <<_ACEOF |
2044 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2045 | _ACEOF | |
2046 | ||
d9898ee8 | 2047 | cat >>confdefs.h <<_ACEOF |
2048 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2049 | _ACEOF | |
2050 | ||
d9898ee8 | 2051 | cat >>confdefs.h <<_ACEOF |
2052 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2053 | _ACEOF | |
2054 | ||
b0322a85 CE |
2055 | cat >>confdefs.h <<_ACEOF |
2056 | #define PACKAGE_URL "$PACKAGE_URL" | |
2057 | _ACEOF | |
2058 | ||
d9898ee8 | 2059 | |
2060 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2061 | # Prefer an explicitly selected file to automatically selected ones. |
2062 | ac_site_file1=NONE | |
2063 | ac_site_file2=NONE | |
dd184caf | 2064 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2065 | # We do not want a PATH search for config.site. |
2066 | case $CONFIG_SITE in #(( | |
2067 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2068 | */*) ac_site_file1=$CONFIG_SITE;; | |
2069 | *) ac_site_file1=./$CONFIG_SITE;; | |
2070 | esac | |
dd184caf | 2071 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2072 | ac_site_file1=$prefix/share/config.site |
2073 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2074 | else |
8d138742 CE |
2075 | ac_site_file1=$ac_default_prefix/share/config.site |
2076 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2077 | fi |
8d138742 | 2078 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2079 | do |
8d138742 | 2080 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2081 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2083 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2084 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2085 | . "$ac_site_file" \ |
2086 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2088 | as_fn_error $? "failed to load site script $ac_site_file | |
2089 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2090 | fi |
2091 | done | |
2092 | ||
2093 | if test -r "$cache_file"; then | |
b0322a85 CE |
2094 | # Some versions of bash will fail to source /dev/null (special files |
2095 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2096 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2098 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2099 | case $cache_file in |
dd184caf | 2100 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2101 | *) . "./$cache_file";; | |
d9898ee8 | 2102 | esac |
2103 | fi | |
2104 | else | |
b0322a85 | 2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2106 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2107 | >$cache_file |
2108 | fi | |
2109 | ||
2110 | # Check that the precious variables saved in the cache have kept the same | |
2111 | # value. | |
2112 | ac_cache_corrupted=false | |
dd184caf | 2113 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2114 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2115 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2116 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2117 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2118 | case $ac_old_set,$ac_new_set in |
2119 | set,) | |
b0322a85 | 2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2121 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2122 | ac_cache_corrupted=: ;; |
2123 | ,set) | |
b0322a85 | 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2125 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2126 | ac_cache_corrupted=: ;; |
2127 | ,);; | |
2128 | *) | |
2129 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2130 | # differences in whitespace do not lead to failure. |
2131 | ac_old_val_w=`echo x $ac_old_val` | |
2132 | ac_new_val_w=`echo x $ac_new_val` | |
2133 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2135 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2136 | ac_cache_corrupted=: | |
2137 | else | |
b0322a85 | 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2139 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2140 | eval $ac_var=\$ac_old_val | |
2141 | fi | |
b0322a85 | 2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2143 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2145 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2146 | fi;; |
2147 | esac | |
2148 | # Pass precious variables to config.status. | |
2149 | if test "$ac_new_set" = set; then | |
2150 | case $ac_new_val in | |
8d138742 | 2151 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2152 | *) ac_arg=$ac_var=$ac_new_val ;; |
2153 | esac | |
2154 | case " $ac_configure_args " in | |
2155 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2156 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2157 | esac |
2158 | fi | |
2159 | done | |
2160 | if $ac_cache_corrupted; then | |
b0322a85 | 2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2162 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2164 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2165 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2166 | fi |
b0322a85 CE |
2167 | ## -------------------- ## |
2168 | ## Main body of script. ## | |
2169 | ## -------------------- ## | |
d9898ee8 | 2170 | |
dd184caf | 2171 | ac_ext=c |
2172 | ac_cpp='$CPP $CPPFLAGS' | |
2173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2176 | |
2177 | ||
2178 | ||
2179 | >confdefs.h # Kill PACKAGE_ macros | |
2180 | ||
2181 | ||
d9898ee8 | 2182 | ac_aux_dir= |
b0322a85 | 2183 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2184 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2185 | ac_aux_dir=$ac_dir |
2186 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2187 | break | |
dd184caf | 2188 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2189 | ac_aux_dir=$ac_dir |
2190 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2191 | break | |
dd184caf | 2192 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2193 | ac_aux_dir=$ac_dir |
2194 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2195 | break | |
2196 | fi | |
2197 | done | |
2198 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2199 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2200 | fi |
dd184caf | 2201 | |
2202 | # These three variables are undocumented and unsupported, | |
2203 | # and are intended to be withdrawn in a future Autoconf release. | |
2204 | # They can cause serious problems if a builder's source tree is in a directory | |
2205 | # whose full name contains unusual characters. | |
2206 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2207 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2208 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2209 | ||
d9898ee8 | 2210 | |
d50284c4 | 2211 | am__api_version='1.15' |
b0322a85 | 2212 | |
d9898ee8 | 2213 | # Find a good install program. We prefer a C program (faster), |
2214 | # so one script is as good as another. But avoid the broken or | |
2215 | # incompatible versions: | |
2216 | # SysV /etc/install, /usr/sbin/install | |
2217 | # SunOS /usr/etc/install | |
2218 | # IRIX /sbin/install | |
2219 | # AIX /bin/install | |
2220 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2221 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2222 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2223 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2224 | # OS/2's system install, which has a completely different semantic | |
2225 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2226 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2228 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2229 | if test -z "$INSTALL"; then |
b0322a85 | 2230 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2231 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2232 | else |
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2234 | for as_dir in $PATH | |
2235 | do | |
2236 | IFS=$as_save_IFS | |
2237 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2238 | # Account for people who put trailing slashes in PATH elements. |
2239 | case $as_dir/ in #(( | |
2240 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2241 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2242 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2243 | /usr/ucb/* ) ;; |
2244 | *) | |
2245 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2246 | # Don't use installbsd from OSF since it installs stuff as root | |
2247 | # by default. | |
2248 | for ac_prog in ginstall scoinst install; do | |
2249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2250 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2251 | if test $ac_prog = install && |
2252 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2253 | # AIX install. It has an incompatible calling convention. | |
2254 | : | |
2255 | elif test $ac_prog = install && | |
2256 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2257 | # program-specific install script used by HP pwplus--don't use. | |
2258 | : | |
2259 | else | |
8d138742 CE |
2260 | rm -rf conftest.one conftest.two conftest.dir |
2261 | echo one > conftest.one | |
2262 | echo two > conftest.two | |
2263 | mkdir conftest.dir | |
2264 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2265 | test -s conftest.one && test -s conftest.two && | |
2266 | test -s conftest.dir/conftest.one && | |
2267 | test -s conftest.dir/conftest.two | |
2268 | then | |
2269 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2270 | break 3 | |
2271 | fi | |
d9898ee8 | 2272 | fi |
2273 | fi | |
2274 | done | |
2275 | done | |
2276 | ;; | |
2277 | esac | |
8d138742 | 2278 | |
b0322a85 | 2279 | done |
dd184caf | 2280 | IFS=$as_save_IFS |
d9898ee8 | 2281 | |
8d138742 | 2282 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2283 | |
2284 | fi | |
2285 | if test "${ac_cv_path_install+set}" = set; then | |
2286 | INSTALL=$ac_cv_path_install | |
2287 | else | |
dd184caf | 2288 | # As a last resort, use the slow shell script. Don't cache a |
2289 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2290 | # break other packages using the cache if that directory is |
dd184caf | 2291 | # removed, or if the value is a relative name. |
d9898ee8 | 2292 | INSTALL=$ac_install_sh |
2293 | fi | |
2294 | fi | |
b0322a85 | 2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2296 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2297 | |
2298 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2299 | # It thinks the first close brace ends the variable substitution. | |
2300 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2301 | ||
2302 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2303 | ||
2304 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2305 | ||
b0322a85 | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2307 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2308 | # Reject unsafe characters in $srcdir or the absolute working directory |
2309 | # name. Accept space and tab only in the latter. | |
2310 | am_lf=' | |
2311 | ' | |
2312 | case `pwd` in | |
2313 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2314 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2315 | esac |
2316 | case $srcdir in | |
2317 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2318 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2319 | esac |
2320 | ||
b0322a85 | 2321 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2322 | # arguments. Must try -L first in case configure is actually a |
2323 | # symlink; some systems play weird games with the mod time of symlinks | |
2324 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2325 | # directory). | |
2326 | if ( | |
b0322a85 CE |
2327 | am_has_slept=no |
2328 | for am_try in 1 2; do | |
2329 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2330 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2331 | if test "$*" = "X"; then | |
2332 | # -L didn't work. | |
2333 | set X `ls -t "$srcdir/configure" conftest.file` | |
2334 | fi | |
2335 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2336 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2337 | ||
2338 | # If neither matched, then we have a broken ls. This can happen | |
2339 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2340 | # broken ls alias from the environment. This has actually | |
2341 | # happened. Such a system could not be considered "sane". | |
2342 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2343 | alias in your environment" "$LINENO" 5 | |
2344 | fi | |
2345 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2346 | break | |
2347 | fi | |
2348 | # Just in case. | |
2349 | sleep 1 | |
2350 | am_has_slept=yes | |
2351 | done | |
d9898ee8 | 2352 | test "$2" = conftest.file |
2353 | ) | |
2354 | then | |
2355 | # Ok. | |
2356 | : | |
2357 | else | |
b0322a85 CE |
2358 | as_fn_error $? "newly created file is older than distributed files! |
2359 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2360 | fi |
b0322a85 | 2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2362 | $as_echo "yes" >&6; } |
b0322a85 CE |
2363 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2364 | # generated files are strictly newer. | |
2365 | am_sleep_pid= | |
2366 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2367 | ( sleep 1 ) & | |
2368 | am_sleep_pid=$! | |
2369 | fi | |
2370 | ||
2371 | rm -f conftest.file | |
2372 | ||
d9898ee8 | 2373 | test "$program_prefix" != NONE && |
dd184caf | 2374 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2375 | # Use a double $ so make ignores it. |
2376 | test "$program_suffix" != NONE && | |
dd184caf | 2377 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2378 | # Double any \ or $. |
d9898ee8 | 2379 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2380 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2381 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2382 | |
d50284c4 CE |
2383 | # Expand $ac_aux_dir to an absolute path. |
2384 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2385 | |
8d138742 CE |
2386 | if test x"${MISSING+set}" != xset; then |
2387 | case $am_aux_dir in | |
2388 | *\ * | *\ *) | |
2389 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2390 | *) | |
2391 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2392 | esac | |
2393 | fi | |
d9898ee8 | 2394 | # Use eval to expand $SHELL |
b0322a85 CE |
2395 | if eval "$MISSING --is-lightweight"; then |
2396 | am_missing_run="$MISSING " | |
d9898ee8 | 2397 | else |
2398 | am_missing_run= | |
b0322a85 CE |
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2400 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2401 | fi |
2402 | ||
d50284c4 | 2403 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2404 | case $am_aux_dir in |
2405 | *\ * | *\ *) | |
2406 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2407 | *) | |
2408 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2409 | esac | |
2410 | fi | |
2411 | ||
b0322a85 CE |
2412 | # Installed binaries are usually stripped using 'strip' when the user |
2413 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2414 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2415 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2416 | if test "$cross_compiling" != no; then |
2417 | if test -n "$ac_tool_prefix"; then | |
2418 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2419 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2421 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2422 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2423 | $as_echo_n "(cached) " >&6 |
2424 | else | |
2425 | if test -n "$STRIP"; then | |
2426 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2427 | else | |
2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2429 | for as_dir in $PATH | |
2430 | do | |
2431 | IFS=$as_save_IFS | |
2432 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2433 | for ac_exec_ext in '' $ac_executable_extensions; do |
2434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2435 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2437 | break 2 |
2438 | fi | |
2439 | done | |
b0322a85 | 2440 | done |
8d138742 CE |
2441 | IFS=$as_save_IFS |
2442 | ||
2443 | fi | |
2444 | fi | |
2445 | STRIP=$ac_cv_prog_STRIP | |
2446 | if test -n "$STRIP"; then | |
b0322a85 | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2448 | $as_echo "$STRIP" >&6; } |
2449 | else | |
b0322a85 | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2451 | $as_echo "no" >&6; } |
d9898ee8 | 2452 | fi |
2453 | ||
8d138742 CE |
2454 | |
2455 | fi | |
2456 | if test -z "$ac_cv_prog_STRIP"; then | |
2457 | ac_ct_STRIP=$STRIP | |
2458 | # Extract the first word of "strip", so it can be a program name with args. | |
2459 | set dummy strip; ac_word=$2 | |
b0322a85 | 2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2461 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2462 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2463 | $as_echo_n "(cached) " >&6 |
2464 | else | |
2465 | if test -n "$ac_ct_STRIP"; then | |
2466 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2467 | else | |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2469 | for as_dir in $PATH | |
2470 | do | |
2471 | IFS=$as_save_IFS | |
2472 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2473 | for ac_exec_ext in '' $ac_executable_extensions; do |
2474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2475 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2477 | break 2 |
2478 | fi | |
2479 | done | |
b0322a85 | 2480 | done |
8d138742 CE |
2481 | IFS=$as_save_IFS |
2482 | ||
2483 | fi | |
2484 | fi | |
2485 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2486 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2488 | $as_echo "$ac_ct_STRIP" >&6; } |
2489 | else | |
b0322a85 | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2491 | $as_echo "no" >&6; } |
2492 | fi | |
2493 | ||
2494 | if test "x$ac_ct_STRIP" = x; then | |
2495 | STRIP=":" | |
2496 | else | |
2497 | case $cross_compiling:$ac_tool_warned in | |
2498 | yes:) | |
b0322a85 | 2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2500 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2501 | ac_tool_warned=yes ;; | |
2502 | esac | |
2503 | STRIP=$ac_ct_STRIP | |
2504 | fi | |
2505 | else | |
2506 | STRIP="$ac_cv_prog_STRIP" | |
2507 | fi | |
2508 | ||
2509 | fi | |
2510 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2511 | ||
b0322a85 | 2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2513 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2514 | if test -z "$MKDIR_P"; then |
b0322a85 | 2515 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2516 | $as_echo_n "(cached) " >&6 |
dd184caf | 2517 | else |
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2519 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2520 | do | |
2521 | IFS=$as_save_IFS | |
2522 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2523 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2524 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2525 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2526 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2527 | 'mkdir (GNU coreutils) '* | \ | |
2528 | 'mkdir (coreutils) '* | \ | |
2529 | 'mkdir (fileutils) '4.1*) | |
2530 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2531 | break 3;; | |
2532 | esac | |
2533 | done | |
2534 | done | |
b0322a85 | 2535 | done |
dd184caf | 2536 | IFS=$as_save_IFS |
2537 | ||
2538 | fi | |
2539 | ||
b0322a85 | 2540 | test -d ./--version && rmdir ./--version |
dd184caf | 2541 | if test "${ac_cv_path_mkdir+set}" = set; then |
2542 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2543 | else |
dd184caf | 2544 | # As a last resort, use the slow shell script. Don't cache a |
2545 | # value for MKDIR_P within a source directory, because that will | |
2546 | # break other packages using the cache if that directory is | |
2547 | # removed, or if the value is a relative name. | |
dd184caf | 2548 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2549 | fi |
2550 | fi | |
b0322a85 | 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2552 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2553 | |
d9898ee8 | 2554 | for ac_prog in gawk mawk nawk awk |
2555 | do | |
2556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2557 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2559 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2560 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2561 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2562 | else |
2563 | if test -n "$AWK"; then | |
2564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2565 | else | |
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2567 | for as_dir in $PATH | |
2568 | do | |
2569 | IFS=$as_save_IFS | |
2570 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2571 | for ac_exec_ext in '' $ac_executable_extensions; do |
2572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2573 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2575 | break 2 |
2576 | fi | |
2577 | done | |
b0322a85 | 2578 | done |
dd184caf | 2579 | IFS=$as_save_IFS |
d9898ee8 | 2580 | |
2581 | fi | |
2582 | fi | |
2583 | AWK=$ac_cv_prog_AWK | |
2584 | if test -n "$AWK"; then | |
b0322a85 | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2586 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2587 | else |
b0322a85 | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2589 | $as_echo "no" >&6; } |
d9898ee8 | 2590 | fi |
2591 | ||
dd184caf | 2592 | |
d9898ee8 | 2593 | test -n "$AWK" && break |
2594 | done | |
2595 | ||
b0322a85 | 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2597 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2598 | set x ${MAKE-make} | |
2599 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2600 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2601 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2602 | else |
2603 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2604 | SHELL = /bin/sh |
d9898ee8 | 2605 | all: |
dd184caf | 2606 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2607 | _ACEOF |
b0322a85 | 2608 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2609 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2610 | *@@@%%%=?*=@@@%%%*) | |
2611 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2612 | *) | |
2613 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2614 | esac | |
d9898ee8 | 2615 | rm -f conftest.make |
2616 | fi | |
dd184caf | 2617 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2619 | $as_echo "yes" >&6; } |
d9898ee8 | 2620 | SET_MAKE= |
2621 | else | |
b0322a85 | 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2623 | $as_echo "no" >&6; } |
d9898ee8 | 2624 | SET_MAKE="MAKE=${MAKE-make}" |
2625 | fi | |
2626 | ||
2627 | rm -rf .tst 2>/dev/null | |
2628 | mkdir .tst 2>/dev/null | |
2629 | if test -d .tst; then | |
2630 | am__leading_dot=. | |
2631 | else | |
2632 | am__leading_dot=_ | |
2633 | fi | |
2634 | rmdir .tst 2>/dev/null | |
2635 | ||
b0322a85 CE |
2636 | # Check whether --enable-silent-rules was given. |
2637 | if test "${enable_silent_rules+set}" = set; then : | |
2638 | enableval=$enable_silent_rules; | |
2639 | fi | |
2640 | ||
2641 | case $enable_silent_rules in # ((( | |
2642 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2643 | no) AM_DEFAULT_VERBOSITY=1;; | |
2644 | *) AM_DEFAULT_VERBOSITY=1;; | |
2645 | esac | |
2646 | am_make=${MAKE-make} | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2648 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2649 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if $as_echo 'TRUE=$(BAR$(V)) | |
2653 | BAR0=false | |
2654 | BAR1=true | |
2655 | V=1 | |
2656 | am__doit: | |
2657 | @$(TRUE) | |
2658 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2659 | am_cv_make_support_nested_variables=yes | |
2660 | else | |
2661 | am_cv_make_support_nested_variables=no | |
2662 | fi | |
2663 | fi | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2665 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2666 | if test $am_cv_make_support_nested_variables = yes; then | |
2667 | AM_V='$(V)' | |
2668 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2669 | else | |
2670 | AM_V=$AM_DEFAULT_VERBOSITY | |
2671 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2672 | fi | |
2673 | AM_BACKSLASH='\' | |
2674 | ||
dd184caf | 2675 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2676 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2677 | # is not polluted with repeated "-I." | |
2678 | am__isrc=' -I$(srcdir)' | |
2679 | # test to see if srcdir already configured | |
2680 | if test -f $srcdir/config.status; then | |
b0322a85 | 2681 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2682 | fi |
d9898ee8 | 2683 | fi |
2684 | ||
2685 | # test whether we have cygpath | |
2686 | if test -z "$CYGPATH_W"; then | |
2687 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2688 | CYGPATH_W='cygpath -w' | |
2689 | else | |
2690 | CYGPATH_W=echo | |
2691 | fi | |
2692 | fi | |
2693 | ||
2694 | ||
2695 | # Define the identity of the package. | |
2696 | PACKAGE='libhmac' | |
2697 | VERSION='1.00' | |
2698 | ||
2699 | ||
2700 | # Some tools Automake needs. | |
2701 | ||
2702 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2703 | ||
2704 | ||
2705 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2706 | ||
2707 | ||
2708 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2709 | ||
2710 | ||
2711 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2712 | ||
2713 | ||
2714 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2715 | ||
b0322a85 CE |
2716 | # For better backward compatibility. To be removed once Automake 1.9.x |
2717 | # dies out for good. For more background, see: | |
2718 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2719 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2720 | mkdir_p='$(MKDIR_P)' | |
2721 | ||
d50284c4 CE |
2722 | # We need awk for the "check" target (and possibly the TAP driver). The |
2723 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2724 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2725 | # in the wild :-( We should find a proper way to deprecate it ... | |
2726 | AMTAR='$${TAR-tar}' | |
2727 | ||
d9898ee8 | 2728 | |
b0322a85 CE |
2729 | # We'll loop over all known methods to create a tar archive until one works. |
2730 | _am_tools='gnutar pax cpio none' | |
2731 | ||
2732 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2733 | |
d9898ee8 | 2734 | |
2735 | ||
2736 | ||
2737 | ||
2738 | ||
d50284c4 CE |
2739 | # POSIX will say in a future version that running "rm -f" with no argument |
2740 | # is OK; and we want to be able to make that assumption in our Makefile | |
2741 | # recipes. So use an aggressive probe to check that the usage we want is | |
2742 | # actually supported "in the wild" to an acceptable degree. | |
2743 | # See automake bug#10828. | |
2744 | # To make any issue more visible, cause the running configure to be aborted | |
2745 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2746 | # user can still override this though. | |
2747 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2748 | cat >&2 <<'END' | |
2749 | Oops! | |
2750 | ||
2751 | Your 'rm' program seems unable to run without file operands specified | |
2752 | on the command line, even when the '-f' option is present. This is contrary | |
2753 | to the behaviour of most rm programs out there, and not conforming with | |
2754 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2755 | ||
2756 | Please tell bug-automake@gnu.org about your system, including the value | |
2757 | of your $PATH and any error possibly output before this message. This | |
2758 | can help us improve future automake versions. | |
2759 | ||
2760 | END | |
2761 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2762 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2763 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2764 | echo >&2 | |
2765 | else | |
2766 | cat >&2 <<'END' | |
2767 | Aborting the configuration process, to ensure you take notice of the issue. | |
2768 | ||
2769 | You can download and install GNU coreutils to get an 'rm' implementation | |
2770 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2771 | ||
2772 | If you want to complete the configuration process using your problematic | |
2773 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2774 | to "yes", and re-run configure. | |
2775 | ||
2776 | END | |
2777 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2778 | fi | |
2779 | fi | |
2780 | ||
d9898ee8 | 2781 | |
2782 | ||
dd184caf | 2783 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2784 | |
2785 | ||
2786 | for ac_prog in gawk mawk nawk awk | |
2787 | do | |
b0322a85 CE |
2788 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2789 | set dummy $ac_prog; ac_word=$2 | |
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2791 | $as_echo_n "checking for $ac_word... " >&6; } | |
2792 | if ${ac_cv_prog_AWK+:} false; then : | |
8d138742 | 2793 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2794 | else |
b0322a85 CE |
2795 | if test -n "$AWK"; then |
2796 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2797 | else | |
2798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 2799 | for as_dir in $PATH |
2800 | do | |
2801 | IFS=$as_save_IFS | |
2802 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2803 | for ac_exec_ext in '' $ac_executable_extensions; do |
2804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2805 | ac_cv_prog_AWK="$ac_prog" | |
2806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2807 | break 2 | |
2808 | fi | |
d9898ee8 | 2809 | done |
b0322a85 | 2810 | done |
dd184caf | 2811 | IFS=$as_save_IFS |
d9898ee8 | 2812 | |
d9898ee8 | 2813 | fi |
d9898ee8 | 2814 | fi |
b0322a85 CE |
2815 | AWK=$ac_cv_prog_AWK |
2816 | if test -n "$AWK"; then | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2818 | $as_echo "$AWK" >&6; } | |
2819 | else | |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2821 | $as_echo "no" >&6; } | |
2822 | fi | |
d9898ee8 | 2823 | |
d9898ee8 | 2824 | |
b0322a85 CE |
2825 | test -n "$AWK" && break |
2826 | done | |
d9898ee8 | 2827 | |
d9898ee8 | 2828 | |
b0322a85 | 2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 2830 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 2831 | LN_S=$as_ln_s |
2832 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2834 | $as_echo "yes" >&6; } |
d9898ee8 | 2835 | else |
b0322a85 | 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 2837 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 2838 | fi |
2839 | ||
2840 | ac_ext=c | |
2841 | ac_cpp='$CPP $CPPFLAGS' | |
2842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2845 | if test -n "$ac_tool_prefix"; then | |
2846 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2847 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2849 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2850 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2851 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2852 | else |
2853 | if test -n "$CC"; then | |
2854 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2855 | else | |
2856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2857 | for as_dir in $PATH | |
2858 | do | |
2859 | IFS=$as_save_IFS | |
2860 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2861 | for ac_exec_ext in '' $ac_executable_extensions; do |
2862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2863 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2865 | break 2 |
2866 | fi | |
2867 | done | |
b0322a85 | 2868 | done |
dd184caf | 2869 | IFS=$as_save_IFS |
d9898ee8 | 2870 | |
2871 | fi | |
2872 | fi | |
2873 | CC=$ac_cv_prog_CC | |
2874 | if test -n "$CC"; then | |
b0322a85 | 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2876 | $as_echo "$CC" >&6; } |
d9898ee8 | 2877 | else |
b0322a85 | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2879 | $as_echo "no" >&6; } |
d9898ee8 | 2880 | fi |
2881 | ||
dd184caf | 2882 | |
d9898ee8 | 2883 | fi |
2884 | if test -z "$ac_cv_prog_CC"; then | |
2885 | ac_ct_CC=$CC | |
2886 | # Extract the first word of "gcc", so it can be a program name with args. | |
2887 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2889 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2890 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2891 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2892 | else |
2893 | if test -n "$ac_ct_CC"; then | |
2894 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2895 | else | |
2896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2897 | for as_dir in $PATH | |
2898 | do | |
2899 | IFS=$as_save_IFS | |
2900 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2901 | for ac_exec_ext in '' $ac_executable_extensions; do |
2902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2903 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 2904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2905 | break 2 |
2906 | fi | |
2907 | done | |
b0322a85 | 2908 | done |
dd184caf | 2909 | IFS=$as_save_IFS |
d9898ee8 | 2910 | |
2911 | fi | |
2912 | fi | |
2913 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2914 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 2916 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 2917 | else |
b0322a85 | 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2919 | $as_echo "no" >&6; } |
d9898ee8 | 2920 | fi |
2921 | ||
dd184caf | 2922 | if test "x$ac_ct_CC" = x; then |
2923 | CC="" | |
2924 | else | |
2925 | case $cross_compiling:$ac_tool_warned in | |
2926 | yes:) | |
b0322a85 | 2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 2928 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 2929 | ac_tool_warned=yes ;; |
2930 | esac | |
2931 | CC=$ac_ct_CC | |
2932 | fi | |
d9898ee8 | 2933 | else |
2934 | CC="$ac_cv_prog_CC" | |
2935 | fi | |
2936 | ||
2937 | if test -z "$CC"; then | |
dd184caf | 2938 | if test -n "$ac_tool_prefix"; then |
2939 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2940 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2942 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2943 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2944 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2945 | else |
2946 | if test -n "$CC"; then | |
2947 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2948 | else | |
2949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2950 | for as_dir in $PATH | |
2951 | do | |
2952 | IFS=$as_save_IFS | |
2953 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2954 | for ac_exec_ext in '' $ac_executable_extensions; do |
2955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2956 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 2957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2958 | break 2 |
2959 | fi | |
2960 | done | |
b0322a85 | 2961 | done |
dd184caf | 2962 | IFS=$as_save_IFS |
d9898ee8 | 2963 | |
2964 | fi | |
2965 | fi | |
2966 | CC=$ac_cv_prog_CC | |
2967 | if test -n "$CC"; then | |
b0322a85 | 2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2969 | $as_echo "$CC" >&6; } |
d9898ee8 | 2970 | else |
b0322a85 | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2972 | $as_echo "no" >&6; } |
d9898ee8 | 2973 | fi |
2974 | ||
d9898ee8 | 2975 | |
dd184caf | 2976 | fi |
d9898ee8 | 2977 | fi |
2978 | if test -z "$CC"; then | |
2979 | # Extract the first word of "cc", so it can be a program name with args. | |
2980 | set dummy cc; ac_word=$2 | |
b0322a85 | 2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2982 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2983 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2984 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2985 | else |
2986 | if test -n "$CC"; then | |
2987 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2988 | else | |
2989 | ac_prog_rejected=no | |
2990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2991 | for as_dir in $PATH | |
2992 | do | |
2993 | IFS=$as_save_IFS | |
2994 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2995 | for ac_exec_ext in '' $ac_executable_extensions; do |
2996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2997 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2998 | ac_prog_rejected=yes | |
2999 | continue | |
3000 | fi | |
3001 | ac_cv_prog_CC="cc" | |
b0322a85 | 3002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3003 | break 2 |
3004 | fi | |
3005 | done | |
b0322a85 | 3006 | done |
dd184caf | 3007 | IFS=$as_save_IFS |
d9898ee8 | 3008 | |
3009 | if test $ac_prog_rejected = yes; then | |
3010 | # We found a bogon in the path, so make sure we never use it. | |
3011 | set dummy $ac_cv_prog_CC | |
3012 | shift | |
3013 | if test $# != 0; then | |
3014 | # We chose a different compiler from the bogus one. | |
3015 | # However, it has the same basename, so the bogon will be chosen | |
3016 | # first if we set CC to just the basename; use the full file name. | |
3017 | shift | |
3018 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3019 | fi | |
3020 | fi | |
3021 | fi | |
3022 | fi | |
3023 | CC=$ac_cv_prog_CC | |
3024 | if test -n "$CC"; then | |
b0322a85 | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3026 | $as_echo "$CC" >&6; } |
d9898ee8 | 3027 | else |
b0322a85 | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3029 | $as_echo "no" >&6; } |
d9898ee8 | 3030 | fi |
3031 | ||
dd184caf | 3032 | |
d9898ee8 | 3033 | fi |
3034 | if test -z "$CC"; then | |
3035 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3036 | for ac_prog in cl.exe |
d9898ee8 | 3037 | do |
3038 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3039 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3041 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3042 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3043 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3044 | else |
3045 | if test -n "$CC"; then | |
3046 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3047 | else | |
3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3049 | for as_dir in $PATH | |
3050 | do | |
3051 | IFS=$as_save_IFS | |
3052 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
3054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3055 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3057 | break 2 |
3058 | fi | |
3059 | done | |
b0322a85 | 3060 | done |
dd184caf | 3061 | IFS=$as_save_IFS |
d9898ee8 | 3062 | |
3063 | fi | |
3064 | fi | |
3065 | CC=$ac_cv_prog_CC | |
3066 | if test -n "$CC"; then | |
b0322a85 | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3068 | $as_echo "$CC" >&6; } |
d9898ee8 | 3069 | else |
b0322a85 | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3071 | $as_echo "no" >&6; } |
d9898ee8 | 3072 | fi |
3073 | ||
dd184caf | 3074 | |
d9898ee8 | 3075 | test -n "$CC" && break |
3076 | done | |
3077 | fi | |
3078 | if test -z "$CC"; then | |
3079 | ac_ct_CC=$CC | |
dd184caf | 3080 | for ac_prog in cl.exe |
d9898ee8 | 3081 | do |
3082 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3083 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3085 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3086 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3087 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3088 | else |
3089 | if test -n "$ac_ct_CC"; then | |
3090 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3091 | else | |
3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3093 | for as_dir in $PATH | |
3094 | do | |
3095 | IFS=$as_save_IFS | |
3096 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3097 | for ac_exec_ext in '' $ac_executable_extensions; do |
3098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3099 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3101 | break 2 |
3102 | fi | |
3103 | done | |
b0322a85 | 3104 | done |
dd184caf | 3105 | IFS=$as_save_IFS |
d9898ee8 | 3106 | |
3107 | fi | |
3108 | fi | |
3109 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3110 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3112 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3113 | else |
b0322a85 | 3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3115 | $as_echo "no" >&6; } |
d9898ee8 | 3116 | fi |
3117 | ||
dd184caf | 3118 | |
d9898ee8 | 3119 | test -n "$ac_ct_CC" && break |
3120 | done | |
3121 | ||
dd184caf | 3122 | if test "x$ac_ct_CC" = x; then |
3123 | CC="" | |
3124 | else | |
3125 | case $cross_compiling:$ac_tool_warned in | |
3126 | yes:) | |
b0322a85 | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3129 | ac_tool_warned=yes ;; |
3130 | esac | |
3131 | CC=$ac_ct_CC | |
3132 | fi | |
d9898ee8 | 3133 | fi |
3134 | ||
3135 | fi | |
3136 | ||
3137 | ||
b0322a85 | 3138 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3139 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3140 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3141 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3142 | |
3143 | # Provide some information about the compiler. | |
b0322a85 | 3144 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3145 | set X $ac_compile |
3146 | ac_compiler=$2 | |
b0322a85 CE |
3147 | for ac_option in --version -v -V -qversion; do |
3148 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3149 | case "(($ac_try" in |
3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3151 | *) ac_try_echo=$ac_try;; | |
3152 | esac | |
b0322a85 CE |
3153 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3154 | $as_echo "$ac_try_echo"; } >&5 | |
3155 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3156 | ac_status=$? |
b0322a85 CE |
3157 | if test -s conftest.err; then |
3158 | sed '10a\ | |
3159 | ... rest of stderr output deleted ... | |
3160 | 10q' conftest.err >conftest.er1 | |
3161 | cat conftest.er1 >&5 | |
3162 | fi | |
3163 | rm -f conftest.er1 conftest.err | |
3164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3165 | test $ac_status = 0; } | |
3166 | done | |
d9898ee8 | 3167 | |
b0322a85 | 3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3169 | /* end confdefs.h. */ |
3170 | ||
3171 | int | |
3172 | main () | |
3173 | { | |
3174 | ||
3175 | ; | |
3176 | return 0; | |
3177 | } | |
3178 | _ACEOF | |
3179 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3180 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3181 | # Try to create an executable without -o first, disregard a.out. |
3182 | # It will help us diagnose broken compilers, and finding out an intuition | |
3183 | # of exeext. | |
b0322a85 CE |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3185 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3186 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3187 | ||
3188 | # The possible output files: | |
3189 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3190 | ||
dd184caf | 3191 | ac_rmfiles= |
3192 | for ac_file in $ac_files | |
3193 | do | |
3194 | case $ac_file in | |
8d138742 | 3195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3196 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3197 | esac | |
3198 | done | |
3199 | rm -f $ac_rmfiles | |
3200 | ||
b0322a85 | 3201 | if { { ac_try="$ac_link_default" |
dd184caf | 3202 | case "(($ac_try" in |
3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3204 | *) ac_try_echo=$ac_try;; | |
3205 | esac | |
b0322a85 CE |
3206 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3207 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3208 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3209 | ac_status=$? |
b0322a85 CE |
3210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3211 | test $ac_status = 0; }; then : | |
dd184caf | 3212 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3213 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3214 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3215 | # so that the user can short-circuit this test for compilers unknown to | |
3216 | # Autoconf. | |
3217 | for ac_file in $ac_files '' | |
d9898ee8 | 3218 | do |
3219 | test -f "$ac_file" || continue | |
3220 | case $ac_file in | |
8d138742 | 3221 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3222 | ;; |
3223 | [ab].out ) | |
3224 | # We found the default executable, but exeext='' is most | |
3225 | # certainly right. | |
3226 | break;; | |
3227 | *.* ) | |
b0322a85 | 3228 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3229 | then :; else |
3230 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3231 | fi | |
3232 | # We set ac_cv_exeext here because the later test for it is not | |
3233 | # safe: cross compilers may not add the suffix if given an `-o' | |
3234 | # argument, so we may need to know it at that point already. | |
3235 | # Even if this section looks crufty: it has the advantage of | |
3236 | # actually working. | |
d9898ee8 | 3237 | break;; |
3238 | * ) | |
3239 | break;; | |
3240 | esac | |
3241 | done | |
dd184caf | 3242 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3243 | ||
d9898ee8 | 3244 | else |
dd184caf | 3245 | ac_file='' |
3246 | fi | |
b0322a85 CE |
3247 | if test -z "$ac_file"; then : |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3249 | $as_echo "no" >&6; } | |
3250 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3251 | sed 's/^/| /' conftest.$ac_ext >&5 |
3252 | ||
b0322a85 | 3253 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3254 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3255 | as_fn_error 77 "C compiler cannot create executables |
3256 | See \`config.log' for more details" "$LINENO" 5; } | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
d9898ee8 | 3260 | fi |
b0322a85 CE |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3262 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3264 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3265 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3266 | |
8d138742 | 3267 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3268 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3270 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3271 | if { { ac_try="$ac_link" |
dd184caf | 3272 | case "(($ac_try" in |
3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3274 | *) ac_try_echo=$ac_try;; | |
3275 | esac | |
b0322a85 CE |
3276 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3277 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3278 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3279 | ac_status=$? |
b0322a85 CE |
3280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3281 | test $ac_status = 0; }; then : | |
d9898ee8 | 3282 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3283 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3284 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3285 | # `rm'. | |
3286 | for ac_file in conftest.exe conftest conftest.*; do | |
3287 | test -f "$ac_file" || continue | |
3288 | case $ac_file in | |
8d138742 | 3289 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3290 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3291 | break;; |
3292 | * ) break;; | |
3293 | esac | |
3294 | done | |
3295 | else | |
b0322a85 | 3296 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3298 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3299 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3300 | fi |
b0322a85 CE |
3301 | rm -f conftest conftest$ac_cv_exeext |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3303 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3304 | |
3305 | rm -f conftest.$ac_ext | |
3306 | EXEEXT=$ac_cv_exeext | |
3307 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3309 | /* end confdefs.h. */ | |
3310 | #include <stdio.h> | |
3311 | int | |
3312 | main () | |
3313 | { | |
3314 | FILE *f = fopen ("conftest.out", "w"); | |
3315 | return ferror (f) || fclose (f) != 0; | |
3316 | ||
3317 | ; | |
3318 | return 0; | |
3319 | } | |
3320 | _ACEOF | |
3321 | ac_clean_files="$ac_clean_files conftest.out" | |
3322 | # Check that the compiler produces executables we can run. If not, either | |
3323 | # the compiler is broken, or we cross compile. | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3325 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3326 | if test "$cross_compiling" != yes; then | |
3327 | { { ac_try="$ac_link" | |
3328 | case "(($ac_try" in | |
3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3330 | *) ac_try_echo=$ac_try;; | |
3331 | esac | |
3332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3333 | $as_echo "$ac_try_echo"; } >&5 | |
3334 | (eval "$ac_link") 2>&5 | |
3335 | ac_status=$? | |
3336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3337 | test $ac_status = 0; } | |
3338 | if { ac_try='./conftest$ac_cv_exeext' | |
3339 | { { case "(($ac_try" in | |
3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3341 | *) ac_try_echo=$ac_try;; | |
3342 | esac | |
3343 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3344 | $as_echo "$ac_try_echo"; } >&5 | |
3345 | (eval "$ac_try") 2>&5 | |
3346 | ac_status=$? | |
3347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3348 | test $ac_status = 0; }; }; then | |
3349 | cross_compiling=no | |
3350 | else | |
3351 | if test "$cross_compiling" = maybe; then | |
3352 | cross_compiling=yes | |
3353 | else | |
3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3356 | as_fn_error $? "cannot run C compiled programs. | |
3357 | If you meant to cross compile, use \`--host'. | |
3358 | See \`config.log' for more details" "$LINENO" 5; } | |
3359 | fi | |
3360 | fi | |
3361 | fi | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3363 | $as_echo "$cross_compiling" >&6; } | |
3364 | ||
3365 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3366 | ac_clean_files=$ac_clean_files_save | |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3368 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3369 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3370 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3371 | else |
b0322a85 | 3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3373 | /* end confdefs.h. */ |
3374 | ||
3375 | int | |
3376 | main () | |
3377 | { | |
3378 | ||
3379 | ; | |
3380 | return 0; | |
3381 | } | |
3382 | _ACEOF | |
3383 | rm -f conftest.o conftest.obj | |
b0322a85 | 3384 | if { { ac_try="$ac_compile" |
dd184caf | 3385 | case "(($ac_try" in |
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3387 | *) ac_try_echo=$ac_try;; | |
3388 | esac | |
b0322a85 CE |
3389 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3390 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3391 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3392 | ac_status=$? |
b0322a85 CE |
3393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3394 | test $ac_status = 0; }; then : | |
dd184caf | 3395 | for ac_file in conftest.o conftest.obj conftest.*; do |
3396 | test -f "$ac_file" || continue; | |
d9898ee8 | 3397 | case $ac_file in |
8d138742 | 3398 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3399 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3400 | break;; | |
3401 | esac | |
3402 | done | |
3403 | else | |
8d138742 | 3404 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
3406 | ||
b0322a85 | 3407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3409 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3410 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3411 | fi |
d9898ee8 | 3412 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3413 | fi | |
b0322a85 | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3415 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3416 | OBJEXT=$ac_cv_objext |
3417 | ac_objext=$OBJEXT | |
b0322a85 | 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3419 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3420 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3421 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3422 | else |
b0322a85 | 3423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3424 | /* end confdefs.h. */ |
3425 | ||
3426 | int | |
3427 | main () | |
3428 | { | |
3429 | #ifndef __GNUC__ | |
3430 | choke me | |
3431 | #endif | |
3432 | ||
3433 | ; | |
3434 | return 0; | |
3435 | } | |
3436 | _ACEOF | |
b0322a85 | 3437 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3438 | ac_compiler_gnu=yes |
3439 | else | |
b0322a85 | 3440 | ac_compiler_gnu=no |
d9898ee8 | 3441 | fi |
dd184caf | 3442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3443 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3444 | ||
3445 | fi | |
b0322a85 | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3447 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3448 | if test $ac_compiler_gnu = yes; then | |
3449 | GCC=yes | |
3450 | else | |
3451 | GCC= | |
3452 | fi | |
d9898ee8 | 3453 | ac_test_CFLAGS=${CFLAGS+set} |
3454 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3456 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3457 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3458 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3459 | else |
dd184caf | 3460 | ac_save_c_werror_flag=$ac_c_werror_flag |
3461 | ac_c_werror_flag=yes | |
3462 | ac_cv_prog_cc_g=no | |
3463 | CFLAGS="-g" | |
b0322a85 | 3464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3465 | /* end confdefs.h. */ |
3466 | ||
3467 | int | |
3468 | main () | |
3469 | { | |
3470 | ||
3471 | ; | |
3472 | return 0; | |
3473 | } | |
3474 | _ACEOF | |
b0322a85 | 3475 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3476 | ac_cv_prog_cc_g=yes |
3477 | else | |
b0322a85 CE |
3478 | CFLAGS="" |
3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3480 | /* end confdefs.h. */ |
3481 | ||
3482 | int | |
3483 | main () | |
3484 | { | |
3485 | ||
3486 | ; | |
3487 | return 0; | |
3488 | } | |
3489 | _ACEOF | |
b0322a85 | 3490 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3491 | |
b0322a85 CE |
3492 | else |
3493 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3494 | CFLAGS="-g" |
b0322a85 | 3495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3496 | /* end confdefs.h. */ |
3497 | ||
3498 | int | |
3499 | main () | |
3500 | { | |
3501 | ||
3502 | ; | |
3503 | return 0; | |
3504 | } | |
3505 | _ACEOF | |
b0322a85 | 3506 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3507 | ac_cv_prog_cc_g=yes |
dd184caf | 3508 | fi |
dd184caf | 3509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3510 | fi |
dd184caf | 3511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3512 | fi | |
dd184caf | 3513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3514 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3515 | fi |
b0322a85 | 3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3517 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3518 | if test "$ac_test_CFLAGS" = set; then |
3519 | CFLAGS=$ac_save_CFLAGS | |
3520 | elif test $ac_cv_prog_cc_g = yes; then | |
3521 | if test "$GCC" = yes; then | |
3522 | CFLAGS="-g -O2" | |
3523 | else | |
3524 | CFLAGS="-g" | |
3525 | fi | |
3526 | else | |
3527 | if test "$GCC" = yes; then | |
3528 | CFLAGS="-O2" | |
3529 | else | |
3530 | CFLAGS= | |
3531 | fi | |
3532 | fi | |
b0322a85 | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3534 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3535 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3536 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3537 | else |
dd184caf | 3538 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3539 | ac_save_CC=$CC |
b0322a85 | 3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3541 | /* end confdefs.h. */ |
3542 | #include <stdarg.h> | |
3543 | #include <stdio.h> | |
b0322a85 | 3544 | struct stat; |
d9898ee8 | 3545 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3546 | struct buf { int x; }; | |
3547 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3548 | static char *e (p, i) | |
3549 | char **p; | |
3550 | int i; | |
3551 | { | |
3552 | return p[i]; | |
3553 | } | |
3554 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3555 | { | |
3556 | char *s; | |
3557 | va_list v; | |
3558 | va_start (v,p); | |
3559 | s = g (p, va_arg (v,int)); | |
3560 | va_end (v); | |
3561 | return s; | |
3562 | } | |
3563 | ||
3564 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3565 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3566 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3567 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3568 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3569 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3570 | that's true only with -std. */ |
d9898ee8 | 3571 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3572 | ||
dd184caf | 3573 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3574 | inside strings and character constants. */ | |
3575 | #define FOO(x) 'x' | |
3576 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3577 | ||
d9898ee8 | 3578 | int test (int i, double x); |
3579 | struct s1 {int (*f) (int a);}; | |
3580 | struct s2 {int (*f) (double a);}; | |
3581 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3582 | int argc; | |
3583 | char **argv; | |
3584 | int | |
3585 | main () | |
3586 | { | |
3587 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3588 | ; | |
3589 | return 0; | |
3590 | } | |
3591 | _ACEOF | |
dd184caf | 3592 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3593 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3594 | do |
3595 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3596 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3597 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3598 | fi |
dd184caf | 3599 | rm -f core conftest.err conftest.$ac_objext |
3600 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3601 | done |
dd184caf | 3602 | rm -f conftest.$ac_ext |
d9898ee8 | 3603 | CC=$ac_save_CC |
3604 | ||
3605 | fi | |
dd184caf | 3606 | # AC_CACHE_VAL |
3607 | case "x$ac_cv_prog_cc_c89" in | |
3608 | x) | |
b0322a85 | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3610 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3611 | xno) |
b0322a85 | 3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3613 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3614 | *) |
dd184caf | 3615 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3617 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3618 | esac |
b0322a85 | 3619 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3620 | |
b0322a85 | 3621 | fi |
d9898ee8 | 3622 | |
d9898ee8 | 3623 | ac_ext=c |
3624 | ac_cpp='$CPP $CPPFLAGS' | |
3625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3628 | |
3629 | ac_ext=c | |
3630 | ac_cpp='$CPP $CPPFLAGS' | |
3631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3635 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3636 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3637 | $as_echo_n "(cached) " >&6 | |
3638 | else | |
3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3640 | /* end confdefs.h. */ | |
3641 | ||
3642 | int | |
3643 | main () | |
3644 | { | |
3645 | ||
3646 | ; | |
3647 | return 0; | |
3648 | } | |
3649 | _ACEOF | |
3650 | # Make sure it works both with $CC and with simple cc. | |
3651 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3652 | # compilers refuse to overwrite an existing .o file with -o, | |
3653 | # though they will create one. | |
3654 | am_cv_prog_cc_c_o=yes | |
3655 | for am_i in 1 2; do | |
3656 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3657 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3658 | ac_status=$? | |
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3660 | (exit $ac_status); } \ | |
3661 | && test -f conftest2.$ac_objext; then | |
3662 | : OK | |
3663 | else | |
3664 | am_cv_prog_cc_c_o=no | |
3665 | break | |
3666 | fi | |
3667 | done | |
3668 | rm -f core conftest* | |
3669 | unset am_i | |
3670 | fi | |
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3672 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3673 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3674 | # Losing compiler, so override with the script. | |
3675 | # FIXME: It is wrong to rewrite CC. | |
3676 | # But if we don't then we get into trouble of one sort or another. | |
3677 | # A longer-term fix would be to have automake use am__CC in this case, | |
3678 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3679 | CC="$am_aux_dir/compile $CC" | |
3680 | fi | |
3681 | ac_ext=c | |
3682 | ac_cpp='$CPP $CPPFLAGS' | |
3683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3686 | ||
d9898ee8 | 3687 | DEPDIR="${am__leading_dot}deps" |
3688 | ||
dd184caf | 3689 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3690 | |
3691 | ||
3692 | am_make=${MAKE-make} | |
3693 | cat > confinc << 'END' | |
3694 | am__doit: | |
8d138742 | 3695 | @echo this is the am__doit target |
d9898ee8 | 3696 | .PHONY: am__doit |
3697 | END | |
3698 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3700 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3701 | am__include="#" |
3702 | am__quote= | |
3703 | _am_result=none | |
3704 | # First try GNU make style include. | |
3705 | echo "include confinc" > confmf | |
b0322a85 | 3706 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3707 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3708 | *the\ am__doit\ target*) | |
3709 | am__include=include | |
3710 | am__quote= | |
3711 | _am_result=GNU | |
3712 | ;; | |
3713 | esac | |
d9898ee8 | 3714 | # Now try BSD make style include. |
3715 | if test "$am__include" = "#"; then | |
3716 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3717 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3718 | *the\ am__doit\ target*) | |
3719 | am__include=.include | |
3720 | am__quote="\"" | |
3721 | _am_result=BSD | |
3722 | ;; | |
3723 | esac | |
d9898ee8 | 3724 | fi |
3725 | ||
3726 | ||
b0322a85 | 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3728 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3729 | rm -f confinc confmf |
3730 | ||
dd184caf | 3731 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3732 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3733 | enableval=$enable_dependency_tracking; |
3734 | fi | |
d9898ee8 | 3735 | |
d9898ee8 | 3736 | if test "x$enable_dependency_tracking" != xno; then |
3737 | am_depcomp="$ac_aux_dir/depcomp" | |
3738 | AMDEPBACKSLASH='\' | |
b0322a85 | 3739 | am__nodep='_no' |
d9898ee8 | 3740 | fi |
dd184caf | 3741 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3742 | AMDEP_TRUE= |
3743 | AMDEP_FALSE='#' | |
3744 | else | |
3745 | AMDEP_TRUE='#' | |
3746 | AMDEP_FALSE= | |
3747 | fi | |
3748 | ||
3749 | ||
3750 | ||
d9898ee8 | 3751 | depcc="$CC" am_compiler_list= |
3752 | ||
b0322a85 | 3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3754 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3755 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3756 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3757 | else |
3758 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3759 | # We make a subdir and do the tests there. Otherwise we can end up | |
3760 | # making bogus files that we don't know about and never remove. For | |
3761 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3762 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3763 | # in D". | |
3764 | rm -rf conftest.dir | |
d9898ee8 | 3765 | mkdir conftest.dir |
3766 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3767 | # using a relative directory. | |
3768 | cp "$am_depcomp" conftest.dir | |
3769 | cd conftest.dir | |
3770 | # We will build objects and dependencies in a subdirectory because | |
3771 | # it helps to detect inapplicable dependency modes. For instance | |
3772 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3773 | # side effect of compilation, but ICC will put the dependencies in | |
3774 | # the current directory while Tru64 will put them in the object | |
3775 | # directory. | |
3776 | mkdir sub | |
3777 | ||
3778 | am_cv_CC_dependencies_compiler_type=none | |
3779 | if test "$am_compiler_list" = ""; then | |
3780 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3781 | fi | |
8d138742 CE |
3782 | am__universal=false |
3783 | case " $depcc " in #( | |
3784 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3785 | esac | |
3786 | ||
d9898ee8 | 3787 | for depmode in $am_compiler_list; do |
3788 | # Setup a source with many dependencies, because some compilers | |
3789 | # like to wrap large dependency lists on column 80 (with \), and | |
3790 | # we should not choose a depcomp mode which is confused by this. | |
3791 | # | |
3792 | # We need to recreate these files for each test, as the compiler may | |
3793 | # overwrite some of them when testing with obscure command lines. | |
3794 | # This happens at least with the AIX C compiler. | |
3795 | : > sub/conftest.c | |
3796 | for i in 1 2 3 4 5 6; do | |
3797 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3798 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3799 | # Solaris 10 /bin/sh. | |
3800 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3801 | done |
3802 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3803 | ||
b0322a85 | 3804 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3805 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3806 | # handle '-M -o', and we need to detect this. Also, some Intel |
3807 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3808 | am__obj=sub/conftest.${OBJEXT-o} |
3809 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3810 | case $depmode in |
8d138742 CE |
3811 | gcc) |
3812 | # This depmode causes a compiler race in universal mode. | |
3813 | test "$am__universal" = false || continue | |
3814 | ;; | |
d9898ee8 | 3815 | nosideeffect) |
b0322a85 CE |
3816 | # After this tag, mechanisms are not by side-effect, so they'll |
3817 | # only be used when explicitly requested. | |
d9898ee8 | 3818 | if test "x$enable_dependency_tracking" = xyes; then |
3819 | continue | |
3820 | else | |
3821 | break | |
3822 | fi | |
3823 | ;; | |
b0322a85 CE |
3824 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3825 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3826 | # not run yet. These depmodes are late enough in the game, and |
3827 | # so weak that their functioning should not be impacted. | |
3828 | am__obj=conftest.${OBJEXT-o} | |
3829 | am__minus_obj= | |
3830 | ;; | |
d9898ee8 | 3831 | none) break ;; |
3832 | esac | |
d9898ee8 | 3833 | if depmode=$depmode \ |
8d138742 | 3834 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3835 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3836 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3837 | >/dev/null 2>conftest.err && |
dd184caf | 3838 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3839 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3840 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3841 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3842 | # icc doesn't choke on unknown options, it will just issue warnings | |
3843 | # or remarks (even with -Werror). So we grep stderr for any message | |
3844 | # that says an option was ignored or not supported. | |
3845 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3846 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3847 | # The diagnosis changed in icc 8.0: | |
3848 | # icc: Command line remark: option '-MP' not supported | |
3849 | if (grep 'ignoring option' conftest.err || | |
3850 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3851 | am_cv_CC_dependencies_compiler_type=$depmode | |
3852 | break | |
3853 | fi | |
3854 | fi | |
3855 | done | |
3856 | ||
3857 | cd .. | |
3858 | rm -rf conftest.dir | |
3859 | else | |
3860 | am_cv_CC_dependencies_compiler_type=none | |
3861 | fi | |
3862 | ||
3863 | fi | |
b0322a85 | 3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3865 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3866 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3867 | ||
dd184caf | 3868 | if |
d9898ee8 | 3869 | test "x$enable_dependency_tracking" != xno \ |
3870 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3871 | am__fastdepCC_TRUE= | |
3872 | am__fastdepCC_FALSE='#' | |
3873 | else | |
3874 | am__fastdepCC_TRUE='#' | |
3875 | am__fastdepCC_FALSE= | |
3876 | fi | |
3877 | ||
3878 | ||
8d138742 CE |
3879 | case `pwd` in |
3880 | *\ * | *\ *) | |
b0322a85 | 3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3882 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3883 | esac | |
3884 | ||
3885 | ||
3886 | ||
d50284c4 CE |
3887 | macro_version='2.4.6' |
3888 | macro_revision='2.4.6' | |
8d138742 CE |
3889 | |
3890 | ||
3891 | ||
3892 | ||
dd184caf | 3893 | |
d9898ee8 | 3894 | |
dd184caf | 3895 | |
d9898ee8 | 3896 | |
dd184caf | 3897 | |
d9898ee8 | 3898 | |
8d138742 CE |
3899 | |
3900 | ||
3901 | ||
d50284c4 | 3902 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 3903 | |
d9898ee8 | 3904 | # Make sure we can run config.sub. |
dd184caf | 3905 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 3906 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 3907 | |
b0322a85 | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 3909 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 3910 | if ${ac_cv_build+:} false; then : |
8d138742 | 3911 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3912 | else |
dd184caf | 3913 | ac_build_alias=$build_alias |
3914 | test "x$ac_build_alias" = x && | |
3915 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3916 | test "x$ac_build_alias" = x && | |
b0322a85 | 3917 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 3918 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 3919 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 3920 | |
3921 | fi | |
b0322a85 | 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 3923 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 3924 | case $ac_cv_build in |
3925 | *-*-*) ;; | |
b0322a85 | 3926 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 3927 | esac |
d9898ee8 | 3928 | build=$ac_cv_build |
dd184caf | 3929 | ac_save_IFS=$IFS; IFS='-' |
3930 | set x $ac_cv_build | |
3931 | shift | |
3932 | build_cpu=$1 | |
3933 | build_vendor=$2 | |
3934 | shift; shift | |
3935 | # Remember, the first character of IFS is used to create $*, | |
3936 | # except with old shells: | |
3937 | build_os=$* | |
3938 | IFS=$ac_save_IFS | |
3939 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3940 | ||
3941 | ||
b0322a85 | 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 3943 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 3944 | if ${ac_cv_host+:} false; then : |
8d138742 | 3945 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3946 | else |
dd184caf | 3947 | if test "x$host_alias" = x; then |
3948 | ac_cv_host=$ac_cv_build | |
3949 | else | |
3950 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 3951 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 3952 | fi |
d9898ee8 | 3953 | |
3954 | fi | |
b0322a85 | 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 3956 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 3957 | case $ac_cv_host in |
3958 | *-*-*) ;; | |
b0322a85 | 3959 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 3960 | esac |
d9898ee8 | 3961 | host=$ac_cv_host |
dd184caf | 3962 | ac_save_IFS=$IFS; IFS='-' |
3963 | set x $ac_cv_host | |
3964 | shift | |
3965 | host_cpu=$1 | |
3966 | host_vendor=$2 | |
3967 | shift; shift | |
3968 | # Remember, the first character of IFS is used to create $*, | |
3969 | # except with old shells: | |
3970 | host_os=$* | |
3971 | IFS=$ac_save_IFS | |
3972 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3973 | ||
3974 | ||
b0322a85 CE |
3975 | # Backslashify metacharacters that are still active within |
3976 | # double-quoted strings. | |
3977 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
3978 | ||
3979 | # Same as above, but do not quote variable references. | |
3980 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
3981 | ||
3982 | # Sed substitution to delay expansion of an escaped shell variable in a | |
3983 | # double_quote_subst'ed string. | |
3984 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
3985 | ||
3986 | # Sed substitution to delay expansion of an escaped single quote. | |
3987 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
3988 | ||
3989 | # Sed substitution to avoid accidental globbing in evaled expressions | |
3990 | no_glob_subst='s/\*/\\\*/g' | |
3991 | ||
3992 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3993 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
3994 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
3995 | ||
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
3997 | $as_echo_n "checking how to print strings... " >&6; } | |
3998 | # Test print first, because it will be a builtin if present. | |
3999 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4000 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4001 | ECHO='print -r --' | |
4002 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4003 | ECHO='printf %s\n' | |
4004 | else | |
4005 | # Use this function as a fallback that always works. | |
4006 | func_fallback_echo () | |
4007 | { | |
4008 | eval 'cat <<_LTECHO_EOF | |
4009 | $1 | |
4010 | _LTECHO_EOF' | |
4011 | } | |
4012 | ECHO='func_fallback_echo' | |
4013 | fi | |
4014 | ||
4015 | # func_echo_all arg... | |
4016 | # Invoke $ECHO with all args, space-separated. | |
4017 | func_echo_all () | |
4018 | { | |
4019 | $ECHO "" | |
4020 | } | |
4021 | ||
d50284c4 | 4022 | case $ECHO in |
b0322a85 CE |
4023 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4024 | $as_echo "printf" >&6; } ;; | |
4025 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4026 | $as_echo "print -r" >&6; } ;; | |
4027 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4028 | $as_echo "cat" >&6; } ;; | |
4029 | esac | |
4030 | ||
4031 | ||
4032 | ||
4033 | ||
4034 | ||
4035 | ||
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4045 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4046 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4047 | $as_echo_n "(cached) " >&6 |
4048 | else | |
4049 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4050 | for ac_i in 1 2 3 4 5 6 7; do | |
4051 | ac_script="$ac_script$as_nl$ac_script" | |
4052 | done | |
4053 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4054 | { ac_script=; unset ac_script;} |
8d138742 CE |
4055 | if test -z "$SED"; then |
4056 | ac_path_SED_found=false | |
4057 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4059 | for as_dir in $PATH |
4060 | do | |
4061 | IFS=$as_save_IFS | |
4062 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4063 | for ac_prog in sed gsed; do |
d9898ee8 | 4064 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4065 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4066 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4067 | # Check for GNU ac_path_SED and select it if it is found. |
4068 | # Check for GNU $ac_path_SED | |
4069 | case `"$ac_path_SED" --version 2>&1` in | |
4070 | *GNU*) | |
4071 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4072 | *) | |
4073 | ac_count=0 | |
4074 | $as_echo_n 0123456789 >"conftest.in" | |
4075 | while : | |
4076 | do | |
4077 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4078 | mv "conftest.tmp" "conftest.in" | |
4079 | cp "conftest.in" "conftest.nl" | |
4080 | $as_echo '' >> "conftest.nl" | |
4081 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4082 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4083 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4084 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4085 | # Best one so far, save it but keep looking for a better one | |
4086 | ac_cv_path_SED="$ac_path_SED" | |
4087 | ac_path_SED_max=$ac_count | |
4088 | fi | |
4089 | # 10*(2^10) chars as input seems more than enough | |
4090 | test $ac_count -gt 10 && break | |
4091 | done | |
4092 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4093 | esac | |
4094 | ||
4095 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4096 | done |
4097 | done | |
b0322a85 | 4098 | done |
d9898ee8 | 4099 | IFS=$as_save_IFS |
8d138742 | 4100 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4101 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4102 | fi |
8d138742 CE |
4103 | else |
4104 | ac_cv_path_SED=$SED | |
4105 | fi | |
d9898ee8 | 4106 | |
4107 | fi | |
b0322a85 | 4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4109 | $as_echo "$ac_cv_path_SED" >&6; } |
4110 | SED="$ac_cv_path_SED" | |
4111 | rm -f conftest.sed | |
4112 | ||
4113 | test -z "$SED" && SED=sed | |
4114 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4115 | |
d9898ee8 | 4116 | |
dd184caf | 4117 | |
8d138742 CE |
4118 | |
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | ||
4124 | ||
4125 | ||
b0322a85 | 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4127 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4128 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4129 | $as_echo_n "(cached) " >&6 |
dd184caf | 4130 | else |
8d138742 | 4131 | if test -z "$GREP"; then |
dd184caf | 4132 | ac_path_GREP_found=false |
8d138742 CE |
4133 | # Loop through the user's path and test for each of PROGNAME-LIST |
4134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4135 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4136 | do | |
4137 | IFS=$as_save_IFS | |
4138 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4139 | for ac_prog in grep ggrep; do |
8d138742 CE |
4140 | for ac_exec_ext in '' $ac_executable_extensions; do |
4141 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4142 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4143 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4144 | # Check for GNU $ac_path_GREP |
4145 | case `"$ac_path_GREP" --version 2>&1` in | |
4146 | *GNU*) | |
4147 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4148 | *) | |
4149 | ac_count=0 | |
8d138742 | 4150 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4151 | while : |
4152 | do | |
4153 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4154 | mv "conftest.tmp" "conftest.in" | |
4155 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4156 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4157 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4158 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4159 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4160 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4161 | # Best one so far, save it but keep looking for a better one | |
4162 | ac_cv_path_GREP="$ac_path_GREP" | |
4163 | ac_path_GREP_max=$ac_count | |
4164 | fi | |
4165 | # 10*(2^10) chars as input seems more than enough | |
4166 | test $ac_count -gt 10 && break | |
4167 | done | |
4168 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4169 | esac | |
4170 | ||
8d138742 CE |
4171 | $ac_path_GREP_found && break 3 |
4172 | done | |
dd184caf | 4173 | done |
b0322a85 | 4174 | done |
dd184caf | 4175 | IFS=$as_save_IFS |
8d138742 | 4176 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4177 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4178 | fi |
dd184caf | 4179 | else |
4180 | ac_cv_path_GREP=$GREP | |
4181 | fi | |
4182 | ||
dd184caf | 4183 | fi |
b0322a85 | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4185 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4186 | GREP="$ac_cv_path_GREP" |
4187 | ||
4188 | ||
b0322a85 | 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4190 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4191 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4192 | $as_echo_n "(cached) " >&6 |
dd184caf | 4193 | else |
4194 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4195 | then ac_cv_path_EGREP="$GREP -E" | |
4196 | else | |
8d138742 | 4197 | if test -z "$EGREP"; then |
dd184caf | 4198 | ac_path_EGREP_found=false |
8d138742 CE |
4199 | # Loop through the user's path and test for each of PROGNAME-LIST |
4200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4201 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4202 | do | |
4203 | IFS=$as_save_IFS | |
4204 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4205 | for ac_prog in egrep; do |
8d138742 CE |
4206 | for ac_exec_ext in '' $ac_executable_extensions; do |
4207 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4208 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4209 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4210 | # Check for GNU $ac_path_EGREP |
4211 | case `"$ac_path_EGREP" --version 2>&1` in | |
4212 | *GNU*) | |
4213 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4214 | *) | |
4215 | ac_count=0 | |
8d138742 | 4216 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4217 | while : |
4218 | do | |
4219 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4220 | mv "conftest.tmp" "conftest.in" | |
4221 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4222 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4223 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4224 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4225 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4226 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4227 | # Best one so far, save it but keep looking for a better one | |
4228 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4229 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4230 | fi |
dd184caf | 4231 | # 10*(2^10) chars as input seems more than enough |
4232 | test $ac_count -gt 10 && break | |
4233 | done | |
4234 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4235 | esac | |
4236 | ||
8d138742 CE |
4237 | $ac_path_EGREP_found && break 3 |
4238 | done | |
dd184caf | 4239 | done |
b0322a85 | 4240 | done |
dd184caf | 4241 | IFS=$as_save_IFS |
8d138742 | 4242 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4243 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4244 | fi |
4245 | else | |
4246 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4247 | fi |
4248 | ||
8d138742 | 4249 | fi |
dd184caf | 4250 | fi |
b0322a85 | 4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4252 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4253 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4254 | |
8d138742 | 4255 | |
b0322a85 | 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4257 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4258 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4259 | $as_echo_n "(cached) " >&6 |
dd184caf | 4260 | else |
8d138742 CE |
4261 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4262 | then ac_cv_path_FGREP="$GREP -F" | |
4263 | else | |
4264 | if test -z "$FGREP"; then | |
4265 | ac_path_FGREP_found=false | |
4266 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4268 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4269 | do | |
4270 | IFS=$as_save_IFS | |
4271 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4272 | for ac_prog in fgrep; do |
8d138742 CE |
4273 | for ac_exec_ext in '' $ac_executable_extensions; do |
4274 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4275 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4276 | # Check for GNU ac_path_FGREP and select it if it is found. |
4277 | # Check for GNU $ac_path_FGREP | |
4278 | case `"$ac_path_FGREP" --version 2>&1` in | |
4279 | *GNU*) | |
4280 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4281 | *) | |
4282 | ac_count=0 | |
4283 | $as_echo_n 0123456789 >"conftest.in" | |
4284 | while : | |
4285 | do | |
4286 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4287 | mv "conftest.tmp" "conftest.in" | |
4288 | cp "conftest.in" "conftest.nl" | |
4289 | $as_echo 'FGREP' >> "conftest.nl" | |
4290 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4291 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4292 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4293 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4294 | # Best one so far, save it but keep looking for a better one | |
4295 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4296 | ac_path_FGREP_max=$ac_count | |
4297 | fi | |
4298 | # 10*(2^10) chars as input seems more than enough | |
4299 | test $ac_count -gt 10 && break | |
4300 | done | |
4301 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4302 | esac | |
dd184caf | 4303 | |
8d138742 CE |
4304 | $ac_path_FGREP_found && break 3 |
4305 | done | |
4306 | done | |
b0322a85 | 4307 | done |
8d138742 CE |
4308 | IFS=$as_save_IFS |
4309 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4310 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4311 | fi |
4312 | else | |
4313 | ac_cv_path_FGREP=$FGREP | |
4314 | fi | |
dd184caf | 4315 | |
4316 | fi | |
d9898ee8 | 4317 | fi |
b0322a85 | 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4319 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4320 | FGREP="$ac_cv_path_FGREP" | |
4321 | ||
4322 | ||
4323 | test -z "$GREP" && GREP=grep | |
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
4335 | ||
4336 | ||
4337 | ||
4338 | ||
4339 | ||
d9898ee8 | 4340 | |
4341 | ||
4342 | ||
dd184caf | 4343 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4344 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4345 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4346 | else |
4347 | with_gnu_ld=no | |
dd184caf | 4348 | fi |
4349 | ||
d9898ee8 | 4350 | ac_prog=ld |
d50284c4 | 4351 | if test yes = "$GCC"; then |
d9898ee8 | 4352 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4354 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4355 | case $host in |
4356 | *-*-mingw*) | |
d50284c4 | 4357 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4358 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4359 | *) | |
4360 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4361 | esac | |
4362 | case $ac_prog in | |
4363 | # Accept absolute paths. | |
4364 | [\\/]* | ?:[\\/]*) | |
4365 | re_direlt='/[^/][^/]*/\.\./' | |
4366 | # Canonicalize the pathname of ld | |
8d138742 CE |
4367 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4368 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4369 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4370 | done |
d50284c4 | 4371 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4372 | ;; |
4373 | "") | |
4374 | # If it fails, then pretend we aren't using GCC. | |
4375 | ac_prog=ld | |
4376 | ;; | |
4377 | *) | |
4378 | # If it is relative, then search for the first ld in PATH. | |
4379 | with_gnu_ld=unknown | |
4380 | ;; | |
4381 | esac | |
d50284c4 | 4382 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4384 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4385 | else |
b0322a85 | 4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4387 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4388 | fi |
b0322a85 | 4389 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4390 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4391 | else |
4392 | if test -z "$LD"; then | |
d50284c4 | 4393 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4394 | for ac_dir in $PATH; do |
d50284c4 | 4395 | IFS=$lt_save_ifs |
d9898ee8 | 4396 | test -z "$ac_dir" && ac_dir=. |
4397 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4398 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4399 | # Check to see if the program is GNU ld. I'd rather use --version, |
4400 | # but apparently some variants of GNU ld only accept -v. | |
4401 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4402 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4403 | *GNU* | *'with BFD'*) | |
d50284c4 | 4404 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4405 | ;; |
4406 | *) | |
d50284c4 | 4407 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4408 | ;; |
4409 | esac | |
4410 | fi | |
4411 | done | |
d50284c4 | 4412 | IFS=$lt_save_ifs |
d9898ee8 | 4413 | else |
d50284c4 | 4414 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4415 | fi |
4416 | fi | |
4417 | ||
d50284c4 | 4418 | LD=$lt_cv_path_LD |
d9898ee8 | 4419 | if test -n "$LD"; then |
b0322a85 | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4421 | $as_echo "$LD" >&6; } |
d9898ee8 | 4422 | else |
b0322a85 | 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4424 | $as_echo "no" >&6; } |
d9898ee8 | 4425 | fi |
b0322a85 CE |
4426 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4428 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4429 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4430 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4431 | else |
4432 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4433 | case `$LD -v 2>&1 </dev/null` in | |
4434 | *GNU* | *'with BFD'*) | |
4435 | lt_cv_prog_gnu_ld=yes | |
4436 | ;; | |
4437 | *) | |
4438 | lt_cv_prog_gnu_ld=no | |
4439 | ;; | |
4440 | esac | |
4441 | fi | |
b0322a85 | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4443 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4444 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4445 | ||
4446 | ||
d9898ee8 | 4447 | |
8d138742 CE |
4448 | |
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
b0322a85 | 4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4455 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4456 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4457 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4458 | else |
4459 | if test -n "$NM"; then | |
4460 | # Let the user override the test. | |
d50284c4 | 4461 | lt_cv_path_NM=$NM |
d9898ee8 | 4462 | else |
d50284c4 | 4463 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4464 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4465 | lt_nm_to_check="$lt_nm_to_check nm" | |
4466 | fi | |
4467 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4468 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4469 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4470 | IFS=$lt_save_ifs |
d9898ee8 | 4471 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4472 | tmp_nm=$ac_dir/$lt_tmp_nm |
4473 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4474 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4475 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4476 | # nm: unknown option "B" ignored |
4477 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4478 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4479 | case $build_os in | |
4480 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4481 | *) lt_bad_file=/dev/null ;; | |
4482 | esac | |
4483 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4484 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4485 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4486 | break 2 |
d9898ee8 | 4487 | ;; |
4488 | *) | |
4489 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4490 | */dev/null*) | |
4491 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4492 | break 2 |
d9898ee8 | 4493 | ;; |
4494 | *) | |
4495 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4496 | continue # so that we can try to find one that supports BSD flags | |
4497 | ;; | |
4498 | esac | |
4499 | ;; | |
4500 | esac | |
4501 | fi | |
4502 | done | |
d50284c4 | 4503 | IFS=$lt_save_ifs |
d9898ee8 | 4504 | done |
8d138742 | 4505 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4506 | fi |
4507 | fi | |
b0322a85 | 4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4509 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4510 | if test no != "$lt_cv_path_NM"; then |
4511 | NM=$lt_cv_path_NM | |
d9898ee8 | 4512 | else |
8d138742 | 4513 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4514 | if test -n "$DUMPBIN"; then : |
4515 | # Let the user override the test. | |
4516 | else | |
4517 | if test -n "$ac_tool_prefix"; then | |
4518 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4519 | do |
4520 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4521 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4523 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4524 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4525 | $as_echo_n "(cached) " >&6 |
4526 | else | |
4527 | if test -n "$DUMPBIN"; then | |
4528 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4529 | else | |
4530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4531 | for as_dir in $PATH | |
4532 | do | |
4533 | IFS=$as_save_IFS | |
4534 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4535 | for ac_exec_ext in '' $ac_executable_extensions; do |
4536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4537 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4539 | break 2 |
4540 | fi | |
4541 | done | |
b0322a85 | 4542 | done |
8d138742 | 4543 | IFS=$as_save_IFS |
d9898ee8 | 4544 | |
8d138742 CE |
4545 | fi |
4546 | fi | |
4547 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4548 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4550 | $as_echo "$DUMPBIN" >&6; } |
4551 | else | |
b0322a85 | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4553 | $as_echo "no" >&6; } |
4554 | fi | |
d9898ee8 | 4555 | |
d9898ee8 | 4556 | |
8d138742 CE |
4557 | test -n "$DUMPBIN" && break |
4558 | done | |
4559 | fi | |
4560 | if test -z "$DUMPBIN"; then | |
4561 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4562 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4563 | do |
4564 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4565 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4567 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4568 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4569 | $as_echo_n "(cached) " >&6 |
4570 | else | |
4571 | if test -n "$ac_ct_DUMPBIN"; then | |
4572 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4573 | else | |
4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4575 | for as_dir in $PATH | |
4576 | do | |
4577 | IFS=$as_save_IFS | |
4578 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
4580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4581 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4583 | break 2 |
ac40fd9e | 4584 | fi |
8d138742 | 4585 | done |
b0322a85 | 4586 | done |
8d138742 | 4587 | IFS=$as_save_IFS |
d9898ee8 | 4588 | |
8d138742 CE |
4589 | fi |
4590 | fi | |
4591 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4592 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4594 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4595 | else | |
b0322a85 | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4597 | $as_echo "no" >&6; } |
4598 | fi | |
d9898ee8 | 4599 | |
8d138742 CE |
4600 | |
4601 | test -n "$ac_ct_DUMPBIN" && break | |
4602 | done | |
4603 | ||
4604 | if test "x$ac_ct_DUMPBIN" = x; then | |
4605 | DUMPBIN=":" | |
d9898ee8 | 4606 | else |
8d138742 CE |
4607 | case $cross_compiling:$ac_tool_warned in |
4608 | yes:) | |
b0322a85 | 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4611 | ac_tool_warned=yes ;; | |
4612 | esac | |
4613 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4614 | fi |
8d138742 | 4615 | fi |
d9898ee8 | 4616 | |
d50284c4 | 4617 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4618 | *COFF*) |
d50284c4 | 4619 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4620 | ;; |
4621 | *) | |
4622 | DUMPBIN=: | |
4623 | ;; | |
4624 | esac | |
4625 | fi | |
d9898ee8 | 4626 | |
d50284c4 CE |
4627 | if test : != "$DUMPBIN"; then |
4628 | NM=$DUMPBIN | |
8d138742 CE |
4629 | fi |
4630 | fi | |
4631 | test -z "$NM" && NM=nm | |
d9898ee8 | 4632 | |
d9898ee8 | 4633 | |
d9898ee8 | 4634 | |
d9898ee8 | 4635 | |
d9898ee8 | 4636 | |
d9898ee8 | 4637 | |
b0322a85 | 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4639 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4640 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4641 | $as_echo_n "(cached) " >&6 |
4642 | else | |
4643 | lt_cv_nm_interface="BSD nm" | |
4644 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4645 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4646 | (eval "$ac_compile" 2>conftest.err) |
4647 | cat conftest.err >&5 | |
b0322a85 | 4648 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4649 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4650 | cat conftest.err >&5 | |
b0322a85 | 4651 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4652 | cat conftest.out >&5 |
4653 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4654 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4655 | fi |
8d138742 CE |
4656 | rm -f conftest* |
4657 | fi | |
b0322a85 | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4659 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4660 | |
8d138742 | 4661 | # find the maximum length of command line arguments |
b0322a85 | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4663 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4664 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4665 | $as_echo_n "(cached) " >&6 |
4666 | else | |
4667 | i=0 | |
d50284c4 | 4668 | teststring=ABCD |
d9898ee8 | 4669 | |
8d138742 CE |
4670 | case $build_os in |
4671 | msdosdjgpp*) | |
4672 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4673 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4674 | # during glob expansion). Even if it were fixed, the result of this | |
4675 | # check would be larger than it should be. | |
4676 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4677 | ;; | |
ac40fd9e | 4678 | |
8d138742 CE |
4679 | gnu*) |
4680 | # Under GNU Hurd, this test is not required because there is | |
4681 | # no limit to the length of command line arguments. | |
4682 | # Libtool will interpret -1 as no limit whatsoever | |
4683 | lt_cv_sys_max_cmd_len=-1; | |
4684 | ;; | |
d9898ee8 | 4685 | |
8d138742 CE |
4686 | cygwin* | mingw* | cegcc*) |
4687 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4688 | # about 5 minutes as the teststring grows exponentially. | |
4689 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4690 | # you end up with a "frozen" computer, even though with patience | |
4691 | # the test eventually succeeds (with a max line length of 256k). | |
4692 | # Instead, let's just punt: use the minimum linelength reported by | |
4693 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4694 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4695 | ;; |
8d138742 | 4696 | |
b0322a85 CE |
4697 | mint*) |
4698 | # On MiNT this can take a long time and run out of memory. | |
4699 | lt_cv_sys_max_cmd_len=8192; | |
4700 | ;; | |
4701 | ||
8d138742 CE |
4702 | amigaos*) |
4703 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4704 | # So we just punt and use a minimum line length of 8192. | |
4705 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4706 | ;; |
8d138742 | 4707 | |
d50284c4 | 4708 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4709 | # This has been around since 386BSD, at least. Likely further. |
4710 | if test -x /sbin/sysctl; then | |
4711 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4712 | elif test -x /usr/sbin/sysctl; then | |
4713 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4714 | else | |
4715 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4716 | fi | |
4717 | # And add a safety zone | |
4718 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4719 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4720 | ;; |
8d138742 CE |
4721 | |
4722 | interix*) | |
4723 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4724 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4725 | ;; |
8d138742 | 4726 | |
b0322a85 CE |
4727 | os2*) |
4728 | # The test takes a long time on OS/2. | |
4729 | lt_cv_sys_max_cmd_len=8192 | |
4730 | ;; | |
4731 | ||
8d138742 CE |
4732 | osf*) |
4733 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4734 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4735 | # nice to cause kernel panics so lets avoid the loop below. | |
4736 | # First set a reasonable default. | |
4737 | lt_cv_sys_max_cmd_len=16384 | |
4738 | # | |
4739 | if test -x /sbin/sysconfig; then | |
4740 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4741 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4742 | esac | |
4743 | fi | |
d9898ee8 | 4744 | ;; |
8d138742 CE |
4745 | sco3.2v5*) |
4746 | lt_cv_sys_max_cmd_len=102400 | |
4747 | ;; | |
4748 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4749 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4750 | if test -n "$kargmax"; then | |
4751 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4752 | else | |
4753 | lt_cv_sys_max_cmd_len=32768 | |
4754 | fi | |
4755 | ;; | |
4756 | *) | |
4757 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4758 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4759 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4760 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4761 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4762 | else | |
4763 | # Make teststring a little bigger before we do anything with it. | |
4764 | # a 1K string should be a reasonable start. | |
d50284c4 | 4765 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4766 | teststring=$teststring$teststring |
4767 | done | |
4768 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4769 | # If test is not a shell built-in, we'll probably end up computing a | |
4770 | # maximum length that is only half of the actual maximum length, but | |
4771 | # we can't tell. | |
d50284c4 | 4772 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 4773 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 4774 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
4775 | do |
4776 | i=`expr $i + 1` | |
4777 | teststring=$teststring$teststring | |
4778 | done | |
4779 | # Only check the string length outside the loop. | |
4780 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4781 | teststring= | |
4782 | # Add a significant safety factor because C++ compilers can tack on | |
4783 | # massive amounts of additional arguments before passing them to the | |
4784 | # linker. It appears as though 1/2 is a usable value. | |
4785 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4786 | fi | |
d9898ee8 | 4787 | ;; |
4788 | esac | |
d9898ee8 | 4789 | |
8d138742 | 4790 | fi |
d9898ee8 | 4791 | |
d50284c4 | 4792 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4794 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4795 | else | |
b0322a85 | 4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4797 | $as_echo "none" >&6; } |
d9898ee8 | 4798 | fi |
8d138742 | 4799 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4800 | |
4801 | ||
4802 | ||
4803 | ||
d9898ee8 | 4804 | |
d9898ee8 | 4805 | |
8d138742 CE |
4806 | : ${CP="cp -f"} |
4807 | : ${MV="mv -f"} | |
4808 | : ${RM="rm -f"} | |
d9898ee8 | 4809 | |
8d138742 CE |
4810 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4811 | lt_unset=unset | |
d9898ee8 | 4812 | else |
8d138742 CE |
4813 | lt_unset=false |
4814 | fi | |
d9898ee8 | 4815 | |
d9898ee8 | 4816 | |
d9898ee8 | 4817 | |
dd184caf | 4818 | |
d9898ee8 | 4819 | |
8d138742 CE |
4820 | # test EBCDIC or ASCII |
4821 | case `echo X|tr X '\101'` in | |
4822 | A) # ASCII based system | |
4823 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4824 | lt_SP2NL='tr \040 \012' | |
4825 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4826 | ;; |
8d138742 CE |
4827 | *) # EBCDIC based system |
4828 | lt_SP2NL='tr \100 \n' | |
4829 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4830 | ;; |
8d138742 | 4831 | esac |
d9898ee8 | 4832 | |
4833 | ||
d9898ee8 | 4834 | |
d9898ee8 | 4835 | |
4836 | ||
8d138742 CE |
4837 | |
4838 | ||
4839 | ||
4840 | ||
b0322a85 CE |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4842 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4843 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4844 | $as_echo_n "(cached) " >&6 | |
4845 | else | |
4846 | case $host in | |
4847 | *-*-mingw* ) | |
4848 | case $build in | |
4849 | *-*-mingw* ) # actually msys | |
4850 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4851 | ;; | |
4852 | *-*-cygwin* ) | |
4853 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4854 | ;; | |
4855 | * ) # otherwise, assume *nix | |
4856 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4857 | ;; | |
4858 | esac | |
4859 | ;; | |
4860 | *-*-cygwin* ) | |
4861 | case $build in | |
4862 | *-*-mingw* ) # actually msys | |
4863 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4864 | ;; | |
4865 | *-*-cygwin* ) | |
4866 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4867 | ;; | |
4868 | * ) # otherwise, assume *nix | |
4869 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4870 | ;; | |
4871 | esac | |
4872 | ;; | |
4873 | * ) # unhandled hosts (and "normal" native builds) | |
4874 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4875 | ;; | |
4876 | esac | |
4877 | ||
4878 | fi | |
4879 | ||
4880 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4882 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4889 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4890 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4891 | $as_echo_n "(cached) " >&6 | |
4892 | else | |
4893 | #assume ordinary cross tools, or native build. | |
4894 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4895 | case $host in | |
4896 | *-*-mingw* ) | |
4897 | case $build in | |
4898 | *-*-mingw* ) # actually msys | |
4899 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4900 | ;; | |
4901 | esac | |
4902 | ;; | |
4903 | esac | |
4904 | ||
4905 | fi | |
4906 | ||
4907 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
4909 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 4916 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 4917 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 4918 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4919 | else |
8d138742 CE |
4920 | lt_cv_ld_reload_flag='-r' |
4921 | fi | |
b0322a85 | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
4923 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
4924 | reload_flag=$lt_cv_ld_reload_flag | |
4925 | case $reload_flag in | |
4926 | "" | " "*) ;; | |
4927 | *) reload_flag=" $reload_flag" ;; | |
4928 | esac | |
4929 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4930 | case $host_os in | |
b0322a85 | 4931 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 4932 | if test yes != "$GCC"; then |
b0322a85 CE |
4933 | reload_cmds=false |
4934 | fi | |
4935 | ;; | |
8d138742 | 4936 | darwin*) |
d50284c4 CE |
4937 | if test yes = "$GCC"; then |
4938 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
4939 | else |
4940 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4941 | fi | |
4942 | ;; | |
dd184caf | 4943 | esac |
d9898ee8 | 4944 | |
dd184caf | 4945 | |
d9898ee8 | 4946 | |
d9898ee8 | 4947 | |
dd184caf | 4948 | |
d9898ee8 | 4949 | |
d9898ee8 | 4950 | |
d9898ee8 | 4951 | |
8d138742 CE |
4952 | |
4953 | if test -n "$ac_tool_prefix"; then | |
4954 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4955 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4957 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4958 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 4959 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4960 | else |
8d138742 CE |
4961 | if test -n "$OBJDUMP"; then |
4962 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 4963 | else |
8d138742 CE |
4964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4965 | for as_dir in $PATH | |
4966 | do | |
4967 | IFS=$as_save_IFS | |
4968 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4969 | for ac_exec_ext in '' $ac_executable_extensions; do |
4970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4971 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 4972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4973 | break 2 |
4974 | fi | |
4975 | done | |
b0322a85 | 4976 | done |
8d138742 | 4977 | IFS=$as_save_IFS |
d9898ee8 | 4978 | |
8d138742 CE |
4979 | fi |
4980 | fi | |
4981 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4982 | if test -n "$OBJDUMP"; then | |
b0322a85 | 4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
4984 | $as_echo "$OBJDUMP" >&6; } |
4985 | else | |
b0322a85 | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4987 | $as_echo "no" >&6; } |
d9898ee8 | 4988 | fi |
dd184caf | 4989 | |
d9898ee8 | 4990 | |
8d138742 CE |
4991 | fi |
4992 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4993 | ac_ct_OBJDUMP=$OBJDUMP | |
4994 | # Extract the first word of "objdump", so it can be a program name with args. | |
4995 | set dummy objdump; ac_word=$2 | |
b0322a85 | 4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4997 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4998 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 4999 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5000 | else |
8d138742 CE |
5001 | if test -n "$ac_ct_OBJDUMP"; then |
5002 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5003 | else | |
5004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5005 | for as_dir in $PATH | |
5006 | do | |
5007 | IFS=$as_save_IFS | |
5008 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5009 | for ac_exec_ext in '' $ac_executable_extensions; do |
5010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5011 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5013 | break 2 |
5014 | fi | |
5015 | done | |
b0322a85 | 5016 | done |
8d138742 | 5017 | IFS=$as_save_IFS |
d9898ee8 | 5018 | |
8d138742 CE |
5019 | fi |
5020 | fi | |
5021 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5022 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
5024 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5025 | else | |
b0322a85 | 5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5027 | $as_echo "no" >&6; } |
d9898ee8 | 5028 | fi |
dd184caf | 5029 | |
8d138742 CE |
5030 | if test "x$ac_ct_OBJDUMP" = x; then |
5031 | OBJDUMP="false" | |
5032 | else | |
5033 | case $cross_compiling:$ac_tool_warned in | |
5034 | yes:) | |
b0322a85 | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5036 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5037 | ac_tool_warned=yes ;; | |
5038 | esac | |
5039 | OBJDUMP=$ac_ct_OBJDUMP | |
5040 | fi | |
d9898ee8 | 5041 | else |
8d138742 | 5042 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5043 | fi |
5044 | ||
8d138742 | 5045 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5046 | |
5047 | ||
d9898ee8 | 5048 | |
d9898ee8 | 5049 | |
d9898ee8 | 5050 | |
dd184caf | 5051 | |
d9898ee8 | 5052 | |
d9898ee8 | 5053 | |
8d138742 | 5054 | |
b0322a85 | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5056 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5057 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5058 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5059 | else |
8d138742 CE |
5060 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5061 | lt_cv_file_magic_test_file= | |
5062 | lt_cv_deplibs_check_method='unknown' | |
5063 | # Need to set the preceding variable on all platforms that support | |
5064 | # interlibrary dependencies. | |
5065 | # 'none' -- dependencies not supported. | |
d50284c4 | 5066 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5067 | # 'pass_all' -- all dependencies passed with no checks. |
5068 | # 'test_compile' -- check by making test program. | |
5069 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5070 | # that responds to the $file_magic_cmd with a given extended regex. |
5071 | # If you have 'file' or equivalent on your system and you're not sure | |
5072 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5073 | |
8d138742 CE |
5074 | case $host_os in |
5075 | aix[4-9]*) | |
5076 | lt_cv_deplibs_check_method=pass_all | |
5077 | ;; | |
d9898ee8 | 5078 | |
8d138742 CE |
5079 | beos*) |
5080 | lt_cv_deplibs_check_method=pass_all | |
5081 | ;; | |
d9898ee8 | 5082 | |
8d138742 CE |
5083 | bsdi[45]*) |
5084 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5085 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5086 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5087 | ;; | |
d9898ee8 | 5088 | |
8d138742 CE |
5089 | cygwin*) |
5090 | # func_win32_libid is a shell function defined in ltmain.sh | |
5091 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5092 | lt_cv_file_magic_cmd='func_win32_libid' | |
5093 | ;; | |
d9898ee8 | 5094 | |
8d138742 CE |
5095 | mingw* | pw32*) |
5096 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5097 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5098 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5099 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5100 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5101 | lt_cv_file_magic_cmd='func_win32_libid' | |
5102 | else | |
b0322a85 CE |
5103 | # Keep this pattern in sync with the one in func_win32_libid. |
5104 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5105 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5106 | fi | |
5107 | ;; | |
d9898ee8 | 5108 | |
b0322a85 | 5109 | cegcc*) |
8d138742 CE |
5110 | # use the weaker test based on 'objdump'. See mingw*. |
5111 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5112 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5113 | ;; | |
d9898ee8 | 5114 | |
8d138742 CE |
5115 | darwin* | rhapsody*) |
5116 | lt_cv_deplibs_check_method=pass_all | |
5117 | ;; | |
5118 | ||
5119 | freebsd* | dragonfly*) | |
5120 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5121 | case $host_cpu in | |
5122 | i*86 ) | |
5123 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5124 | # Let's accept both of them until this is cleared up. | |
5125 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5126 | lt_cv_file_magic_cmd=/usr/bin/file | |
5127 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5128 | ;; | |
5129 | esac | |
5130 | else | |
5131 | lt_cv_deplibs_check_method=pass_all | |
5132 | fi | |
5133 | ;; | |
dd184caf | 5134 | |
b0322a85 CE |
5135 | haiku*) |
5136 | lt_cv_deplibs_check_method=pass_all | |
5137 | ;; | |
5138 | ||
8d138742 CE |
5139 | hpux10.20* | hpux11*) |
5140 | lt_cv_file_magic_cmd=/usr/bin/file | |
5141 | case $host_cpu in | |
5142 | ia64*) | |
5143 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5144 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5145 | ;; | |
5146 | hppa*64*) | |
b0322a85 | 5147 | 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 |
5148 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5149 | ;; | |
5150 | *) | |
b0322a85 | 5151 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5152 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5153 | ;; | |
5154 | esac | |
5155 | ;; | |
d9898ee8 | 5156 | |
8d138742 CE |
5157 | interix[3-9]*) |
5158 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5159 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5160 | ;; | |
d9898ee8 | 5161 | |
8d138742 CE |
5162 | irix5* | irix6* | nonstopux*) |
5163 | case $LD in | |
5164 | *-32|*"-32 ") libmagic=32-bit;; | |
5165 | *-n32|*"-n32 ") libmagic=N32;; | |
5166 | *-64|*"-64 ") libmagic=64-bit;; | |
5167 | *) libmagic=never-match;; | |
5168 | esac | |
5169 | lt_cv_deplibs_check_method=pass_all | |
5170 | ;; | |
d9898ee8 | 5171 | |
b0322a85 | 5172 | # This must be glibc/ELF. |
d50284c4 | 5173 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 CE |
5174 | lt_cv_deplibs_check_method=pass_all |
5175 | ;; | |
5176 | ||
5177 | netbsd*) | |
5178 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5179 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5180 | else | |
5181 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5182 | fi | |
5183 | ;; | |
5184 | ||
5185 | newos6*) | |
5186 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5187 | lt_cv_file_magic_cmd=/usr/bin/file | |
5188 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5189 | ;; | |
5190 | ||
5191 | *nto* | *qnx*) | |
5192 | lt_cv_deplibs_check_method=pass_all | |
5193 | ;; | |
5194 | ||
d50284c4 CE |
5195 | openbsd* | bitrig*) |
5196 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
b0322a85 CE |
5197 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5198 | else | |
5199 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5200 | fi | |
5201 | ;; | |
5202 | ||
5203 | osf3* | osf4* | osf5*) | |
5204 | lt_cv_deplibs_check_method=pass_all | |
5205 | ;; | |
5206 | ||
5207 | rdos*) | |
5208 | lt_cv_deplibs_check_method=pass_all | |
5209 | ;; | |
5210 | ||
5211 | solaris*) | |
5212 | lt_cv_deplibs_check_method=pass_all | |
5213 | ;; | |
5214 | ||
5215 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5216 | lt_cv_deplibs_check_method=pass_all | |
5217 | ;; | |
5218 | ||
5219 | sysv4 | sysv4.3*) | |
5220 | case $host_vendor in | |
5221 | motorola) | |
5222 | 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]' | |
5223 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5224 | ;; | |
5225 | ncr) | |
5226 | lt_cv_deplibs_check_method=pass_all | |
5227 | ;; | |
5228 | sequent) | |
5229 | lt_cv_file_magic_cmd='/bin/file' | |
5230 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5231 | ;; | |
5232 | sni) | |
5233 | lt_cv_file_magic_cmd='/bin/file' | |
5234 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5235 | lt_cv_file_magic_test_file=/lib/libc.so | |
5236 | ;; | |
5237 | siemens) | |
5238 | lt_cv_deplibs_check_method=pass_all | |
5239 | ;; | |
5240 | pc) | |
5241 | lt_cv_deplibs_check_method=pass_all | |
5242 | ;; | |
5243 | esac | |
5244 | ;; | |
5245 | ||
5246 | tpf*) | |
5247 | lt_cv_deplibs_check_method=pass_all | |
5248 | ;; | |
d50284c4 CE |
5249 | os2*) |
5250 | lt_cv_deplibs_check_method=pass_all | |
5251 | ;; | |
b0322a85 CE |
5252 | esac |
5253 | ||
5254 | fi | |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5256 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5257 | ||
5258 | file_magic_glob= | |
5259 | want_nocaseglob=no | |
5260 | if test "$build" = "$host"; then | |
5261 | case $host_os in | |
5262 | mingw* | pw32*) | |
5263 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5264 | want_nocaseglob=yes | |
5265 | else | |
5266 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5267 | fi | |
5268 | ;; | |
5269 | esac | |
5270 | fi | |
5271 | ||
5272 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5273 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5274 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | ||
5293 | ||
5294 | ||
5295 | ||
5296 | ||
5297 | if test -n "$ac_tool_prefix"; then | |
5298 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5299 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5301 | $as_echo_n "checking for $ac_word... " >&6; } | |
5302 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5303 | $as_echo_n "(cached) " >&6 | |
5304 | else | |
5305 | if test -n "$DLLTOOL"; then | |
5306 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5307 | else | |
5308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5309 | for as_dir in $PATH | |
5310 | do | |
5311 | IFS=$as_save_IFS | |
5312 | test -z "$as_dir" && as_dir=. | |
5313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5315 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5317 | break 2 | |
5318 | fi | |
5319 | done | |
5320 | done | |
5321 | IFS=$as_save_IFS | |
5322 | ||
5323 | fi | |
5324 | fi | |
5325 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5326 | if test -n "$DLLTOOL"; then | |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5328 | $as_echo "$DLLTOOL" >&6; } | |
5329 | else | |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5331 | $as_echo "no" >&6; } | |
5332 | fi | |
5333 | ||
5334 | ||
5335 | fi | |
5336 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5337 | ac_ct_DLLTOOL=$DLLTOOL | |
5338 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5339 | set dummy dlltool; ac_word=$2 | |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5341 | $as_echo_n "checking for $ac_word... " >&6; } | |
5342 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5343 | $as_echo_n "(cached) " >&6 | |
5344 | else | |
5345 | if test -n "$ac_ct_DLLTOOL"; then | |
5346 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5347 | else | |
5348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5349 | for as_dir in $PATH | |
5350 | do | |
5351 | IFS=$as_save_IFS | |
5352 | test -z "$as_dir" && as_dir=. | |
5353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5354 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5355 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5357 | break 2 | |
5358 | fi | |
5359 | done | |
5360 | done | |
5361 | IFS=$as_save_IFS | |
5362 | ||
5363 | fi | |
5364 | fi | |
5365 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5366 | if test -n "$ac_ct_DLLTOOL"; then | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5368 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5369 | else | |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5371 | $as_echo "no" >&6; } | |
5372 | fi | |
d9898ee8 | 5373 | |
b0322a85 CE |
5374 | if test "x$ac_ct_DLLTOOL" = x; then |
5375 | DLLTOOL="false" | |
8d138742 | 5376 | else |
b0322a85 CE |
5377 | case $cross_compiling:$ac_tool_warned in |
5378 | yes:) | |
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5380 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5381 | ac_tool_warned=yes ;; | |
5382 | esac | |
5383 | DLLTOOL=$ac_ct_DLLTOOL | |
8d138742 | 5384 | fi |
b0322a85 CE |
5385 | else |
5386 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5387 | fi | |
d9898ee8 | 5388 | |
b0322a85 | 5389 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
d9898ee8 | 5390 | |
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
b0322a85 CE |
5397 | |
5398 | ||
5399 | ||
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5401 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5402 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5403 | $as_echo_n "(cached) " >&6 | |
5404 | else | |
5405 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5406 | ||
5407 | case $host_os in | |
5408 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5409 | # two different shell functions defined in ltmain.sh; |
5410 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5411 | case `$DLLTOOL --help 2>&1` in |
5412 | *--identify-strict*) | |
5413 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8d138742 | 5414 | ;; |
b0322a85 CE |
5415 | *) |
5416 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8d138742 CE |
5417 | ;; |
5418 | esac | |
5419 | ;; | |
b0322a85 CE |
5420 | *) |
5421 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5422 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
8d138742 | 5423 | ;; |
dd184caf | 5424 | esac |
d9898ee8 | 5425 | |
d9898ee8 | 5426 | fi |
b0322a85 CE |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5428 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5429 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5430 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
d9898ee8 | 5431 | |
5432 | ||
d9898ee8 | 5433 | |
dd184caf | 5434 | |
d9898ee8 | 5435 | |
d9898ee8 | 5436 | |
d9898ee8 | 5437 | |
d9898ee8 | 5438 | |
8d138742 | 5439 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5440 | for ac_prog in ar |
5441 | do | |
5442 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5443 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5445 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5446 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5447 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5448 | else |
8d138742 CE |
5449 | if test -n "$AR"; then |
5450 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5451 | else |
5452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5453 | for as_dir in $PATH | |
5454 | do | |
5455 | IFS=$as_save_IFS | |
5456 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5457 | for ac_exec_ext in '' $ac_executable_extensions; do |
5458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5459 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5461 | break 2 |
5462 | fi | |
5463 | done | |
b0322a85 | 5464 | done |
dd184caf | 5465 | IFS=$as_save_IFS |
d9898ee8 | 5466 | |
5467 | fi | |
5468 | fi | |
8d138742 CE |
5469 | AR=$ac_cv_prog_AR |
5470 | if test -n "$AR"; then | |
b0322a85 | 5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 5472 | $as_echo "$AR" >&6; } |
d9898ee8 | 5473 | else |
b0322a85 | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5475 | $as_echo "no" >&6; } |
d9898ee8 | 5476 | fi |
5477 | ||
dd184caf | 5478 | |
b0322a85 CE |
5479 | test -n "$AR" && break |
5480 | done | |
d9898ee8 | 5481 | fi |
b0322a85 | 5482 | if test -z "$AR"; then |
8d138742 | 5483 | ac_ct_AR=$AR |
b0322a85 CE |
5484 | for ac_prog in ar |
5485 | do | |
5486 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5487 | set dummy $ac_prog; ac_word=$2 | |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5489 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5490 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5491 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5492 | else |
8d138742 CE |
5493 | if test -n "$ac_ct_AR"; then |
5494 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 5495 | else |
5496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5497 | for as_dir in $PATH | |
5498 | do | |
5499 | IFS=$as_save_IFS | |
5500 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5501 | for ac_exec_ext in '' $ac_executable_extensions; do |
5502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5503 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5505 | break 2 |
5506 | fi | |
5507 | done | |
b0322a85 | 5508 | done |
dd184caf | 5509 | IFS=$as_save_IFS |
d9898ee8 | 5510 | |
5511 | fi | |
5512 | fi | |
8d138742 CE |
5513 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5514 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 | 5516 | $as_echo "$ac_ct_AR" >&6; } |
d9898ee8 | 5517 | else |
b0322a85 | 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5519 | $as_echo "no" >&6; } |
d9898ee8 | 5520 | fi |
5521 | ||
b0322a85 CE |
5522 | |
5523 | test -n "$ac_ct_AR" && break | |
5524 | done | |
5525 | ||
8d138742 CE |
5526 | if test "x$ac_ct_AR" = x; then |
5527 | AR="false" | |
dd184caf | 5528 | else |
5529 | case $cross_compiling:$ac_tool_warned in | |
5530 | yes:) | |
b0322a85 | 5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5532 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5533 | ac_tool_warned=yes ;; |
5534 | esac | |
8d138742 | 5535 | AR=$ac_ct_AR |
dd184caf | 5536 | fi |
8d138742 | 5537 | fi |
d9898ee8 | 5538 | |
b0322a85 CE |
5539 | : ${AR=ar} |
5540 | : ${AR_FLAGS=cru} | |
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
d9898ee8 | 5548 | |
d9898ee8 | 5549 | |
dd184caf | 5550 | |
d9898ee8 | 5551 | |
b0322a85 CE |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5553 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5554 | if ${lt_cv_ar_at_file+:} false; then : | |
5555 | $as_echo_n "(cached) " >&6 | |
5556 | else | |
5557 | lt_cv_ar_at_file=no | |
5558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5559 | /* end confdefs.h. */ | |
5560 | ||
5561 | int | |
5562 | main () | |
5563 | { | |
5564 | ||
5565 | ; | |
5566 | return 0; | |
5567 | } | |
5568 | _ACEOF | |
5569 | if ac_fn_c_try_compile "$LINENO"; then : | |
5570 | echo conftest.$ac_objext > conftest.lst | |
5571 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5572 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5573 | (eval $lt_ar_try) 2>&5 | |
5574 | ac_status=$? | |
5575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5576 | test $ac_status = 0; } | |
d50284c4 | 5577 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5578 | # Ensure the archiver fails upon bogus file names. |
5579 | rm -f conftest.$ac_objext libconftest.a | |
5580 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5581 | (eval $lt_ar_try) 2>&5 | |
5582 | ac_status=$? | |
5583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5584 | test $ac_status = 0; } | |
d50284c4 | 5585 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5586 | lt_cv_ar_at_file=@ |
5587 | fi | |
5588 | fi | |
5589 | rm -f conftest.* libconftest.a | |
5590 | ||
5591 | fi | |
5592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5593 | ||
5594 | fi | |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5596 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5597 | ||
d50284c4 | 5598 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5599 | archiver_list_spec= |
5600 | else | |
5601 | archiver_list_spec=$lt_cv_ar_at_file | |
5602 | fi | |
d9898ee8 | 5603 | |
d9898ee8 | 5604 | |
dd184caf | 5605 | |
dd184caf | 5606 | |
d9898ee8 | 5607 | |
dd184caf | 5608 | |
dd184caf | 5609 | |
8d138742 CE |
5610 | if test -n "$ac_tool_prefix"; then |
5611 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5612 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5614 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5615 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 5616 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5617 | else |
8d138742 CE |
5618 | if test -n "$STRIP"; then |
5619 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5620 | else | |
5621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5622 | for as_dir in $PATH | |
5623 | do | |
5624 | IFS=$as_save_IFS | |
5625 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5626 | for ac_exec_ext in '' $ac_executable_extensions; do |
5627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5628 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5630 | break 2 |
5631 | fi | |
5632 | done | |
b0322a85 | 5633 | done |
8d138742 | 5634 | IFS=$as_save_IFS |
dd184caf | 5635 | |
d9898ee8 | 5636 | fi |
dd184caf | 5637 | fi |
8d138742 CE |
5638 | STRIP=$ac_cv_prog_STRIP |
5639 | if test -n "$STRIP"; then | |
b0322a85 | 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
5641 | $as_echo "$STRIP" >&6; } |
5642 | else | |
b0322a85 | 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5644 | $as_echo "no" >&6; } |
d9898ee8 | 5645 | fi |
5646 | ||
8d138742 CE |
5647 | |
5648 | fi | |
5649 | if test -z "$ac_cv_prog_STRIP"; then | |
5650 | ac_ct_STRIP=$STRIP | |
5651 | # Extract the first word of "strip", so it can be a program name with args. | |
5652 | set dummy strip; ac_word=$2 | |
b0322a85 | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5654 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5655 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 5656 | $as_echo_n "(cached) " >&6 |
dd184caf | 5657 | else |
8d138742 CE |
5658 | if test -n "$ac_ct_STRIP"; then |
5659 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5660 | else | |
5661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5662 | for as_dir in $PATH | |
5663 | do | |
5664 | IFS=$as_save_IFS | |
5665 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5666 | for ac_exec_ext in '' $ac_executable_extensions; do |
5667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5668 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 5670 | break 2 |
dd184caf | 5671 | fi |
8d138742 | 5672 | done |
b0322a85 | 5673 | done |
8d138742 | 5674 | IFS=$as_save_IFS |
d9898ee8 | 5675 | |
8d138742 CE |
5676 | fi |
5677 | fi | |
5678 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5679 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5681 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5682 | else |
b0322a85 | 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5684 | $as_echo "no" >&6; } |
5685 | fi | |
d9898ee8 | 5686 | |
8d138742 CE |
5687 | if test "x$ac_ct_STRIP" = x; then |
5688 | STRIP=":" | |
5689 | else | |
5690 | case $cross_compiling:$ac_tool_warned in | |
5691 | yes:) | |
b0322a85 | 5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5693 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5694 | ac_tool_warned=yes ;; | |
5695 | esac | |
5696 | STRIP=$ac_ct_STRIP | |
d9898ee8 | 5697 | fi |
d9898ee8 | 5698 | else |
8d138742 | 5699 | STRIP="$ac_cv_prog_STRIP" |
d9898ee8 | 5700 | fi |
5701 | ||
8d138742 CE |
5702 | test -z "$STRIP" && STRIP=: |
5703 | ||
d9898ee8 | 5704 | |
d9898ee8 | 5705 | |
5706 | ||
5707 | ||
5708 | ||
8d138742 CE |
5709 | if test -n "$ac_tool_prefix"; then |
5710 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5711 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5713 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5714 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5715 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5716 | else |
8d138742 CE |
5717 | if test -n "$RANLIB"; then |
5718 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
d9898ee8 | 5719 | else |
8d138742 CE |
5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5721 | for as_dir in $PATH | |
5722 | do | |
5723 | IFS=$as_save_IFS | |
5724 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5725 | for ac_exec_ext in '' $ac_executable_extensions; do |
5726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5727 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5729 | break 2 |
5730 | fi | |
5731 | done | |
b0322a85 | 5732 | done |
8d138742 | 5733 | IFS=$as_save_IFS |
d9898ee8 | 5734 | |
d9898ee8 | 5735 | fi |
8d138742 CE |
5736 | fi |
5737 | RANLIB=$ac_cv_prog_RANLIB | |
5738 | if test -n "$RANLIB"; then | |
b0322a85 | 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 | 5740 | $as_echo "$RANLIB" >&6; } |
d9898ee8 | 5741 | else |
b0322a85 | 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5743 | $as_echo "no" >&6; } |
d9898ee8 | 5744 | fi |
dd184caf | 5745 | |
d9898ee8 | 5746 | |
d9898ee8 | 5747 | fi |
8d138742 CE |
5748 | if test -z "$ac_cv_prog_RANLIB"; then |
5749 | ac_ct_RANLIB=$RANLIB | |
5750 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5751 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5753 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5754 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5755 | $as_echo_n "(cached) " >&6 |
5756 | else | |
5757 | if test -n "$ac_ct_RANLIB"; then | |
5758 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5759 | else | |
5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 | for as_dir in $PATH | |
5762 | do | |
5763 | IFS=$as_save_IFS | |
5764 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5765 | for ac_exec_ext in '' $ac_executable_extensions; do |
5766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5767 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5769 | break 2 |
5770 | fi | |
5771 | done | |
b0322a85 | 5772 | done |
8d138742 | 5773 | IFS=$as_save_IFS |
d9898ee8 | 5774 | |
5775 | fi | |
8d138742 CE |
5776 | fi |
5777 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5778 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 | 5780 | $as_echo "$ac_ct_RANLIB" >&6; } |
d9898ee8 | 5781 | else |
b0322a85 | 5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5783 | $as_echo "no" >&6; } |
d9898ee8 | 5784 | fi |
8d138742 CE |
5785 | |
5786 | if test "x$ac_ct_RANLIB" = x; then | |
5787 | RANLIB=":" | |
5788 | else | |
5789 | case $cross_compiling:$ac_tool_warned in | |
5790 | yes:) | |
b0322a85 | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5792 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5793 | ac_tool_warned=yes ;; | |
dd184caf | 5794 | esac |
8d138742 CE |
5795 | RANLIB=$ac_ct_RANLIB |
5796 | fi | |
d9898ee8 | 5797 | else |
8d138742 | 5798 | RANLIB="$ac_cv_prog_RANLIB" |
d9898ee8 | 5799 | fi |
dd184caf | 5800 | |
8d138742 CE |
5801 | test -z "$RANLIB" && RANLIB=: |
5802 | ||
d9898ee8 | 5803 | |
d9898ee8 | 5804 | |
dd184caf | 5805 | |
d9898ee8 | 5806 | |
d9898ee8 | 5807 | |
8d138742 CE |
5808 | # Determine commands to create old-style static archives. |
5809 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5810 | old_postinstall_cmds='chmod 644 $oldlib' | |
5811 | old_postuninstall_cmds= | |
d9898ee8 | 5812 | |
8d138742 CE |
5813 | if test -n "$RANLIB"; then |
5814 | case $host_os in | |
d50284c4 | 5815 | bitrig* | openbsd*) |
b0322a85 | 5816 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5817 | ;; |
5818 | *) | |
b0322a85 | 5819 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5820 | ;; |
5821 | esac | |
b0322a85 | 5822 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 5823 | fi |
5824 | ||
b0322a85 CE |
5825 | case $host_os in |
5826 | darwin*) | |
5827 | lock_old_archive_extraction=yes ;; | |
5828 | *) | |
5829 | lock_old_archive_extraction=no ;; | |
5830 | esac | |
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
d9898ee8 | 5837 | |
d9898ee8 | 5838 | |
d9898ee8 | 5839 | |
dd184caf | 5840 | |
d9898ee8 | 5841 | |
d9898ee8 | 5842 | |
dd184caf | 5843 | |
d9898ee8 | 5844 | |
d9898ee8 | 5845 | |
5846 | ||
d9898ee8 | 5847 | |
d9898ee8 | 5848 | |
d9898ee8 | 5849 | |
dd184caf | 5850 | |
d9898ee8 | 5851 | |
d9898ee8 | 5852 | |
d9898ee8 | 5853 | |
dd184caf | 5854 | |
d9898ee8 | 5855 | |
d9898ee8 | 5856 | |
d9898ee8 | 5857 | |
5858 | ||
5859 | ||
d9898ee8 | 5860 | |
d9898ee8 | 5861 | |
d9898ee8 | 5862 | |
d9898ee8 | 5863 | |
d9898ee8 | 5864 | |
d9898ee8 | 5865 | |
d9898ee8 | 5866 | |
d9898ee8 | 5867 | |
d9898ee8 | 5868 | |
d9898ee8 | 5869 | |
8d138742 CE |
5870 | # If no C compiler was specified, use CC. |
5871 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5872 | |
8d138742 CE |
5873 | # If no C compiler flags were specified, use CFLAGS. |
5874 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5875 | |
8d138742 CE |
5876 | # Allow CC to be a program name with arguments. |
5877 | compiler=$CC | |
d9898ee8 | 5878 | |
ac40fd9e | 5879 | |
d9898ee8 | 5880 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5882 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5883 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 5884 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5885 | else |
5886 | ||
5887 | # These are sane defaults that work on at least a few old systems. | |
5888 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5889 | ||
5890 | # Character class describing NM global symbol codes. | |
5891 | symcode='[BCDEGRST]' | |
5892 | ||
5893 | # Regexp to match symbols that can be accessed directly from C. | |
5894 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5895 | ||
d9898ee8 | 5896 | # Define system-specific variables. |
5897 | case $host_os in | |
5898 | aix*) | |
5899 | symcode='[BCDT]' | |
5900 | ;; | |
8d138742 | 5901 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 5902 | symcode='[ABCDGISTW]' |
5903 | ;; | |
8d138742 | 5904 | hpux*) |
d50284c4 | 5905 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 5906 | symcode='[ABCDEGRST]' |
5907 | fi | |
d9898ee8 | 5908 | ;; |
5909 | irix* | nonstopux*) | |
5910 | symcode='[BCDEGRST]' | |
5911 | ;; | |
5912 | osf*) | |
5913 | symcode='[BCDEGQRST]' | |
5914 | ;; | |
5915 | solaris*) | |
5916 | symcode='[BDRT]' | |
5917 | ;; | |
5918 | sco3.2v5*) | |
5919 | symcode='[DT]' | |
5920 | ;; | |
5921 | sysv4.2uw2*) | |
5922 | symcode='[DT]' | |
5923 | ;; | |
5924 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5925 | symcode='[ABDT]' | |
5926 | ;; | |
5927 | sysv4) | |
5928 | symcode='[DFNSTU]' | |
5929 | ;; | |
5930 | esac | |
5931 | ||
8d138742 CE |
5932 | # If we're using GNU nm, then use its standard symbol codes. |
5933 | case `$NM -V 2>&1` in | |
5934 | *GNU* | *'with BFD'*) | |
5935 | symcode='[ABCDGIRSTW]' ;; | |
5936 | esac | |
5937 | ||
d50284c4 CE |
5938 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5939 | # Gets list of data symbols to import. | |
5940 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
5941 | # Adjust the below global symbol transforms to fixup imported variables. | |
5942 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
5943 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
5944 | lt_c_name_lib_hook="\ | |
5945 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
5946 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
5947 | else | |
5948 | # Disable hooks by default. | |
5949 | lt_cv_sys_global_symbol_to_import= | |
5950 | lt_cdecl_hook= | |
5951 | lt_c_name_hook= | |
5952 | lt_c_name_lib_hook= | |
5953 | fi | |
5954 | ||
8d138742 CE |
5955 | # Transform an extracted symbol line into a proper C declaration. |
5956 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5957 | # so use this general approach. | |
d50284c4 CE |
5958 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
5959 | $lt_cdecl_hook\ | |
5960 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
5961 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
8d138742 CE |
5962 | |
5963 | # Transform an extracted symbol line into symbol name and symbol address | |
d50284c4 CE |
5964 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
5965 | $lt_c_name_hook\ | |
5966 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
5967 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
5968 | ||
5969 | # Transform an extracted symbol line into symbol name with lib prefix and | |
5970 | # symbol address. | |
5971 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
5972 | $lt_c_name_lib_hook\ | |
5973 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
5974 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
5975 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 | 5976 | |
d9898ee8 | 5977 | # Handle CRLF in mingw tool chain |
5978 | opt_cr= | |
5979 | case $build_os in | |
5980 | mingw*) | |
8d138742 | 5981 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 5982 | ;; |
5983 | esac | |
5984 | ||
8d138742 | 5985 | # Try without a prefix underscore, then with it. |
d9898ee8 | 5986 | for ac_symprfx in "" "_"; do |
5987 | ||
5988 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5989 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5990 | ||
5991 | # Write the raw and C identifiers. | |
8d138742 | 5992 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
d50284c4 CE |
5993 | # Fake it for dumpbin and say T for any non-static function, |
5994 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
5995 | # Also find C++ and __fastcall symbols from MSVC++, |
5996 | # which start with @ or ?. | |
5997 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5998 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 5999 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6000 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6001 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6002 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6003 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6004 | " \$ 0!~/External *\|/{next};"\ |
6005 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6006 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6007 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6008 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6009 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6010 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6011 | " ' prfx=^$ac_symprfx" |
6012 | else | |
6013 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6014 | fi | |
b0322a85 | 6015 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6016 | |
6017 | # Check to see that the pipe works correctly. | |
6018 | pipe_works=no | |
6019 | ||
6020 | rm -f conftest* | |
8d138742 | 6021 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6022 | #ifdef __cplusplus |
6023 | extern "C" { | |
6024 | #endif | |
6025 | char nm_test_var; | |
8d138742 CE |
6026 | void nm_test_func(void); |
6027 | void nm_test_func(void){} | |
d9898ee8 | 6028 | #ifdef __cplusplus |
6029 | } | |
6030 | #endif | |
6031 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6032 | _LT_EOF |
d9898ee8 | 6033 | |
b0322a85 | 6034 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6035 | (eval $ac_compile) 2>&5 |
6036 | ac_status=$? | |
b0322a85 CE |
6037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6038 | test $ac_status = 0; }; then | |
d9898ee8 | 6039 | # Now try to grab the symbols. |
6040 | nlist=conftest.nm | |
b0322a85 CE |
6041 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6042 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6043 | ac_status=$? |
b0322a85 CE |
6044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6045 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 6046 | # Try sorting and uniquifying the output. |
6047 | if sort "$nlist" | uniq > "$nlist"T; then | |
6048 | mv -f "$nlist"T "$nlist" | |
6049 | else | |
6050 | rm -f "$nlist"T | |
6051 | fi | |
6052 | ||
6053 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6054 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6055 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6056 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6057 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6058 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6059 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6060 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6061 | # define LT_DLSYM_CONST | |
d50284c4 | 6062 | #elif defined __osf__ |
b0322a85 CE |
6063 | /* This system does not cope well with relocations in const data. */ |
6064 | # define LT_DLSYM_CONST | |
6065 | #else | |
6066 | # define LT_DLSYM_CONST const | |
6067 | #endif | |
6068 | ||
d9898ee8 | 6069 | #ifdef __cplusplus |
6070 | extern "C" { | |
6071 | #endif | |
6072 | ||
8d138742 | 6073 | _LT_EOF |
d9898ee8 | 6074 | # Now generate the symbol file. |
8d138742 | 6075 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6076 | |
8d138742 | 6077 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6078 | |
8d138742 | 6079 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6080 | LT_DLSYM_CONST struct { |
d9898ee8 | 6081 | const char *name; |
8d138742 | 6082 | void *address; |
d9898ee8 | 6083 | } |
8d138742 | 6084 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6085 | { |
8d138742 CE |
6086 | { "@PROGRAM@", (void *) 0 }, |
6087 | _LT_EOF | |
d50284c4 | 6088 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6089 | cat <<\_LT_EOF >> conftest.$ac_ext |
6090 | {0, (void *) 0} | |
d9898ee8 | 6091 | }; |
6092 | ||
8d138742 CE |
6093 | /* This works around a problem in FreeBSD linker */ |
6094 | #ifdef FREEBSD_WORKAROUND | |
6095 | static const void *lt_preloaded_setup() { | |
6096 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6097 | } | |
6098 | #endif | |
6099 | ||
d9898ee8 | 6100 | #ifdef __cplusplus |
6101 | } | |
6102 | #endif | |
8d138742 | 6103 | _LT_EOF |
d9898ee8 | 6104 | # Now try linking the two files. |
6105 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6106 | lt_globsym_save_LIBS=$LIBS |
6107 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6108 | LIBS=conftstm.$ac_objext |
d9898ee8 | 6109 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6110 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 6111 | (eval $ac_link) 2>&5 |
6112 | ac_status=$? | |
b0322a85 | 6113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6114 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
d9898ee8 | 6115 | pipe_works=yes |
6116 | fi | |
b0322a85 CE |
6117 | LIBS=$lt_globsym_save_LIBS |
6118 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 6119 | else |
6120 | echo "cannot find nm_test_func in $nlist" >&5 | |
6121 | fi | |
6122 | else | |
6123 | echo "cannot find nm_test_var in $nlist" >&5 | |
6124 | fi | |
6125 | else | |
6126 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6127 | fi | |
6128 | else | |
6129 | echo "$progname: failed program was:" >&5 | |
6130 | cat conftest.$ac_ext >&5 | |
6131 | fi | |
8d138742 | 6132 | rm -rf conftest* conftst* |
d9898ee8 | 6133 | |
6134 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 6135 | if test yes = "$pipe_works"; then |
d9898ee8 | 6136 | break |
6137 | else | |
6138 | lt_cv_sys_global_symbol_pipe= | |
6139 | fi | |
6140 | done | |
6141 | ||
6142 | fi | |
6143 | ||
6144 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6145 | lt_cv_sys_global_symbol_to_cdecl= | |
6146 | fi | |
6147 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6149 | $as_echo "failed" >&6; } |
d9898ee8 | 6150 | else |
b0322a85 | 6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6152 | $as_echo "ok" >&6; } |
d9898ee8 | 6153 | fi |
6154 | ||
b0322a85 CE |
6155 | # Response file support. |
6156 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6157 | nm_file_list_spec='@' | |
6158 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6159 | nm_file_list_spec='@' | |
6160 | fi | |
6161 | ||
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | ||
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | ||
6173 | ||
6174 | ||
d9898ee8 | 6175 | |
6176 | ||
d50284c4 CE |
6177 | |
6178 | ||
6179 | ||
6180 | ||
6181 | ||
6182 | ||
6183 | ||
6184 | ||
6185 | ||
6186 | ||
d9898ee8 | 6187 | |
6188 | ||
6189 | ||
d9898ee8 | 6190 | |
d9898ee8 | 6191 | |
d9898ee8 | 6192 | |
d9898ee8 | 6193 | |
d9898ee8 | 6194 | |
d9898ee8 | 6195 | |
d9898ee8 | 6196 | |
d9898ee8 | 6197 | |
b0322a85 CE |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6199 | $as_echo_n "checking for sysroot... " >&6; } | |
d9898ee8 | 6200 | |
b0322a85 CE |
6201 | # Check whether --with-sysroot was given. |
6202 | if test "${with_sysroot+set}" = set; then : | |
6203 | withval=$with_sysroot; | |
6204 | else | |
6205 | with_sysroot=no | |
6206 | fi | |
d9898ee8 | 6207 | |
dd184caf | 6208 | |
b0322a85 | 6209 | lt_sysroot= |
d50284c4 | 6210 | case $with_sysroot in #( |
b0322a85 | 6211 | yes) |
d50284c4 | 6212 | if test yes = "$GCC"; then |
b0322a85 CE |
6213 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6214 | fi | |
6215 | ;; #( | |
6216 | /*) | |
6217 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6218 | ;; #( | |
6219 | no|'') | |
6220 | ;; #( | |
6221 | *) | |
d50284c4 CE |
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6223 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6224 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6225 | ;; | |
6226 | esac | |
d9898ee8 | 6227 | |
b0322a85 CE |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6229 | $as_echo "${lt_sysroot:-no}" >&6; } | |
d9898ee8 | 6230 | |
d9898ee8 | 6231 | |
d9898ee8 | 6232 | |
d9898ee8 | 6233 | |
dd184caf | 6234 | |
d50284c4 CE |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6236 | $as_echo_n "checking for a working dd... " >&6; } | |
6237 | if ${ac_cv_path_lt_DD+:} false; then : | |
6238 | $as_echo_n "(cached) " >&6 | |
6239 | else | |
6240 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6241 | cat conftest.i conftest.i >conftest2.i | |
6242 | : ${lt_DD:=$DD} | |
6243 | if test -z "$lt_DD"; then | |
6244 | ac_path_lt_DD_found=false | |
6245 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6247 | for as_dir in $PATH | |
6248 | do | |
6249 | IFS=$as_save_IFS | |
6250 | test -z "$as_dir" && as_dir=. | |
6251 | for ac_prog in dd; do | |
6252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6253 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6254 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6255 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6256 | cmp -s conftest.i conftest.out \ | |
6257 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6258 | fi | |
6259 | $ac_path_lt_DD_found && break 3 | |
6260 | done | |
6261 | done | |
6262 | done | |
6263 | IFS=$as_save_IFS | |
6264 | if test -z "$ac_cv_path_lt_DD"; then | |
6265 | : | |
6266 | fi | |
6267 | else | |
6268 | ac_cv_path_lt_DD=$lt_DD | |
6269 | fi | |
6270 | ||
6271 | rm -f conftest.i conftest2.i conftest.out | |
6272 | fi | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6274 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6275 | ||
6276 | ||
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6278 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6279 | if ${lt_cv_truncate_bin+:} false; then : | |
6280 | $as_echo_n "(cached) " >&6 | |
6281 | else | |
6282 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6283 | cat conftest.i conftest.i >conftest2.i | |
6284 | lt_cv_truncate_bin= | |
6285 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6286 | cmp -s conftest.i conftest.out \ | |
6287 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6288 | fi | |
6289 | rm -f conftest.i conftest2.i conftest.out | |
6290 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6291 | fi | |
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6293 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | ||
6300 | ||
6301 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6302 | func_cc_basename () | |
6303 | { | |
6304 | for cc_temp in $*""; do | |
6305 | case $cc_temp in | |
6306 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6307 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6308 | \-*) ;; | |
6309 | *) break;; | |
6310 | esac | |
6311 | done | |
6312 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6313 | } | |
6314 | ||
8d138742 | 6315 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6316 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 6317 | enableval=$enable_libtool_lock; |
d9898ee8 | 6318 | fi |
8d138742 | 6319 | |
d50284c4 | 6320 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
6321 | |
6322 | # Some flags need to be propagated to the compiler or linker for good | |
6323 | # libtool support. | |
6324 | case $host in | |
6325 | ia64-*-hpux*) | |
d50284c4 CE |
6326 | # Find out what ABI is being produced by ac_compile, and set mode |
6327 | # options accordingly. | |
8d138742 | 6328 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6329 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6330 | (eval $ac_compile) 2>&5 |
6331 | ac_status=$? | |
b0322a85 CE |
6332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6333 | test $ac_status = 0; }; then | |
8d138742 CE |
6334 | case `/usr/bin/file conftest.$ac_objext` in |
6335 | *ELF-32*) | |
d50284c4 | 6336 | HPUX_IA64_MODE=32 |
8d138742 CE |
6337 | ;; |
6338 | *ELF-64*) | |
d50284c4 | 6339 | HPUX_IA64_MODE=64 |
8d138742 CE |
6340 | ;; |
6341 | esac | |
6342 | fi | |
6343 | rm -rf conftest* | |
6344 | ;; | |
6345 | *-*-irix6*) | |
d50284c4 CE |
6346 | # Find out what ABI is being produced by ac_compile, and set linker |
6347 | # options accordingly. | |
b0322a85 CE |
6348 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6349 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6350 | (eval $ac_compile) 2>&5 |
6351 | ac_status=$? | |
b0322a85 CE |
6352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6353 | test $ac_status = 0; }; then | |
d50284c4 | 6354 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6355 | case `/usr/bin/file conftest.$ac_objext` in |
6356 | *32-bit*) | |
6357 | LD="${LD-ld} -melf32bsmip" | |
6358 | ;; | |
6359 | *N32*) | |
6360 | LD="${LD-ld} -melf32bmipn32" | |
6361 | ;; | |
6362 | *64-bit*) | |
6363 | LD="${LD-ld} -melf64bmip" | |
6364 | ;; | |
6365 | esac | |
6366 | else | |
6367 | case `/usr/bin/file conftest.$ac_objext` in | |
6368 | *32-bit*) | |
6369 | LD="${LD-ld} -32" | |
6370 | ;; | |
6371 | *N32*) | |
6372 | LD="${LD-ld} -n32" | |
6373 | ;; | |
6374 | *64-bit*) | |
6375 | LD="${LD-ld} -64" | |
6376 | ;; | |
6377 | esac | |
6378 | fi | |
6379 | fi | |
6380 | rm -rf conftest* | |
6381 | ;; | |
6382 | ||
d50284c4 CE |
6383 | mips64*-*linux*) |
6384 | # Find out what ABI is being produced by ac_compile, and set linker | |
6385 | # options accordingly. | |
6386 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6387 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6388 | (eval $ac_compile) 2>&5 | |
6389 | ac_status=$? | |
6390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6391 | test $ac_status = 0; }; then | |
6392 | emul=elf | |
6393 | case `/usr/bin/file conftest.$ac_objext` in | |
6394 | *32-bit*) | |
6395 | emul="${emul}32" | |
6396 | ;; | |
6397 | *64-bit*) | |
6398 | emul="${emul}64" | |
6399 | ;; | |
6400 | esac | |
6401 | case `/usr/bin/file conftest.$ac_objext` in | |
6402 | *MSB*) | |
6403 | emul="${emul}btsmip" | |
6404 | ;; | |
6405 | *LSB*) | |
6406 | emul="${emul}ltsmip" | |
6407 | ;; | |
6408 | esac | |
6409 | case `/usr/bin/file conftest.$ac_objext` in | |
6410 | *N32*) | |
6411 | emul="${emul}n32" | |
6412 | ;; | |
6413 | esac | |
6414 | LD="${LD-ld} -m $emul" | |
6415 | fi | |
6416 | rm -rf conftest* | |
6417 | ;; | |
6418 | ||
6419 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6420 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6421 | # Find out what ABI is being produced by ac_compile, and set linker |
6422 | # options accordingly. Note that the listed cases only cover the | |
6423 | # situations where additional linker options are needed (such as when | |
6424 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6425 | # vice versa); the common cases where no linker options are needed do | |
6426 | # not appear in the list. | |
8d138742 | 6427 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6428 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6429 | (eval $ac_compile) 2>&5 |
6430 | ac_status=$? | |
b0322a85 CE |
6431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6432 | test $ac_status = 0; }; then | |
8d138742 CE |
6433 | case `/usr/bin/file conftest.o` in |
6434 | *32-bit*) | |
6435 | case $host in | |
6436 | x86_64-*kfreebsd*-gnu) | |
6437 | LD="${LD-ld} -m elf_i386_fbsd" | |
6438 | ;; | |
6439 | x86_64-*linux*) | |
d50284c4 CE |
6440 | case `/usr/bin/file conftest.o` in |
6441 | *x86-64*) | |
6442 | LD="${LD-ld} -m elf32_x86_64" | |
6443 | ;; | |
6444 | *) | |
6445 | LD="${LD-ld} -m elf_i386" | |
6446 | ;; | |
6447 | esac | |
8d138742 | 6448 | ;; |
d50284c4 CE |
6449 | powerpc64le-*linux*) |
6450 | LD="${LD-ld} -m elf32lppclinux" | |
6451 | ;; | |
6452 | powerpc64-*linux*) | |
8d138742 CE |
6453 | LD="${LD-ld} -m elf32ppclinux" |
6454 | ;; | |
6455 | s390x-*linux*) | |
6456 | LD="${LD-ld} -m elf_s390" | |
6457 | ;; | |
6458 | sparc64-*linux*) | |
6459 | LD="${LD-ld} -m elf32_sparc" | |
6460 | ;; | |
6461 | esac | |
6462 | ;; | |
6463 | *64-bit*) | |
6464 | case $host in | |
6465 | x86_64-*kfreebsd*-gnu) | |
6466 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6467 | ;; | |
6468 | x86_64-*linux*) | |
6469 | LD="${LD-ld} -m elf_x86_64" | |
6470 | ;; | |
d50284c4 CE |
6471 | powerpcle-*linux*) |
6472 | LD="${LD-ld} -m elf64lppc" | |
6473 | ;; | |
6474 | powerpc-*linux*) | |
8d138742 CE |
6475 | LD="${LD-ld} -m elf64ppc" |
6476 | ;; | |
6477 | s390*-*linux*|s390*-*tpf*) | |
6478 | LD="${LD-ld} -m elf64_s390" | |
6479 | ;; | |
6480 | sparc*-*linux*) | |
6481 | LD="${LD-ld} -m elf64_sparc" | |
6482 | ;; | |
6483 | esac | |
6484 | ;; | |
6485 | esac | |
6486 | fi | |
6487 | rm -rf conftest* | |
6488 | ;; | |
6489 | ||
6490 | *-*-sco3.2v5*) | |
6491 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6492 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6493 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6495 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6496 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 | 6497 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6498 | else |
8d138742 CE |
6499 | ac_ext=c |
6500 | ac_cpp='$CPP $CPPFLAGS' | |
6501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6504 | ||
b0322a85 | 6505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
6506 | /* end confdefs.h. */ |
6507 | ||
6508 | int | |
6509 | main () | |
6510 | { | |
6511 | ||
6512 | ; | |
6513 | return 0; | |
6514 | } | |
6515 | _ACEOF | |
b0322a85 | 6516 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6517 | lt_cv_cc_needs_belf=yes |
6518 | else | |
b0322a85 | 6519 | lt_cv_cc_needs_belf=no |
8d138742 | 6520 | fi |
b0322a85 CE |
6521 | rm -f core conftest.err conftest.$ac_objext \ |
6522 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6523 | ac_ext=c |
6524 | ac_cpp='$CPP $CPPFLAGS' | |
6525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6528 | ||
6529 | fi | |
b0322a85 | 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 6531 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 6532 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 6533 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6534 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
6535 | fi |
6536 | ;; | |
b0322a85 | 6537 | *-*solaris*) |
d50284c4 CE |
6538 | # Find out what ABI is being produced by ac_compile, and set linker |
6539 | # options accordingly. | |
8d138742 | 6540 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6541 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6542 | (eval $ac_compile) 2>&5 |
6543 | ac_status=$? | |
b0322a85 CE |
6544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6545 | test $ac_status = 0; }; then | |
8d138742 CE |
6546 | case `/usr/bin/file conftest.o` in |
6547 | *64-bit*) | |
6548 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6549 | yes*) |
6550 | case $host in | |
d50284c4 | 6551 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6552 | LD="${LD-ld} -m elf_x86_64" |
6553 | ;; | |
6554 | sparc*-*-solaris*) | |
6555 | LD="${LD-ld} -m elf64_sparc" | |
6556 | ;; | |
6557 | esac | |
6558 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6559 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6560 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6561 | fi |
6562 | ;; | |
8d138742 CE |
6563 | *) |
6564 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6565 | LD="${LD-ld} -64" | |
6566 | fi | |
6567 | ;; | |
6568 | esac | |
6569 | ;; | |
6570 | esac | |
6571 | fi | |
b0322a85 CE |
6572 | rm -rf conftest* |
6573 | ;; | |
6574 | esac | |
6575 | ||
d50284c4 | 6576 | need_locks=$enable_libtool_lock |
b0322a85 CE |
6577 | |
6578 | if test -n "$ac_tool_prefix"; then | |
6579 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6580 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6582 | $as_echo_n "checking for $ac_word... " >&6; } | |
6583 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6584 | $as_echo_n "(cached) " >&6 | |
6585 | else | |
6586 | if test -n "$MANIFEST_TOOL"; then | |
6587 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6588 | else | |
6589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6590 | for as_dir in $PATH | |
6591 | do | |
6592 | IFS=$as_save_IFS | |
6593 | test -z "$as_dir" && as_dir=. | |
6594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6596 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6598 | break 2 | |
6599 | fi | |
6600 | done | |
6601 | done | |
6602 | IFS=$as_save_IFS | |
6603 | ||
6604 | fi | |
6605 | fi | |
6606 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6607 | if test -n "$MANIFEST_TOOL"; then | |
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6609 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6610 | else | |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6612 | $as_echo "no" >&6; } | |
6613 | fi | |
6614 | ||
6615 | ||
6616 | fi | |
6617 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6618 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6619 | # Extract the first word of "mt", so it can be a program name with args. | |
6620 | set dummy mt; ac_word=$2 | |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6622 | $as_echo_n "checking for $ac_word... " >&6; } | |
6623 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6624 | $as_echo_n "(cached) " >&6 | |
6625 | else | |
6626 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6627 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6628 | else | |
6629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6630 | for as_dir in $PATH | |
6631 | do | |
6632 | IFS=$as_save_IFS | |
6633 | test -z "$as_dir" && as_dir=. | |
6634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6636 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6638 | break 2 | |
6639 | fi | |
6640 | done | |
6641 | done | |
6642 | IFS=$as_save_IFS | |
6643 | ||
6644 | fi | |
6645 | fi | |
6646 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6647 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6649 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6650 | else | |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6652 | $as_echo "no" >&6; } | |
6653 | fi | |
6654 | ||
6655 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6656 | MANIFEST_TOOL=":" | |
6657 | else | |
6658 | case $cross_compiling:$ac_tool_warned in | |
6659 | yes:) | |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6662 | ac_tool_warned=yes ;; | |
8d138742 | 6663 | esac |
b0322a85 CE |
6664 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6665 | fi | |
6666 | else | |
6667 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6668 | fi | |
6669 | ||
6670 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6672 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6673 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6674 | $as_echo_n "(cached) " >&6 | |
6675 | else | |
6676 | lt_cv_path_mainfest_tool=no | |
6677 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6678 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6679 | cat conftest.err >&5 | |
6680 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6681 | lt_cv_path_mainfest_tool=yes | |
6682 | fi | |
6683 | rm -f conftest* | |
6684 | fi | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6686 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6687 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
6688 | MANIFEST_TOOL=: |
6689 | fi | |
6690 | ||
6691 | ||
6692 | ||
8d138742 | 6693 | |
8d138742 CE |
6694 | |
6695 | ||
6696 | case $host_os in | |
6697 | rhapsody* | darwin*) | |
6698 | if test -n "$ac_tool_prefix"; then | |
6699 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6700 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6702 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6703 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6704 | $as_echo_n "(cached) " >&6 |
6705 | else | |
6706 | if test -n "$DSYMUTIL"; then | |
6707 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6708 | else |
6709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6710 | for as_dir in $PATH | |
6711 | do | |
6712 | IFS=$as_save_IFS | |
6713 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6714 | for ac_exec_ext in '' $ac_executable_extensions; do |
6715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6716 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6718 | break 2 |
6719 | fi | |
6720 | done | |
b0322a85 | 6721 | done |
dd184caf | 6722 | IFS=$as_save_IFS |
d9898ee8 | 6723 | |
d9898ee8 | 6724 | fi |
6725 | fi | |
8d138742 CE |
6726 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6727 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 6729 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 6730 | else |
b0322a85 | 6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6732 | $as_echo "no" >&6; } |
d9898ee8 | 6733 | fi |
6734 | ||
8d138742 CE |
6735 | |
6736 | fi | |
6737 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6738 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6739 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6740 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6742 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6743 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6744 | $as_echo_n "(cached) " >&6 |
6745 | else | |
6746 | if test -n "$ac_ct_DSYMUTIL"; then | |
6747 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6748 | else | |
6749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6750 | for as_dir in $PATH | |
6751 | do | |
6752 | IFS=$as_save_IFS | |
6753 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6754 | for ac_exec_ext in '' $ac_executable_extensions; do |
6755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6756 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6758 | break 2 |
6759 | fi | |
6760 | done | |
b0322a85 | 6761 | done |
8d138742 CE |
6762 | IFS=$as_save_IFS |
6763 | ||
6764 | fi | |
6765 | fi | |
6766 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6767 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
6769 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
6770 | else | |
b0322a85 | 6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6772 | $as_echo "no" >&6; } |
6773 | fi | |
6774 | ||
6775 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6776 | DSYMUTIL=":" | |
dd184caf | 6777 | else |
6778 | case $cross_compiling:$ac_tool_warned in | |
6779 | yes:) | |
b0322a85 | 6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6781 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6782 | ac_tool_warned=yes ;; |
6783 | esac | |
8d138742 | 6784 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6785 | fi |
d9898ee8 | 6786 | else |
8d138742 | 6787 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6788 | fi |
6789 | ||
8d138742 CE |
6790 | if test -n "$ac_tool_prefix"; then |
6791 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6792 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6794 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6795 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 6796 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6797 | else |
8d138742 CE |
6798 | if test -n "$NMEDIT"; then |
6799 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6800 | else |
6801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6802 | for as_dir in $PATH | |
6803 | do | |
6804 | IFS=$as_save_IFS | |
6805 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6806 | for ac_exec_ext in '' $ac_executable_extensions; do |
6807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6808 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6810 | break 2 |
6811 | fi | |
6812 | done | |
b0322a85 | 6813 | done |
dd184caf | 6814 | IFS=$as_save_IFS |
d9898ee8 | 6815 | |
6816 | fi | |
6817 | fi | |
8d138742 CE |
6818 | NMEDIT=$ac_cv_prog_NMEDIT |
6819 | if test -n "$NMEDIT"; then | |
b0322a85 | 6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 6821 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 6822 | else |
b0322a85 | 6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6824 | $as_echo "no" >&6; } |
d9898ee8 | 6825 | fi |
6826 | ||
dd184caf | 6827 | |
d9898ee8 | 6828 | fi |
8d138742 CE |
6829 | if test -z "$ac_cv_prog_NMEDIT"; then |
6830 | ac_ct_NMEDIT=$NMEDIT | |
6831 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6832 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6834 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6835 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 6836 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6837 | else |
8d138742 CE |
6838 | if test -n "$ac_ct_NMEDIT"; then |
6839 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 6840 | else |
6841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6842 | for as_dir in $PATH | |
6843 | do | |
6844 | IFS=$as_save_IFS | |
6845 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6846 | for ac_exec_ext in '' $ac_executable_extensions; do |
6847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6848 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6850 | break 2 |
6851 | fi | |
6852 | done | |
b0322a85 | 6853 | done |
dd184caf | 6854 | IFS=$as_save_IFS |
d9898ee8 | 6855 | |
d9898ee8 | 6856 | fi |
6857 | fi | |
8d138742 CE |
6858 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6859 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 6861 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 6862 | else |
b0322a85 | 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6864 | $as_echo "no" >&6; } |
d9898ee8 | 6865 | fi |
6866 | ||
8d138742 CE |
6867 | if test "x$ac_ct_NMEDIT" = x; then |
6868 | NMEDIT=":" | |
dd184caf | 6869 | else |
6870 | case $cross_compiling:$ac_tool_warned in | |
6871 | yes:) | |
b0322a85 | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6874 | ac_tool_warned=yes ;; |
6875 | esac | |
8d138742 | 6876 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 6877 | fi |
d9898ee8 | 6878 | else |
8d138742 | 6879 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 6880 | fi |
6881 | ||
8d138742 CE |
6882 | if test -n "$ac_tool_prefix"; then |
6883 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6884 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6886 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6887 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
6888 | $as_echo_n "(cached) " >&6 |
6889 | else | |
6890 | if test -n "$LIPO"; then | |
6891 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6892 | else | |
6893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6894 | for as_dir in $PATH | |
6895 | do | |
6896 | IFS=$as_save_IFS | |
6897 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6898 | for ac_exec_ext in '' $ac_executable_extensions; do |
6899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6900 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 6901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6902 | break 2 |
6903 | fi | |
6904 | done | |
b0322a85 | 6905 | done |
8d138742 | 6906 | IFS=$as_save_IFS |
d9898ee8 | 6907 | |
8d138742 CE |
6908 | fi |
6909 | fi | |
6910 | LIPO=$ac_cv_prog_LIPO | |
6911 | if test -n "$LIPO"; then | |
b0322a85 | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
6913 | $as_echo "$LIPO" >&6; } |
6914 | else | |
b0322a85 | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6916 | $as_echo "no" >&6; } |
6917 | fi | |
d9898ee8 | 6918 | |
d9898ee8 | 6919 | |
d9898ee8 | 6920 | fi |
8d138742 CE |
6921 | if test -z "$ac_cv_prog_LIPO"; then |
6922 | ac_ct_LIPO=$LIPO | |
6923 | # Extract the first word of "lipo", so it can be a program name with args. | |
6924 | set dummy lipo; ac_word=$2 | |
b0322a85 | 6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6926 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6927 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
6928 | $as_echo_n "(cached) " >&6 |
6929 | else | |
6930 | if test -n "$ac_ct_LIPO"; then | |
6931 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6932 | else | |
6933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6934 | for as_dir in $PATH | |
6935 | do | |
6936 | IFS=$as_save_IFS | |
6937 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6938 | for ac_exec_ext in '' $ac_executable_extensions; do |
6939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6940 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 6941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6942 | break 2 |
6943 | fi | |
d9898ee8 | 6944 | done |
b0322a85 | 6945 | done |
8d138742 | 6946 | IFS=$as_save_IFS |
d9898ee8 | 6947 | |
8d138742 CE |
6948 | fi |
6949 | fi | |
6950 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6951 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 6953 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 6954 | else |
b0322a85 | 6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6956 | $as_echo "no" >&6; } |
6957 | fi | |
d9898ee8 | 6958 | |
8d138742 CE |
6959 | if test "x$ac_ct_LIPO" = x; then |
6960 | LIPO=":" | |
6961 | else | |
6962 | case $cross_compiling:$ac_tool_warned in | |
6963 | yes:) | |
b0322a85 | 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6965 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6966 | ac_tool_warned=yes ;; | |
d9898ee8 | 6967 | esac |
8d138742 CE |
6968 | LIPO=$ac_ct_LIPO |
6969 | fi | |
6970 | else | |
6971 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 6972 | fi |
6973 | ||
8d138742 CE |
6974 | if test -n "$ac_tool_prefix"; then |
6975 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6976 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6978 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6979 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 6980 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6981 | else |
8d138742 CE |
6982 | if test -n "$OTOOL"; then |
6983 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6984 | else | |
6985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6986 | for as_dir in $PATH | |
6987 | do | |
6988 | IFS=$as_save_IFS | |
6989 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6990 | for ac_exec_ext in '' $ac_executable_extensions; do |
6991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6992 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 6993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6994 | break 2 |
6995 | fi | |
6996 | done | |
b0322a85 | 6997 | done |
8d138742 | 6998 | IFS=$as_save_IFS |
d9898ee8 | 6999 | |
8d138742 CE |
7000 | fi |
7001 | fi | |
7002 | OTOOL=$ac_cv_prog_OTOOL | |
7003 | if test -n "$OTOOL"; then | |
b0322a85 | 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 7005 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 7006 | else |
b0322a85 | 7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7008 | $as_echo "no" >&6; } |
7009 | fi | |
d9898ee8 | 7010 | |
d9898ee8 | 7011 | |
d9898ee8 | 7012 | fi |
8d138742 CE |
7013 | if test -z "$ac_cv_prog_OTOOL"; then |
7014 | ac_ct_OTOOL=$OTOOL | |
7015 | # Extract the first word of "otool", so it can be a program name with args. | |
7016 | set dummy otool; ac_word=$2 | |
b0322a85 | 7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7018 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7019 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7020 | $as_echo_n "(cached) " >&6 |
7021 | else | |
7022 | if test -n "$ac_ct_OTOOL"; then | |
7023 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7024 | else | |
7025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7026 | for as_dir in $PATH | |
7027 | do | |
7028 | IFS=$as_save_IFS | |
7029 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7030 | for ac_exec_ext in '' $ac_executable_extensions; do |
7031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7032 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7034 | break 2 |
7035 | fi | |
7036 | done | |
b0322a85 | 7037 | done |
8d138742 | 7038 | IFS=$as_save_IFS |
d9898ee8 | 7039 | |
8d138742 CE |
7040 | fi |
7041 | fi | |
7042 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7043 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7045 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7046 | else |
b0322a85 | 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7048 | $as_echo "no" >&6; } |
d9898ee8 | 7049 | fi |
7050 | ||
8d138742 CE |
7051 | if test "x$ac_ct_OTOOL" = x; then |
7052 | OTOOL=":" | |
d9898ee8 | 7053 | else |
8d138742 CE |
7054 | case $cross_compiling:$ac_tool_warned in |
7055 | yes:) | |
b0322a85 | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7057 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7058 | ac_tool_warned=yes ;; | |
7059 | esac | |
7060 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 7061 | fi |
8d138742 CE |
7062 | else |
7063 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 7064 | fi |
7065 | ||
8d138742 CE |
7066 | if test -n "$ac_tool_prefix"; then |
7067 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7068 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7070 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7071 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
7072 | $as_echo_n "(cached) " >&6 |
7073 | else | |
7074 | if test -n "$OTOOL64"; then | |
7075 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7076 | else | |
7077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7078 | for as_dir in $PATH | |
7079 | do | |
7080 | IFS=$as_save_IFS | |
7081 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7082 | for ac_exec_ext in '' $ac_executable_extensions; do |
7083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7084 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7086 | break 2 |
d9898ee8 | 7087 | fi |
8d138742 | 7088 | done |
b0322a85 | 7089 | done |
8d138742 | 7090 | IFS=$as_save_IFS |
d9898ee8 | 7091 | |
8d138742 CE |
7092 | fi |
7093 | fi | |
7094 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7095 | if test -n "$OTOOL64"; then | |
b0322a85 | 7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
7097 | $as_echo "$OTOOL64" >&6; } |
7098 | else | |
b0322a85 | 7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7100 | $as_echo "no" >&6; } |
dd184caf | 7101 | fi |
d9898ee8 | 7102 | |
d9898ee8 | 7103 | |
8d138742 CE |
7104 | fi |
7105 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7106 | ac_ct_OTOOL64=$OTOOL64 | |
7107 | # Extract the first word of "otool64", so it can be a program name with args. | |
7108 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7110 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7111 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7112 | $as_echo_n "(cached) " >&6 |
7113 | else | |
7114 | if test -n "$ac_ct_OTOOL64"; then | |
7115 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7116 | else | |
7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7118 | for as_dir in $PATH | |
7119 | do | |
7120 | IFS=$as_save_IFS | |
7121 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7122 | for ac_exec_ext in '' $ac_executable_extensions; do |
7123 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7124 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7126 | break 2 |
7127 | fi | |
7128 | done | |
b0322a85 | 7129 | done |
8d138742 | 7130 | IFS=$as_save_IFS |
d9898ee8 | 7131 | |
8d138742 CE |
7132 | fi |
7133 | fi | |
7134 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7135 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7137 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7138 | else |
b0322a85 | 7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7140 | $as_echo "no" >&6; } |
dd184caf | 7141 | fi |
7142 | ||
8d138742 CE |
7143 | if test "x$ac_ct_OTOOL64" = x; then |
7144 | OTOOL64=":" | |
7145 | else | |
7146 | case $cross_compiling:$ac_tool_warned in | |
7147 | yes:) | |
b0322a85 | 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7149 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7150 | ac_tool_warned=yes ;; | |
7151 | esac | |
7152 | OTOOL64=$ac_ct_OTOOL64 | |
7153 | fi | |
7154 | else | |
7155 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7156 | fi | |
d9898ee8 | 7157 | |
d9898ee8 | 7158 | |
7159 | ||
d9898ee8 | 7160 | |
d9898ee8 | 7161 | |
d9898ee8 | 7162 | |
d9898ee8 | 7163 | |
7164 | ||
d9898ee8 | 7165 | |
d9898ee8 | 7166 | |
d9898ee8 | 7167 | |
7168 | ||
d9898ee8 | 7169 | |
d9898ee8 | 7170 | |
7171 | ||
7172 | ||
d9898ee8 | 7173 | |
d9898ee8 | 7174 | |
7175 | ||
d9898ee8 | 7176 | |
d9898ee8 | 7177 | |
d9898ee8 | 7178 | |
d9898ee8 | 7179 | |
d9898ee8 | 7180 | |
d9898ee8 | 7181 | |
d9898ee8 | 7182 | |
8d138742 | 7183 | |
b0322a85 | 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7185 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7186 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
7187 | $as_echo_n "(cached) " >&6 |
7188 | else | |
7189 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 7190 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7191 | # By default we will add the -single_module flag. You can override |
7192 | # by either setting the environment variable LT_MULTI_MODULE | |
7193 | # non-empty at configure time, or by adding -multi_module to the | |
7194 | # link flags. | |
7195 | rm -rf libconftest.dylib* | |
7196 | echo "int foo(void){return 1;}" > conftest.c | |
7197 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7198 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7199 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7200 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7201 | _lt_result=$? | |
b0322a85 CE |
7202 | # If there is a non-empty error log, and "single_module" |
7203 | # appears in it, assume the flag caused a linker warning | |
7204 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7205 | cat conftest.err >&5 | |
7206 | # Otherwise, if the output was created with a 0 exit code from | |
7207 | # the compiler, it worked. | |
d50284c4 | 7208 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
7209 | lt_cv_apple_cc_single_mod=yes |
7210 | else | |
7211 | cat conftest.err >&5 | |
7212 | fi | |
7213 | rm -rf libconftest.dylib* | |
7214 | rm -f conftest.* | |
d9898ee8 | 7215 | fi |
8d138742 | 7216 | fi |
b0322a85 | 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7218 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7219 | |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7221 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7222 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7223 | $as_echo_n "(cached) " >&6 |
7224 | else | |
7225 | lt_cv_ld_exported_symbols_list=no | |
7226 | save_LDFLAGS=$LDFLAGS | |
7227 | echo "_main" > conftest.sym | |
7228 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7230 | /* end confdefs.h. */ |
d9898ee8 | 7231 | |
8d138742 CE |
7232 | int |
7233 | main () | |
7234 | { | |
d9898ee8 | 7235 | |
8d138742 CE |
7236 | ; |
7237 | return 0; | |
7238 | } | |
7239 | _ACEOF | |
b0322a85 | 7240 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
7241 | lt_cv_ld_exported_symbols_list=yes |
7242 | else | |
b0322a85 | 7243 | lt_cv_ld_exported_symbols_list=no |
8d138742 | 7244 | fi |
b0322a85 CE |
7245 | rm -f core conftest.err conftest.$ac_objext \ |
7246 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7247 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7248 | |
8d138742 | 7249 | fi |
b0322a85 | 7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7251 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7252 | |
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7254 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7255 | if ${lt_cv_ld_force_load+:} false; then : | |
7256 | $as_echo_n "(cached) " >&6 | |
7257 | else | |
7258 | lt_cv_ld_force_load=no | |
7259 | cat > conftest.c << _LT_EOF | |
7260 | int forced_loaded() { return 2;} | |
7261 | _LT_EOF | |
7262 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7263 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7264 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7265 | $AR cru libconftest.a conftest.o 2>&5 | |
7266 | echo "$RANLIB libconftest.a" >&5 | |
7267 | $RANLIB libconftest.a 2>&5 | |
7268 | cat > conftest.c << _LT_EOF | |
7269 | int main() { return 0;} | |
7270 | _LT_EOF | |
7271 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7272 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7273 | _lt_result=$? | |
7274 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7275 | cat conftest.err >&5 | |
d50284c4 | 7276 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7277 | lt_cv_ld_force_load=yes |
7278 | else | |
7279 | cat conftest.err >&5 | |
7280 | fi | |
7281 | rm -f conftest.err libconftest.a conftest conftest.c | |
7282 | rm -rf conftest.dSYM | |
7283 | ||
7284 | fi | |
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7286 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
7287 | case $host_os in |
7288 | rhapsody* | darwin1.[012]) | |
d50284c4 | 7289 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7290 | darwin1.*) |
d50284c4 | 7291 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7292 | darwin*) # darwin 5.x on |
7293 | # if running on 10.5 or later, the deployment target defaults | |
7294 | # to the OS version, if on x86, and 10.4, the deployment | |
7295 | # target defaults to 10.4. Don't you love it? | |
7296 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7297 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7298 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7299 | 10.[012][,.]*) | |
7300 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7301 | 10.*) |
d50284c4 | 7302 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7303 | esac |
7304 | ;; | |
7305 | esac | |
d50284c4 | 7306 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7307 | _lt_dar_single_mod='$single_module' |
7308 | fi | |
d50284c4 CE |
7309 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7310 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7311 | else |
d50284c4 | 7312 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7313 | fi |
d50284c4 | 7314 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7315 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7316 | else | |
7317 | _lt_dsymutil= | |
7318 | fi | |
7319 | ;; | |
7320 | esac | |
d9898ee8 | 7321 | |
d50284c4 CE |
7322 | # func_munge_path_list VARIABLE PATH |
7323 | # ----------------------------------- | |
7324 | # VARIABLE is name of variable containing _space_ separated list of | |
7325 | # directories to be munged by the contents of PATH, which is string | |
7326 | # having a format: | |
7327 | # "DIR[:DIR]:" | |
7328 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7329 | # ":DIR[:DIR]" | |
7330 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7331 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7332 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7333 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7334 | # "DIR[:DIR]" | |
7335 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7336 | func_munge_path_list () | |
7337 | { | |
7338 | case x$2 in | |
7339 | x) | |
7340 | ;; | |
7341 | *:) | |
7342 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7343 | ;; | |
7344 | x:*) | |
7345 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7346 | ;; | |
7347 | *::*) | |
7348 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7349 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7350 | ;; | |
7351 | *) | |
7352 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7353 | ;; | |
7354 | esac | |
7355 | } | |
7356 | ||
8d138742 CE |
7357 | ac_ext=c |
7358 | ac_cpp='$CPP $CPPFLAGS' | |
7359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7363 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7364 | # On Suns, sometimes $CPP names a directory. | |
7365 | if test -n "$CPP" && test -d "$CPP"; then | |
7366 | CPP= | |
7367 | fi | |
7368 | if test -z "$CPP"; then | |
b0322a85 | 7369 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7370 | $as_echo_n "(cached) " >&6 |
7371 | else | |
7372 | # Double quotes because CPP needs to be expanded | |
7373 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7374 | do | |
7375 | ac_preproc_ok=false | |
7376 | for ac_c_preproc_warn_flag in '' yes | |
7377 | do | |
7378 | # Use a header file that comes with gcc, so configuring glibc | |
7379 | # with a fresh cross-compiler works. | |
7380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7381 | # <limits.h> exists even on freestanding compilers. | |
7382 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7383 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7385 | /* end confdefs.h. */ |
7386 | #ifdef __STDC__ | |
7387 | # include <limits.h> | |
7388 | #else | |
7389 | # include <assert.h> | |
7390 | #endif | |
7391 | Syntax error | |
7392 | _ACEOF | |
b0322a85 | 7393 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7394 | |
b0322a85 | 7395 | else |
8d138742 CE |
7396 | # Broken: fails on valid input. |
7397 | continue | |
7398 | fi | |
b0322a85 | 7399 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7400 | |
8d138742 CE |
7401 | # OK, works on sane cases. Now check whether nonexistent headers |
7402 | # can be detected and how. | |
b0322a85 | 7403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7404 | /* end confdefs.h. */ |
7405 | #include <ac_nonexistent.h> | |
7406 | _ACEOF | |
b0322a85 | 7407 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7408 | # Broken: success on invalid input. |
7409 | continue | |
7410 | else | |
8d138742 CE |
7411 | # Passes both tests. |
7412 | ac_preproc_ok=: | |
7413 | break | |
7414 | fi | |
b0322a85 | 7415 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7416 | |
8d138742 CE |
7417 | done |
7418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7419 | rm -f conftest.i conftest.err conftest.$ac_ext |
7420 | if $ac_preproc_ok; then : | |
8d138742 CE |
7421 | break |
7422 | fi | |
d9898ee8 | 7423 | |
8d138742 CE |
7424 | done |
7425 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7426 | |
8d138742 CE |
7427 | fi |
7428 | CPP=$ac_cv_prog_CPP | |
7429 | else | |
7430 | ac_cv_prog_CPP=$CPP | |
7431 | fi | |
b0322a85 | 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7433 | $as_echo "$CPP" >&6; } |
7434 | ac_preproc_ok=false | |
7435 | for ac_c_preproc_warn_flag in '' yes | |
7436 | do | |
7437 | # Use a header file that comes with gcc, so configuring glibc | |
7438 | # with a fresh cross-compiler works. | |
7439 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7440 | # <limits.h> exists even on freestanding compilers. | |
7441 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7442 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7444 | /* end confdefs.h. */ |
7445 | #ifdef __STDC__ | |
7446 | # include <limits.h> | |
7447 | #else | |
7448 | # include <assert.h> | |
7449 | #endif | |
7450 | Syntax error | |
7451 | _ACEOF | |
b0322a85 | 7452 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7453 | |
b0322a85 | 7454 | else |
8d138742 CE |
7455 | # Broken: fails on valid input. |
7456 | continue | |
7457 | fi | |
b0322a85 | 7458 | rm -f conftest.err conftest.i conftest.$ac_ext |
ac40fd9e | 7459 | |
8d138742 CE |
7460 | # OK, works on sane cases. Now check whether nonexistent headers |
7461 | # can be detected and how. | |
b0322a85 | 7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7463 | /* end confdefs.h. */ |
7464 | #include <ac_nonexistent.h> | |
7465 | _ACEOF | |
b0322a85 | 7466 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7467 | # Broken: success on invalid input. |
7468 | continue | |
7469 | else | |
8d138742 CE |
7470 | # Passes both tests. |
7471 | ac_preproc_ok=: | |
7472 | break | |
7473 | fi | |
b0322a85 | 7474 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7475 | |
8d138742 CE |
7476 | done |
7477 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7478 | rm -f conftest.i conftest.err conftest.$ac_ext |
7479 | if $ac_preproc_ok; then : | |
7480 | ||
8d138742 | 7481 | else |
b0322a85 | 7482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7484 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7485 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7486 | fi |
d9898ee8 | 7487 | |
8d138742 CE |
7488 | ac_ext=c |
7489 | ac_cpp='$CPP $CPPFLAGS' | |
7490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7493 | |
d9898ee8 | 7494 | |
b0322a85 | 7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7496 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7497 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7498 | $as_echo_n "(cached) " >&6 |
7499 | else | |
b0322a85 | 7500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7501 | /* end confdefs.h. */ |
7502 | #include <stdlib.h> | |
7503 | #include <stdarg.h> | |
7504 | #include <string.h> | |
7505 | #include <float.h> | |
d9898ee8 | 7506 | |
8d138742 CE |
7507 | int |
7508 | main () | |
7509 | { | |
d9898ee8 | 7510 | |
8d138742 CE |
7511 | ; |
7512 | return 0; | |
7513 | } | |
7514 | _ACEOF | |
b0322a85 | 7515 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7516 | ac_cv_header_stdc=yes |
7517 | else | |
b0322a85 | 7518 | ac_cv_header_stdc=no |
8d138742 | 7519 | fi |
8d138742 | 7520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7521 | |
8d138742 CE |
7522 | if test $ac_cv_header_stdc = yes; then |
7523 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7525 | /* end confdefs.h. */ |
7526 | #include <string.h> | |
d9898ee8 | 7527 | |
8d138742 CE |
7528 | _ACEOF |
7529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7530 | $EGREP "memchr" >/dev/null 2>&1; then : |
7531 | ||
d9898ee8 | 7532 | else |
8d138742 | 7533 | ac_cv_header_stdc=no |
d9898ee8 | 7534 | fi |
8d138742 | 7535 | rm -f conftest* |
d9898ee8 | 7536 | |
7537 | fi | |
d9898ee8 | 7538 | |
8d138742 CE |
7539 | if test $ac_cv_header_stdc = yes; then |
7540 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7542 | /* end confdefs.h. */ |
7543 | #include <stdlib.h> | |
7544 | ||
7545 | _ACEOF | |
7546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7547 | $EGREP "free" >/dev/null 2>&1; then : |
7548 | ||
d9898ee8 | 7549 | else |
8d138742 CE |
7550 | ac_cv_header_stdc=no |
7551 | fi | |
7552 | rm -f conftest* | |
d9898ee8 | 7553 | |
7554 | fi | |
d9898ee8 | 7555 | |
8d138742 CE |
7556 | if test $ac_cv_header_stdc = yes; then |
7557 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7558 | if test "$cross_compiling" = yes; then : |
8d138742 | 7559 | : |
d9898ee8 | 7560 | else |
b0322a85 | 7561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7562 | /* end confdefs.h. */ |
7563 | #include <ctype.h> | |
7564 | #include <stdlib.h> | |
7565 | #if ((' ' & 0x0FF) == 0x020) | |
7566 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7567 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7568 | #else | |
7569 | # define ISLOWER(c) \ | |
7570 | (('a' <= (c) && (c) <= 'i') \ | |
7571 | || ('j' <= (c) && (c) <= 'r') \ | |
7572 | || ('s' <= (c) && (c) <= 'z')) | |
7573 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7574 | #endif | |
7575 | ||
7576 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7577 | int | |
7578 | main () | |
7579 | { | |
7580 | int i; | |
7581 | for (i = 0; i < 256; i++) | |
7582 | if (XOR (islower (i), ISLOWER (i)) | |
7583 | || toupper (i) != TOUPPER (i)) | |
7584 | return 2; | |
7585 | return 0; | |
7586 | } | |
7587 | _ACEOF | |
b0322a85 | 7588 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 7589 | |
b0322a85 CE |
7590 | else |
7591 | ac_cv_header_stdc=no | |
8d138742 | 7592 | fi |
b0322a85 CE |
7593 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7594 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 7595 | fi |
7596 | ||
8d138742 CE |
7597 | fi |
7598 | fi | |
b0322a85 | 7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7600 | $as_echo "$ac_cv_header_stdc" >&6; } |
7601 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7602 | |
b0322a85 | 7603 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7604 | |
7605 | fi | |
d9898ee8 | 7606 | |
8d138742 | 7607 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7608 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7609 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7610 | do : |
7611 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7612 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7613 | " | |
7614 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7615 | cat >>confdefs.h <<_ACEOF |
7616 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7617 | _ACEOF | |
7618 | ||
7619 | fi | |
d9898ee8 | 7620 | |
d9898ee8 | 7621 | done |
d9898ee8 | 7622 | |
d9898ee8 | 7623 | |
8d138742 | 7624 | for ac_header in dlfcn.h |
b0322a85 CE |
7625 | do : |
7626 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7627 | " | |
7628 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7629 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7630 | #define HAVE_DLFCN_H 1 |
8d138742 | 7631 | _ACEOF |
d9898ee8 | 7632 | |
8d138742 | 7633 | fi |
d9898ee8 | 7634 | |
8d138742 | 7635 | done |
d9898ee8 | 7636 | |
d9898ee8 | 7637 | |
d9898ee8 | 7638 | |
b0322a85 CE |
7639 | |
7640 | ||
8d138742 | 7641 | # Set options |
d9898ee8 | 7642 | |
d9898ee8 | 7643 | |
d9898ee8 | 7644 | |
8d138742 CE |
7645 | enable_dlopen=no |
7646 | ||
7647 | ||
7648 | enable_win32_dll=no | |
7649 | ||
7650 | ||
7651 | # Check whether --enable-shared was given. | |
b0322a85 | 7652 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7653 | enableval=$enable_shared; p=${PACKAGE-default} |
7654 | case $enableval in | |
7655 | yes) enable_shared=yes ;; | |
7656 | no) enable_shared=no ;; | |
7657 | *) | |
7658 | enable_shared=no | |
7659 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7660 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7661 | for pkg in $enableval; do |
d50284c4 | 7662 | IFS=$lt_save_ifs |
8d138742 CE |
7663 | if test "X$pkg" = "X$p"; then |
7664 | enable_shared=yes | |
d9898ee8 | 7665 | fi |
8d138742 | 7666 | done |
d50284c4 | 7667 | IFS=$lt_save_ifs |
d9898ee8 | 7668 | ;; |
8d138742 CE |
7669 | esac |
7670 | else | |
7671 | enable_shared=yes | |
7672 | fi | |
d9898ee8 | 7673 | |
d9898ee8 | 7674 | |
d9898ee8 | 7675 | |
d9898ee8 | 7676 | |
d9898ee8 | 7677 | |
d9898ee8 | 7678 | |
d9898ee8 | 7679 | |
d9898ee8 | 7680 | |
d9898ee8 | 7681 | |
8d138742 | 7682 | # Check whether --enable-static was given. |
b0322a85 | 7683 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7684 | enableval=$enable_static; p=${PACKAGE-default} |
7685 | case $enableval in | |
7686 | yes) enable_static=yes ;; | |
7687 | no) enable_static=no ;; | |
d9898ee8 | 7688 | *) |
8d138742 CE |
7689 | enable_static=no |
7690 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7691 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7692 | for pkg in $enableval; do |
d50284c4 | 7693 | IFS=$lt_save_ifs |
8d138742 CE |
7694 | if test "X$pkg" = "X$p"; then |
7695 | enable_static=yes | |
7696 | fi | |
7697 | done | |
d50284c4 | 7698 | IFS=$lt_save_ifs |
d9898ee8 | 7699 | ;; |
7700 | esac | |
8d138742 CE |
7701 | else |
7702 | enable_static=yes | |
7703 | fi | |
d9898ee8 | 7704 | |
d9898ee8 | 7705 | |
d9898ee8 | 7706 | |
d9898ee8 | 7707 | |
d9898ee8 | 7708 | |
d9898ee8 | 7709 | |
d9898ee8 | 7710 | |
d9898ee8 | 7711 | |
d9898ee8 | 7712 | |
d9898ee8 | 7713 | |
8d138742 | 7714 | # Check whether --with-pic was given. |
b0322a85 CE |
7715 | if test "${with_pic+set}" = set; then : |
7716 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7717 | case $withval in | |
7718 | yes|no) pic_mode=$withval ;; | |
7719 | *) | |
7720 | pic_mode=default | |
7721 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7722 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7723 | for lt_pkg in $withval; do |
d50284c4 | 7724 | IFS=$lt_save_ifs |
b0322a85 CE |
7725 | if test "X$lt_pkg" = "X$lt_p"; then |
7726 | pic_mode=yes | |
7727 | fi | |
7728 | done | |
d50284c4 | 7729 | IFS=$lt_save_ifs |
b0322a85 CE |
7730 | ;; |
7731 | esac | |
d9898ee8 | 7732 | else |
8d138742 | 7733 | pic_mode=default |
d9898ee8 | 7734 | fi |
dd184caf | 7735 | |
d9898ee8 | 7736 | |
d9898ee8 | 7737 | |
d9898ee8 | 7738 | |
d9898ee8 | 7739 | |
dd184caf | 7740 | |
dd184caf | 7741 | |
d9898ee8 | 7742 | |
8d138742 | 7743 | # Check whether --enable-fast-install was given. |
b0322a85 | 7744 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7745 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7746 | case $enableval in | |
7747 | yes) enable_fast_install=yes ;; | |
7748 | no) enable_fast_install=no ;; | |
7749 | *) | |
7750 | enable_fast_install=no | |
7751 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7752 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7753 | for pkg in $enableval; do |
d50284c4 | 7754 | IFS=$lt_save_ifs |
8d138742 CE |
7755 | if test "X$pkg" = "X$p"; then |
7756 | enable_fast_install=yes | |
d9898ee8 | 7757 | fi |
8d138742 | 7758 | done |
d50284c4 | 7759 | IFS=$lt_save_ifs |
d9898ee8 | 7760 | ;; |
8d138742 CE |
7761 | esac |
7762 | else | |
7763 | enable_fast_install=yes | |
7764 | fi | |
d9898ee8 | 7765 | |
d9898ee8 | 7766 | |
d9898ee8 | 7767 | |
d9898ee8 | 7768 | |
d9898ee8 | 7769 | |
d9898ee8 | 7770 | |
d9898ee8 | 7771 | |
d9898ee8 | 7772 | |
d50284c4 CE |
7773 | shared_archive_member_spec= |
7774 | case $host,$enable_shared in | |
7775 | power*-*-aix[5-9]*,yes) | |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7777 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7778 | ||
7779 | # Check whether --with-aix-soname was given. | |
7780 | if test "${with_aix_soname+set}" = set; then : | |
7781 | withval=$with_aix_soname; case $withval in | |
7782 | aix|svr4|both) | |
7783 | ;; | |
7784 | *) | |
7785 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7786 | ;; | |
7787 | esac | |
7788 | lt_cv_with_aix_soname=$with_aix_soname | |
7789 | else | |
7790 | if ${lt_cv_with_aix_soname+:} false; then : | |
7791 | $as_echo_n "(cached) " >&6 | |
7792 | else | |
7793 | lt_cv_with_aix_soname=aix | |
7794 | fi | |
7795 | ||
7796 | with_aix_soname=$lt_cv_with_aix_soname | |
7797 | fi | |
7798 | ||
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7800 | $as_echo "$with_aix_soname" >&6; } | |
7801 | if test aix != "$with_aix_soname"; then | |
7802 | # For the AIX way of multilib, we name the shared archive member | |
7803 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7804 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7805 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7806 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7807 | if test 64 = "${OBJECT_MODE-32}"; then | |
7808 | shared_archive_member_spec=shr_64 | |
7809 | else | |
7810 | shared_archive_member_spec=shr | |
7811 | fi | |
7812 | fi | |
7813 | ;; | |
7814 | *) | |
7815 | with_aix_soname=aix | |
7816 | ;; | |
7817 | esac | |
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | ||
7824 | ||
d9898ee8 | 7825 | |
d9898ee8 | 7826 | |
d9898ee8 | 7827 | |
8d138742 | 7828 | # This can be used to rebuild libtool when needed |
d50284c4 | 7829 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 7830 | |
8d138742 CE |
7831 | # Always use our own libtool. |
7832 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7833 | |
d9898ee8 | 7834 | |
d9898ee8 | 7835 | |
d9898ee8 | 7836 | |
d9898ee8 | 7837 | |
d9898ee8 | 7838 | |
d9898ee8 | 7839 | |
d9898ee8 | 7840 | |
d9898ee8 | 7841 | |
d9898ee8 | 7842 | |
d9898ee8 | 7843 | |
d9898ee8 | 7844 | |
d9898ee8 | 7845 | |
d9898ee8 | 7846 | |
d9898ee8 | 7847 | |
d9898ee8 | 7848 | |
d9898ee8 | 7849 | |
d9898ee8 | 7850 | |
d9898ee8 | 7851 | |
b0322a85 CE |
7852 | |
7853 | ||
7854 | ||
7855 | ||
7856 | ||
d9898ee8 | 7857 | |
d9898ee8 | 7858 | |
d9898ee8 | 7859 | |
d9898ee8 | 7860 | |
d9898ee8 | 7861 | |
d9898ee8 | 7862 | |
8d138742 | 7863 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7864 | |
d9898ee8 | 7865 | |
d9898ee8 | 7866 | |
d9898ee8 | 7867 | |
ac40fd9e | 7868 | |
d9898ee8 | 7869 | |
d9898ee8 | 7870 | |
d9898ee8 | 7871 | |
d9898ee8 | 7872 | |
d9898ee8 | 7873 | |
d9898ee8 | 7874 | |
d9898ee8 | 7875 | |
d9898ee8 | 7876 | |
d9898ee8 | 7877 | |
d50284c4 | 7878 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
7879 | setopt NO_GLOB_SUBST |
7880 | fi | |
d9898ee8 | 7881 | |
b0322a85 | 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7883 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7884 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7885 | $as_echo_n "(cached) " >&6 |
7886 | else | |
7887 | rm -f .libs 2>/dev/null | |
7888 | mkdir .libs 2>/dev/null | |
7889 | if test -d .libs; then | |
7890 | lt_cv_objdir=.libs | |
7891 | else | |
7892 | # MS-DOS does not allow filenames that begin with a dot. | |
7893 | lt_cv_objdir=_libs | |
7894 | fi | |
7895 | rmdir .libs 2>/dev/null | |
7896 | fi | |
b0322a85 | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7898 | $as_echo "$lt_cv_objdir" >&6; } |
7899 | objdir=$lt_cv_objdir | |
d9898ee8 | 7900 | |
d9898ee8 | 7901 | |
ac40fd9e | 7902 | |
d9898ee8 | 7903 | |
d9898ee8 | 7904 | |
8d138742 CE |
7905 | cat >>confdefs.h <<_ACEOF |
7906 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7907 | _ACEOF | |
d9898ee8 | 7908 | |
d9898ee8 | 7909 | |
d9898ee8 | 7910 | |
d9898ee8 | 7911 | |
8d138742 CE |
7912 | case $host_os in |
7913 | aix3*) | |
7914 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7915 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7916 | # vanish in a puff of smoke. | |
d50284c4 | 7917 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
7918 | COLLECT_NAMES= |
7919 | export COLLECT_NAMES | |
d9898ee8 | 7920 | fi |
7921 | ;; | |
8d138742 | 7922 | esac |
d9898ee8 | 7923 | |
8d138742 CE |
7924 | # Global variables: |
7925 | ofile=libtool | |
7926 | can_build_shared=yes | |
7927 | ||
d50284c4 | 7928 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
7929 | # which needs '.lib'). |
7930 | libext=a | |
7931 | ||
d50284c4 | 7932 | with_gnu_ld=$lt_cv_prog_gnu_ld |
8d138742 | 7933 | |
d50284c4 CE |
7934 | old_CC=$CC |
7935 | old_CFLAGS=$CFLAGS | |
8d138742 CE |
7936 | |
7937 | # Set sane defaults for various variables | |
7938 | test -z "$CC" && CC=cc | |
7939 | test -z "$LTCC" && LTCC=$CC | |
7940 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7941 | test -z "$LD" && LD=ld | |
7942 | test -z "$ac_objext" && ac_objext=o | |
7943 | ||
d50284c4 CE |
7944 | func_cc_basename $compiler |
7945 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 7946 | |
d9898ee8 | 7947 | |
8d138742 CE |
7948 | # Only perform the check for file, if the check method requires it |
7949 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7950 | case $deplibs_check_method in | |
7951 | file_magic*) | |
7952 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 7954 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 7955 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7956 | $as_echo_n "(cached) " >&6 |
7957 | else | |
7958 | case $MAGIC_CMD in | |
7959 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 7960 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
d9898ee8 | 7961 | ;; |
8d138742 | 7962 | *) |
d50284c4 CE |
7963 | lt_save_MAGIC_CMD=$MAGIC_CMD |
7964 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
7965 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7966 | for ac_dir in $ac_dummy; do | |
d50284c4 | 7967 | IFS=$lt_save_ifs |
8d138742 | 7968 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
7969 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
7970 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
7971 | if test -n "$file_magic_test_file"; then |
7972 | case $deplibs_check_method in | |
7973 | "file_magic "*) | |
7974 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 7975 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
7976 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7977 | $EGREP "$file_magic_regex" > /dev/null; then | |
7978 | : | |
7979 | else | |
7980 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7981 | |
8d138742 CE |
7982 | *** Warning: the command libtool uses to detect shared libraries, |
7983 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7984 | *** The result is that libtool may fail to recognize shared libraries | |
7985 | *** as such. This will affect the creation of libtool libraries that | |
7986 | *** depend on shared libraries, but programs linked with such libtool | |
7987 | *** libraries will work regardless of this problem. Nevertheless, you | |
7988 | *** may want to report the problem to your system manager and/or to | |
7989 | *** bug-libtool@gnu.org | |
d9898ee8 | 7990 | |
8d138742 CE |
7991 | _LT_EOF |
7992 | fi ;; | |
7993 | esac | |
7994 | fi | |
7995 | break | |
7996 | fi | |
7997 | done | |
d50284c4 CE |
7998 | IFS=$lt_save_ifs |
7999 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
d9898ee8 | 8000 | ;; |
8001 | esac | |
d9898ee8 | 8002 | fi |
8003 | ||
d50284c4 | 8004 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8005 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8007 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8008 | else |
b0322a85 | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8010 | $as_echo "no" >&6; } |
d9898ee8 | 8011 | fi |
d9898ee8 | 8012 | |
d9898ee8 | 8013 | |
8d138742 CE |
8014 | |
8015 | ||
8016 | ||
8017 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8018 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8020 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8021 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8022 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8023 | else |
8d138742 CE |
8024 | case $MAGIC_CMD in |
8025 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8026 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8027 | ;; |
8028 | *) | |
d50284c4 CE |
8029 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8030 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8031 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8032 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8033 | IFS=$lt_save_ifs |
8d138742 | 8034 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8035 | if test -f "$ac_dir/file"; then |
8036 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8037 | if test -n "$file_magic_test_file"; then |
8038 | case $deplibs_check_method in | |
8039 | "file_magic "*) | |
8040 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8041 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8042 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8043 | $EGREP "$file_magic_regex" > /dev/null; then | |
8044 | : | |
8045 | else | |
8046 | cat <<_LT_EOF 1>&2 | |
8047 | ||
8048 | *** Warning: the command libtool uses to detect shared libraries, | |
8049 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8050 | *** The result is that libtool may fail to recognize shared libraries | |
8051 | *** as such. This will affect the creation of libtool libraries that | |
8052 | *** depend on shared libraries, but programs linked with such libtool | |
8053 | *** libraries will work regardless of this problem. Nevertheless, you | |
8054 | *** may want to report the problem to your system manager and/or to | |
8055 | *** bug-libtool@gnu.org | |
8056 | ||
8057 | _LT_EOF | |
8058 | fi ;; | |
8059 | esac | |
8060 | fi | |
8061 | break | |
8062 | fi | |
8063 | done | |
d50284c4 CE |
8064 | IFS=$lt_save_ifs |
8065 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8066 | ;; |
8067 | esac | |
d9898ee8 | 8068 | fi |
8069 | ||
d50284c4 | 8070 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8071 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8073 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8074 | else |
b0322a85 | 8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8076 | $as_echo "no" >&6; } |
8077 | fi | |
d9898ee8 | 8078 | |
d9898ee8 | 8079 | |
8d138742 CE |
8080 | else |
8081 | MAGIC_CMD=: | |
8082 | fi | |
8083 | fi | |
d9898ee8 | 8084 | |
8d138742 CE |
8085 | fi |
8086 | ;; | |
8087 | esac | |
d9898ee8 | 8088 | |
8d138742 | 8089 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8090 | |
d50284c4 | 8091 | lt_save_CC=$CC |
8d138742 CE |
8092 | ac_ext=c |
8093 | ac_cpp='$CPP $CPPFLAGS' | |
8094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8097 | |
dd184caf | 8098 | |
8d138742 CE |
8099 | # Source file extension for C test sources. |
8100 | ac_ext=c | |
d9898ee8 | 8101 | |
8d138742 CE |
8102 | # Object file extension for compiled C test sources. |
8103 | objext=o | |
8104 | objext=$objext | |
d9898ee8 | 8105 | |
8d138742 CE |
8106 | # Code to be used in simple compile tests |
8107 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8108 | |
8d138742 CE |
8109 | # Code to be used in simple link tests |
8110 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8111 | |
d9898ee8 | 8112 | |
d9898ee8 | 8113 | |
d9898ee8 | 8114 | |
d9898ee8 | 8115 | |
d9898ee8 | 8116 | |
d9898ee8 | 8117 | |
8d138742 CE |
8118 | # If no C compiler was specified, use CC. |
8119 | LTCC=${LTCC-"$CC"} | |
dd184caf | 8120 | |
8d138742 CE |
8121 | # If no C compiler flags were specified, use CFLAGS. |
8122 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8123 | |
8d138742 CE |
8124 | # Allow CC to be a program name with arguments. |
8125 | compiler=$CC | |
d9898ee8 | 8126 | |
8d138742 CE |
8127 | # Save the default compiler, since it gets overwritten when the other |
8128 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8129 | compiler_DEFAULT=$CC | |
dd184caf | 8130 | |
8d138742 CE |
8131 | # save warnings/boilerplate of simple test code |
8132 | ac_outfile=conftest.$ac_objext | |
8133 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8134 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8135 | _lt_compiler_boilerplate=`cat conftest.err` | |
8136 | $RM conftest* | |
d9898ee8 | 8137 | |
8d138742 CE |
8138 | ac_outfile=conftest.$ac_objext |
8139 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8140 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8141 | _lt_linker_boilerplate=`cat conftest.err` | |
8142 | $RM -r conftest* | |
d9898ee8 | 8143 | |
d9898ee8 | 8144 | |
8d138742 | 8145 | if test -n "$compiler"; then |
d9898ee8 | 8146 | |
8d138742 | 8147 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8148 | |
d50284c4 | 8149 | if test yes = "$GCC"; then |
b0322a85 CE |
8150 | case $cc_basename in |
8151 | nvcc*) | |
8152 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8153 | *) | |
8154 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8155 | esac | |
d9898ee8 | 8156 | |
b0322a85 | 8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8158 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8159 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8160 | $as_echo_n "(cached) " >&6 |
8161 | else | |
8162 | lt_cv_prog_compiler_rtti_exceptions=no | |
8163 | ac_outfile=conftest.$ac_objext | |
8164 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8165 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8166 | # Insert the option either (1) after the last *FLAGS variable, or |
8167 | # (2) before a word containing "conftest.", or (3) at the end. | |
8168 | # Note that $ac_compile itself does not contain backslashes and begins | |
8169 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8170 | # The option is referenced via a variable to avoid confusing sed. | |
8171 | lt_compile=`echo "$ac_compile" | $SED \ | |
8172 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8173 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8174 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8175 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8176 | (eval "$lt_compile" 2>conftest.err) |
8177 | ac_status=$? | |
8178 | cat conftest.err >&5 | |
b0322a85 | 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8180 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8181 | # The compiler can only warn and ignore the option if not recognized | |
8182 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8183 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8184 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8185 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8186 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8187 | fi | |
8188 | fi | |
8189 | $RM conftest* | |
dd184caf | 8190 | |
d9898ee8 | 8191 | fi |
b0322a85 | 8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8193 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8194 | |
d50284c4 | 8195 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 | 8196 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
d9898ee8 | 8197 | else |
8d138742 | 8198 | : |
d9898ee8 | 8199 | fi |
dd184caf | 8200 | |
d9898ee8 | 8201 | fi |
d9898ee8 | 8202 | |
d9898ee8 | 8203 | |
dd184caf | 8204 | |
d9898ee8 | 8205 | |
d9898ee8 | 8206 | |
dd184caf | 8207 | |
8d138742 CE |
8208 | lt_prog_compiler_wl= |
8209 | lt_prog_compiler_pic= | |
8210 | lt_prog_compiler_static= | |
d9898ee8 | 8211 | |
8212 | ||
d50284c4 | 8213 | if test yes = "$GCC"; then |
8d138742 CE |
8214 | lt_prog_compiler_wl='-Wl,' |
8215 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8216 | |
8d138742 CE |
8217 | case $host_os in |
8218 | aix*) | |
8219 | # All AIX code is PIC. | |
d50284c4 | 8220 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8221 | # AIX 5 now supports IA64 processor |
8222 | lt_prog_compiler_static='-Bstatic' | |
8223 | fi | |
d50284c4 | 8224 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 8225 | ;; |
d9898ee8 | 8226 | |
8d138742 CE |
8227 | amigaos*) |
8228 | case $host_cpu in | |
8229 | powerpc) | |
8230 | # see comment about AmigaOS4 .so support | |
8231 | lt_prog_compiler_pic='-fPIC' | |
8232 | ;; | |
8233 | m68k) | |
8234 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8235 | # adding the '-m68020' flag to GCC prevents building anything better, |
8236 | # like '-m68040'. | |
8d138742 CE |
8237 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8238 | ;; | |
8239 | esac | |
8240 | ;; | |
d9898ee8 | 8241 | |
8d138742 CE |
8242 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8243 | # PIC is the default for these OSes. | |
8244 | ;; | |
d9898ee8 | 8245 | |
8d138742 CE |
8246 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8247 | # This hack is so that the source file can tell whether it is being | |
8248 | # built for inclusion in a dll (and should export symbols for example). | |
8249 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8250 | # (--disable-auto-import) libraries | |
8251 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8252 | case $host_os in |
8253 | os2*) | |
8254 | lt_prog_compiler_static='$wl-static' | |
8255 | ;; | |
8256 | esac | |
8d138742 CE |
8257 | ;; |
8258 | ||
8259 | darwin* | rhapsody*) | |
8260 | # PIC is the default on this platform | |
8261 | # Common symbols not allowed in MH_DYLIB files | |
8262 | lt_prog_compiler_pic='-fno-common' | |
8263 | ;; | |
d9898ee8 | 8264 | |
b0322a85 CE |
8265 | haiku*) |
8266 | # PIC is the default for Haiku. | |
8267 | # The "-static" flag exists, but is broken. | |
8268 | lt_prog_compiler_static= | |
8269 | ;; | |
8270 | ||
8d138742 CE |
8271 | hpux*) |
8272 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8273 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8274 | # sets the default TLS model and affects inlining. | |
8275 | case $host_cpu in | |
8276 | hppa*64*) | |
8277 | # +Z the default | |
8278 | ;; | |
8279 | *) | |
8280 | lt_prog_compiler_pic='-fPIC' | |
8281 | ;; | |
8282 | esac | |
8283 | ;; | |
d9898ee8 | 8284 | |
8d138742 CE |
8285 | interix[3-9]*) |
8286 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8287 | # Instead, we relocate shared libraries at runtime. | |
8288 | ;; | |
d9898ee8 | 8289 | |
8d138742 CE |
8290 | msdosdjgpp*) |
8291 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8292 | # on systems that don't support them. | |
8293 | lt_prog_compiler_can_build_shared=no | |
8294 | enable_shared=no | |
8295 | ;; | |
d9898ee8 | 8296 | |
8d138742 CE |
8297 | *nto* | *qnx*) |
8298 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8299 | # it will coredump. | |
8300 | lt_prog_compiler_pic='-fPIC -shared' | |
8301 | ;; | |
d9898ee8 | 8302 | |
8d138742 CE |
8303 | sysv4*MP*) |
8304 | if test -d /usr/nec; then | |
8305 | lt_prog_compiler_pic=-Kconform_pic | |
8306 | fi | |
8307 | ;; | |
d9898ee8 | 8308 | |
8d138742 CE |
8309 | *) |
8310 | lt_prog_compiler_pic='-fPIC' | |
8311 | ;; | |
8312 | esac | |
b0322a85 CE |
8313 | |
8314 | case $cc_basename in | |
8315 | nvcc*) # Cuda Compiler Driver 2.2 | |
8316 | lt_prog_compiler_wl='-Xlinker ' | |
8317 | if test -n "$lt_prog_compiler_pic"; then | |
8318 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8319 | fi | |
8320 | ;; | |
8321 | esac | |
d9898ee8 | 8322 | else |
8d138742 CE |
8323 | # PORTME Check for flag to pass linker flags through the system compiler. |
8324 | case $host_os in | |
8325 | aix*) | |
8326 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8327 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8328 | # AIX 5 now supports IA64 processor |
8329 | lt_prog_compiler_static='-Bstatic' | |
8330 | else | |
8331 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8332 | fi | |
8333 | ;; | |
d9898ee8 | 8334 | |
d50284c4 CE |
8335 | darwin* | rhapsody*) |
8336 | # PIC is the default on this platform | |
8337 | # Common symbols not allowed in MH_DYLIB files | |
8338 | lt_prog_compiler_pic='-fno-common' | |
8339 | case $cc_basename in | |
8340 | nagfor*) | |
8341 | # NAG Fortran compiler | |
8342 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8343 | lt_prog_compiler_pic='-PIC' | |
8344 | lt_prog_compiler_static='-Bstatic' | |
8345 | ;; | |
8346 | esac | |
8347 | ;; | |
8348 | ||
8d138742 CE |
8349 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8350 | # This hack is so that the source file can tell whether it is being | |
8351 | # built for inclusion in a dll (and should export symbols for example). | |
8352 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8353 | case $host_os in |
8354 | os2*) | |
8355 | lt_prog_compiler_static='$wl-static' | |
8356 | ;; | |
8357 | esac | |
8d138742 | 8358 | ;; |
d9898ee8 | 8359 | |
8d138742 CE |
8360 | hpux9* | hpux10* | hpux11*) |
8361 | lt_prog_compiler_wl='-Wl,' | |
8362 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8363 | # not for PA HP-UX. | |
8364 | case $host_cpu in | |
8365 | hppa*64*|ia64*) | |
8366 | # +Z the default | |
8367 | ;; | |
8368 | *) | |
8369 | lt_prog_compiler_pic='+Z' | |
8370 | ;; | |
8371 | esac | |
8372 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8373 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 8374 | ;; |
d9898ee8 | 8375 | |
8d138742 CE |
8376 | irix5* | irix6* | nonstopux*) |
8377 | lt_prog_compiler_wl='-Wl,' | |
8378 | # PIC (with -KPIC) is the default. | |
8379 | lt_prog_compiler_static='-non_shared' | |
8380 | ;; | |
d9898ee8 | 8381 | |
d50284c4 | 8382 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8383 | case $cc_basename in |
d50284c4 | 8384 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8385 | ecc*) |
8386 | lt_prog_compiler_wl='-Wl,' | |
8387 | lt_prog_compiler_pic='-KPIC' | |
8388 | lt_prog_compiler_static='-static' | |
8389 | ;; | |
8390 | # icc used to be incompatible with GCC. | |
8391 | # ICC 10 doesn't accept -KPIC any more. | |
8392 | icc* | ifort*) | |
8393 | lt_prog_compiler_wl='-Wl,' | |
8394 | lt_prog_compiler_pic='-fPIC' | |
8395 | lt_prog_compiler_static='-static' | |
8396 | ;; | |
8397 | # Lahey Fortran 8.1. | |
8398 | lf95*) | |
8399 | lt_prog_compiler_wl='-Wl,' | |
8400 | lt_prog_compiler_pic='--shared' | |
8401 | lt_prog_compiler_static='--static' | |
8402 | ;; | |
b0322a85 CE |
8403 | nagfor*) |
8404 | # NAG Fortran compiler | |
8405 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8406 | lt_prog_compiler_pic='-PIC' | |
8407 | lt_prog_compiler_static='-Bstatic' | |
8408 | ;; | |
d50284c4 CE |
8409 | tcc*) |
8410 | # Fabrice Bellard et al's Tiny C Compiler | |
8411 | lt_prog_compiler_wl='-Wl,' | |
8412 | lt_prog_compiler_pic='-fPIC' | |
8413 | lt_prog_compiler_static='-static' | |
8414 | ;; | |
b0322a85 | 8415 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8416 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8417 | # which looks to be a dead project) | |
8418 | lt_prog_compiler_wl='-Wl,' | |
8419 | lt_prog_compiler_pic='-fpic' | |
8420 | lt_prog_compiler_static='-Bstatic' | |
8421 | ;; | |
8422 | ccc*) | |
8423 | lt_prog_compiler_wl='-Wl,' | |
8424 | # All Alpha code is PIC. | |
8425 | lt_prog_compiler_static='-non_shared' | |
8426 | ;; | |
b0322a85 CE |
8427 | xl* | bgxl* | bgf* | mpixl*) |
8428 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8429 | lt_prog_compiler_wl='-Wl,' |
8430 | lt_prog_compiler_pic='-qpic' | |
8431 | lt_prog_compiler_static='-qstaticlink' | |
8432 | ;; | |
8433 | *) | |
8434 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8435 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8436 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8437 | lt_prog_compiler_pic='-KPIC' | |
8438 | lt_prog_compiler_static='-Bstatic' | |
8439 | lt_prog_compiler_wl='' | |
8440 | ;; | |
8441 | *Sun\ F* | *Sun*Fortran*) | |
8442 | lt_prog_compiler_pic='-KPIC' | |
8443 | lt_prog_compiler_static='-Bstatic' | |
8444 | lt_prog_compiler_wl='-Qoption ld ' | |
8445 | ;; | |
8d138742 CE |
8446 | *Sun\ C*) |
8447 | # Sun C 5.9 | |
8448 | lt_prog_compiler_pic='-KPIC' | |
8449 | lt_prog_compiler_static='-Bstatic' | |
8450 | lt_prog_compiler_wl='-Wl,' | |
8451 | ;; | |
b0322a85 CE |
8452 | *Intel*\ [CF]*Compiler*) |
8453 | lt_prog_compiler_wl='-Wl,' | |
8454 | lt_prog_compiler_pic='-fPIC' | |
8455 | lt_prog_compiler_static='-static' | |
8456 | ;; | |
8457 | *Portland\ Group*) | |
8458 | lt_prog_compiler_wl='-Wl,' | |
8459 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8460 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8461 | ;; |
8462 | esac | |
8463 | ;; | |
8464 | esac | |
8465 | ;; | |
d9898ee8 | 8466 | |
8d138742 CE |
8467 | newsos6) |
8468 | lt_prog_compiler_pic='-KPIC' | |
8469 | lt_prog_compiler_static='-Bstatic' | |
8470 | ;; | |
d9898ee8 | 8471 | |
8d138742 CE |
8472 | *nto* | *qnx*) |
8473 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8474 | # it will coredump. | |
8475 | lt_prog_compiler_pic='-fPIC -shared' | |
8476 | ;; | |
d9898ee8 | 8477 | |
8d138742 CE |
8478 | osf3* | osf4* | osf5*) |
8479 | lt_prog_compiler_wl='-Wl,' | |
8480 | # All OSF/1 code is PIC. | |
8481 | lt_prog_compiler_static='-non_shared' | |
8482 | ;; | |
d9898ee8 | 8483 | |
8d138742 CE |
8484 | rdos*) |
8485 | lt_prog_compiler_static='-non_shared' | |
8486 | ;; | |
d9898ee8 | 8487 | |
8d138742 CE |
8488 | solaris*) |
8489 | lt_prog_compiler_pic='-KPIC' | |
8490 | lt_prog_compiler_static='-Bstatic' | |
8491 | case $cc_basename in | |
b0322a85 | 8492 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8493 | lt_prog_compiler_wl='-Qoption ld ';; |
8494 | *) | |
8495 | lt_prog_compiler_wl='-Wl,';; | |
8496 | esac | |
8497 | ;; | |
d9898ee8 | 8498 | |
8d138742 CE |
8499 | sunos4*) |
8500 | lt_prog_compiler_wl='-Qoption ld ' | |
8501 | lt_prog_compiler_pic='-PIC' | |
8502 | lt_prog_compiler_static='-Bstatic' | |
8503 | ;; | |
d9898ee8 | 8504 | |
8d138742 CE |
8505 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8506 | lt_prog_compiler_wl='-Wl,' | |
8507 | lt_prog_compiler_pic='-KPIC' | |
8508 | lt_prog_compiler_static='-Bstatic' | |
8509 | ;; | |
d9898ee8 | 8510 | |
8d138742 | 8511 | sysv4*MP*) |
d50284c4 | 8512 | if test -d /usr/nec; then |
8d138742 CE |
8513 | lt_prog_compiler_pic='-Kconform_pic' |
8514 | lt_prog_compiler_static='-Bstatic' | |
8515 | fi | |
8516 | ;; | |
d9898ee8 | 8517 | |
8d138742 CE |
8518 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8519 | lt_prog_compiler_wl='-Wl,' | |
8520 | lt_prog_compiler_pic='-KPIC' | |
8521 | lt_prog_compiler_static='-Bstatic' | |
8522 | ;; | |
d9898ee8 | 8523 | |
8d138742 CE |
8524 | unicos*) |
8525 | lt_prog_compiler_wl='-Wl,' | |
8526 | lt_prog_compiler_can_build_shared=no | |
8527 | ;; | |
d9898ee8 | 8528 | |
8d138742 CE |
8529 | uts4*) |
8530 | lt_prog_compiler_pic='-pic' | |
8531 | lt_prog_compiler_static='-Bstatic' | |
8532 | ;; | |
d9898ee8 | 8533 | |
8d138742 CE |
8534 | *) |
8535 | lt_prog_compiler_can_build_shared=no | |
8536 | ;; | |
8537 | esac | |
8538 | fi | |
d9898ee8 | 8539 | |
8d138742 | 8540 | case $host_os in |
d50284c4 | 8541 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8542 | *djgpp*) |
8543 | lt_prog_compiler_pic= | |
8544 | ;; | |
8545 | *) | |
8546 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8547 | ;; | |
8548 | esac | |
d9898ee8 | 8549 | |
b0322a85 CE |
8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8551 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8552 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8553 | $as_echo_n "(cached) " >&6 | |
8554 | else | |
8555 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8556 | fi | |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8558 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8559 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8560 | |
8d138742 CE |
8561 | # |
8562 | # Check to make sure the PIC flag actually works. | |
8563 | # | |
8564 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8566 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8567 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8568 | $as_echo_n "(cached) " >&6 |
8569 | else | |
8570 | lt_cv_prog_compiler_pic_works=no | |
8571 | ac_outfile=conftest.$ac_objext | |
8572 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8573 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8574 | # Insert the option either (1) after the last *FLAGS variable, or |
8575 | # (2) before a word containing "conftest.", or (3) at the end. | |
8576 | # Note that $ac_compile itself does not contain backslashes and begins | |
8577 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8578 | # The option is referenced via a variable to avoid confusing sed. | |
8579 | lt_compile=`echo "$ac_compile" | $SED \ | |
8580 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8581 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8582 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8583 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8584 | (eval "$lt_compile" 2>conftest.err) |
8585 | ac_status=$? | |
8586 | cat conftest.err >&5 | |
b0322a85 | 8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8588 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8589 | # The compiler can only warn and ignore the option if not recognized | |
8590 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8591 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8592 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8593 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8594 | lt_cv_prog_compiler_pic_works=yes | |
8595 | fi | |
8596 | fi | |
8597 | $RM conftest* | |
d9898ee8 | 8598 | |
8599 | fi | |
b0322a85 | 8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8601 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8602 | |
d50284c4 | 8603 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8604 | case $lt_prog_compiler_pic in |
8605 | "" | " "*) ;; | |
8606 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8607 | esac | |
8608 | else | |
8609 | lt_prog_compiler_pic= | |
8610 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8611 | fi |
8612 | ||
8d138742 | 8613 | fi |
d9898ee8 | 8614 | |
d9898ee8 | 8615 | |
d9898ee8 | 8616 | |
d9898ee8 | 8617 | |
d9898ee8 | 8618 | |
d9898ee8 | 8619 | |
b0322a85 CE |
8620 | |
8621 | ||
8622 | ||
8623 | ||
8624 | ||
d9898ee8 | 8625 | # |
8d138742 | 8626 | # Check to make sure the static flag actually works. |
d9898ee8 | 8627 | # |
8d138742 | 8628 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
b0322a85 | 8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8630 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8631 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8632 | $as_echo_n "(cached) " >&6 |
8633 | else | |
8634 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 8635 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
8636 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8637 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8638 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8639 | # The linker can only warn and ignore the option if not recognized | |
8640 | # So say no if there are warnings | |
8641 | if test -s conftest.err; then | |
8642 | # Append any errors to the config.log. | |
8643 | cat conftest.err 1>&5 | |
b0322a85 | 8644 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8645 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8646 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8647 | lt_cv_prog_compiler_static_works=yes | |
8648 | fi | |
8649 | else | |
8650 | lt_cv_prog_compiler_static_works=yes | |
8651 | fi | |
8652 | fi | |
8653 | $RM -r conftest* | |
d50284c4 | 8654 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8655 | |
8d138742 | 8656 | fi |
b0322a85 | 8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8658 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8659 | |
d50284c4 | 8660 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
8661 | : |
8662 | else | |
8663 | lt_prog_compiler_static= | |
8664 | fi | |
d9898ee8 | 8665 | |
d9898ee8 | 8666 | |
d9898ee8 | 8667 | |
d9898ee8 | 8668 | |
d9898ee8 | 8669 | |
d9898ee8 | 8670 | |
d9898ee8 | 8671 | |
b0322a85 | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8673 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8674 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8675 | $as_echo_n "(cached) " >&6 |
8676 | else | |
8677 | lt_cv_prog_compiler_c_o=no | |
8678 | $RM -r conftest 2>/dev/null | |
8679 | mkdir conftest | |
8680 | cd conftest | |
8681 | mkdir out | |
8682 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8683 | |
8d138742 CE |
8684 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8685 | # Insert the option either (1) after the last *FLAGS variable, or | |
8686 | # (2) before a word containing "conftest.", or (3) at the end. | |
8687 | # Note that $ac_compile itself does not contain backslashes and begins | |
8688 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8689 | lt_compile=`echo "$ac_compile" | $SED \ | |
8690 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8691 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8692 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8693 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8694 | (eval "$lt_compile" 2>out/conftest.err) |
8695 | ac_status=$? | |
8696 | cat out/conftest.err >&5 | |
b0322a85 | 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8698 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8699 | then | |
8700 | # The compiler can only warn and ignore the option if not recognized | |
8701 | # So say no if there are warnings | |
b0322a85 | 8702 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8703 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8704 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8705 | lt_cv_prog_compiler_c_o=yes | |
8706 | fi | |
8707 | fi | |
8708 | chmod u+w . 2>&5 | |
8709 | $RM conftest* | |
8710 | # SGI C++ compiler will create directory out/ii_files/ for | |
8711 | # template instantiation | |
8712 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8713 | $RM out/* && rmdir out | |
8714 | cd .. | |
8715 | $RM -r conftest | |
8716 | $RM conftest* | |
d9898ee8 | 8717 | |
8d138742 | 8718 | fi |
b0322a85 | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8720 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8721 | |
d9898ee8 | 8722 | |
d9898ee8 | 8723 | |
d9898ee8 | 8724 | |
d9898ee8 | 8725 | |
d9898ee8 | 8726 | |
b0322a85 | 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8728 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8729 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8730 | $as_echo_n "(cached) " >&6 |
8731 | else | |
8732 | lt_cv_prog_compiler_c_o=no | |
8733 | $RM -r conftest 2>/dev/null | |
8734 | mkdir conftest | |
8735 | cd conftest | |
8736 | mkdir out | |
8737 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8738 | |
8d138742 CE |
8739 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8740 | # Insert the option either (1) after the last *FLAGS variable, or | |
8741 | # (2) before a word containing "conftest.", or (3) at the end. | |
8742 | # Note that $ac_compile itself does not contain backslashes and begins | |
8743 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8744 | lt_compile=`echo "$ac_compile" | $SED \ | |
8745 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8746 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8747 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8748 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8749 | (eval "$lt_compile" 2>out/conftest.err) |
8750 | ac_status=$? | |
8751 | cat out/conftest.err >&5 | |
b0322a85 | 8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8753 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8754 | then | |
8755 | # The compiler can only warn and ignore the option if not recognized | |
8756 | # So say no if there are warnings | |
b0322a85 | 8757 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8758 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8759 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8760 | lt_cv_prog_compiler_c_o=yes | |
8761 | fi | |
8762 | fi | |
8763 | chmod u+w . 2>&5 | |
8764 | $RM conftest* | |
8765 | # SGI C++ compiler will create directory out/ii_files/ for | |
8766 | # template instantiation | |
8767 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8768 | $RM out/* && rmdir out | |
8769 | cd .. | |
8770 | $RM -r conftest | |
8771 | $RM conftest* | |
d9898ee8 | 8772 | |
8d138742 | 8773 | fi |
b0322a85 | 8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8775 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8776 | |
d9898ee8 | 8777 | |
d9898ee8 | 8778 | |
d9898ee8 | 8779 | |
d50284c4 CE |
8780 | hard_links=nottested |
8781 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 8782 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8784 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8785 | hard_links=yes | |
8786 | $RM conftest* | |
8787 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8788 | touch conftest.a | |
8789 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8790 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8792 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
8793 | if test no = "$hard_links"; then |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8795 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
8796 | need_locks=warn |
8797 | fi | |
8798 | else | |
8799 | need_locks=no | |
8800 | fi | |
d9898ee8 | 8801 | |
d9898ee8 | 8802 | |
d9898ee8 | 8803 | |
d9898ee8 | 8804 | |
d9898ee8 | 8805 | |
d9898ee8 | 8806 | |
b0322a85 | 8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8808 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8809 | |
8d138742 CE |
8810 | runpath_var= |
8811 | allow_undefined_flag= | |
8812 | always_export_symbols=no | |
8813 | archive_cmds= | |
8814 | archive_expsym_cmds= | |
8815 | compiler_needs_object=no | |
8816 | enable_shared_with_static_runtimes=no | |
8817 | export_dynamic_flag_spec= | |
8818 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8819 | hardcode_automatic=no | |
8820 | hardcode_direct=no | |
8821 | hardcode_direct_absolute=no | |
8822 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8823 | hardcode_libdir_separator= |
8824 | hardcode_minus_L=no | |
8825 | hardcode_shlibpath_var=unsupported | |
8826 | inherit_rpath=no | |
8827 | link_all_deplibs=unknown | |
8828 | module_cmds= | |
8829 | module_expsym_cmds= | |
8830 | old_archive_from_new_cmds= | |
8831 | old_archive_from_expsyms_cmds= | |
8832 | thread_safe_flag_spec= | |
8833 | whole_archive_flag_spec= | |
8834 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8835 | # included in the symbol list | |
8836 | include_expsyms= | |
8837 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
8838 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8839 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8840 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
8841 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8842 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8843 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8844 | # the symbol is explicitly referenced. Since portable code cannot | |
8845 | # rely on this symbol name, it's probably fine to never include it in | |
8846 | # preloaded symbol tables. | |
8847 | # Exclude shared library initialization/finalization symbols. | |
8848 | extract_expsyms_cmds= | |
d9898ee8 | 8849 | |
8d138742 CE |
8850 | case $host_os in |
8851 | cygwin* | mingw* | pw32* | cegcc*) | |
8852 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8853 | # When not using gcc, we currently assume that we are using | |
8854 | # Microsoft Visual C++. | |
d50284c4 | 8855 | if test yes != "$GCC"; then |
8d138742 CE |
8856 | with_gnu_ld=no |
8857 | fi | |
8858 | ;; | |
8859 | interix*) | |
8860 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8861 | with_gnu_ld=yes | |
8862 | ;; | |
d50284c4 | 8863 | openbsd* | bitrig*) |
8d138742 CE |
8864 | with_gnu_ld=no |
8865 | ;; | |
8866 | esac | |
d9898ee8 | 8867 | |
8d138742 | 8868 | ld_shlibs=yes |
b0322a85 CE |
8869 | |
8870 | # On some targets, GNU ld is compatible enough with the native linker | |
8871 | # that we're better off using the native interface for both. | |
8872 | lt_use_gnu_ld_interface=no | |
d50284c4 | 8873 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
8874 | case $host_os in |
8875 | aix*) | |
8876 | # The AIX port of GNU ld has always aspired to compatibility | |
8877 | # with the native linker. However, as the warning in the GNU ld | |
8878 | # block says, versions before 2.19.5* couldn't really create working | |
8879 | # shared libraries, regardless of the interface used. | |
8880 | case `$LD -v 2>&1` in | |
8881 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8882 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8883 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8884 | *) | |
8885 | lt_use_gnu_ld_interface=yes | |
8886 | ;; | |
8887 | esac | |
8888 | ;; | |
8889 | *) | |
8890 | lt_use_gnu_ld_interface=yes | |
8891 | ;; | |
8892 | esac | |
8893 | fi | |
8894 | ||
d50284c4 | 8895 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 8896 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 8897 | wlarc='$wl' |
d9898ee8 | 8898 | |
8d138742 CE |
8899 | # Set some defaults for GNU ld with shared library support. These |
8900 | # are reset later if shared libraries are not supported. Putting them | |
8901 | # here allows them to be overridden if necessary. | |
8902 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
8903 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8904 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
8905 | # ancient GNU ld didn't support --whole-archive et. al. |
8906 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 8907 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
8908 | else |
8909 | whole_archive_flag_spec= | |
8910 | fi | |
8911 | supports_anon_versioning=no | |
d50284c4 | 8912 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 8913 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
8914 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8915 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8916 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8917 | *\ 2.11.*) ;; # other 2.11 versions | |
8918 | *) supports_anon_versioning=yes ;; | |
8919 | esac | |
d9898ee8 | 8920 | |
8d138742 CE |
8921 | # See if GNU ld supports shared libraries. |
8922 | case $host_os in | |
8923 | aix[3-9]*) | |
8924 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 8925 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
8926 | ld_shlibs=no |
8927 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8928 | |
b0322a85 | 8929 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
8930 | *** to be unable to reliably create shared libraries on AIX. |
8931 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
8932 | *** really care for shared libraries, you may want to install binutils |
8933 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8934 | *** You will then need to restart the configuration process. | |
d9898ee8 | 8935 | |
8d138742 CE |
8936 | _LT_EOF |
8937 | fi | |
8938 | ;; | |
d9898ee8 | 8939 | |
8d138742 CE |
8940 | amigaos*) |
8941 | case $host_cpu in | |
8942 | powerpc) | |
8943 | # see comment about AmigaOS4 .so support | |
d50284c4 | 8944 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
8945 | archive_expsym_cmds='' |
8946 | ;; | |
8947 | m68k) | |
8948 | 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)' | |
8949 | hardcode_libdir_flag_spec='-L$libdir' | |
8950 | hardcode_minus_L=yes | |
8951 | ;; | |
8952 | esac | |
8953 | ;; | |
d9898ee8 | 8954 | |
8d138742 CE |
8955 | beos*) |
8956 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8957 | allow_undefined_flag=unsupported | |
8958 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8959 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 8960 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
8961 | else |
8962 | ld_shlibs=no | |
8963 | fi | |
8964 | ;; | |
d9898ee8 | 8965 | |
8d138742 CE |
8966 | cygwin* | mingw* | pw32* | cegcc*) |
8967 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8968 | # as there is no search path for DLLs. | |
8969 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 8970 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
8971 | allow_undefined_flag=unsupported |
8972 | always_export_symbols=no | |
8973 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
8974 | 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' |
8975 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 8976 | |
8d138742 | 8977 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
8978 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8979 | # If the export-symbols file already is a .def file, use it as | |
8980 | # is; otherwise, prepend EXPORTS... | |
8981 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
8982 | cp $export_symbols $output_objdir/$soname.def; | |
8983 | else | |
8984 | echo EXPORTS > $output_objdir/$soname.def; | |
8985 | cat $export_symbols >> $output_objdir/$soname.def; | |
8986 | fi~ | |
8987 | $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 |
8988 | else |
8989 | ld_shlibs=no | |
8990 | fi | |
8991 | ;; | |
d9898ee8 | 8992 | |
b0322a85 | 8993 | haiku*) |
d50284c4 | 8994 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
8995 | link_all_deplibs=yes |
8996 | ;; | |
8997 | ||
d50284c4 CE |
8998 | os2*) |
8999 | hardcode_libdir_flag_spec='-L$libdir' | |
9000 | hardcode_minus_L=yes | |
9001 | allow_undefined_flag=unsupported | |
9002 | shrext_cmds=.dll | |
9003 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9004 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9005 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9006 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9007 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9008 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9009 | emximp -o $lib $output_objdir/$libname.def' | |
9010 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9011 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9012 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9013 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9014 | prefix_cmds="$SED"~ | |
9015 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9016 | prefix_cmds="$prefix_cmds -e 1d"; | |
9017 | fi~ | |
9018 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9019 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9020 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9021 | emximp -o $lib $output_objdir/$libname.def' | |
9022 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9023 | enable_shared_with_static_runtimes=yes | |
9024 | ;; | |
9025 | ||
8d138742 CE |
9026 | interix[3-9]*) |
9027 | hardcode_direct=no | |
9028 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9029 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9030 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9031 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9032 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9033 | # default) and relocated if they conflict, which is a slow very memory | |
9034 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9035 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9036 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9037 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9038 | 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 | 9039 | ;; |
d9898ee8 | 9040 | |
b0322a85 | 9041 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9042 | tmp_diet=no |
d50284c4 | 9043 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9044 | case $cc_basename in |
9045 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9046 | esac | |
9047 | fi | |
9048 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9049 | && test no = "$tmp_diet" |
8d138742 | 9050 | then |
b0322a85 | 9051 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9052 | tmp_sharedflag='-shared' |
9053 | case $cc_basename,$host_cpu in | |
9054 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9055 | 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 |
9056 | tmp_addflag=' $pic_flag' |
9057 | ;; | |
b0322a85 CE |
9058 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9059 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9060 | 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 |
9061 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9062 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9063 | tmp_addflag=' -i_dynamic' ;; | |
9064 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9065 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9066 | ifc* | ifort*) # Intel Fortran compiler | |
9067 | tmp_addflag=' -nofor_main' ;; | |
9068 | lf95*) # Lahey Fortran 8.1 | |
9069 | whole_archive_flag_spec= | |
9070 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9071 | nagfor*) # NAGFOR 5.3 |
9072 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9073 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9074 | tmp_sharedflag='-qmkshrobj' |
9075 | tmp_addflag= ;; | |
b0322a85 | 9076 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9077 | 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 |
9078 | compiler_needs_object=yes |
9079 | ;; | |
8d138742 CE |
9080 | esac |
9081 | case `$CC -V 2>&1 | sed 5q` in | |
9082 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9083 | 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 |
9084 | compiler_needs_object=yes |
9085 | tmp_sharedflag='-G' ;; | |
9086 | *Sun\ F*) # Sun Fortran 8.3 | |
9087 | tmp_sharedflag='-G' ;; | |
9088 | esac | |
d50284c4 | 9089 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9090 | |
d50284c4 | 9091 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9092 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9093 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9094 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9095 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9096 | fi |
d9898ee8 | 9097 | |
8d138742 | 9098 | case $cc_basename in |
d50284c4 CE |
9099 | tcc*) |
9100 | export_dynamic_flag_spec='-rdynamic' | |
9101 | ;; | |
b0322a85 | 9102 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9103 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9104 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9105 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9106 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9107 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9108 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9109 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9110 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9111 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9112 | fi |
9113 | ;; | |
9114 | esac | |
9115 | else | |
9116 | ld_shlibs=no | |
9117 | fi | |
9118 | ;; | |
d9898ee8 | 9119 | |
8d138742 CE |
9120 | netbsd*) |
9121 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9122 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9123 | wlarc= | |
9124 | else | |
d50284c4 CE |
9125 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9126 | 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 |
9127 | fi |
9128 | ;; | |
d9898ee8 | 9129 | |
8d138742 CE |
9130 | solaris*) |
9131 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9132 | ld_shlibs=no | |
9133 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9134 | |
8d138742 CE |
9135 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9136 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9137 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9138 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9139 | *** your PATH or compiler configuration so that the native linker is | |
9140 | *** used, and then restart. | |
d9898ee8 | 9141 | |
8d138742 CE |
9142 | _LT_EOF |
9143 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9144 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9145 | 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 |
9146 | else |
9147 | ld_shlibs=no | |
9148 | fi | |
9149 | ;; | |
d9898ee8 | 9150 | |
8d138742 CE |
9151 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9152 | case `$LD -v 2>&1` in | |
9153 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9154 | ld_shlibs=no | |
9155 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9156 | |
d50284c4 | 9157 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9158 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9159 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9160 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9161 | *** your PATH or compiler configuration so that the native linker is | |
9162 | *** used, and then restart. | |
d9898ee8 | 9163 | |
8d138742 CE |
9164 | _LT_EOF |
9165 | ;; | |
9166 | *) | |
9167 | # For security reasons, it is highly recommended that you always | |
9168 | # use absolute paths for naming shared libraries, and exclude the | |
9169 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9170 | # requires that you compile everything twice, which is a pain. | |
9171 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9172 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9173 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9174 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9175 | else |
9176 | ld_shlibs=no | |
9177 | fi | |
9178 | ;; | |
9179 | esac | |
9180 | ;; | |
d9898ee8 | 9181 | |
8d138742 CE |
9182 | sunos4*) |
9183 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9184 | wlarc= | |
9185 | hardcode_direct=yes | |
9186 | hardcode_shlibpath_var=no | |
9187 | ;; | |
d9898ee8 | 9188 | |
8d138742 CE |
9189 | *) |
9190 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9191 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9192 | 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 |
9193 | else |
9194 | ld_shlibs=no | |
9195 | fi | |
9196 | ;; | |
9197 | esac | |
d9898ee8 | 9198 | |
d50284c4 | 9199 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9200 | runpath_var= |
9201 | hardcode_libdir_flag_spec= | |
9202 | export_dynamic_flag_spec= | |
9203 | whole_archive_flag_spec= | |
9204 | fi | |
9205 | else | |
9206 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9207 | case $host_os in | |
9208 | aix3*) | |
9209 | allow_undefined_flag=unsupported | |
9210 | always_export_symbols=yes | |
9211 | 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' | |
9212 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9213 | # are no directories specified by -L. | |
9214 | hardcode_minus_L=yes | |
d50284c4 | 9215 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9216 | # Neither direct hardcoding nor static linking is supported with a |
9217 | # broken collect2. | |
9218 | hardcode_direct=unsupported | |
9219 | fi | |
9220 | ;; | |
d9898ee8 | 9221 | |
8d138742 | 9222 | aix[4-9]*) |
d50284c4 | 9223 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9224 | # On IA64, the linker does run time linking by default, so we don't |
9225 | # have to do anything special. | |
9226 | aix_use_runtimelinking=no | |
9227 | exp_sym_flag='-Bexport' | |
d50284c4 | 9228 | no_entry_flag= |
8d138742 CE |
9229 | else |
9230 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9231 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9232 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9233 | # weak defined symbols like other global defined symbols, whereas | |
9234 | # GNU nm marks them as "W". | |
9235 | # While the 'weak' keyword is ignored in the Export File, we need | |
9236 | # it in the Import File for the 'aix-soname' feature, so we have | |
9237 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9238 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9239 | 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 | 9240 | else |
d50284c4 | 9241 | 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 |
9242 | fi |
9243 | aix_use_runtimelinking=no | |
d9898ee8 | 9244 | |
8d138742 CE |
9245 | # Test if we are trying to use run time linking or normal |
9246 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9247 | # have runtime linking enabled, and use it for executables. |
9248 | # For shared libraries, we enable/disable runtime linking | |
9249 | # depending on the kind of the shared library created - | |
9250 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9251 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9252 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9253 | # lib.a static archive | |
9254 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9255 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9256 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9257 | # lib.a(lib.so.V) shared, rtl:no | |
9258 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9259 | # lib.a static archive | |
8d138742 CE |
9260 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9261 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9262 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9263 | aix_use_runtimelinking=yes |
9264 | break | |
9265 | fi | |
9266 | done | |
d50284c4 CE |
9267 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9268 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9269 | # so we don't have lib.a shared libs to link our executables. | |
9270 | # We have to force runtime linking in this case. | |
9271 | aix_use_runtimelinking=yes | |
9272 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9273 | fi | |
8d138742 CE |
9274 | ;; |
9275 | esac | |
d9898ee8 | 9276 | |
8d138742 CE |
9277 | exp_sym_flag='-bexport' |
9278 | no_entry_flag='-bnoentry' | |
9279 | fi | |
d9898ee8 | 9280 | |
8d138742 CE |
9281 | # When large executables or shared objects are built, AIX ld can |
9282 | # have problems creating the table of contents. If linking a library | |
9283 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9284 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9285 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9286 | |
8d138742 CE |
9287 | archive_cmds='' |
9288 | hardcode_direct=yes | |
9289 | hardcode_direct_absolute=yes | |
9290 | hardcode_libdir_separator=':' | |
9291 | link_all_deplibs=yes | |
d50284c4 CE |
9292 | file_list_spec='$wl-f,' |
9293 | case $with_aix_soname,$aix_use_runtimelinking in | |
9294 | aix,*) ;; # traditional, no import file | |
9295 | svr4,* | *,yes) # use import file | |
9296 | # The Import File defines what to hardcode. | |
9297 | hardcode_direct=no | |
9298 | hardcode_direct_absolute=no | |
9299 | ;; | |
9300 | esac | |
d9898ee8 | 9301 | |
d50284c4 | 9302 | if test yes = "$GCC"; then |
8d138742 CE |
9303 | case $host_os in aix4.[012]|aix4.[012].*) |
9304 | # We only want to do this on AIX 4.2 and lower, the check | |
9305 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9306 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9307 | if test -f "$collect2name" && |
9308 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9309 | then | |
9310 | # We have reworked collect2 | |
9311 | : | |
9312 | else | |
9313 | # We have old collect2 | |
9314 | hardcode_direct=unsupported | |
9315 | # It fails to find uninstalled libraries when the uninstalled | |
9316 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9317 | # to unsupported forces relinking | |
9318 | hardcode_minus_L=yes | |
9319 | hardcode_libdir_flag_spec='-L$libdir' | |
9320 | hardcode_libdir_separator= | |
9321 | fi | |
9322 | ;; | |
9323 | esac | |
9324 | shared_flag='-shared' | |
d50284c4 CE |
9325 | if test yes = "$aix_use_runtimelinking"; then |
9326 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9327 | fi |
d50284c4 CE |
9328 | # Need to ensure runtime linking is disabled for the traditional |
9329 | # shared library, or the linker may eventually find shared libraries | |
9330 | # /with/ Import File - we do not want to mix them. | |
9331 | shared_flag_aix='-shared' | |
9332 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9333 | else |
9334 | # not using gcc | |
d50284c4 | 9335 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9336 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9337 | # chokes on -Wl,-G. The following line is correct: | |
9338 | shared_flag='-G' | |
9339 | else | |
d50284c4 CE |
9340 | if test yes = "$aix_use_runtimelinking"; then |
9341 | shared_flag='$wl-G' | |
8d138742 | 9342 | else |
d50284c4 | 9343 | shared_flag='$wl-bM:SRE' |
8d138742 | 9344 | fi |
d50284c4 CE |
9345 | shared_flag_aix='$wl-bM:SRE' |
9346 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9347 | fi |
9348 | fi | |
d9898ee8 | 9349 | |
d50284c4 | 9350 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9351 | # It seems that -bexpall does not export symbols beginning with |
9352 | # underscore (_), so it is better to generate a list of symbols to export. | |
9353 | always_export_symbols=yes | |
d50284c4 | 9354 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9355 | # Warning - without using the other runtime loading flags (-brtl), |
9356 | # -berok will link without error, but may produce a broken library. | |
9357 | allow_undefined_flag='-berok' | |
9358 | # Determine the default libpath from the value encoded in an | |
9359 | # empty executable. | |
d50284c4 | 9360 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9361 | aix_libpath=$lt_cv_aix_libpath |
9362 | else | |
9363 | if ${lt_cv_aix_libpath_+:} false; then : | |
9364 | $as_echo_n "(cached) " >&6 | |
9365 | else | |
9366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9367 | /* end confdefs.h. */ |
d9898ee8 | 9368 | |
8d138742 CE |
9369 | int |
9370 | main () | |
9371 | { | |
d9898ee8 | 9372 | |
8d138742 CE |
9373 | ; |
9374 | return 0; | |
9375 | } | |
9376 | _ACEOF | |
b0322a85 | 9377 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9378 | |
b0322a85 CE |
9379 | lt_aix_libpath_sed=' |
9380 | /Import File Strings/,/^$/ { | |
9381 | /^0/ { | |
9382 | s/^0 *\([^ ]*\) *$/\1/ | |
9383 | p | |
9384 | } | |
9385 | }' | |
9386 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9387 | # Check for a 64-bit object if we didn't find anything. | |
9388 | if test -z "$lt_cv_aix_libpath_"; then | |
9389 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9390 | fi | |
9391 | fi | |
9392 | rm -f core conftest.err conftest.$ac_objext \ | |
9393 | conftest$ac_exeext conftest.$ac_ext | |
9394 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9395 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9396 | fi |
d9898ee8 | 9397 | |
8d138742 | 9398 | fi |
d9898ee8 | 9399 | |
b0322a85 CE |
9400 | aix_libpath=$lt_cv_aix_libpath_ |
9401 | fi | |
d9898ee8 | 9402 | |
d50284c4 CE |
9403 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9404 | 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 | 9405 | else |
d50284c4 CE |
9406 | if test ia64 = "$host_cpu"; then |
9407 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9408 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9409 | 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 |
9410 | else |
9411 | # Determine the default libpath from the value encoded in an | |
9412 | # empty executable. | |
d50284c4 | 9413 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9414 | aix_libpath=$lt_cv_aix_libpath |
9415 | else | |
9416 | if ${lt_cv_aix_libpath_+:} false; then : | |
9417 | $as_echo_n "(cached) " >&6 | |
9418 | else | |
9419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9420 | /* end confdefs.h. */ |
d9898ee8 | 9421 | |
8d138742 CE |
9422 | int |
9423 | main () | |
9424 | { | |
d9898ee8 | 9425 | |
8d138742 CE |
9426 | ; |
9427 | return 0; | |
9428 | } | |
9429 | _ACEOF | |
b0322a85 | 9430 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9431 | |
b0322a85 CE |
9432 | lt_aix_libpath_sed=' |
9433 | /Import File Strings/,/^$/ { | |
9434 | /^0/ { | |
9435 | s/^0 *\([^ ]*\) *$/\1/ | |
9436 | p | |
9437 | } | |
9438 | }' | |
9439 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9440 | # Check for a 64-bit object if we didn't find anything. | |
9441 | if test -z "$lt_cv_aix_libpath_"; then | |
9442 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9443 | fi | |
9444 | fi | |
9445 | rm -f core conftest.err conftest.$ac_objext \ | |
9446 | conftest$ac_exeext conftest.$ac_ext | |
9447 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9448 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9449 | fi |
d9898ee8 | 9450 | |
8d138742 | 9451 | fi |
d9898ee8 | 9452 | |
b0322a85 CE |
9453 | aix_libpath=$lt_cv_aix_libpath_ |
9454 | fi | |
d9898ee8 | 9455 | |
d50284c4 | 9456 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9457 | # Warning - without using the other run time loading flags, |
9458 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9459 | no_undefined_flag=' $wl-bernotok' |
9460 | allow_undefined_flag=' $wl-berok' | |
9461 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9462 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9463 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9464 | else |
9465 | # Exported symbols can be pulled into shared objects from archives | |
9466 | whole_archive_flag_spec='$convenience' | |
9467 | fi | |
8d138742 | 9468 | archive_cmds_need_lc=yes |
d50284c4 CE |
9469 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9470 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9471 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9472 | if test svr4 != "$with_aix_soname"; then | |
9473 | # This is similar to how AIX traditionally builds its shared libraries. | |
9474 | 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' | |
9475 | fi | |
9476 | if test aix != "$with_aix_soname"; then | |
9477 | 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' | |
9478 | else | |
9479 | # used by -dlpreopen to get the symbols | |
9480 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9481 | fi | |
9482 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9483 | fi |
9484 | fi | |
9485 | ;; | |
d9898ee8 | 9486 | |
8d138742 CE |
9487 | amigaos*) |
9488 | case $host_cpu in | |
9489 | powerpc) | |
9490 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9491 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9492 | archive_expsym_cmds='' |
9493 | ;; | |
9494 | m68k) | |
9495 | 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)' | |
9496 | hardcode_libdir_flag_spec='-L$libdir' | |
9497 | hardcode_minus_L=yes | |
9498 | ;; | |
9499 | esac | |
9500 | ;; | |
d9898ee8 | 9501 | |
8d138742 CE |
9502 | bsdi[45]*) |
9503 | export_dynamic_flag_spec=-rdynamic | |
9504 | ;; | |
d9898ee8 | 9505 | |
8d138742 CE |
9506 | cygwin* | mingw* | pw32* | cegcc*) |
9507 | # When not using gcc, we currently assume that we are using | |
9508 | # Microsoft Visual C++. | |
9509 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9510 | # no search path for DLLs. | |
b0322a85 CE |
9511 | case $cc_basename in |
9512 | cl*) | |
9513 | # Native MSVC | |
9514 | hardcode_libdir_flag_spec=' ' | |
9515 | allow_undefined_flag=unsupported | |
9516 | always_export_symbols=yes | |
9517 | file_list_spec='@' | |
9518 | # Tell ltmain to make .lib files, not .a files. | |
9519 | libext=lib | |
9520 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9521 | shrext_cmds=.dll |
b0322a85 | 9522 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9523 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9524 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9525 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9526 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9527 | else | |
9528 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9529 | fi~ | |
9530 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9531 | linknames=' | |
b0322a85 CE |
9532 | # The linker will not automatically build a static lib if we build a DLL. |
9533 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9534 | enable_shared_with_static_runtimes=yes | |
9535 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9536 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9537 | # Don't use ranlib | |
9538 | old_postinstall_cmds='chmod 644 $oldlib' | |
9539 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9540 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9541 | case $lt_outputfile in | |
9542 | *.exe|*.EXE) ;; | |
9543 | *) | |
9544 | lt_outputfile=$lt_outputfile.exe | |
9545 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9546 | ;; | |
9547 | esac~ | |
9548 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9549 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9550 | $RM "$lt_outputfile.manifest"; | |
9551 | fi' | |
b0322a85 CE |
9552 | ;; |
9553 | *) | |
9554 | # Assume MSVC wrapper | |
9555 | hardcode_libdir_flag_spec=' ' | |
9556 | allow_undefined_flag=unsupported | |
9557 | # Tell ltmain to make .lib files, not .a files. | |
9558 | libext=lib | |
9559 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9560 | shrext_cmds=.dll |
b0322a85 CE |
9561 | # FIXME: Setting linknames here is a bad hack. |
9562 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9563 | # The linker will automatically build a .lib file if we build a DLL. | |
9564 | old_archive_from_new_cmds='true' | |
9565 | # FIXME: Should let the user specify the lib program. | |
9566 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9567 | enable_shared_with_static_runtimes=yes | |
9568 | ;; | |
9569 | esac | |
8d138742 | 9570 | ;; |
d9898ee8 | 9571 | |
8d138742 | 9572 | darwin* | rhapsody*) |
d9898ee8 | 9573 | |
d9898ee8 | 9574 | |
8d138742 CE |
9575 | archive_cmds_need_lc=no |
9576 | hardcode_direct=no | |
9577 | hardcode_automatic=yes | |
9578 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9579 | if test yes = "$lt_cv_ld_force_load"; then |
9580 | 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 |
9581 | |
9582 | else | |
9583 | whole_archive_flag_spec='' | |
9584 | fi | |
8d138742 | 9585 | link_all_deplibs=yes |
d50284c4 | 9586 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9587 | case $cc_basename in |
d50284c4 | 9588 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 | 9589 | *) _lt_dar_can_shared=$GCC ;; |
d9898ee8 | 9590 | esac |
d50284c4 | 9591 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9592 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9593 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9594 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9595 | 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" | |
9596 | 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 | 9597 | |
8d138742 CE |
9598 | else |
9599 | ld_shlibs=no | |
d9898ee8 | 9600 | fi |
d9898ee8 | 9601 | |
8d138742 | 9602 | ;; |
d9898ee8 | 9603 | |
8d138742 CE |
9604 | dgux*) |
9605 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9606 | hardcode_libdir_flag_spec='-L$libdir' | |
9607 | hardcode_shlibpath_var=no | |
9608 | ;; | |
d9898ee8 | 9609 | |
8d138742 CE |
9610 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9611 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9612 | # does not break anything, and helps significantly (at the cost of a little | |
9613 | # extra space). | |
9614 | freebsd2.2*) | |
9615 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9616 | hardcode_libdir_flag_spec='-R$libdir' | |
9617 | hardcode_direct=yes | |
9618 | hardcode_shlibpath_var=no | |
9619 | ;; | |
d9898ee8 | 9620 | |
8d138742 | 9621 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9622 | freebsd2.*) |
8d138742 CE |
9623 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9624 | hardcode_direct=yes | |
9625 | hardcode_minus_L=yes | |
9626 | hardcode_shlibpath_var=no | |
9627 | ;; | |
dd184caf | 9628 | |
8d138742 CE |
9629 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9630 | freebsd* | dragonfly*) | |
b0322a85 | 9631 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9632 | hardcode_libdir_flag_spec='-R$libdir' |
9633 | hardcode_direct=yes | |
9634 | hardcode_shlibpath_var=no | |
9635 | ;; | |
d9898ee8 | 9636 | |
8d138742 | 9637 | hpux9*) |
d50284c4 CE |
9638 | if test yes = "$GCC"; then |
9639 | 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 | 9640 | else |
d50284c4 | 9641 | 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 | 9642 | fi |
d50284c4 | 9643 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9644 | hardcode_libdir_separator=: |
9645 | hardcode_direct=yes | |
d9898ee8 | 9646 | |
8d138742 CE |
9647 | # hardcode_minus_L: Not really in the search PATH, |
9648 | # but as the default location of the library. | |
9649 | hardcode_minus_L=yes | |
d50284c4 | 9650 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 9651 | ;; |
d9898ee8 | 9652 | |
8d138742 | 9653 | hpux10*) |
d50284c4 CE |
9654 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9655 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9656 | else |
9657 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9658 | fi | |
d50284c4 CE |
9659 | if test no = "$with_gnu_ld"; then |
9660 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9661 | hardcode_libdir_separator=: |
9662 | hardcode_direct=yes | |
9663 | hardcode_direct_absolute=yes | |
d50284c4 | 9664 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9665 | # hardcode_minus_L: Not really in the search PATH, |
9666 | # but as the default location of the library. | |
9667 | hardcode_minus_L=yes | |
9668 | fi | |
9669 | ;; | |
d9898ee8 | 9670 | |
8d138742 | 9671 | hpux11*) |
d50284c4 | 9672 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
9673 | case $host_cpu in |
9674 | hppa*64*) | |
d50284c4 | 9675 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9676 | ;; |
9677 | ia64*) | |
d50284c4 | 9678 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9679 | ;; |
9680 | *) | |
d50284c4 | 9681 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9682 | ;; |
9683 | esac | |
9684 | else | |
9685 | case $host_cpu in | |
9686 | hppa*64*) | |
d50284c4 | 9687 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9688 | ;; |
9689 | ia64*) | |
d50284c4 | 9690 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9691 | ;; |
9692 | *) | |
b0322a85 CE |
9693 | |
9694 | # Older versions of the 11.00 compiler do not understand -b yet | |
9695 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9697 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9698 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9699 | $as_echo_n "(cached) " >&6 | |
9700 | else | |
9701 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9702 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9703 | LDFLAGS="$LDFLAGS -b" |
9704 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9705 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9706 | # The linker can only warn and ignore the option if not recognized | |
9707 | # So say no if there are warnings | |
9708 | if test -s conftest.err; then | |
9709 | # Append any errors to the config.log. | |
9710 | cat conftest.err 1>&5 | |
9711 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9712 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9713 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9714 | lt_cv_prog_compiler__b=yes | |
9715 | fi | |
9716 | else | |
9717 | lt_cv_prog_compiler__b=yes | |
9718 | fi | |
9719 | fi | |
9720 | $RM -r conftest* | |
d50284c4 | 9721 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9722 | |
9723 | fi | |
9724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9725 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9726 | ||
d50284c4 CE |
9727 | if test yes = "$lt_cv_prog_compiler__b"; then |
9728 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9729 | else |
9730 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9731 | fi | |
9732 | ||
8d138742 CE |
9733 | ;; |
9734 | esac | |
9735 | fi | |
d50284c4 CE |
9736 | if test no = "$with_gnu_ld"; then |
9737 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 9738 | hardcode_libdir_separator=: |
d9898ee8 | 9739 | |
8d138742 CE |
9740 | case $host_cpu in |
9741 | hppa*64*|ia64*) | |
9742 | hardcode_direct=no | |
9743 | hardcode_shlibpath_var=no | |
9744 | ;; | |
9745 | *) | |
9746 | hardcode_direct=yes | |
9747 | hardcode_direct_absolute=yes | |
d50284c4 | 9748 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9749 | |
8d138742 CE |
9750 | # hardcode_minus_L: Not really in the search PATH, |
9751 | # but as the default location of the library. | |
9752 | hardcode_minus_L=yes | |
9753 | ;; | |
9754 | esac | |
9755 | fi | |
9756 | ;; | |
d9898ee8 | 9757 | |
8d138742 | 9758 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
9759 | if test yes = "$GCC"; then |
9760 | 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 |
9761 | # Try to use the -exported_symbol ld option, if it does not |
9762 | # work, assume that -exports_file does not work either and | |
9763 | # implicitly export all symbols. | |
b0322a85 CE |
9764 | # This should be the same for all languages, so no per-tag cache variable. |
9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9766 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9767 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9768 | $as_echo_n "(cached) " >&6 | |
9769 | else | |
d50284c4 CE |
9770 | save_LDFLAGS=$LDFLAGS |
9771 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
9772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9773 | /* end confdefs.h. */ | |
9774 | int foo (void) { return 0; } | |
8d138742 | 9775 | _ACEOF |
b0322a85 CE |
9776 | if ac_fn_c_try_link "$LINENO"; then : |
9777 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 9778 | else |
b0322a85 | 9779 | lt_cv_irix_exported_symbol=no |
8d138742 | 9780 | fi |
b0322a85 CE |
9781 | rm -f core conftest.err conftest.$ac_objext \ |
9782 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 9783 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9784 | fi |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9786 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
9787 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9788 | 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 | 9789 | fi |
8d138742 | 9790 | else |
d50284c4 CE |
9791 | 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' |
9792 | 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 |
9793 | fi |
9794 | archive_cmds_need_lc='no' | |
d50284c4 | 9795 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9796 | hardcode_libdir_separator=: |
9797 | inherit_rpath=yes | |
9798 | link_all_deplibs=yes | |
9799 | ;; | |
d9898ee8 | 9800 | |
d50284c4 CE |
9801 | linux*) |
9802 | case $cc_basename in | |
9803 | tcc*) | |
9804 | # Fabrice Bellard et al's Tiny C Compiler | |
9805 | ld_shlibs=yes | |
9806 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9807 | ;; | |
9808 | esac | |
9809 | ;; | |
9810 | ||
8d138742 CE |
9811 | netbsd*) |
9812 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9813 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9814 | else | |
9815 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9816 | fi | |
9817 | hardcode_libdir_flag_spec='-R$libdir' | |
9818 | hardcode_direct=yes | |
9819 | hardcode_shlibpath_var=no | |
9820 | ;; | |
d9898ee8 | 9821 | |
8d138742 CE |
9822 | newsos6) |
9823 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9824 | hardcode_direct=yes | |
d50284c4 | 9825 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9826 | hardcode_libdir_separator=: |
9827 | hardcode_shlibpath_var=no | |
9828 | ;; | |
d9898ee8 | 9829 | |
8d138742 CE |
9830 | *nto* | *qnx*) |
9831 | ;; | |
d9898ee8 | 9832 | |
d50284c4 | 9833 | openbsd* | bitrig*) |
8d138742 CE |
9834 | if test -f /usr/libexec/ld.so; then |
9835 | hardcode_direct=yes | |
9836 | hardcode_shlibpath_var=no | |
9837 | hardcode_direct_absolute=yes | |
d50284c4 | 9838 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 9839 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
9840 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9841 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9842 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 9843 | else |
d50284c4 CE |
9844 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9845 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
9846 | fi |
9847 | else | |
9848 | ld_shlibs=no | |
9849 | fi | |
9850 | ;; | |
d9898ee8 | 9851 | |
8d138742 CE |
9852 | os2*) |
9853 | hardcode_libdir_flag_spec='-L$libdir' | |
9854 | hardcode_minus_L=yes | |
9855 | allow_undefined_flag=unsupported | |
d50284c4 CE |
9856 | shrext_cmds=.dll |
9857 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9858 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9859 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9860 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9861 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9862 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9863 | emximp -o $lib $output_objdir/$libname.def' | |
9864 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9865 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9866 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9867 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9868 | prefix_cmds="$SED"~ | |
9869 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9870 | prefix_cmds="$prefix_cmds -e 1d"; | |
9871 | fi~ | |
9872 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9873 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9874 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9875 | emximp -o $lib $output_objdir/$libname.def' | |
9876 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9877 | enable_shared_with_static_runtimes=yes | |
8d138742 | 9878 | ;; |
d9898ee8 | 9879 | |
8d138742 | 9880 | osf3*) |
d50284c4 CE |
9881 | if test yes = "$GCC"; then |
9882 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9883 | 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 |
9884 | else |
9885 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 9886 | 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 |
9887 | fi |
9888 | archive_cmds_need_lc='no' | |
d50284c4 | 9889 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9890 | hardcode_libdir_separator=: |
9891 | ;; | |
d9898ee8 | 9892 | |
8d138742 | 9893 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
9894 | if test yes = "$GCC"; then |
9895 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9896 | 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' | |
9897 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
9898 | else |
9899 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 9900 | 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 | 9901 | 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 | 9902 | $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 | 9903 | |
8d138742 CE |
9904 | # Both c and cxx compiler support -rpath directly |
9905 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9906 | fi | |
9907 | archive_cmds_need_lc='no' | |
9908 | hardcode_libdir_separator=: | |
9909 | ;; | |
d9898ee8 | 9910 | |
8d138742 CE |
9911 | solaris*) |
9912 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
9913 | if test yes = "$GCC"; then |
9914 | wlarc='$wl' | |
9915 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 9916 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 9917 | $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 |
9918 | else |
9919 | case `$CC -V 2>&1` in | |
9920 | *"Compilers 5.0"*) | |
9921 | wlarc='' | |
d50284c4 | 9922 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 9923 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 9924 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
9925 | ;; |
9926 | *) | |
d50284c4 CE |
9927 | wlarc='$wl' |
9928 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 9929 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 9930 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
9931 | ;; |
9932 | esac | |
9933 | fi | |
9934 | hardcode_libdir_flag_spec='-R$libdir' | |
9935 | hardcode_shlibpath_var=no | |
9936 | case $host_os in | |
9937 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9938 | *) | |
9939 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 9940 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
9941 | # but is careful enough not to reorder. |
9942 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
9943 | if test yes = "$GCC"; then |
9944 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
9945 | else |
9946 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9947 | fi | |
9948 | ;; | |
9949 | esac | |
9950 | link_all_deplibs=yes | |
9951 | ;; | |
d9898ee8 | 9952 | |
8d138742 | 9953 | sunos4*) |
d50284c4 | 9954 | if test sequent = "$host_vendor"; then |
8d138742 CE |
9955 | # Use $CC to link under sequent, because it throws in some extra .o |
9956 | # files that make .init and .fini sections work. | |
d50284c4 | 9957 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9958 | else |
9959 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9960 | fi | |
9961 | hardcode_libdir_flag_spec='-L$libdir' | |
9962 | hardcode_direct=yes | |
9963 | hardcode_minus_L=yes | |
9964 | hardcode_shlibpath_var=no | |
9965 | ;; | |
dd184caf | 9966 | |
8d138742 CE |
9967 | sysv4) |
9968 | case $host_vendor in | |
9969 | sni) | |
9970 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9971 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 9972 | ;; |
8d138742 CE |
9973 | siemens) |
9974 | ## LD is ld it makes a PLAMLIB | |
9975 | ## CC just makes a GrossModule. | |
9976 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9977 | reload_cmds='$CC -r -o $output$reload_objs' | |
9978 | hardcode_direct=no | |
9979 | ;; | |
9980 | motorola) | |
9981 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9982 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
d9898ee8 | 9983 | ;; |
9984 | esac | |
8d138742 CE |
9985 | runpath_var='LD_RUN_PATH' |
9986 | hardcode_shlibpath_var=no | |
9987 | ;; | |
d9898ee8 | 9988 | |
8d138742 CE |
9989 | sysv4.3*) |
9990 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9991 | hardcode_shlibpath_var=no | |
9992 | export_dynamic_flag_spec='-Bexport' | |
9993 | ;; | |
d9898ee8 | 9994 | |
8d138742 CE |
9995 | sysv4*MP*) |
9996 | if test -d /usr/nec; then | |
9997 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9998 | hardcode_shlibpath_var=no | |
9999 | runpath_var=LD_RUN_PATH | |
10000 | hardcode_runpath_var=yes | |
10001 | ld_shlibs=yes | |
10002 | fi | |
10003 | ;; | |
d9898ee8 | 10004 | |
8d138742 | 10005 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10006 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10007 | archive_cmds_need_lc=no |
10008 | hardcode_shlibpath_var=no | |
10009 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10010 | |
d50284c4 CE |
10011 | if test yes = "$GCC"; then |
10012 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10013 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10014 | else |
d50284c4 CE |
10015 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10016 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10017 | fi |
10018 | ;; | |
d9898ee8 | 10019 | |
8d138742 | 10020 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10021 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10022 | # link with -lc, and that would cause any symbols used from libc to |
10023 | # always be unresolved, which means just about no library would | |
10024 | # ever link correctly. If we're not using GNU ld we use -z text | |
10025 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10026 | # as -z defs. | |
d50284c4 CE |
10027 | no_undefined_flag='$wl-z,text' |
10028 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10029 | archive_cmds_need_lc=no |
10030 | hardcode_shlibpath_var=no | |
d50284c4 | 10031 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10032 | hardcode_libdir_separator=':' |
10033 | link_all_deplibs=yes | |
d50284c4 | 10034 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10035 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10036 | |
d50284c4 CE |
10037 | if test yes = "$GCC"; then |
10038 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10039 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10040 | else |
d50284c4 CE |
10041 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10042 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10043 | fi |
10044 | ;; | |
d9898ee8 | 10045 | |
8d138742 CE |
10046 | uts4*) |
10047 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10048 | hardcode_libdir_flag_spec='-L$libdir' | |
10049 | hardcode_shlibpath_var=no | |
10050 | ;; | |
10051 | ||
10052 | *) | |
10053 | ld_shlibs=no | |
10054 | ;; | |
10055 | esac | |
10056 | ||
d50284c4 | 10057 | if test sni = "$host_vendor"; then |
8d138742 CE |
10058 | case $host in |
10059 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10060 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10061 | ;; |
10062 | esac | |
d9898ee8 | 10063 | fi |
d9898ee8 | 10064 | fi |
10065 | ||
b0322a85 | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10067 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10068 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10069 | |
8d138742 | 10070 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10071 | |
d9898ee8 | 10072 | |
d9898ee8 | 10073 | |
d9898ee8 | 10074 | |
d9898ee8 | 10075 | |
d9898ee8 | 10076 | |
d9898ee8 | 10077 | |
d9898ee8 | 10078 | |
dd184caf | 10079 | |
dd184caf | 10080 | |
d9898ee8 | 10081 | |
d9898ee8 | 10082 | |
d9898ee8 | 10083 | |
d9898ee8 | 10084 | |
d9898ee8 | 10085 | |
8d138742 CE |
10086 | # |
10087 | # Do we need to explicitly link libc? | |
10088 | # | |
10089 | case "x$archive_cmds_need_lc" in | |
10090 | x|xyes) | |
10091 | # Assume -lc should be added | |
10092 | archive_cmds_need_lc=yes | |
d9898ee8 | 10093 | |
d50284c4 | 10094 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10095 | case $archive_cmds in |
10096 | *'~'*) | |
10097 | # FIXME: we may have to deal with multi-command sequences. | |
10098 | ;; | |
10099 | '$CC '*) | |
10100 | # Test whether the compiler implicitly links with -lc since on some | |
10101 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10102 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10104 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10105 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10106 | $as_echo_n "(cached) " >&6 | |
10107 | else | |
10108 | $RM conftest* | |
10109 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 10110 | |
b0322a85 | 10111 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10112 | (eval $ac_compile) 2>&5 |
10113 | ac_status=$? | |
b0322a85 CE |
10114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10115 | test $ac_status = 0; } 2>conftest.err; then | |
10116 | soname=conftest | |
10117 | lib=conftest | |
10118 | libobjs=conftest.$ac_objext | |
10119 | deplibs= | |
10120 | wl=$lt_prog_compiler_wl | |
10121 | pic_flag=$lt_prog_compiler_pic | |
10122 | compiler_flags=-v | |
10123 | linker_flags=-v | |
10124 | verstring= | |
10125 | output_objdir=. | |
10126 | libname=conftest | |
10127 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10128 | allow_undefined_flag= | |
10129 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10130 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10131 | ac_status=$? | |
b0322a85 CE |
10132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10133 | test $ac_status = 0; } | |
10134 | then | |
10135 | lt_cv_archive_cmds_need_lc=no | |
10136 | else | |
10137 | lt_cv_archive_cmds_need_lc=yes | |
10138 | fi | |
10139 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10140 | else | |
10141 | cat conftest.err 1>&5 | |
10142 | fi | |
10143 | $RM conftest* | |
10144 | ||
10145 | fi | |
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10147 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10148 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
d9898ee8 | 10149 | ;; |
10150 | esac | |
8d138742 CE |
10151 | fi |
10152 | ;; | |
10153 | esac | |
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
d9898ee8 | 10229 | |
d9898ee8 | 10230 | |
d9898ee8 | 10231 | |
d9898ee8 | 10232 | |
d9898ee8 | 10233 | |
d9898ee8 | 10234 | |
d9898ee8 | 10235 | |
d9898ee8 | 10236 | |
d9898ee8 | 10237 | |
d9898ee8 | 10238 | |
d9898ee8 | 10239 | |
d9898ee8 | 10240 | |
d9898ee8 | 10241 | |
d9898ee8 | 10242 | |
d9898ee8 | 10243 | |
d9898ee8 | 10244 | |
d9898ee8 | 10245 | |
d9898ee8 | 10246 | |
d9898ee8 | 10247 | |
10248 | ||
d9898ee8 | 10249 | |
d9898ee8 | 10250 | |
d9898ee8 | 10251 | |
d9898ee8 | 10252 | |
d9898ee8 | 10253 | |
d9898ee8 | 10254 | |
d9898ee8 | 10255 | |
d9898ee8 | 10256 | |
d9898ee8 | 10257 | |
ac40fd9e | 10258 | |
ac40fd9e | 10259 | |
d9898ee8 | 10260 | |
10261 | ||
d9898ee8 | 10262 | |
d9898ee8 | 10263 | |
d9898ee8 | 10264 | |
d9898ee8 | 10265 | |
d9898ee8 | 10266 | |
d9898ee8 | 10267 | |
d9898ee8 | 10268 | |
d9898ee8 | 10269 | |
d9898ee8 | 10270 | |
d9898ee8 | 10271 | |
d9898ee8 | 10272 | |
d9898ee8 | 10273 | |
d9898ee8 | 10274 | |
d9898ee8 | 10275 | |
10276 | ||
d9898ee8 | 10277 | |
d9898ee8 | 10278 | |
d9898ee8 | 10279 | |
10280 | ||
d9898ee8 | 10281 | |
d9898ee8 | 10282 | |
d9898ee8 | 10283 | |
d9898ee8 | 10284 | |
d9898ee8 | 10285 | |
d9898ee8 | 10286 | |
d9898ee8 | 10287 | |
8d138742 CE |
10288 | |
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
b0322a85 | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10307 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10308 | ||
d50284c4 | 10309 | if test yes = "$GCC"; then |
8d138742 | 10310 | case $host_os in |
d50284c4 CE |
10311 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10312 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10313 | esac |
b0322a85 | 10314 | case $host_os in |
d50284c4 CE |
10315 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10316 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10317 | esac |
10318 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10319 | case $lt_search_path_spec in | |
10320 | *\;*) | |
8d138742 CE |
10321 | # if the path contains ";" then we assume it to be the separator |
10322 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10323 | # assumed that no part of a normal pathname contains ";" but that should | |
10324 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10325 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10326 | ;; | |
10327 | *) | |
10328 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10329 | ;; | |
10330 | esac | |
8d138742 | 10331 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10332 | # and add multilib dir if necessary... |
8d138742 | 10333 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10334 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10335 | # ...but if some path component already ends with the multilib dir we assume | |
10336 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10337 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10338 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10339 | lt_multi_os_dir= | |
10340 | ;; | |
10341 | esac | |
8d138742 | 10342 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10343 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10344 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10345 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10346 | test -d "$lt_sys_path" && \ |
10347 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10348 | fi | |
10349 | done | |
b0322a85 | 10350 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10351 | BEGIN {RS = " "; FS = "/|\n";} { |
10352 | lt_foo = ""; | |
10353 | lt_count = 0; | |
8d138742 CE |
10354 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10355 | if ($lt_i != "" && $lt_i != ".") { | |
10356 | if ($lt_i == "..") { | |
10357 | lt_count++; | |
10358 | } else { | |
10359 | if (lt_count == 0) { | |
d50284c4 | 10360 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10361 | } else { |
10362 | lt_count--; | |
10363 | } | |
10364 | } | |
10365 | } | |
10366 | } | |
10367 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10368 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10369 | }'` | |
b0322a85 CE |
10370 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10371 | # for these hosts. | |
10372 | case $host_os in | |
10373 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10374 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10375 | esac |
10376 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10377 | else |
10378 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10379 | fi | |
d9898ee8 | 10380 | library_names_spec= |
10381 | libname_spec='lib$name' | |
10382 | soname_spec= | |
d50284c4 | 10383 | shrext_cmds=.so |
d9898ee8 | 10384 | postinstall_cmds= |
10385 | postuninstall_cmds= | |
10386 | finish_cmds= | |
10387 | finish_eval= | |
10388 | shlibpath_var= | |
10389 | shlibpath_overrides_runpath=unknown | |
10390 | version_type=none | |
10391 | dynamic_linker="$host_os ld.so" | |
10392 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 10393 | need_lib_prefix=unknown |
10394 | hardcode_into_libs=no | |
10395 | ||
10396 | # when you set need_version to no, make sure it does not cause -set_version | |
10397 | # flags to be left without arguments | |
10398 | need_version=unknown | |
10399 | ||
d50284c4 CE |
10400 | |
10401 | ||
d9898ee8 | 10402 | case $host_os in |
10403 | aix3*) | |
b0322a85 | 10404 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10405 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
d9898ee8 | 10406 | shlibpath_var=LIBPATH |
10407 | ||
10408 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10409 | soname_spec='$libname$release$shared_ext$major' |
d9898ee8 | 10410 | ;; |
10411 | ||
8d138742 | 10412 | aix[4-9]*) |
b0322a85 | 10413 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10414 | need_lib_prefix=no |
10415 | need_version=no | |
10416 | hardcode_into_libs=yes | |
d50284c4 | 10417 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 10418 | # AIX 5 supports IA64 |
d50284c4 | 10419 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
d9898ee8 | 10420 | shlibpath_var=LD_LIBRARY_PATH |
10421 | else | |
10422 | # With GCC up to 2.95.x, collect2 would create an import file | |
10423 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10424 | # the line '#! .'. This would cause the generated library to |
10425 | # depend on '.', always an invalid library. This was fixed in | |
d9898ee8 | 10426 | # development snapshots of GCC prior to 3.0. |
10427 | case $host_os in | |
10428 | aix4 | aix4.[01] | aix4.[01].*) | |
10429 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10430 | echo ' yes ' | |
d50284c4 | 10431 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10432 | : |
10433 | else | |
10434 | can_build_shared=no | |
10435 | fi | |
10436 | ;; | |
10437 | esac | |
d50284c4 CE |
10438 | # Using Import Files as archive members, it is possible to support |
10439 | # filename-based versioning of shared library archives on AIX. While | |
10440 | # this would work for both with and without runtime linking, it will | |
10441 | # prevent static linking of such archives. So we do filename-based | |
10442 | # shared library versioning with .so extension only, which is used | |
10443 | # when both runtime linking and shared linking is enabled. | |
10444 | # Unfortunately, runtime linking may impact performance, so we do | |
10445 | # not want this to be the default eventually. Also, we use the | |
10446 | # versioned .so libs for executables only if there is the -brtl | |
10447 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10448 | # To allow for filename-based versioning support, we need to create | |
10449 | # libNAME.so.V as an archive file, containing: | |
10450 | # *) an Import File, referring to the versioned filename of the | |
10451 | # archive as well as the shared archive member, telling the | |
10452 | # bitwidth (32 or 64) of that shared object, and providing the | |
10453 | # list of exported symbols of that shared object, eventually | |
10454 | # decorated with the 'weak' keyword | |
10455 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10456 | # it being seen by the linker. | |
10457 | # At run time we better use the real file rather than another symlink, | |
10458 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10459 | ||
10460 | case $with_aix_soname,$aix_use_runtimelinking in | |
10461 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 10462 | # soname into executable. Probably we can add versioning support to |
10463 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10464 | aix,yes) # traditional libtool |
10465 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 10466 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10467 | # instead of lib<name>.a to let people know that these are not | |
10468 | # typical AIX shared libraries. | |
d50284c4 CE |
10469 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10470 | ;; | |
10471 | aix,no) # traditional AIX only | |
10472 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 10473 | # We preserve .a as extension for shared libraries through AIX4.2 |
10474 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10475 | library_names_spec='$libname$release.a $libname.a' |
10476 | soname_spec='$libname$release$shared_ext$major' | |
10477 | ;; | |
10478 | svr4,*) # full svr4 only | |
10479 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10480 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10481 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10482 | shlibpath_overrides_runpath=yes | |
10483 | ;; | |
10484 | *,yes) # both, prefer svr4 | |
10485 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10486 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10487 | # unpreferred sharedlib libNAME.a needs extra handling | |
10488 | 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"' | |
10489 | 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"' | |
10490 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10491 | shlibpath_overrides_runpath=yes | |
10492 | ;; | |
10493 | *,no) # both, prefer aix | |
10494 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10495 | library_names_spec='$libname$release.a $libname.a' | |
10496 | soname_spec='$libname$release$shared_ext$major' | |
10497 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10498 | 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)' | |
10499 | 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"' | |
10500 | ;; | |
10501 | esac | |
d9898ee8 | 10502 | shlibpath_var=LIBPATH |
10503 | fi | |
10504 | ;; | |
10505 | ||
10506 | amigaos*) | |
8d138742 CE |
10507 | case $host_cpu in |
10508 | powerpc) | |
10509 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10510 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10511 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10512 | ;; |
10513 | m68k) | |
10514 | library_names_spec='$libname.ixlibrary $libname.a' | |
10515 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10516 | 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 |
10517 | ;; |
10518 | esac | |
d9898ee8 | 10519 | ;; |
10520 | ||
10521 | beos*) | |
d50284c4 | 10522 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 10523 | dynamic_linker="$host_os ld.so" |
10524 | shlibpath_var=LIBRARY_PATH | |
10525 | ;; | |
10526 | ||
10527 | bsdi[45]*) | |
b0322a85 | 10528 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10529 | need_version=no |
d50284c4 CE |
10530 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10531 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10532 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10533 | shlibpath_var=LD_LIBRARY_PATH | |
10534 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10535 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10536 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10537 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10538 | # libtool to hard-code these into programs | |
10539 | ;; | |
10540 | ||
8d138742 | 10541 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10542 | version_type=windows |
d50284c4 | 10543 | shrext_cmds=.dll |
d9898ee8 | 10544 | need_version=no |
10545 | need_lib_prefix=no | |
10546 | ||
b0322a85 CE |
10547 | case $GCC,$cc_basename in |
10548 | yes,*) | |
10549 | # gcc | |
d9898ee8 | 10550 | library_names_spec='$libname.dll.a' |
10551 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10552 | postinstall_cmds='base_file=`basename \$file`~ |
10553 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10554 | dldir=$destdir/`dirname \$dlpath`~ |
10555 | test -d \$dldir || mkdir -p \$dldir~ | |
10556 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10557 | chmod a+x \$dldir/$dlname~ |
10558 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10559 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10560 | fi' | |
d9898ee8 | 10561 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10562 | dlpath=$dir/\$dldll~ | |
8d138742 | 10563 | $RM \$dlpath' |
d9898ee8 | 10564 | shlibpath_overrides_runpath=yes |
10565 | ||
10566 | case $host_os in | |
10567 | cygwin*) | |
10568 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10569 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10570 | |
10571 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10572 | ;; |
8d138742 | 10573 | mingw* | cegcc*) |
d9898ee8 | 10574 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10575 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10576 | ;; |
10577 | pw32*) | |
10578 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10579 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10580 | ;; |
10581 | esac | |
b0322a85 CE |
10582 | dynamic_linker='Win32 ld.exe' |
10583 | ;; | |
10584 | ||
10585 | *,cl*) | |
10586 | # Native MSVC | |
10587 | libname_spec='$name' | |
d50284c4 CE |
10588 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10589 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10590 | |
10591 | case $build_os in | |
10592 | mingw*) | |
10593 | sys_lib_search_path_spec= | |
10594 | lt_save_ifs=$IFS | |
10595 | IFS=';' | |
10596 | for lt_path in $LIB | |
10597 | do | |
10598 | IFS=$lt_save_ifs | |
10599 | # Let DOS variable expansion print the short 8.3 style file name. | |
10600 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10601 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10602 | done | |
10603 | IFS=$lt_save_ifs | |
10604 | # Convert to MSYS style. | |
10605 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10606 | ;; | |
10607 | cygwin*) | |
10608 | # Convert to unix form, then to dos form, then back to unix form | |
10609 | # but this time dos style (no spaces!) so that the unix form looks | |
10610 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10611 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10612 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10613 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10614 | ;; | |
10615 | *) | |
d50284c4 | 10616 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10617 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10618 | # It is most probably a Windows format PATH. | |
10619 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10620 | else | |
10621 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10622 | fi | |
10623 | # FIXME: find the short name or the path components, as spaces are | |
10624 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10625 | ;; | |
10626 | esac | |
10627 | ||
10628 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10629 | postinstall_cmds='base_file=`basename \$file`~ |
10630 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10631 | dldir=$destdir/`dirname \$dlpath`~ |
10632 | test -d \$dldir || mkdir -p \$dldir~ | |
10633 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10634 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10635 | dlpath=$dir/\$dldll~ | |
10636 | $RM \$dlpath' | |
10637 | shlibpath_overrides_runpath=yes | |
10638 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10639 | ;; |
10640 | ||
10641 | *) | |
b0322a85 | 10642 | # Assume MSVC wrapper |
d50284c4 | 10643 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10644 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10645 | ;; |
10646 | esac | |
d9898ee8 | 10647 | # FIXME: first we should search . and the directory the executable is in |
10648 | shlibpath_var=PATH | |
10649 | ;; | |
10650 | ||
10651 | darwin* | rhapsody*) | |
10652 | dynamic_linker="$host_os dyld" | |
10653 | version_type=darwin | |
10654 | need_lib_prefix=no | |
10655 | need_version=no | |
d50284c4 CE |
10656 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10657 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 10658 | shlibpath_overrides_runpath=yes |
10659 | shlibpath_var=DYLD_LIBRARY_PATH | |
10660 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10661 | |
8d138742 | 10662 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10663 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10664 | ;; | |
10665 | ||
10666 | dgux*) | |
b0322a85 | 10667 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10668 | need_lib_prefix=no |
10669 | need_version=no | |
d50284c4 CE |
10670 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10671 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10672 | shlibpath_var=LD_LIBRARY_PATH |
10673 | ;; | |
10674 | ||
d9898ee8 | 10675 | freebsd* | dragonfly*) |
10676 | # DragonFly does not have aout. When/if they implement a new | |
10677 | # versioning mechanism, adjust this. | |
10678 | if test -x /usr/bin/objformat; then | |
10679 | objformat=`/usr/bin/objformat` | |
10680 | else | |
10681 | case $host_os in | |
b0322a85 | 10682 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10683 | *) objformat=elf ;; |
10684 | esac | |
10685 | fi | |
10686 | version_type=freebsd-$objformat | |
10687 | case $version_type in | |
10688 | freebsd-elf*) | |
d50284c4 CE |
10689 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10690 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10691 | need_version=no |
10692 | need_lib_prefix=no | |
10693 | ;; | |
10694 | freebsd-*) | |
d50284c4 | 10695 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 10696 | need_version=yes |
10697 | ;; | |
10698 | esac | |
10699 | shlibpath_var=LD_LIBRARY_PATH | |
10700 | case $host_os in | |
b0322a85 | 10701 | freebsd2.*) |
d9898ee8 | 10702 | shlibpath_overrides_runpath=yes |
10703 | ;; | |
10704 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10705 | shlibpath_overrides_runpath=yes | |
10706 | hardcode_into_libs=yes | |
10707 | ;; | |
10708 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10709 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10710 | shlibpath_overrides_runpath=no | |
10711 | hardcode_into_libs=yes | |
10712 | ;; | |
ac40fd9e | 10713 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10714 | shlibpath_overrides_runpath=yes |
10715 | hardcode_into_libs=yes | |
10716 | ;; | |
10717 | esac | |
10718 | ;; | |
10719 | ||
b0322a85 CE |
10720 | haiku*) |
10721 | version_type=linux # correct to gnu/linux during the next big refactor | |
10722 | need_lib_prefix=no | |
10723 | need_version=no | |
10724 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10725 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10726 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10727 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10728 | shlibpath_overrides_runpath=no |
b0322a85 | 10729 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 10730 | hardcode_into_libs=yes |
10731 | ;; | |
10732 | ||
10733 | hpux9* | hpux10* | hpux11*) | |
10734 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10735 | # link against other versions. | |
10736 | version_type=sunos | |
10737 | need_lib_prefix=no | |
10738 | need_version=no | |
10739 | case $host_cpu in | |
10740 | ia64*) | |
10741 | shrext_cmds='.so' | |
10742 | hardcode_into_libs=yes | |
10743 | dynamic_linker="$host_os dld.so" | |
10744 | shlibpath_var=LD_LIBRARY_PATH | |
10745 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10746 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10747 | soname_spec='$libname$release$shared_ext$major' | |
10748 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 10749 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10750 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 10751 | else |
10752 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10753 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 10754 | fi |
d9898ee8 | 10755 | ;; |
8d138742 CE |
10756 | hppa*64*) |
10757 | shrext_cmds='.sl' | |
10758 | hardcode_into_libs=yes | |
10759 | dynamic_linker="$host_os dld.sl" | |
10760 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10761 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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' | |
8d138742 CE |
10764 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10765 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10766 | ;; | |
10767 | *) | |
d9898ee8 | 10768 | shrext_cmds='.sl' |
10769 | dynamic_linker="$host_os dld.sl" | |
10770 | shlibpath_var=SHLIB_PATH | |
10771 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
10772 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10773 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10774 | ;; |
10775 | esac | |
b0322a85 | 10776 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10777 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10778 | # or fails outright, so override atomically: |
10779 | install_override_mode=555 | |
d9898ee8 | 10780 | ;; |
10781 | ||
ac40fd9e | 10782 | interix[3-9]*) |
b0322a85 | 10783 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10784 | need_lib_prefix=no |
10785 | need_version=no | |
d50284c4 CE |
10786 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10787 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10788 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10789 | shlibpath_var=LD_LIBRARY_PATH | |
10790 | shlibpath_overrides_runpath=no | |
10791 | hardcode_into_libs=yes | |
10792 | ;; | |
10793 | ||
10794 | irix5* | irix6* | nonstopux*) | |
10795 | case $host_os in | |
10796 | nonstopux*) version_type=nonstopux ;; | |
10797 | *) | |
d50284c4 | 10798 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 10799 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10800 | else |
10801 | version_type=irix | |
10802 | fi ;; | |
10803 | esac | |
10804 | need_lib_prefix=no | |
10805 | need_version=no | |
d50284c4 CE |
10806 | soname_spec='$libname$release$shared_ext$major' |
10807 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 10808 | case $host_os in |
10809 | irix5* | nonstopux*) | |
10810 | libsuff= shlibsuff= | |
10811 | ;; | |
10812 | *) | |
10813 | case $LD in # libtool.m4 will add one of these switches to LD | |
10814 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10815 | libsuff= shlibsuff= libmagic=32-bit;; | |
10816 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10817 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10818 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10819 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10820 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10821 | esac | |
10822 | ;; | |
10823 | esac | |
10824 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10825 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
10826 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10827 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 10828 | hardcode_into_libs=yes |
10829 | ;; | |
10830 | ||
10831 | # No shared lib support for Linux oldld, aout, or coff. | |
10832 | linux*oldld* | linux*aout* | linux*coff*) | |
10833 | dynamic_linker=no | |
10834 | ;; | |
10835 | ||
d50284c4 CE |
10836 | linux*android*) |
10837 | version_type=none # Android doesn't support versioned libraries. | |
10838 | need_lib_prefix=no | |
10839 | need_version=no | |
10840 | library_names_spec='$libname$release$shared_ext' | |
10841 | soname_spec='$libname$release$shared_ext' | |
10842 | finish_cmds= | |
10843 | shlibpath_var=LD_LIBRARY_PATH | |
10844 | shlibpath_overrides_runpath=yes | |
10845 | ||
10846 | # This implies no fast_install, which is unacceptable. | |
10847 | # Some rework will be needed to allow for fast_install | |
10848 | # before this can be enabled. | |
10849 | hardcode_into_libs=yes | |
10850 | ||
10851 | dynamic_linker='Android linker' | |
10852 | # Don't embed -rpath directories since the linker doesn't support them. | |
10853 | hardcode_libdir_flag_spec='-L$libdir' | |
10854 | ;; | |
10855 | ||
b0322a85 | 10856 | # This must be glibc/ELF. |
d50284c4 | 10857 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 10858 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10859 | need_lib_prefix=no |
10860 | need_version=no | |
d50284c4 CE |
10861 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10862 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10863 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10864 | shlibpath_var=LD_LIBRARY_PATH | |
10865 | shlibpath_overrides_runpath=no | |
b0322a85 | 10866 | |
8d138742 | 10867 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10868 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10869 | $as_echo_n "(cached) " >&6 | |
10870 | else | |
10871 | lt_cv_shlibpath_overrides_runpath=no | |
10872 | save_LDFLAGS=$LDFLAGS | |
10873 | save_libdir=$libdir | |
10874 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10875 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 10877 | /* end confdefs.h. */ |
d9898ee8 | 10878 | |
8d138742 CE |
10879 | int |
10880 | main () | |
10881 | { | |
d9898ee8 | 10882 | |
8d138742 CE |
10883 | ; |
10884 | return 0; | |
10885 | } | |
10886 | _ACEOF | |
b0322a85 CE |
10887 | if ac_fn_c_try_link "$LINENO"; then : |
10888 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10889 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10890 | fi |
b0322a85 CE |
10891 | fi |
10892 | rm -f core conftest.err conftest.$ac_objext \ | |
10893 | conftest$ac_exeext conftest.$ac_ext | |
10894 | LDFLAGS=$save_LDFLAGS | |
10895 | libdir=$save_libdir | |
8d138742 CE |
10896 | |
10897 | fi | |
10898 | ||
b0322a85 | 10899 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 CE |
10900 | |
10901 | # This implies no fast_install, which is unacceptable. | |
10902 | # Some rework will be needed to allow for fast_install | |
10903 | # before this can be enabled. | |
10904 | hardcode_into_libs=yes | |
10905 | ||
10906 | # Add ABI-specific directories to the system library path. | |
10907 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
10908 | ||
d50284c4 CE |
10909 | # Ideally, we could use ldconfig to report *all* directores which are |
10910 | # searched for libraries, however this is still not possible. Aside from not | |
10911 | # being certain /sbin/ldconfig is available, command | |
10912 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
10913 | # even though it is searched at run-time. Try to do the best guess by | |
10914 | # appending ld.so.conf contents (and includes) to the search path. | |
8d138742 | 10915 | if test -f /etc/ld.so.conf; then |
b0322a85 | 10916 | 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' ' '` |
8d138742 CE |
10917 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
10918 | fi | |
10919 | ||
10920 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10921 | # powerpc, because MkLinux only supported shared libraries with the | |
10922 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10923 | # most powerpc-linux boxes support dynamic linking these days and | |
10924 | # people can always --disable-shared, the test was removed, and we | |
10925 | # assume the GNU/Linux dynamic linker is in use. | |
10926 | dynamic_linker='GNU/Linux ld.so' | |
10927 | ;; | |
10928 | ||
10929 | netbsd*) | |
10930 | version_type=sunos | |
10931 | need_lib_prefix=no | |
10932 | need_version=no | |
10933 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
d50284c4 | 10934 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
8d138742 CE |
10935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10936 | dynamic_linker='NetBSD (a.out) ld.so' | |
10937 | else | |
d50284c4 CE |
10938 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10939 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10940 | dynamic_linker='NetBSD ld.elf_so' |
10941 | fi | |
d9898ee8 | 10942 | shlibpath_var=LD_LIBRARY_PATH |
10943 | shlibpath_overrides_runpath=yes | |
10944 | hardcode_into_libs=yes | |
10945 | ;; | |
10946 | ||
10947 | newsos6) | |
b0322a85 | 10948 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10949 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 10950 | shlibpath_var=LD_LIBRARY_PATH |
10951 | shlibpath_overrides_runpath=yes | |
10952 | ;; | |
10953 | ||
8d138742 CE |
10954 | *nto* | *qnx*) |
10955 | version_type=qnx | |
d9898ee8 | 10956 | need_lib_prefix=no |
10957 | need_version=no | |
d50284c4 CE |
10958 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10959 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10960 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
10961 | shlibpath_overrides_runpath=no |
10962 | hardcode_into_libs=yes | |
10963 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10964 | ;; |
10965 | ||
d50284c4 | 10966 | openbsd* | bitrig*) |
d9898ee8 | 10967 | version_type=sunos |
d50284c4 | 10968 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 10969 | need_lib_prefix=no |
d50284c4 CE |
10970 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
10971 | need_version=no | |
d9898ee8 | 10972 | else |
d50284c4 | 10973 | need_version=yes |
d9898ee8 | 10974 | fi |
d50284c4 CE |
10975 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
10976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10977 | shlibpath_var=LD_LIBRARY_PATH | |
10978 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 10979 | ;; |
10980 | ||
10981 | os2*) | |
10982 | libname_spec='$name' | |
d50284c4 CE |
10983 | version_type=windows |
10984 | shrext_cmds=.dll | |
10985 | need_version=no | |
d9898ee8 | 10986 | need_lib_prefix=no |
d50284c4 CE |
10987 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
10988 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
10989 | v=$($ECHO $release$versuffix | tr -d .-); | |
10990 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
10991 | $ECHO $n$v`$shared_ext' | |
10992 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 10993 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
10994 | shlibpath_var=BEGINLIBPATH |
10995 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10996 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10997 | postinstall_cmds='base_file=`basename \$file`~ | |
10998 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
10999 | dldir=$destdir/`dirname \$dlpath`~ | |
11000 | test -d \$dldir || mkdir -p \$dldir~ | |
11001 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11002 | chmod a+x \$dldir/$dlname~ | |
11003 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11004 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11005 | fi' | |
11006 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11007 | dlpath=$dir/\$dldll~ | |
11008 | $RM \$dlpath' | |
d9898ee8 | 11009 | ;; |
11010 | ||
11011 | osf3* | osf4* | osf5*) | |
11012 | version_type=osf | |
11013 | need_lib_prefix=no | |
11014 | need_version=no | |
d50284c4 CE |
11015 | soname_spec='$libname$release$shared_ext$major' |
11016 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11017 | shlibpath_var=LD_LIBRARY_PATH |
11018 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11019 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11020 | ;; |
11021 | ||
ac40fd9e | 11022 | rdos*) |
11023 | dynamic_linker=no | |
11024 | ;; | |
11025 | ||
d9898ee8 | 11026 | solaris*) |
b0322a85 | 11027 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11028 | need_lib_prefix=no |
11029 | need_version=no | |
d50284c4 CE |
11030 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11031 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11032 | shlibpath_var=LD_LIBRARY_PATH |
11033 | shlibpath_overrides_runpath=yes | |
11034 | hardcode_into_libs=yes | |
11035 | # ldd complains unless libraries are executable | |
11036 | postinstall_cmds='chmod +x $lib' | |
11037 | ;; | |
11038 | ||
11039 | sunos4*) | |
11040 | version_type=sunos | |
d50284c4 | 11041 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11042 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11043 | shlibpath_var=LD_LIBRARY_PATH | |
11044 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11045 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11046 | need_lib_prefix=no |
11047 | fi | |
11048 | need_version=yes | |
11049 | ;; | |
11050 | ||
11051 | sysv4 | sysv4.3*) | |
b0322a85 | 11052 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11053 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11054 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11055 | shlibpath_var=LD_LIBRARY_PATH |
11056 | case $host_vendor in | |
11057 | sni) | |
11058 | shlibpath_overrides_runpath=no | |
11059 | need_lib_prefix=no | |
d9898ee8 | 11060 | runpath_var=LD_RUN_PATH |
11061 | ;; | |
11062 | siemens) | |
11063 | need_lib_prefix=no | |
11064 | ;; | |
11065 | motorola) | |
11066 | need_lib_prefix=no | |
11067 | need_version=no | |
11068 | shlibpath_overrides_runpath=no | |
11069 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11070 | ;; | |
11071 | esac | |
11072 | ;; | |
11073 | ||
11074 | sysv4*MP*) | |
d50284c4 | 11075 | if test -d /usr/nec; then |
b0322a85 | 11076 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11077 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11078 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11079 | shlibpath_var=LD_LIBRARY_PATH |
11080 | fi | |
11081 | ;; | |
11082 | ||
11083 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11084 | version_type=sco |
d9898ee8 | 11085 | need_lib_prefix=no |
11086 | need_version=no | |
d50284c4 CE |
11087 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11088 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11089 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11090 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11091 | hardcode_into_libs=yes |
d50284c4 | 11092 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11093 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11094 | else |
11095 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11096 | case $host_os in |
11097 | sco3.2v5*) | |
11098 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11099 | ;; | |
11100 | esac | |
11101 | fi | |
11102 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11103 | ;; | |
11104 | ||
8d138742 CE |
11105 | tpf*) |
11106 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11107 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11108 | need_lib_prefix=no |
11109 | need_version=no | |
d50284c4 | 11110 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11111 | shlibpath_var=LD_LIBRARY_PATH |
11112 | shlibpath_overrides_runpath=no | |
11113 | hardcode_into_libs=yes | |
11114 | ;; | |
11115 | ||
d9898ee8 | 11116 | uts4*) |
b0322a85 | 11117 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11118 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11119 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11120 | shlibpath_var=LD_LIBRARY_PATH |
11121 | ;; | |
11122 | ||
11123 | *) | |
11124 | dynamic_linker=no | |
11125 | ;; | |
11126 | esac | |
b0322a85 | 11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11128 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11129 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11130 | |
11131 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11132 | if test yes = "$GCC"; then |
d9898ee8 | 11133 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11134 | fi | |
11135 | ||
d50284c4 CE |
11136 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11137 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
d9898ee8 | 11138 | fi |
d50284c4 CE |
11139 | |
11140 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11141 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 11142 | fi |
11143 | ||
d50284c4 CE |
11144 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11145 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11146 | ||
11147 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11148 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11149 | ||
11150 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11151 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
d9898ee8 | 11158 | |
d9898ee8 | 11159 | |
d9898ee8 | 11160 | |
d9898ee8 | 11161 | |
d9898ee8 | 11162 | |
d9898ee8 | 11163 | |
d9898ee8 | 11164 | |
d9898ee8 | 11165 | |
d9898ee8 | 11166 | |
d9898ee8 | 11167 | |
d9898ee8 | 11168 | |
d9898ee8 | 11169 | |
d9898ee8 | 11170 | |
d9898ee8 | 11171 | |
d9898ee8 | 11172 | |
d9898ee8 | 11173 | |
d9898ee8 | 11174 | |
d9898ee8 | 11175 | |
d9898ee8 | 11176 | |
d9898ee8 | 11177 | |
d9898ee8 | 11178 | |
d9898ee8 | 11179 | |
d9898ee8 | 11180 | |
d9898ee8 | 11181 | |
d9898ee8 | 11182 | |
d9898ee8 | 11183 | |
d9898ee8 | 11184 | |
d9898ee8 | 11185 | |
d9898ee8 | 11186 | |
d9898ee8 | 11187 | |
d9898ee8 | 11188 | |
d9898ee8 | 11189 | |
d9898ee8 | 11190 | |
d9898ee8 | 11191 | |
d9898ee8 | 11192 | |
d9898ee8 | 11193 | |
d9898ee8 | 11194 | |
d9898ee8 | 11195 | |
d9898ee8 | 11196 | |
d9898ee8 | 11197 | |
d9898ee8 | 11198 | |
d9898ee8 | 11199 | |
d9898ee8 | 11200 | |
d9898ee8 | 11201 | |
d9898ee8 | 11202 | |
d9898ee8 | 11203 | |
d9898ee8 | 11204 | |
d9898ee8 | 11205 | |
d9898ee8 | 11206 | |
d9898ee8 | 11207 | |
d9898ee8 | 11208 | |
d9898ee8 | 11209 | |
d9898ee8 | 11210 | |
d9898ee8 | 11211 | |
d9898ee8 | 11212 | |
d9898ee8 | 11213 | |
d9898ee8 | 11214 | |
d9898ee8 | 11215 | |
d9898ee8 | 11216 | |
d9898ee8 | 11217 | |
d9898ee8 | 11218 | |
d9898ee8 | 11219 | |
d9898ee8 | 11220 | |
d9898ee8 | 11221 | |
d9898ee8 | 11222 | |
d9898ee8 | 11223 | |
d9898ee8 | 11224 | |
d9898ee8 | 11225 | |
d9898ee8 | 11226 | |
d9898ee8 | 11227 | |
d9898ee8 | 11228 | |
d9898ee8 | 11229 | |
d9898ee8 | 11230 | |
d9898ee8 | 11231 | |
d9898ee8 | 11232 | |
d9898ee8 | 11233 | |
d9898ee8 | 11234 | |
d9898ee8 | 11235 | |
d9898ee8 | 11236 | |
d9898ee8 | 11237 | |
d9898ee8 | 11238 | |
d9898ee8 | 11239 | |
d9898ee8 | 11240 | |
d9898ee8 | 11241 | |
d9898ee8 | 11242 | |
d9898ee8 | 11243 | |
b0322a85 CE |
11244 | |
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11250 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11251 | hardcode_action= | |
11252 | if test -n "$hardcode_libdir_flag_spec" || | |
11253 | test -n "$runpath_var" || | |
d50284c4 | 11254 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 11255 | |
8d138742 | 11256 | # We can hardcode non-existent directories. |
d50284c4 | 11257 | if test no != "$hardcode_direct" && |
8d138742 CE |
11258 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11259 | # have to relink, otherwise we might link with an installed library | |
11260 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11261 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11262 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
11263 | # Linking always hardcodes the temporary library directory. |
11264 | hardcode_action=relink | |
11265 | else | |
11266 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11267 | hardcode_action=immediate | |
11268 | fi | |
11269 | else | |
11270 | # We cannot hardcode anything, or else we can only hardcode existing | |
11271 | # directories. | |
11272 | hardcode_action=unsupported | |
11273 | fi | |
b0322a85 | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11275 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11276 | |
d50284c4 CE |
11277 | if test relink = "$hardcode_action" || |
11278 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
11279 | # Fast installation is not supported |
11280 | enable_fast_install=no | |
d50284c4 CE |
11281 | elif test yes = "$shlibpath_overrides_runpath" || |
11282 | test no = "$enable_shared"; then | |
8d138742 CE |
11283 | # Fast installation is not necessary |
11284 | enable_fast_install=needless | |
11285 | fi | |
d9898ee8 | 11286 | |
d9898ee8 | 11287 | |
d9898ee8 | 11288 | |
d9898ee8 | 11289 | |
d9898ee8 | 11290 | |
d9898ee8 | 11291 | |
d50284c4 | 11292 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11293 | enable_dlopen=unknown |
11294 | enable_dlopen_self=unknown | |
11295 | enable_dlopen_self_static=unknown | |
11296 | else | |
11297 | lt_cv_dlopen=no | |
11298 | lt_cv_dlopen_libs= | |
d9898ee8 | 11299 | |
8d138742 CE |
11300 | case $host_os in |
11301 | beos*) | |
d50284c4 | 11302 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11303 | lt_cv_dlopen_libs= |
11304 | lt_cv_dlopen_self=yes | |
11305 | ;; | |
d9898ee8 | 11306 | |
8d138742 | 11307 | mingw* | pw32* | cegcc*) |
d50284c4 | 11308 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
11309 | lt_cv_dlopen_libs= |
11310 | ;; | |
d9898ee8 | 11311 | |
8d138742 | 11312 | cygwin*) |
d50284c4 | 11313 | lt_cv_dlopen=dlopen |
8d138742 CE |
11314 | lt_cv_dlopen_libs= |
11315 | ;; | |
d9898ee8 | 11316 | |
8d138742 | 11317 | darwin*) |
d50284c4 | 11318 | # if libdl is installed we need to link against it |
b0322a85 | 11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11320 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11321 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11322 | $as_echo_n "(cached) " >&6 |
11323 | else | |
11324 | ac_check_lib_save_LIBS=$LIBS | |
11325 | LIBS="-ldl $LIBS" | |
b0322a85 | 11326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11327 | /* end confdefs.h. */ |
d9898ee8 | 11328 | |
8d138742 CE |
11329 | /* Override any GCC internal prototype to avoid an error. |
11330 | Use char because int might match the return type of a GCC | |
11331 | builtin and then its argument prototype would still apply. */ | |
11332 | #ifdef __cplusplus | |
11333 | extern "C" | |
11334 | #endif | |
11335 | char dlopen (); | |
11336 | int | |
11337 | main () | |
11338 | { | |
11339 | return dlopen (); | |
11340 | ; | |
11341 | return 0; | |
11342 | } | |
11343 | _ACEOF | |
b0322a85 | 11344 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11345 | ac_cv_lib_dl_dlopen=yes |
11346 | else | |
b0322a85 | 11347 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11348 | fi |
b0322a85 CE |
11349 | rm -f core conftest.err conftest.$ac_objext \ |
11350 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11351 | LIBS=$ac_check_lib_save_LIBS |
11352 | fi | |
b0322a85 | 11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11354 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11355 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11356 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11357 | else |
d9898ee8 | 11358 | |
d50284c4 | 11359 | lt_cv_dlopen=dyld |
8d138742 CE |
11360 | lt_cv_dlopen_libs= |
11361 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11362 | |
8d138742 | 11363 | fi |
d9898ee8 | 11364 | |
8d138742 | 11365 | ;; |
d9898ee8 | 11366 | |
d50284c4 CE |
11367 | tpf*) |
11368 | # Don't try to run any link tests for TPF. We know it's impossible | |
11369 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11370 | lt_cv_dlopen=dlopen | |
11371 | lt_cv_dlopen_libs= | |
11372 | lt_cv_dlopen_self=no | |
11373 | ;; | |
11374 | ||
8d138742 | 11375 | *) |
b0322a85 CE |
11376 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11377 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11378 | lt_cv_dlopen=shl_load |
8d138742 | 11379 | else |
b0322a85 | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11381 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11382 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11383 | $as_echo_n "(cached) " >&6 |
11384 | else | |
11385 | ac_check_lib_save_LIBS=$LIBS | |
11386 | LIBS="-ldld $LIBS" | |
b0322a85 | 11387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11388 | /* end confdefs.h. */ |
d9898ee8 | 11389 | |
8d138742 CE |
11390 | /* Override any GCC internal prototype to avoid an error. |
11391 | Use char because int might match the return type of a GCC | |
11392 | builtin and then its argument prototype would still apply. */ | |
11393 | #ifdef __cplusplus | |
11394 | extern "C" | |
11395 | #endif | |
11396 | char shl_load (); | |
11397 | int | |
11398 | main () | |
11399 | { | |
11400 | return shl_load (); | |
11401 | ; | |
11402 | return 0; | |
11403 | } | |
11404 | _ACEOF | |
b0322a85 | 11405 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11406 | ac_cv_lib_dld_shl_load=yes |
11407 | else | |
b0322a85 | 11408 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11409 | fi |
b0322a85 CE |
11410 | rm -f core conftest.err conftest.$ac_objext \ |
11411 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11412 | LIBS=$ac_check_lib_save_LIBS |
11413 | fi | |
b0322a85 | 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 11415 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 11416 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 11417 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 11418 | else |
b0322a85 CE |
11419 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11420 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11421 | lt_cv_dlopen=dlopen |
8d138742 | 11422 | else |
b0322a85 | 11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11424 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11425 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11426 | $as_echo_n "(cached) " >&6 |
11427 | else | |
11428 | ac_check_lib_save_LIBS=$LIBS | |
11429 | LIBS="-ldl $LIBS" | |
b0322a85 | 11430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11431 | /* end confdefs.h. */ |
d9898ee8 | 11432 | |
8d138742 CE |
11433 | /* Override any GCC internal prototype to avoid an error. |
11434 | Use char because int might match the return type of a GCC | |
11435 | builtin and then its argument prototype would still apply. */ | |
11436 | #ifdef __cplusplus | |
11437 | extern "C" | |
11438 | #endif | |
11439 | char dlopen (); | |
11440 | int | |
11441 | main () | |
11442 | { | |
11443 | return dlopen (); | |
11444 | ; | |
11445 | return 0; | |
11446 | } | |
11447 | _ACEOF | |
b0322a85 | 11448 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 11449 | ac_cv_lib_dl_dlopen=yes |
d9898ee8 | 11450 | else |
b0322a85 | 11451 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 11452 | fi |
b0322a85 CE |
11453 | rm -f core conftest.err conftest.$ac_objext \ |
11454 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11455 | LIBS=$ac_check_lib_save_LIBS |
11456 | fi | |
b0322a85 | 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11458 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11459 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11460 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11461 | else |
b0322a85 | 11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11463 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11464 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11465 | $as_echo_n "(cached) " >&6 |
11466 | else | |
11467 | ac_check_lib_save_LIBS=$LIBS | |
11468 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11470 | /* end confdefs.h. */ |
d9898ee8 | 11471 | |
8d138742 CE |
11472 | /* Override any GCC internal prototype to avoid an error. |
11473 | Use char because int might match the return type of a GCC | |
11474 | builtin and then its argument prototype would still apply. */ | |
11475 | #ifdef __cplusplus | |
11476 | extern "C" | |
11477 | #endif | |
11478 | char dlopen (); | |
11479 | int | |
11480 | main () | |
11481 | { | |
11482 | return dlopen (); | |
11483 | ; | |
11484 | return 0; | |
11485 | } | |
11486 | _ACEOF | |
b0322a85 | 11487 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11488 | ac_cv_lib_svld_dlopen=yes |
11489 | else | |
b0322a85 | 11490 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11491 | fi |
b0322a85 CE |
11492 | rm -f core conftest.err conftest.$ac_objext \ |
11493 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11494 | LIBS=$ac_check_lib_save_LIBS |
11495 | fi | |
b0322a85 | 11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11497 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11498 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11499 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11500 | else |
b0322a85 | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11502 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11503 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11504 | $as_echo_n "(cached) " >&6 |
11505 | else | |
11506 | ac_check_lib_save_LIBS=$LIBS | |
11507 | LIBS="-ldld $LIBS" | |
b0322a85 | 11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11509 | /* end confdefs.h. */ |
d9898ee8 | 11510 | |
8d138742 CE |
11511 | /* Override any GCC internal prototype to avoid an error. |
11512 | Use char because int might match the return type of a GCC | |
11513 | builtin and then its argument prototype would still apply. */ | |
11514 | #ifdef __cplusplus | |
11515 | extern "C" | |
11516 | #endif | |
11517 | char dld_link (); | |
11518 | int | |
11519 | main () | |
11520 | { | |
11521 | return dld_link (); | |
11522 | ; | |
11523 | return 0; | |
11524 | } | |
11525 | _ACEOF | |
b0322a85 | 11526 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11527 | ac_cv_lib_dld_dld_link=yes |
11528 | else | |
b0322a85 | 11529 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11530 | fi |
b0322a85 CE |
11531 | rm -f core conftest.err conftest.$ac_objext \ |
11532 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11533 | LIBS=$ac_check_lib_save_LIBS |
11534 | fi | |
b0322a85 | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11536 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11537 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11538 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11539 | fi |
d9898ee8 | 11540 | |
d9898ee8 | 11541 | |
8d138742 | 11542 | fi |
d9898ee8 | 11543 | |
d9898ee8 | 11544 | |
8d138742 | 11545 | fi |
d9898ee8 | 11546 | |
d9898ee8 | 11547 | |
8d138742 | 11548 | fi |
d9898ee8 | 11549 | |
d9898ee8 | 11550 | |
8d138742 | 11551 | fi |
d9898ee8 | 11552 | |
d9898ee8 | 11553 | |
8d138742 | 11554 | fi |
d9898ee8 | 11555 | |
8d138742 CE |
11556 | ;; |
11557 | esac | |
d9898ee8 | 11558 | |
d50284c4 | 11559 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11560 | enable_dlopen=no |
d50284c4 CE |
11561 | else |
11562 | enable_dlopen=yes | |
8d138742 | 11563 | fi |
d9898ee8 | 11564 | |
8d138742 CE |
11565 | case $lt_cv_dlopen in |
11566 | dlopen) | |
d50284c4 CE |
11567 | save_CPPFLAGS=$CPPFLAGS |
11568 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11569 | |
d50284c4 | 11570 | save_LDFLAGS=$LDFLAGS |
8d138742 | 11571 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11572 | |
d50284c4 | 11573 | save_LIBS=$LIBS |
8d138742 | 11574 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11575 | |
b0322a85 | 11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11577 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11578 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
11579 | $as_echo_n "(cached) " >&6 |
11580 | else | |
d50284c4 | 11581 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11582 | lt_cv_dlopen_self=cross |
11583 | else | |
11584 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11585 | lt_status=$lt_dlunknown | |
11586 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11587 | #line $LINENO "configure" |
8d138742 | 11588 | #include "confdefs.h" |
d9898ee8 | 11589 | |
8d138742 CE |
11590 | #if HAVE_DLFCN_H |
11591 | #include <dlfcn.h> | |
11592 | #endif | |
d9898ee8 | 11593 | |
8d138742 | 11594 | #include <stdio.h> |
d9898ee8 | 11595 | |
8d138742 CE |
11596 | #ifdef RTLD_GLOBAL |
11597 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11598 | #else | |
11599 | # ifdef DL_GLOBAL | |
11600 | # define LT_DLGLOBAL DL_GLOBAL | |
11601 | # else | |
11602 | # define LT_DLGLOBAL 0 | |
11603 | # endif | |
11604 | #endif | |
d9898ee8 | 11605 | |
8d138742 CE |
11606 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11607 | find out it does not work in some platform. */ | |
11608 | #ifndef LT_DLLAZY_OR_NOW | |
11609 | # ifdef RTLD_LAZY | |
11610 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11611 | # else | |
11612 | # ifdef DL_LAZY | |
11613 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11614 | # else | |
11615 | # ifdef RTLD_NOW | |
11616 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11617 | # else | |
11618 | # ifdef DL_NOW | |
11619 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11620 | # else | |
11621 | # define LT_DLLAZY_OR_NOW 0 | |
11622 | # endif | |
11623 | # endif | |
11624 | # endif | |
11625 | # endif | |
11626 | #endif | |
d9898ee8 | 11627 | |
d50284c4 | 11628 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11629 | correspondingly for the symbols needed. */ |
d50284c4 | 11630 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11631 | int fnord () __attribute__((visibility("default"))); |
11632 | #endif | |
11633 | ||
11634 | int fnord () { return 42; } | |
8d138742 CE |
11635 | int main () |
11636 | { | |
11637 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11638 | int status = $lt_dlunknown; | |
d9898ee8 | 11639 | |
8d138742 CE |
11640 | if (self) |
11641 | { | |
11642 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11643 | else |
11644 | { | |
11645 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11646 | else puts (dlerror ()); | |
11647 | } | |
8d138742 CE |
11648 | /* dlclose (self); */ |
11649 | } | |
11650 | else | |
11651 | puts (dlerror ()); | |
d9898ee8 | 11652 | |
8d138742 CE |
11653 | return status; |
11654 | } | |
11655 | _LT_EOF | |
b0322a85 | 11656 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11657 | (eval $ac_link) 2>&5 |
11658 | ac_status=$? | |
b0322a85 | 11659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11660 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11661 | (./conftest; exit; ) >&5 2>/dev/null |
11662 | lt_status=$? | |
11663 | case x$lt_status in | |
11664 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11665 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11666 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11667 | esac | |
11668 | else : | |
11669 | # compilation failed | |
11670 | lt_cv_dlopen_self=no | |
11671 | fi | |
11672 | fi | |
11673 | rm -fr conftest* | |
d9898ee8 | 11674 | |
d9898ee8 | 11675 | |
8d138742 | 11676 | fi |
b0322a85 | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11678 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11679 | |
d50284c4 | 11680 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 11681 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11683 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11684 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
11685 | $as_echo_n "(cached) " >&6 |
11686 | else | |
d50284c4 | 11687 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11688 | lt_cv_dlopen_self_static=cross |
11689 | else | |
11690 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11691 | lt_status=$lt_dlunknown | |
11692 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11693 | #line $LINENO "configure" |
8d138742 | 11694 | #include "confdefs.h" |
d9898ee8 | 11695 | |
8d138742 CE |
11696 | #if HAVE_DLFCN_H |
11697 | #include <dlfcn.h> | |
11698 | #endif | |
d9898ee8 | 11699 | |
8d138742 | 11700 | #include <stdio.h> |
d9898ee8 | 11701 | |
8d138742 CE |
11702 | #ifdef RTLD_GLOBAL |
11703 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11704 | #else | |
11705 | # ifdef DL_GLOBAL | |
11706 | # define LT_DLGLOBAL DL_GLOBAL | |
11707 | # else | |
11708 | # define LT_DLGLOBAL 0 | |
11709 | # endif | |
11710 | #endif | |
d9898ee8 | 11711 | |
8d138742 CE |
11712 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11713 | find out it does not work in some platform. */ | |
11714 | #ifndef LT_DLLAZY_OR_NOW | |
11715 | # ifdef RTLD_LAZY | |
11716 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11717 | # else | |
11718 | # ifdef DL_LAZY | |
11719 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11720 | # else | |
11721 | # ifdef RTLD_NOW | |
11722 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11723 | # else | |
11724 | # ifdef DL_NOW | |
11725 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11726 | # else | |
11727 | # define LT_DLLAZY_OR_NOW 0 | |
11728 | # endif | |
11729 | # endif | |
11730 | # endif | |
11731 | # endif | |
11732 | #endif | |
d9898ee8 | 11733 | |
d50284c4 | 11734 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11735 | correspondingly for the symbols needed. */ |
d50284c4 | 11736 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11737 | int fnord () __attribute__((visibility("default"))); |
11738 | #endif | |
11739 | ||
11740 | int fnord () { return 42; } | |
8d138742 CE |
11741 | int main () |
11742 | { | |
11743 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11744 | int status = $lt_dlunknown; | |
d9898ee8 | 11745 | |
8d138742 CE |
11746 | if (self) |
11747 | { | |
11748 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11749 | else |
11750 | { | |
11751 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11752 | else puts (dlerror ()); | |
11753 | } | |
8d138742 CE |
11754 | /* dlclose (self); */ |
11755 | } | |
11756 | else | |
11757 | puts (dlerror ()); | |
d9898ee8 | 11758 | |
8d138742 CE |
11759 | return status; |
11760 | } | |
11761 | _LT_EOF | |
b0322a85 | 11762 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11763 | (eval $ac_link) 2>&5 |
11764 | ac_status=$? | |
b0322a85 | 11765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11766 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11767 | (./conftest; exit; ) >&5 2>/dev/null |
11768 | lt_status=$? | |
11769 | case x$lt_status in | |
11770 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11771 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11772 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11773 | esac | |
11774 | else : | |
11775 | # compilation failed | |
11776 | lt_cv_dlopen_self_static=no | |
11777 | fi | |
11778 | fi | |
11779 | rm -fr conftest* | |
d9898ee8 | 11780 | |
d9898ee8 | 11781 | |
8d138742 | 11782 | fi |
b0322a85 | 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11784 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11785 | fi | |
d9898ee8 | 11786 | |
d50284c4 CE |
11787 | CPPFLAGS=$save_CPPFLAGS |
11788 | LDFLAGS=$save_LDFLAGS | |
11789 | LIBS=$save_LIBS | |
8d138742 CE |
11790 | ;; |
11791 | esac | |
d9898ee8 | 11792 | |
8d138742 CE |
11793 | case $lt_cv_dlopen_self in |
11794 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11795 | *) enable_dlopen_self=unknown ;; | |
11796 | esac | |
d9898ee8 | 11797 | |
8d138742 CE |
11798 | case $lt_cv_dlopen_self_static in |
11799 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11800 | *) enable_dlopen_self_static=unknown ;; | |
11801 | esac | |
11802 | fi | |
d9898ee8 | 11803 | |
d9898ee8 | 11804 | |
d9898ee8 | 11805 | |
d9898ee8 | 11806 | |
d9898ee8 | 11807 | |
d9898ee8 | 11808 | |
d9898ee8 | 11809 | |
d9898ee8 | 11810 | |
d9898ee8 | 11811 | |
d9898ee8 | 11812 | |
d9898ee8 | 11813 | |
d9898ee8 | 11814 | |
d9898ee8 | 11815 | |
d9898ee8 | 11816 | |
d9898ee8 | 11817 | |
d9898ee8 | 11818 | |
d9898ee8 | 11819 | |
8d138742 CE |
11820 | striplib= |
11821 | old_striplib= | |
b0322a85 | 11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11823 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11824 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11825 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11826 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11828 | $as_echo "yes" >&6; } |
11829 | else | |
11830 | # FIXME - insert some real tests, host_os isn't really good enough | |
11831 | case $host_os in | |
11832 | darwin*) | |
d50284c4 | 11833 | if test -n "$STRIP"; then |
8d138742 CE |
11834 | striplib="$STRIP -x" |
11835 | old_striplib="$STRIP -S" | |
b0322a85 | 11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11837 | $as_echo "yes" >&6; } |
11838 | else | |
b0322a85 | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11840 | $as_echo "no" >&6; } |
11841 | fi | |
11842 | ;; | |
11843 | *) | |
b0322a85 | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11845 | $as_echo "no" >&6; } |
11846 | ;; | |
11847 | esac | |
11848 | fi | |
d9898ee8 | 11849 | |
d9898ee8 | 11850 | |
d9898ee8 | 11851 | |
d9898ee8 | 11852 | |
d9898ee8 | 11853 | |
d9898ee8 | 11854 | |
d9898ee8 | 11855 | |
d9898ee8 | 11856 | |
d9898ee8 | 11857 | |
d9898ee8 | 11858 | |
d9898ee8 | 11859 | |
d9898ee8 | 11860 | |
d50284c4 | 11861 | # Report what library types will actually be built |
b0322a85 | 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11863 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 11865 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 11866 | |
b0322a85 | 11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 11868 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 11869 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 11870 | |
8d138742 CE |
11871 | # On AIX, shared libraries and static libraries use the same namespace, and |
11872 | # are all built from PIC. | |
11873 | case $host_os in | |
11874 | aix3*) | |
d50284c4 | 11875 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
11876 | if test -n "$RANLIB"; then |
11877 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11878 | postinstall_cmds='$RANLIB $lib' | |
11879 | fi | |
11880 | ;; | |
d9898ee8 | 11881 | |
8d138742 | 11882 | aix[4-9]*) |
d50284c4 CE |
11883 | if test ia64 != "$host_cpu"; then |
11884 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
11885 | yes,aix,yes) ;; # shared object as lib.so file only | |
11886 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
11887 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
11888 | esac | |
8d138742 CE |
11889 | fi |
11890 | ;; | |
11891 | esac | |
b0322a85 | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 11893 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 11894 | |
b0322a85 | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11896 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11897 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 11898 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 11900 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 11901 | |
11902 | ||
d9898ee8 | 11903 | |
11904 | ||
8d138742 | 11905 | fi |
d9898ee8 | 11906 | ac_ext=c |
11907 | ac_cpp='$CPP $CPPFLAGS' | |
11908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11911 | ||
d50284c4 | 11912 | CC=$lt_save_CC |
d9898ee8 | 11913 | |
d9898ee8 | 11914 | |
d9898ee8 | 11915 | |
11916 | ||
d9898ee8 | 11917 | |
d9898ee8 | 11918 | |
d9898ee8 | 11919 | |
d9898ee8 | 11920 | |
d9898ee8 | 11921 | |
d9898ee8 | 11922 | |
d9898ee8 | 11923 | |
d9898ee8 | 11924 | |
11925 | ||
b0322a85 CE |
11926 | |
11927 | ||
8d138742 | 11928 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11929 | |
d9898ee8 | 11930 | |
11931 | ||
d9898ee8 | 11932 | |
8d138742 | 11933 | # Only expand once: |
d9898ee8 | 11934 | |
d9898ee8 | 11935 | |
d9898ee8 | 11936 | |
8d138742 CE |
11937 | if test "$GCC" = yes |
11938 | then | |
11939 | CFLAGS="-Wall $CFLAGS" | |
11940 | fi | |
d9898ee8 | 11941 | |
8d138742 | 11942 | CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.." |
d9898ee8 | 11943 | |
d9898ee8 | 11944 | |
b0322a85 | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 11946 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 11947 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
11948 | $as_echo_n "(cached) " >&6 |
11949 | else | |
b0322a85 | 11950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11951 | /* end confdefs.h. */ |
11952 | #include <stdlib.h> | |
11953 | #include <stdarg.h> | |
11954 | #include <string.h> | |
11955 | #include <float.h> | |
d9898ee8 | 11956 | |
8d138742 CE |
11957 | int |
11958 | main () | |
11959 | { | |
d9898ee8 | 11960 | |
b0322a85 CE |
11961 | ; |
11962 | return 0; | |
11963 | } | |
11964 | _ACEOF | |
11965 | if ac_fn_c_try_compile "$LINENO"; then : | |
8d138742 CE |
11966 | ac_cv_header_stdc=yes |
11967 | else | |
b0322a85 | 11968 | ac_cv_header_stdc=no |
8d138742 | 11969 | fi |
8d138742 | 11970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11971 | |
8d138742 CE |
11972 | if test $ac_cv_header_stdc = yes; then |
11973 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 11974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11975 | /* end confdefs.h. */ |
11976 | #include <string.h> | |
d9898ee8 | 11977 | |
8d138742 CE |
11978 | _ACEOF |
11979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
11980 | $EGREP "memchr" >/dev/null 2>&1; then : |
11981 | ||
8d138742 CE |
11982 | else |
11983 | ac_cv_header_stdc=no | |
11984 | fi | |
11985 | rm -f conftest* | |
d9898ee8 | 11986 | |
8d138742 | 11987 | fi |
d9898ee8 | 11988 | |
8d138742 CE |
11989 | if test $ac_cv_header_stdc = yes; then |
11990 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 11991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11992 | /* end confdefs.h. */ |
11993 | #include <stdlib.h> | |
d9898ee8 | 11994 | |
8d138742 CE |
11995 | _ACEOF |
11996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
11997 | $EGREP "free" >/dev/null 2>&1; then : |
11998 | ||
8d138742 CE |
11999 | else |
12000 | ac_cv_header_stdc=no | |
12001 | fi | |
12002 | rm -f conftest* | |
d9898ee8 | 12003 | |
8d138742 | 12004 | fi |
d9898ee8 | 12005 | |
8d138742 CE |
12006 | if test $ac_cv_header_stdc = yes; then |
12007 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 12008 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12009 | : |
12010 | else | |
b0322a85 | 12011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12012 | /* end confdefs.h. */ |
12013 | #include <ctype.h> | |
12014 | #include <stdlib.h> | |
12015 | #if ((' ' & 0x0FF) == 0x020) | |
12016 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12017 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12018 | #else | |
12019 | # define ISLOWER(c) \ | |
12020 | (('a' <= (c) && (c) <= 'i') \ | |
12021 | || ('j' <= (c) && (c) <= 'r') \ | |
12022 | || ('s' <= (c) && (c) <= 'z')) | |
12023 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12024 | #endif | |
d9898ee8 | 12025 | |
8d138742 CE |
12026 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12027 | int | |
12028 | main () | |
12029 | { | |
12030 | int i; | |
12031 | for (i = 0; i < 256; i++) | |
12032 | if (XOR (islower (i), ISLOWER (i)) | |
12033 | || toupper (i) != TOUPPER (i)) | |
12034 | return 2; | |
12035 | return 0; | |
12036 | } | |
12037 | _ACEOF | |
b0322a85 | 12038 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12039 | |
b0322a85 CE |
12040 | else |
12041 | ac_cv_header_stdc=no | |
8d138742 | 12042 | fi |
b0322a85 CE |
12043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12044 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 12045 | fi |
d9898ee8 | 12046 | |
8d138742 CE |
12047 | fi |
12048 | fi | |
b0322a85 | 12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
12050 | $as_echo "$ac_cv_header_stdc" >&6; } |
12051 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 12052 | |
b0322a85 | 12053 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 12054 | |
8d138742 | 12055 | fi |
d9898ee8 | 12056 | |
d9898ee8 | 12057 | |
b0322a85 | 12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 12059 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 12060 | if ${ac_cv_c_const+:} false; then : |
8d138742 CE |
12061 | $as_echo_n "(cached) " >&6 |
12062 | else | |
b0322a85 | 12063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12064 | /* end confdefs.h. */ |
d9898ee8 | 12065 | |
8d138742 CE |
12066 | int |
12067 | main () | |
12068 | { | |
b0322a85 | 12069 | |
8d138742 | 12070 | #ifndef __cplusplus |
b0322a85 | 12071 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 12072 | typedef int charset[2]; |
b0322a85 | 12073 | const charset cs = { 0, 0 }; |
8d138742 CE |
12074 | /* SunOS 4.1.1 cc rejects this. */ |
12075 | char const *const *pcpcc; | |
12076 | char **ppc; | |
12077 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12078 | struct point {int x, y;}; | |
12079 | static struct point const zero = {0,0}; | |
12080 | /* AIX XL C 1.02.0.0 rejects this. | |
12081 | It does not let you subtract one const X* pointer from another in | |
12082 | an arm of an if-expression whose if-part is not a constant | |
12083 | expression */ | |
12084 | const char *g = "string"; | |
12085 | pcpcc = &g + (g ? g-g : 0); | |
12086 | /* HPUX 7.0 cc rejects these. */ | |
12087 | ++pcpcc; | |
12088 | ppc = (char**) pcpcc; | |
12089 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
12090 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
12091 | char tx; | |
12092 | char *t = &tx; | |
8d138742 | 12093 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
d9898ee8 | 12094 | |
8d138742 CE |
12095 | *t++ = 0; |
12096 | if (s) return 0; | |
12097 | } | |
12098 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12099 | int x[] = {25, 17}; | |
12100 | const int *foo = &x[0]; | |
12101 | ++foo; | |
12102 | } | |
12103 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12104 | typedef const int *iptr; | |
12105 | iptr p = 0; | |
12106 | ++p; | |
12107 | } | |
b0322a85 | 12108 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 12109 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
12110 | struct s { int j; const int *ap[3]; } bx; |
12111 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
12112 | } |
12113 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12114 | const int foo = 10; | |
12115 | if (!foo) return 0; | |
12116 | } | |
12117 | return !cs[0] && !zero.x; | |
12118 | #endif | |
d9898ee8 | 12119 | |
8d138742 CE |
12120 | ; |
12121 | return 0; | |
12122 | } | |
12123 | _ACEOF | |
b0322a85 | 12124 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12125 | ac_cv_c_const=yes |
12126 | else | |
b0322a85 | 12127 | ac_cv_c_const=no |
8d138742 | 12128 | fi |
8d138742 CE |
12129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12130 | fi | |
b0322a85 | 12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
12132 | $as_echo "$ac_cv_c_const" >&6; } |
12133 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 12134 | |
b0322a85 | 12135 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 12136 | |
8d138742 | 12137 | fi |
d9898ee8 | 12138 | |
b0322a85 CE |
12139 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
12140 | if test "x$ac_cv_type_size_t" = xyes; then : | |
d9898ee8 | 12141 | |
8d138742 | 12142 | else |
d9898ee8 | 12143 | |
8d138742 CE |
12144 | cat >>confdefs.h <<_ACEOF |
12145 | #define size_t unsigned int | |
12146 | _ACEOF | |
d9898ee8 | 12147 | |
8d138742 | 12148 | fi |
d9898ee8 | 12149 | |
d9898ee8 | 12150 | |
d9898ee8 | 12151 | |
d9898ee8 | 12152 | |
8d138742 | 12153 | TESTPROGS="" |
d9898ee8 | 12154 | |
8d138742 | 12155 | hmac_list="" |
d9898ee8 | 12156 | |
8d138742 CE |
12157 | hashlibs="" |
12158 | if test -d ${srcdir}/../md5 | |
12159 | then | |
12160 | TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}" | |
12161 | hmac_list="$hmac_list &hmac_md5," | |
12162 | hashlibs="$hashlibs ../md5/libmd5.la" | |
12163 | fi | |
d9898ee8 | 12164 | |
8d138742 CE |
12165 | if test -d ${srcdir}/../sha1 |
12166 | then | |
12167 | TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}" | |
12168 | hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, " | |
12169 | hashlibs="$hashlibs ../sha1/libsha1.la" | |
12170 | fi | |
d9898ee8 | 12171 | |
d9898ee8 | 12172 | |
8d138742 | 12173 | hmac_list="$hmac_list 0" |
d9898ee8 | 12174 | |
d9898ee8 | 12175 | |
d9898ee8 | 12176 | |
8d138742 CE |
12177 | cat >>confdefs.h <<_ACEOF |
12178 | #define HMAC_LIST $hmac_list | |
12179 | _ACEOF | |
d9898ee8 | 12180 | |
d9898ee8 | 12181 | |
8d138742 | 12182 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 12183 | |
8d138742 CE |
12184 | cat >confcache <<\_ACEOF |
12185 | # This file is a shell script that caches the results of configure | |
12186 | # tests run on this system so they can be shared between configure | |
12187 | # scripts and configure runs, see configure's option --config-cache. | |
12188 | # It is not useful on other systems. If it contains results you don't | |
12189 | # want to keep, you may remove or edit it. | |
12190 | # | |
12191 | # config.status only pays attention to the cache file if you give it | |
12192 | # the --recheck option to rerun configure. | |
12193 | # | |
12194 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12195 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12196 | # following values. | |
d9898ee8 | 12197 | |
8d138742 | 12198 | _ACEOF |
d9898ee8 | 12199 | |
8d138742 CE |
12200 | # The following way of writing the cache mishandles newlines in values, |
12201 | # but we know of no workaround that is simple, portable, and efficient. | |
12202 | # So, we kill variables containing newlines. | |
12203 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12204 | # and sets the high bit in the cache file unless we assign to the vars. | |
12205 | ( | |
12206 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12207 | eval ac_val=\$$ac_var | |
12208 | case $ac_val in #( | |
12209 | *${as_nl}*) | |
12210 | case $ac_var in #( | |
b0322a85 | 12211 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12212 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12213 | esac | |
12214 | case $ac_var in #( | |
12215 | _ | IFS | as_nl) ;; #( | |
12216 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12217 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12218 | esac ;; |
12219 | esac | |
12220 | done | |
d9898ee8 | 12221 | |
8d138742 CE |
12222 | (set) 2>&1 | |
12223 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12224 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12225 | # `set' does not quote correctly, so add quotes: double-quote |
12226 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12227 | sed -n \ |
12228 | "s/'/'\\\\''/g; | |
12229 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12230 | ;; #( | |
12231 | *) | |
12232 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12233 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12234 | ;; | |
12235 | esac | | |
12236 | sort | |
12237 | ) | | |
12238 | sed ' | |
12239 | /^ac_cv_env_/b end | |
12240 | t clear | |
12241 | :clear | |
12242 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12243 | t end | |
12244 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12245 | :end' >>confcache | |
12246 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12247 | if test -w "$cache_file"; then | |
b0322a85 CE |
12248 | if test "x$cache_file" != "x/dev/null"; then |
12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12250 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12251 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12252 | cat confcache >"$cache_file" | |
12253 | else | |
12254 | case $cache_file in #( | |
12255 | */* | ?:*) | |
12256 | mv -f confcache "$cache_file"$$ && | |
12257 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12258 | *) | |
12259 | mv -f confcache "$cache_file" ;; | |
12260 | esac | |
12261 | fi | |
12262 | fi | |
8d138742 | 12263 | else |
b0322a85 | 12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
12265 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12266 | fi | |
12267 | fi | |
12268 | rm -f confcache | |
d9898ee8 | 12269 | |
8d138742 CE |
12270 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12271 | # Let make expand exec_prefix. | |
12272 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 12273 | |
8d138742 | 12274 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 12275 | |
8d138742 CE |
12276 | ac_libobjs= |
12277 | ac_ltlibobjs= | |
d50284c4 | 12278 | U= |
8d138742 CE |
12279 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12280 | # 1. Remove the extension, and $U if already installed. | |
12281 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12282 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12283 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12284 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12285 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12286 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12287 | done |
12288 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 12289 | |
8d138742 | 12290 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 12291 | |
d9898ee8 | 12292 | |
b0322a85 CE |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12294 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12295 | if test -n "$am_sleep_pid"; then | |
12296 | # Hide warnings about reused PIDs. | |
12297 | wait $am_sleep_pid 2>/dev/null | |
12298 | fi | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12300 | $as_echo "done" >&6; } | |
8d138742 CE |
12301 | if test -n "$EXEEXT"; then |
12302 | am__EXEEXT_TRUE= | |
12303 | am__EXEEXT_FALSE='#' | |
12304 | else | |
12305 | am__EXEEXT_TRUE='#' | |
12306 | am__EXEEXT_FALSE= | |
12307 | fi | |
d9898ee8 | 12308 | |
8d138742 | 12309 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
12310 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12312 | fi |
12313 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
12314 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 | 12316 | fi |
d9898ee8 | 12317 | |
b0322a85 | 12318 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
12319 | ac_write_fail=0 |
12320 | ac_clean_files_save=$ac_clean_files | |
12321 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 12323 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
12324 | as_write_fail=0 |
12325 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
12326 | #! $SHELL |
12327 | # Generated by $as_me. | |
12328 | # Run this file to recreate the current configuration. | |
12329 | # Compiler output produced by configure, useful for debugging | |
12330 | # configure, is in config.log if it exists. | |
d9898ee8 | 12331 | |
8d138742 CE |
12332 | debug=false |
12333 | ac_cs_recheck=false | |
12334 | ac_cs_silent=false | |
d9898ee8 | 12335 | |
b0322a85 CE |
12336 | SHELL=\${CONFIG_SHELL-$SHELL} |
12337 | export SHELL | |
12338 | _ASEOF | |
12339 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12340 | ## -------------------- ## | |
12341 | ## M4sh Initialization. ## | |
12342 | ## -------------------- ## | |
d9898ee8 | 12343 | |
8d138742 CE |
12344 | # Be more Bourne compatible |
12345 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 12346 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
12347 | emulate sh |
12348 | NULLCMD=: | |
12349 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12350 | # is contrary to our usage. Disable this feature. | |
12351 | alias -g '${1+"$@"}'='"$@"' | |
12352 | setopt NO_GLOB_SUBST | |
12353 | else | |
b0322a85 CE |
12354 | case `(set -o) 2>/dev/null` in #( |
12355 | *posix*) : | |
12356 | set -o posix ;; #( | |
12357 | *) : | |
12358 | ;; | |
8d138742 | 12359 | esac |
8d138742 | 12360 | fi |
d9898ee8 | 12361 | |
d9898ee8 | 12362 | |
8d138742 CE |
12363 | as_nl=' |
12364 | ' | |
12365 | export as_nl | |
12366 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12367 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12368 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12369 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12370 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12371 | # but without wasting forks for bash or zsh. | |
12372 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12373 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12374 | as_echo='print -r --' | |
12375 | as_echo_n='print -rn --' | |
12376 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12377 | as_echo='printf %s\n' |
12378 | as_echo_n='printf %s' | |
12379 | else | |
12380 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12381 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12382 | as_echo_n='/usr/ucb/echo -n' | |
12383 | else | |
12384 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12385 | as_echo_n_body='eval | |
12386 | arg=$1; | |
b0322a85 | 12387 | case $arg in #( |
8d138742 CE |
12388 | *"$as_nl"*) |
12389 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12390 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12391 | esac; | |
12392 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12393 | ' | |
12394 | export as_echo_n_body | |
12395 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12396 | fi | |
12397 | export as_echo_body | |
12398 | as_echo='sh -c $as_echo_body as_echo' | |
12399 | fi | |
d9898ee8 | 12400 | |
8d138742 CE |
12401 | # The user is always right. |
12402 | if test "${PATH_SEPARATOR+set}" != set; then | |
12403 | PATH_SEPARATOR=: | |
12404 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12405 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12406 | PATH_SEPARATOR=';' | |
12407 | } | |
12408 | fi | |
d9898ee8 | 12409 | |
d9898ee8 | 12410 | |
8d138742 CE |
12411 | # IFS |
12412 | # We need space, tab and new line, in precisely that order. Quoting is | |
12413 | # there to prevent editors from complaining about space-tab. | |
12414 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12415 | # splitting by setting IFS to empty value.) | |
12416 | IFS=" "" $as_nl" | |
d9898ee8 | 12417 | |
8d138742 | 12418 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
12419 | as_myself= |
12420 | case $0 in #(( | |
8d138742 CE |
12421 | *[\\/]* ) as_myself=$0 ;; |
12422 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12423 | for as_dir in $PATH | |
12424 | do | |
12425 | IFS=$as_save_IFS | |
12426 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12427 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12428 | done | |
8d138742 | 12429 | IFS=$as_save_IFS |
d9898ee8 | 12430 | |
8d138742 CE |
12431 | ;; |
12432 | esac | |
12433 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12434 | # in which case we are not to be found in the path. | |
12435 | if test "x$as_myself" = x; then | |
12436 | as_myself=$0 | |
12437 | fi | |
12438 | if test ! -f "$as_myself"; then | |
12439 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 12440 | exit 1 |
8d138742 | 12441 | fi |
d9898ee8 | 12442 | |
b0322a85 CE |
12443 | # Unset variables that we do not need and which cause bugs (e.g. in |
12444 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12445 | # suppresses any "Segmentation fault" message there. '((' could | |
12446 | # trigger a bug in pdksh 5.2.14. | |
12447 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12448 | do eval test x\${$as_var+set} = xset \ | |
12449 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
12450 | done |
12451 | PS1='$ ' | |
12452 | PS2='> ' | |
12453 | PS4='+ ' | |
d9898ee8 | 12454 | |
8d138742 CE |
12455 | # NLS nuisances. |
12456 | LC_ALL=C | |
12457 | export LC_ALL | |
12458 | LANGUAGE=C | |
12459 | export LANGUAGE | |
d9898ee8 | 12460 | |
b0322a85 CE |
12461 | # CDPATH. |
12462 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12463 | ||
12464 | ||
12465 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12466 | # ---------------------------------------- | |
12467 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12468 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12469 | # script with STATUS, using 1 if that was 0. | |
12470 | as_fn_error () | |
12471 | { | |
12472 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12473 | if test "$4"; then | |
12474 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12475 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12476 | fi | |
12477 | $as_echo "$as_me: error: $2" >&2 | |
12478 | as_fn_exit $as_status | |
12479 | } # as_fn_error | |
12480 | ||
12481 | ||
12482 | # as_fn_set_status STATUS | |
12483 | # ----------------------- | |
12484 | # Set $? to STATUS, without forking. | |
12485 | as_fn_set_status () | |
12486 | { | |
12487 | return $1 | |
12488 | } # as_fn_set_status | |
12489 | ||
12490 | # as_fn_exit STATUS | |
12491 | # ----------------- | |
12492 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12493 | as_fn_exit () | |
12494 | { | |
12495 | set +e | |
12496 | as_fn_set_status $1 | |
12497 | exit $1 | |
12498 | } # as_fn_exit | |
12499 | ||
12500 | # as_fn_unset VAR | |
12501 | # --------------- | |
12502 | # Portably unset VAR. | |
12503 | as_fn_unset () | |
12504 | { | |
12505 | { eval $1=; unset $1;} | |
12506 | } | |
12507 | as_unset=as_fn_unset | |
12508 | # as_fn_append VAR VALUE | |
12509 | # ---------------------- | |
12510 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12511 | # advantage of any shell optimizations that allow amortized linear growth over | |
12512 | # repeated appends, instead of the typical quadratic growth present in naive | |
12513 | # implementations. | |
12514 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12515 | eval 'as_fn_append () | |
12516 | { | |
12517 | eval $1+=\$2 | |
12518 | }' | |
12519 | else | |
12520 | as_fn_append () | |
12521 | { | |
12522 | eval $1=\$$1\$2 | |
12523 | } | |
12524 | fi # as_fn_append | |
12525 | ||
12526 | # as_fn_arith ARG... | |
12527 | # ------------------ | |
12528 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12529 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12530 | # must be portable across $(()) and expr. | |
12531 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12532 | eval 'as_fn_arith () | |
12533 | { | |
12534 | as_val=$(( $* )) | |
12535 | }' | |
12536 | else | |
12537 | as_fn_arith () | |
12538 | { | |
12539 | as_val=`expr "$@" || test $? -eq 1` | |
12540 | } | |
12541 | fi # as_fn_arith | |
12542 | ||
12543 | ||
8d138742 CE |
12544 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12545 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12546 | as_expr=expr | |
12547 | else | |
12548 | as_expr=false | |
12549 | fi | |
d9898ee8 | 12550 | |
8d138742 CE |
12551 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12552 | as_basename=basename | |
12553 | else | |
12554 | as_basename=false | |
12555 | fi | |
d9898ee8 | 12556 | |
b0322a85 CE |
12557 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12558 | as_dirname=dirname | |
12559 | else | |
12560 | as_dirname=false | |
12561 | fi | |
d9898ee8 | 12562 | |
8d138742 CE |
12563 | as_me=`$as_basename -- "$0" || |
12564 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12565 | X"$0" : 'X\(//\)$' \| \ | |
12566 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12567 | $as_echo X/"$0" | | |
12568 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12569 | s//\1/ | |
12570 | q | |
12571 | } | |
12572 | /^X\/\(\/\/\)$/{ | |
12573 | s//\1/ | |
12574 | q | |
12575 | } | |
12576 | /^X\/\(\/\).*/{ | |
12577 | s//\1/ | |
12578 | q | |
12579 | } | |
12580 | s/.*/./; q'` | |
d9898ee8 | 12581 | |
b0322a85 CE |
12582 | # Avoid depending upon Character Ranges. |
12583 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12584 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12585 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12586 | as_cr_digits='0123456789' | |
12587 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 12588 | |
8d138742 | 12589 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 12590 | case `echo -n x` in #((((( |
8d138742 | 12591 | -n*) |
b0322a85 | 12592 | case `echo 'xy\c'` in |
8d138742 | 12593 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
12594 | xy) ECHO_C='\c';; |
12595 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12596 | ECHO_T=' ';; | |
8d138742 CE |
12597 | esac;; |
12598 | *) | |
12599 | ECHO_N='-n';; | |
12600 | esac | |
b0322a85 CE |
12601 | |
12602 | rm -f conf$$ conf$$.exe conf$$.file | |
12603 | if test -d conf$$.dir; then | |
12604 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 12605 | else |
b0322a85 CE |
12606 | rm -f conf$$.dir |
12607 | mkdir conf$$.dir 2>/dev/null | |
12608 | fi | |
12609 | if (echo >conf$$.file) 2>/dev/null; then | |
12610 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12611 | as_ln_s='ln -s' | |
12612 | # ... but there are two gotchas: | |
12613 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12614 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12615 | # In both cases, we have to default to `cp -pR'. | |
12616 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12617 | as_ln_s='cp -pR' | |
12618 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12619 | as_ln_s=ln | |
12620 | else | |
12621 | as_ln_s='cp -pR' | |
12622 | fi | |
12623 | else | |
12624 | as_ln_s='cp -pR' | |
8d138742 | 12625 | fi |
b0322a85 CE |
12626 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12627 | rmdir conf$$.dir 2>/dev/null | |
12628 | ||
12629 | ||
12630 | # as_fn_mkdir_p | |
12631 | # ------------- | |
12632 | # Create "$as_dir" as a directory, including parents if necessary. | |
12633 | as_fn_mkdir_p () | |
12634 | { | |
12635 | ||
12636 | case $as_dir in #( | |
12637 | -*) as_dir=./$as_dir;; | |
12638 | esac | |
12639 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12640 | as_dirs= | |
12641 | while :; do | |
12642 | case $as_dir in #( | |
12643 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12644 | *) as_qdir=$as_dir;; | |
12645 | esac | |
12646 | as_dirs="'$as_qdir' $as_dirs" | |
12647 | as_dir=`$as_dirname -- "$as_dir" || | |
12648 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12649 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12650 | X"$as_dir" : 'X\(//\)$' \| \ | |
12651 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12652 | $as_echo X"$as_dir" | | |
12653 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12654 | s//\1/ | |
12655 | q | |
12656 | } | |
12657 | /^X\(\/\/\)[^/].*/{ | |
12658 | s//\1/ | |
12659 | q | |
12660 | } | |
12661 | /^X\(\/\/\)$/{ | |
12662 | s//\1/ | |
12663 | q | |
12664 | } | |
12665 | /^X\(\/\).*/{ | |
12666 | s//\1/ | |
12667 | q | |
12668 | } | |
12669 | s/.*/./; q'` | |
12670 | test -d "$as_dir" && break | |
12671 | done | |
12672 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12673 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
d9898ee8 | 12674 | |
d9898ee8 | 12675 | |
b0322a85 | 12676 | } # as_fn_mkdir_p |
8d138742 | 12677 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 12678 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
12679 | else |
12680 | test -d ./-p && rmdir ./-p | |
12681 | as_mkdir_p=false | |
12682 | fi | |
d9898ee8 | 12683 | |
b0322a85 CE |
12684 | |
12685 | # as_fn_executable_p FILE | |
12686 | # ----------------------- | |
12687 | # Test if FILE is an executable regular file. | |
12688 | as_fn_executable_p () | |
12689 | { | |
12690 | test -f "$1" && test -x "$1" | |
12691 | } # as_fn_executable_p | |
12692 | as_test_x='test -x' | |
12693 | as_executable_p=as_fn_executable_p | |
8d138742 CE |
12694 | |
12695 | # Sed expression to map a string onto a valid CPP name. | |
12696 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12697 | |
8d138742 CE |
12698 | # Sed expression to map a string onto a valid variable name. |
12699 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12700 | |
12701 | ||
8d138742 | 12702 | exec 6>&1 |
b0322a85 CE |
12703 | ## ----------------------------------- ## |
12704 | ## Main body of $CONFIG_STATUS script. ## | |
12705 | ## ----------------------------------- ## | |
12706 | _ASEOF | |
12707 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 12708 | |
b0322a85 CE |
12709 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12710 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
12711 | # report actual input values of CONFIG_FILES etc. instead of their |
12712 | # values after options handling. | |
12713 | ac_log=" | |
12714 | This file was extended by libhmac $as_me 1.00, which was | |
b0322a85 | 12715 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
12716 | |
12717 | CONFIG_FILES = $CONFIG_FILES | |
12718 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12719 | CONFIG_LINKS = $CONFIG_LINKS | |
12720 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12721 | $ $0 $@ | |
d9898ee8 | 12722 | |
8d138742 CE |
12723 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12724 | " | |
d9898ee8 | 12725 | |
8d138742 | 12726 | _ACEOF |
d9898ee8 | 12727 | |
8d138742 CE |
12728 | case $ac_config_files in *" |
12729 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12730 | esac | |
d9898ee8 | 12731 | |
8d138742 CE |
12732 | case $ac_config_headers in *" |
12733 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12734 | esac | |
d9898ee8 | 12735 | |
12736 | ||
8d138742 CE |
12737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12738 | # Files that config.status was made for. | |
12739 | config_files="$ac_config_files" | |
12740 | config_headers="$ac_config_headers" | |
12741 | config_commands="$ac_config_commands" | |
d9898ee8 | 12742 | |
8d138742 | 12743 | _ACEOF |
d9898ee8 | 12744 | |
8d138742 CE |
12745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12746 | ac_cs_usage="\ | |
b0322a85 CE |
12747 | \`$as_me' instantiates files and other configuration actions |
12748 | from templates according to the current configuration. Unless the files | |
12749 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 12750 | |
b0322a85 | 12751 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 12752 | |
8d138742 CE |
12753 | -h, --help print this help, then exit |
12754 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 12755 | --config print configuration, then exit |
8d138742 CE |
12756 | -q, --quiet, --silent |
12757 | do not print progress messages | |
12758 | -d, --debug don't remove temporary files | |
12759 | --recheck update $as_me by reconfiguring in the same conditions | |
12760 | --file=FILE[:TEMPLATE] | |
12761 | instantiate the configuration file FILE | |
12762 | --header=FILE[:TEMPLATE] | |
12763 | instantiate the configuration header FILE | |
d9898ee8 | 12764 | |
8d138742 CE |
12765 | Configuration files: |
12766 | $config_files | |
d9898ee8 | 12767 | |
8d138742 CE |
12768 | Configuration headers: |
12769 | $config_headers | |
d9898ee8 | 12770 | |
8d138742 CE |
12771 | Configuration commands: |
12772 | $config_commands | |
d9898ee8 | 12773 | |
b0322a85 | 12774 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 12775 | |
8d138742 CE |
12776 | _ACEOF |
12777 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 12778 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
12779 | ac_cs_version="\\ |
12780 | libhmac config.status 1.00 | |
b0322a85 CE |
12781 | configured by $0, generated by GNU Autoconf 2.69, |
12782 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 12783 | |
b0322a85 | 12784 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
12785 | This config.status script is free software; the Free Software Foundation |
12786 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 12787 | |
8d138742 CE |
12788 | ac_pwd='$ac_pwd' |
12789 | srcdir='$srcdir' | |
12790 | INSTALL='$INSTALL' | |
12791 | MKDIR_P='$MKDIR_P' | |
12792 | AWK='$AWK' | |
12793 | test -n "\$AWK" || AWK=awk | |
12794 | _ACEOF | |
d9898ee8 | 12795 | |
8d138742 CE |
12796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12797 | # The default lists apply if the user does not specify any file. | |
12798 | ac_need_defaults=: | |
12799 | while test $# != 0 | |
12800 | do | |
12801 | case $1 in | |
b0322a85 | 12802 | --*=?*) |
8d138742 CE |
12803 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12804 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12805 | ac_shift=: | |
12806 | ;; | |
b0322a85 CE |
12807 | --*=) |
12808 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12809 | ac_optarg= | |
12810 | ac_shift=: | |
12811 | ;; | |
8d138742 CE |
12812 | *) |
12813 | ac_option=$1 | |
12814 | ac_optarg=$2 | |
12815 | ac_shift=shift | |
12816 | ;; | |
12817 | esac | |
d9898ee8 | 12818 | |
8d138742 CE |
12819 | case $ac_option in |
12820 | # Handling of the options. | |
12821 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12822 | ac_cs_recheck=: ;; | |
12823 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12824 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
12825 | --config | --confi | --conf | --con | --co | --c ) |
12826 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
12827 | --debug | --debu | --deb | --de | --d | -d ) |
12828 | debug=: ;; | |
12829 | --file | --fil | --fi | --f ) | |
12830 | $ac_shift | |
12831 | case $ac_optarg in | |
12832 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 12833 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 12834 | esac |
b0322a85 | 12835 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
12836 | ac_need_defaults=false;; |
12837 | --header | --heade | --head | --hea ) | |
12838 | $ac_shift | |
12839 | case $ac_optarg in | |
12840 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12841 | esac | |
b0322a85 | 12842 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
12843 | ac_need_defaults=false;; |
12844 | --he | --h) | |
12845 | # Conflict between --help and --header | |
b0322a85 CE |
12846 | as_fn_error $? "ambiguous option: \`$1' |
12847 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
12848 | --help | --hel | -h ) |
12849 | $as_echo "$ac_cs_usage"; exit ;; | |
12850 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12851 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12852 | ac_cs_silent=: ;; | |
d9898ee8 | 12853 | |
8d138742 | 12854 | # This is an error. |
b0322a85 CE |
12855 | -*) as_fn_error $? "unrecognized option: \`$1' |
12856 | Try \`$0 --help' for more information." ;; | |
d9898ee8 | 12857 | |
b0322a85 | 12858 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 12859 | ac_need_defaults=false ;; |
d9898ee8 | 12860 | |
8d138742 CE |
12861 | esac |
12862 | shift | |
12863 | done | |
d9898ee8 | 12864 | |
8d138742 | 12865 | ac_configure_extra_args= |
d9898ee8 | 12866 | |
8d138742 CE |
12867 | if $ac_cs_silent; then |
12868 | exec 6>/dev/null | |
12869 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12870 | fi | |
d9898ee8 | 12871 | |
d9898ee8 | 12872 | _ACEOF |
8d138742 CE |
12873 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12874 | if \$ac_cs_recheck; then | |
b0322a85 | 12875 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
12876 | shift |
12877 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12878 | CONFIG_SHELL='$SHELL' | |
12879 | export CONFIG_SHELL | |
12880 | exec "\$@" | |
12881 | fi | |
d9898ee8 | 12882 | |
8d138742 CE |
12883 | _ACEOF |
12884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12885 | exec 5>>config.log | |
d9898ee8 | 12886 | { |
8d138742 CE |
12887 | echo |
12888 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12889 | ## Running $as_me. ## | |
12890 | _ASBOX | |
12891 | $as_echo "$ac_log" | |
12892 | } >&5 | |
d9898ee8 | 12893 | |
d9898ee8 | 12894 | _ACEOF |
8d138742 CE |
12895 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12896 | # | |
12897 | # INIT-COMMANDS | |
12898 | # | |
12899 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12900 | ||
12901 | ||
12902 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12903 | # if CDPATH is set. | |
12904 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12905 | ||
12906 | sed_quote_subst='$sed_quote_subst' | |
12907 | double_quote_subst='$double_quote_subst' | |
12908 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
12909 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
12910 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
12911 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
12912 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
12913 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
12914 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 12915 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
12916 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
12917 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
12918 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
12919 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
12920 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
12921 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
12922 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
12923 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
12924 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
12925 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
12926 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
12927 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
12928 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
12929 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
12930 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
12931 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
12932 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
12933 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
12934 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
12935 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
12936 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
12937 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
12938 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
12939 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12940 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12941 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
12942 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
12943 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
12944 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
12945 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
12946 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
12947 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
12948 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
12949 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
12950 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
12951 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
12952 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
12953 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
12954 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
12955 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12956 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12957 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12958 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
12959 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
12960 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
12961 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
12962 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
12963 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
12964 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 12965 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
12966 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
12967 | 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 | 12968 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
12969 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
12970 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 12971 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
12972 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
12973 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
12974 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
12975 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
12976 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
12977 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
12978 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
12979 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12980 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
12981 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12982 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12983 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12984 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12985 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12986 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12987 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12988 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12989 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12990 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12991 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12992 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12993 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12994 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12995 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12996 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12997 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12998 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
12999 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13000 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13001 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13002 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13003 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13004 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13005 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13006 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13007 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13008 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13009 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13010 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13011 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13012 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13013 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13014 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13015 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13016 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13017 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13018 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13019 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13020 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13021 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13022 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13023 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13024 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13025 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13026 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13027 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13028 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13029 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13030 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13031 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13032 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13033 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13034 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13035 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13036 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13037 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13038 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13039 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13040 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13041 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13042 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13043 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13044 | |
13045 | LTCC='$LTCC' | |
13046 | LTCFLAGS='$LTCFLAGS' | |
13047 | compiler='$compiler_DEFAULT' | |
13048 | ||
b0322a85 CE |
13049 | # A function that is used when there is no print builtin or printf. |
13050 | func_fallback_echo () | |
13051 | { | |
13052 | eval 'cat <<_LTECHO_EOF | |
13053 | \$1 | |
13054 | _LTECHO_EOF' | |
13055 | } | |
13056 | ||
8d138742 | 13057 | # Quote evaled strings. |
b0322a85 CE |
13058 | for var in SHELL \ |
13059 | ECHO \ | |
13060 | PATH_SEPARATOR \ | |
13061 | SED \ | |
8d138742 CE |
13062 | GREP \ |
13063 | EGREP \ | |
13064 | FGREP \ | |
13065 | LD \ | |
13066 | NM \ | |
13067 | LN_S \ | |
13068 | lt_SP2NL \ | |
13069 | lt_NL2SP \ | |
13070 | reload_flag \ | |
13071 | OBJDUMP \ | |
13072 | deplibs_check_method \ | |
13073 | file_magic_cmd \ | |
b0322a85 CE |
13074 | file_magic_glob \ |
13075 | want_nocaseglob \ | |
13076 | DLLTOOL \ | |
13077 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13078 | AR \ |
13079 | AR_FLAGS \ | |
b0322a85 | 13080 | archiver_list_spec \ |
8d138742 CE |
13081 | STRIP \ |
13082 | RANLIB \ | |
13083 | CC \ | |
13084 | CFLAGS \ | |
13085 | compiler \ | |
13086 | lt_cv_sys_global_symbol_pipe \ | |
13087 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13088 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13089 | lt_cv_sys_global_symbol_to_c_name_address \ |
13090 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13091 | lt_cv_nm_interface \ |
b0322a85 | 13092 | nm_file_list_spec \ |
d50284c4 | 13093 | lt_cv_truncate_bin \ |
8d138742 | 13094 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13095 | lt_prog_compiler_pic \ |
b0322a85 | 13096 | lt_prog_compiler_wl \ |
8d138742 CE |
13097 | lt_prog_compiler_static \ |
13098 | lt_cv_prog_compiler_c_o \ | |
13099 | need_locks \ | |
b0322a85 | 13100 | MANIFEST_TOOL \ |
8d138742 CE |
13101 | DSYMUTIL \ |
13102 | NMEDIT \ | |
13103 | LIPO \ | |
13104 | OTOOL \ | |
13105 | OTOOL64 \ | |
13106 | shrext_cmds \ | |
13107 | export_dynamic_flag_spec \ | |
13108 | whole_archive_flag_spec \ | |
13109 | compiler_needs_object \ | |
13110 | with_gnu_ld \ | |
13111 | allow_undefined_flag \ | |
13112 | no_undefined_flag \ | |
13113 | hardcode_libdir_flag_spec \ | |
8d138742 | 13114 | hardcode_libdir_separator \ |
8d138742 CE |
13115 | exclude_expsyms \ |
13116 | include_expsyms \ | |
13117 | file_list_spec \ | |
13118 | variables_saved_for_relink \ | |
13119 | libname_spec \ | |
13120 | library_names_spec \ | |
13121 | soname_spec \ | |
b0322a85 | 13122 | install_override_mode \ |
8d138742 CE |
13123 | finish_eval \ |
13124 | old_striplib \ | |
13125 | striplib; do | |
b0322a85 | 13126 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13127 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13128 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13129 | ;; |
13130 | *) | |
13131 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13132 | ;; | |
13133 | esac | |
13134 | done | |
d9898ee8 | 13135 | |
8d138742 CE |
13136 | # Double-quote double-evaled strings. |
13137 | for var in reload_cmds \ | |
13138 | old_postinstall_cmds \ | |
13139 | old_postuninstall_cmds \ | |
13140 | old_archive_cmds \ | |
13141 | extract_expsyms_cmds \ | |
13142 | old_archive_from_new_cmds \ | |
13143 | old_archive_from_expsyms_cmds \ | |
13144 | archive_cmds \ | |
13145 | archive_expsym_cmds \ | |
13146 | module_cmds \ | |
13147 | module_expsym_cmds \ | |
13148 | export_symbols_cmds \ | |
13149 | prelink_cmds \ | |
b0322a85 | 13150 | postlink_cmds \ |
8d138742 CE |
13151 | postinstall_cmds \ |
13152 | postuninstall_cmds \ | |
13153 | finish_cmds \ | |
13154 | sys_lib_search_path_spec \ | |
d50284c4 CE |
13155 | configure_time_dlsearch_path \ |
13156 | configure_time_lt_sys_library_path; do | |
b0322a85 | 13157 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13158 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13159 | 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 |
13160 | ;; |
13161 | *) | |
13162 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13163 | ;; | |
13164 | esac | |
13165 | done | |
dd184caf | 13166 | |
8d138742 | 13167 | ac_aux_dir='$ac_aux_dir' |
d9898ee8 | 13168 | |
d50284c4 | 13169 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13170 | # commands through without removal of \ escapes INIT. |
d50284c4 | 13171 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 13172 | setopt NO_GLOB_SUBST |
d9898ee8 | 13173 | fi |
d9898ee8 | 13174 | |
d9898ee8 | 13175 | |
8d138742 CE |
13176 | PACKAGE='$PACKAGE' |
13177 | VERSION='$VERSION' | |
8d138742 CE |
13178 | RM='$RM' |
13179 | ofile='$ofile' | |
13180 | ||
13181 | ||
13182 | ||
d9898ee8 | 13183 | |
13184 | _ACEOF | |
d9898ee8 | 13185 | |
8d138742 CE |
13186 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13187 | ||
13188 | # Handling of arguments. | |
13189 | for ac_config_target in $ac_config_targets | |
13190 | do | |
13191 | case $ac_config_target in | |
13192 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13193 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13194 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13195 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13196 | ||
b0322a85 | 13197 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
13198 | esac |
13199 | done | |
13200 | ||
13201 | ||
13202 | # If the user did not use the arguments to specify the items to instantiate, | |
13203 | # then the envvar interface is used. Set only those that are not. | |
13204 | # We use the long form for the default assignment because of an extremely | |
13205 | # bizarre bug on SunOS 4.1.3. | |
13206 | if $ac_need_defaults; then | |
13207 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13208 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13209 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
d9898ee8 | 13210 | fi |
13211 | ||
8d138742 CE |
13212 | # Have a temporary directory for convenience. Make it in the build tree |
13213 | # simply because there is no reason against having it here, and in addition, | |
13214 | # creating and moving files from /tmp can sometimes cause problems. | |
13215 | # Hook for its removal unless debugging. | |
13216 | # Note that there is a small window in which the directory will not be cleaned: | |
13217 | # after its creation but before its name has been assigned to `$tmp'. | |
13218 | $debug || | |
13219 | { | |
b0322a85 | 13220 | tmp= ac_tmp= |
8d138742 | 13221 | trap 'exit_status=$? |
b0322a85 CE |
13222 | : "${ac_tmp:=$tmp}" |
13223 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13224 | ' 0 |
b0322a85 | 13225 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
13226 | } |
13227 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13228 | |
d9898ee8 | 13229 | { |
8d138742 | 13230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b0322a85 | 13231 | test -d "$tmp" |
8d138742 CE |
13232 | } || |
13233 | { | |
13234 | tmp=./conf$$-$RANDOM | |
13235 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13236 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13237 | ac_tmp=$tmp | |
d9898ee8 | 13238 | |
8d138742 CE |
13239 | # Set up the scripts for CONFIG_FILES section. |
13240 | # No need to generate them if there are no CONFIG_FILES. | |
13241 | # This happens for instance with `./config.status config.h'. | |
13242 | if test -n "$CONFIG_FILES"; then | |
dd184caf | 13243 | |
13244 | ||
b0322a85 CE |
13245 | ac_cr=`echo X | tr X '\015'` |
13246 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13247 | # But we know of no other shell where ac_cr would be empty at this | |
13248 | # point, so we can use a bashism as a fallback. | |
13249 | if test "x$ac_cr" = x; then | |
13250 | eval ac_cr=\$\'\\r\' | |
13251 | fi | |
8d138742 CE |
13252 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13253 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13254 | ac_cs_awk_cr='\\r' | |
13255 | else | |
13256 | ac_cs_awk_cr=$ac_cr | |
d9898ee8 | 13257 | fi |
d9898ee8 | 13258 | |
b0322a85 | 13259 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 13260 | _ACEOF |
13261 | ||
d9898ee8 | 13262 | |
8d138742 CE |
13263 | { |
13264 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13265 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13266 | echo "_ACEOF" | |
13267 | } >conf$$subs.sh || | |
b0322a85 CE |
13268 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13269 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13270 | ac_delim='%!_!# ' |
13271 | for ac_last_try in false false false false false :; do | |
13272 | . ./conf$$subs.sh || | |
b0322a85 | 13273 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13274 | |
8d138742 CE |
13275 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13276 | if test $ac_delim_n = $ac_delim_num; then | |
13277 | break | |
13278 | elif $ac_last_try; then | |
b0322a85 | 13279 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
13280 | else |
13281 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13282 | fi | |
13283 | done | |
13284 | rm -f conf$$subs.sh | |
13285 | ||
13286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13287 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13288 | _ACEOF |
13289 | sed -n ' | |
13290 | h | |
13291 | s/^/S["/; s/!.*/"]=/ | |
13292 | p | |
13293 | g | |
13294 | s/^[^!]*!// | |
13295 | :repl | |
13296 | t repl | |
13297 | s/'"$ac_delim"'$// | |
13298 | t delim | |
13299 | :nl | |
13300 | h | |
b0322a85 | 13301 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13302 | t more1 |
13303 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13304 | p | |
13305 | n | |
13306 | b repl | |
13307 | :more1 | |
13308 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13309 | p | |
13310 | g | |
13311 | s/.\{148\}// | |
13312 | t nl | |
13313 | :delim | |
13314 | h | |
b0322a85 | 13315 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13316 | t more2 |
13317 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13318 | p | |
13319 | b | |
13320 | :more2 | |
13321 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13322 | p | |
13323 | g | |
13324 | s/.\{148\}// | |
13325 | t delim | |
13326 | ' <conf$$subs.awk | sed ' | |
13327 | /^[^""]/{ | |
13328 | N | |
13329 | s/\n// | |
13330 | } | |
13331 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13332 | rm -f conf$$subs.awk | |
13333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13334 | _ACAWK | |
b0322a85 | 13335 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
13336 | for (key in S) S_is_set[key] = 1 |
13337 | FS = "\a" | |
d9898ee8 | 13338 | |
8d138742 | 13339 | } |
d9898ee8 | 13340 | { |
8d138742 CE |
13341 | line = $ 0 |
13342 | nfields = split(line, field, "@") | |
13343 | substed = 0 | |
13344 | len = length(field[1]) | |
13345 | for (i = 2; i < nfields; i++) { | |
13346 | key = field[i] | |
13347 | keylen = length(key) | |
13348 | if (S_is_set[key]) { | |
13349 | value = S[key] | |
13350 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13351 | len += length(value) + length(field[++i]) | |
13352 | substed = 1 | |
13353 | } else | |
13354 | len += 1 + keylen | |
d9898ee8 | 13355 | } |
d9898ee8 | 13356 | |
8d138742 | 13357 | print line |
d9898ee8 | 13358 | } |
8d138742 CE |
13359 | |
13360 | _ACAWK | |
d9898ee8 | 13361 | _ACEOF |
8d138742 CE |
13362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13363 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13364 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 13365 | else |
8d138742 | 13366 | cat |
b0322a85 CE |
13367 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13368 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 13369 | _ACEOF |
d9898ee8 | 13370 | |
b0322a85 CE |
13371 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13372 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13373 | # trailing colons and then remove the whole line if VPATH becomes empty |
13374 | # (actually we leave an empty line to preserve line numbers). | |
13375 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13376 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13377 | h | |
13378 | s/// | |
13379 | s/^/:/ | |
13380 | s/[ ]*$/:/ | |
13381 | s/:\$(srcdir):/:/g | |
13382 | s/:\${srcdir}:/:/g | |
13383 | s/:@srcdir@:/:/g | |
13384 | s/^:*// | |
8d138742 | 13385 | s/:*$// |
b0322a85 CE |
13386 | x |
13387 | s/\(=[ ]*\).*/\1/ | |
13388 | G | |
13389 | s/\n// | |
8d138742 CE |
13390 | s/^[^=]*=[ ]*$// |
13391 | }' | |
d9898ee8 | 13392 | fi |
dd184caf | 13393 | |
8d138742 CE |
13394 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13395 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 13396 | |
8d138742 CE |
13397 | # Set up the scripts for CONFIG_HEADERS section. |
13398 | # No need to generate them if there are no CONFIG_HEADERS. | |
13399 | # This happens for instance with `./config.status Makefile'. | |
13400 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 13401 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 | 13402 | BEGIN { |
d9898ee8 | 13403 | _ACEOF |
13404 | ||
8d138742 CE |
13405 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13406 | # here-document in config.status, that substitutes the proper values into | |
13407 | # config.h.in to produce config.h. | |
d9898ee8 | 13408 | |
8d138742 CE |
13409 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13410 | # handling of long lines. | |
13411 | ac_delim='%!_!# ' | |
13412 | for ac_last_try in false false :; do | |
b0322a85 CE |
13413 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13414 | if test -z "$ac_tt"; then | |
8d138742 CE |
13415 | break |
13416 | elif $ac_last_try; then | |
b0322a85 | 13417 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
13418 | else |
13419 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13420 | fi | |
13421 | done | |
13422 | ||
13423 | # For the awk script, D is an array of macro values keyed by name, | |
13424 | # likewise P contains macro parameters if any. Preserve backslash | |
13425 | # newline sequences. | |
13426 | ||
13427 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13428 | sed -n ' | |
13429 | s/.\{148\}/&'"$ac_delim"'/g | |
13430 | t rset | |
13431 | :rset | |
13432 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13433 | t def | |
13434 | d | |
13435 | :def | |
13436 | s/\\$// | |
13437 | t bsnl | |
13438 | s/["\\]/\\&/g | |
13439 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13440 | D["\1"]=" \3"/p | |
13441 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13442 | d | |
13443 | :bsnl | |
13444 | s/["\\]/\\&/g | |
13445 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13446 | D["\1"]=" \3\\\\\\n"\\/p | |
13447 | t cont | |
13448 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13449 | t cont | |
13450 | d | |
13451 | :cont | |
13452 | n | |
13453 | s/.\{148\}/&'"$ac_delim"'/g | |
13454 | t clear | |
13455 | :clear | |
13456 | s/\\$// | |
13457 | t bsnlc | |
13458 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13459 | d | |
13460 | :bsnlc | |
13461 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13462 | b cont | |
13463 | ' <confdefs.h | sed ' | |
13464 | s/'"$ac_delim"'/"\\\ | |
13465 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13466 | ||
13467 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13468 | for (key in D) D_is_set[key] = 1 | |
13469 | FS = "\a" | |
13470 | } | |
13471 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13472 | line = \$ 0 | |
13473 | split(line, arg, " ") | |
13474 | if (arg[1] == "#") { | |
13475 | defundef = arg[2] | |
13476 | mac1 = arg[3] | |
13477 | } else { | |
13478 | defundef = substr(arg[1], 2) | |
13479 | mac1 = arg[2] | |
13480 | } | |
13481 | split(mac1, mac2, "(") #) | |
13482 | macro = mac2[1] | |
13483 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13484 | if (D_is_set[macro]) { | |
13485 | # Preserve the white space surrounding the "#". | |
13486 | print prefix "define", macro P[macro] D[macro] | |
13487 | next | |
13488 | } else { | |
13489 | # Replace #undef with comments. This is necessary, for example, | |
13490 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13491 | # on some systems where configure will not decide to define it. | |
13492 | if (defundef == "undef") { | |
13493 | print "/*", prefix defundef, macro, "*/" | |
13494 | next | |
13495 | } | |
13496 | } | |
d9898ee8 | 13497 | } |
8d138742 CE |
13498 | { print } |
13499 | _ACAWK | |
d9898ee8 | 13500 | _ACEOF |
8d138742 | 13501 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0322a85 | 13502 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 13503 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 13504 | |
dd184caf | 13505 | |
8d138742 CE |
13506 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13507 | shift | |
13508 | for ac_tag | |
13509 | do | |
13510 | case $ac_tag in | |
13511 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13512 | esac | |
13513 | case $ac_mode$ac_tag in | |
13514 | :[FHL]*:*);; | |
b0322a85 | 13515 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
13516 | :[FH]-) ac_tag=-:-;; |
13517 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13518 | esac | |
13519 | ac_save_IFS=$IFS | |
13520 | IFS=: | |
13521 | set x $ac_tag | |
13522 | IFS=$ac_save_IFS | |
13523 | shift | |
13524 | ac_file=$1 | |
13525 | shift | |
d9898ee8 | 13526 | |
8d138742 CE |
13527 | case $ac_mode in |
13528 | :L) ac_source=$1;; | |
13529 | :[FH]) | |
13530 | ac_file_inputs= | |
13531 | for ac_f | |
13532 | do | |
13533 | case $ac_f in | |
b0322a85 | 13534 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
13535 | *) # Look for the file first in the build tree, then in the source tree |
13536 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13537 | # because $ac_f cannot contain `:'. | |
13538 | test -f "$ac_f" || | |
13539 | case $ac_f in | |
13540 | [\\/$]*) false;; | |
13541 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13542 | esac || | |
b0322a85 | 13543 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
13544 | esac |
13545 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 13546 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 13547 | done |
d9898ee8 | 13548 | |
8d138742 CE |
13549 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13550 | # use $as_me), people would be surprised to read: | |
13551 | # /* config.h. Generated by config.status. */ | |
13552 | configure_input='Generated from '` | |
13553 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13554 | `' by configure.' | |
13555 | if test x"$ac_file" != x-; then | |
13556 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
13558 | $as_echo "$as_me: creating $ac_file" >&6;} |
13559 | fi | |
13560 | # Neutralize special characters interpreted by sed in replacement strings. | |
13561 | case $configure_input in #( | |
13562 | *\&* | *\|* | *\\* ) | |
13563 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13564 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13565 | *) ac_sed_conf_input=$configure_input;; | |
13566 | esac | |
13567 | ||
13568 | case $ac_tag in | |
b0322a85 CE |
13569 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13570 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
13571 | esac |
13572 | ;; | |
13573 | esac | |
13574 | ||
13575 | ac_dir=`$as_dirname -- "$ac_file" || | |
13576 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13577 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13578 | X"$ac_file" : 'X\(//\)$' \| \ | |
13579 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13580 | $as_echo X"$ac_file" | | |
13581 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13582 | s//\1/ | |
13583 | q | |
13584 | } | |
13585 | /^X\(\/\/\)[^/].*/{ | |
13586 | s//\1/ | |
13587 | q | |
13588 | } | |
13589 | /^X\(\/\/\)$/{ | |
13590 | s//\1/ | |
13591 | q | |
13592 | } | |
13593 | /^X\(\/\).*/{ | |
13594 | s//\1/ | |
13595 | q | |
13596 | } | |
13597 | s/.*/./; q'` | |
b0322a85 | 13598 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 CE |
13599 | ac_builddir=. |
13600 | ||
13601 | case "$ac_dir" in | |
13602 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13603 | *) | |
13604 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13605 | # A ".." for each directory in $ac_dir_suffix. | |
13606 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13607 | case $ac_top_builddir_sub in | |
13608 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13609 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13610 | esac ;; | |
13611 | esac | |
13612 | ac_abs_top_builddir=$ac_pwd | |
13613 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13614 | # for backward compatibility: | |
13615 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13616 | |
8d138742 CE |
13617 | case $srcdir in |
13618 | .) # We are building in place. | |
13619 | ac_srcdir=. | |
13620 | ac_top_srcdir=$ac_top_builddir_sub | |
13621 | ac_abs_top_srcdir=$ac_pwd ;; | |
13622 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13623 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13624 | ac_top_srcdir=$srcdir | |
13625 | ac_abs_top_srcdir=$srcdir ;; | |
13626 | *) # Relative name. | |
13627 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13628 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13629 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13630 | esac | |
13631 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 13632 | |
13633 | ||
8d138742 CE |
13634 | case $ac_mode in |
13635 | :F) | |
13636 | # | |
13637 | # CONFIG_FILE | |
13638 | # | |
d9898ee8 | 13639 | |
8d138742 CE |
13640 | case $INSTALL in |
13641 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13642 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13643 | esac | |
13644 | ac_MKDIR_P=$MKDIR_P | |
13645 | case $MKDIR_P in | |
13646 | [\\/$]* | ?:[\\/]* ) ;; | |
13647 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13648 | esac | |
13649 | _ACEOF | |
d9898ee8 | 13650 | |
8d138742 CE |
13651 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13652 | # If the template does not know about datarootdir, expand it. | |
13653 | # FIXME: This hack should be removed a few years after 2.60. | |
13654 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
13655 | ac_sed_dataroot=' |
13656 | /datarootdir/ { | |
13657 | p | |
13658 | q | |
13659 | } | |
13660 | /@datadir@/p | |
13661 | /@docdir@/p | |
13662 | /@infodir@/p | |
13663 | /@localedir@/p | |
b0322a85 | 13664 | /@mandir@/p' |
8d138742 CE |
13665 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
13666 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13667 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
13669 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
13670 | _ACEOF | |
13671 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13672 | ac_datarootdir_hack=' | |
13673 | s&@datadir@&$datadir&g | |
13674 | s&@docdir@&$docdir&g | |
13675 | s&@infodir@&$infodir&g | |
13676 | s&@localedir@&$localedir&g | |
13677 | s&@mandir@&$mandir&g | |
b0322a85 | 13678 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
13679 | esac |
13680 | _ACEOF | |
d9898ee8 | 13681 | |
8d138742 CE |
13682 | # Neutralize VPATH when `$srcdir' = `.'. |
13683 | # Shell code in configure.ac might set extrasub. | |
13684 | # FIXME: do we really want to maintain this feature? | |
13685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13686 | ac_sed_extra="$ac_vpsub | |
13687 | $extrasub | |
13688 | _ACEOF | |
13689 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13690 | :t | |
13691 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13692 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13693 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13694 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13695 | s&@srcdir@&$ac_srcdir&;t t | |
13696 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13697 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13698 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13699 | s&@builddir@&$ac_builddir&;t t | |
13700 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13701 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13702 | s&@INSTALL@&$ac_INSTALL&;t t | |
13703 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13704 | $ac_datarootdir_hack | |
13705 | " | |
b0322a85 CE |
13706 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13707 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 13708 | |
8d138742 | 13709 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
13710 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13711 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13712 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13714 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 13715 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 13716 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 13717 | |
b0322a85 | 13718 | rm -f "$ac_tmp/stdin" |
8d138742 | 13719 | case $ac_file in |
b0322a85 CE |
13720 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13721 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 13722 | esac \ |
b0322a85 | 13723 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
13724 | ;; |
13725 | :H) | |
13726 | # | |
13727 | # CONFIG_HEADER | |
13728 | # | |
13729 | if test x"$ac_file" != x-; then | |
13730 | { | |
13731 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13732 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13733 | } >"$ac_tmp/config.h" \ | |
13734 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13735 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
13737 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
13738 | else | |
13739 | rm -f "$ac_file" | |
b0322a85 CE |
13740 | mv "$ac_tmp/config.h" "$ac_file" \ |
13741 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
13742 | fi |
13743 | else | |
13744 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13745 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13746 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
13747 | fi |
13748 | # Compute "$ac_file"'s index in $config_headers. | |
13749 | _am_arg="$ac_file" | |
13750 | _am_stamp_count=1 | |
13751 | for _am_header in $config_headers :; do | |
13752 | case $_am_header in | |
13753 | $_am_arg | $_am_arg:* ) | |
13754 | break ;; | |
13755 | * ) | |
13756 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13757 | esac | |
13758 | done | |
13759 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13760 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13761 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13762 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13763 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13764 | $as_echo X"$_am_arg" | | |
13765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13766 | s//\1/ | |
13767 | q | |
13768 | } | |
13769 | /^X\(\/\/\)[^/].*/{ | |
13770 | s//\1/ | |
13771 | q | |
13772 | } | |
13773 | /^X\(\/\/\)$/{ | |
13774 | s//\1/ | |
13775 | q | |
13776 | } | |
13777 | /^X\(\/\).*/{ | |
13778 | s//\1/ | |
13779 | q | |
13780 | } | |
13781 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13782 | ;; | |
d9898ee8 | 13783 | |
b0322a85 | 13784 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
13785 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
13786 | ;; | |
13787 | esac | |
d9898ee8 | 13788 | |
13789 | ||
8d138742 CE |
13790 | case $ac_file$ac_mode in |
13791 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 13792 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
13793 | # are listed without --file. Let's play safe and only enable the eval |
13794 | # if we detect the quoting. | |
13795 | case $CONFIG_FILES in | |
13796 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13797 | *) set x $CONFIG_FILES ;; | |
13798 | esac | |
13799 | shift | |
13800 | for mf | |
13801 | do | |
13802 | # Strip MF so we end up with the name of the file. | |
13803 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13804 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 13805 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
13806 | # some people rename them; so instead we look at the file content. |
13807 | # Grep'ing the first line is not enough: some people post-process | |
13808 | # each Makefile.in and add a new line on top of each file to say so. | |
13809 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13810 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13811 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13812 | dirpart=`$as_dirname -- "$mf" || | |
13813 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13814 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13815 | X"$mf" : 'X\(//\)$' \| \ | |
13816 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13817 | $as_echo X"$mf" | | |
13818 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13819 | s//\1/ | |
13820 | q | |
13821 | } | |
13822 | /^X\(\/\/\)[^/].*/{ | |
13823 | s//\1/ | |
13824 | q | |
13825 | } | |
13826 | /^X\(\/\/\)$/{ | |
13827 | s//\1/ | |
13828 | q | |
13829 | } | |
13830 | /^X\(\/\).*/{ | |
13831 | s//\1/ | |
13832 | q | |
13833 | } | |
13834 | s/.*/./; q'` | |
13835 | else | |
13836 | continue | |
13837 | fi | |
13838 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 13839 | # from the Makefile without running 'make'. |
8d138742 CE |
13840 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13841 | test -z "$DEPDIR" && continue | |
13842 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 13843 | test -z "$am__include" && continue |
8d138742 | 13844 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
13845 | # Find all dependency output files, they are included files with |
13846 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13847 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13848 | # expansion. | |
13849 | for file in `sed -n " | |
13850 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 13851 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
13852 | # Make sure the directory exists. |
13853 | test -f "$dirpart/$file" && continue | |
13854 | fdir=`$as_dirname -- "$file" || | |
13855 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13856 | X"$file" : 'X\(//\)[^/]' \| \ | |
13857 | X"$file" : 'X\(//\)$' \| \ | |
13858 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13859 | $as_echo X"$file" | | |
13860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13861 | s//\1/ | |
13862 | q | |
13863 | } | |
13864 | /^X\(\/\/\)[^/].*/{ | |
13865 | s//\1/ | |
13866 | q | |
13867 | } | |
13868 | /^X\(\/\/\)$/{ | |
13869 | s//\1/ | |
13870 | q | |
13871 | } | |
13872 | /^X\(\/\).*/{ | |
13873 | s//\1/ | |
13874 | q | |
13875 | } | |
13876 | s/.*/./; q'` | |
b0322a85 | 13877 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
13878 | # echo "creating $dirpart/$file" |
13879 | echo '# dummy' > "$dirpart/$file" | |
13880 | done | |
13881 | done | |
13882 | } | |
13883 | ;; | |
13884 | "libtool":C) | |
d9898ee8 | 13885 | |
d50284c4 | 13886 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13887 | # commands through without removal of \ escapes. |
d50284c4 | 13888 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
13889 | setopt NO_GLOB_SUBST |
13890 | fi | |
d9898ee8 | 13891 | |
d50284c4 | 13892 | cfgfile=${ofile}T |
8d138742 CE |
13893 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
13894 | $RM "$cfgfile" | |
d9898ee8 | 13895 | |
8d138742 CE |
13896 | cat <<_LT_EOF >> "$cfgfile" |
13897 | #! $SHELL | |
d50284c4 | 13898 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
13899 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13900 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
13901 | |
13902 | # Provide generalized library-building support services. | |
13903 | # Written by Gordon Matzigkeit, 1996 | |
13904 | ||
13905 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
13906 | # This is free software; see the source for copying conditions. There is NO | |
13907 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
13908 | ||
13909 | # GNU Libtool is free software; you can redistribute it and/or modify | |
13910 | # it under the terms of the GNU General Public License as published by | |
13911 | # the Free Software Foundation; either version 2 of of the License, or | |
13912 | # (at your option) any later version. | |
d9898ee8 | 13913 | # |
d50284c4 CE |
13914 | # As a special exception to the GNU General Public License, if you |
13915 | # distribute this file as part of a program or library that is built | |
13916 | # using GNU Libtool, you may include this file under the same | |
13917 | # distribution terms that you use for the rest of that program. | |
8d138742 | 13918 | # |
d50284c4 CE |
13919 | # GNU Libtool is distributed in the hope that it will be useful, but |
13920 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
13921 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13922 | # GNU General Public License for more details. | |
13923 | # | |
13924 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 13925 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 13926 | |
d9898ee8 | 13927 | |
8d138742 | 13928 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
13929 | available_tags='' |
13930 | ||
13931 | # Configured defaults for sys_lib_dlsearch_path munging. | |
13932 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 13933 | |
8d138742 | 13934 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 13935 | |
8d138742 CE |
13936 | # Which release of libtool.m4 was used? |
13937 | macro_version=$macro_version | |
13938 | macro_revision=$macro_revision | |
d9898ee8 | 13939 | |
8d138742 CE |
13940 | # Whether or not to build shared libraries. |
13941 | build_libtool_libs=$enable_shared | |
d9898ee8 | 13942 | |
8d138742 CE |
13943 | # Whether or not to build static libraries. |
13944 | build_old_libs=$enable_static | |
d9898ee8 | 13945 | |
8d138742 CE |
13946 | # What type of objects to build. |
13947 | pic_mode=$pic_mode | |
d9898ee8 | 13948 | |
8d138742 CE |
13949 | # Whether or not to optimize for fast installation. |
13950 | fast_install=$enable_fast_install | |
d9898ee8 | 13951 | |
d50284c4 CE |
13952 | # Shared archive member basename,for filename based shared library versioning on AIX. |
13953 | shared_archive_member_spec=$shared_archive_member_spec | |
13954 | ||
b0322a85 CE |
13955 | # Shell to use when invoking shell scripts. |
13956 | SHELL=$lt_SHELL | |
13957 | ||
13958 | # An echo program that protects backslashes. | |
13959 | ECHO=$lt_ECHO | |
13960 | ||
13961 | # The PATH separator for the build system. | |
13962 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
13963 | ||
8d138742 CE |
13964 | # The host system. |
13965 | host_alias=$host_alias | |
13966 | host=$host | |
13967 | host_os=$host_os | |
d9898ee8 | 13968 | |
8d138742 CE |
13969 | # The build system. |
13970 | build_alias=$build_alias | |
13971 | build=$build | |
13972 | build_os=$build_os | |
dd184caf | 13973 | |
8d138742 CE |
13974 | # A sed program that does not truncate output. |
13975 | SED=$lt_SED | |
dd184caf | 13976 | |
8d138742 CE |
13977 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
13978 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 13979 | |
8d138742 CE |
13980 | # A grep program that handles long lines. |
13981 | GREP=$lt_GREP | |
dd184caf | 13982 | |
8d138742 CE |
13983 | # An ERE matcher. |
13984 | EGREP=$lt_EGREP | |
dd184caf | 13985 | |
8d138742 CE |
13986 | # A literal string matcher. |
13987 | FGREP=$lt_FGREP | |
dd184caf | 13988 | |
8d138742 CE |
13989 | # A BSD- or MS-compatible name lister. |
13990 | NM=$lt_NM | |
d9898ee8 | 13991 | |
8d138742 CE |
13992 | # Whether we need soft or hard links. |
13993 | LN_S=$lt_LN_S | |
d9898ee8 | 13994 | |
8d138742 CE |
13995 | # What is the maximum length of a command? |
13996 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 13997 | |
8d138742 CE |
13998 | # Object file suffix (normally "o"). |
13999 | objext=$ac_objext | |
dd184caf | 14000 | |
8d138742 CE |
14001 | # Executable file suffix (normally ""). |
14002 | exeext=$exeext | |
dd184caf | 14003 | |
8d138742 CE |
14004 | # whether the shell understands "unset". |
14005 | lt_unset=$lt_unset | |
dd184caf | 14006 | |
8d138742 CE |
14007 | # turn spaces into newlines. |
14008 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 14009 | |
8d138742 CE |
14010 | # turn newlines into spaces. |
14011 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 14012 | |
b0322a85 CE |
14013 | # convert \$build file names to \$host format. |
14014 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14015 | ||
14016 | # convert \$build files to toolchain format. | |
14017 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 14018 | |
8d138742 CE |
14019 | # An object symbol dumper. |
14020 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14021 | |
8d138742 CE |
14022 | # Method to check whether dependent libraries are shared objects. |
14023 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14024 | |
b0322a85 | 14025 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14026 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14027 | |
b0322a85 CE |
14028 | # How to find potential files when deplibs_check_method = "file_magic". |
14029 | file_magic_glob=$lt_file_magic_glob | |
14030 | ||
14031 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14032 | want_nocaseglob=$lt_want_nocaseglob | |
14033 | ||
14034 | # DLL creation program. | |
14035 | DLLTOOL=$lt_DLLTOOL | |
14036 | ||
14037 | # Command to associate shared and link libraries. | |
14038 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14039 | ||
8d138742 CE |
14040 | # The archiver. |
14041 | AR=$lt_AR | |
b0322a85 CE |
14042 | |
14043 | # Flags to create an archive. | |
8d138742 | 14044 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14045 | |
b0322a85 CE |
14046 | # How to feed a file listing to the archiver. |
14047 | archiver_list_spec=$lt_archiver_list_spec | |
14048 | ||
8d138742 CE |
14049 | # A symbol stripping program. |
14050 | STRIP=$lt_STRIP | |
d9898ee8 | 14051 | |
8d138742 CE |
14052 | # Commands used to install an old-style archive. |
14053 | RANLIB=$lt_RANLIB | |
14054 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14055 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14056 | |
b0322a85 CE |
14057 | # Whether to use a lock for old archive extraction. |
14058 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14059 | ||
8d138742 CE |
14060 | # A C compiler. |
14061 | LTCC=$lt_CC | |
d9898ee8 | 14062 | |
8d138742 CE |
14063 | # LTCC compiler flags. |
14064 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14065 | |
8d138742 CE |
14066 | # Take the output of nm and produce a listing of raw symbols and C names. |
14067 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14068 | |
8d138742 CE |
14069 | # Transform the output of nm in a proper C declaration. |
14070 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14071 | |
d50284c4 CE |
14072 | # Transform the output of nm into a list of symbols to manually relocate. |
14073 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14074 | ||
8d138742 CE |
14075 | # Transform the output of nm in a C name address pair. |
14076 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
dd184caf | 14077 | |
8d138742 CE |
14078 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14079 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14080 | ||
d50284c4 CE |
14081 | # The name lister interface. |
14082 | nm_interface=$lt_lt_cv_nm_interface | |
14083 | ||
b0322a85 CE |
14084 | # Specify filename containing input files for \$NM. |
14085 | nm_file_list_spec=$lt_nm_file_list_spec | |
8d138742 | 14086 | |
d50284c4 | 14087 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14088 | lt_sysroot=$lt_sysroot |
8d138742 | 14089 | |
d50284c4 CE |
14090 | # Command to truncate a binary pipe. |
14091 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14092 | ||
b0322a85 CE |
14093 | # The name of the directory that contains temporary libtool files. |
14094 | objdir=$objdir | |
d9898ee8 | 14095 | |
8d138742 CE |
14096 | # Used to examine libraries when file_magic_cmd begins with "file". |
14097 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14098 | |
8d138742 CE |
14099 | # Must we lock files when doing compilation? |
14100 | need_locks=$lt_need_locks | |
d9898ee8 | 14101 | |
b0322a85 CE |
14102 | # Manifest tool. |
14103 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14104 | ||
8d138742 CE |
14105 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14106 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14107 | |
8d138742 CE |
14108 | # Tool to change global to local symbols on Mac OS X. |
14109 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14110 | |
8d138742 CE |
14111 | # Tool to manipulate fat objects and archives on Mac OS X. |
14112 | LIPO=$lt_LIPO | |
d9898ee8 | 14113 | |
8d138742 CE |
14114 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14115 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14116 | |
8d138742 CE |
14117 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14118 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14119 | |
8d138742 CE |
14120 | # Old archive suffix (normally "a"). |
14121 | libext=$libext | |
d9898ee8 | 14122 | |
8d138742 CE |
14123 | # Shared library suffix (normally ".so"). |
14124 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14125 | |
8d138742 CE |
14126 | # The commands to extract the exported symbol list from a shared archive. |
14127 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14128 | |
8d138742 CE |
14129 | # Variables whose values should be saved in libtool wrapper scripts and |
14130 | # restored at link time. | |
14131 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14132 | |
8d138742 CE |
14133 | # Do we need the "lib" prefix for modules? |
14134 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14135 | |
8d138742 CE |
14136 | # Do we need a version for libraries? |
14137 | need_version=$need_version | |
d9898ee8 | 14138 | |
8d138742 CE |
14139 | # Library versioning type. |
14140 | version_type=$version_type | |
d9898ee8 | 14141 | |
8d138742 CE |
14142 | # Shared library runtime path variable. |
14143 | runpath_var=$runpath_var | |
d9898ee8 | 14144 | |
8d138742 CE |
14145 | # Shared library path variable. |
14146 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14147 | |
8d138742 CE |
14148 | # Is shlibpath searched before the hard-coded library search path? |
14149 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14150 | |
8d138742 CE |
14151 | # Format of library name prefix. |
14152 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14153 | |
8d138742 CE |
14154 | # List of archive names. First name is the real one, the rest are links. |
14155 | # The last name is the one that the linker finds with -lNAME | |
14156 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14157 | |
8d138742 CE |
14158 | # The coded name of the library, if different from the real name. |
14159 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14160 | |
b0322a85 CE |
14161 | # Permission mode override for installation of shared libraries. |
14162 | install_override_mode=$lt_install_override_mode | |
14163 | ||
8d138742 CE |
14164 | # Command to use after installation of a shared archive. |
14165 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14166 | |
8d138742 CE |
14167 | # Command to use after uninstallation of a shared archive. |
14168 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14169 | |
8d138742 CE |
14170 | # Commands used to finish a libtool library installation in a directory. |
14171 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14172 | |
8d138742 CE |
14173 | # As "finish_cmds", except a single script fragment to be evaled but |
14174 | # not shown. | |
14175 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14176 | |
8d138742 CE |
14177 | # Whether we should hardcode library paths into libraries. |
14178 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14179 | |
8d138742 CE |
14180 | # Compile-time system search path for libraries. |
14181 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14182 | |
d50284c4 CE |
14183 | # Detected run-time system search path for libraries. |
14184 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14185 | ||
14186 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14187 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 14188 | |
8d138742 CE |
14189 | # Whether dlopen is supported. |
14190 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14191 | |
8d138742 CE |
14192 | # Whether dlopen of programs is supported. |
14193 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14194 | |
8d138742 CE |
14195 | # Whether dlopen of statically linked programs is supported. |
14196 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14197 | |
8d138742 CE |
14198 | # Commands to strip libraries. |
14199 | old_striplib=$lt_old_striplib | |
14200 | striplib=$lt_striplib | |
d9898ee8 | 14201 | |
d9898ee8 | 14202 | |
8d138742 CE |
14203 | # The linker used to build libraries. |
14204 | LD=$lt_LD | |
d9898ee8 | 14205 | |
b0322a85 CE |
14206 | # How to create reloadable object files. |
14207 | reload_flag=$lt_reload_flag | |
14208 | reload_cmds=$lt_reload_cmds | |
14209 | ||
8d138742 CE |
14210 | # Commands used to build an old-style archive. |
14211 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14212 | |
8d138742 CE |
14213 | # A language specific compiler. |
14214 | CC=$lt_compiler | |
d9898ee8 | 14215 | |
8d138742 CE |
14216 | # Is the compiler the GNU compiler? |
14217 | with_gcc=$GCC | |
dd184caf | 14218 | |
8d138742 CE |
14219 | # Compiler flag to turn off builtin functions. |
14220 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14221 | |
8d138742 CE |
14222 | # Additional compiler flags for building library objects. |
14223 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14224 | |
b0322a85 CE |
14225 | # How to pass a linker flag through the compiler. |
14226 | wl=$lt_lt_prog_compiler_wl | |
14227 | ||
8d138742 CE |
14228 | # Compiler flag to prevent dynamic linking. |
14229 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14230 | |
8d138742 CE |
14231 | # Does compiler simultaneously support -c and -o options? |
14232 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14233 | ||
14234 | # Whether or not to add -lc for building shared libraries. | |
14235 | build_libtool_need_lc=$archive_cmds_need_lc | |
14236 | ||
14237 | # Whether or not to disallow shared libs when runtime libs are static. | |
14238 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14239 | ||
14240 | # Compiler flag to allow reflexive dlopens. | |
14241 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14242 | |
8d138742 CE |
14243 | # Compiler flag to generate shared objects directly from archives. |
14244 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14245 | |
8d138742 CE |
14246 | # Whether the compiler copes with passing no objects directly. |
14247 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14248 | |
8d138742 CE |
14249 | # Create an old-style archive from a shared archive. |
14250 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14251 | |
8d138742 CE |
14252 | # Create a temporary old-style archive to link instead of a shared archive. |
14253 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14254 | |
8d138742 CE |
14255 | # Commands used to build a shared archive. |
14256 | archive_cmds=$lt_archive_cmds | |
14257 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14258 | |
8d138742 CE |
14259 | # Commands used to build a loadable module if different from building |
14260 | # a shared archive. | |
14261 | module_cmds=$lt_module_cmds | |
14262 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14263 | |
8d138742 CE |
14264 | # Whether we are building with GNU ld or not. |
14265 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14266 | |
8d138742 CE |
14267 | # Flag that allows shared libraries with undefined symbols to be built. |
14268 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 14269 | |
8d138742 CE |
14270 | # Flag that enforces no undefined symbols. |
14271 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 14272 | |
8d138742 CE |
14273 | # Flag to hardcode \$libdir into a binary during linking. |
14274 | # This must work even if \$libdir does not exist | |
14275 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14276 | |
8d138742 CE |
14277 | # Whether we need a single "-rpath" flag with a separated argument. |
14278 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14279 | |
d50284c4 | 14280 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
14281 | # DIR into the resulting binary. |
14282 | hardcode_direct=$hardcode_direct | |
dd184caf | 14283 | |
d50284c4 | 14284 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 14285 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 14286 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
14287 | # library is relocated. |
14288 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 14289 | |
8d138742 CE |
14290 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14291 | # into the resulting binary. | |
14292 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14293 | |
8d138742 CE |
14294 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14295 | # into the resulting binary. | |
14296 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14297 | |
8d138742 CE |
14298 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14299 | # into the library and all subsequent libraries and executables linked | |
14300 | # against it. | |
14301 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14302 | |
8d138742 CE |
14303 | # Set to yes if linker adds runtime paths of dependent libraries |
14304 | # to runtime path list. | |
14305 | inherit_rpath=$inherit_rpath | |
dd184caf | 14306 | |
8d138742 CE |
14307 | # Whether libtool must link a program against all its dependency libraries. |
14308 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14309 | |
8d138742 CE |
14310 | # Set to "yes" if exported symbols are required. |
14311 | always_export_symbols=$always_export_symbols | |
dd184caf | 14312 | |
8d138742 CE |
14313 | # The commands to list exported symbols. |
14314 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 14315 | |
8d138742 CE |
14316 | # Symbols that should not be listed in the preloaded symbols. |
14317 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 14318 | |
8d138742 CE |
14319 | # Symbols that must always be exported. |
14320 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14321 | |
8d138742 CE |
14322 | # Commands necessary for linking programs (against libraries) with templates. |
14323 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14324 | |
b0322a85 CE |
14325 | # Commands necessary for finishing linking programs. |
14326 | postlink_cmds=$lt_postlink_cmds | |
14327 | ||
8d138742 CE |
14328 | # Specify filename containing input files. |
14329 | file_list_spec=$lt_file_list_spec | |
14330 | ||
14331 | # How to hardcode a shared library path into an executable. | |
14332 | hardcode_action=$hardcode_action | |
d9898ee8 | 14333 | |
8d138742 | 14334 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14335 | |
d50284c4 CE |
14336 | _LT_EOF |
14337 | ||
14338 | cat <<'_LT_EOF' >> "$cfgfile" | |
14339 | ||
14340 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
14341 | ||
14342 | # func_munge_path_list VARIABLE PATH | |
14343 | # ----------------------------------- | |
14344 | # VARIABLE is name of variable containing _space_ separated list of | |
14345 | # directories to be munged by the contents of PATH, which is string | |
14346 | # having a format: | |
14347 | # "DIR[:DIR]:" | |
14348 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
14349 | # ":DIR[:DIR]" | |
14350 | # string "DIR[ DIR]" will be appended to VARIABLE | |
14351 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
14352 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
14353 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
14354 | # "DIR[:DIR]" | |
14355 | # VARIABLE will be replaced by "DIR[ DIR]" | |
14356 | func_munge_path_list () | |
14357 | { | |
14358 | case x$2 in | |
14359 | x) | |
14360 | ;; | |
14361 | *:) | |
14362 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
14363 | ;; | |
14364 | x:*) | |
14365 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
14366 | ;; | |
14367 | *::*) | |
14368 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
14369 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
14370 | ;; | |
14371 | *) | |
14372 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
14373 | ;; | |
14374 | esac | |
14375 | } | |
14376 | ||
14377 | ||
14378 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
14379 | func_cc_basename () | |
14380 | { | |
14381 | for cc_temp in $*""; do | |
14382 | case $cc_temp in | |
14383 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14384 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14385 | \-*) ;; | |
14386 | *) break;; | |
14387 | esac | |
14388 | done | |
14389 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
14390 | } | |
14391 | ||
14392 | ||
14393 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
14394 | ||
8d138742 | 14395 | _LT_EOF |
d9898ee8 | 14396 | |
8d138742 CE |
14397 | case $host_os in |
14398 | aix3*) | |
14399 | cat <<\_LT_EOF >> "$cfgfile" | |
14400 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14401 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14402 | # vanish in a puff of smoke. | |
d50284c4 | 14403 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
14404 | COLLECT_NAMES= |
14405 | export COLLECT_NAMES | |
14406 | fi | |
14407 | _LT_EOF | |
14408 | ;; | |
d9898ee8 | 14409 | esac |
8d138742 CE |
14410 | |
14411 | ||
d50284c4 | 14412 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
14413 | |
14414 | ||
14415 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14416 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14417 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14418 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
14419 | sed '$q' "$ltmain" >> "$cfgfile" \ |
14420 | || (rm -f "$cfgfile"; exit 1) | |
14421 | ||
b0322a85 | 14422 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
14423 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14424 | chmod +x "$ofile" | |
14425 | ||
d9898ee8 | 14426 | ;; |
dd184caf | 14427 | |
d9898ee8 | 14428 | esac |
dd184caf | 14429 | done # for ac_tag |
d9898ee8 | 14430 | |
d9898ee8 | 14431 | |
b0322a85 | 14432 | as_fn_exit 0 |
d9898ee8 | 14433 | _ACEOF |
d9898ee8 | 14434 | ac_clean_files=$ac_clean_files_save |
14435 | ||
8d138742 | 14436 | test $ac_write_fail = 0 || |
b0322a85 | 14437 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 14438 | |
d9898ee8 | 14439 | |
14440 | # configure is writing to config.log, and then calls config.status. | |
14441 | # config.status does its own redirection, appending to config.log. | |
14442 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14443 | # by configure, so config.status won't be able to write to it; its | |
14444 | # output is simply discarded. So we exec the FD to /dev/null, | |
14445 | # effectively closing config.log, so it can be properly (re)opened and | |
14446 | # appended to by config.status. When coming back to configure, we | |
14447 | # need to make the FD available again. | |
14448 | if test "$no_create" != yes; then | |
14449 | ac_cs_success=: | |
14450 | ac_config_status_args= | |
14451 | test "$silent" = yes && | |
14452 | ac_config_status_args="$ac_config_status_args --quiet" | |
14453 | exec 5>/dev/null | |
14454 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14455 | exec 5>>config.log | |
14456 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14457 | # would make configure fail if this is the last instruction. | |
b0322a85 | 14458 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 14459 | fi |
8d138742 | 14460 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
14462 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14463 | fi | |
d9898ee8 | 14464 |