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 liblock 0.60. |
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= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
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 |
b0322a85 CE |
504 | # (the dirname of $[0] is not the place where we might find the |
505 | # original and so on. Autoconf is especially sensitive to this). | |
506 | . "./$as_me.lineno" | |
507 | # Exit status is that of the last command. | |
508 | exit | |
509 | } | |
dd184caf | 510 | |
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='liblock' | |
592 | PACKAGE_TARNAME='liblock' | |
593 | PACKAGE_VERSION='0.60' | |
594 | PACKAGE_STRING='liblock 0.60' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="liblock.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 | HAVE_SGML_FALSE | |
640 | HAVE_SGML_TRUE | |
641 | USE_LOCKF_FALSE | |
642 | USE_LOCKF_TRUE | |
643 | USE_FLOCK_FALSE | |
644 | USE_FLOCK_TRUE | |
645 | USE_FCNTL_FALSE | |
646 | USE_FCNTL_TRUE | |
647 | CPP | |
d50284c4 | 648 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
649 | OTOOL64 |
650 | OTOOL | |
651 | LIPO | |
652 | NMEDIT | |
653 | DSYMUTIL | |
b0322a85 | 654 | MANIFEST_TOOL |
8d138742 | 655 | RANLIB |
b0322a85 | 656 | ac_ct_AR |
8d138742 | 657 | AR |
b0322a85 | 658 | DLLTOOL |
8d138742 CE |
659 | OBJDUMP |
660 | NM | |
661 | ac_ct_DUMPBIN | |
662 | DUMPBIN | |
663 | LD | |
664 | FGREP | |
665 | EGREP | |
666 | GREP | |
667 | SED | |
668 | host_os | |
669 | host_vendor | |
670 | host_cpu | |
671 | host | |
672 | build_os | |
673 | build_vendor | |
674 | build_cpu | |
675 | build | |
676 | LIBTOOL | |
677 | LN_S | |
678 | am__fastdepCC_FALSE | |
679 | am__fastdepCC_TRUE | |
680 | CCDEPMODE | |
b0322a85 | 681 | am__nodep |
8d138742 CE |
682 | AMDEPBACKSLASH |
683 | AMDEP_FALSE | |
684 | AMDEP_TRUE | |
685 | am__quote | |
686 | am__include | |
687 | DEPDIR | |
688 | OBJEXT | |
689 | EXEEXT | |
690 | ac_ct_CC | |
691 | CPPFLAGS | |
692 | LDFLAGS | |
693 | CFLAGS | |
694 | CC | |
b0322a85 CE |
695 | AM_BACKSLASH |
696 | AM_DEFAULT_VERBOSITY | |
697 | AM_DEFAULT_V | |
698 | AM_V | |
8d138742 CE |
699 | am__untar |
700 | am__tar | |
701 | AMTAR | |
702 | am__leading_dot | |
703 | SET_MAKE | |
704 | AWK | |
705 | mkdir_p | |
706 | MKDIR_P | |
707 | INSTALL_STRIP_PROGRAM | |
708 | STRIP | |
709 | install_sh | |
710 | MAKEINFO | |
711 | AUTOHEADER | |
712 | AUTOMAKE | |
713 | AUTOCONF | |
714 | ACLOCAL | |
715 | VERSION | |
716 | PACKAGE | |
717 | CYGPATH_W | |
718 | am__isrc | |
719 | INSTALL_DATA | |
720 | INSTALL_SCRIPT | |
721 | INSTALL_PROGRAM | |
722 | target_alias | |
723 | host_alias | |
dd184caf | 724 | build_alias |
8d138742 CE |
725 | LIBS |
726 | ECHO_T | |
727 | ECHO_N | |
728 | ECHO_C | |
729 | DEFS | |
730 | mandir | |
731 | localedir | |
732 | libdir | |
733 | psdir | |
734 | pdfdir | |
735 | dvidir | |
736 | htmldir | |
737 | infodir | |
738 | docdir | |
739 | oldincludedir | |
740 | includedir | |
741 | localstatedir | |
742 | sharedstatedir | |
743 | sysconfdir | |
744 | datadir | |
745 | datarootdir | |
746 | libexecdir | |
747 | sbindir | |
748 | bindir | |
749 | program_transform_name | |
750 | prefix | |
751 | exec_prefix | |
b0322a85 | 752 | PACKAGE_URL |
8d138742 CE |
753 | PACKAGE_BUGREPORT |
754 | PACKAGE_STRING | |
755 | PACKAGE_VERSION | |
756 | PACKAGE_TARNAME | |
757 | PACKAGE_NAME | |
758 | PATH_SEPARATOR | |
759 | SHELL' | |
760 | ac_subst_files='' | |
761 | ac_user_opts=' | |
762 | enable_option_checking | |
b0322a85 | 763 | enable_silent_rules |
8d138742 CE |
764 | enable_dependency_tracking |
765 | enable_shared | |
766 | enable_static | |
767 | with_pic | |
768 | enable_fast_install | |
d50284c4 | 769 | with_aix_soname |
8d138742 | 770 | with_gnu_ld |
b0322a85 | 771 | with_sysroot |
8d138742 | 772 | enable_libtool_lock |
b0322a85 | 773 | enable_largefile |
8d138742 CE |
774 | with_locking_method |
775 | ' | |
776 | ac_precious_vars='build_alias | |
dd184caf | 777 | host_alias |
778 | target_alias | |
dd184caf | 779 | CC |
780 | CFLAGS | |
781 | LDFLAGS | |
8d138742 | 782 | LIBS |
dd184caf | 783 | CPPFLAGS |
d50284c4 | 784 | LT_SYS_LIBRARY_PATH |
8d138742 | 785 | CPP' |
dd184caf | 786 | |
d9898ee8 | 787 | |
788 | # Initialize some variables set by options. | |
789 | ac_init_help= | |
790 | ac_init_version=false | |
8d138742 CE |
791 | ac_unrecognized_opts= |
792 | ac_unrecognized_sep= | |
d9898ee8 | 793 | # The variables have the same names as the options, with |
794 | # dashes changed to underlines. | |
795 | cache_file=/dev/null | |
796 | exec_prefix=NONE | |
797 | no_create= | |
798 | no_recursion= | |
799 | prefix=NONE | |
800 | program_prefix=NONE | |
801 | program_suffix=NONE | |
802 | program_transform_name=s,x,x, | |
803 | silent= | |
804 | site= | |
805 | srcdir= | |
806 | verbose= | |
807 | x_includes=NONE | |
808 | x_libraries=NONE | |
809 | ||
810 | # Installation directory options. | |
811 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
812 | # and all the variables that are supposed to be based on exec_prefix | |
813 | # by default will actually change. | |
814 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 815 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 816 | bindir='${exec_prefix}/bin' |
817 | sbindir='${exec_prefix}/sbin' | |
818 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 819 | datarootdir='${prefix}/share' |
820 | datadir='${datarootdir}' | |
d9898ee8 | 821 | sysconfdir='${prefix}/etc' |
822 | sharedstatedir='${prefix}/com' | |
823 | localstatedir='${prefix}/var' | |
d9898ee8 | 824 | includedir='${prefix}/include' |
825 | oldincludedir='/usr/include' | |
dd184caf | 826 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
827 | infodir='${datarootdir}/info' | |
828 | htmldir='${docdir}' | |
829 | dvidir='${docdir}' | |
830 | pdfdir='${docdir}' | |
831 | psdir='${docdir}' | |
832 | libdir='${exec_prefix}/lib' | |
833 | localedir='${datarootdir}/locale' | |
834 | mandir='${datarootdir}/man' | |
d9898ee8 | 835 | |
836 | ac_prev= | |
dd184caf | 837 | ac_dashdash= |
d9898ee8 | 838 | for ac_option |
839 | do | |
840 | # If the previous option needs an argument, assign it. | |
841 | if test -n "$ac_prev"; then | |
dd184caf | 842 | eval $ac_prev=\$ac_option |
d9898ee8 | 843 | ac_prev= |
844 | continue | |
845 | fi | |
846 | ||
dd184caf | 847 | case $ac_option in |
b0322a85 CE |
848 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
849 | *=) ac_optarg= ;; | |
850 | *) ac_optarg=yes ;; | |
dd184caf | 851 | esac |
d9898ee8 | 852 | |
853 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
854 | ||
dd184caf | 855 | case $ac_dashdash$ac_option in |
856 | --) | |
857 | ac_dashdash=yes ;; | |
d9898ee8 | 858 | |
859 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
860 | ac_prev=bindir ;; | |
861 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
862 | bindir=$ac_optarg ;; | |
863 | ||
864 | -build | --build | --buil | --bui | --bu) | |
865 | ac_prev=build_alias ;; | |
866 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
867 | build_alias=$ac_optarg ;; | |
868 | ||
869 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
870 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
871 | ac_prev=cache_file ;; | |
872 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
873 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
874 | cache_file=$ac_optarg ;; | |
875 | ||
876 | --config-cache | -C) | |
877 | cache_file=config.cache ;; | |
878 | ||
dd184caf | 879 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 880 | ac_prev=datadir ;; |
dd184caf | 881 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 882 | datadir=$ac_optarg ;; |
883 | ||
dd184caf | 884 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
885 | | --dataroo | --dataro | --datar) | |
886 | ac_prev=datarootdir ;; | |
887 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
888 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
889 | datarootdir=$ac_optarg ;; | |
890 | ||
d9898ee8 | 891 | -disable-* | --disable-*) |
8d138742 | 892 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 893 | # Reject names that are not valid shell variable names. |
8d138742 | 894 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 895 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
896 | ac_useropt_orig=$ac_useropt |
897 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
898 | case $ac_user_opts in | |
899 | *" | |
900 | "enable_$ac_useropt" | |
901 | "*) ;; | |
902 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
903 | ac_unrecognized_sep=', ';; | |
904 | esac | |
905 | eval enable_$ac_useropt=no ;; | |
dd184caf | 906 | |
907 | -docdir | --docdir | --docdi | --doc | --do) | |
908 | ac_prev=docdir ;; | |
909 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
910 | docdir=$ac_optarg ;; | |
911 | ||
912 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
913 | ac_prev=dvidir ;; | |
914 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
915 | dvidir=$ac_optarg ;; | |
d9898ee8 | 916 | |
917 | -enable-* | --enable-*) | |
8d138742 | 918 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 919 | # Reject names that are not valid shell variable names. |
8d138742 | 920 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 921 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
922 | ac_useropt_orig=$ac_useropt |
923 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
924 | case $ac_user_opts in | |
925 | *" | |
926 | "enable_$ac_useropt" | |
927 | "*) ;; | |
928 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
929 | ac_unrecognized_sep=', ';; | |
930 | esac | |
931 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 932 | |
933 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
934 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
935 | | --exec | --exe | --ex) | |
936 | ac_prev=exec_prefix ;; | |
937 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
938 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
939 | | --exec=* | --exe=* | --ex=*) | |
940 | exec_prefix=$ac_optarg ;; | |
941 | ||
942 | -gas | --gas | --ga | --g) | |
943 | # Obsolete; use --with-gas. | |
944 | with_gas=yes ;; | |
945 | ||
946 | -help | --help | --hel | --he | -h) | |
947 | ac_init_help=long ;; | |
948 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
949 | ac_init_help=recursive ;; | |
950 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
951 | ac_init_help=short ;; | |
952 | ||
953 | -host | --host | --hos | --ho) | |
954 | ac_prev=host_alias ;; | |
955 | -host=* | --host=* | --hos=* | --ho=*) | |
956 | host_alias=$ac_optarg ;; | |
957 | ||
dd184caf | 958 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
959 | ac_prev=htmldir ;; | |
960 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
961 | | --ht=*) | |
962 | htmldir=$ac_optarg ;; | |
963 | ||
d9898ee8 | 964 | -includedir | --includedir | --includedi | --included | --include \ |
965 | | --includ | --inclu | --incl | --inc) | |
966 | ac_prev=includedir ;; | |
967 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
968 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
969 | includedir=$ac_optarg ;; | |
970 | ||
971 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
972 | ac_prev=infodir ;; | |
973 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
974 | infodir=$ac_optarg ;; | |
975 | ||
976 | -libdir | --libdir | --libdi | --libd) | |
977 | ac_prev=libdir ;; | |
978 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979 | libdir=$ac_optarg ;; | |
980 | ||
981 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
982 | | --libexe | --libex | --libe) | |
983 | ac_prev=libexecdir ;; | |
984 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
985 | | --libexe=* | --libex=* | --libe=*) | |
986 | libexecdir=$ac_optarg ;; | |
987 | ||
dd184caf | 988 | -localedir | --localedir | --localedi | --localed | --locale) |
989 | ac_prev=localedir ;; | |
990 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
991 | localedir=$ac_optarg ;; | |
992 | ||
d9898ee8 | 993 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 994 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 995 | ac_prev=localstatedir ;; |
996 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 997 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 998 | localstatedir=$ac_optarg ;; |
999 | ||
1000 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1001 | ac_prev=mandir ;; | |
1002 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1003 | mandir=$ac_optarg ;; | |
1004 | ||
1005 | -nfp | --nfp | --nf) | |
1006 | # Obsolete; use --without-fp. | |
1007 | with_fp=no ;; | |
1008 | ||
1009 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1010 | | --no-cr | --no-c | -n) | |
1011 | no_create=yes ;; | |
1012 | ||
1013 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1014 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1015 | no_recursion=yes ;; | |
1016 | ||
1017 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1018 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1019 | | --oldin | --oldi | --old | --ol | --o) | |
1020 | ac_prev=oldincludedir ;; | |
1021 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1022 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1023 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1024 | oldincludedir=$ac_optarg ;; | |
1025 | ||
1026 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1027 | ac_prev=prefix ;; | |
1028 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1029 | prefix=$ac_optarg ;; | |
1030 | ||
1031 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1032 | | --program-pre | --program-pr | --program-p) | |
1033 | ac_prev=program_prefix ;; | |
1034 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1035 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1036 | program_prefix=$ac_optarg ;; | |
1037 | ||
1038 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1039 | | --program-suf | --program-su | --program-s) | |
1040 | ac_prev=program_suffix ;; | |
1041 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1042 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1043 | program_suffix=$ac_optarg ;; | |
1044 | ||
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 | ac_prev=program_transform_name ;; | |
1053 | -program-transform-name=* | --program-transform-name=* \ | |
1054 | | --program-transform-nam=* | --program-transform-na=* \ | |
1055 | | --program-transform-n=* | --program-transform-=* \ | |
1056 | | --program-transform=* | --program-transfor=* \ | |
1057 | | --program-transfo=* | --program-transf=* \ | |
1058 | | --program-trans=* | --program-tran=* \ | |
1059 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1060 | program_transform_name=$ac_optarg ;; | |
1061 | ||
dd184caf | 1062 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1063 | ac_prev=pdfdir ;; | |
1064 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1065 | pdfdir=$ac_optarg ;; | |
1066 | ||
1067 | -psdir | --psdir | --psdi | --psd | --ps) | |
1068 | ac_prev=psdir ;; | |
1069 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1070 | psdir=$ac_optarg ;; | |
1071 | ||
d9898ee8 | 1072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1073 | | -silent | --silent | --silen | --sile | --sil) | |
1074 | silent=yes ;; | |
1075 | ||
1076 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1077 | ac_prev=sbindir ;; | |
1078 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1079 | | --sbi=* | --sb=*) | |
1080 | sbindir=$ac_optarg ;; | |
1081 | ||
1082 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1083 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1084 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1085 | | --sha | --sh) | |
1086 | ac_prev=sharedstatedir ;; | |
1087 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1088 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1089 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1090 | | --sha=* | --sh=*) | |
1091 | sharedstatedir=$ac_optarg ;; | |
1092 | ||
1093 | -site | --site | --sit) | |
1094 | ac_prev=site ;; | |
1095 | -site=* | --site=* | --sit=*) | |
1096 | site=$ac_optarg ;; | |
1097 | ||
1098 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1099 | ac_prev=srcdir ;; | |
1100 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1101 | srcdir=$ac_optarg ;; | |
1102 | ||
1103 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1104 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1105 | ac_prev=sysconfdir ;; | |
1106 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1107 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1108 | sysconfdir=$ac_optarg ;; | |
1109 | ||
1110 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1111 | ac_prev=target_alias ;; | |
1112 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1113 | target_alias=$ac_optarg ;; | |
1114 | ||
1115 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1116 | verbose=yes ;; | |
1117 | ||
1118 | -version | --version | --versio | --versi | --vers | -V) | |
1119 | ac_init_version=: ;; | |
1120 | ||
1121 | -with-* | --with-*) | |
8d138742 | 1122 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1123 | # Reject names that are not valid shell variable names. |
8d138742 | 1124 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1125 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1126 | ac_useropt_orig=$ac_useropt |
1127 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1128 | case $ac_user_opts in | |
1129 | *" | |
1130 | "with_$ac_useropt" | |
1131 | "*) ;; | |
1132 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1133 | ac_unrecognized_sep=', ';; | |
1134 | esac | |
1135 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1136 | |
1137 | -without-* | --without-*) | |
8d138742 | 1138 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1139 | # Reject names that are not valid shell variable names. |
8d138742 | 1140 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1141 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1142 | ac_useropt_orig=$ac_useropt |
1143 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1144 | case $ac_user_opts in | |
1145 | *" | |
1146 | "with_$ac_useropt" | |
1147 | "*) ;; | |
1148 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1149 | ac_unrecognized_sep=', ';; | |
1150 | esac | |
1151 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1152 | |
1153 | --x) | |
1154 | # Obsolete; use --with-x. | |
1155 | with_x=yes ;; | |
1156 | ||
1157 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1158 | | --x-incl | --x-inc | --x-in | --x-i) | |
1159 | ac_prev=x_includes ;; | |
1160 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1161 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1162 | x_includes=$ac_optarg ;; | |
1163 | ||
1164 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1165 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1166 | ac_prev=x_libraries ;; | |
1167 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1168 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1169 | x_libraries=$ac_optarg ;; | |
1170 | ||
b0322a85 CE |
1171 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1172 | Try \`$0 --help' for more information" | |
d9898ee8 | 1173 | ;; |
1174 | ||
1175 | *=*) | |
1176 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1177 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1178 | case $ac_envvar in #( |
1179 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1180 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1181 | esac | |
dd184caf | 1182 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1183 | export $ac_envvar ;; |
1184 | ||
1185 | *) | |
1186 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1187 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1188 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1189 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1190 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1191 | ;; |
1192 | ||
1193 | esac | |
1194 | done | |
1195 | ||
1196 | if test -n "$ac_prev"; then | |
1197 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1198 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1199 | fi |
1200 | ||
8d138742 CE |
1201 | if test -n "$ac_unrecognized_opts"; then |
1202 | case $enable_option_checking in | |
1203 | no) ;; | |
b0322a85 | 1204 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1205 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1206 | esac | |
1207 | fi | |
1208 | ||
1209 | # Check all directory arguments for consistency. | |
dd184caf | 1210 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1211 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1212 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1213 | libdir localedir mandir | |
d9898ee8 | 1214 | do |
dd184caf | 1215 | eval ac_val=\$$ac_var |
8d138742 CE |
1216 | # Remove trailing slashes. |
1217 | case $ac_val in | |
1218 | */ ) | |
1219 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1220 | eval $ac_var=\$ac_val;; | |
1221 | esac | |
1222 | # Be sure to have absolute directory names. | |
d9898ee8 | 1223 | case $ac_val in |
dd184caf | 1224 | [\\/$]* | ?:[\\/]* ) continue;; |
1225 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1226 | esac |
b0322a85 | 1227 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1228 | done |
1229 | ||
1230 | # There might be people who depend on the old broken behavior: `$host' | |
1231 | # used to hold the argument of --host etc. | |
1232 | # FIXME: To remove some day. | |
1233 | build=$build_alias | |
1234 | host=$host_alias | |
1235 | target=$target_alias | |
1236 | ||
1237 | # FIXME: To remove some day. | |
1238 | if test "x$host_alias" != x; then | |
1239 | if test "x$build_alias" = x; then | |
1240 | cross_compiling=maybe | |
d9898ee8 | 1241 | elif test "x$build_alias" != "x$host_alias"; then |
1242 | cross_compiling=yes | |
1243 | fi | |
1244 | fi | |
1245 | ||
1246 | ac_tool_prefix= | |
1247 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1248 | ||
1249 | test "$silent" = yes && exec 6>/dev/null | |
1250 | ||
1251 | ||
dd184caf | 1252 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1253 | ac_ls_di=`ls -di .` && | |
1254 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1255 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1256 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1257 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1258 | |
1259 | ||
d9898ee8 | 1260 | # Find the source files, if location was not specified. |
1261 | if test -z "$srcdir"; then | |
1262 | ac_srcdir_defaulted=yes | |
dd184caf | 1263 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1264 | ac_confdir=`$as_dirname -- "$as_myself" || |
1265 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1266 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1267 | X"$as_myself" : 'X\(//\)$' \| \ | |
1268 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1269 | $as_echo X"$as_myself" | | |
dd184caf | 1270 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1271 | s//\1/ | |
1272 | q | |
1273 | } | |
1274 | /^X\(\/\/\)[^/].*/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\/\)$/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | /^X\(\/\).*/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | s/.*/./; q'` | |
d9898ee8 | 1287 | srcdir=$ac_confdir |
dd184caf | 1288 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1289 | srcdir=.. |
1290 | fi | |
1291 | else | |
1292 | ac_srcdir_defaulted=no | |
1293 | fi | |
dd184caf | 1294 | if test ! -r "$srcdir/$ac_unique_file"; then |
1295 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1296 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1297 | fi |
dd184caf | 1298 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1299 | ac_abs_confdir=`( | |
b0322a85 | 1300 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1301 | pwd)` |
1302 | # When building in place, set srcdir=. | |
1303 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1304 | srcdir=. | |
1305 | fi | |
1306 | # Remove unnecessary trailing slashes from srcdir. | |
1307 | # Double slashes in file names in object file debugging info | |
1308 | # mess up M-x gdb in Emacs. | |
1309 | case $srcdir in | |
1310 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1311 | esac | |
1312 | for ac_var in $ac_precious_vars; do | |
1313 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1314 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1315 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1316 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1317 | done | |
d9898ee8 | 1318 | |
1319 | # | |
1320 | # Report the --help message. | |
1321 | # | |
1322 | if test "$ac_init_help" = "long"; then | |
1323 | # Omit some internal or obsolete options to make the list less imposing. | |
1324 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1325 | cat <<_ACEOF | |
1326 | \`configure' configures liblock 0.60 to adapt to many kinds of systems. | |
1327 | ||
1328 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1329 | ||
1330 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1331 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1332 | ||
1333 | Defaults for the options are specified in brackets. | |
1334 | ||
1335 | Configuration: | |
1336 | -h, --help display this help and exit | |
1337 | --help=short display options specific to this package | |
1338 | --help=recursive display the short help of all the included packages | |
1339 | -V, --version display version information and exit | |
b0322a85 | 1340 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1341 | --cache-file=FILE cache test results in FILE [disabled] |
1342 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1343 | -n, --no-create do not create output files | |
1344 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1345 | ||
d9898ee8 | 1346 | Installation directories: |
1347 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1348 | [$ac_default_prefix] |
d9898ee8 | 1349 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1350 | [PREFIX] |
d9898ee8 | 1351 | |
1352 | By default, \`make install' will install all the files in | |
1353 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1354 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1355 | for instance \`--prefix=\$HOME'. | |
1356 | ||
1357 | For better control, use the options below. | |
1358 | ||
1359 | Fine tuning of the installation directories: | |
8d138742 CE |
1360 | --bindir=DIR user executables [EPREFIX/bin] |
1361 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1362 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1363 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1364 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1365 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1366 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1367 | --includedir=DIR C header files [PREFIX/include] | |
1368 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1369 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1370 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1371 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1372 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1373 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1374 | --docdir=DIR documentation root [DATAROOTDIR/doc/liblock] | |
1375 | --htmldir=DIR html documentation [DOCDIR] | |
1376 | --dvidir=DIR dvi documentation [DOCDIR] | |
1377 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1378 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1379 | _ACEOF |
1380 | ||
1381 | cat <<\_ACEOF | |
1382 | ||
1383 | Program names: | |
1384 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1385 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1386 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1387 | ||
1388 | System types: | |
1389 | --build=BUILD configure for building on BUILD [guessed] | |
1390 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1391 | _ACEOF | |
1392 | fi | |
1393 | ||
1394 | if test -n "$ac_init_help"; then | |
1395 | case $ac_init_help in | |
1396 | short | recursive ) echo "Configuration of liblock 0.60:";; | |
1397 | esac | |
1398 | cat <<\_ACEOF | |
1399 | ||
1400 | Optional Features: | |
8d138742 | 1401 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1402 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1403 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1404 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1405 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1406 | --enable-dependency-tracking | |
1407 | do not reject slow dependency extractors | |
1408 | --disable-dependency-tracking | |
1409 | speeds up one-time build | |
dd184caf | 1410 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1411 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1412 | --enable-fast-install[=PKGS] |
1413 | optimize for fast installation [default=yes] | |
1414 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1415 | --disable-largefile omit support for large files |
d9898ee8 | 1416 | |
1417 | Optional Packages: | |
1418 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1419 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1420 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1421 | both] |
d50284c4 CE |
1422 | --with-aix-soname=aix|svr4|both |
1423 | shared library versioning (aka "SONAME") variant to | |
1424 | provide on AIX, [default=aix]. | |
8d138742 | 1425 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1426 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1427 | compiler's sysroot if not specified). | |
b0322a85 CE |
1428 | |
1429 | ||
1430 | Some influential environment variables: | |
1431 | CC C compiler command | |
1432 | CFLAGS C compiler flags | |
1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1434 | nonstandard directory <lib dir> | |
1435 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1436 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1437 | you have headers in a nonstandard directory <include dir> | |
d50284c4 CE |
1438 | LT_SYS_LIBRARY_PATH |
1439 | User-defined run-time library search path. | |
b0322a85 CE |
1440 | CPP C preprocessor |
1441 | ||
1442 | Use these variables to override the choices made by `configure' or to help | |
1443 | it to find libraries and programs with nonstandard names/locations. | |
1444 | ||
1445 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1446 | _ACEOF | |
1447 | ac_status=$? | |
1448 | fi | |
1449 | ||
1450 | if test "$ac_init_help" = "recursive"; then | |
1451 | # If there are subdirs, report their specific --help. | |
1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1453 | test -d "$ac_dir" || | |
1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1455 | continue | |
1456 | ac_builddir=. | |
1457 | ||
1458 | case "$ac_dir" in | |
1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1460 | *) | |
1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1462 | # A ".." for each directory in $ac_dir_suffix. | |
1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1464 | case $ac_top_builddir_sub in | |
1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1467 | esac ;; | |
1468 | esac | |
1469 | ac_abs_top_builddir=$ac_pwd | |
1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1471 | # for backward compatibility: | |
1472 | ac_top_builddir=$ac_top_build_prefix | |
1473 | ||
1474 | case $srcdir in | |
1475 | .) # We are building in place. | |
1476 | ac_srcdir=. | |
1477 | ac_top_srcdir=$ac_top_builddir_sub | |
1478 | ac_abs_top_srcdir=$ac_pwd ;; | |
1479 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1480 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1481 | ac_top_srcdir=$srcdir | |
1482 | ac_abs_top_srcdir=$srcdir ;; | |
1483 | *) # Relative name. | |
1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1487 | esac | |
1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1489 | ||
1490 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1491 | # Check for guested configure. | |
1492 | if test -f "$ac_srcdir/configure.gnu"; then | |
1493 | echo && | |
1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1495 | elif test -f "$ac_srcdir/configure"; then | |
1496 | echo && | |
1497 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1498 | else | |
1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1500 | fi || ac_status=$? | |
1501 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1502 | done | |
1503 | fi | |
1504 | ||
1505 | test -n "$ac_init_help" && exit $ac_status | |
1506 | if $ac_init_version; then | |
1507 | cat <<\_ACEOF | |
1508 | liblock configure 0.60 | |
1509 | generated by GNU Autoconf 2.69 | |
1510 | ||
1511 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1512 | This configure script is free software; the Free Software Foundation | |
1513 | gives unlimited permission to copy, distribute and modify it. | |
1514 | _ACEOF | |
1515 | exit | |
1516 | fi | |
1517 | ||
1518 | ## ------------------------ ## | |
1519 | ## Autoconf initialization. ## | |
1520 | ## ------------------------ ## | |
1521 | ||
1522 | # ac_fn_c_try_compile LINENO | |
1523 | # -------------------------- | |
1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1525 | ac_fn_c_try_compile () | |
1526 | { | |
1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1528 | rm -f conftest.$ac_objext | |
1529 | if { { ac_try="$ac_compile" | |
1530 | case "(($ac_try" in | |
1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1532 | *) ac_try_echo=$ac_try;; | |
1533 | esac | |
1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1535 | $as_echo "$ac_try_echo"; } >&5 | |
1536 | (eval "$ac_compile") 2>conftest.err | |
1537 | ac_status=$? | |
1538 | if test -s conftest.err; then | |
1539 | grep -v '^ *+' conftest.err >conftest.er1 | |
1540 | cat conftest.er1 >&5 | |
1541 | mv -f conftest.er1 conftest.err | |
1542 | fi | |
1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1544 | test $ac_status = 0; } && { | |
1545 | test -z "$ac_c_werror_flag" || | |
1546 | test ! -s conftest.err | |
1547 | } && test -s conftest.$ac_objext; then : | |
1548 | ac_retval=0 | |
1549 | else | |
1550 | $as_echo "$as_me: failed program was:" >&5 | |
1551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1552 | ||
1553 | ac_retval=1 | |
1554 | fi | |
1555 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1556 | as_fn_set_status $ac_retval | |
1557 | ||
1558 | } # ac_fn_c_try_compile | |
1559 | ||
1560 | # ac_fn_c_try_link LINENO | |
1561 | # ----------------------- | |
1562 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1563 | ac_fn_c_try_link () | |
1564 | { | |
1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1567 | if { { ac_try="$ac_link" | |
1568 | case "(($ac_try" in | |
1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1570 | *) ac_try_echo=$ac_try;; | |
1571 | esac | |
1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1573 | $as_echo "$ac_try_echo"; } >&5 | |
1574 | (eval "$ac_link") 2>conftest.err | |
1575 | ac_status=$? | |
1576 | if test -s conftest.err; then | |
1577 | grep -v '^ *+' conftest.err >conftest.er1 | |
1578 | cat conftest.er1 >&5 | |
1579 | mv -f conftest.er1 conftest.err | |
1580 | fi | |
1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1582 | test $ac_status = 0; } && { | |
1583 | test -z "$ac_c_werror_flag" || | |
1584 | test ! -s conftest.err | |
1585 | } && test -s conftest$ac_exeext && { | |
1586 | test "$cross_compiling" = yes || | |
1587 | test -x conftest$ac_exeext | |
1588 | }; then : | |
1589 | ac_retval=0 | |
1590 | else | |
1591 | $as_echo "$as_me: failed program was:" >&5 | |
1592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1593 | |
b0322a85 CE |
1594 | ac_retval=1 |
1595 | fi | |
1596 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1597 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1598 | # interfere with the next link command; also delete a directory that is | |
1599 | # left behind by Apple's compiler. We do this before executing the actions. | |
1600 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1601 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1602 | as_fn_set_status $ac_retval | |
1603 | ||
1604 | } # ac_fn_c_try_link | |
1605 | ||
1606 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1607 | # ------------------------------------------------------- | |
1608 | # Tests whether HEADER exists and can be compiled using the include files in | |
1609 | # INCLUDES, setting the cache variable VAR accordingly. | |
1610 | ac_fn_c_check_header_compile () | |
1611 | { | |
1612 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1614 | $as_echo_n "checking for $2... " >&6; } | |
1615 | if eval \${$3+:} false; then : | |
1616 | $as_echo_n "(cached) " >&6 | |
1617 | else | |
1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1619 | /* end confdefs.h. */ | |
1620 | $4 | |
1621 | #include <$2> | |
1622 | _ACEOF | |
1623 | if ac_fn_c_try_compile "$LINENO"; then : | |
1624 | eval "$3=yes" | |
1625 | else | |
1626 | eval "$3=no" | |
1627 | fi | |
1628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1629 | fi | |
1630 | eval ac_res=\$$3 | |
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1632 | $as_echo "$ac_res" >&6; } | |
1633 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1634 | ||
1635 | } # ac_fn_c_check_header_compile | |
1636 | ||
1637 | # ac_fn_c_try_cpp LINENO | |
1638 | # ---------------------- | |
1639 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1640 | ac_fn_c_try_cpp () | |
1641 | { | |
1642 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1643 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1644 | case "(($ac_try" in | |
1645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1646 | *) ac_try_echo=$ac_try;; | |
1647 | esac | |
1648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1649 | $as_echo "$ac_try_echo"; } >&5 | |
1650 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1651 | ac_status=$? | |
1652 | if test -s conftest.err; then | |
1653 | grep -v '^ *+' conftest.err >conftest.er1 | |
1654 | cat conftest.er1 >&5 | |
1655 | mv -f conftest.er1 conftest.err | |
1656 | fi | |
1657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1658 | test $ac_status = 0; } > conftest.i && { | |
1659 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1660 | test ! -s conftest.err | |
1661 | }; then : | |
1662 | ac_retval=0 | |
1663 | else | |
1664 | $as_echo "$as_me: failed program was:" >&5 | |
1665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1666 | ||
1667 | ac_retval=1 | |
1668 | fi | |
1669 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1670 | as_fn_set_status $ac_retval | |
1671 | ||
1672 | } # ac_fn_c_try_cpp | |
1673 | ||
1674 | # ac_fn_c_try_run LINENO | |
1675 | # ---------------------- | |
1676 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1677 | # that executables *can* be run. | |
1678 | ac_fn_c_try_run () | |
1679 | { | |
1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1681 | if { { ac_try="$ac_link" | |
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_link") 2>&5 | |
1689 | ac_status=$? | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1692 | { { case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_try") 2>&5 | |
1699 | ac_status=$? | |
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1701 | test $ac_status = 0; }; }; then : | |
1702 | ac_retval=0 | |
1703 | else | |
1704 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1705 | $as_echo "$as_me: failed program was:" >&5 | |
1706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1707 | ||
1708 | ac_retval=$ac_status | |
1709 | fi | |
1710 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1712 | as_fn_set_status $ac_retval | |
1713 | ||
1714 | } # ac_fn_c_try_run | |
1715 | ||
1716 | # ac_fn_c_check_func LINENO FUNC VAR | |
1717 | # ---------------------------------- | |
1718 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1719 | ac_fn_c_check_func () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1723 | $as_echo_n "checking for $2... " >&6; } | |
1724 | if eval \${$3+:} false; then : | |
1725 | $as_echo_n "(cached) " >&6 | |
1726 | else | |
1727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1728 | /* end confdefs.h. */ | |
1729 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1731 | #define $2 innocuous_$2 | |
1732 | ||
1733 | /* System header to define __stub macros and hopefully few prototypes, | |
1734 | which can conflict with char $2 (); below. | |
1735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1736 | <limits.h> exists even on freestanding compilers. */ | |
1737 | ||
1738 | #ifdef __STDC__ | |
1739 | # include <limits.h> | |
1740 | #else | |
1741 | # include <assert.h> | |
1742 | #endif | |
d9898ee8 | 1743 | |
b0322a85 | 1744 | #undef $2 |
d9898ee8 | 1745 | |
b0322a85 CE |
1746 | /* Override any GCC internal prototype to avoid an error. |
1747 | Use char because int might match the return type of a GCC | |
1748 | builtin and then its argument prototype would still apply. */ | |
1749 | #ifdef __cplusplus | |
1750 | extern "C" | |
1751 | #endif | |
1752 | char $2 (); | |
1753 | /* The GNU C library defines this for functions which it implements | |
1754 | to always fail with ENOSYS. Some functions are actually named | |
1755 | something starting with __ and the normal name is an alias. */ | |
1756 | #if defined __stub_$2 || defined __stub___$2 | |
1757 | choke me | |
1758 | #endif | |
d9898ee8 | 1759 | |
b0322a85 CE |
1760 | int |
1761 | main () | |
1762 | { | |
1763 | return $2 (); | |
1764 | ; | |
1765 | return 0; | |
1766 | } | |
d9898ee8 | 1767 | _ACEOF |
b0322a85 CE |
1768 | if ac_fn_c_try_link "$LINENO"; then : |
1769 | eval "$3=yes" | |
1770 | else | |
1771 | eval "$3=no" | |
1772 | fi | |
1773 | rm -f core conftest.err conftest.$ac_objext \ | |
1774 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 1775 | fi |
b0322a85 CE |
1776 | eval ac_res=\$$3 |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1778 | $as_echo "$ac_res" >&6; } | |
1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1780 | |
b0322a85 | 1781 | } # ac_fn_c_check_func |
d9898ee8 | 1782 | |
b0322a85 CE |
1783 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1784 | # ------------------------------------------------------- | |
1785 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1786 | # the include files in INCLUDES and setting the cache variable VAR | |
1787 | # accordingly. | |
1788 | ac_fn_c_check_header_mongrel () | |
1789 | { | |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | if eval \${$3+:} false; then : | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
1794 | if eval \${$3+:} false; then : | |
1795 | $as_echo_n "(cached) " >&6 | |
1796 | fi | |
1797 | eval ac_res=\$$3 | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1799 | $as_echo "$ac_res" >&6; } | |
1800 | else | |
1801 | # Is the header compilable? | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1803 | $as_echo_n "checking $2 usability... " >&6; } | |
1804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1805 | /* end confdefs.h. */ | |
1806 | $4 | |
1807 | #include <$2> | |
1808 | _ACEOF | |
1809 | if ac_fn_c_try_compile "$LINENO"; then : | |
1810 | ac_header_compiler=yes | |
1811 | else | |
1812 | ac_header_compiler=no | |
1813 | fi | |
1814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1816 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 1817 | |
b0322a85 CE |
1818 | # Is the header present? |
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1820 | $as_echo_n "checking $2 presence... " >&6; } | |
1821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1822 | /* end confdefs.h. */ | |
1823 | #include <$2> | |
1824 | _ACEOF | |
1825 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1826 | ac_header_preproc=yes | |
1827 | else | |
1828 | ac_header_preproc=no | |
1829 | fi | |
1830 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1832 | $as_echo "$ac_header_preproc" >&6; } | |
dd184caf | 1833 | |
b0322a85 CE |
1834 | # So? What about this header? |
1835 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1836 | yes:no: ) | |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1838 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1840 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1841 | ;; | |
1842 | no:yes:* ) | |
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1844 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1846 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1848 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1850 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1852 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1853 | ( $as_echo "## -------------------------------------------------- ## | |
1854 | ## Report this to courier-users@lists.sourceforge.net ## | |
1855 | ## -------------------------------------------------- ##" | |
1856 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1857 | ;; | |
1858 | esac | |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1860 | $as_echo_n "checking for $2... " >&6; } | |
1861 | if eval \${$3+:} false; then : | |
1862 | $as_echo_n "(cached) " >&6 | |
1863 | else | |
1864 | eval "$3=\$ac_header_compiler" | |
1865 | fi | |
1866 | eval ac_res=\$$3 | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1868 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 1869 | fi |
b0322a85 | 1870 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d9898ee8 | 1871 | |
b0322a85 | 1872 | } # ac_fn_c_check_header_mongrel |
d9898ee8 | 1873 | |
b0322a85 CE |
1874 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1875 | # ------------------------------------------- | |
1876 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1877 | # variable VAR accordingly. | |
1878 | ac_fn_c_check_type () | |
1879 | { | |
1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1882 | $as_echo_n "checking for $2... " >&6; } | |
1883 | if eval \${$3+:} false; then : | |
1884 | $as_echo_n "(cached) " >&6 | |
1885 | else | |
1886 | eval "$3=no" | |
1887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1888 | /* end confdefs.h. */ | |
1889 | $4 | |
1890 | int | |
1891 | main () | |
1892 | { | |
1893 | if (sizeof ($2)) | |
1894 | return 0; | |
1895 | ; | |
1896 | return 0; | |
1897 | } | |
d9898ee8 | 1898 | _ACEOF |
b0322a85 CE |
1899 | if ac_fn_c_try_compile "$LINENO"; then : |
1900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1901 | /* end confdefs.h. */ | |
1902 | $4 | |
1903 | int | |
1904 | main () | |
1905 | { | |
1906 | if (sizeof (($2))) | |
1907 | return 0; | |
1908 | ; | |
1909 | return 0; | |
1910 | } | |
1911 | _ACEOF | |
1912 | if ac_fn_c_try_compile "$LINENO"; then : | |
1913 | ||
1914 | else | |
1915 | eval "$3=yes" | |
1916 | fi | |
1917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1918 | fi | |
1919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 1920 | fi |
b0322a85 CE |
1921 | eval ac_res=\$$3 |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1923 | $as_echo "$ac_res" >&6; } | |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1925 | ||
1926 | } # ac_fn_c_check_type | |
dd184caf | 1927 | cat >config.log <<_ACEOF |
d9898ee8 | 1928 | This file contains any messages produced by compilers while |
1929 | running configure, to aid debugging if configure makes a mistake. | |
1930 | ||
1931 | It was created by liblock $as_me 0.60, which was | |
b0322a85 | 1932 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1933 | |
1934 | $ $0 $@ | |
1935 | ||
1936 | _ACEOF | |
dd184caf | 1937 | exec 5>>config.log |
d9898ee8 | 1938 | { |
1939 | cat <<_ASUNAME | |
1940 | ## --------- ## | |
1941 | ## Platform. ## | |
1942 | ## --------- ## | |
1943 | ||
1944 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1945 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1946 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1947 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1948 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1949 | ||
1950 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1951 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1952 | ||
1953 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1954 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1955 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1956 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1957 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1958 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1959 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1960 | ||
1961 | _ASUNAME | |
1962 | ||
1963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1964 | for as_dir in $PATH | |
1965 | do | |
1966 | IFS=$as_save_IFS | |
1967 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1968 | $as_echo "PATH: $as_dir" |
1969 | done | |
dd184caf | 1970 | IFS=$as_save_IFS |
d9898ee8 | 1971 | |
1972 | } >&5 | |
1973 | ||
1974 | cat >&5 <<_ACEOF | |
1975 | ||
1976 | ||
1977 | ## ----------- ## | |
1978 | ## Core tests. ## | |
1979 | ## ----------- ## | |
1980 | ||
1981 | _ACEOF | |
1982 | ||
1983 | ||
1984 | # Keep a trace of the command line. | |
1985 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1986 | # Strip out --silent because we don't want to record it for future runs. | |
1987 | # Also quote any args containing shell meta-characters. | |
1988 | # Make two passes to allow for proper duplicate-argument suppression. | |
1989 | ac_configure_args= | |
1990 | ac_configure_args0= | |
1991 | ac_configure_args1= | |
d9898ee8 | 1992 | ac_must_keep_next=false |
1993 | for ac_pass in 1 2 | |
1994 | do | |
1995 | for ac_arg | |
1996 | do | |
1997 | case $ac_arg in | |
1998 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1999 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2000 | | -silent | --silent | --silen | --sile | --sil) | |
2001 | continue ;; | |
dd184caf | 2002 | *\'*) |
8d138742 | 2003 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2004 | esac |
2005 | case $ac_pass in | |
b0322a85 | 2006 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2007 | 2) |
b0322a85 | 2008 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2009 | if test $ac_must_keep_next = true; then |
2010 | ac_must_keep_next=false # Got value, back to normal. | |
2011 | else | |
2012 | case $ac_arg in | |
2013 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2014 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2015 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2016 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2017 | case "$ac_configure_args0 " in | |
2018 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2019 | esac | |
2020 | ;; | |
2021 | -* ) ac_must_keep_next=true ;; | |
2022 | esac | |
2023 | fi | |
b0322a85 | 2024 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2025 | ;; |
2026 | esac | |
2027 | done | |
2028 | done | |
b0322a85 CE |
2029 | { ac_configure_args0=; unset ac_configure_args0;} |
2030 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2031 | |
2032 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2033 | # config.log. We remove comments because anyway the quotes in there | |
2034 | # would cause problems or look ugly. | |
dd184caf | 2035 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2036 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2037 | trap 'exit_status=$? |
2038 | # Save into config.log some information that might help in debugging. | |
2039 | { | |
2040 | echo | |
2041 | ||
b0322a85 | 2042 | $as_echo "## ---------------- ## |
d9898ee8 | 2043 | ## Cache variables. ## |
b0322a85 | 2044 | ## ---------------- ##" |
d9898ee8 | 2045 | echo |
2046 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2047 | ( |
2048 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2049 | eval ac_val=\$$ac_var | |
2050 | case $ac_val in #( | |
2051 | *${as_nl}*) | |
2052 | case $ac_var in #( | |
b0322a85 | 2053 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2054 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2055 | esac |
2056 | case $ac_var in #( | |
2057 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2058 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2059 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2060 | esac ;; |
2061 | esac | |
2062 | done | |
d9898ee8 | 2063 | (set) 2>&1 | |
dd184caf | 2064 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2065 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2066 | sed -n \ |
dd184caf | 2067 | "s/'\''/'\''\\\\'\'''\''/g; |
2068 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2069 | ;; #( | |
d9898ee8 | 2070 | *) |
dd184caf | 2071 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2072 | ;; |
dd184caf | 2073 | esac | |
2074 | sort | |
2075 | ) | |
d9898ee8 | 2076 | echo |
2077 | ||
b0322a85 | 2078 | $as_echo "## ----------------- ## |
d9898ee8 | 2079 | ## Output variables. ## |
b0322a85 | 2080 | ## ----------------- ##" |
d9898ee8 | 2081 | echo |
2082 | for ac_var in $ac_subst_vars | |
2083 | do | |
dd184caf | 2084 | eval ac_val=\$$ac_var |
2085 | case $ac_val in | |
8d138742 | 2086 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2087 | esac |
8d138742 | 2088 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2089 | done | sort |
2090 | echo | |
2091 | ||
2092 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2093 | $as_echo "## ------------------- ## |
dd184caf | 2094 | ## File substitutions. ## |
b0322a85 | 2095 | ## ------------------- ##" |
d9898ee8 | 2096 | echo |
2097 | for ac_var in $ac_subst_files | |
2098 | do | |
dd184caf | 2099 | eval ac_val=\$$ac_var |
2100 | case $ac_val in | |
8d138742 | 2101 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2102 | esac |
8d138742 | 2103 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2104 | done | sort |
2105 | echo | |
2106 | fi | |
2107 | ||
2108 | if test -s confdefs.h; then | |
b0322a85 | 2109 | $as_echo "## ----------- ## |
d9898ee8 | 2110 | ## confdefs.h. ## |
b0322a85 | 2111 | ## ----------- ##" |
d9898ee8 | 2112 | echo |
dd184caf | 2113 | cat confdefs.h |
d9898ee8 | 2114 | echo |
2115 | fi | |
2116 | test "$ac_signal" != 0 && | |
8d138742 CE |
2117 | $as_echo "$as_me: caught signal $ac_signal" |
2118 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2119 | } >&5 |
dd184caf | 2120 | rm -f core *.core core.conftest.* && |
2121 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2122 | exit $exit_status |
dd184caf | 2123 | ' 0 |
d9898ee8 | 2124 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2125 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2126 | done |
2127 | ac_signal=0 | |
2128 | ||
2129 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2130 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2131 | |
b0322a85 CE |
2132 | $as_echo "/* confdefs.h */" > confdefs.h |
2133 | ||
d9898ee8 | 2134 | # Predefined preprocessor variables. |
2135 | ||
2136 | cat >>confdefs.h <<_ACEOF | |
2137 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2138 | _ACEOF | |
2139 | ||
d9898ee8 | 2140 | cat >>confdefs.h <<_ACEOF |
2141 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2142 | _ACEOF | |
2143 | ||
d9898ee8 | 2144 | cat >>confdefs.h <<_ACEOF |
2145 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2146 | _ACEOF | |
2147 | ||
d9898ee8 | 2148 | cat >>confdefs.h <<_ACEOF |
2149 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2150 | _ACEOF | |
2151 | ||
d9898ee8 | 2152 | cat >>confdefs.h <<_ACEOF |
2153 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2154 | _ACEOF | |
2155 | ||
b0322a85 CE |
2156 | cat >>confdefs.h <<_ACEOF |
2157 | #define PACKAGE_URL "$PACKAGE_URL" | |
2158 | _ACEOF | |
2159 | ||
d9898ee8 | 2160 | |
2161 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2162 | # Prefer an explicitly selected file to automatically selected ones. |
2163 | ac_site_file1=NONE | |
2164 | ac_site_file2=NONE | |
dd184caf | 2165 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2166 | # We do not want a PATH search for config.site. |
2167 | case $CONFIG_SITE in #(( | |
2168 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2169 | */*) ac_site_file1=$CONFIG_SITE;; | |
2170 | *) ac_site_file1=./$CONFIG_SITE;; | |
2171 | esac | |
dd184caf | 2172 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2173 | ac_site_file1=$prefix/share/config.site |
2174 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2175 | else |
8d138742 CE |
2176 | ac_site_file1=$ac_default_prefix/share/config.site |
2177 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2178 | fi |
8d138742 | 2179 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2180 | do |
8d138742 | 2181 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2182 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2184 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2185 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2186 | . "$ac_site_file" \ |
2187 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2188 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2189 | as_fn_error $? "failed to load site script $ac_site_file | |
2190 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2191 | fi |
2192 | done | |
2193 | ||
2194 | if test -r "$cache_file"; then | |
b0322a85 CE |
2195 | # Some versions of bash will fail to source /dev/null (special files |
2196 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2197 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2199 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2200 | case $cache_file in |
dd184caf | 2201 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2202 | *) . "./$cache_file";; | |
d9898ee8 | 2203 | esac |
2204 | fi | |
2205 | else | |
b0322a85 | 2206 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2207 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2208 | >$cache_file |
2209 | fi | |
2210 | ||
2211 | # Check that the precious variables saved in the cache have kept the same | |
2212 | # value. | |
2213 | ac_cache_corrupted=false | |
dd184caf | 2214 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2215 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2216 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2217 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2218 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2219 | case $ac_old_set,$ac_new_set in |
2220 | set,) | |
b0322a85 | 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2222 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2223 | ac_cache_corrupted=: ;; |
2224 | ,set) | |
b0322a85 | 2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2226 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2227 | ac_cache_corrupted=: ;; |
2228 | ,);; | |
2229 | *) | |
2230 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2231 | # differences in whitespace do not lead to failure. |
2232 | ac_old_val_w=`echo x $ac_old_val` | |
2233 | ac_new_val_w=`echo x $ac_new_val` | |
2234 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2236 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2237 | ac_cache_corrupted=: | |
2238 | else | |
b0322a85 | 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2240 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2241 | eval $ac_var=\$ac_old_val | |
2242 | fi | |
b0322a85 | 2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2244 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2246 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2247 | fi;; |
2248 | esac | |
2249 | # Pass precious variables to config.status. | |
2250 | if test "$ac_new_set" = set; then | |
2251 | case $ac_new_val in | |
8d138742 | 2252 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2253 | *) ac_arg=$ac_var=$ac_new_val ;; |
2254 | esac | |
2255 | case " $ac_configure_args " in | |
2256 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2257 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2258 | esac |
2259 | fi | |
2260 | done | |
2261 | if $ac_cache_corrupted; then | |
b0322a85 | 2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2265 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2266 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2267 | fi |
b0322a85 CE |
2268 | ## -------------------- ## |
2269 | ## Main body of script. ## | |
2270 | ## -------------------- ## | |
d9898ee8 | 2271 | |
dd184caf | 2272 | ac_ext=c |
2273 | ac_cpp='$CPP $CPPFLAGS' | |
2274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2277 | |
2278 | ||
2279 | ||
2280 | >confdefs.h # Kill PACKAGE_ macros | |
2281 | ||
2282 | ||
d9898ee8 | 2283 | ac_aux_dir= |
b0322a85 | 2284 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2285 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2286 | ac_aux_dir=$ac_dir |
2287 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2288 | break | |
dd184caf | 2289 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2290 | ac_aux_dir=$ac_dir |
2291 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2292 | break | |
dd184caf | 2293 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2294 | ac_aux_dir=$ac_dir |
2295 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2296 | break | |
2297 | fi | |
2298 | done | |
2299 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2300 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2301 | fi |
dd184caf | 2302 | |
2303 | # These three variables are undocumented and unsupported, | |
2304 | # and are intended to be withdrawn in a future Autoconf release. | |
2305 | # They can cause serious problems if a builder's source tree is in a directory | |
2306 | # whose full name contains unusual characters. | |
2307 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2308 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2309 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2310 | ||
d9898ee8 | 2311 | |
b0322a85 CE |
2312 | ac_config_headers="$ac_config_headers config.h" |
2313 | ||
d50284c4 | 2314 | am__api_version='1.15' |
b0322a85 | 2315 | |
d9898ee8 | 2316 | # Find a good install program. We prefer a C program (faster), |
2317 | # so one script is as good as another. But avoid the broken or | |
2318 | # incompatible versions: | |
2319 | # SysV /etc/install, /usr/sbin/install | |
2320 | # SunOS /usr/etc/install | |
2321 | # IRIX /sbin/install | |
2322 | # AIX /bin/install | |
2323 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2324 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2325 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2326 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2327 | # OS/2's system install, which has a completely different semantic | |
2328 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2329 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2331 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2332 | if test -z "$INSTALL"; then |
b0322a85 | 2333 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2334 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2335 | else |
2336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2337 | for as_dir in $PATH | |
2338 | do | |
2339 | IFS=$as_save_IFS | |
2340 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2341 | # Account for people who put trailing slashes in PATH elements. |
2342 | case $as_dir/ in #(( | |
2343 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2344 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2345 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2346 | /usr/ucb/* ) ;; |
2347 | *) | |
2348 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2349 | # Don't use installbsd from OSF since it installs stuff as root | |
2350 | # by default. | |
2351 | for ac_prog in ginstall scoinst install; do | |
2352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2353 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2354 | if test $ac_prog = install && |
2355 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2356 | # AIX install. It has an incompatible calling convention. | |
2357 | : | |
2358 | elif test $ac_prog = install && | |
2359 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2360 | # program-specific install script used by HP pwplus--don't use. | |
2361 | : | |
2362 | else | |
8d138742 CE |
2363 | rm -rf conftest.one conftest.two conftest.dir |
2364 | echo one > conftest.one | |
2365 | echo two > conftest.two | |
2366 | mkdir conftest.dir | |
2367 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2368 | test -s conftest.one && test -s conftest.two && | |
2369 | test -s conftest.dir/conftest.one && | |
2370 | test -s conftest.dir/conftest.two | |
2371 | then | |
2372 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2373 | break 3 | |
2374 | fi | |
d9898ee8 | 2375 | fi |
2376 | fi | |
2377 | done | |
2378 | done | |
2379 | ;; | |
2380 | esac | |
8d138742 | 2381 | |
b0322a85 | 2382 | done |
dd184caf | 2383 | IFS=$as_save_IFS |
d9898ee8 | 2384 | |
8d138742 | 2385 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2386 | |
2387 | fi | |
2388 | if test "${ac_cv_path_install+set}" = set; then | |
2389 | INSTALL=$ac_cv_path_install | |
2390 | else | |
dd184caf | 2391 | # As a last resort, use the slow shell script. Don't cache a |
2392 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2393 | # break other packages using the cache if that directory is |
dd184caf | 2394 | # removed, or if the value is a relative name. |
d9898ee8 | 2395 | INSTALL=$ac_install_sh |
2396 | fi | |
2397 | fi | |
b0322a85 | 2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2399 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2400 | |
2401 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2402 | # It thinks the first close brace ends the variable substitution. | |
2403 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2404 | ||
2405 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2406 | ||
2407 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2408 | ||
b0322a85 | 2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2410 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2411 | # Reject unsafe characters in $srcdir or the absolute working directory |
2412 | # name. Accept space and tab only in the latter. | |
2413 | am_lf=' | |
2414 | ' | |
2415 | case `pwd` in | |
2416 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2417 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2418 | esac |
2419 | case $srcdir in | |
2420 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2421 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2422 | esac |
2423 | ||
b0322a85 | 2424 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2425 | # arguments. Must try -L first in case configure is actually a |
2426 | # symlink; some systems play weird games with the mod time of symlinks | |
2427 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2428 | # directory). | |
2429 | if ( | |
b0322a85 CE |
2430 | am_has_slept=no |
2431 | for am_try in 1 2; do | |
2432 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2433 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2434 | if test "$*" = "X"; then | |
2435 | # -L didn't work. | |
2436 | set X `ls -t "$srcdir/configure" conftest.file` | |
2437 | fi | |
2438 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2439 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2440 | ||
2441 | # If neither matched, then we have a broken ls. This can happen | |
2442 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2443 | # broken ls alias from the environment. This has actually | |
2444 | # happened. Such a system could not be considered "sane". | |
2445 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2446 | alias in your environment" "$LINENO" 5 | |
2447 | fi | |
2448 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2449 | break | |
2450 | fi | |
2451 | # Just in case. | |
2452 | sleep 1 | |
2453 | am_has_slept=yes | |
2454 | done | |
d9898ee8 | 2455 | test "$2" = conftest.file |
2456 | ) | |
2457 | then | |
2458 | # Ok. | |
2459 | : | |
2460 | else | |
b0322a85 CE |
2461 | as_fn_error $? "newly created file is older than distributed files! |
2462 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2463 | fi |
b0322a85 | 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2465 | $as_echo "yes" >&6; } |
b0322a85 CE |
2466 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2467 | # generated files are strictly newer. | |
2468 | am_sleep_pid= | |
2469 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2470 | ( sleep 1 ) & | |
2471 | am_sleep_pid=$! | |
2472 | fi | |
2473 | ||
2474 | rm -f conftest.file | |
2475 | ||
d9898ee8 | 2476 | test "$program_prefix" != NONE && |
dd184caf | 2477 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2478 | # Use a double $ so make ignores it. |
2479 | test "$program_suffix" != NONE && | |
dd184caf | 2480 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2481 | # Double any \ or $. |
d9898ee8 | 2482 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2483 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2484 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2485 | |
d50284c4 CE |
2486 | # Expand $ac_aux_dir to an absolute path. |
2487 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2488 | |
8d138742 CE |
2489 | if test x"${MISSING+set}" != xset; then |
2490 | case $am_aux_dir in | |
2491 | *\ * | *\ *) | |
2492 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2493 | *) | |
2494 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2495 | esac | |
2496 | fi | |
d9898ee8 | 2497 | # Use eval to expand $SHELL |
b0322a85 CE |
2498 | if eval "$MISSING --is-lightweight"; then |
2499 | am_missing_run="$MISSING " | |
d9898ee8 | 2500 | else |
2501 | am_missing_run= | |
b0322a85 CE |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2503 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2504 | fi |
2505 | ||
d50284c4 | 2506 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2507 | case $am_aux_dir in |
2508 | *\ * | *\ *) | |
2509 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2510 | *) | |
2511 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2512 | esac | |
2513 | fi | |
2514 | ||
b0322a85 CE |
2515 | # Installed binaries are usually stripped using 'strip' when the user |
2516 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2517 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2518 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2519 | if test "$cross_compiling" != no; then |
2520 | if test -n "$ac_tool_prefix"; then | |
2521 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2522 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2524 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2525 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2526 | $as_echo_n "(cached) " >&6 |
2527 | else | |
2528 | if test -n "$STRIP"; then | |
2529 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2530 | else | |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
2537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2538 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2540 | break 2 |
2541 | fi | |
2542 | done | |
b0322a85 | 2543 | done |
8d138742 CE |
2544 | IFS=$as_save_IFS |
2545 | ||
2546 | fi | |
2547 | fi | |
2548 | STRIP=$ac_cv_prog_STRIP | |
2549 | if test -n "$STRIP"; then | |
b0322a85 | 2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2551 | $as_echo "$STRIP" >&6; } |
2552 | else | |
b0322a85 | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2554 | $as_echo "no" >&6; } |
2555 | fi | |
2556 | ||
2557 | ||
2558 | fi | |
2559 | if test -z "$ac_cv_prog_STRIP"; then | |
2560 | ac_ct_STRIP=$STRIP | |
2561 | # Extract the first word of "strip", so it can be a program name with args. | |
2562 | set dummy strip; ac_word=$2 | |
b0322a85 | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2564 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2565 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2566 | $as_echo_n "(cached) " >&6 |
2567 | else | |
2568 | if test -n "$ac_ct_STRIP"; then | |
2569 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2570 | else | |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2572 | for as_dir in $PATH | |
2573 | do | |
2574 | IFS=$as_save_IFS | |
2575 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
2577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2578 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2580 | break 2 |
2581 | fi | |
2582 | done | |
b0322a85 | 2583 | done |
8d138742 CE |
2584 | IFS=$as_save_IFS |
2585 | ||
2586 | fi | |
2587 | fi | |
2588 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2589 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2591 | $as_echo "$ac_ct_STRIP" >&6; } |
2592 | else | |
b0322a85 | 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2594 | $as_echo "no" >&6; } |
2595 | fi | |
2596 | ||
2597 | if test "x$ac_ct_STRIP" = x; then | |
2598 | STRIP=":" | |
2599 | else | |
2600 | case $cross_compiling:$ac_tool_warned in | |
2601 | yes:) | |
b0322a85 | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2604 | ac_tool_warned=yes ;; | |
2605 | esac | |
2606 | STRIP=$ac_ct_STRIP | |
2607 | fi | |
2608 | else | |
2609 | STRIP="$ac_cv_prog_STRIP" | |
2610 | fi | |
2611 | ||
d9898ee8 | 2612 | fi |
8d138742 | 2613 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2614 | |
b0322a85 | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2616 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2617 | if test -z "$MKDIR_P"; then |
b0322a85 | 2618 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2619 | $as_echo_n "(cached) " >&6 |
dd184caf | 2620 | else |
2621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2622 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2623 | do | |
2624 | IFS=$as_save_IFS | |
2625 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2626 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2627 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2628 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2629 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2630 | 'mkdir (GNU coreutils) '* | \ | |
2631 | 'mkdir (coreutils) '* | \ | |
2632 | 'mkdir (fileutils) '4.1*) | |
2633 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2634 | break 3;; | |
2635 | esac | |
2636 | done | |
2637 | done | |
b0322a85 | 2638 | done |
dd184caf | 2639 | IFS=$as_save_IFS |
2640 | ||
2641 | fi | |
2642 | ||
b0322a85 | 2643 | test -d ./--version && rmdir ./--version |
dd184caf | 2644 | if test "${ac_cv_path_mkdir+set}" = set; then |
2645 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2646 | else |
dd184caf | 2647 | # As a last resort, use the slow shell script. Don't cache a |
2648 | # value for MKDIR_P within a source directory, because that will | |
2649 | # break other packages using the cache if that directory is | |
2650 | # removed, or if the value is a relative name. | |
dd184caf | 2651 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2652 | fi |
2653 | fi | |
b0322a85 | 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2655 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2656 | |
d9898ee8 | 2657 | for ac_prog in gawk mawk nawk awk |
2658 | do | |
2659 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2660 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2662 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2663 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2664 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2665 | else |
2666 | if test -n "$AWK"; then | |
2667 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2668 | else | |
2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2670 | for as_dir in $PATH | |
2671 | do | |
2672 | IFS=$as_save_IFS | |
2673 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2674 | for ac_exec_ext in '' $ac_executable_extensions; do |
2675 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2676 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2678 | break 2 |
2679 | fi | |
2680 | done | |
b0322a85 | 2681 | done |
dd184caf | 2682 | IFS=$as_save_IFS |
d9898ee8 | 2683 | |
2684 | fi | |
2685 | fi | |
2686 | AWK=$ac_cv_prog_AWK | |
2687 | if test -n "$AWK"; then | |
b0322a85 | 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2689 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2690 | else |
b0322a85 | 2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2692 | $as_echo "no" >&6; } |
d9898ee8 | 2693 | fi |
2694 | ||
dd184caf | 2695 | |
d9898ee8 | 2696 | test -n "$AWK" && break |
2697 | done | |
2698 | ||
b0322a85 | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2700 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2701 | set x ${MAKE-make} | |
2702 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2703 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2704 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2705 | else |
2706 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2707 | SHELL = /bin/sh |
d9898ee8 | 2708 | all: |
dd184caf | 2709 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2710 | _ACEOF |
b0322a85 | 2711 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2712 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2713 | *@@@%%%=?*=@@@%%%*) | |
2714 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2715 | *) | |
2716 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2717 | esac | |
d9898ee8 | 2718 | rm -f conftest.make |
2719 | fi | |
dd184caf | 2720 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2722 | $as_echo "yes" >&6; } |
d9898ee8 | 2723 | SET_MAKE= |
2724 | else | |
b0322a85 | 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2726 | $as_echo "no" >&6; } |
d9898ee8 | 2727 | SET_MAKE="MAKE=${MAKE-make}" |
2728 | fi | |
2729 | ||
2730 | rm -rf .tst 2>/dev/null | |
2731 | mkdir .tst 2>/dev/null | |
2732 | if test -d .tst; then | |
2733 | am__leading_dot=. | |
2734 | else | |
2735 | am__leading_dot=_ | |
2736 | fi | |
2737 | rmdir .tst 2>/dev/null | |
2738 | ||
b0322a85 CE |
2739 | # Check whether --enable-silent-rules was given. |
2740 | if test "${enable_silent_rules+set}" = set; then : | |
2741 | enableval=$enable_silent_rules; | |
2742 | fi | |
2743 | ||
2744 | case $enable_silent_rules in # ((( | |
2745 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2746 | no) AM_DEFAULT_VERBOSITY=1;; | |
2747 | *) AM_DEFAULT_VERBOSITY=1;; | |
2748 | esac | |
2749 | am_make=${MAKE-make} | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2751 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2752 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2753 | $as_echo_n "(cached) " >&6 | |
2754 | else | |
2755 | if $as_echo 'TRUE=$(BAR$(V)) | |
2756 | BAR0=false | |
2757 | BAR1=true | |
2758 | V=1 | |
2759 | am__doit: | |
2760 | @$(TRUE) | |
2761 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2762 | am_cv_make_support_nested_variables=yes | |
2763 | else | |
2764 | am_cv_make_support_nested_variables=no | |
2765 | fi | |
2766 | fi | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2768 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2769 | if test $am_cv_make_support_nested_variables = yes; then | |
2770 | AM_V='$(V)' | |
2771 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2772 | else | |
2773 | AM_V=$AM_DEFAULT_VERBOSITY | |
2774 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2775 | fi | |
2776 | AM_BACKSLASH='\' | |
2777 | ||
dd184caf | 2778 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2779 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2780 | # is not polluted with repeated "-I." | |
2781 | am__isrc=' -I$(srcdir)' | |
2782 | # test to see if srcdir already configured | |
2783 | if test -f $srcdir/config.status; then | |
b0322a85 | 2784 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2785 | fi |
d9898ee8 | 2786 | fi |
2787 | ||
2788 | # test whether we have cygpath | |
2789 | if test -z "$CYGPATH_W"; then | |
2790 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2791 | CYGPATH_W='cygpath -w' | |
2792 | else | |
2793 | CYGPATH_W=echo | |
2794 | fi | |
2795 | fi | |
2796 | ||
2797 | ||
2798 | # Define the identity of the package. | |
2799 | PACKAGE='liblock' | |
2800 | VERSION='0.60' | |
2801 | ||
2802 | ||
2803 | # Some tools Automake needs. | |
2804 | ||
2805 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2806 | ||
2807 | ||
2808 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2809 | ||
2810 | ||
2811 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2812 | ||
2813 | ||
2814 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2815 | ||
2816 | ||
2817 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2818 | ||
b0322a85 CE |
2819 | # For better backward compatibility. To be removed once Automake 1.9.x |
2820 | # dies out for good. For more background, see: | |
2821 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2822 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2823 | mkdir_p='$(MKDIR_P)' | |
2824 | ||
d50284c4 CE |
2825 | # We need awk for the "check" target (and possibly the TAP driver). The |
2826 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2827 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2828 | # in the wild :-( We should find a proper way to deprecate it ... | |
2829 | AMTAR='$${TAR-tar}' | |
d9898ee8 | 2830 | |
d9898ee8 | 2831 | |
b0322a85 CE |
2832 | # We'll loop over all known methods to create a tar archive until one works. |
2833 | _am_tools='gnutar pax cpio none' | |
d9898ee8 | 2834 | |
b0322a85 | 2835 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d9898ee8 | 2836 | |
2837 | ||
2838 | ||
2839 | ||
2840 | ||
b0322a85 | 2841 | |
d50284c4 CE |
2842 | # POSIX will say in a future version that running "rm -f" with no argument |
2843 | # is OK; and we want to be able to make that assumption in our Makefile | |
2844 | # recipes. So use an aggressive probe to check that the usage we want is | |
2845 | # actually supported "in the wild" to an acceptable degree. | |
2846 | # See automake bug#10828. | |
2847 | # To make any issue more visible, cause the running configure to be aborted | |
2848 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2849 | # user can still override this though. | |
2850 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2851 | cat >&2 <<'END' | |
2852 | Oops! | |
2853 | ||
2854 | Your 'rm' program seems unable to run without file operands specified | |
2855 | on the command line, even when the '-f' option is present. This is contrary | |
2856 | to the behaviour of most rm programs out there, and not conforming with | |
2857 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2858 | ||
2859 | Please tell bug-automake@gnu.org about your system, including the value | |
2860 | of your $PATH and any error possibly output before this message. This | |
2861 | can help us improve future automake versions. | |
2862 | ||
2863 | END | |
2864 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2865 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2866 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2867 | echo >&2 | |
2868 | else | |
2869 | cat >&2 <<'END' | |
2870 | Aborting the configuration process, to ensure you take notice of the issue. | |
2871 | ||
2872 | You can download and install GNU coreutils to get an 'rm' implementation | |
2873 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2874 | ||
2875 | If you want to complete the configuration process using your problematic | |
2876 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2877 | to "yes", and re-run configure. | |
2878 | ||
2879 | END | |
2880 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2881 | fi | |
2882 | fi | |
2883 | ||
b0322a85 CE |
2884 | |
2885 | CFLAGS="-I.. -I${srcdir}/.. $CFLAGS" | |
2886 | ||
d9898ee8 | 2887 | for ac_prog in gawk mawk nawk awk |
2888 | do | |
2889 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2890 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2892 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2893 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2894 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2895 | else |
2896 | if test -n "$AWK"; then | |
2897 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2898 | else | |
2899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2900 | for as_dir in $PATH | |
2901 | do | |
2902 | IFS=$as_save_IFS | |
2903 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2904 | for ac_exec_ext in '' $ac_executable_extensions; do |
2905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2906 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2908 | break 2 |
2909 | fi | |
2910 | done | |
b0322a85 | 2911 | done |
dd184caf | 2912 | IFS=$as_save_IFS |
d9898ee8 | 2913 | |
2914 | fi | |
2915 | fi | |
2916 | AWK=$ac_cv_prog_AWK | |
2917 | if test -n "$AWK"; then | |
b0322a85 | 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2919 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2920 | else |
b0322a85 | 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2922 | $as_echo "no" >&6; } |
d9898ee8 | 2923 | fi |
2924 | ||
dd184caf | 2925 | |
d9898ee8 | 2926 | test -n "$AWK" && break |
2927 | done | |
2928 | ||
2929 | ac_ext=c | |
2930 | ac_cpp='$CPP $CPPFLAGS' | |
2931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2934 | if test -n "$ac_tool_prefix"; then | |
2935 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2936 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2938 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2939 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2940 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2941 | else |
2942 | if test -n "$CC"; then | |
2943 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do |
2951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2952 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2954 | break 2 |
2955 | fi | |
2956 | done | |
b0322a85 | 2957 | done |
dd184caf | 2958 | IFS=$as_save_IFS |
d9898ee8 | 2959 | |
2960 | fi | |
2961 | fi | |
2962 | CC=$ac_cv_prog_CC | |
2963 | if test -n "$CC"; then | |
b0322a85 | 2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2965 | $as_echo "$CC" >&6; } |
d9898ee8 | 2966 | else |
b0322a85 | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2968 | $as_echo "no" >&6; } |
d9898ee8 | 2969 | fi |
2970 | ||
dd184caf | 2971 | |
d9898ee8 | 2972 | fi |
2973 | if test -z "$ac_cv_prog_CC"; then | |
2974 | ac_ct_CC=$CC | |
2975 | # Extract the first word of "gcc", so it can be a program name with args. | |
2976 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2978 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2979 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2980 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2981 | else |
2982 | if test -n "$ac_ct_CC"; then | |
2983 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2984 | else | |
2985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2986 | for as_dir in $PATH | |
2987 | do | |
2988 | IFS=$as_save_IFS | |
2989 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2990 | for ac_exec_ext in '' $ac_executable_extensions; do |
2991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2992 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 2993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2994 | break 2 |
2995 | fi | |
2996 | done | |
b0322a85 | 2997 | done |
dd184caf | 2998 | IFS=$as_save_IFS |
d9898ee8 | 2999 | |
3000 | fi | |
3001 | fi | |
3002 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3003 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3005 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3006 | else |
b0322a85 | 3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3008 | $as_echo "no" >&6; } |
d9898ee8 | 3009 | fi |
3010 | ||
dd184caf | 3011 | if test "x$ac_ct_CC" = x; then |
3012 | CC="" | |
3013 | else | |
3014 | case $cross_compiling:$ac_tool_warned in | |
3015 | yes:) | |
b0322a85 | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3018 | ac_tool_warned=yes ;; |
3019 | esac | |
3020 | CC=$ac_ct_CC | |
3021 | fi | |
d9898ee8 | 3022 | else |
3023 | CC="$ac_cv_prog_CC" | |
3024 | fi | |
3025 | ||
3026 | if test -z "$CC"; then | |
dd184caf | 3027 | if test -n "$ac_tool_prefix"; then |
3028 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3029 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3031 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3032 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3033 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3034 | else |
3035 | if test -n "$CC"; then | |
3036 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3037 | else | |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3039 | for as_dir in $PATH | |
3040 | do | |
3041 | IFS=$as_save_IFS | |
3042 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3043 | for ac_exec_ext in '' $ac_executable_extensions; do |
3044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3045 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3047 | break 2 |
3048 | fi | |
3049 | done | |
b0322a85 | 3050 | done |
dd184caf | 3051 | IFS=$as_save_IFS |
d9898ee8 | 3052 | |
3053 | fi | |
3054 | fi | |
3055 | CC=$ac_cv_prog_CC | |
3056 | if test -n "$CC"; then | |
b0322a85 | 3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3058 | $as_echo "$CC" >&6; } |
d9898ee8 | 3059 | else |
b0322a85 | 3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3061 | $as_echo "no" >&6; } |
d9898ee8 | 3062 | fi |
3063 | ||
d9898ee8 | 3064 | |
dd184caf | 3065 | fi |
d9898ee8 | 3066 | fi |
3067 | if test -z "$CC"; then | |
3068 | # Extract the first word of "cc", so it can be a program name with args. | |
3069 | set dummy cc; ac_word=$2 | |
b0322a85 | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3071 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3072 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3073 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3074 | else |
3075 | if test -n "$CC"; then | |
3076 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3077 | else | |
3078 | ac_prog_rejected=no | |
3079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3080 | for as_dir in $PATH | |
3081 | do | |
3082 | IFS=$as_save_IFS | |
3083 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3084 | for ac_exec_ext in '' $ac_executable_extensions; do |
3085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3086 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3087 | ac_prog_rejected=yes | |
3088 | continue | |
3089 | fi | |
3090 | ac_cv_prog_CC="cc" | |
b0322a85 | 3091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3092 | break 2 |
3093 | fi | |
3094 | done | |
b0322a85 | 3095 | done |
dd184caf | 3096 | IFS=$as_save_IFS |
d9898ee8 | 3097 | |
3098 | if test $ac_prog_rejected = yes; then | |
3099 | # We found a bogon in the path, so make sure we never use it. | |
3100 | set dummy $ac_cv_prog_CC | |
3101 | shift | |
3102 | if test $# != 0; then | |
3103 | # We chose a different compiler from the bogus one. | |
3104 | # However, it has the same basename, so the bogon will be chosen | |
3105 | # first if we set CC to just the basename; use the full file name. | |
3106 | shift | |
3107 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3108 | fi | |
3109 | fi | |
3110 | fi | |
3111 | fi | |
3112 | CC=$ac_cv_prog_CC | |
3113 | if test -n "$CC"; then | |
b0322a85 | 3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3115 | $as_echo "$CC" >&6; } |
d9898ee8 | 3116 | else |
b0322a85 | 3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3118 | $as_echo "no" >&6; } |
d9898ee8 | 3119 | fi |
3120 | ||
dd184caf | 3121 | |
d9898ee8 | 3122 | fi |
3123 | if test -z "$CC"; then | |
3124 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3125 | for ac_prog in cl.exe |
d9898ee8 | 3126 | do |
3127 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3128 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3130 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3131 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3132 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3133 | else |
3134 | if test -n "$CC"; then | |
3135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3136 | else | |
3137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3138 | for as_dir in $PATH | |
3139 | do | |
3140 | IFS=$as_save_IFS | |
3141 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
3143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3144 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3146 | break 2 |
3147 | fi | |
3148 | done | |
b0322a85 | 3149 | done |
dd184caf | 3150 | IFS=$as_save_IFS |
d9898ee8 | 3151 | |
3152 | fi | |
3153 | fi | |
3154 | CC=$ac_cv_prog_CC | |
3155 | if test -n "$CC"; then | |
b0322a85 | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3157 | $as_echo "$CC" >&6; } |
d9898ee8 | 3158 | else |
b0322a85 | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3160 | $as_echo "no" >&6; } |
d9898ee8 | 3161 | fi |
3162 | ||
dd184caf | 3163 | |
d9898ee8 | 3164 | test -n "$CC" && break |
3165 | done | |
3166 | fi | |
3167 | if test -z "$CC"; then | |
3168 | ac_ct_CC=$CC | |
dd184caf | 3169 | for ac_prog in cl.exe |
d9898ee8 | 3170 | do |
3171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3172 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3174 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3175 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3176 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3177 | else |
3178 | if test -n "$ac_ct_CC"; then | |
3179 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3180 | else | |
3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3182 | for as_dir in $PATH | |
3183 | do | |
3184 | IFS=$as_save_IFS | |
3185 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3186 | for ac_exec_ext in '' $ac_executable_extensions; do |
3187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3188 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3190 | break 2 |
3191 | fi | |
3192 | done | |
b0322a85 | 3193 | done |
dd184caf | 3194 | IFS=$as_save_IFS |
d9898ee8 | 3195 | |
3196 | fi | |
3197 | fi | |
3198 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3199 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3201 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3202 | else |
b0322a85 | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3204 | $as_echo "no" >&6; } |
d9898ee8 | 3205 | fi |
3206 | ||
dd184caf | 3207 | |
d9898ee8 | 3208 | test -n "$ac_ct_CC" && break |
3209 | done | |
3210 | ||
dd184caf | 3211 | if test "x$ac_ct_CC" = x; then |
3212 | CC="" | |
3213 | else | |
3214 | case $cross_compiling:$ac_tool_warned in | |
3215 | yes:) | |
b0322a85 | 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3218 | ac_tool_warned=yes ;; |
3219 | esac | |
3220 | CC=$ac_ct_CC | |
3221 | fi | |
d9898ee8 | 3222 | fi |
3223 | ||
3224 | fi | |
3225 | ||
3226 | ||
b0322a85 | 3227 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3229 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3230 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3231 | |
3232 | # Provide some information about the compiler. | |
b0322a85 | 3233 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3234 | set X $ac_compile |
3235 | ac_compiler=$2 | |
b0322a85 CE |
3236 | for ac_option in --version -v -V -qversion; do |
3237 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3238 | case "(($ac_try" in |
3239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3240 | *) ac_try_echo=$ac_try;; | |
3241 | esac | |
b0322a85 CE |
3242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3243 | $as_echo "$ac_try_echo"; } >&5 | |
3244 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3245 | ac_status=$? |
b0322a85 CE |
3246 | if test -s conftest.err; then |
3247 | sed '10a\ | |
3248 | ... rest of stderr output deleted ... | |
3249 | 10q' conftest.err >conftest.er1 | |
3250 | cat conftest.er1 >&5 | |
3251 | fi | |
3252 | rm -f conftest.er1 conftest.err | |
3253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3254 | test $ac_status = 0; } | |
3255 | done | |
d9898ee8 | 3256 | |
b0322a85 | 3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3258 | /* end confdefs.h. */ |
3259 | ||
3260 | int | |
3261 | main () | |
3262 | { | |
3263 | ||
3264 | ; | |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
3268 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3269 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3270 | # Try to create an executable without -o first, disregard a.out. |
3271 | # It will help us diagnose broken compilers, and finding out an intuition | |
3272 | # of exeext. | |
b0322a85 CE |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3274 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3275 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3276 | ||
3277 | # The possible output files: | |
3278 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3279 | ||
dd184caf | 3280 | ac_rmfiles= |
3281 | for ac_file in $ac_files | |
3282 | do | |
3283 | case $ac_file in | |
8d138742 | 3284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3285 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3286 | esac | |
3287 | done | |
3288 | rm -f $ac_rmfiles | |
3289 | ||
b0322a85 | 3290 | if { { ac_try="$ac_link_default" |
dd184caf | 3291 | case "(($ac_try" in |
3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3293 | *) ac_try_echo=$ac_try;; | |
3294 | esac | |
b0322a85 CE |
3295 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3296 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3297 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3298 | ac_status=$? |
b0322a85 CE |
3299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3300 | test $ac_status = 0; }; then : | |
dd184caf | 3301 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3302 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3303 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3304 | # so that the user can short-circuit this test for compilers unknown to | |
3305 | # Autoconf. | |
3306 | for ac_file in $ac_files '' | |
d9898ee8 | 3307 | do |
3308 | test -f "$ac_file" || continue | |
3309 | case $ac_file in | |
8d138742 | 3310 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3311 | ;; |
3312 | [ab].out ) | |
3313 | # We found the default executable, but exeext='' is most | |
3314 | # certainly right. | |
3315 | break;; | |
3316 | *.* ) | |
b0322a85 | 3317 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3318 | then :; else |
3319 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3320 | fi | |
3321 | # We set ac_cv_exeext here because the later test for it is not | |
3322 | # safe: cross compilers may not add the suffix if given an `-o' | |
3323 | # argument, so we may need to know it at that point already. | |
3324 | # Even if this section looks crufty: it has the advantage of | |
3325 | # actually working. | |
d9898ee8 | 3326 | break;; |
3327 | * ) | |
3328 | break;; | |
3329 | esac | |
3330 | done | |
dd184caf | 3331 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3332 | ||
d9898ee8 | 3333 | else |
dd184caf | 3334 | ac_file='' |
3335 | fi | |
b0322a85 CE |
3336 | if test -z "$ac_file"; then : |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3338 | $as_echo "no" >&6; } | |
3339 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3340 | sed 's/^/| /' conftest.$ac_ext >&5 |
3341 | ||
b0322a85 | 3342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3344 | as_fn_error 77 "C compiler cannot create executables |
3345 | See \`config.log' for more details" "$LINENO" 5; } | |
3346 | else | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3348 | $as_echo "yes" >&6; } | |
d9898ee8 | 3349 | fi |
b0322a85 CE |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3351 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3353 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3354 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3355 | |
8d138742 | 3356 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3357 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3359 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3360 | if { { ac_try="$ac_link" |
dd184caf | 3361 | case "(($ac_try" in |
3362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3363 | *) ac_try_echo=$ac_try;; | |
3364 | esac | |
b0322a85 CE |
3365 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3366 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3367 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3368 | ac_status=$? |
b0322a85 CE |
3369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3370 | test $ac_status = 0; }; then : | |
d9898ee8 | 3371 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3372 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3373 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3374 | # `rm'. | |
3375 | for ac_file in conftest.exe conftest conftest.*; do | |
3376 | test -f "$ac_file" || continue | |
3377 | case $ac_file in | |
8d138742 | 3378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3379 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3380 | break;; |
3381 | * ) break;; | |
3382 | esac | |
3383 | done | |
3384 | else | |
b0322a85 | 3385 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3387 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3388 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3389 | fi |
b0322a85 CE |
3390 | rm -f conftest conftest$ac_cv_exeext |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3392 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3393 | |
3394 | rm -f conftest.$ac_ext | |
3395 | EXEEXT=$ac_cv_exeext | |
3396 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3398 | /* end confdefs.h. */ | |
3399 | #include <stdio.h> | |
3400 | int | |
3401 | main () | |
3402 | { | |
3403 | FILE *f = fopen ("conftest.out", "w"); | |
3404 | return ferror (f) || fclose (f) != 0; | |
3405 | ||
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
3410 | ac_clean_files="$ac_clean_files conftest.out" | |
3411 | # Check that the compiler produces executables we can run. If not, either | |
3412 | # the compiler is broken, or we cross compile. | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3414 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3415 | if test "$cross_compiling" != yes; then | |
3416 | { { ac_try="$ac_link" | |
3417 | case "(($ac_try" in | |
3418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3419 | *) ac_try_echo=$ac_try;; | |
3420 | esac | |
3421 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3422 | $as_echo "$ac_try_echo"; } >&5 | |
3423 | (eval "$ac_link") 2>&5 | |
3424 | ac_status=$? | |
3425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3426 | test $ac_status = 0; } | |
3427 | if { ac_try='./conftest$ac_cv_exeext' | |
3428 | { { case "(($ac_try" in | |
3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3430 | *) ac_try_echo=$ac_try;; | |
3431 | esac | |
3432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3433 | $as_echo "$ac_try_echo"; } >&5 | |
3434 | (eval "$ac_try") 2>&5 | |
3435 | ac_status=$? | |
3436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3437 | test $ac_status = 0; }; }; then | |
3438 | cross_compiling=no | |
3439 | else | |
3440 | if test "$cross_compiling" = maybe; then | |
3441 | cross_compiling=yes | |
3442 | else | |
3443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3444 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3445 | as_fn_error $? "cannot run C compiled programs. | |
3446 | If you meant to cross compile, use \`--host'. | |
3447 | See \`config.log' for more details" "$LINENO" 5; } | |
3448 | fi | |
3449 | fi | |
3450 | fi | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3452 | $as_echo "$cross_compiling" >&6; } | |
3453 | ||
3454 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3455 | ac_clean_files=$ac_clean_files_save | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3457 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3458 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3459 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3460 | else |
b0322a85 | 3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3462 | /* end confdefs.h. */ |
3463 | ||
3464 | int | |
3465 | main () | |
3466 | { | |
3467 | ||
3468 | ; | |
3469 | return 0; | |
3470 | } | |
3471 | _ACEOF | |
3472 | rm -f conftest.o conftest.obj | |
b0322a85 | 3473 | if { { ac_try="$ac_compile" |
dd184caf | 3474 | case "(($ac_try" in |
3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3476 | *) ac_try_echo=$ac_try;; | |
3477 | esac | |
b0322a85 CE |
3478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3479 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3480 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3481 | ac_status=$? |
b0322a85 CE |
3482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3483 | test $ac_status = 0; }; then : | |
dd184caf | 3484 | for ac_file in conftest.o conftest.obj conftest.*; do |
3485 | test -f "$ac_file" || continue; | |
d9898ee8 | 3486 | case $ac_file in |
8d138742 | 3487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3488 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3489 | break;; | |
3490 | esac | |
3491 | done | |
3492 | else | |
8d138742 | 3493 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3494 | sed 's/^/| /' conftest.$ac_ext >&5 |
3495 | ||
b0322a85 | 3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3498 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3499 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3500 | fi |
d9898ee8 | 3501 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3502 | fi | |
b0322a85 | 3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3504 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3505 | OBJEXT=$ac_cv_objext |
3506 | ac_objext=$OBJEXT | |
b0322a85 | 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3508 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3509 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3510 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3511 | else |
b0322a85 | 3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3513 | /* end confdefs.h. */ |
3514 | ||
3515 | int | |
3516 | main () | |
3517 | { | |
3518 | #ifndef __GNUC__ | |
3519 | choke me | |
3520 | #endif | |
3521 | ||
3522 | ; | |
3523 | return 0; | |
3524 | } | |
3525 | _ACEOF | |
b0322a85 | 3526 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3527 | ac_compiler_gnu=yes |
3528 | else | |
b0322a85 | 3529 | ac_compiler_gnu=no |
d9898ee8 | 3530 | fi |
dd184caf | 3531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3532 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3533 | ||
3534 | fi | |
b0322a85 | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3536 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3537 | if test $ac_compiler_gnu = yes; then | |
3538 | GCC=yes | |
3539 | else | |
3540 | GCC= | |
3541 | fi | |
d9898ee8 | 3542 | ac_test_CFLAGS=${CFLAGS+set} |
3543 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3545 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3546 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3547 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3548 | else |
dd184caf | 3549 | ac_save_c_werror_flag=$ac_c_werror_flag |
3550 | ac_c_werror_flag=yes | |
3551 | ac_cv_prog_cc_g=no | |
3552 | CFLAGS="-g" | |
b0322a85 | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3554 | /* end confdefs.h. */ |
3555 | ||
3556 | int | |
3557 | main () | |
3558 | { | |
3559 | ||
3560 | ; | |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
b0322a85 | 3564 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3565 | ac_cv_prog_cc_g=yes |
3566 | else | |
b0322a85 CE |
3567 | CFLAGS="" |
3568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3569 | /* end confdefs.h. */ |
3570 | ||
3571 | int | |
3572 | main () | |
3573 | { | |
3574 | ||
3575 | ; | |
3576 | return 0; | |
3577 | } | |
3578 | _ACEOF | |
b0322a85 | 3579 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3580 | |
b0322a85 CE |
3581 | else |
3582 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3583 | CFLAGS="-g" |
b0322a85 | 3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3585 | /* end confdefs.h. */ |
3586 | ||
3587 | int | |
3588 | main () | |
3589 | { | |
3590 | ||
3591 | ; | |
3592 | return 0; | |
3593 | } | |
3594 | _ACEOF | |
b0322a85 | 3595 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3596 | ac_cv_prog_cc_g=yes |
dd184caf | 3597 | fi |
dd184caf | 3598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3599 | fi | |
dd184caf | 3600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3601 | fi |
dd184caf | 3602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3603 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3604 | fi |
b0322a85 | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3606 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3607 | if test "$ac_test_CFLAGS" = set; then |
3608 | CFLAGS=$ac_save_CFLAGS | |
3609 | elif test $ac_cv_prog_cc_g = yes; then | |
3610 | if test "$GCC" = yes; then | |
3611 | CFLAGS="-g -O2" | |
3612 | else | |
3613 | CFLAGS="-g" | |
3614 | fi | |
3615 | else | |
3616 | if test "$GCC" = yes; then | |
3617 | CFLAGS="-O2" | |
3618 | else | |
3619 | CFLAGS= | |
3620 | fi | |
3621 | fi | |
b0322a85 | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3623 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3624 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3625 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3626 | else |
dd184caf | 3627 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3628 | ac_save_CC=$CC |
b0322a85 | 3629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3630 | /* end confdefs.h. */ |
3631 | #include <stdarg.h> | |
3632 | #include <stdio.h> | |
b0322a85 | 3633 | struct stat; |
d9898ee8 | 3634 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3635 | struct buf { int x; }; | |
3636 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3637 | static char *e (p, i) | |
3638 | char **p; | |
3639 | int i; | |
3640 | { | |
3641 | return p[i]; | |
3642 | } | |
3643 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3644 | { | |
3645 | char *s; | |
3646 | va_list v; | |
3647 | va_start (v,p); | |
3648 | s = g (p, va_arg (v,int)); | |
3649 | va_end (v); | |
3650 | return s; | |
3651 | } | |
3652 | ||
3653 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3654 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3655 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3656 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3657 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3658 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3659 | that's true only with -std. */ |
d9898ee8 | 3660 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3661 | ||
dd184caf | 3662 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3663 | inside strings and character constants. */ | |
3664 | #define FOO(x) 'x' | |
3665 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3666 | ||
d9898ee8 | 3667 | int test (int i, double x); |
3668 | struct s1 {int (*f) (int a);}; | |
3669 | struct s2 {int (*f) (double a);}; | |
3670 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3671 | int argc; | |
3672 | char **argv; | |
3673 | int | |
3674 | main () | |
3675 | { | |
3676 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3677 | ; | |
3678 | return 0; | |
3679 | } | |
3680 | _ACEOF | |
dd184caf | 3681 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3682 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3683 | do |
3684 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3685 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3686 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3687 | fi |
dd184caf | 3688 | rm -f core conftest.err conftest.$ac_objext |
3689 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3690 | done |
dd184caf | 3691 | rm -f conftest.$ac_ext |
d9898ee8 | 3692 | CC=$ac_save_CC |
3693 | ||
3694 | fi | |
dd184caf | 3695 | # AC_CACHE_VAL |
3696 | case "x$ac_cv_prog_cc_c89" in | |
3697 | x) | |
b0322a85 | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3699 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3700 | xno) |
b0322a85 | 3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3702 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3703 | *) |
dd184caf | 3704 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3706 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3707 | esac |
b0322a85 | 3708 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3709 | |
b0322a85 | 3710 | fi |
d9898ee8 | 3711 | |
d9898ee8 | 3712 | ac_ext=c |
3713 | ac_cpp='$CPP $CPPFLAGS' | |
3714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3717 | |
3718 | ac_ext=c | |
3719 | ac_cpp='$CPP $CPPFLAGS' | |
3720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3724 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3725 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3726 | $as_echo_n "(cached) " >&6 | |
3727 | else | |
3728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3729 | /* end confdefs.h. */ | |
3730 | ||
3731 | int | |
3732 | main () | |
3733 | { | |
3734 | ||
3735 | ; | |
3736 | return 0; | |
3737 | } | |
3738 | _ACEOF | |
3739 | # Make sure it works both with $CC and with simple cc. | |
3740 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3741 | # compilers refuse to overwrite an existing .o file with -o, | |
3742 | # though they will create one. | |
3743 | am_cv_prog_cc_c_o=yes | |
3744 | for am_i in 1 2; do | |
3745 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3746 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3747 | ac_status=$? | |
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3749 | (exit $ac_status); } \ | |
3750 | && test -f conftest2.$ac_objext; then | |
3751 | : OK | |
3752 | else | |
3753 | am_cv_prog_cc_c_o=no | |
3754 | break | |
3755 | fi | |
3756 | done | |
3757 | rm -f core conftest* | |
3758 | unset am_i | |
3759 | fi | |
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3761 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3762 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3763 | # Losing compiler, so override with the script. | |
3764 | # FIXME: It is wrong to rewrite CC. | |
3765 | # But if we don't then we get into trouble of one sort or another. | |
3766 | # A longer-term fix would be to have automake use am__CC in this case, | |
3767 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3768 | CC="$am_aux_dir/compile $CC" | |
3769 | fi | |
3770 | ac_ext=c | |
3771 | ac_cpp='$CPP $CPPFLAGS' | |
3772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3775 | ||
d9898ee8 | 3776 | DEPDIR="${am__leading_dot}deps" |
3777 | ||
dd184caf | 3778 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3779 | |
3780 | ||
3781 | am_make=${MAKE-make} | |
3782 | cat > confinc << 'END' | |
3783 | am__doit: | |
8d138742 | 3784 | @echo this is the am__doit target |
d9898ee8 | 3785 | .PHONY: am__doit |
3786 | END | |
3787 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3789 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3790 | am__include="#" |
3791 | am__quote= | |
3792 | _am_result=none | |
3793 | # First try GNU make style include. | |
3794 | echo "include confinc" > confmf | |
b0322a85 | 3795 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3796 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3797 | *the\ am__doit\ target*) | |
3798 | am__include=include | |
3799 | am__quote= | |
3800 | _am_result=GNU | |
3801 | ;; | |
3802 | esac | |
d9898ee8 | 3803 | # Now try BSD make style include. |
3804 | if test "$am__include" = "#"; then | |
3805 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3806 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3807 | *the\ am__doit\ target*) | |
3808 | am__include=.include | |
3809 | am__quote="\"" | |
3810 | _am_result=BSD | |
3811 | ;; | |
3812 | esac | |
d9898ee8 | 3813 | fi |
3814 | ||
3815 | ||
b0322a85 | 3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3817 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3818 | rm -f confinc confmf |
3819 | ||
dd184caf | 3820 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3821 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3822 | enableval=$enable_dependency_tracking; |
3823 | fi | |
d9898ee8 | 3824 | |
d9898ee8 | 3825 | if test "x$enable_dependency_tracking" != xno; then |
3826 | am_depcomp="$ac_aux_dir/depcomp" | |
3827 | AMDEPBACKSLASH='\' | |
b0322a85 | 3828 | am__nodep='_no' |
d9898ee8 | 3829 | fi |
dd184caf | 3830 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3831 | AMDEP_TRUE= |
3832 | AMDEP_FALSE='#' | |
3833 | else | |
3834 | AMDEP_TRUE='#' | |
3835 | AMDEP_FALSE= | |
3836 | fi | |
3837 | ||
3838 | ||
3839 | ||
d9898ee8 | 3840 | depcc="$CC" am_compiler_list= |
3841 | ||
b0322a85 | 3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3843 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3844 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3845 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3846 | else |
3847 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3848 | # We make a subdir and do the tests there. Otherwise we can end up | |
3849 | # making bogus files that we don't know about and never remove. For | |
3850 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3851 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3852 | # in D". | |
3853 | rm -rf conftest.dir | |
d9898ee8 | 3854 | mkdir conftest.dir |
3855 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3856 | # using a relative directory. | |
3857 | cp "$am_depcomp" conftest.dir | |
3858 | cd conftest.dir | |
3859 | # We will build objects and dependencies in a subdirectory because | |
3860 | # it helps to detect inapplicable dependency modes. For instance | |
3861 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3862 | # side effect of compilation, but ICC will put the dependencies in | |
3863 | # the current directory while Tru64 will put them in the object | |
3864 | # directory. | |
3865 | mkdir sub | |
3866 | ||
3867 | am_cv_CC_dependencies_compiler_type=none | |
3868 | if test "$am_compiler_list" = ""; then | |
3869 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3870 | fi | |
8d138742 CE |
3871 | am__universal=false |
3872 | case " $depcc " in #( | |
3873 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3874 | esac | |
3875 | ||
d9898ee8 | 3876 | for depmode in $am_compiler_list; do |
3877 | # Setup a source with many dependencies, because some compilers | |
3878 | # like to wrap large dependency lists on column 80 (with \), and | |
3879 | # we should not choose a depcomp mode which is confused by this. | |
3880 | # | |
3881 | # We need to recreate these files for each test, as the compiler may | |
3882 | # overwrite some of them when testing with obscure command lines. | |
3883 | # This happens at least with the AIX C compiler. | |
3884 | : > sub/conftest.c | |
3885 | for i in 1 2 3 4 5 6; do | |
3886 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3887 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3888 | # Solaris 10 /bin/sh. | |
3889 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3890 | done |
3891 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3892 | ||
b0322a85 | 3893 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3894 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3895 | # handle '-M -o', and we need to detect this. Also, some Intel |
3896 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3897 | am__obj=sub/conftest.${OBJEXT-o} |
3898 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3899 | case $depmode in |
8d138742 CE |
3900 | gcc) |
3901 | # This depmode causes a compiler race in universal mode. | |
3902 | test "$am__universal" = false || continue | |
3903 | ;; | |
d9898ee8 | 3904 | nosideeffect) |
b0322a85 CE |
3905 | # After this tag, mechanisms are not by side-effect, so they'll |
3906 | # only be used when explicitly requested. | |
d9898ee8 | 3907 | if test "x$enable_dependency_tracking" = xyes; then |
3908 | continue | |
3909 | else | |
3910 | break | |
3911 | fi | |
3912 | ;; | |
b0322a85 CE |
3913 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3914 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3915 | # not run yet. These depmodes are late enough in the game, and |
3916 | # so weak that their functioning should not be impacted. | |
3917 | am__obj=conftest.${OBJEXT-o} | |
3918 | am__minus_obj= | |
3919 | ;; | |
d9898ee8 | 3920 | none) break ;; |
3921 | esac | |
d9898ee8 | 3922 | if depmode=$depmode \ |
8d138742 | 3923 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3924 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3925 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3926 | >/dev/null 2>conftest.err && |
dd184caf | 3927 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3928 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3929 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3930 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3931 | # icc doesn't choke on unknown options, it will just issue warnings | |
3932 | # or remarks (even with -Werror). So we grep stderr for any message | |
3933 | # that says an option was ignored or not supported. | |
3934 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3935 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3936 | # The diagnosis changed in icc 8.0: | |
3937 | # icc: Command line remark: option '-MP' not supported | |
3938 | if (grep 'ignoring option' conftest.err || | |
3939 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3940 | am_cv_CC_dependencies_compiler_type=$depmode | |
3941 | break | |
3942 | fi | |
3943 | fi | |
3944 | done | |
3945 | ||
3946 | cd .. | |
3947 | rm -rf conftest.dir | |
3948 | else | |
3949 | am_cv_CC_dependencies_compiler_type=none | |
3950 | fi | |
3951 | ||
3952 | fi | |
b0322a85 | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3954 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3955 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3956 | ||
dd184caf | 3957 | if |
d9898ee8 | 3958 | test "x$enable_dependency_tracking" != xno \ |
3959 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3960 | am__fastdepCC_TRUE= | |
3961 | am__fastdepCC_FALSE='#' | |
3962 | else | |
3963 | am__fastdepCC_TRUE='#' | |
b0322a85 CE |
3964 | am__fastdepCC_FALSE= |
3965 | fi | |
d9898ee8 | 3966 | |
d9898ee8 | 3967 | |
d9898ee8 | 3968 | |
b0322a85 | 3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3970 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3971 | LN_S=$as_ln_s |
3972 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3974 | $as_echo "yes" >&6; } |
d9898ee8 | 3975 | else |
b0322a85 | 3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3977 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3978 | fi |
3979 | ||
8d138742 CE |
3980 | case `pwd` in |
3981 | *\ * | *\ *) | |
b0322a85 | 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3983 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3984 | esac | |
3985 | ||
3986 | ||
3987 | ||
d50284c4 CE |
3988 | macro_version='2.4.6' |
3989 | macro_revision='2.4.6' | |
8d138742 CE |
3990 | |
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ||
3996 | ||
3997 | ||
dd184caf | 3998 | |
d9898ee8 | 3999 | |
dd184caf | 4000 | |
d9898ee8 | 4001 | |
dd184caf | 4002 | |
d50284c4 | 4003 | ltmain=$ac_aux_dir/ltmain.sh |
d9898ee8 | 4004 | |
4005 | # Make sure we can run config.sub. | |
dd184caf | 4006 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4007 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4008 | |
b0322a85 | 4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4010 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4011 | if ${ac_cv_build+:} false; then : |
8d138742 | 4012 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4013 | else |
dd184caf | 4014 | ac_build_alias=$build_alias |
4015 | test "x$ac_build_alias" = x && | |
4016 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4017 | test "x$ac_build_alias" = x && | |
b0322a85 | 4018 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4019 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4020 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4021 | |
4022 | fi | |
b0322a85 | 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4024 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4025 | case $ac_cv_build in |
4026 | *-*-*) ;; | |
b0322a85 | 4027 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4028 | esac |
d9898ee8 | 4029 | build=$ac_cv_build |
dd184caf | 4030 | ac_save_IFS=$IFS; IFS='-' |
4031 | set x $ac_cv_build | |
4032 | shift | |
4033 | build_cpu=$1 | |
4034 | build_vendor=$2 | |
4035 | shift; shift | |
4036 | # Remember, the first character of IFS is used to create $*, | |
4037 | # except with old shells: | |
4038 | build_os=$* | |
4039 | IFS=$ac_save_IFS | |
4040 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4041 | ||
4042 | ||
b0322a85 | 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4044 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4045 | if ${ac_cv_host+:} false; then : |
8d138742 | 4046 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4047 | else |
dd184caf | 4048 | if test "x$host_alias" = x; then |
4049 | ac_cv_host=$ac_cv_build | |
4050 | else | |
4051 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4052 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4053 | fi |
d9898ee8 | 4054 | |
4055 | fi | |
b0322a85 | 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4057 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4058 | case $ac_cv_host in |
4059 | *-*-*) ;; | |
b0322a85 | 4060 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4061 | esac |
d9898ee8 | 4062 | host=$ac_cv_host |
dd184caf | 4063 | ac_save_IFS=$IFS; IFS='-' |
4064 | set x $ac_cv_host | |
4065 | shift | |
4066 | host_cpu=$1 | |
4067 | host_vendor=$2 | |
4068 | shift; shift | |
4069 | # Remember, the first character of IFS is used to create $*, | |
4070 | # except with old shells: | |
4071 | host_os=$* | |
4072 | IFS=$ac_save_IFS | |
4073 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4074 | ||
4075 | ||
b0322a85 CE |
4076 | # Backslashify metacharacters that are still active within |
4077 | # double-quoted strings. | |
4078 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4079 | ||
4080 | # Same as above, but do not quote variable references. | |
4081 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4082 | ||
4083 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4084 | # double_quote_subst'ed string. | |
4085 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4086 | ||
4087 | # Sed substitution to delay expansion of an escaped single quote. | |
4088 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4089 | ||
4090 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4091 | no_glob_subst='s/\*/\\\*/g' | |
4092 | ||
4093 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4094 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4095 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4096 | ||
4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4098 | $as_echo_n "checking how to print strings... " >&6; } | |
4099 | # Test print first, because it will be a builtin if present. | |
4100 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4101 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4102 | ECHO='print -r --' | |
4103 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4104 | ECHO='printf %s\n' | |
4105 | else | |
4106 | # Use this function as a fallback that always works. | |
4107 | func_fallback_echo () | |
4108 | { | |
4109 | eval 'cat <<_LTECHO_EOF | |
4110 | $1 | |
4111 | _LTECHO_EOF' | |
4112 | } | |
4113 | ECHO='func_fallback_echo' | |
4114 | fi | |
4115 | ||
4116 | # func_echo_all arg... | |
4117 | # Invoke $ECHO with all args, space-separated. | |
4118 | func_echo_all () | |
4119 | { | |
4120 | $ECHO "" | |
4121 | } | |
4122 | ||
d50284c4 | 4123 | case $ECHO in |
b0322a85 CE |
4124 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4125 | $as_echo "printf" >&6; } ;; | |
4126 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4127 | $as_echo "print -r" >&6; } ;; | |
4128 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4129 | $as_echo "cat" >&6; } ;; | |
4130 | esac | |
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | ||
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4146 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4147 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4148 | $as_echo_n "(cached) " >&6 |
4149 | else | |
4150 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4151 | for ac_i in 1 2 3 4 5 6 7; do | |
4152 | ac_script="$ac_script$as_nl$ac_script" | |
4153 | done | |
4154 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4155 | { ac_script=; unset ac_script;} |
8d138742 CE |
4156 | if test -z "$SED"; then |
4157 | ac_path_SED_found=false | |
4158 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4160 | for as_dir in $PATH |
4161 | do | |
4162 | IFS=$as_save_IFS | |
4163 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4164 | for ac_prog in sed gsed; do |
d9898ee8 | 4165 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4166 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4167 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4168 | # Check for GNU ac_path_SED and select it if it is found. |
4169 | # Check for GNU $ac_path_SED | |
4170 | case `"$ac_path_SED" --version 2>&1` in | |
4171 | *GNU*) | |
4172 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4173 | *) | |
4174 | ac_count=0 | |
4175 | $as_echo_n 0123456789 >"conftest.in" | |
4176 | while : | |
4177 | do | |
4178 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4179 | mv "conftest.tmp" "conftest.in" | |
4180 | cp "conftest.in" "conftest.nl" | |
4181 | $as_echo '' >> "conftest.nl" | |
4182 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4183 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4184 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4185 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4186 | # Best one so far, save it but keep looking for a better one | |
4187 | ac_cv_path_SED="$ac_path_SED" | |
4188 | ac_path_SED_max=$ac_count | |
4189 | fi | |
4190 | # 10*(2^10) chars as input seems more than enough | |
4191 | test $ac_count -gt 10 && break | |
4192 | done | |
4193 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4194 | esac | |
4195 | ||
4196 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4197 | done |
4198 | done | |
b0322a85 | 4199 | done |
d9898ee8 | 4200 | IFS=$as_save_IFS |
8d138742 | 4201 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4202 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4203 | fi |
8d138742 CE |
4204 | else |
4205 | ac_cv_path_SED=$SED | |
4206 | fi | |
d9898ee8 | 4207 | |
4208 | fi | |
b0322a85 | 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4210 | $as_echo "$ac_cv_path_SED" >&6; } |
4211 | SED="$ac_cv_path_SED" | |
4212 | rm -f conftest.sed | |
4213 | ||
4214 | test -z "$SED" && SED=sed | |
4215 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4216 | |
d9898ee8 | 4217 | |
dd184caf | 4218 | |
8d138742 CE |
4219 | |
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
b0322a85 | 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4228 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4229 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4230 | $as_echo_n "(cached) " >&6 |
dd184caf | 4231 | else |
8d138742 | 4232 | if test -z "$GREP"; then |
dd184caf | 4233 | ac_path_GREP_found=false |
8d138742 CE |
4234 | # Loop through the user's path and test for each of PROGNAME-LIST |
4235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4236 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4237 | do | |
4238 | IFS=$as_save_IFS | |
4239 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4240 | for ac_prog in grep ggrep; do |
8d138742 CE |
4241 | for ac_exec_ext in '' $ac_executable_extensions; do |
4242 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4243 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4244 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4245 | # Check for GNU $ac_path_GREP |
4246 | case `"$ac_path_GREP" --version 2>&1` in | |
4247 | *GNU*) | |
4248 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4249 | *) | |
4250 | ac_count=0 | |
8d138742 | 4251 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4252 | while : |
4253 | do | |
4254 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4255 | mv "conftest.tmp" "conftest.in" | |
4256 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4257 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4258 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4259 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4260 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4261 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4262 | # Best one so far, save it but keep looking for a better one | |
4263 | ac_cv_path_GREP="$ac_path_GREP" | |
4264 | ac_path_GREP_max=$ac_count | |
4265 | fi | |
4266 | # 10*(2^10) chars as input seems more than enough | |
4267 | test $ac_count -gt 10 && break | |
4268 | done | |
4269 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4270 | esac | |
4271 | ||
8d138742 CE |
4272 | $ac_path_GREP_found && break 3 |
4273 | done | |
dd184caf | 4274 | done |
b0322a85 | 4275 | done |
dd184caf | 4276 | IFS=$as_save_IFS |
8d138742 | 4277 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4278 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4279 | fi |
dd184caf | 4280 | else |
4281 | ac_cv_path_GREP=$GREP | |
4282 | fi | |
4283 | ||
dd184caf | 4284 | fi |
b0322a85 | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4286 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4287 | GREP="$ac_cv_path_GREP" |
4288 | ||
4289 | ||
b0322a85 | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4291 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4292 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4293 | $as_echo_n "(cached) " >&6 |
dd184caf | 4294 | else |
4295 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4296 | then ac_cv_path_EGREP="$GREP -E" | |
4297 | else | |
8d138742 | 4298 | if test -z "$EGREP"; then |
dd184caf | 4299 | ac_path_EGREP_found=false |
8d138742 CE |
4300 | # Loop through the user's path and test for each of PROGNAME-LIST |
4301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4302 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4303 | do | |
4304 | IFS=$as_save_IFS | |
4305 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4306 | for ac_prog in egrep; do |
8d138742 CE |
4307 | for ac_exec_ext in '' $ac_executable_extensions; do |
4308 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4309 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4310 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4311 | # Check for GNU $ac_path_EGREP |
4312 | case `"$ac_path_EGREP" --version 2>&1` in | |
4313 | *GNU*) | |
4314 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4315 | *) | |
4316 | ac_count=0 | |
8d138742 | 4317 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4318 | while : |
4319 | do | |
4320 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4321 | mv "conftest.tmp" "conftest.in" | |
4322 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4323 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4324 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4325 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4326 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4327 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4328 | # Best one so far, save it but keep looking for a better one | |
4329 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4330 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4331 | fi |
dd184caf | 4332 | # 10*(2^10) chars as input seems more than enough |
4333 | test $ac_count -gt 10 && break | |
4334 | done | |
4335 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4336 | esac | |
4337 | ||
8d138742 CE |
4338 | $ac_path_EGREP_found && break 3 |
4339 | done | |
dd184caf | 4340 | done |
b0322a85 | 4341 | done |
dd184caf | 4342 | IFS=$as_save_IFS |
8d138742 | 4343 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4344 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4345 | fi |
4346 | else | |
4347 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4348 | fi |
4349 | ||
8d138742 | 4350 | fi |
dd184caf | 4351 | fi |
b0322a85 | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4353 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4354 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4355 | |
8d138742 | 4356 | |
b0322a85 | 4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4358 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4359 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4360 | $as_echo_n "(cached) " >&6 |
dd184caf | 4361 | else |
8d138742 CE |
4362 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4363 | then ac_cv_path_FGREP="$GREP -F" | |
4364 | else | |
4365 | if test -z "$FGREP"; then | |
4366 | ac_path_FGREP_found=false | |
4367 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4369 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4370 | do | |
4371 | IFS=$as_save_IFS | |
4372 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4373 | for ac_prog in fgrep; do |
8d138742 CE |
4374 | for ac_exec_ext in '' $ac_executable_extensions; do |
4375 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4376 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4377 | # Check for GNU ac_path_FGREP and select it if it is found. |
4378 | # Check for GNU $ac_path_FGREP | |
4379 | case `"$ac_path_FGREP" --version 2>&1` in | |
4380 | *GNU*) | |
4381 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4382 | *) | |
4383 | ac_count=0 | |
4384 | $as_echo_n 0123456789 >"conftest.in" | |
4385 | while : | |
4386 | do | |
4387 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4388 | mv "conftest.tmp" "conftest.in" | |
4389 | cp "conftest.in" "conftest.nl" | |
4390 | $as_echo 'FGREP' >> "conftest.nl" | |
4391 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4392 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4393 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4394 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4395 | # Best one so far, save it but keep looking for a better one | |
4396 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4397 | ac_path_FGREP_max=$ac_count | |
4398 | fi | |
4399 | # 10*(2^10) chars as input seems more than enough | |
4400 | test $ac_count -gt 10 && break | |
4401 | done | |
4402 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4403 | esac | |
dd184caf | 4404 | |
8d138742 CE |
4405 | $ac_path_FGREP_found && break 3 |
4406 | done | |
4407 | done | |
b0322a85 | 4408 | done |
8d138742 CE |
4409 | IFS=$as_save_IFS |
4410 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4411 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4412 | fi |
4413 | else | |
4414 | ac_cv_path_FGREP=$FGREP | |
4415 | fi | |
dd184caf | 4416 | |
4417 | fi | |
d9898ee8 | 4418 | fi |
b0322a85 | 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4420 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4421 | FGREP="$ac_cv_path_FGREP" | |
4422 | ||
4423 | ||
4424 | test -z "$GREP" && GREP=grep | |
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
4438 | ||
4439 | ||
4440 | ||
d9898ee8 | 4441 | |
4442 | ||
4443 | ||
dd184caf | 4444 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4445 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4446 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4447 | else |
4448 | with_gnu_ld=no | |
dd184caf | 4449 | fi |
4450 | ||
d9898ee8 | 4451 | ac_prog=ld |
d50284c4 | 4452 | if test yes = "$GCC"; then |
d9898ee8 | 4453 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4455 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4456 | case $host in |
4457 | *-*-mingw*) | |
d50284c4 | 4458 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4459 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4460 | *) | |
4461 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4462 | esac | |
4463 | case $ac_prog in | |
4464 | # Accept absolute paths. | |
4465 | [\\/]* | ?:[\\/]*) | |
4466 | re_direlt='/[^/][^/]*/\.\./' | |
4467 | # Canonicalize the pathname of ld | |
8d138742 CE |
4468 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4469 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4470 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4471 | done |
d50284c4 | 4472 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4473 | ;; |
4474 | "") | |
4475 | # If it fails, then pretend we aren't using GCC. | |
4476 | ac_prog=ld | |
4477 | ;; | |
4478 | *) | |
4479 | # If it is relative, then search for the first ld in PATH. | |
4480 | with_gnu_ld=unknown | |
4481 | ;; | |
4482 | esac | |
d50284c4 | 4483 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4485 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4486 | else |
b0322a85 | 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4488 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4489 | fi |
b0322a85 | 4490 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4491 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4492 | else |
4493 | if test -z "$LD"; then | |
d50284c4 | 4494 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4495 | for ac_dir in $PATH; do |
d50284c4 | 4496 | IFS=$lt_save_ifs |
d9898ee8 | 4497 | test -z "$ac_dir" && ac_dir=. |
4498 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4499 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4500 | # Check to see if the program is GNU ld. I'd rather use --version, |
4501 | # but apparently some variants of GNU ld only accept -v. | |
4502 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4503 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4504 | *GNU* | *'with BFD'*) | |
d50284c4 | 4505 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4506 | ;; |
4507 | *) | |
d50284c4 | 4508 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4509 | ;; |
4510 | esac | |
4511 | fi | |
4512 | done | |
d50284c4 | 4513 | IFS=$lt_save_ifs |
d9898ee8 | 4514 | else |
d50284c4 | 4515 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4516 | fi |
4517 | fi | |
4518 | ||
d50284c4 | 4519 | LD=$lt_cv_path_LD |
d9898ee8 | 4520 | if test -n "$LD"; then |
b0322a85 | 4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4522 | $as_echo "$LD" >&6; } |
d9898ee8 | 4523 | else |
b0322a85 | 4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4525 | $as_echo "no" >&6; } |
d9898ee8 | 4526 | fi |
b0322a85 CE |
4527 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4529 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4530 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4531 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4532 | else |
4533 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4534 | case `$LD -v 2>&1 </dev/null` in | |
4535 | *GNU* | *'with BFD'*) | |
4536 | lt_cv_prog_gnu_ld=yes | |
4537 | ;; | |
4538 | *) | |
4539 | lt_cv_prog_gnu_ld=no | |
4540 | ;; | |
4541 | esac | |
4542 | fi | |
b0322a85 | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4544 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4545 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4546 | ||
4547 | ||
d9898ee8 | 4548 | |
8d138742 CE |
4549 | |
4550 | ||
4551 | ||
4552 | ||
4553 | ||
4554 | ||
b0322a85 | 4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4556 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4557 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4558 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4559 | else |
4560 | if test -n "$NM"; then | |
4561 | # Let the user override the test. | |
d50284c4 | 4562 | lt_cv_path_NM=$NM |
d9898ee8 | 4563 | else |
d50284c4 | 4564 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4565 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4566 | lt_nm_to_check="$lt_nm_to_check nm" | |
4567 | fi | |
4568 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4569 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4570 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4571 | IFS=$lt_save_ifs |
d9898ee8 | 4572 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4573 | tmp_nm=$ac_dir/$lt_tmp_nm |
4574 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4575 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4576 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4577 | # nm: unknown option "B" ignored |
4578 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4579 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4580 | case $build_os in | |
4581 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4582 | *) lt_bad_file=/dev/null ;; | |
4583 | esac | |
4584 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4585 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4586 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4587 | break 2 |
d9898ee8 | 4588 | ;; |
4589 | *) | |
4590 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4591 | */dev/null*) | |
4592 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4593 | break 2 |
d9898ee8 | 4594 | ;; |
4595 | *) | |
4596 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4597 | continue # so that we can try to find one that supports BSD flags | |
4598 | ;; | |
4599 | esac | |
4600 | ;; | |
4601 | esac | |
4602 | fi | |
4603 | done | |
d50284c4 | 4604 | IFS=$lt_save_ifs |
d9898ee8 | 4605 | done |
8d138742 | 4606 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4607 | fi |
4608 | fi | |
b0322a85 | 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4610 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4611 | if test no != "$lt_cv_path_NM"; then |
4612 | NM=$lt_cv_path_NM | |
d9898ee8 | 4613 | else |
8d138742 | 4614 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4615 | if test -n "$DUMPBIN"; then : |
4616 | # Let the user override the test. | |
4617 | else | |
4618 | if test -n "$ac_tool_prefix"; then | |
4619 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4620 | do |
4621 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4622 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4624 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4625 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4626 | $as_echo_n "(cached) " >&6 |
4627 | else | |
4628 | if test -n "$DUMPBIN"; then | |
4629 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4630 | else | |
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4632 | for as_dir in $PATH | |
4633 | do | |
4634 | IFS=$as_save_IFS | |
4635 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4636 | for ac_exec_ext in '' $ac_executable_extensions; do |
4637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4638 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4640 | break 2 |
4641 | fi | |
4642 | done | |
b0322a85 | 4643 | done |
8d138742 | 4644 | IFS=$as_save_IFS |
d9898ee8 | 4645 | |
8d138742 CE |
4646 | fi |
4647 | fi | |
4648 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4649 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4651 | $as_echo "$DUMPBIN" >&6; } |
4652 | else | |
b0322a85 | 4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4654 | $as_echo "no" >&6; } |
4655 | fi | |
d9898ee8 | 4656 | |
d9898ee8 | 4657 | |
8d138742 CE |
4658 | test -n "$DUMPBIN" && break |
4659 | done | |
4660 | fi | |
4661 | if test -z "$DUMPBIN"; then | |
4662 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4663 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4664 | do |
4665 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4666 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4668 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4669 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4670 | $as_echo_n "(cached) " >&6 |
4671 | else | |
4672 | if test -n "$ac_ct_DUMPBIN"; then | |
4673 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4674 | else | |
4675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4676 | for as_dir in $PATH | |
4677 | do | |
4678 | IFS=$as_save_IFS | |
4679 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4680 | for ac_exec_ext in '' $ac_executable_extensions; do |
4681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4682 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4684 | break 2 |
4685 | fi | |
4686 | done | |
b0322a85 | 4687 | done |
8d138742 | 4688 | IFS=$as_save_IFS |
d9898ee8 | 4689 | |
8d138742 CE |
4690 | fi |
4691 | fi | |
4692 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4693 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4695 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4696 | else | |
b0322a85 | 4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4698 | $as_echo "no" >&6; } |
4699 | fi | |
d9898ee8 | 4700 | |
8d138742 CE |
4701 | |
4702 | test -n "$ac_ct_DUMPBIN" && break | |
4703 | done | |
4704 | ||
4705 | if test "x$ac_ct_DUMPBIN" = x; then | |
4706 | DUMPBIN=":" | |
ac40fd9e | 4707 | else |
8d138742 CE |
4708 | case $cross_compiling:$ac_tool_warned in |
4709 | yes:) | |
b0322a85 | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4711 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4712 | ac_tool_warned=yes ;; | |
4713 | esac | |
4714 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 4715 | fi |
8d138742 | 4716 | fi |
d9898ee8 | 4717 | |
d50284c4 | 4718 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4719 | *COFF*) |
d50284c4 | 4720 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4721 | ;; |
4722 | *) | |
4723 | DUMPBIN=: | |
4724 | ;; | |
4725 | esac | |
4726 | fi | |
d9898ee8 | 4727 | |
d50284c4 CE |
4728 | if test : != "$DUMPBIN"; then |
4729 | NM=$DUMPBIN | |
d9898ee8 | 4730 | fi |
8d138742 CE |
4731 | fi |
4732 | test -z "$NM" && NM=nm | |
d9898ee8 | 4733 | |
d9898ee8 | 4734 | |
d9898ee8 | 4735 | |
d9898ee8 | 4736 | |
d9898ee8 | 4737 | |
d9898ee8 | 4738 | |
b0322a85 | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4740 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4741 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4742 | $as_echo_n "(cached) " >&6 |
4743 | else | |
4744 | lt_cv_nm_interface="BSD nm" | |
4745 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4746 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4747 | (eval "$ac_compile" 2>conftest.err) |
4748 | cat conftest.err >&5 | |
b0322a85 | 4749 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4750 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4751 | cat conftest.err >&5 | |
b0322a85 | 4752 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4753 | cat conftest.out >&5 |
4754 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4755 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4756 | fi |
8d138742 CE |
4757 | rm -f conftest* |
4758 | fi | |
b0322a85 | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4760 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4761 | |
8d138742 | 4762 | # find the maximum length of command line arguments |
b0322a85 | 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4764 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4765 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4766 | $as_echo_n "(cached) " >&6 |
4767 | else | |
4768 | i=0 | |
d50284c4 | 4769 | teststring=ABCD |
d9898ee8 | 4770 | |
8d138742 CE |
4771 | case $build_os in |
4772 | msdosdjgpp*) | |
4773 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4774 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4775 | # during glob expansion). Even if it were fixed, the result of this | |
4776 | # check would be larger than it should be. | |
4777 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4778 | ;; | |
d9898ee8 | 4779 | |
8d138742 CE |
4780 | gnu*) |
4781 | # Under GNU Hurd, this test is not required because there is | |
4782 | # no limit to the length of command line arguments. | |
4783 | # Libtool will interpret -1 as no limit whatsoever | |
4784 | lt_cv_sys_max_cmd_len=-1; | |
4785 | ;; | |
d9898ee8 | 4786 | |
8d138742 CE |
4787 | cygwin* | mingw* | cegcc*) |
4788 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4789 | # about 5 minutes as the teststring grows exponentially. | |
4790 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4791 | # you end up with a "frozen" computer, even though with patience | |
4792 | # the test eventually succeeds (with a max line length of 256k). | |
4793 | # Instead, let's just punt: use the minimum linelength reported by | |
4794 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4795 | lt_cv_sys_max_cmd_len=8192; | |
4796 | ;; | |
ac40fd9e | 4797 | |
b0322a85 CE |
4798 | mint*) |
4799 | # On MiNT this can take a long time and run out of memory. | |
4800 | lt_cv_sys_max_cmd_len=8192; | |
4801 | ;; | |
4802 | ||
8d138742 CE |
4803 | amigaos*) |
4804 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4805 | # So we just punt and use a minimum line length of 8192. | |
4806 | lt_cv_sys_max_cmd_len=8192; | |
4807 | ;; | |
d9898ee8 | 4808 | |
d50284c4 | 4809 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4810 | # This has been around since 386BSD, at least. Likely further. |
4811 | if test -x /sbin/sysctl; then | |
4812 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4813 | elif test -x /usr/sbin/sysctl; then | |
4814 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4815 | else | |
4816 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4817 | fi | |
4818 | # And add a safety zone | |
4819 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4820 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4821 | ;; |
8d138742 CE |
4822 | |
4823 | interix*) | |
4824 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4825 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4826 | ;; |
8d138742 | 4827 | |
b0322a85 CE |
4828 | os2*) |
4829 | # The test takes a long time on OS/2. | |
4830 | lt_cv_sys_max_cmd_len=8192 | |
4831 | ;; | |
4832 | ||
8d138742 CE |
4833 | osf*) |
4834 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4835 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4836 | # nice to cause kernel panics so lets avoid the loop below. | |
4837 | # First set a reasonable default. | |
4838 | lt_cv_sys_max_cmd_len=16384 | |
4839 | # | |
4840 | if test -x /sbin/sysconfig; then | |
4841 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4842 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4843 | esac | |
4844 | fi | |
d9898ee8 | 4845 | ;; |
8d138742 CE |
4846 | sco3.2v5*) |
4847 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 4848 | ;; |
8d138742 CE |
4849 | sysv5* | sco5v6* | sysv4.2uw2*) |
4850 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4851 | if test -n "$kargmax"; then | |
4852 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4853 | else | |
4854 | lt_cv_sys_max_cmd_len=32768 | |
4855 | fi | |
d9898ee8 | 4856 | ;; |
8d138742 CE |
4857 | *) |
4858 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4859 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4860 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4861 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4862 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4863 | else | |
4864 | # Make teststring a little bigger before we do anything with it. | |
4865 | # a 1K string should be a reasonable start. | |
d50284c4 | 4866 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4867 | teststring=$teststring$teststring |
4868 | done | |
4869 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4870 | # If test is not a shell built-in, we'll probably end up computing a | |
4871 | # maximum length that is only half of the actual maximum length, but | |
4872 | # we can't tell. | |
d50284c4 | 4873 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 4874 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 4875 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
4876 | do |
4877 | i=`expr $i + 1` | |
4878 | teststring=$teststring$teststring | |
4879 | done | |
4880 | # Only check the string length outside the loop. | |
4881 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4882 | teststring= | |
4883 | # Add a significant safety factor because C++ compilers can tack on | |
4884 | # massive amounts of additional arguments before passing them to the | |
4885 | # linker. It appears as though 1/2 is a usable value. | |
4886 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4887 | fi | |
d9898ee8 | 4888 | ;; |
4889 | esac | |
d9898ee8 | 4890 | |
8d138742 | 4891 | fi |
d9898ee8 | 4892 | |
d50284c4 | 4893 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4895 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4896 | else | |
b0322a85 | 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4898 | $as_echo "none" >&6; } |
d9898ee8 | 4899 | fi |
8d138742 | 4900 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4901 | |
4902 | ||
4903 | ||
4904 | ||
d9898ee8 | 4905 | |
d9898ee8 | 4906 | |
8d138742 CE |
4907 | : ${CP="cp -f"} |
4908 | : ${MV="mv -f"} | |
4909 | : ${RM="rm -f"} | |
d9898ee8 | 4910 | |
8d138742 CE |
4911 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4912 | lt_unset=unset | |
4913 | else | |
4914 | lt_unset=false | |
dd184caf | 4915 | fi |
d9898ee8 | 4916 | |
d9898ee8 | 4917 | |
8d138742 CE |
4918 | |
4919 | ||
4920 | ||
4921 | # test EBCDIC or ASCII | |
4922 | case `echo X|tr X '\101'` in | |
4923 | A) # ASCII based system | |
4924 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4925 | lt_SP2NL='tr \040 \012' | |
4926 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4927 | ;; |
8d138742 CE |
4928 | *) # EBCDIC based system |
4929 | lt_SP2NL='tr \100 \n' | |
4930 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4931 | ;; |
8d138742 CE |
4932 | esac |
4933 | ||
d9898ee8 | 4934 | |
d9898ee8 | 4935 | |
d9898ee8 | 4936 | |
d9898ee8 | 4937 | |
d9898ee8 | 4938 | |
d9898ee8 | 4939 | |
dd184caf | 4940 | |
d9898ee8 | 4941 | |
b0322a85 CE |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4943 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4944 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4945 | $as_echo_n "(cached) " >&6 | |
4946 | else | |
4947 | case $host in | |
4948 | *-*-mingw* ) | |
4949 | case $build in | |
4950 | *-*-mingw* ) # actually msys | |
4951 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4952 | ;; | |
4953 | *-*-cygwin* ) | |
4954 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4955 | ;; | |
4956 | * ) # otherwise, assume *nix | |
4957 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4958 | ;; | |
4959 | esac | |
4960 | ;; | |
4961 | *-*-cygwin* ) | |
4962 | case $build in | |
4963 | *-*-mingw* ) # actually msys | |
4964 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4965 | ;; | |
4966 | *-*-cygwin* ) | |
4967 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4968 | ;; | |
4969 | * ) # otherwise, assume *nix | |
4970 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4971 | ;; | |
4972 | esac | |
4973 | ;; | |
4974 | * ) # unhandled hosts (and "normal" native builds) | |
4975 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4976 | ;; | |
4977 | esac | |
4978 | ||
4979 | fi | |
4980 | ||
4981 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4983 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4984 | ||
4985 | ||
4986 | ||
4987 | ||
4988 | ||
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4990 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4991 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4992 | $as_echo_n "(cached) " >&6 | |
4993 | else | |
4994 | #assume ordinary cross tools, or native build. | |
4995 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4996 | case $host in | |
4997 | *-*-mingw* ) | |
4998 | case $build in | |
4999 | *-*-mingw* ) # actually msys | |
5000 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5001 | ;; | |
5002 | esac | |
5003 | ;; | |
5004 | esac | |
5005 | ||
5006 | fi | |
5007 | ||
5008 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5010 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5017 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5018 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 CE |
5019 | $as_echo_n "(cached) " >&6 |
5020 | else | |
5021 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 5022 | fi |
b0322a85 | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5024 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5025 | reload_flag=$lt_cv_ld_reload_flag | |
5026 | case $reload_flag in | |
5027 | "" | " "*) ;; | |
5028 | *) reload_flag=" $reload_flag" ;; | |
5029 | esac | |
5030 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5031 | case $host_os in | |
b0322a85 | 5032 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5033 | if test yes != "$GCC"; then |
b0322a85 CE |
5034 | reload_cmds=false |
5035 | fi | |
5036 | ;; | |
8d138742 | 5037 | darwin*) |
d50284c4 CE |
5038 | if test yes = "$GCC"; then |
5039 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5040 | else |
5041 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5042 | fi | |
5043 | ;; | |
5044 | esac | |
d9898ee8 | 5045 | |
5046 | ||
d9898ee8 | 5047 | |
d9898ee8 | 5048 | |
5049 | ||
8d138742 CE |
5050 | |
5051 | ||
5052 | ||
5053 | ||
5054 | if test -n "$ac_tool_prefix"; then | |
5055 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5056 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5058 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5059 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5060 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5061 | else |
8d138742 CE |
5062 | if test -n "$OBJDUMP"; then |
5063 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 5064 | else |
8d138742 CE |
5065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5066 | for as_dir in $PATH | |
5067 | do | |
5068 | IFS=$as_save_IFS | |
5069 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5070 | for ac_exec_ext in '' $ac_executable_extensions; do |
5071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5072 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5074 | break 2 |
5075 | fi | |
5076 | done | |
b0322a85 | 5077 | done |
8d138742 | 5078 | IFS=$as_save_IFS |
d9898ee8 | 5079 | |
8d138742 CE |
5080 | fi |
5081 | fi | |
5082 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5083 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5085 | $as_echo "$OBJDUMP" >&6; } |
5086 | else | |
b0322a85 | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5088 | $as_echo "no" >&6; } |
d9898ee8 | 5089 | fi |
dd184caf | 5090 | |
d9898ee8 | 5091 | |
d9898ee8 | 5092 | fi |
8d138742 CE |
5093 | if test -z "$ac_cv_prog_OBJDUMP"; then |
5094 | ac_ct_OBJDUMP=$OBJDUMP | |
5095 | # Extract the first word of "objdump", so it can be a program name with args. | |
5096 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5098 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5099 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 CE |
5100 | $as_echo_n "(cached) " >&6 |
5101 | else | |
5102 | if test -n "$ac_ct_OBJDUMP"; then | |
5103 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5104 | else | |
5105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5106 | for as_dir in $PATH | |
5107 | do | |
5108 | IFS=$as_save_IFS | |
5109 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5110 | for ac_exec_ext in '' $ac_executable_extensions; do |
5111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5112 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5114 | break 2 |
5115 | fi | |
d9898ee8 | 5116 | done |
b0322a85 | 5117 | done |
8d138742 | 5118 | IFS=$as_save_IFS |
d9898ee8 | 5119 | |
5120 | fi | |
d9898ee8 | 5121 | fi |
8d138742 CE |
5122 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5123 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 5125 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 5126 | else |
b0322a85 | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5128 | $as_echo "no" >&6; } |
d9898ee8 | 5129 | fi |
dd184caf | 5130 | |
8d138742 CE |
5131 | if test "x$ac_ct_OBJDUMP" = x; then |
5132 | OBJDUMP="false" | |
5133 | else | |
5134 | case $cross_compiling:$ac_tool_warned in | |
5135 | yes:) | |
b0322a85 | 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5137 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5138 | ac_tool_warned=yes ;; | |
dd184caf | 5139 | esac |
8d138742 CE |
5140 | OBJDUMP=$ac_ct_OBJDUMP |
5141 | fi | |
d9898ee8 | 5142 | else |
8d138742 | 5143 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5144 | fi |
dd184caf | 5145 | |
8d138742 | 5146 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5147 | |
d9898ee8 | 5148 | |
5149 | ||
d9898ee8 | 5150 | |
d9898ee8 | 5151 | |
d9898ee8 | 5152 | |
dd184caf | 5153 | |
d9898ee8 | 5154 | |
d9898ee8 | 5155 | |
b0322a85 | 5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5157 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5158 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5159 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5160 | else |
8d138742 CE |
5161 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5162 | lt_cv_file_magic_test_file= | |
5163 | lt_cv_deplibs_check_method='unknown' | |
5164 | # Need to set the preceding variable on all platforms that support | |
5165 | # interlibrary dependencies. | |
5166 | # 'none' -- dependencies not supported. | |
d50284c4 | 5167 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5168 | # 'pass_all' -- all dependencies passed with no checks. |
5169 | # 'test_compile' -- check by making test program. | |
5170 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5171 | # that responds to the $file_magic_cmd with a given extended regex. |
5172 | # If you have 'file' or equivalent on your system and you're not sure | |
5173 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5174 | |
8d138742 CE |
5175 | case $host_os in |
5176 | aix[4-9]*) | |
5177 | lt_cv_deplibs_check_method=pass_all | |
5178 | ;; | |
d9898ee8 | 5179 | |
8d138742 CE |
5180 | beos*) |
5181 | lt_cv_deplibs_check_method=pass_all | |
5182 | ;; | |
d9898ee8 | 5183 | |
8d138742 CE |
5184 | bsdi[45]*) |
5185 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5186 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5187 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5188 | ;; | |
d9898ee8 | 5189 | |
8d138742 CE |
5190 | cygwin*) |
5191 | # func_win32_libid is a shell function defined in ltmain.sh | |
5192 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5193 | lt_cv_file_magic_cmd='func_win32_libid' | |
5194 | ;; | |
d9898ee8 | 5195 | |
8d138742 CE |
5196 | mingw* | pw32*) |
5197 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5198 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5199 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5200 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5201 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5202 | lt_cv_file_magic_cmd='func_win32_libid' | |
5203 | else | |
b0322a85 CE |
5204 | # Keep this pattern in sync with the one in func_win32_libid. |
5205 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5206 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5207 | fi | |
5208 | ;; | |
d9898ee8 | 5209 | |
b0322a85 | 5210 | cegcc*) |
8d138742 CE |
5211 | # use the weaker test based on 'objdump'. See mingw*. |
5212 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5213 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5214 | ;; | |
d9898ee8 | 5215 | |
8d138742 CE |
5216 | darwin* | rhapsody*) |
5217 | lt_cv_deplibs_check_method=pass_all | |
5218 | ;; | |
dd184caf | 5219 | |
8d138742 CE |
5220 | freebsd* | dragonfly*) |
5221 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5222 | case $host_cpu in | |
5223 | i*86 ) | |
5224 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5225 | # Let's accept both of them until this is cleared up. | |
5226 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5227 | lt_cv_file_magic_cmd=/usr/bin/file | |
5228 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5229 | ;; | |
5230 | esac | |
5231 | else | |
5232 | lt_cv_deplibs_check_method=pass_all | |
5233 | fi | |
5234 | ;; | |
dd184caf | 5235 | |
b0322a85 CE |
5236 | haiku*) |
5237 | lt_cv_deplibs_check_method=pass_all | |
5238 | ;; | |
5239 | ||
8d138742 CE |
5240 | hpux10.20* | hpux11*) |
5241 | lt_cv_file_magic_cmd=/usr/bin/file | |
5242 | case $host_cpu in | |
5243 | ia64*) | |
5244 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5245 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5246 | ;; | |
5247 | hppa*64*) | |
b0322a85 | 5248 | 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 |
5249 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5250 | ;; | |
5251 | *) | |
b0322a85 | 5252 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5253 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5254 | ;; | |
5255 | esac | |
5256 | ;; | |
d9898ee8 | 5257 | |
8d138742 CE |
5258 | interix[3-9]*) |
5259 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5260 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5261 | ;; | |
d9898ee8 | 5262 | |
8d138742 CE |
5263 | irix5* | irix6* | nonstopux*) |
5264 | case $LD in | |
5265 | *-32|*"-32 ") libmagic=32-bit;; | |
5266 | *-n32|*"-n32 ") libmagic=N32;; | |
5267 | *-64|*"-64 ") libmagic=64-bit;; | |
5268 | *) libmagic=never-match;; | |
5269 | esac | |
5270 | lt_cv_deplibs_check_method=pass_all | |
5271 | ;; | |
d9898ee8 | 5272 | |
b0322a85 | 5273 | # This must be glibc/ELF. |
d50284c4 | 5274 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5275 | lt_cv_deplibs_check_method=pass_all |
5276 | ;; | |
d9898ee8 | 5277 | |
8d138742 CE |
5278 | netbsd*) |
5279 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5280 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5281 | else | |
5282 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5283 | fi | |
5284 | ;; | |
d9898ee8 | 5285 | |
8d138742 CE |
5286 | newos6*) |
5287 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5288 | lt_cv_file_magic_cmd=/usr/bin/file | |
5289 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5290 | ;; | |
d9898ee8 | 5291 | |
8d138742 CE |
5292 | *nto* | *qnx*) |
5293 | lt_cv_deplibs_check_method=pass_all | |
5294 | ;; | |
d9898ee8 | 5295 | |
d50284c4 CE |
5296 | openbsd* | bitrig*) |
5297 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
5298 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5299 | else | |
5300 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5301 | fi | |
5302 | ;; | |
d9898ee8 | 5303 | |
8d138742 CE |
5304 | osf3* | osf4* | osf5*) |
5305 | lt_cv_deplibs_check_method=pass_all | |
5306 | ;; | |
d9898ee8 | 5307 | |
8d138742 CE |
5308 | rdos*) |
5309 | lt_cv_deplibs_check_method=pass_all | |
5310 | ;; | |
d9898ee8 | 5311 | |
8d138742 CE |
5312 | solaris*) |
5313 | lt_cv_deplibs_check_method=pass_all | |
5314 | ;; | |
d9898ee8 | 5315 | |
8d138742 CE |
5316 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5317 | lt_cv_deplibs_check_method=pass_all | |
5318 | ;; | |
d9898ee8 | 5319 | |
8d138742 CE |
5320 | sysv4 | sysv4.3*) |
5321 | case $host_vendor in | |
5322 | motorola) | |
5323 | 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]' | |
5324 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5325 | ;; | |
5326 | ncr) | |
5327 | lt_cv_deplibs_check_method=pass_all | |
5328 | ;; | |
5329 | sequent) | |
5330 | lt_cv_file_magic_cmd='/bin/file' | |
5331 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5332 | ;; | |
5333 | sni) | |
5334 | lt_cv_file_magic_cmd='/bin/file' | |
5335 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5336 | lt_cv_file_magic_test_file=/lib/libc.so | |
5337 | ;; | |
5338 | siemens) | |
5339 | lt_cv_deplibs_check_method=pass_all | |
5340 | ;; | |
5341 | pc) | |
5342 | lt_cv_deplibs_check_method=pass_all | |
5343 | ;; | |
5344 | esac | |
5345 | ;; | |
5346 | ||
5347 | tpf*) | |
5348 | lt_cv_deplibs_check_method=pass_all | |
5349 | ;; | |
d50284c4 CE |
5350 | os2*) |
5351 | lt_cv_deplibs_check_method=pass_all | |
5352 | ;; | |
dd184caf | 5353 | esac |
d9898ee8 | 5354 | |
d9898ee8 | 5355 | fi |
b0322a85 | 5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5357 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5358 | |
5359 | file_magic_glob= | |
5360 | want_nocaseglob=no | |
5361 | if test "$build" = "$host"; then | |
5362 | case $host_os in | |
5363 | mingw* | pw32*) | |
5364 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5365 | want_nocaseglob=yes | |
5366 | else | |
5367 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5368 | fi | |
5369 | ;; | |
5370 | esac | |
5371 | fi | |
5372 | ||
8d138742 CE |
5373 | file_magic_cmd=$lt_cv_file_magic_cmd |
5374 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5375 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5376 | |
d9898ee8 | 5377 | |
d9898ee8 | 5378 | |
d9898ee8 | 5379 | |
5380 | ||
5381 | ||
8d138742 CE |
5382 | |
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
b0322a85 CE |
5388 | |
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | if test -n "$ac_tool_prefix"; then | |
5399 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5400 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5402 | $as_echo_n "checking for $ac_word... " >&6; } | |
5403 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5404 | $as_echo_n "(cached) " >&6 | |
5405 | else | |
5406 | if test -n "$DLLTOOL"; then | |
5407 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5408 | else | |
5409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5410 | for as_dir in $PATH | |
5411 | do | |
5412 | IFS=$as_save_IFS | |
5413 | test -z "$as_dir" && as_dir=. | |
5414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5416 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5418 | break 2 | |
5419 | fi | |
5420 | done | |
5421 | done | |
5422 | IFS=$as_save_IFS | |
5423 | ||
5424 | fi | |
5425 | fi | |
5426 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5427 | if test -n "$DLLTOOL"; then | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5429 | $as_echo "$DLLTOOL" >&6; } | |
5430 | else | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5432 | $as_echo "no" >&6; } | |
5433 | fi | |
5434 | ||
5435 | ||
5436 | fi | |
5437 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5438 | ac_ct_DLLTOOL=$DLLTOOL | |
5439 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5440 | set dummy dlltool; ac_word=$2 | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5442 | $as_echo_n "checking for $ac_word... " >&6; } | |
5443 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5444 | $as_echo_n "(cached) " >&6 | |
5445 | else | |
5446 | if test -n "$ac_ct_DLLTOOL"; then | |
5447 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5448 | else | |
5449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5450 | for as_dir in $PATH | |
5451 | do | |
5452 | IFS=$as_save_IFS | |
5453 | test -z "$as_dir" && as_dir=. | |
5454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5456 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5458 | break 2 | |
5459 | fi | |
5460 | done | |
5461 | done | |
5462 | IFS=$as_save_IFS | |
5463 | ||
5464 | fi | |
5465 | fi | |
5466 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5467 | if test -n "$ac_ct_DLLTOOL"; then | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5469 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5470 | else | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5472 | $as_echo "no" >&6; } | |
5473 | fi | |
5474 | ||
5475 | if test "x$ac_ct_DLLTOOL" = x; then | |
5476 | DLLTOOL="false" | |
5477 | else | |
5478 | case $cross_compiling:$ac_tool_warned in | |
5479 | yes:) | |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5482 | ac_tool_warned=yes ;; | |
5483 | esac | |
5484 | DLLTOOL=$ac_ct_DLLTOOL | |
5485 | fi | |
5486 | else | |
5487 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5488 | fi | |
5489 | ||
5490 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5502 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5503 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5504 | $as_echo_n "(cached) " >&6 | |
5505 | else | |
5506 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5507 | ||
5508 | case $host_os in | |
5509 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5510 | # two different shell functions defined in ltmain.sh; |
5511 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5512 | case `$DLLTOOL --help 2>&1` in |
5513 | *--identify-strict*) | |
5514 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5515 | ;; | |
5516 | *) | |
5517 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5518 | ;; | |
5519 | esac | |
5520 | ;; | |
5521 | *) | |
5522 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5523 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
5524 | ;; |
5525 | esac | |
5526 | ||
5527 | fi | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5529 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5530 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5531 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
8d138742 | 5540 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5541 | for ac_prog in ar |
5542 | do | |
5543 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5544 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5546 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5547 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5548 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5549 | else |
8d138742 CE |
5550 | if test -n "$AR"; then |
5551 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5552 | else |
8d138742 CE |
5553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5554 | for as_dir in $PATH | |
5555 | do | |
5556 | IFS=$as_save_IFS | |
5557 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5558 | for ac_exec_ext in '' $ac_executable_extensions; do |
5559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5560 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5562 | break 2 |
5563 | fi | |
5564 | done | |
b0322a85 | 5565 | done |
8d138742 | 5566 | IFS=$as_save_IFS |
d9898ee8 | 5567 | |
8d138742 CE |
5568 | fi |
5569 | fi | |
5570 | AR=$ac_cv_prog_AR | |
5571 | if test -n "$AR"; then | |
b0322a85 | 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 CE |
5573 | $as_echo "$AR" >&6; } |
5574 | else | |
b0322a85 | 5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5576 | $as_echo "no" >&6; } |
d9898ee8 | 5577 | fi |
dd184caf | 5578 | |
d9898ee8 | 5579 | |
b0322a85 CE |
5580 | test -n "$AR" && break |
5581 | done | |
8d138742 | 5582 | fi |
b0322a85 | 5583 | if test -z "$AR"; then |
8d138742 | 5584 | ac_ct_AR=$AR |
b0322a85 CE |
5585 | for ac_prog in ar |
5586 | do | |
5587 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5588 | set dummy $ac_prog; ac_word=$2 | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5590 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5591 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5592 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5593 | else |
8d138742 CE |
5594 | if test -n "$ac_ct_AR"; then |
5595 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5596 | else | |
5597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5598 | for as_dir in $PATH | |
5599 | do | |
5600 | IFS=$as_save_IFS | |
5601 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5602 | for ac_exec_ext in '' $ac_executable_extensions; do |
5603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5604 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5606 | break 2 |
5607 | fi | |
5608 | done | |
b0322a85 | 5609 | done |
8d138742 | 5610 | IFS=$as_save_IFS |
d9898ee8 | 5611 | |
8d138742 CE |
5612 | fi |
5613 | fi | |
5614 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5615 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 CE |
5617 | $as_echo "$ac_ct_AR" >&6; } |
5618 | else | |
b0322a85 | 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5620 | $as_echo "no" >&6; } |
d9898ee8 | 5621 | fi |
dd184caf | 5622 | |
b0322a85 CE |
5623 | |
5624 | test -n "$ac_ct_AR" && break | |
5625 | done | |
5626 | ||
8d138742 CE |
5627 | if test "x$ac_ct_AR" = x; then |
5628 | AR="false" | |
5629 | else | |
5630 | case $cross_compiling:$ac_tool_warned in | |
5631 | yes:) | |
b0322a85 | 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5633 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5634 | ac_tool_warned=yes ;; | |
d9898ee8 | 5635 | esac |
8d138742 CE |
5636 | AR=$ac_ct_AR |
5637 | fi | |
b0322a85 CE |
5638 | fi |
5639 | ||
5640 | : ${AR=ar} | |
5641 | : ${AR_FLAGS=cru} | |
5642 | ||
5643 | ||
5644 | ||
5645 | ||
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5654 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5655 | if ${lt_cv_ar_at_file+:} false; then : | |
5656 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5657 | else |
b0322a85 CE |
5658 | lt_cv_ar_at_file=no |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5660 | /* end confdefs.h. */ | |
d9898ee8 | 5661 | |
b0322a85 CE |
5662 | int |
5663 | main () | |
5664 | { | |
d9898ee8 | 5665 | |
b0322a85 CE |
5666 | ; |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | if ac_fn_c_try_compile "$LINENO"; then : | |
5671 | echo conftest.$ac_objext > conftest.lst | |
5672 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5673 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5674 | (eval $lt_ar_try) 2>&5 | |
5675 | ac_status=$? | |
5676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5677 | test $ac_status = 0; } | |
d50284c4 | 5678 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5679 | # Ensure the archiver fails upon bogus file names. |
5680 | rm -f conftest.$ac_objext libconftest.a | |
5681 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5682 | (eval $lt_ar_try) 2>&5 | |
5683 | ac_status=$? | |
5684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5685 | test $ac_status = 0; } | |
d50284c4 | 5686 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5687 | lt_cv_ar_at_file=@ |
5688 | fi | |
5689 | fi | |
5690 | rm -f conftest.* libconftest.a | |
d9898ee8 | 5691 | |
b0322a85 CE |
5692 | fi |
5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 5694 | |
b0322a85 CE |
5695 | fi |
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5697 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
8d138742 | 5698 | |
d50284c4 | 5699 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5700 | archiver_list_spec= |
5701 | else | |
5702 | archiver_list_spec=$lt_cv_ar_at_file | |
5703 | fi | |
8d138742 CE |
5704 | |
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | if test -n "$ac_tool_prefix"; then | |
5712 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5713 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5715 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5716 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 5717 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5718 | else |
8d138742 CE |
5719 | if test -n "$STRIP"; then |
5720 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5721 | else |
5722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5723 | for as_dir in $PATH | |
5724 | do | |
5725 | IFS=$as_save_IFS | |
5726 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5727 | for ac_exec_ext in '' $ac_executable_extensions; do |
5728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5729 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5731 | break 2 |
5732 | fi | |
5733 | done | |
b0322a85 | 5734 | done |
dd184caf | 5735 | IFS=$as_save_IFS |
d9898ee8 | 5736 | |
5737 | fi | |
5738 | fi | |
8d138742 CE |
5739 | STRIP=$ac_cv_prog_STRIP |
5740 | if test -n "$STRIP"; then | |
b0322a85 | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 | 5742 | $as_echo "$STRIP" >&6; } |
d9898ee8 | 5743 | else |
b0322a85 | 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5745 | $as_echo "no" >&6; } |
d9898ee8 | 5746 | fi |
5747 | ||
dd184caf | 5748 | |
d9898ee8 | 5749 | fi |
8d138742 CE |
5750 | if test -z "$ac_cv_prog_STRIP"; then |
5751 | ac_ct_STRIP=$STRIP | |
5752 | # Extract the first word of "strip", so it can be a program name with args. | |
5753 | set dummy strip; ac_word=$2 | |
b0322a85 | 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5755 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5756 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 5757 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5758 | else |
8d138742 CE |
5759 | if test -n "$ac_ct_STRIP"; then |
5760 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5761 | else |
5762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5763 | for as_dir in $PATH | |
5764 | do | |
5765 | IFS=$as_save_IFS | |
5766 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5767 | for ac_exec_ext in '' $ac_executable_extensions; do |
5768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5769 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5771 | break 2 |
5772 | fi | |
5773 | done | |
b0322a85 | 5774 | done |
dd184caf | 5775 | IFS=$as_save_IFS |
d9898ee8 | 5776 | |
5777 | fi | |
5778 | fi | |
8d138742 CE |
5779 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5780 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5782 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5783 | else |
b0322a85 | 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5785 | $as_echo "no" >&6; } |
d9898ee8 | 5786 | fi |
5787 | ||
8d138742 CE |
5788 | if test "x$ac_ct_STRIP" = x; then |
5789 | STRIP=":" | |
dd184caf | 5790 | else |
5791 | case $cross_compiling:$ac_tool_warned in | |
5792 | yes:) | |
b0322a85 | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5794 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5795 | ac_tool_warned=yes ;; |
5796 | esac | |
8d138742 | 5797 | STRIP=$ac_ct_STRIP |
dd184caf | 5798 | fi |
8d138742 CE |
5799 | else |
5800 | STRIP="$ac_cv_prog_STRIP" | |
dd184caf | 5801 | fi |
d9898ee8 | 5802 | |
8d138742 | 5803 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5804 | |
d9898ee8 | 5805 | |
d9898ee8 | 5806 | |
dd184caf | 5807 | |
d9898ee8 | 5808 | |
d9898ee8 | 5809 | |
8d138742 CE |
5810 | if test -n "$ac_tool_prefix"; then |
5811 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5812 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5814 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5815 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5816 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5817 | else |
8d138742 CE |
5818 | if test -n "$RANLIB"; then |
5819 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
d9898ee8 | 5820 | else |
8d138742 CE |
5821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5822 | for as_dir in $PATH | |
5823 | do | |
5824 | IFS=$as_save_IFS | |
5825 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5826 | for ac_exec_ext in '' $ac_executable_extensions; do |
5827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5828 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5830 | break 2 |
5831 | fi | |
5832 | done | |
b0322a85 | 5833 | done |
8d138742 | 5834 | IFS=$as_save_IFS |
dd184caf | 5835 | |
8d138742 CE |
5836 | fi |
5837 | fi | |
5838 | RANLIB=$ac_cv_prog_RANLIB | |
5839 | if test -n "$RANLIB"; then | |
b0322a85 | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 | 5841 | $as_echo "$RANLIB" >&6; } |
d9898ee8 | 5842 | else |
b0322a85 | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5844 | $as_echo "no" >&6; } |
5845 | fi | |
d9898ee8 | 5846 | |
dd184caf | 5847 | |
d9898ee8 | 5848 | fi |
8d138742 CE |
5849 | if test -z "$ac_cv_prog_RANLIB"; then |
5850 | ac_ct_RANLIB=$RANLIB | |
5851 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5852 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5854 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5855 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5856 | $as_echo_n "(cached) " >&6 |
5857 | else | |
5858 | if test -n "$ac_ct_RANLIB"; then | |
5859 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5860 | else | |
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5862 | for as_dir in $PATH | |
5863 | do | |
5864 | IFS=$as_save_IFS | |
5865 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5866 | for ac_exec_ext in '' $ac_executable_extensions; do |
5867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5868 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5870 | break 2 |
5871 | fi | |
5872 | done | |
b0322a85 | 5873 | done |
8d138742 | 5874 | IFS=$as_save_IFS |
dd184caf | 5875 | |
dd184caf | 5876 | fi |
8d138742 CE |
5877 | fi |
5878 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5879 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5881 | $as_echo "$ac_ct_RANLIB" >&6; } |
5882 | else | |
b0322a85 | 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5884 | $as_echo "no" >&6; } |
d9898ee8 | 5885 | fi |
5886 | ||
8d138742 CE |
5887 | if test "x$ac_ct_RANLIB" = x; then |
5888 | RANLIB=":" | |
dd184caf | 5889 | else |
8d138742 CE |
5890 | case $cross_compiling:$ac_tool_warned in |
5891 | yes:) | |
b0322a85 | 5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5894 | ac_tool_warned=yes ;; | |
5895 | esac | |
5896 | RANLIB=$ac_ct_RANLIB | |
dd184caf | 5897 | fi |
5898 | else | |
8d138742 | 5899 | RANLIB="$ac_cv_prog_RANLIB" |
dd184caf | 5900 | fi |
d9898ee8 | 5901 | |
8d138742 | 5902 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 5903 | |
d9898ee8 | 5904 | |
d9898ee8 | 5905 | |
d9898ee8 | 5906 | |
d9898ee8 | 5907 | |
d9898ee8 | 5908 | |
8d138742 CE |
5909 | # Determine commands to create old-style static archives. |
5910 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5911 | old_postinstall_cmds='chmod 644 $oldlib' | |
5912 | old_postuninstall_cmds= | |
5913 | ||
5914 | if test -n "$RANLIB"; then | |
5915 | case $host_os in | |
d50284c4 | 5916 | bitrig* | openbsd*) |
b0322a85 | 5917 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5918 | ;; |
5919 | *) | |
b0322a85 | 5920 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5921 | ;; |
5922 | esac | |
b0322a85 | 5923 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 5924 | fi |
5925 | ||
b0322a85 CE |
5926 | case $host_os in |
5927 | darwin*) | |
5928 | lock_old_archive_extraction=yes ;; | |
5929 | *) | |
5930 | lock_old_archive_extraction=no ;; | |
5931 | esac | |
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
d9898ee8 | 5938 | |
5939 | ||
5940 | ||
dd184caf | 5941 | |
d9898ee8 | 5942 | |
d9898ee8 | 5943 | |
dd184caf | 5944 | |
d9898ee8 | 5945 | |
d9898ee8 | 5946 | |
d9898ee8 | 5947 | |
d9898ee8 | 5948 | |
dd184caf | 5949 | |
d9898ee8 | 5950 | |
d9898ee8 | 5951 | |
dd184caf | 5952 | |
d9898ee8 | 5953 | |
d9898ee8 | 5954 | |
d9898ee8 | 5955 | |
d9898ee8 | 5956 | |
5957 | ||
d9898ee8 | 5958 | |
d9898ee8 | 5959 | |
dd184caf | 5960 | |
d9898ee8 | 5961 | |
d9898ee8 | 5962 | |
dd184caf | 5963 | |
d9898ee8 | 5964 | |
d9898ee8 | 5965 | |
5966 | ||
d9898ee8 | 5967 | |
d9898ee8 | 5968 | |
d9898ee8 | 5969 | |
d9898ee8 | 5970 | |
8d138742 CE |
5971 | # If no C compiler was specified, use CC. |
5972 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5973 | |
8d138742 CE |
5974 | # If no C compiler flags were specified, use CFLAGS. |
5975 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5976 | |
8d138742 CE |
5977 | # Allow CC to be a program name with arguments. |
5978 | compiler=$CC | |
d9898ee8 | 5979 | |
ac40fd9e | 5980 | |
d9898ee8 | 5981 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5983 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5984 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 5985 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5986 | else |
5987 | ||
5988 | # These are sane defaults that work on at least a few old systems. | |
5989 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5990 | ||
5991 | # Character class describing NM global symbol codes. | |
5992 | symcode='[BCDEGRST]' | |
5993 | ||
5994 | # Regexp to match symbols that can be accessed directly from C. | |
5995 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5996 | ||
d9898ee8 | 5997 | # Define system-specific variables. |
5998 | case $host_os in | |
5999 | aix*) | |
6000 | symcode='[BCDT]' | |
6001 | ;; | |
8d138742 | 6002 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 6003 | symcode='[ABCDGISTW]' |
6004 | ;; | |
8d138742 | 6005 | hpux*) |
d50284c4 | 6006 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 6007 | symcode='[ABCDEGRST]' |
6008 | fi | |
d9898ee8 | 6009 | ;; |
6010 | irix* | nonstopux*) | |
6011 | symcode='[BCDEGRST]' | |
6012 | ;; | |
6013 | osf*) | |
6014 | symcode='[BCDEGQRST]' | |
6015 | ;; | |
6016 | solaris*) | |
6017 | symcode='[BDRT]' | |
6018 | ;; | |
6019 | sco3.2v5*) | |
6020 | symcode='[DT]' | |
6021 | ;; | |
6022 | sysv4.2uw2*) | |
6023 | symcode='[DT]' | |
6024 | ;; | |
6025 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6026 | symcode='[ABDT]' | |
6027 | ;; | |
6028 | sysv4) | |
6029 | symcode='[DFNSTU]' | |
6030 | ;; | |
6031 | esac | |
6032 | ||
8d138742 CE |
6033 | # If we're using GNU nm, then use its standard symbol codes. |
6034 | case `$NM -V 2>&1` in | |
6035 | *GNU* | *'with BFD'*) | |
6036 | symcode='[ABCDGIRSTW]' ;; | |
6037 | esac | |
6038 | ||
d50284c4 CE |
6039 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6040 | # Gets list of data symbols to import. | |
6041 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6042 | # Adjust the below global symbol transforms to fixup imported variables. | |
6043 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6044 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6045 | lt_c_name_lib_hook="\ | |
6046 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6047 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6048 | else | |
6049 | # Disable hooks by default. | |
6050 | lt_cv_sys_global_symbol_to_import= | |
6051 | lt_cdecl_hook= | |
6052 | lt_c_name_hook= | |
6053 | lt_c_name_lib_hook= | |
6054 | fi | |
6055 | ||
8d138742 CE |
6056 | # Transform an extracted symbol line into a proper C declaration. |
6057 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6058 | # so use this general approach. | |
d50284c4 CE |
6059 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6060 | $lt_cdecl_hook\ | |
6061 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6062 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
8d138742 CE |
6063 | |
6064 | # Transform an extracted symbol line into symbol name and symbol address | |
d50284c4 CE |
6065 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6066 | $lt_c_name_hook\ | |
6067 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6068 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6069 | ||
6070 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6071 | # symbol address. | |
6072 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6073 | $lt_c_name_lib_hook\ | |
6074 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6075 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6076 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 | 6077 | |
d9898ee8 | 6078 | # Handle CRLF in mingw tool chain |
6079 | opt_cr= | |
6080 | case $build_os in | |
6081 | mingw*) | |
8d138742 | 6082 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 6083 | ;; |
6084 | esac | |
6085 | ||
8d138742 | 6086 | # Try without a prefix underscore, then with it. |
d9898ee8 | 6087 | for ac_symprfx in "" "_"; do |
6088 | ||
6089 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6090 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6091 | ||
6092 | # Write the raw and C identifiers. | |
8d138742 | 6093 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
d50284c4 CE |
6094 | # Fake it for dumpbin and say T for any non-static function, |
6095 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6096 | # Also find C++ and __fastcall symbols from MSVC++, |
6097 | # which start with @ or ?. | |
6098 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6099 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6100 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6101 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6102 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6103 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6104 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6105 | " \$ 0!~/External *\|/{next};"\ |
6106 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6107 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6108 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6109 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6110 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6111 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6112 | " ' prfx=^$ac_symprfx" |
6113 | else | |
6114 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6115 | fi | |
b0322a85 | 6116 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6117 | |
6118 | # Check to see that the pipe works correctly. | |
6119 | pipe_works=no | |
6120 | ||
6121 | rm -f conftest* | |
8d138742 | 6122 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6123 | #ifdef __cplusplus |
6124 | extern "C" { | |
6125 | #endif | |
6126 | char nm_test_var; | |
8d138742 CE |
6127 | void nm_test_func(void); |
6128 | void nm_test_func(void){} | |
d9898ee8 | 6129 | #ifdef __cplusplus |
6130 | } | |
6131 | #endif | |
6132 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6133 | _LT_EOF |
d9898ee8 | 6134 | |
b0322a85 | 6135 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6136 | (eval $ac_compile) 2>&5 |
6137 | ac_status=$? | |
b0322a85 CE |
6138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6139 | test $ac_status = 0; }; then | |
d9898ee8 | 6140 | # Now try to grab the symbols. |
6141 | nlist=conftest.nm | |
b0322a85 CE |
6142 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6143 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6144 | ac_status=$? |
b0322a85 CE |
6145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6146 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 6147 | # Try sorting and uniquifying the output. |
6148 | if sort "$nlist" | uniq > "$nlist"T; then | |
6149 | mv -f "$nlist"T "$nlist" | |
6150 | else | |
6151 | rm -f "$nlist"T | |
6152 | fi | |
6153 | ||
6154 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6155 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6156 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6157 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6158 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6159 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6160 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6161 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6162 | # define LT_DLSYM_CONST | |
d50284c4 | 6163 | #elif defined __osf__ |
b0322a85 CE |
6164 | /* This system does not cope well with relocations in const data. */ |
6165 | # define LT_DLSYM_CONST | |
6166 | #else | |
6167 | # define LT_DLSYM_CONST const | |
6168 | #endif | |
6169 | ||
d9898ee8 | 6170 | #ifdef __cplusplus |
6171 | extern "C" { | |
6172 | #endif | |
6173 | ||
8d138742 | 6174 | _LT_EOF |
d9898ee8 | 6175 | # Now generate the symbol file. |
8d138742 | 6176 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6177 | |
8d138742 | 6178 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6179 | |
8d138742 | 6180 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6181 | LT_DLSYM_CONST struct { |
d9898ee8 | 6182 | const char *name; |
8d138742 | 6183 | void *address; |
d9898ee8 | 6184 | } |
8d138742 | 6185 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6186 | { |
8d138742 CE |
6187 | { "@PROGRAM@", (void *) 0 }, |
6188 | _LT_EOF | |
d50284c4 | 6189 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6190 | cat <<\_LT_EOF >> conftest.$ac_ext |
6191 | {0, (void *) 0} | |
d9898ee8 | 6192 | }; |
6193 | ||
8d138742 CE |
6194 | /* This works around a problem in FreeBSD linker */ |
6195 | #ifdef FREEBSD_WORKAROUND | |
6196 | static const void *lt_preloaded_setup() { | |
6197 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6198 | } | |
6199 | #endif | |
6200 | ||
d9898ee8 | 6201 | #ifdef __cplusplus |
6202 | } | |
6203 | #endif | |
8d138742 | 6204 | _LT_EOF |
d9898ee8 | 6205 | # Now try linking the two files. |
6206 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6207 | lt_globsym_save_LIBS=$LIBS |
6208 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6209 | LIBS=conftstm.$ac_objext |
d9898ee8 | 6210 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6211 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 6212 | (eval $ac_link) 2>&5 |
6213 | ac_status=$? | |
b0322a85 | 6214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6215 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
d9898ee8 | 6216 | pipe_works=yes |
6217 | fi | |
b0322a85 CE |
6218 | LIBS=$lt_globsym_save_LIBS |
6219 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 6220 | else |
6221 | echo "cannot find nm_test_func in $nlist" >&5 | |
6222 | fi | |
6223 | else | |
6224 | echo "cannot find nm_test_var in $nlist" >&5 | |
6225 | fi | |
6226 | else | |
6227 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6228 | fi | |
6229 | else | |
6230 | echo "$progname: failed program was:" >&5 | |
6231 | cat conftest.$ac_ext >&5 | |
6232 | fi | |
8d138742 | 6233 | rm -rf conftest* conftst* |
d9898ee8 | 6234 | |
6235 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 6236 | if test yes = "$pipe_works"; then |
d9898ee8 | 6237 | break |
6238 | else | |
6239 | lt_cv_sys_global_symbol_pipe= | |
6240 | fi | |
6241 | done | |
6242 | ||
6243 | fi | |
6244 | ||
6245 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6246 | lt_cv_sys_global_symbol_to_cdecl= | |
6247 | fi | |
6248 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6250 | $as_echo "failed" >&6; } |
d9898ee8 | 6251 | else |
b0322a85 | 6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6253 | $as_echo "ok" >&6; } |
d9898ee8 | 6254 | fi |
6255 | ||
b0322a85 CE |
6256 | # Response file support. |
6257 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6258 | nm_file_list_spec='@' | |
6259 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6260 | nm_file_list_spec='@' | |
6261 | fi | |
6262 | ||
6263 | ||
6264 | ||
d9898ee8 | 6265 | |
6266 | ||
6267 | ||
6268 | ||
6269 | ||
d9898ee8 | 6270 | |
d9898ee8 | 6271 | |
d9898ee8 | 6272 | |
d9898ee8 | 6273 | |
d9898ee8 | 6274 | |
d9898ee8 | 6275 | |
d9898ee8 | 6276 | |
d9898ee8 | 6277 | |
d50284c4 CE |
6278 | |
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
6287 | ||
d9898ee8 | 6288 | |
d9898ee8 | 6289 | |
dd184caf | 6290 | |
8d138742 | 6291 | |
b0322a85 CE |
6292 | |
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6300 | $as_echo_n "checking for sysroot... " >&6; } | |
6301 | ||
6302 | # Check whether --with-sysroot was given. | |
6303 | if test "${with_sysroot+set}" = set; then : | |
6304 | withval=$with_sysroot; | |
6305 | else | |
6306 | with_sysroot=no | |
6307 | fi | |
6308 | ||
6309 | ||
6310 | lt_sysroot= | |
d50284c4 | 6311 | case $with_sysroot in #( |
b0322a85 | 6312 | yes) |
d50284c4 | 6313 | if test yes = "$GCC"; then |
b0322a85 CE |
6314 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6315 | fi | |
6316 | ;; #( | |
6317 | /*) | |
6318 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6319 | ;; #( | |
6320 | no|'') | |
6321 | ;; #( | |
6322 | *) | |
d50284c4 CE |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6324 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6325 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6326 | ;; | |
6327 | esac | |
6328 | ||
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6330 | $as_echo "${lt_sysroot:-no}" >&6; } | |
8d138742 CE |
6331 | |
6332 | ||
6333 | ||
6334 | ||
6335 | ||
d50284c4 CE |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6337 | $as_echo_n "checking for a working dd... " >&6; } | |
6338 | if ${ac_cv_path_lt_DD+:} false; then : | |
6339 | $as_echo_n "(cached) " >&6 | |
6340 | else | |
6341 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6342 | cat conftest.i conftest.i >conftest2.i | |
6343 | : ${lt_DD:=$DD} | |
6344 | if test -z "$lt_DD"; then | |
6345 | ac_path_lt_DD_found=false | |
6346 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6348 | for as_dir in $PATH | |
6349 | do | |
6350 | IFS=$as_save_IFS | |
6351 | test -z "$as_dir" && as_dir=. | |
6352 | for ac_prog in dd; do | |
6353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6354 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6355 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6356 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6357 | cmp -s conftest.i conftest.out \ | |
6358 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6359 | fi | |
6360 | $ac_path_lt_DD_found && break 3 | |
6361 | done | |
6362 | done | |
6363 | done | |
6364 | IFS=$as_save_IFS | |
6365 | if test -z "$ac_cv_path_lt_DD"; then | |
6366 | : | |
6367 | fi | |
6368 | else | |
6369 | ac_cv_path_lt_DD=$lt_DD | |
6370 | fi | |
6371 | ||
6372 | rm -f conftest.i conftest2.i conftest.out | |
6373 | fi | |
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6375 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6376 | ||
6377 | ||
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6379 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6380 | if ${lt_cv_truncate_bin+:} false; then : | |
6381 | $as_echo_n "(cached) " >&6 | |
6382 | else | |
6383 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6384 | cat conftest.i conftest.i >conftest2.i | |
6385 | lt_cv_truncate_bin= | |
6386 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6387 | cmp -s conftest.i conftest.out \ | |
6388 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6389 | fi | |
6390 | rm -f conftest.i conftest2.i conftest.out | |
6391 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6392 | fi | |
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6394 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6403 | func_cc_basename () | |
6404 | { | |
6405 | for cc_temp in $*""; do | |
6406 | case $cc_temp in | |
6407 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6408 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6409 | \-*) ;; | |
6410 | *) break;; | |
6411 | esac | |
6412 | done | |
6413 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6414 | } | |
6415 | ||
8d138742 | 6416 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6417 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 6418 | enableval=$enable_libtool_lock; |
d9898ee8 | 6419 | fi |
8d138742 | 6420 | |
d50284c4 | 6421 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
6422 | |
6423 | # Some flags need to be propagated to the compiler or linker for good | |
6424 | # libtool support. | |
6425 | case $host in | |
6426 | ia64-*-hpux*) | |
d50284c4 CE |
6427 | # Find out what ABI is being produced by ac_compile, and set mode |
6428 | # options accordingly. | |
8d138742 | 6429 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6430 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6431 | (eval $ac_compile) 2>&5 |
6432 | ac_status=$? | |
b0322a85 CE |
6433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6434 | test $ac_status = 0; }; then | |
8d138742 CE |
6435 | case `/usr/bin/file conftest.$ac_objext` in |
6436 | *ELF-32*) | |
d50284c4 | 6437 | HPUX_IA64_MODE=32 |
8d138742 CE |
6438 | ;; |
6439 | *ELF-64*) | |
d50284c4 | 6440 | HPUX_IA64_MODE=64 |
8d138742 CE |
6441 | ;; |
6442 | esac | |
6443 | fi | |
6444 | rm -rf conftest* | |
6445 | ;; | |
6446 | *-*-irix6*) | |
d50284c4 CE |
6447 | # Find out what ABI is being produced by ac_compile, and set linker |
6448 | # options accordingly. | |
b0322a85 CE |
6449 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6450 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6451 | (eval $ac_compile) 2>&5 |
6452 | ac_status=$? | |
b0322a85 CE |
6453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6454 | test $ac_status = 0; }; then | |
d50284c4 | 6455 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6456 | case `/usr/bin/file conftest.$ac_objext` in |
6457 | *32-bit*) | |
6458 | LD="${LD-ld} -melf32bsmip" | |
6459 | ;; | |
6460 | *N32*) | |
6461 | LD="${LD-ld} -melf32bmipn32" | |
6462 | ;; | |
6463 | *64-bit*) | |
6464 | LD="${LD-ld} -melf64bmip" | |
6465 | ;; | |
6466 | esac | |
6467 | else | |
6468 | case `/usr/bin/file conftest.$ac_objext` in | |
6469 | *32-bit*) | |
6470 | LD="${LD-ld} -32" | |
6471 | ;; | |
6472 | *N32*) | |
6473 | LD="${LD-ld} -n32" | |
6474 | ;; | |
6475 | *64-bit*) | |
6476 | LD="${LD-ld} -64" | |
6477 | ;; | |
6478 | esac | |
6479 | fi | |
6480 | fi | |
6481 | rm -rf conftest* | |
6482 | ;; | |
6483 | ||
d50284c4 CE |
6484 | mips64*-*linux*) |
6485 | # Find out what ABI is being produced by ac_compile, and set linker | |
6486 | # options accordingly. | |
6487 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6488 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6489 | (eval $ac_compile) 2>&5 | |
6490 | ac_status=$? | |
6491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6492 | test $ac_status = 0; }; then | |
6493 | emul=elf | |
6494 | case `/usr/bin/file conftest.$ac_objext` in | |
6495 | *32-bit*) | |
6496 | emul="${emul}32" | |
6497 | ;; | |
6498 | *64-bit*) | |
6499 | emul="${emul}64" | |
6500 | ;; | |
6501 | esac | |
6502 | case `/usr/bin/file conftest.$ac_objext` in | |
6503 | *MSB*) | |
6504 | emul="${emul}btsmip" | |
6505 | ;; | |
6506 | *LSB*) | |
6507 | emul="${emul}ltsmip" | |
6508 | ;; | |
6509 | esac | |
6510 | case `/usr/bin/file conftest.$ac_objext` in | |
6511 | *N32*) | |
6512 | emul="${emul}n32" | |
6513 | ;; | |
6514 | esac | |
6515 | LD="${LD-ld} -m $emul" | |
6516 | fi | |
6517 | rm -rf conftest* | |
6518 | ;; | |
6519 | ||
6520 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6521 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6522 | # Find out what ABI is being produced by ac_compile, and set linker |
6523 | # options accordingly. Note that the listed cases only cover the | |
6524 | # situations where additional linker options are needed (such as when | |
6525 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6526 | # vice versa); the common cases where no linker options are needed do | |
6527 | # not appear in the list. | |
8d138742 | 6528 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6529 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6530 | (eval $ac_compile) 2>&5 |
6531 | ac_status=$? | |
b0322a85 CE |
6532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6533 | test $ac_status = 0; }; then | |
8d138742 CE |
6534 | case `/usr/bin/file conftest.o` in |
6535 | *32-bit*) | |
6536 | case $host in | |
6537 | x86_64-*kfreebsd*-gnu) | |
6538 | LD="${LD-ld} -m elf_i386_fbsd" | |
6539 | ;; | |
6540 | x86_64-*linux*) | |
d50284c4 CE |
6541 | case `/usr/bin/file conftest.o` in |
6542 | *x86-64*) | |
6543 | LD="${LD-ld} -m elf32_x86_64" | |
6544 | ;; | |
6545 | *) | |
6546 | LD="${LD-ld} -m elf_i386" | |
6547 | ;; | |
6548 | esac | |
8d138742 | 6549 | ;; |
d50284c4 CE |
6550 | powerpc64le-*linux*) |
6551 | LD="${LD-ld} -m elf32lppclinux" | |
6552 | ;; | |
6553 | powerpc64-*linux*) | |
8d138742 CE |
6554 | LD="${LD-ld} -m elf32ppclinux" |
6555 | ;; | |
6556 | s390x-*linux*) | |
6557 | LD="${LD-ld} -m elf_s390" | |
6558 | ;; | |
6559 | sparc64-*linux*) | |
6560 | LD="${LD-ld} -m elf32_sparc" | |
6561 | ;; | |
6562 | esac | |
6563 | ;; | |
6564 | *64-bit*) | |
6565 | case $host in | |
6566 | x86_64-*kfreebsd*-gnu) | |
6567 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6568 | ;; | |
6569 | x86_64-*linux*) | |
6570 | LD="${LD-ld} -m elf_x86_64" | |
6571 | ;; | |
d50284c4 CE |
6572 | powerpcle-*linux*) |
6573 | LD="${LD-ld} -m elf64lppc" | |
6574 | ;; | |
6575 | powerpc-*linux*) | |
8d138742 CE |
6576 | LD="${LD-ld} -m elf64ppc" |
6577 | ;; | |
6578 | s390*-*linux*|s390*-*tpf*) | |
6579 | LD="${LD-ld} -m elf64_s390" | |
6580 | ;; | |
6581 | sparc*-*linux*) | |
6582 | LD="${LD-ld} -m elf64_sparc" | |
6583 | ;; | |
6584 | esac | |
6585 | ;; | |
6586 | esac | |
6587 | fi | |
6588 | rm -rf conftest* | |
6589 | ;; | |
6590 | ||
6591 | *-*-sco3.2v5*) | |
6592 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6593 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6594 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6596 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6597 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 | 6598 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6599 | else |
8d138742 CE |
6600 | ac_ext=c |
6601 | ac_cpp='$CPP $CPPFLAGS' | |
6602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6605 | ||
b0322a85 | 6606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
6607 | /* end confdefs.h. */ |
6608 | ||
6609 | int | |
6610 | main () | |
6611 | { | |
6612 | ||
6613 | ; | |
6614 | return 0; | |
6615 | } | |
6616 | _ACEOF | |
b0322a85 | 6617 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6618 | lt_cv_cc_needs_belf=yes |
6619 | else | |
b0322a85 | 6620 | lt_cv_cc_needs_belf=no |
8d138742 | 6621 | fi |
b0322a85 CE |
6622 | rm -f core conftest.err conftest.$ac_objext \ |
6623 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6624 | ac_ext=c |
6625 | ac_cpp='$CPP $CPPFLAGS' | |
6626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6629 | ||
6630 | fi | |
b0322a85 | 6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 6632 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 6633 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 6634 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6635 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
6636 | fi |
6637 | ;; | |
b0322a85 | 6638 | *-*solaris*) |
d50284c4 CE |
6639 | # Find out what ABI is being produced by ac_compile, and set linker |
6640 | # options accordingly. | |
8d138742 | 6641 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6642 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6643 | (eval $ac_compile) 2>&5 |
6644 | ac_status=$? | |
b0322a85 CE |
6645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6646 | test $ac_status = 0; }; then | |
8d138742 CE |
6647 | case `/usr/bin/file conftest.o` in |
6648 | *64-bit*) | |
6649 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6650 | yes*) |
6651 | case $host in | |
d50284c4 | 6652 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6653 | LD="${LD-ld} -m elf_x86_64" |
6654 | ;; | |
6655 | sparc*-*-solaris*) | |
6656 | LD="${LD-ld} -m elf64_sparc" | |
6657 | ;; | |
6658 | esac | |
6659 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6660 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6661 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6662 | fi |
6663 | ;; | |
8d138742 CE |
6664 | *) |
6665 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6666 | LD="${LD-ld} -64" | |
6667 | fi | |
6668 | ;; | |
6669 | esac | |
6670 | ;; | |
6671 | esac | |
6672 | fi | |
6673 | rm -rf conftest* | |
6674 | ;; | |
6675 | esac | |
6676 | ||
d50284c4 | 6677 | need_locks=$enable_libtool_lock |
8d138742 | 6678 | |
b0322a85 CE |
6679 | if test -n "$ac_tool_prefix"; then |
6680 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6681 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6683 | $as_echo_n "checking for $ac_word... " >&6; } | |
6684 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6685 | $as_echo_n "(cached) " >&6 | |
6686 | else | |
6687 | if test -n "$MANIFEST_TOOL"; then | |
6688 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6689 | else | |
6690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6691 | for as_dir in $PATH | |
6692 | do | |
6693 | IFS=$as_save_IFS | |
6694 | test -z "$as_dir" && as_dir=. | |
6695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6697 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6699 | break 2 | |
6700 | fi | |
6701 | done | |
6702 | done | |
6703 | IFS=$as_save_IFS | |
6704 | ||
6705 | fi | |
6706 | fi | |
6707 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6708 | if test -n "$MANIFEST_TOOL"; then | |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6710 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6711 | else | |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6713 | $as_echo "no" >&6; } | |
6714 | fi | |
6715 | ||
6716 | ||
6717 | fi | |
6718 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6719 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6720 | # Extract the first word of "mt", so it can be a program name with args. | |
6721 | set dummy mt; ac_word=$2 | |
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6723 | $as_echo_n "checking for $ac_word... " >&6; } | |
6724 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6725 | $as_echo_n "(cached) " >&6 | |
6726 | else | |
6727 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6728 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6729 | else | |
6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6731 | for as_dir in $PATH | |
6732 | do | |
6733 | IFS=$as_save_IFS | |
6734 | test -z "$as_dir" && as_dir=. | |
6735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6737 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6739 | break 2 | |
6740 | fi | |
6741 | done | |
6742 | done | |
6743 | IFS=$as_save_IFS | |
6744 | ||
6745 | fi | |
6746 | fi | |
6747 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6748 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6750 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6751 | else | |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6753 | $as_echo "no" >&6; } | |
6754 | fi | |
6755 | ||
6756 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6757 | MANIFEST_TOOL=":" | |
6758 | else | |
6759 | case $cross_compiling:$ac_tool_warned in | |
6760 | yes:) | |
6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6762 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6763 | ac_tool_warned=yes ;; | |
6764 | esac | |
6765 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6766 | fi | |
6767 | else | |
6768 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6769 | fi | |
6770 | ||
6771 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6773 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6774 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6775 | $as_echo_n "(cached) " >&6 | |
6776 | else | |
6777 | lt_cv_path_mainfest_tool=no | |
6778 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6779 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6780 | cat conftest.err >&5 | |
6781 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6782 | lt_cv_path_mainfest_tool=yes | |
6783 | fi | |
6784 | rm -f conftest* | |
6785 | fi | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6787 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6788 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
6789 | MANIFEST_TOOL=: |
6790 | fi | |
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
8d138742 CE |
6796 | |
6797 | case $host_os in | |
6798 | rhapsody* | darwin*) | |
6799 | if test -n "$ac_tool_prefix"; then | |
6800 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6801 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6803 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6804 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6805 | $as_echo_n "(cached) " >&6 |
6806 | else | |
6807 | if test -n "$DSYMUTIL"; then | |
6808 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6809 | else |
6810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6811 | for as_dir in $PATH | |
6812 | do | |
6813 | IFS=$as_save_IFS | |
6814 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6815 | for ac_exec_ext in '' $ac_executable_extensions; do |
6816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6817 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6819 | break 2 |
6820 | fi | |
6821 | done | |
b0322a85 | 6822 | done |
dd184caf | 6823 | IFS=$as_save_IFS |
d9898ee8 | 6824 | |
d9898ee8 | 6825 | fi |
6826 | fi | |
8d138742 CE |
6827 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6828 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 6830 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 6831 | else |
b0322a85 | 6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6833 | $as_echo "no" >&6; } |
d9898ee8 | 6834 | fi |
6835 | ||
8d138742 CE |
6836 | |
6837 | fi | |
6838 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6839 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6840 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6841 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6843 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6844 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6845 | $as_echo_n "(cached) " >&6 |
6846 | else | |
6847 | if test -n "$ac_ct_DSYMUTIL"; then | |
6848 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6849 | else | |
6850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6851 | for as_dir in $PATH | |
6852 | do | |
6853 | IFS=$as_save_IFS | |
6854 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6855 | for ac_exec_ext in '' $ac_executable_extensions; do |
6856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6857 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6859 | break 2 |
6860 | fi | |
6861 | done | |
b0322a85 | 6862 | done |
8d138742 CE |
6863 | IFS=$as_save_IFS |
6864 | ||
6865 | fi | |
6866 | fi | |
6867 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6868 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
6870 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
6871 | else | |
b0322a85 | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6873 | $as_echo "no" >&6; } |
6874 | fi | |
6875 | ||
6876 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6877 | DSYMUTIL=":" | |
dd184caf | 6878 | else |
6879 | case $cross_compiling:$ac_tool_warned in | |
6880 | yes:) | |
b0322a85 | 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6883 | ac_tool_warned=yes ;; |
6884 | esac | |
8d138742 | 6885 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6886 | fi |
d9898ee8 | 6887 | else |
8d138742 | 6888 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6889 | fi |
6890 | ||
8d138742 CE |
6891 | if test -n "$ac_tool_prefix"; then |
6892 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6893 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6895 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6896 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 6897 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6898 | else |
8d138742 CE |
6899 | if test -n "$NMEDIT"; then |
6900 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6901 | else |
6902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6903 | for as_dir in $PATH | |
6904 | do | |
6905 | IFS=$as_save_IFS | |
6906 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6907 | for ac_exec_ext in '' $ac_executable_extensions; do |
6908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6909 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6911 | break 2 |
6912 | fi | |
6913 | done | |
b0322a85 | 6914 | done |
dd184caf | 6915 | IFS=$as_save_IFS |
d9898ee8 | 6916 | |
6917 | fi | |
6918 | fi | |
8d138742 CE |
6919 | NMEDIT=$ac_cv_prog_NMEDIT |
6920 | if test -n "$NMEDIT"; then | |
b0322a85 | 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 6922 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 6923 | else |
b0322a85 | 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6925 | $as_echo "no" >&6; } |
d9898ee8 | 6926 | fi |
6927 | ||
dd184caf | 6928 | |
d9898ee8 | 6929 | fi |
8d138742 CE |
6930 | if test -z "$ac_cv_prog_NMEDIT"; then |
6931 | ac_ct_NMEDIT=$NMEDIT | |
6932 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6933 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6935 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6936 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 6937 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6938 | else |
8d138742 CE |
6939 | if test -n "$ac_ct_NMEDIT"; then |
6940 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 6941 | else |
6942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6943 | for as_dir in $PATH | |
6944 | do | |
6945 | IFS=$as_save_IFS | |
6946 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6947 | for ac_exec_ext in '' $ac_executable_extensions; do |
6948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6949 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6951 | break 2 |
6952 | fi | |
6953 | done | |
b0322a85 | 6954 | done |
dd184caf | 6955 | IFS=$as_save_IFS |
d9898ee8 | 6956 | |
d9898ee8 | 6957 | fi |
6958 | fi | |
8d138742 CE |
6959 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6960 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 6962 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 6963 | else |
b0322a85 | 6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6965 | $as_echo "no" >&6; } |
d9898ee8 | 6966 | fi |
6967 | ||
8d138742 CE |
6968 | if test "x$ac_ct_NMEDIT" = x; then |
6969 | NMEDIT=":" | |
dd184caf | 6970 | else |
6971 | case $cross_compiling:$ac_tool_warned in | |
6972 | yes:) | |
b0322a85 | 6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6974 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6975 | ac_tool_warned=yes ;; |
6976 | esac | |
8d138742 | 6977 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 6978 | fi |
d9898ee8 | 6979 | else |
8d138742 | 6980 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 6981 | fi |
6982 | ||
8d138742 CE |
6983 | if test -n "$ac_tool_prefix"; then |
6984 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6985 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6987 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6988 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 | 6989 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6990 | else |
8d138742 CE |
6991 | if test -n "$LIPO"; then |
6992 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6993 | else |
6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6995 | for as_dir in $PATH | |
6996 | do | |
6997 | IFS=$as_save_IFS | |
6998 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6999 | for ac_exec_ext in '' $ac_executable_extensions; do |
7000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7001 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 7002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7003 | break 2 |
7004 | fi | |
7005 | done | |
b0322a85 | 7006 | done |
dd184caf | 7007 | IFS=$as_save_IFS |
d9898ee8 | 7008 | |
7009 | fi | |
7010 | fi | |
8d138742 CE |
7011 | LIPO=$ac_cv_prog_LIPO |
7012 | if test -n "$LIPO"; then | |
b0322a85 | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 | 7014 | $as_echo "$LIPO" >&6; } |
d9898ee8 | 7015 | else |
b0322a85 | 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7017 | $as_echo "no" >&6; } |
d9898ee8 | 7018 | fi |
7019 | ||
dd184caf | 7020 | |
d9898ee8 | 7021 | fi |
8d138742 CE |
7022 | if test -z "$ac_cv_prog_LIPO"; then |
7023 | ac_ct_LIPO=$LIPO | |
7024 | # Extract the first word of "lipo", so it can be a program name with args. | |
7025 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7027 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7028 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 7029 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7030 | else |
8d138742 CE |
7031 | if test -n "$ac_ct_LIPO"; then |
7032 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 7033 | else |
7034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7035 | for as_dir in $PATH | |
7036 | do | |
7037 | IFS=$as_save_IFS | |
7038 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7039 | for ac_exec_ext in '' $ac_executable_extensions; do |
7040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7041 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7043 | break 2 |
7044 | fi | |
7045 | done | |
b0322a85 | 7046 | done |
dd184caf | 7047 | IFS=$as_save_IFS |
d9898ee8 | 7048 | |
d9898ee8 | 7049 | fi |
7050 | fi | |
8d138742 CE |
7051 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7052 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7054 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7055 | else |
b0322a85 | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7057 | $as_echo "no" >&6; } |
d9898ee8 | 7058 | fi |
7059 | ||
8d138742 CE |
7060 | if test "x$ac_ct_LIPO" = x; then |
7061 | LIPO=":" | |
dd184caf | 7062 | else |
7063 | case $cross_compiling:$ac_tool_warned in | |
7064 | yes:) | |
b0322a85 | 7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7066 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7067 | ac_tool_warned=yes ;; |
7068 | esac | |
8d138742 | 7069 | LIPO=$ac_ct_LIPO |
dd184caf | 7070 | fi |
d9898ee8 | 7071 | else |
8d138742 | 7072 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 7073 | fi |
7074 | ||
8d138742 CE |
7075 | if test -n "$ac_tool_prefix"; then |
7076 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7077 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7079 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7080 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 CE |
7081 | $as_echo_n "(cached) " >&6 |
7082 | else | |
7083 | if test -n "$OTOOL"; then | |
7084 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7085 | else | |
7086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7087 | for as_dir in $PATH | |
7088 | do | |
7089 | IFS=$as_save_IFS | |
7090 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7091 | for ac_exec_ext in '' $ac_executable_extensions; do |
7092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7093 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7095 | break 2 |
7096 | fi | |
7097 | done | |
b0322a85 | 7098 | done |
8d138742 | 7099 | IFS=$as_save_IFS |
d9898ee8 | 7100 | |
8d138742 CE |
7101 | fi |
7102 | fi | |
7103 | OTOOL=$ac_cv_prog_OTOOL | |
7104 | if test -n "$OTOOL"; then | |
b0322a85 | 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 CE |
7106 | $as_echo "$OTOOL" >&6; } |
7107 | else | |
b0322a85 | 7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7109 | $as_echo "no" >&6; } |
7110 | fi | |
d9898ee8 | 7111 | |
d9898ee8 | 7112 | |
d9898ee8 | 7113 | fi |
8d138742 CE |
7114 | if test -z "$ac_cv_prog_OTOOL"; then |
7115 | ac_ct_OTOOL=$OTOOL | |
7116 | # Extract the first word of "otool", so it can be a program name with args. | |
7117 | set dummy otool; ac_word=$2 | |
b0322a85 | 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7119 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7120 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7121 | $as_echo_n "(cached) " >&6 |
7122 | else | |
7123 | if test -n "$ac_ct_OTOOL"; then | |
7124 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7125 | else | |
7126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7127 | for as_dir in $PATH | |
7128 | do | |
7129 | IFS=$as_save_IFS | |
7130 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7131 | for ac_exec_ext in '' $ac_executable_extensions; do |
7132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7133 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7135 | break 2 |
7136 | fi | |
d9898ee8 | 7137 | done |
b0322a85 | 7138 | done |
8d138742 | 7139 | IFS=$as_save_IFS |
d9898ee8 | 7140 | |
8d138742 CE |
7141 | fi |
7142 | fi | |
7143 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7144 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7146 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7147 | else |
b0322a85 | 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7149 | $as_echo "no" >&6; } |
7150 | fi | |
d9898ee8 | 7151 | |
8d138742 CE |
7152 | if test "x$ac_ct_OTOOL" = x; then |
7153 | OTOOL=":" | |
7154 | else | |
7155 | case $cross_compiling:$ac_tool_warned in | |
7156 | yes:) | |
b0322a85 | 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7159 | ac_tool_warned=yes ;; | |
d9898ee8 | 7160 | esac |
8d138742 CE |
7161 | OTOOL=$ac_ct_OTOOL |
7162 | fi | |
7163 | else | |
7164 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 7165 | fi |
7166 | ||
8d138742 CE |
7167 | if test -n "$ac_tool_prefix"; then |
7168 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7169 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7171 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7172 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 | 7173 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7174 | else |
8d138742 CE |
7175 | if test -n "$OTOOL64"; then |
7176 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7177 | else | |
7178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7179 | for as_dir in $PATH | |
7180 | do | |
7181 | IFS=$as_save_IFS | |
7182 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7183 | for ac_exec_ext in '' $ac_executable_extensions; do |
7184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7185 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7187 | break 2 |
7188 | fi | |
7189 | done | |
b0322a85 | 7190 | done |
8d138742 | 7191 | IFS=$as_save_IFS |
d9898ee8 | 7192 | |
8d138742 CE |
7193 | fi |
7194 | fi | |
7195 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7196 | if test -n "$OTOOL64"; then | |
b0322a85 | 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 | 7198 | $as_echo "$OTOOL64" >&6; } |
d9898ee8 | 7199 | else |
b0322a85 | 7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7201 | $as_echo "no" >&6; } |
7202 | fi | |
d9898ee8 | 7203 | |
d9898ee8 | 7204 | |
d9898ee8 | 7205 | fi |
8d138742 CE |
7206 | if test -z "$ac_cv_prog_OTOOL64"; then |
7207 | ac_ct_OTOOL64=$OTOOL64 | |
7208 | # Extract the first word of "otool64", so it can be a program name with args. | |
7209 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7211 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7212 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7213 | $as_echo_n "(cached) " >&6 |
7214 | else | |
7215 | if test -n "$ac_ct_OTOOL64"; then | |
7216 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7217 | else | |
7218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7219 | for as_dir in $PATH | |
7220 | do | |
7221 | IFS=$as_save_IFS | |
7222 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7223 | for ac_exec_ext in '' $ac_executable_extensions; do |
7224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7225 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7227 | break 2 |
7228 | fi | |
7229 | done | |
b0322a85 | 7230 | done |
8d138742 | 7231 | IFS=$as_save_IFS |
d9898ee8 | 7232 | |
8d138742 CE |
7233 | fi |
7234 | fi | |
7235 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7236 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7238 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7239 | else |
b0322a85 | 7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7241 | $as_echo "no" >&6; } |
d9898ee8 | 7242 | fi |
7243 | ||
8d138742 CE |
7244 | if test "x$ac_ct_OTOOL64" = x; then |
7245 | OTOOL64=":" | |
d9898ee8 | 7246 | else |
8d138742 CE |
7247 | case $cross_compiling:$ac_tool_warned in |
7248 | yes:) | |
b0322a85 | 7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7251 | ac_tool_warned=yes ;; | |
7252 | esac | |
7253 | OTOOL64=$ac_ct_OTOOL64 | |
d9898ee8 | 7254 | fi |
8d138742 CE |
7255 | else |
7256 | OTOOL64="$ac_cv_prog_OTOOL64" | |
d9898ee8 | 7257 | fi |
7258 | ||
d9898ee8 | 7259 | |
d9898ee8 | 7260 | |
d9898ee8 | 7261 | |
d9898ee8 | 7262 | |
7263 | ||
dd184caf | 7264 | |
d9898ee8 | 7265 | |
d9898ee8 | 7266 | |
7267 | ||
d9898ee8 | 7268 | |
d9898ee8 | 7269 | |
d9898ee8 | 7270 | |
d9898ee8 | 7271 | |
7272 | ||
d9898ee8 | 7273 | |
d9898ee8 | 7274 | |
d9898ee8 | 7275 | |
7276 | ||
d9898ee8 | 7277 | |
d9898ee8 | 7278 | |
7279 | ||
7280 | ||
d9898ee8 | 7281 | |
d9898ee8 | 7282 | |
7283 | ||
8d138742 | 7284 | |
b0322a85 | 7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7286 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7287 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 | 7288 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7289 | else |
8d138742 | 7290 | lt_cv_apple_cc_single_mod=no |
d50284c4 | 7291 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7292 | # By default we will add the -single_module flag. You can override |
7293 | # by either setting the environment variable LT_MULTI_MODULE | |
7294 | # non-empty at configure time, or by adding -multi_module to the | |
7295 | # link flags. | |
7296 | rm -rf libconftest.dylib* | |
7297 | echo "int foo(void){return 1;}" > conftest.c | |
7298 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7299 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7300 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7301 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7302 | _lt_result=$? | |
b0322a85 CE |
7303 | # If there is a non-empty error log, and "single_module" |
7304 | # appears in it, assume the flag caused a linker warning | |
7305 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7306 | cat conftest.err >&5 | |
7307 | # Otherwise, if the output was created with a 0 exit code from | |
7308 | # the compiler, it worked. | |
d50284c4 | 7309 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
7310 | lt_cv_apple_cc_single_mod=yes |
7311 | else | |
7312 | cat conftest.err >&5 | |
7313 | fi | |
7314 | rm -rf libconftest.dylib* | |
7315 | rm -f conftest.* | |
7316 | fi | |
d9898ee8 | 7317 | fi |
b0322a85 | 7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7319 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7320 | |
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7322 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7323 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7324 | $as_echo_n "(cached) " >&6 |
7325 | else | |
7326 | lt_cv_ld_exported_symbols_list=no | |
7327 | save_LDFLAGS=$LDFLAGS | |
7328 | echo "_main" > conftest.sym | |
7329 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7331 | /* end confdefs.h. */ |
d9898ee8 | 7332 | |
8d138742 CE |
7333 | int |
7334 | main () | |
7335 | { | |
7336 | ||
7337 | ; | |
7338 | return 0; | |
7339 | } | |
7340 | _ACEOF | |
b0322a85 | 7341 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7342 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 7343 | else |
b0322a85 | 7344 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 7345 | fi |
b0322a85 CE |
7346 | rm -f core conftest.err conftest.$ac_objext \ |
7347 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7348 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7349 | |
8d138742 | 7350 | fi |
b0322a85 | 7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7352 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7353 | |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7355 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7356 | if ${lt_cv_ld_force_load+:} false; then : | |
7357 | $as_echo_n "(cached) " >&6 | |
7358 | else | |
7359 | lt_cv_ld_force_load=no | |
7360 | cat > conftest.c << _LT_EOF | |
7361 | int forced_loaded() { return 2;} | |
7362 | _LT_EOF | |
7363 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7364 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7365 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7366 | $AR cru libconftest.a conftest.o 2>&5 | |
7367 | echo "$RANLIB libconftest.a" >&5 | |
7368 | $RANLIB libconftest.a 2>&5 | |
7369 | cat > conftest.c << _LT_EOF | |
7370 | int main() { return 0;} | |
7371 | _LT_EOF | |
7372 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7373 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7374 | _lt_result=$? | |
7375 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7376 | cat conftest.err >&5 | |
d50284c4 | 7377 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7378 | lt_cv_ld_force_load=yes |
7379 | else | |
7380 | cat conftest.err >&5 | |
7381 | fi | |
7382 | rm -f conftest.err libconftest.a conftest conftest.c | |
7383 | rm -rf conftest.dSYM | |
7384 | ||
7385 | fi | |
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7387 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 7388 | case $host_os in |
8d138742 | 7389 | rhapsody* | darwin1.[012]) |
d50284c4 | 7390 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7391 | darwin1.*) |
d50284c4 | 7392 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7393 | darwin*) # darwin 5.x on |
7394 | # if running on 10.5 or later, the deployment target defaults | |
7395 | # to the OS version, if on x86, and 10.4, the deployment | |
7396 | # target defaults to 10.4. Don't you love it? | |
7397 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7398 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7399 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7400 | 10.[012][,.]*) | |
7401 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7402 | 10.*) |
d50284c4 | 7403 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7404 | esac |
7405 | ;; | |
7406 | esac | |
d50284c4 | 7407 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7408 | _lt_dar_single_mod='$single_module' |
7409 | fi | |
d50284c4 CE |
7410 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7411 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7412 | else |
d50284c4 | 7413 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7414 | fi |
d50284c4 | 7415 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7416 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7417 | else | |
7418 | _lt_dsymutil= | |
7419 | fi | |
7420 | ;; | |
7421 | esac | |
d9898ee8 | 7422 | |
d50284c4 CE |
7423 | # func_munge_path_list VARIABLE PATH |
7424 | # ----------------------------------- | |
7425 | # VARIABLE is name of variable containing _space_ separated list of | |
7426 | # directories to be munged by the contents of PATH, which is string | |
7427 | # having a format: | |
7428 | # "DIR[:DIR]:" | |
7429 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7430 | # ":DIR[:DIR]" | |
7431 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7432 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7433 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7434 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7435 | # "DIR[:DIR]" | |
7436 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7437 | func_munge_path_list () | |
7438 | { | |
7439 | case x$2 in | |
7440 | x) | |
7441 | ;; | |
7442 | *:) | |
7443 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7444 | ;; | |
7445 | x:*) | |
7446 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7447 | ;; | |
7448 | *::*) | |
7449 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7450 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7451 | ;; | |
7452 | *) | |
7453 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7454 | ;; | |
7455 | esac | |
7456 | } | |
7457 | ||
8d138742 CE |
7458 | ac_ext=c |
7459 | ac_cpp='$CPP $CPPFLAGS' | |
7460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7464 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7465 | # On Suns, sometimes $CPP names a directory. | |
7466 | if test -n "$CPP" && test -d "$CPP"; then | |
7467 | CPP= | |
7468 | fi | |
7469 | if test -z "$CPP"; then | |
b0322a85 | 7470 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7471 | $as_echo_n "(cached) " >&6 |
7472 | else | |
7473 | # Double quotes because CPP needs to be expanded | |
7474 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7475 | do | |
7476 | ac_preproc_ok=false | |
7477 | for ac_c_preproc_warn_flag in '' yes | |
7478 | do | |
7479 | # Use a header file that comes with gcc, so configuring glibc | |
7480 | # with a fresh cross-compiler works. | |
7481 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7482 | # <limits.h> exists even on freestanding compilers. | |
7483 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7484 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7486 | /* end confdefs.h. */ |
7487 | #ifdef __STDC__ | |
7488 | # include <limits.h> | |
7489 | #else | |
7490 | # include <assert.h> | |
7491 | #endif | |
7492 | Syntax error | |
7493 | _ACEOF | |
b0322a85 | 7494 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7495 | |
b0322a85 | 7496 | else |
8d138742 CE |
7497 | # Broken: fails on valid input. |
7498 | continue | |
7499 | fi | |
b0322a85 | 7500 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7501 | |
8d138742 CE |
7502 | # OK, works on sane cases. Now check whether nonexistent headers |
7503 | # can be detected and how. | |
b0322a85 | 7504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7505 | /* end confdefs.h. */ |
7506 | #include <ac_nonexistent.h> | |
7507 | _ACEOF | |
b0322a85 | 7508 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7509 | # Broken: success on invalid input. |
7510 | continue | |
7511 | else | |
8d138742 CE |
7512 | # Passes both tests. |
7513 | ac_preproc_ok=: | |
7514 | break | |
7515 | fi | |
b0322a85 | 7516 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7517 | |
8d138742 CE |
7518 | done |
7519 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7520 | rm -f conftest.i conftest.err conftest.$ac_ext |
7521 | if $ac_preproc_ok; then : | |
8d138742 CE |
7522 | break |
7523 | fi | |
d9898ee8 | 7524 | |
8d138742 CE |
7525 | done |
7526 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7527 | |
8d138742 CE |
7528 | fi |
7529 | CPP=$ac_cv_prog_CPP | |
7530 | else | |
7531 | ac_cv_prog_CPP=$CPP | |
7532 | fi | |
b0322a85 | 7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7534 | $as_echo "$CPP" >&6; } |
7535 | ac_preproc_ok=false | |
7536 | for ac_c_preproc_warn_flag in '' yes | |
7537 | do | |
7538 | # Use a header file that comes with gcc, so configuring glibc | |
7539 | # with a fresh cross-compiler works. | |
7540 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7541 | # <limits.h> exists even on freestanding compilers. | |
7542 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
b0322a85 CE |
7543 | # not just through cpp. "Syntax error" is here to catch this case. |
7544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7545 | /* end confdefs.h. */ | |
7546 | #ifdef __STDC__ | |
7547 | # include <limits.h> | |
7548 | #else | |
7549 | # include <assert.h> | |
7550 | #endif | |
7551 | Syntax error | |
7552 | _ACEOF | |
7553 | if ac_fn_c_try_cpp "$LINENO"; then : | |
d9898ee8 | 7554 | |
b0322a85 | 7555 | else |
8d138742 CE |
7556 | # Broken: fails on valid input. |
7557 | continue | |
7558 | fi | |
b0322a85 | 7559 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7560 | |
8d138742 CE |
7561 | # OK, works on sane cases. Now check whether nonexistent headers |
7562 | # can be detected and how. | |
b0322a85 | 7563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7564 | /* end confdefs.h. */ |
7565 | #include <ac_nonexistent.h> | |
7566 | _ACEOF | |
b0322a85 | 7567 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7568 | # Broken: success on invalid input. |
7569 | continue | |
7570 | else | |
8d138742 CE |
7571 | # Passes both tests. |
7572 | ac_preproc_ok=: | |
7573 | break | |
7574 | fi | |
b0322a85 | 7575 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7576 | |
8d138742 CE |
7577 | done |
7578 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7579 | rm -f conftest.i conftest.err conftest.$ac_ext |
7580 | if $ac_preproc_ok; then : | |
7581 | ||
8d138742 | 7582 | else |
b0322a85 | 7583 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7585 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7586 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7587 | fi |
d9898ee8 | 7588 | |
8d138742 CE |
7589 | ac_ext=c |
7590 | ac_cpp='$CPP $CPPFLAGS' | |
7591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7594 | |
d9898ee8 | 7595 | |
b0322a85 | 7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7597 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7598 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7599 | $as_echo_n "(cached) " >&6 |
7600 | else | |
b0322a85 | 7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7602 | /* end confdefs.h. */ |
7603 | #include <stdlib.h> | |
7604 | #include <stdarg.h> | |
7605 | #include <string.h> | |
7606 | #include <float.h> | |
d9898ee8 | 7607 | |
8d138742 CE |
7608 | int |
7609 | main () | |
7610 | { | |
d9898ee8 | 7611 | |
8d138742 CE |
7612 | ; |
7613 | return 0; | |
7614 | } | |
7615 | _ACEOF | |
b0322a85 | 7616 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7617 | ac_cv_header_stdc=yes |
7618 | else | |
b0322a85 | 7619 | ac_cv_header_stdc=no |
8d138742 | 7620 | fi |
8d138742 | 7621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7622 | |
8d138742 CE |
7623 | if test $ac_cv_header_stdc = yes; then |
7624 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7626 | /* end confdefs.h. */ |
7627 | #include <string.h> | |
d9898ee8 | 7628 | |
8d138742 CE |
7629 | _ACEOF |
7630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7631 | $EGREP "memchr" >/dev/null 2>&1; then : |
7632 | ||
d9898ee8 | 7633 | else |
8d138742 CE |
7634 | ac_cv_header_stdc=no |
7635 | fi | |
7636 | rm -f conftest* | |
d9898ee8 | 7637 | |
7638 | fi | |
d9898ee8 | 7639 | |
8d138742 CE |
7640 | if test $ac_cv_header_stdc = yes; then |
7641 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7643 | /* end confdefs.h. */ |
7644 | #include <stdlib.h> | |
7645 | ||
7646 | _ACEOF | |
7647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7648 | $EGREP "free" >/dev/null 2>&1; then : |
7649 | ||
d9898ee8 | 7650 | else |
8d138742 | 7651 | ac_cv_header_stdc=no |
d9898ee8 | 7652 | fi |
8d138742 | 7653 | rm -f conftest* |
d9898ee8 | 7654 | |
7655 | fi | |
d9898ee8 | 7656 | |
8d138742 CE |
7657 | if test $ac_cv_header_stdc = yes; then |
7658 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7659 | if test "$cross_compiling" = yes; then : |
8d138742 | 7660 | : |
d9898ee8 | 7661 | else |
b0322a85 | 7662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7663 | /* end confdefs.h. */ |
7664 | #include <ctype.h> | |
7665 | #include <stdlib.h> | |
7666 | #if ((' ' & 0x0FF) == 0x020) | |
7667 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7668 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7669 | #else | |
7670 | # define ISLOWER(c) \ | |
7671 | (('a' <= (c) && (c) <= 'i') \ | |
7672 | || ('j' <= (c) && (c) <= 'r') \ | |
7673 | || ('s' <= (c) && (c) <= 'z')) | |
7674 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7675 | #endif | |
d9898ee8 | 7676 | |
8d138742 CE |
7677 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7678 | int | |
7679 | main () | |
7680 | { | |
7681 | int i; | |
7682 | for (i = 0; i < 256; i++) | |
7683 | if (XOR (islower (i), ISLOWER (i)) | |
7684 | || toupper (i) != TOUPPER (i)) | |
7685 | return 2; | |
7686 | return 0; | |
7687 | } | |
7688 | _ACEOF | |
b0322a85 | 7689 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 7690 | |
b0322a85 CE |
7691 | else |
7692 | ac_cv_header_stdc=no | |
8d138742 | 7693 | fi |
b0322a85 CE |
7694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7695 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 7696 | fi |
7697 | ||
8d138742 CE |
7698 | fi |
7699 | fi | |
b0322a85 | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7701 | $as_echo "$ac_cv_header_stdc" >&6; } |
7702 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7703 | |
b0322a85 | 7704 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7705 | |
7706 | fi | |
d9898ee8 | 7707 | |
8d138742 | 7708 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7709 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7710 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7711 | do : |
7712 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7713 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7714 | " | |
7715 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7716 | cat >>confdefs.h <<_ACEOF |
7717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7718 | _ACEOF | |
d9898ee8 | 7719 | |
8d138742 | 7720 | fi |
d9898ee8 | 7721 | |
8d138742 | 7722 | done |
d9898ee8 | 7723 | |
d9898ee8 | 7724 | |
8d138742 | 7725 | for ac_header in dlfcn.h |
b0322a85 CE |
7726 | do : |
7727 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7728 | " | |
7729 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7730 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7731 | #define HAVE_DLFCN_H 1 |
8d138742 | 7732 | _ACEOF |
d9898ee8 | 7733 | |
8d138742 | 7734 | fi |
d9898ee8 | 7735 | |
8d138742 | 7736 | done |
d9898ee8 | 7737 | |
d9898ee8 | 7738 | |
d9898ee8 | 7739 | |
b0322a85 CE |
7740 | |
7741 | ||
8d138742 CE |
7742 | # Set options |
7743 | ||
7744 | ||
7745 | ||
7746 | enable_dlopen=no | |
7747 | ||
7748 | ||
7749 | enable_win32_dll=no | |
d9898ee8 | 7750 | |
8d138742 CE |
7751 | |
7752 | # Check whether --enable-shared was given. | |
b0322a85 | 7753 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7754 | enableval=$enable_shared; p=${PACKAGE-default} |
7755 | case $enableval in | |
7756 | yes) enable_shared=yes ;; | |
7757 | no) enable_shared=no ;; | |
d9898ee8 | 7758 | *) |
8d138742 CE |
7759 | enable_shared=no |
7760 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7761 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7762 | for pkg in $enableval; do |
d50284c4 | 7763 | IFS=$lt_save_ifs |
8d138742 CE |
7764 | if test "X$pkg" = "X$p"; then |
7765 | enable_shared=yes | |
7766 | fi | |
7767 | done | |
d50284c4 | 7768 | IFS=$lt_save_ifs |
d9898ee8 | 7769 | ;; |
7770 | esac | |
8d138742 CE |
7771 | else |
7772 | enable_shared=yes | |
7773 | fi | |
d9898ee8 | 7774 | |
d9898ee8 | 7775 | |
d9898ee8 | 7776 | |
d9898ee8 | 7777 | |
d9898ee8 | 7778 | |
d9898ee8 | 7779 | |
d9898ee8 | 7780 | |
d9898ee8 | 7781 | |
d9898ee8 | 7782 | |
8d138742 | 7783 | # Check whether --enable-static was given. |
b0322a85 | 7784 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7785 | enableval=$enable_static; p=${PACKAGE-default} |
7786 | case $enableval in | |
7787 | yes) enable_static=yes ;; | |
7788 | no) enable_static=no ;; | |
7789 | *) | |
7790 | enable_static=no | |
7791 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7792 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7793 | for pkg in $enableval; do |
d50284c4 | 7794 | IFS=$lt_save_ifs |
8d138742 CE |
7795 | if test "X$pkg" = "X$p"; then |
7796 | enable_static=yes | |
7797 | fi | |
7798 | done | |
d50284c4 | 7799 | IFS=$lt_save_ifs |
8d138742 CE |
7800 | ;; |
7801 | esac | |
d9898ee8 | 7802 | else |
8d138742 CE |
7803 | enable_static=yes |
7804 | fi | |
7805 | ||
d9898ee8 | 7806 | |
dd184caf | 7807 | |
dd184caf | 7808 | |
d9898ee8 | 7809 | |
d9898ee8 | 7810 | |
d9898ee8 | 7811 | |
d9898ee8 | 7812 | |
d9898ee8 | 7813 | |
dd184caf | 7814 | |
8d138742 | 7815 | # Check whether --with-pic was given. |
b0322a85 CE |
7816 | if test "${with_pic+set}" = set; then : |
7817 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7818 | case $withval in | |
7819 | yes|no) pic_mode=$withval ;; | |
7820 | *) | |
7821 | pic_mode=default | |
7822 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7823 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7824 | for lt_pkg in $withval; do |
d50284c4 | 7825 | IFS=$lt_save_ifs |
b0322a85 CE |
7826 | if test "X$lt_pkg" = "X$lt_p"; then |
7827 | pic_mode=yes | |
7828 | fi | |
7829 | done | |
d50284c4 | 7830 | IFS=$lt_save_ifs |
b0322a85 CE |
7831 | ;; |
7832 | esac | |
8d138742 CE |
7833 | else |
7834 | pic_mode=default | |
d9898ee8 | 7835 | fi |
dd184caf | 7836 | |
d9898ee8 | 7837 | |
d9898ee8 | 7838 | |
d9898ee8 | 7839 | |
d9898ee8 | 7840 | |
d9898ee8 | 7841 | |
d9898ee8 | 7842 | |
d9898ee8 | 7843 | |
8d138742 | 7844 | # Check whether --enable-fast-install was given. |
b0322a85 | 7845 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7846 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7847 | case $enableval in | |
7848 | yes) enable_fast_install=yes ;; | |
7849 | no) enable_fast_install=no ;; | |
7850 | *) | |
7851 | enable_fast_install=no | |
7852 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7853 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7854 | for pkg in $enableval; do |
d50284c4 | 7855 | IFS=$lt_save_ifs |
8d138742 CE |
7856 | if test "X$pkg" = "X$p"; then |
7857 | enable_fast_install=yes | |
7858 | fi | |
7859 | done | |
d50284c4 | 7860 | IFS=$lt_save_ifs |
d9898ee8 | 7861 | ;; |
8d138742 CE |
7862 | esac |
7863 | else | |
7864 | enable_fast_install=yes | |
7865 | fi | |
d9898ee8 | 7866 | |
d9898ee8 | 7867 | |
d9898ee8 | 7868 | |
d9898ee8 | 7869 | |
d9898ee8 | 7870 | |
d9898ee8 | 7871 | |
d9898ee8 | 7872 | |
d9898ee8 | 7873 | |
d50284c4 CE |
7874 | shared_archive_member_spec= |
7875 | case $host,$enable_shared in | |
7876 | power*-*-aix[5-9]*,yes) | |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7878 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7879 | ||
7880 | # Check whether --with-aix-soname was given. | |
7881 | if test "${with_aix_soname+set}" = set; then : | |
7882 | withval=$with_aix_soname; case $withval in | |
7883 | aix|svr4|both) | |
7884 | ;; | |
7885 | *) | |
7886 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7887 | ;; | |
7888 | esac | |
7889 | lt_cv_with_aix_soname=$with_aix_soname | |
7890 | else | |
7891 | if ${lt_cv_with_aix_soname+:} false; then : | |
7892 | $as_echo_n "(cached) " >&6 | |
7893 | else | |
7894 | lt_cv_with_aix_soname=aix | |
7895 | fi | |
7896 | ||
7897 | with_aix_soname=$lt_cv_with_aix_soname | |
7898 | fi | |
7899 | ||
7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7901 | $as_echo "$with_aix_soname" >&6; } | |
7902 | if test aix != "$with_aix_soname"; then | |
7903 | # For the AIX way of multilib, we name the shared archive member | |
7904 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7905 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7906 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7907 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7908 | if test 64 = "${OBJECT_MODE-32}"; then | |
7909 | shared_archive_member_spec=shr_64 | |
7910 | else | |
7911 | shared_archive_member_spec=shr | |
7912 | fi | |
7913 | fi | |
7914 | ;; | |
7915 | *) | |
7916 | with_aix_soname=aix | |
7917 | ;; | |
7918 | esac | |
7919 | ||
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | ||
7925 | ||
d9898ee8 | 7926 | |
d9898ee8 | 7927 | |
d9898ee8 | 7928 | |
8d138742 | 7929 | # This can be used to rebuild libtool when needed |
d50284c4 | 7930 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 7931 | |
8d138742 CE |
7932 | # Always use our own libtool. |
7933 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7934 | |
d9898ee8 | 7935 | |
d9898ee8 | 7936 | |
d9898ee8 | 7937 | |
d9898ee8 | 7938 | |
d9898ee8 | 7939 | |
d9898ee8 | 7940 | |
d9898ee8 | 7941 | |
d9898ee8 | 7942 | |
d9898ee8 | 7943 | |
d9898ee8 | 7944 | |
d9898ee8 | 7945 | |
d9898ee8 | 7946 | |
d9898ee8 | 7947 | |
d9898ee8 | 7948 | |
d9898ee8 | 7949 | |
d9898ee8 | 7950 | |
d9898ee8 | 7951 | |
d9898ee8 | 7952 | |
b0322a85 CE |
7953 | |
7954 | ||
7955 | ||
7956 | ||
7957 | ||
d9898ee8 | 7958 | |
d9898ee8 | 7959 | |
d9898ee8 | 7960 | |
ac40fd9e | 7961 | |
d9898ee8 | 7962 | |
d9898ee8 | 7963 | |
8d138742 | 7964 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7965 | |
d9898ee8 | 7966 | |
d9898ee8 | 7967 | |
d9898ee8 | 7968 | |
d9898ee8 | 7969 | |
d9898ee8 | 7970 | |
d9898ee8 | 7971 | |
d9898ee8 | 7972 | |
d9898ee8 | 7973 | |
d9898ee8 | 7974 | |
ac40fd9e | 7975 | |
d9898ee8 | 7976 | |
d9898ee8 | 7977 | |
d9898ee8 | 7978 | |
d50284c4 | 7979 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
7980 | setopt NO_GLOB_SUBST |
7981 | fi | |
d9898ee8 | 7982 | |
b0322a85 | 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7984 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7985 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7986 | $as_echo_n "(cached) " >&6 |
7987 | else | |
7988 | rm -f .libs 2>/dev/null | |
7989 | mkdir .libs 2>/dev/null | |
7990 | if test -d .libs; then | |
7991 | lt_cv_objdir=.libs | |
7992 | else | |
7993 | # MS-DOS does not allow filenames that begin with a dot. | |
7994 | lt_cv_objdir=_libs | |
7995 | fi | |
7996 | rmdir .libs 2>/dev/null | |
7997 | fi | |
b0322a85 | 7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7999 | $as_echo "$lt_cv_objdir" >&6; } |
8000 | objdir=$lt_cv_objdir | |
d9898ee8 | 8001 | |
d9898ee8 | 8002 | |
d9898ee8 | 8003 | |
d9898ee8 | 8004 | |
d9898ee8 | 8005 | |
8d138742 CE |
8006 | cat >>confdefs.h <<_ACEOF |
8007 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8008 | _ACEOF | |
d9898ee8 | 8009 | |
d9898ee8 | 8010 | |
d9898ee8 | 8011 | |
d9898ee8 | 8012 | |
8d138742 CE |
8013 | case $host_os in |
8014 | aix3*) | |
8015 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8016 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8017 | # vanish in a puff of smoke. | |
d50284c4 | 8018 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8019 | COLLECT_NAMES= |
8020 | export COLLECT_NAMES | |
8021 | fi | |
d9898ee8 | 8022 | ;; |
8023 | esac | |
d9898ee8 | 8024 | |
8d138742 CE |
8025 | # Global variables: |
8026 | ofile=libtool | |
8027 | can_build_shared=yes | |
d9898ee8 | 8028 | |
d50284c4 | 8029 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8030 | # which needs '.lib'). |
8031 | libext=a | |
d9898ee8 | 8032 | |
d50284c4 | 8033 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8034 | |
d50284c4 CE |
8035 | old_CC=$CC |
8036 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8037 | |
8d138742 CE |
8038 | # Set sane defaults for various variables |
8039 | test -z "$CC" && CC=cc | |
8040 | test -z "$LTCC" && LTCC=$CC | |
8041 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8042 | test -z "$LD" && LD=ld | |
8043 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8044 | |
d50284c4 CE |
8045 | func_cc_basename $compiler |
8046 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8047 | |
dd184caf | 8048 | |
8d138742 CE |
8049 | # Only perform the check for file, if the check method requires it |
8050 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8051 | case $deplibs_check_method in | |
8052 | file_magic*) | |
8053 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8055 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8056 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8057 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8058 | else |
8d138742 CE |
8059 | case $MAGIC_CMD in |
8060 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8061 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8062 | ;; |
8063 | *) | |
d50284c4 CE |
8064 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8065 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8066 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8067 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8068 | IFS=$lt_save_ifs |
8d138742 | 8069 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8070 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8071 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8072 | if test -n "$file_magic_test_file"; then |
8073 | case $deplibs_check_method in | |
8074 | "file_magic "*) | |
8075 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8076 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8077 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8078 | $EGREP "$file_magic_regex" > /dev/null; then | |
8079 | : | |
8080 | else | |
8081 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8082 | |
8d138742 CE |
8083 | *** Warning: the command libtool uses to detect shared libraries, |
8084 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8085 | *** The result is that libtool may fail to recognize shared libraries | |
8086 | *** as such. This will affect the creation of libtool libraries that | |
8087 | *** depend on shared libraries, but programs linked with such libtool | |
8088 | *** libraries will work regardless of this problem. Nevertheless, you | |
8089 | *** may want to report the problem to your system manager and/or to | |
8090 | *** bug-libtool@gnu.org | |
d9898ee8 | 8091 | |
8d138742 CE |
8092 | _LT_EOF |
8093 | fi ;; | |
8094 | esac | |
8095 | fi | |
8096 | break | |
8097 | fi | |
8098 | done | |
d50284c4 CE |
8099 | IFS=$lt_save_ifs |
8100 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8101 | ;; |
8102 | esac | |
d9898ee8 | 8103 | fi |
8104 | ||
d50284c4 | 8105 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8106 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8108 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8109 | else |
b0322a85 | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8111 | $as_echo "no" >&6; } |
8112 | fi | |
d9898ee8 | 8113 | |
d9898ee8 | 8114 | |
d9898ee8 | 8115 | |
d9898ee8 | 8116 | |
d9898ee8 | 8117 | |
8d138742 CE |
8118 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8119 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8121 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8122 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8123 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8124 | else |
8d138742 CE |
8125 | case $MAGIC_CMD in |
8126 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8127 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8128 | ;; |
8129 | *) | |
d50284c4 CE |
8130 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8131 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8132 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8133 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8134 | IFS=$lt_save_ifs |
8d138742 | 8135 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8136 | if test -f "$ac_dir/file"; then |
8137 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8138 | if test -n "$file_magic_test_file"; then |
8139 | case $deplibs_check_method in | |
8140 | "file_magic "*) | |
8141 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8142 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8143 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8144 | $EGREP "$file_magic_regex" > /dev/null; then | |
8145 | : | |
8146 | else | |
8147 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8148 | |
8d138742 CE |
8149 | *** Warning: the command libtool uses to detect shared libraries, |
8150 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8151 | *** The result is that libtool may fail to recognize shared libraries | |
8152 | *** as such. This will affect the creation of libtool libraries that | |
8153 | *** depend on shared libraries, but programs linked with such libtool | |
8154 | *** libraries will work regardless of this problem. Nevertheless, you | |
8155 | *** may want to report the problem to your system manager and/or to | |
8156 | *** bug-libtool@gnu.org | |
dd184caf | 8157 | |
8d138742 CE |
8158 | _LT_EOF |
8159 | fi ;; | |
8160 | esac | |
8161 | fi | |
8162 | break | |
8163 | fi | |
8164 | done | |
d50284c4 CE |
8165 | IFS=$lt_save_ifs |
8166 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8167 | ;; |
8168 | esac | |
d9898ee8 | 8169 | fi |
d9898ee8 | 8170 | |
d50284c4 | 8171 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8172 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8174 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8175 | else |
b0322a85 | 8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8177 | $as_echo "no" >&6; } |
d9898ee8 | 8178 | fi |
dd184caf | 8179 | |
8d138742 CE |
8180 | |
8181 | else | |
8182 | MAGIC_CMD=: | |
8183 | fi | |
d9898ee8 | 8184 | fi |
d9898ee8 | 8185 | |
8d138742 CE |
8186 | fi |
8187 | ;; | |
8188 | esac | |
d9898ee8 | 8189 | |
8d138742 | 8190 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8191 | |
d50284c4 | 8192 | lt_save_CC=$CC |
8d138742 CE |
8193 | ac_ext=c |
8194 | ac_cpp='$CPP $CPPFLAGS' | |
8195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8198 | |
d9898ee8 | 8199 | |
8d138742 CE |
8200 | # Source file extension for C test sources. |
8201 | ac_ext=c | |
d9898ee8 | 8202 | |
8d138742 CE |
8203 | # Object file extension for compiled C test sources. |
8204 | objext=o | |
8205 | objext=$objext | |
dd184caf | 8206 | |
8d138742 CE |
8207 | # Code to be used in simple compile tests |
8208 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8209 | |
8d138742 CE |
8210 | # Code to be used in simple link tests |
8211 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8212 | |
dd184caf | 8213 | |
d9898ee8 | 8214 | |
d9898ee8 | 8215 | |
dd184caf | 8216 | |
d9898ee8 | 8217 | |
d9898ee8 | 8218 | |
8d138742 CE |
8219 | # If no C compiler was specified, use CC. |
8220 | LTCC=${LTCC-"$CC"} | |
dd184caf | 8221 | |
8d138742 CE |
8222 | # If no C compiler flags were specified, use CFLAGS. |
8223 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8224 | |
8d138742 CE |
8225 | # Allow CC to be a program name with arguments. |
8226 | compiler=$CC | |
d9898ee8 | 8227 | |
8d138742 CE |
8228 | # Save the default compiler, since it gets overwritten when the other |
8229 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8230 | compiler_DEFAULT=$CC | |
d9898ee8 | 8231 | |
8d138742 CE |
8232 | # save warnings/boilerplate of simple test code |
8233 | ac_outfile=conftest.$ac_objext | |
8234 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8235 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8236 | _lt_compiler_boilerplate=`cat conftest.err` | |
8237 | $RM conftest* | |
d9898ee8 | 8238 | |
8d138742 CE |
8239 | ac_outfile=conftest.$ac_objext |
8240 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8241 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8242 | _lt_linker_boilerplate=`cat conftest.err` | |
8243 | $RM -r conftest* | |
d9898ee8 | 8244 | |
8245 | ||
8d138742 | 8246 | if test -n "$compiler"; then |
d9898ee8 | 8247 | |
8d138742 | 8248 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8249 | |
d50284c4 | 8250 | if test yes = "$GCC"; then |
b0322a85 CE |
8251 | case $cc_basename in |
8252 | nvcc*) | |
8253 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8254 | *) | |
8255 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8256 | esac | |
d9898ee8 | 8257 | |
b0322a85 | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8259 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8260 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8261 | $as_echo_n "(cached) " >&6 |
8262 | else | |
8263 | lt_cv_prog_compiler_rtti_exceptions=no | |
8264 | ac_outfile=conftest.$ac_objext | |
8265 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8266 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8267 | # Insert the option either (1) after the last *FLAGS variable, or |
8268 | # (2) before a word containing "conftest.", or (3) at the end. | |
8269 | # Note that $ac_compile itself does not contain backslashes and begins | |
8270 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8271 | # The option is referenced via a variable to avoid confusing sed. | |
8272 | lt_compile=`echo "$ac_compile" | $SED \ | |
8273 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8274 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8275 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8276 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8277 | (eval "$lt_compile" 2>conftest.err) |
8278 | ac_status=$? | |
8279 | cat conftest.err >&5 | |
b0322a85 | 8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8281 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8282 | # The compiler can only warn and ignore the option if not recognized | |
8283 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8284 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8285 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8286 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8287 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8288 | fi | |
8289 | fi | |
8290 | $RM conftest* | |
d9898ee8 | 8291 | |
8292 | fi | |
b0322a85 | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8294 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8295 | |
d50284c4 | 8296 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
8297 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8298 | else | |
8299 | : | |
8300 | fi | |
d9898ee8 | 8301 | |
8d138742 | 8302 | fi |
d9898ee8 | 8303 | |
d9898ee8 | 8304 | |
d9898ee8 | 8305 | |
d9898ee8 | 8306 | |
d9898ee8 | 8307 | |
d9898ee8 | 8308 | |
8d138742 CE |
8309 | lt_prog_compiler_wl= |
8310 | lt_prog_compiler_pic= | |
8311 | lt_prog_compiler_static= | |
d9898ee8 | 8312 | |
d9898ee8 | 8313 | |
d50284c4 | 8314 | if test yes = "$GCC"; then |
8d138742 CE |
8315 | lt_prog_compiler_wl='-Wl,' |
8316 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8317 | |
8d138742 CE |
8318 | case $host_os in |
8319 | aix*) | |
8320 | # All AIX code is PIC. | |
d50284c4 | 8321 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8322 | # AIX 5 now supports IA64 processor |
8323 | lt_prog_compiler_static='-Bstatic' | |
8324 | fi | |
d50284c4 | 8325 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 8326 | ;; |
d9898ee8 | 8327 | |
8d138742 CE |
8328 | amigaos*) |
8329 | case $host_cpu in | |
8330 | powerpc) | |
8331 | # see comment about AmigaOS4 .so support | |
8332 | lt_prog_compiler_pic='-fPIC' | |
8333 | ;; | |
8334 | m68k) | |
8335 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8336 | # adding the '-m68020' flag to GCC prevents building anything better, |
8337 | # like '-m68040'. | |
8d138742 CE |
8338 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8339 | ;; | |
8340 | esac | |
8341 | ;; | |
d9898ee8 | 8342 | |
8d138742 CE |
8343 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8344 | # PIC is the default for these OSes. | |
8345 | ;; | |
d9898ee8 | 8346 | |
8d138742 CE |
8347 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8348 | # This hack is so that the source file can tell whether it is being | |
8349 | # built for inclusion in a dll (and should export symbols for example). | |
8350 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8351 | # (--disable-auto-import) libraries | |
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 | darwin* | rhapsody*) |
8361 | # PIC is the default on this platform | |
8362 | # Common symbols not allowed in MH_DYLIB files | |
8363 | lt_prog_compiler_pic='-fno-common' | |
8364 | ;; | |
d9898ee8 | 8365 | |
b0322a85 CE |
8366 | haiku*) |
8367 | # PIC is the default for Haiku. | |
8368 | # The "-static" flag exists, but is broken. | |
8369 | lt_prog_compiler_static= | |
8370 | ;; | |
8371 | ||
8d138742 CE |
8372 | hpux*) |
8373 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8374 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8375 | # sets the default TLS model and affects inlining. | |
8376 | case $host_cpu in | |
8377 | hppa*64*) | |
8378 | # +Z the default | |
8379 | ;; | |
8380 | *) | |
8381 | lt_prog_compiler_pic='-fPIC' | |
8382 | ;; | |
8383 | esac | |
8384 | ;; | |
d9898ee8 | 8385 | |
8d138742 CE |
8386 | interix[3-9]*) |
8387 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8388 | # Instead, we relocate shared libraries at runtime. | |
8389 | ;; | |
d9898ee8 | 8390 | |
8d138742 CE |
8391 | msdosdjgpp*) |
8392 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8393 | # on systems that don't support them. | |
8394 | lt_prog_compiler_can_build_shared=no | |
8395 | enable_shared=no | |
8396 | ;; | |
d9898ee8 | 8397 | |
8d138742 CE |
8398 | *nto* | *qnx*) |
8399 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8400 | # it will coredump. | |
8401 | lt_prog_compiler_pic='-fPIC -shared' | |
8402 | ;; | |
d9898ee8 | 8403 | |
8d138742 CE |
8404 | sysv4*MP*) |
8405 | if test -d /usr/nec; then | |
8406 | lt_prog_compiler_pic=-Kconform_pic | |
8407 | fi | |
8408 | ;; | |
d9898ee8 | 8409 | |
8d138742 CE |
8410 | *) |
8411 | lt_prog_compiler_pic='-fPIC' | |
8412 | ;; | |
8413 | esac | |
b0322a85 CE |
8414 | |
8415 | case $cc_basename in | |
8416 | nvcc*) # Cuda Compiler Driver 2.2 | |
8417 | lt_prog_compiler_wl='-Xlinker ' | |
8418 | if test -n "$lt_prog_compiler_pic"; then | |
8419 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8420 | fi | |
8421 | ;; | |
8422 | esac | |
8d138742 CE |
8423 | else |
8424 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8425 | case $host_os in | |
8426 | aix*) | |
8427 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8428 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8429 | # AIX 5 now supports IA64 processor |
8430 | lt_prog_compiler_static='-Bstatic' | |
8431 | else | |
8432 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8433 | fi | |
8434 | ;; | |
d9898ee8 | 8435 | |
d50284c4 CE |
8436 | darwin* | rhapsody*) |
8437 | # PIC is the default on this platform | |
8438 | # Common symbols not allowed in MH_DYLIB files | |
8439 | lt_prog_compiler_pic='-fno-common' | |
8440 | case $cc_basename in | |
8441 | nagfor*) | |
8442 | # NAG Fortran compiler | |
8443 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8444 | lt_prog_compiler_pic='-PIC' | |
8445 | lt_prog_compiler_static='-Bstatic' | |
8446 | ;; | |
8447 | esac | |
8448 | ;; | |
8449 | ||
8d138742 CE |
8450 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8451 | # This hack is so that the source file can tell whether it is being | |
8452 | # built for inclusion in a dll (and should export symbols for example). | |
8453 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8454 | case $host_os in |
8455 | os2*) | |
8456 | lt_prog_compiler_static='$wl-static' | |
8457 | ;; | |
8458 | esac | |
8d138742 | 8459 | ;; |
d9898ee8 | 8460 | |
8d138742 CE |
8461 | hpux9* | hpux10* | hpux11*) |
8462 | lt_prog_compiler_wl='-Wl,' | |
8463 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8464 | # not for PA HP-UX. | |
8465 | case $host_cpu in | |
8466 | hppa*64*|ia64*) | |
8467 | # +Z the default | |
8468 | ;; | |
8469 | *) | |
8470 | lt_prog_compiler_pic='+Z' | |
8471 | ;; | |
8472 | esac | |
8473 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8474 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 8475 | ;; |
d9898ee8 | 8476 | |
8d138742 CE |
8477 | irix5* | irix6* | nonstopux*) |
8478 | lt_prog_compiler_wl='-Wl,' | |
8479 | # PIC (with -KPIC) is the default. | |
8480 | lt_prog_compiler_static='-non_shared' | |
8481 | ;; | |
d9898ee8 | 8482 | |
d50284c4 | 8483 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8484 | case $cc_basename in |
d50284c4 | 8485 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8486 | ecc*) |
8487 | lt_prog_compiler_wl='-Wl,' | |
8488 | lt_prog_compiler_pic='-KPIC' | |
8489 | lt_prog_compiler_static='-static' | |
8490 | ;; | |
8491 | # icc used to be incompatible with GCC. | |
8492 | # ICC 10 doesn't accept -KPIC any more. | |
8493 | icc* | ifort*) | |
8494 | lt_prog_compiler_wl='-Wl,' | |
8495 | lt_prog_compiler_pic='-fPIC' | |
8496 | lt_prog_compiler_static='-static' | |
8497 | ;; | |
8498 | # Lahey Fortran 8.1. | |
8499 | lf95*) | |
8500 | lt_prog_compiler_wl='-Wl,' | |
8501 | lt_prog_compiler_pic='--shared' | |
8502 | lt_prog_compiler_static='--static' | |
8503 | ;; | |
b0322a85 CE |
8504 | nagfor*) |
8505 | # NAG Fortran compiler | |
8506 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8507 | lt_prog_compiler_pic='-PIC' | |
8508 | lt_prog_compiler_static='-Bstatic' | |
8509 | ;; | |
d50284c4 CE |
8510 | tcc*) |
8511 | # Fabrice Bellard et al's Tiny C Compiler | |
8512 | lt_prog_compiler_wl='-Wl,' | |
8513 | lt_prog_compiler_pic='-fPIC' | |
8514 | lt_prog_compiler_static='-static' | |
8515 | ;; | |
b0322a85 | 8516 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8517 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8518 | # which looks to be a dead project) | |
8519 | lt_prog_compiler_wl='-Wl,' | |
8520 | lt_prog_compiler_pic='-fpic' | |
8521 | lt_prog_compiler_static='-Bstatic' | |
8522 | ;; | |
8523 | ccc*) | |
8524 | lt_prog_compiler_wl='-Wl,' | |
8525 | # All Alpha code is PIC. | |
8526 | lt_prog_compiler_static='-non_shared' | |
8527 | ;; | |
b0322a85 CE |
8528 | xl* | bgxl* | bgf* | mpixl*) |
8529 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8530 | lt_prog_compiler_wl='-Wl,' |
8531 | lt_prog_compiler_pic='-qpic' | |
8532 | lt_prog_compiler_static='-qstaticlink' | |
8533 | ;; | |
8534 | *) | |
8535 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8536 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8537 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8538 | lt_prog_compiler_pic='-KPIC' | |
8539 | lt_prog_compiler_static='-Bstatic' | |
8540 | lt_prog_compiler_wl='' | |
8541 | ;; | |
8542 | *Sun\ F* | *Sun*Fortran*) | |
8543 | lt_prog_compiler_pic='-KPIC' | |
8544 | lt_prog_compiler_static='-Bstatic' | |
8545 | lt_prog_compiler_wl='-Qoption ld ' | |
8546 | ;; | |
8d138742 CE |
8547 | *Sun\ C*) |
8548 | # Sun C 5.9 | |
8549 | lt_prog_compiler_pic='-KPIC' | |
8550 | lt_prog_compiler_static='-Bstatic' | |
8551 | lt_prog_compiler_wl='-Wl,' | |
8552 | ;; | |
b0322a85 CE |
8553 | *Intel*\ [CF]*Compiler*) |
8554 | lt_prog_compiler_wl='-Wl,' | |
8555 | lt_prog_compiler_pic='-fPIC' | |
8556 | lt_prog_compiler_static='-static' | |
8557 | ;; | |
8558 | *Portland\ Group*) | |
8559 | lt_prog_compiler_wl='-Wl,' | |
8560 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8561 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8562 | ;; |
8563 | esac | |
8564 | ;; | |
8565 | esac | |
8566 | ;; | |
d9898ee8 | 8567 | |
8d138742 CE |
8568 | newsos6) |
8569 | lt_prog_compiler_pic='-KPIC' | |
8570 | lt_prog_compiler_static='-Bstatic' | |
8571 | ;; | |
d9898ee8 | 8572 | |
8d138742 CE |
8573 | *nto* | *qnx*) |
8574 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8575 | # it will coredump. | |
8576 | lt_prog_compiler_pic='-fPIC -shared' | |
8577 | ;; | |
d9898ee8 | 8578 | |
8d138742 CE |
8579 | osf3* | osf4* | osf5*) |
8580 | lt_prog_compiler_wl='-Wl,' | |
8581 | # All OSF/1 code is PIC. | |
8582 | lt_prog_compiler_static='-non_shared' | |
8583 | ;; | |
d9898ee8 | 8584 | |
8d138742 CE |
8585 | rdos*) |
8586 | lt_prog_compiler_static='-non_shared' | |
8587 | ;; | |
d9898ee8 | 8588 | |
8d138742 CE |
8589 | solaris*) |
8590 | lt_prog_compiler_pic='-KPIC' | |
8591 | lt_prog_compiler_static='-Bstatic' | |
8592 | case $cc_basename in | |
b0322a85 | 8593 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8594 | lt_prog_compiler_wl='-Qoption ld ';; |
8595 | *) | |
8596 | lt_prog_compiler_wl='-Wl,';; | |
8597 | esac | |
8598 | ;; | |
d9898ee8 | 8599 | |
8d138742 CE |
8600 | sunos4*) |
8601 | lt_prog_compiler_wl='-Qoption ld ' | |
8602 | lt_prog_compiler_pic='-PIC' | |
8603 | lt_prog_compiler_static='-Bstatic' | |
8604 | ;; | |
d9898ee8 | 8605 | |
8d138742 CE |
8606 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8607 | lt_prog_compiler_wl='-Wl,' | |
8608 | lt_prog_compiler_pic='-KPIC' | |
8609 | lt_prog_compiler_static='-Bstatic' | |
8610 | ;; | |
d9898ee8 | 8611 | |
8d138742 | 8612 | sysv4*MP*) |
d50284c4 | 8613 | if test -d /usr/nec; then |
8d138742 CE |
8614 | lt_prog_compiler_pic='-Kconform_pic' |
8615 | lt_prog_compiler_static='-Bstatic' | |
8616 | fi | |
8617 | ;; | |
d9898ee8 | 8618 | |
8d138742 CE |
8619 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8620 | lt_prog_compiler_wl='-Wl,' | |
8621 | lt_prog_compiler_pic='-KPIC' | |
8622 | lt_prog_compiler_static='-Bstatic' | |
8623 | ;; | |
d9898ee8 | 8624 | |
8d138742 CE |
8625 | unicos*) |
8626 | lt_prog_compiler_wl='-Wl,' | |
8627 | lt_prog_compiler_can_build_shared=no | |
8628 | ;; | |
8629 | ||
8630 | uts4*) | |
8631 | lt_prog_compiler_pic='-pic' | |
8632 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8633 | ;; |
8d138742 | 8634 | |
d9898ee8 | 8635 | *) |
8d138742 | 8636 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 8637 | ;; |
8638 | esac | |
8d138742 | 8639 | fi |
d9898ee8 | 8640 | |
8d138742 | 8641 | case $host_os in |
d50284c4 | 8642 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8643 | *djgpp*) |
8644 | lt_prog_compiler_pic= | |
d9898ee8 | 8645 | ;; |
8d138742 CE |
8646 | *) |
8647 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8648 | ;; | |
8649 | esac | |
d9898ee8 | 8650 | |
b0322a85 CE |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8652 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8653 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8654 | $as_echo_n "(cached) " >&6 | |
8655 | else | |
8656 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8657 | fi | |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8659 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8660 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8661 | |
d9898ee8 | 8662 | # |
8d138742 | 8663 | # Check to make sure the PIC flag actually works. |
d9898ee8 | 8664 | # |
8d138742 | 8665 | if test -n "$lt_prog_compiler_pic"; then |
b0322a85 | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8667 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8668 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8669 | $as_echo_n "(cached) " >&6 |
8670 | else | |
8671 | lt_cv_prog_compiler_pic_works=no | |
8672 | ac_outfile=conftest.$ac_objext | |
8673 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8674 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8675 | # Insert the option either (1) after the last *FLAGS variable, or |
8676 | # (2) before a word containing "conftest.", or (3) at the end. | |
8677 | # Note that $ac_compile itself does not contain backslashes and begins | |
8678 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8679 | # The option is referenced via a variable to avoid confusing sed. | |
8680 | lt_compile=`echo "$ac_compile" | $SED \ | |
8681 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8682 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8683 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8684 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8685 | (eval "$lt_compile" 2>conftest.err) |
8686 | ac_status=$? | |
8687 | cat conftest.err >&5 | |
b0322a85 | 8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8689 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8690 | # The compiler can only warn and ignore the option if not recognized | |
8691 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8692 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8693 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8694 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8695 | lt_cv_prog_compiler_pic_works=yes | |
8696 | fi | |
8697 | fi | |
8698 | $RM conftest* | |
d9898ee8 | 8699 | |
8d138742 | 8700 | fi |
b0322a85 | 8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8702 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8703 | |
d50284c4 | 8704 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8705 | case $lt_prog_compiler_pic in |
8706 | "" | " "*) ;; | |
8707 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8708 | esac | |
8709 | else | |
8710 | lt_prog_compiler_pic= | |
8711 | lt_prog_compiler_can_build_shared=no | |
8712 | fi | |
d9898ee8 | 8713 | |
8d138742 | 8714 | fi |
d9898ee8 | 8715 | |
d9898ee8 | 8716 | |
d9898ee8 | 8717 | |
d9898ee8 | 8718 | |
d9898ee8 | 8719 | |
d9898ee8 | 8720 | |
b0322a85 CE |
8721 | |
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8d138742 CE |
8726 | # |
8727 | # Check to make sure the static flag actually works. | |
8728 | # | |
8729 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8731 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8732 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8733 | $as_echo_n "(cached) " >&6 |
8734 | else | |
8735 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 8736 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
8737 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8738 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8739 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8740 | # The linker can only warn and ignore the option if not recognized | |
8741 | # So say no if there are warnings | |
8742 | if test -s conftest.err; then | |
8743 | # Append any errors to the config.log. | |
8744 | cat conftest.err 1>&5 | |
b0322a85 | 8745 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8746 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8747 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8748 | lt_cv_prog_compiler_static_works=yes | |
8749 | fi | |
8750 | else | |
8751 | lt_cv_prog_compiler_static_works=yes | |
8752 | fi | |
8753 | fi | |
8754 | $RM -r conftest* | |
d50284c4 | 8755 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8756 | |
8d138742 | 8757 | fi |
b0322a85 | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8759 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8760 | |
d50284c4 | 8761 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
8762 | : |
8763 | else | |
8764 | lt_prog_compiler_static= | |
8765 | fi | |
d9898ee8 | 8766 | |
d9898ee8 | 8767 | |
d9898ee8 | 8768 | |
d9898ee8 | 8769 | |
d9898ee8 | 8770 | |
d9898ee8 | 8771 | |
d9898ee8 | 8772 | |
b0322a85 | 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8774 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8775 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8776 | $as_echo_n "(cached) " >&6 |
8777 | else | |
8778 | lt_cv_prog_compiler_c_o=no | |
8779 | $RM -r conftest 2>/dev/null | |
8780 | mkdir conftest | |
8781 | cd conftest | |
8782 | mkdir out | |
8783 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8784 | |
8d138742 CE |
8785 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8786 | # Insert the option either (1) after the last *FLAGS variable, or | |
8787 | # (2) before a word containing "conftest.", or (3) at the end. | |
8788 | # Note that $ac_compile itself does not contain backslashes and begins | |
8789 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8790 | lt_compile=`echo "$ac_compile" | $SED \ | |
8791 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8792 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8793 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8794 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8795 | (eval "$lt_compile" 2>out/conftest.err) |
8796 | ac_status=$? | |
8797 | cat out/conftest.err >&5 | |
b0322a85 | 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8799 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8800 | then | |
8801 | # The compiler can only warn and ignore the option if not recognized | |
8802 | # So say no if there are warnings | |
b0322a85 | 8803 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8804 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8805 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8806 | lt_cv_prog_compiler_c_o=yes | |
8807 | fi | |
8808 | fi | |
8809 | chmod u+w . 2>&5 | |
8810 | $RM conftest* | |
8811 | # SGI C++ compiler will create directory out/ii_files/ for | |
8812 | # template instantiation | |
8813 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8814 | $RM out/* && rmdir out | |
8815 | cd .. | |
8816 | $RM -r conftest | |
8817 | $RM conftest* | |
d9898ee8 | 8818 | |
8d138742 | 8819 | fi |
b0322a85 | 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8821 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8822 | |
d9898ee8 | 8823 | |
d9898ee8 | 8824 | |
d9898ee8 | 8825 | |
d9898ee8 | 8826 | |
d9898ee8 | 8827 | |
b0322a85 | 8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8829 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8830 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8831 | $as_echo_n "(cached) " >&6 |
8832 | else | |
8833 | lt_cv_prog_compiler_c_o=no | |
8834 | $RM -r conftest 2>/dev/null | |
8835 | mkdir conftest | |
8836 | cd conftest | |
8837 | mkdir out | |
8838 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8839 | |
8d138742 CE |
8840 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8841 | # Insert the option either (1) after the last *FLAGS variable, or | |
8842 | # (2) before a word containing "conftest.", or (3) at the end. | |
8843 | # Note that $ac_compile itself does not contain backslashes and begins | |
8844 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8845 | lt_compile=`echo "$ac_compile" | $SED \ | |
8846 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8847 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8848 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8849 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8850 | (eval "$lt_compile" 2>out/conftest.err) |
8851 | ac_status=$? | |
8852 | cat out/conftest.err >&5 | |
b0322a85 | 8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8854 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8855 | then | |
8856 | # The compiler can only warn and ignore the option if not recognized | |
8857 | # So say no if there are warnings | |
b0322a85 | 8858 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8859 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8860 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8861 | lt_cv_prog_compiler_c_o=yes | |
8862 | fi | |
8863 | fi | |
8864 | chmod u+w . 2>&5 | |
8865 | $RM conftest* | |
8866 | # SGI C++ compiler will create directory out/ii_files/ for | |
8867 | # template instantiation | |
8868 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8869 | $RM out/* && rmdir out | |
8870 | cd .. | |
8871 | $RM -r conftest | |
8872 | $RM conftest* | |
d9898ee8 | 8873 | |
8d138742 | 8874 | fi |
b0322a85 | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8876 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8877 | |
d9898ee8 | 8878 | |
d9898ee8 | 8879 | |
d9898ee8 | 8880 | |
d50284c4 CE |
8881 | hard_links=nottested |
8882 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 8883 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8885 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8886 | hard_links=yes | |
8887 | $RM conftest* | |
8888 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8889 | touch conftest.a | |
8890 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8891 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8893 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
8894 | if test no = "$hard_links"; then |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8896 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
8897 | need_locks=warn |
8898 | fi | |
8899 | else | |
8900 | need_locks=no | |
8901 | fi | |
d9898ee8 | 8902 | |
d9898ee8 | 8903 | |
d9898ee8 | 8904 | |
d9898ee8 | 8905 | |
d9898ee8 | 8906 | |
d9898ee8 | 8907 | |
b0322a85 | 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8909 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8910 | |
8d138742 CE |
8911 | runpath_var= |
8912 | allow_undefined_flag= | |
8913 | always_export_symbols=no | |
8914 | archive_cmds= | |
8915 | archive_expsym_cmds= | |
8916 | compiler_needs_object=no | |
8917 | enable_shared_with_static_runtimes=no | |
8918 | export_dynamic_flag_spec= | |
8919 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8920 | hardcode_automatic=no | |
8921 | hardcode_direct=no | |
8922 | hardcode_direct_absolute=no | |
8923 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8924 | hardcode_libdir_separator= |
8925 | hardcode_minus_L=no | |
8926 | hardcode_shlibpath_var=unsupported | |
8927 | inherit_rpath=no | |
8928 | link_all_deplibs=unknown | |
8929 | module_cmds= | |
8930 | module_expsym_cmds= | |
8931 | old_archive_from_new_cmds= | |
8932 | old_archive_from_expsyms_cmds= | |
8933 | thread_safe_flag_spec= | |
8934 | whole_archive_flag_spec= | |
8935 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8936 | # included in the symbol list | |
8937 | include_expsyms= | |
8938 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
8939 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8940 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8941 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
8942 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8943 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8944 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8945 | # the symbol is explicitly referenced. Since portable code cannot | |
8946 | # rely on this symbol name, it's probably fine to never include it in | |
8947 | # preloaded symbol tables. | |
8948 | # Exclude shared library initialization/finalization symbols. | |
8949 | extract_expsyms_cmds= | |
d9898ee8 | 8950 | |
8d138742 CE |
8951 | case $host_os in |
8952 | cygwin* | mingw* | pw32* | cegcc*) | |
8953 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8954 | # When not using gcc, we currently assume that we are using | |
8955 | # Microsoft Visual C++. | |
d50284c4 | 8956 | if test yes != "$GCC"; then |
8d138742 CE |
8957 | with_gnu_ld=no |
8958 | fi | |
8959 | ;; | |
8960 | interix*) | |
8961 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8962 | with_gnu_ld=yes | |
8963 | ;; | |
d50284c4 | 8964 | openbsd* | bitrig*) |
8d138742 CE |
8965 | with_gnu_ld=no |
8966 | ;; | |
8967 | esac | |
d9898ee8 | 8968 | |
8d138742 | 8969 | ld_shlibs=yes |
b0322a85 CE |
8970 | |
8971 | # On some targets, GNU ld is compatible enough with the native linker | |
8972 | # that we're better off using the native interface for both. | |
8973 | lt_use_gnu_ld_interface=no | |
d50284c4 | 8974 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
8975 | case $host_os in |
8976 | aix*) | |
8977 | # The AIX port of GNU ld has always aspired to compatibility | |
8978 | # with the native linker. However, as the warning in the GNU ld | |
8979 | # block says, versions before 2.19.5* couldn't really create working | |
8980 | # shared libraries, regardless of the interface used. | |
8981 | case `$LD -v 2>&1` in | |
8982 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8983 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8984 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8985 | *) | |
8986 | lt_use_gnu_ld_interface=yes | |
8987 | ;; | |
8988 | esac | |
8989 | ;; | |
8990 | *) | |
8991 | lt_use_gnu_ld_interface=yes | |
8992 | ;; | |
8993 | esac | |
8994 | fi | |
8995 | ||
d50284c4 | 8996 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 8997 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 8998 | wlarc='$wl' |
d9898ee8 | 8999 | |
8d138742 CE |
9000 | # Set some defaults for GNU ld with shared library support. These |
9001 | # are reset later if shared libraries are not supported. Putting them | |
9002 | # here allows them to be overridden if necessary. | |
9003 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9004 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9005 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9006 | # ancient GNU ld didn't support --whole-archive et. al. |
9007 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9008 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9009 | else |
9010 | whole_archive_flag_spec= | |
9011 | fi | |
9012 | supports_anon_versioning=no | |
d50284c4 | 9013 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9014 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9015 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9016 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9017 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9018 | *\ 2.11.*) ;; # other 2.11 versions | |
9019 | *) supports_anon_versioning=yes ;; | |
9020 | esac | |
d9898ee8 | 9021 | |
8d138742 CE |
9022 | # See if GNU ld supports shared libraries. |
9023 | case $host_os in | |
9024 | aix[3-9]*) | |
9025 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9026 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9027 | ld_shlibs=no |
9028 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9029 | |
b0322a85 | 9030 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9031 | *** to be unable to reliably create shared libraries on AIX. |
9032 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9033 | *** really care for shared libraries, you may want to install binutils |
9034 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9035 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9036 | |
8d138742 CE |
9037 | _LT_EOF |
9038 | fi | |
9039 | ;; | |
d9898ee8 | 9040 | |
8d138742 CE |
9041 | amigaos*) |
9042 | case $host_cpu in | |
9043 | powerpc) | |
9044 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9045 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9046 | archive_expsym_cmds='' |
9047 | ;; | |
9048 | m68k) | |
9049 | 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)' | |
9050 | hardcode_libdir_flag_spec='-L$libdir' | |
9051 | hardcode_minus_L=yes | |
9052 | ;; | |
9053 | esac | |
9054 | ;; | |
d9898ee8 | 9055 | |
8d138742 CE |
9056 | beos*) |
9057 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9058 | allow_undefined_flag=unsupported | |
9059 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9060 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9061 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9062 | else |
9063 | ld_shlibs=no | |
9064 | fi | |
9065 | ;; | |
d9898ee8 | 9066 | |
8d138742 CE |
9067 | cygwin* | mingw* | pw32* | cegcc*) |
9068 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9069 | # as there is no search path for DLLs. | |
9070 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9071 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9072 | allow_undefined_flag=unsupported |
9073 | always_export_symbols=no | |
9074 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9075 | 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' |
9076 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9077 | |
8d138742 | 9078 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9079 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9080 | # If the export-symbols file already is a .def file, use it as | |
9081 | # is; otherwise, prepend EXPORTS... | |
9082 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9083 | cp $export_symbols $output_objdir/$soname.def; | |
9084 | else | |
9085 | echo EXPORTS > $output_objdir/$soname.def; | |
9086 | cat $export_symbols >> $output_objdir/$soname.def; | |
9087 | fi~ | |
9088 | $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 |
9089 | else |
9090 | ld_shlibs=no | |
9091 | fi | |
9092 | ;; | |
d9898ee8 | 9093 | |
b0322a85 | 9094 | haiku*) |
d50284c4 | 9095 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9096 | link_all_deplibs=yes |
9097 | ;; | |
9098 | ||
d50284c4 CE |
9099 | os2*) |
9100 | hardcode_libdir_flag_spec='-L$libdir' | |
9101 | hardcode_minus_L=yes | |
9102 | allow_undefined_flag=unsupported | |
9103 | shrext_cmds=.dll | |
9104 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9105 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9106 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9107 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9108 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9109 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9110 | emximp -o $lib $output_objdir/$libname.def' | |
9111 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9112 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9113 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9114 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9115 | prefix_cmds="$SED"~ | |
9116 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9117 | prefix_cmds="$prefix_cmds -e 1d"; | |
9118 | fi~ | |
9119 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9120 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9121 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9122 | emximp -o $lib $output_objdir/$libname.def' | |
9123 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9124 | enable_shared_with_static_runtimes=yes | |
9125 | ;; | |
9126 | ||
8d138742 CE |
9127 | interix[3-9]*) |
9128 | hardcode_direct=no | |
9129 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9130 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9131 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9132 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9133 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9134 | # default) and relocated if they conflict, which is a slow very memory | |
9135 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9136 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9137 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9138 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9139 | 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 | 9140 | ;; |
d9898ee8 | 9141 | |
b0322a85 | 9142 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9143 | tmp_diet=no |
d50284c4 | 9144 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9145 | case $cc_basename in |
9146 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9147 | esac | |
9148 | fi | |
9149 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9150 | && test no = "$tmp_diet" |
8d138742 | 9151 | then |
b0322a85 | 9152 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9153 | tmp_sharedflag='-shared' |
9154 | case $cc_basename,$host_cpu in | |
9155 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9156 | 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 |
9157 | tmp_addflag=' $pic_flag' |
9158 | ;; | |
b0322a85 CE |
9159 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9160 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9161 | 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 |
9162 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9163 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9164 | tmp_addflag=' -i_dynamic' ;; | |
9165 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9166 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9167 | ifc* | ifort*) # Intel Fortran compiler | |
9168 | tmp_addflag=' -nofor_main' ;; | |
9169 | lf95*) # Lahey Fortran 8.1 | |
9170 | whole_archive_flag_spec= | |
9171 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9172 | nagfor*) # NAGFOR 5.3 |
9173 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9174 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9175 | tmp_sharedflag='-qmkshrobj' |
9176 | tmp_addflag= ;; | |
b0322a85 | 9177 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9178 | 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 |
9179 | compiler_needs_object=yes |
9180 | ;; | |
8d138742 CE |
9181 | esac |
9182 | case `$CC -V 2>&1 | sed 5q` in | |
9183 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9184 | 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 |
9185 | compiler_needs_object=yes |
9186 | tmp_sharedflag='-G' ;; | |
9187 | *Sun\ F*) # Sun Fortran 8.3 | |
9188 | tmp_sharedflag='-G' ;; | |
9189 | esac | |
d50284c4 | 9190 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9191 | |
d50284c4 | 9192 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9193 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9194 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9195 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9196 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9197 | fi |
d9898ee8 | 9198 | |
8d138742 | 9199 | case $cc_basename in |
d50284c4 CE |
9200 | tcc*) |
9201 | export_dynamic_flag_spec='-rdynamic' | |
9202 | ;; | |
b0322a85 | 9203 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9204 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9205 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9206 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9207 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9208 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9209 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9210 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9211 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9212 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9213 | fi |
9214 | ;; | |
9215 | esac | |
9216 | else | |
9217 | ld_shlibs=no | |
9218 | fi | |
9219 | ;; | |
d9898ee8 | 9220 | |
8d138742 CE |
9221 | netbsd*) |
9222 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9223 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9224 | wlarc= | |
9225 | else | |
d50284c4 CE |
9226 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9227 | 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 |
9228 | fi |
9229 | ;; | |
d9898ee8 | 9230 | |
8d138742 CE |
9231 | solaris*) |
9232 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9233 | ld_shlibs=no | |
9234 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9235 | |
8d138742 CE |
9236 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9237 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9238 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9239 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9240 | *** your PATH or compiler configuration so that the native linker is | |
9241 | *** used, and then restart. | |
d9898ee8 | 9242 | |
8d138742 CE |
9243 | _LT_EOF |
9244 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9245 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9246 | 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 |
9247 | else |
9248 | ld_shlibs=no | |
9249 | fi | |
9250 | ;; | |
d9898ee8 | 9251 | |
8d138742 CE |
9252 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9253 | case `$LD -v 2>&1` in | |
9254 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9255 | ld_shlibs=no | |
9256 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9257 | |
d50284c4 | 9258 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9259 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9260 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9261 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9262 | *** your PATH or compiler configuration so that the native linker is | |
9263 | *** used, and then restart. | |
d9898ee8 | 9264 | |
8d138742 CE |
9265 | _LT_EOF |
9266 | ;; | |
9267 | *) | |
9268 | # For security reasons, it is highly recommended that you always | |
9269 | # use absolute paths for naming shared libraries, and exclude the | |
9270 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9271 | # requires that you compile everything twice, which is a pain. | |
9272 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9273 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9274 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9275 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9276 | else |
9277 | ld_shlibs=no | |
9278 | fi | |
9279 | ;; | |
9280 | esac | |
9281 | ;; | |
d9898ee8 | 9282 | |
8d138742 CE |
9283 | sunos4*) |
9284 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9285 | wlarc= | |
9286 | hardcode_direct=yes | |
9287 | hardcode_shlibpath_var=no | |
9288 | ;; | |
d9898ee8 | 9289 | |
8d138742 CE |
9290 | *) |
9291 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9292 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9293 | 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 |
9294 | else |
9295 | ld_shlibs=no | |
9296 | fi | |
9297 | ;; | |
9298 | esac | |
d9898ee8 | 9299 | |
d50284c4 | 9300 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9301 | runpath_var= |
9302 | hardcode_libdir_flag_spec= | |
9303 | export_dynamic_flag_spec= | |
9304 | whole_archive_flag_spec= | |
9305 | fi | |
9306 | else | |
9307 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9308 | case $host_os in | |
9309 | aix3*) | |
9310 | allow_undefined_flag=unsupported | |
9311 | always_export_symbols=yes | |
9312 | 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' | |
9313 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9314 | # are no directories specified by -L. | |
9315 | hardcode_minus_L=yes | |
d50284c4 | 9316 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9317 | # Neither direct hardcoding nor static linking is supported with a |
9318 | # broken collect2. | |
9319 | hardcode_direct=unsupported | |
9320 | fi | |
9321 | ;; | |
d9898ee8 | 9322 | |
8d138742 | 9323 | aix[4-9]*) |
d50284c4 | 9324 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9325 | # On IA64, the linker does run time linking by default, so we don't |
9326 | # have to do anything special. | |
9327 | aix_use_runtimelinking=no | |
9328 | exp_sym_flag='-Bexport' | |
d50284c4 | 9329 | no_entry_flag= |
8d138742 CE |
9330 | else |
9331 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9332 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9333 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9334 | # weak defined symbols like other global defined symbols, whereas | |
9335 | # GNU nm marks them as "W". | |
9336 | # While the 'weak' keyword is ignored in the Export File, we need | |
9337 | # it in the Import File for the 'aix-soname' feature, so we have | |
9338 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9339 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9340 | 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 | 9341 | else |
d50284c4 | 9342 | 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 |
9343 | fi |
9344 | aix_use_runtimelinking=no | |
d9898ee8 | 9345 | |
8d138742 CE |
9346 | # Test if we are trying to use run time linking or normal |
9347 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9348 | # have runtime linking enabled, and use it for executables. |
9349 | # For shared libraries, we enable/disable runtime linking | |
9350 | # depending on the kind of the shared library created - | |
9351 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9352 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9353 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9354 | # lib.a static archive | |
9355 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9356 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9357 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9358 | # lib.a(lib.so.V) shared, rtl:no | |
9359 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9360 | # lib.a static archive | |
8d138742 CE |
9361 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9362 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9363 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9364 | aix_use_runtimelinking=yes |
9365 | break | |
9366 | fi | |
9367 | done | |
d50284c4 CE |
9368 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9369 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9370 | # so we don't have lib.a shared libs to link our executables. | |
9371 | # We have to force runtime linking in this case. | |
9372 | aix_use_runtimelinking=yes | |
9373 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9374 | fi | |
8d138742 CE |
9375 | ;; |
9376 | esac | |
d9898ee8 | 9377 | |
8d138742 CE |
9378 | exp_sym_flag='-bexport' |
9379 | no_entry_flag='-bnoentry' | |
9380 | fi | |
d9898ee8 | 9381 | |
8d138742 CE |
9382 | # When large executables or shared objects are built, AIX ld can |
9383 | # have problems creating the table of contents. If linking a library | |
9384 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9385 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9386 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9387 | |
8d138742 CE |
9388 | archive_cmds='' |
9389 | hardcode_direct=yes | |
9390 | hardcode_direct_absolute=yes | |
9391 | hardcode_libdir_separator=':' | |
9392 | link_all_deplibs=yes | |
d50284c4 CE |
9393 | file_list_spec='$wl-f,' |
9394 | case $with_aix_soname,$aix_use_runtimelinking in | |
9395 | aix,*) ;; # traditional, no import file | |
9396 | svr4,* | *,yes) # use import file | |
9397 | # The Import File defines what to hardcode. | |
9398 | hardcode_direct=no | |
9399 | hardcode_direct_absolute=no | |
9400 | ;; | |
9401 | esac | |
d9898ee8 | 9402 | |
d50284c4 | 9403 | if test yes = "$GCC"; then |
8d138742 CE |
9404 | case $host_os in aix4.[012]|aix4.[012].*) |
9405 | # We only want to do this on AIX 4.2 and lower, the check | |
9406 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9407 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9408 | if test -f "$collect2name" && |
9409 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9410 | then | |
9411 | # We have reworked collect2 | |
9412 | : | |
9413 | else | |
9414 | # We have old collect2 | |
9415 | hardcode_direct=unsupported | |
9416 | # It fails to find uninstalled libraries when the uninstalled | |
9417 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9418 | # to unsupported forces relinking | |
9419 | hardcode_minus_L=yes | |
9420 | hardcode_libdir_flag_spec='-L$libdir' | |
9421 | hardcode_libdir_separator= | |
9422 | fi | |
9423 | ;; | |
9424 | esac | |
9425 | shared_flag='-shared' | |
d50284c4 CE |
9426 | if test yes = "$aix_use_runtimelinking"; then |
9427 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9428 | fi |
d50284c4 CE |
9429 | # Need to ensure runtime linking is disabled for the traditional |
9430 | # shared library, or the linker may eventually find shared libraries | |
9431 | # /with/ Import File - we do not want to mix them. | |
9432 | shared_flag_aix='-shared' | |
9433 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9434 | else |
9435 | # not using gcc | |
d50284c4 | 9436 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9437 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9438 | # chokes on -Wl,-G. The following line is correct: | |
9439 | shared_flag='-G' | |
9440 | else | |
d50284c4 CE |
9441 | if test yes = "$aix_use_runtimelinking"; then |
9442 | shared_flag='$wl-G' | |
8d138742 | 9443 | else |
d50284c4 | 9444 | shared_flag='$wl-bM:SRE' |
8d138742 | 9445 | fi |
d50284c4 CE |
9446 | shared_flag_aix='$wl-bM:SRE' |
9447 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9448 | fi |
9449 | fi | |
d9898ee8 | 9450 | |
d50284c4 | 9451 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9452 | # It seems that -bexpall does not export symbols beginning with |
9453 | # underscore (_), so it is better to generate a list of symbols to export. | |
9454 | always_export_symbols=yes | |
d50284c4 | 9455 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9456 | # Warning - without using the other runtime loading flags (-brtl), |
9457 | # -berok will link without error, but may produce a broken library. | |
9458 | allow_undefined_flag='-berok' | |
9459 | # Determine the default libpath from the value encoded in an | |
9460 | # empty executable. | |
d50284c4 | 9461 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9462 | aix_libpath=$lt_cv_aix_libpath |
9463 | else | |
9464 | if ${lt_cv_aix_libpath_+:} false; then : | |
9465 | $as_echo_n "(cached) " >&6 | |
9466 | else | |
9467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9468 | /* end confdefs.h. */ |
d9898ee8 | 9469 | |
8d138742 | 9470 | int |
b0322a85 CE |
9471 | main () |
9472 | { | |
9473 | ||
9474 | ; | |
9475 | return 0; | |
9476 | } | |
9477 | _ACEOF | |
9478 | if ac_fn_c_try_link "$LINENO"; then : | |
d9898ee8 | 9479 | |
b0322a85 CE |
9480 | lt_aix_libpath_sed=' |
9481 | /Import File Strings/,/^$/ { | |
9482 | /^0/ { | |
9483 | s/^0 *\([^ ]*\) *$/\1/ | |
9484 | p | |
9485 | } | |
9486 | }' | |
9487 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9488 | # Check for a 64-bit object if we didn't find anything. | |
9489 | if test -z "$lt_cv_aix_libpath_"; then | |
9490 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9491 | fi | |
9492 | fi | |
9493 | rm -f core conftest.err conftest.$ac_objext \ | |
9494 | conftest$ac_exeext conftest.$ac_ext | |
9495 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9496 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9497 | fi |
d9898ee8 | 9498 | |
8d138742 | 9499 | fi |
d9898ee8 | 9500 | |
b0322a85 CE |
9501 | aix_libpath=$lt_cv_aix_libpath_ |
9502 | fi | |
d9898ee8 | 9503 | |
d50284c4 CE |
9504 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9505 | 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 | 9506 | else |
d50284c4 CE |
9507 | if test ia64 = "$host_cpu"; then |
9508 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9509 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9510 | 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 |
9511 | else |
9512 | # Determine the default libpath from the value encoded in an | |
9513 | # empty executable. | |
d50284c4 | 9514 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9515 | aix_libpath=$lt_cv_aix_libpath |
9516 | else | |
9517 | if ${lt_cv_aix_libpath_+:} false; then : | |
9518 | $as_echo_n "(cached) " >&6 | |
9519 | else | |
9520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9521 | /* end confdefs.h. */ |
d9898ee8 | 9522 | |
8d138742 CE |
9523 | int |
9524 | main () | |
9525 | { | |
d9898ee8 | 9526 | |
8d138742 CE |
9527 | ; |
9528 | return 0; | |
9529 | } | |
9530 | _ACEOF | |
b0322a85 | 9531 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9532 | |
b0322a85 CE |
9533 | lt_aix_libpath_sed=' |
9534 | /Import File Strings/,/^$/ { | |
9535 | /^0/ { | |
9536 | s/^0 *\([^ ]*\) *$/\1/ | |
9537 | p | |
9538 | } | |
9539 | }' | |
9540 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9541 | # Check for a 64-bit object if we didn't find anything. | |
9542 | if test -z "$lt_cv_aix_libpath_"; then | |
9543 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9544 | fi | |
9545 | fi | |
9546 | rm -f core conftest.err conftest.$ac_objext \ | |
9547 | conftest$ac_exeext conftest.$ac_ext | |
9548 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9549 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9550 | fi |
d9898ee8 | 9551 | |
8d138742 | 9552 | fi |
d9898ee8 | 9553 | |
b0322a85 CE |
9554 | aix_libpath=$lt_cv_aix_libpath_ |
9555 | fi | |
d9898ee8 | 9556 | |
d50284c4 | 9557 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9558 | # Warning - without using the other run time loading flags, |
9559 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9560 | no_undefined_flag=' $wl-bernotok' |
9561 | allow_undefined_flag=' $wl-berok' | |
9562 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9563 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9564 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9565 | else |
9566 | # Exported symbols can be pulled into shared objects from archives | |
9567 | whole_archive_flag_spec='$convenience' | |
9568 | fi | |
8d138742 | 9569 | archive_cmds_need_lc=yes |
d50284c4 CE |
9570 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9571 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9572 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9573 | if test svr4 != "$with_aix_soname"; then | |
9574 | # This is similar to how AIX traditionally builds its shared libraries. | |
9575 | 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' | |
9576 | fi | |
9577 | if test aix != "$with_aix_soname"; then | |
9578 | 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' | |
9579 | else | |
9580 | # used by -dlpreopen to get the symbols | |
9581 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9582 | fi | |
9583 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9584 | fi |
9585 | fi | |
9586 | ;; | |
d9898ee8 | 9587 | |
8d138742 CE |
9588 | amigaos*) |
9589 | case $host_cpu in | |
9590 | powerpc) | |
9591 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9592 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9593 | archive_expsym_cmds='' |
9594 | ;; | |
9595 | m68k) | |
9596 | 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)' | |
9597 | hardcode_libdir_flag_spec='-L$libdir' | |
9598 | hardcode_minus_L=yes | |
9599 | ;; | |
9600 | esac | |
9601 | ;; | |
d9898ee8 | 9602 | |
8d138742 CE |
9603 | bsdi[45]*) |
9604 | export_dynamic_flag_spec=-rdynamic | |
9605 | ;; | |
d9898ee8 | 9606 | |
8d138742 CE |
9607 | cygwin* | mingw* | pw32* | cegcc*) |
9608 | # When not using gcc, we currently assume that we are using | |
9609 | # Microsoft Visual C++. | |
9610 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9611 | # no search path for DLLs. | |
b0322a85 CE |
9612 | case $cc_basename in |
9613 | cl*) | |
9614 | # Native MSVC | |
9615 | hardcode_libdir_flag_spec=' ' | |
9616 | allow_undefined_flag=unsupported | |
9617 | always_export_symbols=yes | |
9618 | file_list_spec='@' | |
9619 | # Tell ltmain to make .lib files, not .a files. | |
9620 | libext=lib | |
9621 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9622 | shrext_cmds=.dll |
b0322a85 | 9623 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9624 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9625 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9626 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9627 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9628 | else | |
9629 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9630 | fi~ | |
9631 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9632 | linknames=' | |
b0322a85 CE |
9633 | # The linker will not automatically build a static lib if we build a DLL. |
9634 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9635 | enable_shared_with_static_runtimes=yes | |
9636 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9637 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9638 | # Don't use ranlib | |
9639 | old_postinstall_cmds='chmod 644 $oldlib' | |
9640 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9641 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9642 | case $lt_outputfile in | |
9643 | *.exe|*.EXE) ;; | |
9644 | *) | |
9645 | lt_outputfile=$lt_outputfile.exe | |
9646 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9647 | ;; | |
9648 | esac~ | |
9649 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9650 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9651 | $RM "$lt_outputfile.manifest"; | |
9652 | fi' | |
b0322a85 CE |
9653 | ;; |
9654 | *) | |
9655 | # Assume MSVC wrapper | |
9656 | hardcode_libdir_flag_spec=' ' | |
9657 | allow_undefined_flag=unsupported | |
9658 | # Tell ltmain to make .lib files, not .a files. | |
9659 | libext=lib | |
9660 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9661 | shrext_cmds=.dll |
b0322a85 CE |
9662 | # FIXME: Setting linknames here is a bad hack. |
9663 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9664 | # The linker will automatically build a .lib file if we build a DLL. | |
9665 | old_archive_from_new_cmds='true' | |
9666 | # FIXME: Should let the user specify the lib program. | |
9667 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9668 | enable_shared_with_static_runtimes=yes | |
9669 | ;; | |
9670 | esac | |
8d138742 | 9671 | ;; |
d9898ee8 | 9672 | |
8d138742 | 9673 | darwin* | rhapsody*) |
d9898ee8 | 9674 | |
d9898ee8 | 9675 | |
8d138742 CE |
9676 | archive_cmds_need_lc=no |
9677 | hardcode_direct=no | |
9678 | hardcode_automatic=yes | |
9679 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9680 | if test yes = "$lt_cv_ld_force_load"; then |
9681 | 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 |
9682 | |
9683 | else | |
9684 | whole_archive_flag_spec='' | |
9685 | fi | |
8d138742 | 9686 | link_all_deplibs=yes |
d50284c4 | 9687 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9688 | case $cc_basename in |
d50284c4 | 9689 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 | 9690 | *) _lt_dar_can_shared=$GCC ;; |
d9898ee8 | 9691 | esac |
d50284c4 | 9692 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9693 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9694 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9695 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9696 | 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" | |
9697 | 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 | 9698 | |
8d138742 CE |
9699 | else |
9700 | ld_shlibs=no | |
d9898ee8 | 9701 | fi |
d9898ee8 | 9702 | |
8d138742 | 9703 | ;; |
d9898ee8 | 9704 | |
8d138742 CE |
9705 | dgux*) |
9706 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9707 | hardcode_libdir_flag_spec='-L$libdir' | |
9708 | hardcode_shlibpath_var=no | |
9709 | ;; | |
d9898ee8 | 9710 | |
8d138742 CE |
9711 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9712 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9713 | # does not break anything, and helps significantly (at the cost of a little | |
9714 | # extra space). | |
9715 | freebsd2.2*) | |
9716 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9717 | hardcode_libdir_flag_spec='-R$libdir' | |
9718 | hardcode_direct=yes | |
9719 | hardcode_shlibpath_var=no | |
9720 | ;; | |
dd184caf | 9721 | |
8d138742 | 9722 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9723 | freebsd2.*) |
8d138742 CE |
9724 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9725 | hardcode_direct=yes | |
9726 | hardcode_minus_L=yes | |
9727 | hardcode_shlibpath_var=no | |
9728 | ;; | |
d9898ee8 | 9729 | |
8d138742 CE |
9730 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9731 | freebsd* | dragonfly*) | |
b0322a85 | 9732 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9733 | hardcode_libdir_flag_spec='-R$libdir' |
9734 | hardcode_direct=yes | |
9735 | hardcode_shlibpath_var=no | |
9736 | ;; | |
d9898ee8 | 9737 | |
8d138742 | 9738 | hpux9*) |
d50284c4 CE |
9739 | if test yes = "$GCC"; then |
9740 | 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 | 9741 | else |
d50284c4 | 9742 | 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 | 9743 | fi |
d50284c4 | 9744 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9745 | hardcode_libdir_separator=: |
9746 | hardcode_direct=yes | |
d9898ee8 | 9747 | |
8d138742 CE |
9748 | # hardcode_minus_L: Not really in the search PATH, |
9749 | # but as the default location of the library. | |
9750 | hardcode_minus_L=yes | |
d50284c4 | 9751 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 9752 | ;; |
d9898ee8 | 9753 | |
8d138742 | 9754 | hpux10*) |
d50284c4 CE |
9755 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9756 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9757 | else |
9758 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9759 | fi | |
d50284c4 CE |
9760 | if test no = "$with_gnu_ld"; then |
9761 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9762 | hardcode_libdir_separator=: |
9763 | hardcode_direct=yes | |
9764 | hardcode_direct_absolute=yes | |
d50284c4 | 9765 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9766 | # hardcode_minus_L: Not really in the search PATH, |
9767 | # but as the default location of the library. | |
9768 | hardcode_minus_L=yes | |
9769 | fi | |
9770 | ;; | |
d9898ee8 | 9771 | |
8d138742 | 9772 | hpux11*) |
d50284c4 | 9773 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
9774 | case $host_cpu in |
9775 | hppa*64*) | |
d50284c4 | 9776 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9777 | ;; |
9778 | ia64*) | |
d50284c4 | 9779 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9780 | ;; |
9781 | *) | |
d50284c4 | 9782 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9783 | ;; |
9784 | esac | |
d9898ee8 | 9785 | else |
8d138742 CE |
9786 | case $host_cpu in |
9787 | hppa*64*) | |
d50284c4 | 9788 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9789 | ;; |
9790 | ia64*) | |
d50284c4 | 9791 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9792 | ;; |
9793 | *) | |
b0322a85 CE |
9794 | |
9795 | # Older versions of the 11.00 compiler do not understand -b yet | |
9796 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9798 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9799 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9800 | $as_echo_n "(cached) " >&6 | |
9801 | else | |
9802 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9803 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9804 | LDFLAGS="$LDFLAGS -b" |
9805 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9806 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9807 | # The linker can only warn and ignore the option if not recognized | |
9808 | # So say no if there are warnings | |
9809 | if test -s conftest.err; then | |
9810 | # Append any errors to the config.log. | |
9811 | cat conftest.err 1>&5 | |
9812 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9813 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9814 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9815 | lt_cv_prog_compiler__b=yes | |
9816 | fi | |
9817 | else | |
9818 | lt_cv_prog_compiler__b=yes | |
9819 | fi | |
9820 | fi | |
9821 | $RM -r conftest* | |
d50284c4 | 9822 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9823 | |
9824 | fi | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9826 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9827 | ||
d50284c4 CE |
9828 | if test yes = "$lt_cv_prog_compiler__b"; then |
9829 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9830 | else |
9831 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9832 | fi | |
9833 | ||
8d138742 CE |
9834 | ;; |
9835 | esac | |
d9898ee8 | 9836 | fi |
d50284c4 CE |
9837 | if test no = "$with_gnu_ld"; then |
9838 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 9839 | hardcode_libdir_separator=: |
d9898ee8 | 9840 | |
8d138742 CE |
9841 | case $host_cpu in |
9842 | hppa*64*|ia64*) | |
9843 | hardcode_direct=no | |
9844 | hardcode_shlibpath_var=no | |
9845 | ;; | |
9846 | *) | |
9847 | hardcode_direct=yes | |
9848 | hardcode_direct_absolute=yes | |
d50284c4 | 9849 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9850 | |
8d138742 CE |
9851 | # hardcode_minus_L: Not really in the search PATH, |
9852 | # but as the default location of the library. | |
9853 | hardcode_minus_L=yes | |
9854 | ;; | |
9855 | esac | |
9856 | fi | |
9857 | ;; | |
d9898ee8 | 9858 | |
8d138742 | 9859 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
9860 | if test yes = "$GCC"; then |
9861 | 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 |
9862 | # Try to use the -exported_symbol ld option, if it does not |
9863 | # work, assume that -exports_file does not work either and | |
9864 | # implicitly export all symbols. | |
b0322a85 CE |
9865 | # This should be the same for all languages, so no per-tag cache variable. |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9867 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9868 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9869 | $as_echo_n "(cached) " >&6 | |
9870 | else | |
d50284c4 CE |
9871 | save_LDFLAGS=$LDFLAGS |
9872 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
9873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9874 | /* end confdefs.h. */ | |
9875 | int foo (void) { return 0; } | |
d9898ee8 | 9876 | _ACEOF |
b0322a85 CE |
9877 | if ac_fn_c_try_link "$LINENO"; then : |
9878 | lt_cv_irix_exported_symbol=yes | |
d9898ee8 | 9879 | else |
b0322a85 | 9880 | lt_cv_irix_exported_symbol=no |
d9898ee8 | 9881 | fi |
b0322a85 CE |
9882 | rm -f core conftest.err conftest.$ac_objext \ |
9883 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 9884 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9885 | fi |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9887 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
9888 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9889 | 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 | 9890 | fi |
d9898ee8 | 9891 | else |
d50284c4 CE |
9892 | 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' |
9893 | 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 |
9894 | fi |
9895 | archive_cmds_need_lc='no' | |
d50284c4 | 9896 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9897 | hardcode_libdir_separator=: |
9898 | inherit_rpath=yes | |
9899 | link_all_deplibs=yes | |
9900 | ;; | |
d9898ee8 | 9901 | |
d50284c4 CE |
9902 | linux*) |
9903 | case $cc_basename in | |
9904 | tcc*) | |
9905 | # Fabrice Bellard et al's Tiny C Compiler | |
9906 | ld_shlibs=yes | |
9907 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9908 | ;; | |
9909 | esac | |
9910 | ;; | |
9911 | ||
8d138742 CE |
9912 | netbsd*) |
9913 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9914 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9915 | else | |
9916 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
d9898ee8 | 9917 | fi |
8d138742 CE |
9918 | hardcode_libdir_flag_spec='-R$libdir' |
9919 | hardcode_direct=yes | |
9920 | hardcode_shlibpath_var=no | |
9921 | ;; | |
d9898ee8 | 9922 | |
8d138742 CE |
9923 | newsos6) |
9924 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9925 | hardcode_direct=yes | |
d50284c4 | 9926 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9927 | hardcode_libdir_separator=: |
9928 | hardcode_shlibpath_var=no | |
9929 | ;; | |
d9898ee8 | 9930 | |
8d138742 CE |
9931 | *nto* | *qnx*) |
9932 | ;; | |
d9898ee8 | 9933 | |
d50284c4 | 9934 | openbsd* | bitrig*) |
8d138742 CE |
9935 | if test -f /usr/libexec/ld.so; then |
9936 | hardcode_direct=yes | |
9937 | hardcode_shlibpath_var=no | |
9938 | hardcode_direct_absolute=yes | |
d50284c4 | 9939 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 9940 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
9941 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9942 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9943 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 9944 | else |
d50284c4 CE |
9945 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9946 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 | 9947 | fi |
d9898ee8 | 9948 | else |
8d138742 | 9949 | ld_shlibs=no |
d9898ee8 | 9950 | fi |
d9898ee8 | 9951 | ;; |
8d138742 CE |
9952 | |
9953 | os2*) | |
9954 | hardcode_libdir_flag_spec='-L$libdir' | |
9955 | hardcode_minus_L=yes | |
9956 | allow_undefined_flag=unsupported | |
d50284c4 CE |
9957 | shrext_cmds=.dll |
9958 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9959 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9960 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9961 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9962 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9963 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9964 | emximp -o $lib $output_objdir/$libname.def' | |
9965 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9966 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9967 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9968 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9969 | prefix_cmds="$SED"~ | |
9970 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9971 | prefix_cmds="$prefix_cmds -e 1d"; | |
9972 | fi~ | |
9973 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9974 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9975 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9976 | emximp -o $lib $output_objdir/$libname.def' | |
9977 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9978 | enable_shared_with_static_runtimes=yes | |
d9898ee8 | 9979 | ;; |
8d138742 CE |
9980 | |
9981 | osf3*) | |
d50284c4 CE |
9982 | if test yes = "$GCC"; then |
9983 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9984 | 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' | |
d9898ee8 | 9985 | else |
8d138742 | 9986 | allow_undefined_flag=' -expect_unresolved \*' |
d50284c4 | 9987 | 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' |
d9898ee8 | 9988 | fi |
8d138742 | 9989 | archive_cmds_need_lc='no' |
d50284c4 | 9990 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 | 9991 | hardcode_libdir_separator=: |
d9898ee8 | 9992 | ;; |
d9898ee8 | 9993 | |
8d138742 | 9994 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
9995 | if test yes = "$GCC"; then |
9996 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9997 | 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' | |
9998 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
9999 | else |
10000 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10001 | 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 | 10002 | 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 | 10003 | $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' |
8d138742 CE |
10004 | |
10005 | # Both c and cxx compiler support -rpath directly | |
10006 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10007 | fi | |
10008 | archive_cmds_need_lc='no' | |
10009 | hardcode_libdir_separator=: | |
d9898ee8 | 10010 | ;; |
d9898ee8 | 10011 | |
8d138742 CE |
10012 | solaris*) |
10013 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10014 | if test yes = "$GCC"; then |
10015 | wlarc='$wl' | |
10016 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10017 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10018 | $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 |
10019 | else |
10020 | case `$CC -V 2>&1` in | |
10021 | *"Compilers 5.0"*) | |
10022 | wlarc='' | |
d50284c4 | 10023 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10024 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10025 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
d9898ee8 | 10026 | ;; |
10027 | *) | |
d50284c4 CE |
10028 | wlarc='$wl' |
10029 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10030 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10031 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
d9898ee8 | 10032 | ;; |
10033 | esac | |
8d138742 CE |
10034 | fi |
10035 | hardcode_libdir_flag_spec='-R$libdir' | |
10036 | hardcode_shlibpath_var=no | |
10037 | case $host_os in | |
10038 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
d9898ee8 | 10039 | *) |
8d138742 | 10040 | # The compiler driver will combine and reorder linker options, |
d50284c4 | 10041 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10042 | # but is careful enough not to reorder. |
10043 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10044 | if test yes = "$GCC"; then |
10045 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
d9898ee8 | 10046 | else |
8d138742 | 10047 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
d9898ee8 | 10048 | fi |
d9898ee8 | 10049 | ;; |
8d138742 CE |
10050 | esac |
10051 | link_all_deplibs=yes | |
10052 | ;; | |
10053 | ||
10054 | sunos4*) | |
d50284c4 | 10055 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10056 | # Use $CC to link under sequent, because it throws in some extra .o |
10057 | # files that make .init and .fini sections work. | |
d50284c4 | 10058 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10059 | else |
10060 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10061 | fi | |
10062 | hardcode_libdir_flag_spec='-L$libdir' | |
10063 | hardcode_direct=yes | |
10064 | hardcode_minus_L=yes | |
10065 | hardcode_shlibpath_var=no | |
10066 | ;; | |
10067 | ||
10068 | sysv4) | |
10069 | case $host_vendor in | |
10070 | sni) | |
10071 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10072 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 10073 | ;; |
8d138742 CE |
10074 | siemens) |
10075 | ## LD is ld it makes a PLAMLIB | |
10076 | ## CC just makes a GrossModule. | |
10077 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10078 | reload_cmds='$CC -r -o $output$reload_objs' | |
10079 | hardcode_direct=no | |
d9898ee8 | 10080 | ;; |
8d138742 CE |
10081 | motorola) |
10082 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10083 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10084 | ;; | |
10085 | esac | |
10086 | runpath_var='LD_RUN_PATH' | |
10087 | hardcode_shlibpath_var=no | |
10088 | ;; | |
10089 | ||
10090 | sysv4.3*) | |
10091 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10092 | hardcode_shlibpath_var=no | |
10093 | export_dynamic_flag_spec='-Bexport' | |
10094 | ;; | |
d9898ee8 | 10095 | |
8d138742 CE |
10096 | sysv4*MP*) |
10097 | if test -d /usr/nec; then | |
10098 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10099 | hardcode_shlibpath_var=no | |
d9898ee8 | 10100 | runpath_var=LD_RUN_PATH |
8d138742 CE |
10101 | hardcode_runpath_var=yes |
10102 | ld_shlibs=yes | |
ac40fd9e | 10103 | fi |
8d138742 | 10104 | ;; |
d9898ee8 | 10105 | |
8d138742 | 10106 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10107 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10108 | archive_cmds_need_lc=no |
10109 | hardcode_shlibpath_var=no | |
10110 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10111 | |
d50284c4 CE |
10112 | if test yes = "$GCC"; then |
10113 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10114 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10115 | else |
d50284c4 CE |
10116 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10117 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10118 | fi |
10119 | ;; | |
d9898ee8 | 10120 | |
8d138742 | 10121 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10122 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10123 | # link with -lc, and that would cause any symbols used from libc to |
10124 | # always be unresolved, which means just about no library would | |
10125 | # ever link correctly. If we're not using GNU ld we use -z text | |
10126 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10127 | # as -z defs. | |
d50284c4 CE |
10128 | no_undefined_flag='$wl-z,text' |
10129 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10130 | archive_cmds_need_lc=no |
10131 | hardcode_shlibpath_var=no | |
d50284c4 | 10132 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10133 | hardcode_libdir_separator=':' |
10134 | link_all_deplibs=yes | |
d50284c4 | 10135 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10136 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10137 | |
d50284c4 CE |
10138 | if test yes = "$GCC"; then |
10139 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10140 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10141 | else |
d50284c4 CE |
10142 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10143 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10144 | fi |
10145 | ;; | |
d9898ee8 | 10146 | |
8d138742 CE |
10147 | uts4*) |
10148 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10149 | hardcode_libdir_flag_spec='-L$libdir' | |
10150 | hardcode_shlibpath_var=no | |
10151 | ;; | |
d9898ee8 | 10152 | |
8d138742 CE |
10153 | *) |
10154 | ld_shlibs=no | |
10155 | ;; | |
d9898ee8 | 10156 | esac |
d9898ee8 | 10157 | |
d50284c4 | 10158 | if test sni = "$host_vendor"; then |
8d138742 CE |
10159 | case $host in |
10160 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10161 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10162 | ;; |
10163 | esac | |
10164 | fi | |
10165 | fi | |
d9898ee8 | 10166 | |
b0322a85 | 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10168 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10169 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10170 | |
8d138742 | 10171 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10172 | |
d9898ee8 | 10173 | |
d9898ee8 | 10174 | |
d9898ee8 | 10175 | |
d9898ee8 | 10176 | |
d9898ee8 | 10177 | |
10178 | ||
d9898ee8 | 10179 | |
d9898ee8 | 10180 | |
d9898ee8 | 10181 | |
d9898ee8 | 10182 | |
d9898ee8 | 10183 | |
d9898ee8 | 10184 | |
d9898ee8 | 10185 | |
d9898ee8 | 10186 | |
8d138742 CE |
10187 | # |
10188 | # Do we need to explicitly link libc? | |
10189 | # | |
10190 | case "x$archive_cmds_need_lc" in | |
10191 | x|xyes) | |
10192 | # Assume -lc should be added | |
10193 | archive_cmds_need_lc=yes | |
d9898ee8 | 10194 | |
d50284c4 | 10195 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10196 | case $archive_cmds in |
10197 | *'~'*) | |
10198 | # FIXME: we may have to deal with multi-command sequences. | |
ac40fd9e | 10199 | ;; |
8d138742 CE |
10200 | '$CC '*) |
10201 | # Test whether the compiler implicitly links with -lc since on some | |
10202 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10203 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10205 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10206 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10207 | $as_echo_n "(cached) " >&6 | |
10208 | else | |
10209 | $RM conftest* | |
10210 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
ac40fd9e | 10211 | |
b0322a85 | 10212 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10213 | (eval $ac_compile) 2>&5 |
10214 | ac_status=$? | |
b0322a85 CE |
10215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10216 | test $ac_status = 0; } 2>conftest.err; then | |
10217 | soname=conftest | |
10218 | lib=conftest | |
10219 | libobjs=conftest.$ac_objext | |
10220 | deplibs= | |
10221 | wl=$lt_prog_compiler_wl | |
10222 | pic_flag=$lt_prog_compiler_pic | |
10223 | compiler_flags=-v | |
10224 | linker_flags=-v | |
10225 | verstring= | |
10226 | output_objdir=. | |
10227 | libname=conftest | |
10228 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10229 | allow_undefined_flag= | |
10230 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10231 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10232 | ac_status=$? | |
b0322a85 CE |
10233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10234 | test $ac_status = 0; } | |
10235 | then | |
10236 | lt_cv_archive_cmds_need_lc=no | |
10237 | else | |
10238 | lt_cv_archive_cmds_need_lc=yes | |
10239 | fi | |
10240 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10241 | else | |
10242 | cat conftest.err 1>&5 | |
10243 | fi | |
10244 | $RM conftest* | |
10245 | ||
10246 | fi | |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10248 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10249 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
ac40fd9e | 10250 | ;; |
10251 | esac | |
8d138742 | 10252 | fi |
d9898ee8 | 10253 | ;; |
10254 | esac | |
10255 | ||
10256 | ||
d9898ee8 | 10257 | |
d9898ee8 | 10258 | |
d9898ee8 | 10259 | |
d9898ee8 | 10260 | |
d9898ee8 | 10261 | |
d9898ee8 | 10262 | |
d9898ee8 | 10263 | |
d9898ee8 | 10264 | |
d9898ee8 | 10265 | |
d9898ee8 | 10266 | |
d9898ee8 | 10267 | |
d9898ee8 | 10268 | |
d9898ee8 | 10269 | |
d9898ee8 | 10270 | |
10271 | ||
d9898ee8 | 10272 | |
d9898ee8 | 10273 | |
d9898ee8 | 10274 | |
10275 | ||
d9898ee8 | 10276 | |
d9898ee8 | 10277 | |
d9898ee8 | 10278 | |
d9898ee8 | 10279 | |
d9898ee8 | 10280 | |
d9898ee8 | 10281 | |
d9898ee8 | 10282 | |
ac40fd9e | 10283 | |
8d138742 CE |
10284 | |
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
b0322a85 | 10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10408 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10409 | ||
d50284c4 | 10410 | if test yes = "$GCC"; then |
8d138742 | 10411 | case $host_os in |
d50284c4 CE |
10412 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10413 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10414 | esac |
b0322a85 | 10415 | case $host_os in |
d50284c4 CE |
10416 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10417 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10418 | esac |
10419 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10420 | case $lt_search_path_spec in | |
10421 | *\;*) | |
8d138742 CE |
10422 | # if the path contains ";" then we assume it to be the separator |
10423 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10424 | # assumed that no part of a normal pathname contains ";" but that should | |
10425 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10426 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10427 | ;; | |
10428 | *) | |
10429 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10430 | ;; | |
10431 | esac | |
8d138742 | 10432 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10433 | # and add multilib dir if necessary... |
8d138742 | 10434 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10435 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10436 | # ...but if some path component already ends with the multilib dir we assume | |
10437 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10438 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10439 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10440 | lt_multi_os_dir= | |
10441 | ;; | |
10442 | esac | |
8d138742 | 10443 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10444 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10445 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10446 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10447 | test -d "$lt_sys_path" && \ |
10448 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10449 | fi | |
10450 | done | |
b0322a85 | 10451 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10452 | BEGIN {RS = " "; FS = "/|\n";} { |
10453 | lt_foo = ""; | |
10454 | lt_count = 0; | |
8d138742 CE |
10455 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10456 | if ($lt_i != "" && $lt_i != ".") { | |
10457 | if ($lt_i == "..") { | |
10458 | lt_count++; | |
10459 | } else { | |
10460 | if (lt_count == 0) { | |
d50284c4 | 10461 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10462 | } else { |
10463 | lt_count--; | |
10464 | } | |
10465 | } | |
10466 | } | |
10467 | } | |
10468 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10469 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10470 | }'` | |
b0322a85 CE |
10471 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10472 | # for these hosts. | |
10473 | case $host_os in | |
10474 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10475 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10476 | esac |
10477 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10478 | else |
10479 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10480 | fi | |
10481 | library_names_spec= | |
10482 | libname_spec='lib$name' | |
10483 | soname_spec= | |
d50284c4 | 10484 | shrext_cmds=.so |
8d138742 CE |
10485 | postinstall_cmds= |
10486 | postuninstall_cmds= | |
10487 | finish_cmds= | |
10488 | finish_eval= | |
10489 | shlibpath_var= | |
10490 | shlibpath_overrides_runpath=unknown | |
10491 | version_type=none | |
10492 | dynamic_linker="$host_os ld.so" | |
10493 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10494 | need_lib_prefix=unknown | |
d9898ee8 | 10495 | hardcode_into_libs=no |
10496 | ||
10497 | # when you set need_version to no, make sure it does not cause -set_version | |
10498 | # flags to be left without arguments | |
10499 | need_version=unknown | |
10500 | ||
d50284c4 CE |
10501 | |
10502 | ||
d9898ee8 | 10503 | case $host_os in |
10504 | aix3*) | |
b0322a85 | 10505 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10506 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
d9898ee8 | 10507 | shlibpath_var=LIBPATH |
10508 | ||
10509 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10510 | soname_spec='$libname$release$shared_ext$major' |
d9898ee8 | 10511 | ;; |
10512 | ||
8d138742 | 10513 | aix[4-9]*) |
b0322a85 | 10514 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10515 | need_lib_prefix=no |
10516 | need_version=no | |
10517 | hardcode_into_libs=yes | |
d50284c4 | 10518 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 10519 | # AIX 5 supports IA64 |
d50284c4 | 10520 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
d9898ee8 | 10521 | shlibpath_var=LD_LIBRARY_PATH |
10522 | else | |
10523 | # With GCC up to 2.95.x, collect2 would create an import file | |
10524 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10525 | # the line '#! .'. This would cause the generated library to |
10526 | # depend on '.', always an invalid library. This was fixed in | |
d9898ee8 | 10527 | # development snapshots of GCC prior to 3.0. |
10528 | case $host_os in | |
10529 | aix4 | aix4.[01] | aix4.[01].*) | |
10530 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10531 | echo ' yes ' | |
d50284c4 | 10532 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10533 | : |
10534 | else | |
10535 | can_build_shared=no | |
10536 | fi | |
10537 | ;; | |
10538 | esac | |
d50284c4 CE |
10539 | # Using Import Files as archive members, it is possible to support |
10540 | # filename-based versioning of shared library archives on AIX. While | |
10541 | # this would work for both with and without runtime linking, it will | |
10542 | # prevent static linking of such archives. So we do filename-based | |
10543 | # shared library versioning with .so extension only, which is used | |
10544 | # when both runtime linking and shared linking is enabled. | |
10545 | # Unfortunately, runtime linking may impact performance, so we do | |
10546 | # not want this to be the default eventually. Also, we use the | |
10547 | # versioned .so libs for executables only if there is the -brtl | |
10548 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10549 | # To allow for filename-based versioning support, we need to create | |
10550 | # libNAME.so.V as an archive file, containing: | |
10551 | # *) an Import File, referring to the versioned filename of the | |
10552 | # archive as well as the shared archive member, telling the | |
10553 | # bitwidth (32 or 64) of that shared object, and providing the | |
10554 | # list of exported symbols of that shared object, eventually | |
10555 | # decorated with the 'weak' keyword | |
10556 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10557 | # it being seen by the linker. | |
10558 | # At run time we better use the real file rather than another symlink, | |
10559 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10560 | ||
10561 | case $with_aix_soname,$aix_use_runtimelinking in | |
10562 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 10563 | # soname into executable. Probably we can add versioning support to |
10564 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10565 | aix,yes) # traditional libtool |
10566 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 10567 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10568 | # instead of lib<name>.a to let people know that these are not | |
10569 | # typical AIX shared libraries. | |
d50284c4 CE |
10570 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10571 | ;; | |
10572 | aix,no) # traditional AIX only | |
10573 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 10574 | # We preserve .a as extension for shared libraries through AIX4.2 |
10575 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10576 | library_names_spec='$libname$release.a $libname.a' |
10577 | soname_spec='$libname$release$shared_ext$major' | |
10578 | ;; | |
10579 | svr4,*) # full svr4 only | |
10580 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10581 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10582 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10583 | shlibpath_overrides_runpath=yes | |
10584 | ;; | |
10585 | *,yes) # both, prefer svr4 | |
10586 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10587 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10588 | # unpreferred sharedlib libNAME.a needs extra handling | |
10589 | 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"' | |
10590 | 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"' | |
10591 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10592 | shlibpath_overrides_runpath=yes | |
10593 | ;; | |
10594 | *,no) # both, prefer aix | |
10595 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10596 | library_names_spec='$libname$release.a $libname.a' | |
10597 | soname_spec='$libname$release$shared_ext$major' | |
10598 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10599 | 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)' | |
10600 | 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"' | |
10601 | ;; | |
10602 | esac | |
d9898ee8 | 10603 | shlibpath_var=LIBPATH |
10604 | fi | |
10605 | ;; | |
10606 | ||
10607 | amigaos*) | |
8d138742 CE |
10608 | case $host_cpu in |
10609 | powerpc) | |
10610 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10611 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10612 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10613 | ;; |
10614 | m68k) | |
10615 | library_names_spec='$libname.ixlibrary $libname.a' | |
10616 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10617 | 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 |
10618 | ;; |
10619 | esac | |
d9898ee8 | 10620 | ;; |
10621 | ||
10622 | beos*) | |
d50284c4 | 10623 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 10624 | dynamic_linker="$host_os ld.so" |
10625 | shlibpath_var=LIBRARY_PATH | |
10626 | ;; | |
10627 | ||
10628 | bsdi[45]*) | |
b0322a85 | 10629 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10630 | need_version=no |
d50284c4 CE |
10631 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10632 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10633 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10634 | shlibpath_var=LD_LIBRARY_PATH | |
10635 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10636 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10637 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10638 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10639 | # libtool to hard-code these into programs | |
10640 | ;; | |
10641 | ||
8d138742 | 10642 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10643 | version_type=windows |
d50284c4 | 10644 | shrext_cmds=.dll |
d9898ee8 | 10645 | need_version=no |
10646 | need_lib_prefix=no | |
10647 | ||
b0322a85 CE |
10648 | case $GCC,$cc_basename in |
10649 | yes,*) | |
10650 | # gcc | |
d9898ee8 | 10651 | library_names_spec='$libname.dll.a' |
10652 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10653 | postinstall_cmds='base_file=`basename \$file`~ |
10654 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10655 | dldir=$destdir/`dirname \$dlpath`~ |
10656 | test -d \$dldir || mkdir -p \$dldir~ | |
10657 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10658 | chmod a+x \$dldir/$dlname~ |
10659 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10660 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10661 | fi' | |
d9898ee8 | 10662 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10663 | dlpath=$dir/\$dldll~ | |
8d138742 | 10664 | $RM \$dlpath' |
d9898ee8 | 10665 | shlibpath_overrides_runpath=yes |
10666 | ||
10667 | case $host_os in | |
10668 | cygwin*) | |
10669 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10670 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10671 | |
10672 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10673 | ;; |
8d138742 | 10674 | mingw* | cegcc*) |
d9898ee8 | 10675 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10676 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10677 | ;; |
10678 | pw32*) | |
10679 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10680 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10681 | ;; |
10682 | esac | |
b0322a85 CE |
10683 | dynamic_linker='Win32 ld.exe' |
10684 | ;; | |
10685 | ||
10686 | *,cl*) | |
10687 | # Native MSVC | |
10688 | libname_spec='$name' | |
d50284c4 CE |
10689 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10690 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10691 | |
10692 | case $build_os in | |
10693 | mingw*) | |
10694 | sys_lib_search_path_spec= | |
10695 | lt_save_ifs=$IFS | |
10696 | IFS=';' | |
10697 | for lt_path in $LIB | |
10698 | do | |
10699 | IFS=$lt_save_ifs | |
10700 | # Let DOS variable expansion print the short 8.3 style file name. | |
10701 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10702 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10703 | done | |
10704 | IFS=$lt_save_ifs | |
10705 | # Convert to MSYS style. | |
10706 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10707 | ;; | |
10708 | cygwin*) | |
10709 | # Convert to unix form, then to dos form, then back to unix form | |
10710 | # but this time dos style (no spaces!) so that the unix form looks | |
10711 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10712 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10713 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10714 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10715 | ;; | |
10716 | *) | |
d50284c4 | 10717 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10718 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10719 | # It is most probably a Windows format PATH. | |
10720 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10721 | else | |
10722 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10723 | fi | |
10724 | # FIXME: find the short name or the path components, as spaces are | |
10725 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10726 | ;; | |
10727 | esac | |
10728 | ||
10729 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10730 | postinstall_cmds='base_file=`basename \$file`~ |
10731 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10732 | dldir=$destdir/`dirname \$dlpath`~ |
10733 | test -d \$dldir || mkdir -p \$dldir~ | |
10734 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10735 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10736 | dlpath=$dir/\$dldll~ | |
10737 | $RM \$dlpath' | |
10738 | shlibpath_overrides_runpath=yes | |
10739 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10740 | ;; |
10741 | ||
10742 | *) | |
b0322a85 | 10743 | # Assume MSVC wrapper |
d50284c4 | 10744 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10745 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10746 | ;; |
10747 | esac | |
d9898ee8 | 10748 | # FIXME: first we should search . and the directory the executable is in |
10749 | shlibpath_var=PATH | |
10750 | ;; | |
10751 | ||
10752 | darwin* | rhapsody*) | |
10753 | dynamic_linker="$host_os dyld" | |
10754 | version_type=darwin | |
10755 | need_lib_prefix=no | |
10756 | need_version=no | |
d50284c4 CE |
10757 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10758 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 10759 | shlibpath_overrides_runpath=yes |
10760 | shlibpath_var=DYLD_LIBRARY_PATH | |
10761 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10762 | |
8d138742 | 10763 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10764 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10765 | ;; | |
10766 | ||
10767 | dgux*) | |
b0322a85 | 10768 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10769 | need_lib_prefix=no |
10770 | need_version=no | |
d50284c4 CE |
10771 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10772 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10773 | shlibpath_var=LD_LIBRARY_PATH |
10774 | ;; | |
10775 | ||
d9898ee8 | 10776 | freebsd* | dragonfly*) |
10777 | # DragonFly does not have aout. When/if they implement a new | |
10778 | # versioning mechanism, adjust this. | |
10779 | if test -x /usr/bin/objformat; then | |
10780 | objformat=`/usr/bin/objformat` | |
10781 | else | |
10782 | case $host_os in | |
b0322a85 | 10783 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10784 | *) objformat=elf ;; |
10785 | esac | |
10786 | fi | |
10787 | version_type=freebsd-$objformat | |
10788 | case $version_type in | |
10789 | freebsd-elf*) | |
d50284c4 CE |
10790 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10791 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10792 | need_version=no |
10793 | need_lib_prefix=no | |
10794 | ;; | |
10795 | freebsd-*) | |
d50284c4 | 10796 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 10797 | need_version=yes |
10798 | ;; | |
10799 | esac | |
10800 | shlibpath_var=LD_LIBRARY_PATH | |
10801 | case $host_os in | |
b0322a85 | 10802 | freebsd2.*) |
d9898ee8 | 10803 | shlibpath_overrides_runpath=yes |
10804 | ;; | |
10805 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10806 | shlibpath_overrides_runpath=yes | |
10807 | hardcode_into_libs=yes | |
10808 | ;; | |
10809 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10810 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10811 | shlibpath_overrides_runpath=no | |
10812 | hardcode_into_libs=yes | |
10813 | ;; | |
ac40fd9e | 10814 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10815 | shlibpath_overrides_runpath=yes |
10816 | hardcode_into_libs=yes | |
10817 | ;; | |
10818 | esac | |
10819 | ;; | |
10820 | ||
b0322a85 CE |
10821 | haiku*) |
10822 | version_type=linux # correct to gnu/linux during the next big refactor | |
10823 | need_lib_prefix=no | |
10824 | need_version=no | |
10825 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10826 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10827 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10828 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10829 | shlibpath_overrides_runpath=no |
b0322a85 | 10830 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 10831 | hardcode_into_libs=yes |
10832 | ;; | |
10833 | ||
10834 | hpux9* | hpux10* | hpux11*) | |
10835 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10836 | # link against other versions. | |
10837 | version_type=sunos | |
10838 | need_lib_prefix=no | |
10839 | need_version=no | |
10840 | case $host_cpu in | |
10841 | ia64*) | |
10842 | shrext_cmds='.so' | |
10843 | hardcode_into_libs=yes | |
10844 | dynamic_linker="$host_os dld.so" | |
10845 | shlibpath_var=LD_LIBRARY_PATH | |
10846 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10847 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10848 | soname_spec='$libname$release$shared_ext$major' | |
10849 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 10850 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10851 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 10852 | else |
10853 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10854 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 10855 | fi |
d9898ee8 | 10856 | ;; |
8d138742 CE |
10857 | hppa*64*) |
10858 | shrext_cmds='.sl' | |
10859 | hardcode_into_libs=yes | |
10860 | dynamic_linker="$host_os dld.sl" | |
10861 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10862 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10863 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10864 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10865 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10866 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10867 | ;; | |
10868 | *) | |
d9898ee8 | 10869 | shrext_cmds='.sl' |
10870 | dynamic_linker="$host_os dld.sl" | |
10871 | shlibpath_var=SHLIB_PATH | |
10872 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
10873 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10874 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10875 | ;; |
10876 | esac | |
b0322a85 | 10877 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10878 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10879 | # or fails outright, so override atomically: |
10880 | install_override_mode=555 | |
d9898ee8 | 10881 | ;; |
10882 | ||
ac40fd9e | 10883 | interix[3-9]*) |
b0322a85 | 10884 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10885 | need_lib_prefix=no |
10886 | need_version=no | |
d50284c4 CE |
10887 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10888 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10889 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10890 | shlibpath_var=LD_LIBRARY_PATH | |
10891 | shlibpath_overrides_runpath=no | |
10892 | hardcode_into_libs=yes | |
10893 | ;; | |
10894 | ||
10895 | irix5* | irix6* | nonstopux*) | |
10896 | case $host_os in | |
10897 | nonstopux*) version_type=nonstopux ;; | |
10898 | *) | |
d50284c4 | 10899 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 10900 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10901 | else |
10902 | version_type=irix | |
10903 | fi ;; | |
10904 | esac | |
10905 | need_lib_prefix=no | |
10906 | need_version=no | |
d50284c4 CE |
10907 | soname_spec='$libname$release$shared_ext$major' |
10908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 10909 | case $host_os in |
10910 | irix5* | nonstopux*) | |
10911 | libsuff= shlibsuff= | |
10912 | ;; | |
10913 | *) | |
10914 | case $LD in # libtool.m4 will add one of these switches to LD | |
10915 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10916 | libsuff= shlibsuff= libmagic=32-bit;; | |
10917 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10918 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10919 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10920 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10921 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10922 | esac | |
10923 | ;; | |
10924 | esac | |
10925 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10926 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
10927 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10928 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 10929 | hardcode_into_libs=yes |
10930 | ;; | |
10931 | ||
10932 | # No shared lib support for Linux oldld, aout, or coff. | |
10933 | linux*oldld* | linux*aout* | linux*coff*) | |
10934 | dynamic_linker=no | |
10935 | ;; | |
10936 | ||
d50284c4 CE |
10937 | linux*android*) |
10938 | version_type=none # Android doesn't support versioned libraries. | |
10939 | need_lib_prefix=no | |
10940 | need_version=no | |
10941 | library_names_spec='$libname$release$shared_ext' | |
10942 | soname_spec='$libname$release$shared_ext' | |
10943 | finish_cmds= | |
10944 | shlibpath_var=LD_LIBRARY_PATH | |
10945 | shlibpath_overrides_runpath=yes | |
10946 | ||
10947 | # This implies no fast_install, which is unacceptable. | |
10948 | # Some rework will be needed to allow for fast_install | |
10949 | # before this can be enabled. | |
10950 | hardcode_into_libs=yes | |
10951 | ||
10952 | dynamic_linker='Android linker' | |
10953 | # Don't embed -rpath directories since the linker doesn't support them. | |
10954 | hardcode_libdir_flag_spec='-L$libdir' | |
10955 | ;; | |
10956 | ||
b0322a85 | 10957 | # This must be glibc/ELF. |
d50284c4 | 10958 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 10959 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10960 | need_lib_prefix=no |
10961 | need_version=no | |
d50284c4 CE |
10962 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10963 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10964 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10965 | shlibpath_var=LD_LIBRARY_PATH | |
10966 | shlibpath_overrides_runpath=no | |
b0322a85 | 10967 | |
8d138742 | 10968 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10969 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10970 | $as_echo_n "(cached) " >&6 | |
10971 | else | |
10972 | lt_cv_shlibpath_overrides_runpath=no | |
10973 | save_LDFLAGS=$LDFLAGS | |
10974 | save_libdir=$libdir | |
10975 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10976 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10978 | /* end confdefs.h. */ |
10979 | ||
10980 | int | |
10981 | main () | |
10982 | { | |
10983 | ||
10984 | ; | |
10985 | return 0; | |
10986 | } | |
10987 | _ACEOF | |
b0322a85 CE |
10988 | if ac_fn_c_try_link "$LINENO"; then : |
10989 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10990 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10991 | fi |
b0322a85 CE |
10992 | fi |
10993 | rm -f core conftest.err conftest.$ac_objext \ | |
10994 | conftest$ac_exeext conftest.$ac_ext | |
10995 | LDFLAGS=$save_LDFLAGS | |
10996 | libdir=$save_libdir | |
8d138742 CE |
10997 | |
10998 | fi | |
10999 | ||
b0322a85 | 11000 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 11001 | |
d9898ee8 | 11002 | # This implies no fast_install, which is unacceptable. |
11003 | # Some rework will be needed to allow for fast_install | |
11004 | # before this can be enabled. | |
11005 | hardcode_into_libs=yes | |
8d138742 CE |
11006 | |
11007 | # Add ABI-specific directories to the system library path. | |
11008 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11009 | |
d50284c4 CE |
11010 | # Ideally, we could use ldconfig to report *all* directores which are |
11011 | # searched for libraries, however this is still not possible. Aside from not | |
11012 | # being certain /sbin/ldconfig is available, command | |
11013 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11014 | # even though it is searched at run-time. Try to do the best guess by | |
11015 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11016 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11017 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
ac40fd9e | 11018 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11019 | fi |
11020 | ||
11021 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11022 | # powerpc, because MkLinux only supported shared libraries with the | |
11023 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11024 | # most powerpc-linux boxes support dynamic linking these days and | |
11025 | # people can always --disable-shared, the test was removed, and we | |
11026 | # assume the GNU/Linux dynamic linker is in use. | |
11027 | dynamic_linker='GNU/Linux ld.so' | |
11028 | ;; | |
11029 | ||
d9898ee8 | 11030 | netbsd*) |
11031 | version_type=sunos | |
11032 | need_lib_prefix=no | |
11033 | need_version=no | |
8d138742 | 11034 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11035 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11036 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11037 | dynamic_linker='NetBSD (a.out) ld.so' | |
11038 | else | |
d50284c4 CE |
11039 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11040 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11041 | dynamic_linker='NetBSD ld.elf_so' |
11042 | fi | |
11043 | shlibpath_var=LD_LIBRARY_PATH | |
11044 | shlibpath_overrides_runpath=yes | |
11045 | hardcode_into_libs=yes | |
11046 | ;; | |
11047 | ||
11048 | newsos6) | |
b0322a85 | 11049 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11050 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11051 | shlibpath_var=LD_LIBRARY_PATH |
11052 | shlibpath_overrides_runpath=yes | |
11053 | ;; | |
11054 | ||
8d138742 CE |
11055 | *nto* | *qnx*) |
11056 | version_type=qnx | |
d9898ee8 | 11057 | need_lib_prefix=no |
11058 | need_version=no | |
d50284c4 CE |
11059 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11060 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11061 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11062 | shlibpath_overrides_runpath=no |
11063 | hardcode_into_libs=yes | |
11064 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11065 | ;; |
11066 | ||
d50284c4 | 11067 | openbsd* | bitrig*) |
d9898ee8 | 11068 | version_type=sunos |
d50284c4 | 11069 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11070 | need_lib_prefix=no |
d50284c4 CE |
11071 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11072 | need_version=no | |
d9898ee8 | 11073 | else |
d50284c4 | 11074 | need_version=yes |
d9898ee8 | 11075 | fi |
d50284c4 CE |
11076 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11077 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11078 | shlibpath_var=LD_LIBRARY_PATH | |
11079 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11080 | ;; |
11081 | ||
11082 | os2*) | |
11083 | libname_spec='$name' | |
d50284c4 CE |
11084 | version_type=windows |
11085 | shrext_cmds=.dll | |
11086 | need_version=no | |
d9898ee8 | 11087 | need_lib_prefix=no |
d50284c4 CE |
11088 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11089 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11090 | v=$($ECHO $release$versuffix | tr -d .-); | |
11091 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11092 | $ECHO $n$v`$shared_ext' | |
11093 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11094 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11095 | shlibpath_var=BEGINLIBPATH |
11096 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11097 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11098 | postinstall_cmds='base_file=`basename \$file`~ | |
11099 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11100 | dldir=$destdir/`dirname \$dlpath`~ | |
11101 | test -d \$dldir || mkdir -p \$dldir~ | |
11102 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11103 | chmod a+x \$dldir/$dlname~ | |
11104 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11105 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11106 | fi' | |
11107 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11108 | dlpath=$dir/\$dldll~ | |
11109 | $RM \$dlpath' | |
d9898ee8 | 11110 | ;; |
11111 | ||
11112 | osf3* | osf4* | osf5*) | |
11113 | version_type=osf | |
11114 | need_lib_prefix=no | |
11115 | need_version=no | |
d50284c4 CE |
11116 | soname_spec='$libname$release$shared_ext$major' |
11117 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11118 | shlibpath_var=LD_LIBRARY_PATH |
11119 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11120 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11121 | ;; |
11122 | ||
ac40fd9e | 11123 | rdos*) |
11124 | dynamic_linker=no | |
11125 | ;; | |
11126 | ||
d9898ee8 | 11127 | solaris*) |
b0322a85 | 11128 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11129 | need_lib_prefix=no |
11130 | need_version=no | |
d50284c4 CE |
11131 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11132 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11133 | shlibpath_var=LD_LIBRARY_PATH |
11134 | shlibpath_overrides_runpath=yes | |
11135 | hardcode_into_libs=yes | |
11136 | # ldd complains unless libraries are executable | |
11137 | postinstall_cmds='chmod +x $lib' | |
11138 | ;; | |
11139 | ||
11140 | sunos4*) | |
11141 | version_type=sunos | |
d50284c4 | 11142 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11143 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11144 | shlibpath_var=LD_LIBRARY_PATH | |
11145 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11146 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11147 | need_lib_prefix=no |
11148 | fi | |
11149 | need_version=yes | |
11150 | ;; | |
11151 | ||
11152 | sysv4 | sysv4.3*) | |
b0322a85 | 11153 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11154 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11155 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11156 | shlibpath_var=LD_LIBRARY_PATH |
11157 | case $host_vendor in | |
11158 | sni) | |
11159 | shlibpath_overrides_runpath=no | |
11160 | need_lib_prefix=no | |
d9898ee8 | 11161 | runpath_var=LD_RUN_PATH |
11162 | ;; | |
11163 | siemens) | |
11164 | need_lib_prefix=no | |
11165 | ;; | |
11166 | motorola) | |
11167 | need_lib_prefix=no | |
11168 | need_version=no | |
11169 | shlibpath_overrides_runpath=no | |
11170 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11171 | ;; | |
11172 | esac | |
11173 | ;; | |
11174 | ||
11175 | sysv4*MP*) | |
d50284c4 | 11176 | if test -d /usr/nec; then |
b0322a85 | 11177 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11178 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11179 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11180 | shlibpath_var=LD_LIBRARY_PATH |
11181 | fi | |
11182 | ;; | |
11183 | ||
11184 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11185 | version_type=sco |
d9898ee8 | 11186 | need_lib_prefix=no |
11187 | need_version=no | |
d50284c4 CE |
11188 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11189 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11190 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11191 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11192 | hardcode_into_libs=yes |
d50284c4 | 11193 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11194 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11195 | else |
11196 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11197 | case $host_os in |
11198 | sco3.2v5*) | |
11199 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11200 | ;; | |
11201 | esac | |
11202 | fi | |
11203 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11204 | ;; | |
11205 | ||
8d138742 CE |
11206 | tpf*) |
11207 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11208 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11209 | need_lib_prefix=no |
11210 | need_version=no | |
d50284c4 | 11211 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11212 | shlibpath_var=LD_LIBRARY_PATH |
11213 | shlibpath_overrides_runpath=no | |
11214 | hardcode_into_libs=yes | |
11215 | ;; | |
11216 | ||
d9898ee8 | 11217 | uts4*) |
b0322a85 | 11218 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11219 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11220 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11221 | shlibpath_var=LD_LIBRARY_PATH |
11222 | ;; | |
11223 | ||
11224 | *) | |
11225 | dynamic_linker=no | |
11226 | ;; | |
11227 | esac | |
b0322a85 | 11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11229 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11230 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11231 | |
11232 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11233 | if test yes = "$GCC"; then |
d9898ee8 | 11234 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11235 | fi | |
11236 | ||
d50284c4 CE |
11237 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11238 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
d9898ee8 | 11239 | fi |
d50284c4 CE |
11240 | |
11241 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11242 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 11243 | fi |
11244 | ||
d50284c4 CE |
11245 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11246 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11247 | ||
11248 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11249 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11250 | ||
11251 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11252 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
d9898ee8 | 11259 | |
d9898ee8 | 11260 | |
d9898ee8 | 11261 | |
d9898ee8 | 11262 | |
d9898ee8 | 11263 | |
d9898ee8 | 11264 | |
d9898ee8 | 11265 | |
d9898ee8 | 11266 | |
d9898ee8 | 11267 | |
d9898ee8 | 11268 | |
d9898ee8 | 11269 | |
d9898ee8 | 11270 | |
d9898ee8 | 11271 | |
d9898ee8 | 11272 | |
d9898ee8 | 11273 | |
d9898ee8 | 11274 | |
d9898ee8 | 11275 | |
d9898ee8 | 11276 | |
d9898ee8 | 11277 | |
d9898ee8 | 11278 | |
d9898ee8 | 11279 | |
d9898ee8 | 11280 | |
d9898ee8 | 11281 | |
d9898ee8 | 11282 | |
d9898ee8 | 11283 | |
d9898ee8 | 11284 | |
d9898ee8 | 11285 | |
d9898ee8 | 11286 | |
d9898ee8 | 11287 | |
d9898ee8 | 11288 | |
d9898ee8 | 11289 | |
d9898ee8 | 11290 | |
d9898ee8 | 11291 | |
d9898ee8 | 11292 | |
d9898ee8 | 11293 | |
d9898ee8 | 11294 | |
d9898ee8 | 11295 | |
d9898ee8 | 11296 | |
d9898ee8 | 11297 | |
d9898ee8 | 11298 | |
d9898ee8 | 11299 | |
d9898ee8 | 11300 | |
d9898ee8 | 11301 | |
d9898ee8 | 11302 | |
d9898ee8 | 11303 | |
d9898ee8 | 11304 | |
d9898ee8 | 11305 | |
d9898ee8 | 11306 | |
d9898ee8 | 11307 | |
d9898ee8 | 11308 | |
d9898ee8 | 11309 | |
d9898ee8 | 11310 | |
d9898ee8 | 11311 | |
d9898ee8 | 11312 | |
d9898ee8 | 11313 | |
d9898ee8 | 11314 | |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
d9898ee8 | 11317 | |
d9898ee8 | 11318 | |
d9898ee8 | 11319 | |
d9898ee8 | 11320 | |
d9898ee8 | 11321 | |
d9898ee8 | 11322 | |
d9898ee8 | 11323 | |
d9898ee8 | 11324 | |
d9898ee8 | 11325 | |
d9898ee8 | 11326 | |
d9898ee8 | 11327 | |
d9898ee8 | 11328 | |
d9898ee8 | 11329 | |
d9898ee8 | 11330 | |
d9898ee8 | 11331 | |
d9898ee8 | 11332 | |
d9898ee8 | 11333 | |
d9898ee8 | 11334 | |
d9898ee8 | 11335 | |
d9898ee8 | 11336 | |
d9898ee8 | 11337 | |
d9898ee8 | 11338 | |
d9898ee8 | 11339 | |
d9898ee8 | 11340 | |
d9898ee8 | 11341 | |
d9898ee8 | 11342 | |
d9898ee8 | 11343 | |
d9898ee8 | 11344 | |
b0322a85 CE |
11345 | |
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11351 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11352 | hardcode_action= | |
11353 | if test -n "$hardcode_libdir_flag_spec" || | |
11354 | test -n "$runpath_var" || | |
d50284c4 | 11355 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 11356 | |
8d138742 | 11357 | # We can hardcode non-existent directories. |
d50284c4 | 11358 | if test no != "$hardcode_direct" && |
8d138742 CE |
11359 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11360 | # have to relink, otherwise we might link with an installed library | |
11361 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11362 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11363 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
11364 | # Linking always hardcodes the temporary library directory. |
11365 | hardcode_action=relink | |
11366 | else | |
11367 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11368 | hardcode_action=immediate | |
11369 | fi | |
11370 | else | |
11371 | # We cannot hardcode anything, or else we can only hardcode existing | |
11372 | # directories. | |
11373 | hardcode_action=unsupported | |
11374 | fi | |
b0322a85 | 11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11376 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11377 | |
d50284c4 CE |
11378 | if test relink = "$hardcode_action" || |
11379 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
11380 | # Fast installation is not supported |
11381 | enable_fast_install=no | |
d50284c4 CE |
11382 | elif test yes = "$shlibpath_overrides_runpath" || |
11383 | test no = "$enable_shared"; then | |
8d138742 CE |
11384 | # Fast installation is not necessary |
11385 | enable_fast_install=needless | |
11386 | fi | |
d9898ee8 | 11387 | |
d9898ee8 | 11388 | |
d9898ee8 | 11389 | |
d9898ee8 | 11390 | |
d9898ee8 | 11391 | |
d9898ee8 | 11392 | |
d50284c4 | 11393 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11394 | enable_dlopen=unknown |
11395 | enable_dlopen_self=unknown | |
11396 | enable_dlopen_self_static=unknown | |
11397 | else | |
11398 | lt_cv_dlopen=no | |
11399 | lt_cv_dlopen_libs= | |
d9898ee8 | 11400 | |
8d138742 CE |
11401 | case $host_os in |
11402 | beos*) | |
d50284c4 | 11403 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11404 | lt_cv_dlopen_libs= |
11405 | lt_cv_dlopen_self=yes | |
11406 | ;; | |
d9898ee8 | 11407 | |
8d138742 | 11408 | mingw* | pw32* | cegcc*) |
d50284c4 | 11409 | lt_cv_dlopen=LoadLibrary |
8d138742 | 11410 | lt_cv_dlopen_libs= |
b0322a85 | 11411 | ;; |
d9898ee8 | 11412 | |
b0322a85 | 11413 | cygwin*) |
d50284c4 | 11414 | lt_cv_dlopen=dlopen |
b0322a85 | 11415 | lt_cv_dlopen_libs= |
8d138742 | 11416 | ;; |
d9898ee8 | 11417 | |
b0322a85 | 11418 | darwin*) |
d50284c4 | 11419 | # if libdl is installed we need to link against it |
b0322a85 CE |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11421 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11422 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8d138742 CE |
11423 | $as_echo_n "(cached) " >&6 |
11424 | else | |
b0322a85 CE |
11425 | ac_check_lib_save_LIBS=$LIBS |
11426 | LIBS="-ldl $LIBS" | |
11427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 11428 | /* end confdefs.h. */ |
d9898ee8 | 11429 | |
8d138742 CE |
11430 | /* Override any GCC internal prototype to avoid an error. |
11431 | Use char because int might match the return type of a GCC | |
11432 | builtin and then its argument prototype would still apply. */ | |
11433 | #ifdef __cplusplus | |
11434 | extern "C" | |
11435 | #endif | |
b0322a85 | 11436 | char dlopen (); |
8d138742 CE |
11437 | int |
11438 | main () | |
11439 | { | |
b0322a85 | 11440 | return dlopen (); |
8d138742 CE |
11441 | ; |
11442 | return 0; | |
11443 | } | |
11444 | _ACEOF | |
b0322a85 CE |
11445 | if ac_fn_c_try_link "$LINENO"; then : |
11446 | ac_cv_lib_dl_dlopen=yes | |
8d138742 | 11447 | else |
b0322a85 CE |
11448 | ac_cv_lib_dl_dlopen=no |
11449 | fi | |
11450 | rm -f core conftest.err conftest.$ac_objext \ | |
11451 | conftest$ac_exeext conftest.$ac_ext | |
11452 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 11453 | fi |
b0322a85 CE |
11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11455 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11456 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 11457 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
b0322a85 CE |
11458 | else |
11459 | ||
d50284c4 | 11460 | lt_cv_dlopen=dyld |
b0322a85 CE |
11461 | lt_cv_dlopen_libs= |
11462 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11463 | |
8d138742 | 11464 | fi |
b0322a85 CE |
11465 | |
11466 | ;; | |
11467 | ||
d50284c4 CE |
11468 | tpf*) |
11469 | # Don't try to run any link tests for TPF. We know it's impossible | |
11470 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11471 | lt_cv_dlopen=dlopen | |
11472 | lt_cv_dlopen_libs= | |
11473 | lt_cv_dlopen_self=no | |
11474 | ;; | |
11475 | ||
b0322a85 CE |
11476 | *) |
11477 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11478 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11479 | lt_cv_dlopen=shl_load |
8d138742 | 11480 | else |
b0322a85 | 11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11482 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11483 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11484 | $as_echo_n "(cached) " >&6 |
11485 | else | |
11486 | ac_check_lib_save_LIBS=$LIBS | |
11487 | LIBS="-ldld $LIBS" | |
b0322a85 | 11488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11489 | /* end confdefs.h. */ |
d9898ee8 | 11490 | |
8d138742 CE |
11491 | /* Override any GCC internal prototype to avoid an error. |
11492 | Use char because int might match the return type of a GCC | |
11493 | builtin and then its argument prototype would still apply. */ | |
11494 | #ifdef __cplusplus | |
11495 | extern "C" | |
11496 | #endif | |
11497 | char shl_load (); | |
11498 | int | |
11499 | main () | |
11500 | { | |
11501 | return shl_load (); | |
11502 | ; | |
11503 | return 0; | |
11504 | } | |
11505 | _ACEOF | |
b0322a85 | 11506 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11507 | ac_cv_lib_dld_shl_load=yes |
11508 | else | |
b0322a85 | 11509 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11510 | fi |
b0322a85 CE |
11511 | rm -f core conftest.err conftest.$ac_objext \ |
11512 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11513 | LIBS=$ac_check_lib_save_LIBS |
11514 | fi | |
b0322a85 | 11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 11516 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 11517 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 11518 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 11519 | else |
b0322a85 CE |
11520 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11521 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11522 | lt_cv_dlopen=dlopen |
8d138742 | 11523 | else |
b0322a85 | 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11525 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11526 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11527 | $as_echo_n "(cached) " >&6 |
11528 | else | |
11529 | ac_check_lib_save_LIBS=$LIBS | |
11530 | LIBS="-ldl $LIBS" | |
b0322a85 | 11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11532 | /* end confdefs.h. */ |
d9898ee8 | 11533 | |
8d138742 CE |
11534 | /* Override any GCC internal prototype to avoid an error. |
11535 | Use char because int might match the return type of a GCC | |
11536 | builtin and then its argument prototype would still apply. */ | |
11537 | #ifdef __cplusplus | |
11538 | extern "C" | |
11539 | #endif | |
11540 | char dlopen (); | |
11541 | int | |
11542 | main () | |
11543 | { | |
11544 | return dlopen (); | |
11545 | ; | |
11546 | return 0; | |
11547 | } | |
11548 | _ACEOF | |
b0322a85 | 11549 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11550 | ac_cv_lib_dl_dlopen=yes |
11551 | else | |
b0322a85 | 11552 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11553 | fi |
b0322a85 CE |
11554 | rm -f core conftest.err conftest.$ac_objext \ |
11555 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11556 | LIBS=$ac_check_lib_save_LIBS |
11557 | fi | |
b0322a85 | 11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11559 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11560 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11561 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11562 | else |
b0322a85 | 11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11564 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11565 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11566 | $as_echo_n "(cached) " >&6 |
11567 | else | |
11568 | ac_check_lib_save_LIBS=$LIBS | |
11569 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11571 | /* end confdefs.h. */ |
d9898ee8 | 11572 | |
8d138742 CE |
11573 | /* Override any GCC internal prototype to avoid an error. |
11574 | Use char because int might match the return type of a GCC | |
11575 | builtin and then its argument prototype would still apply. */ | |
11576 | #ifdef __cplusplus | |
11577 | extern "C" | |
11578 | #endif | |
11579 | char dlopen (); | |
11580 | int | |
11581 | main () | |
11582 | { | |
11583 | return dlopen (); | |
11584 | ; | |
11585 | return 0; | |
11586 | } | |
11587 | _ACEOF | |
b0322a85 | 11588 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11589 | ac_cv_lib_svld_dlopen=yes |
11590 | else | |
b0322a85 | 11591 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11592 | fi |
b0322a85 CE |
11593 | rm -f core conftest.err conftest.$ac_objext \ |
11594 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11595 | LIBS=$ac_check_lib_save_LIBS |
11596 | fi | |
b0322a85 | 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11598 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11599 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11600 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11601 | else |
b0322a85 | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11603 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11604 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11605 | $as_echo_n "(cached) " >&6 |
11606 | else | |
11607 | ac_check_lib_save_LIBS=$LIBS | |
11608 | LIBS="-ldld $LIBS" | |
b0322a85 | 11609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11610 | /* end confdefs.h. */ |
d9898ee8 | 11611 | |
8d138742 CE |
11612 | /* Override any GCC internal prototype to avoid an error. |
11613 | Use char because int might match the return type of a GCC | |
11614 | builtin and then its argument prototype would still apply. */ | |
11615 | #ifdef __cplusplus | |
11616 | extern "C" | |
11617 | #endif | |
11618 | char dld_link (); | |
11619 | int | |
11620 | main () | |
11621 | { | |
11622 | return dld_link (); | |
11623 | ; | |
11624 | return 0; | |
11625 | } | |
11626 | _ACEOF | |
b0322a85 | 11627 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11628 | ac_cv_lib_dld_dld_link=yes |
11629 | else | |
b0322a85 | 11630 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11631 | fi |
b0322a85 CE |
11632 | rm -f core conftest.err conftest.$ac_objext \ |
11633 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11634 | LIBS=$ac_check_lib_save_LIBS |
11635 | fi | |
b0322a85 | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11637 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11638 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11639 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11640 | fi |
d9898ee8 | 11641 | |
d9898ee8 | 11642 | |
8d138742 | 11643 | fi |
d9898ee8 | 11644 | |
d9898ee8 | 11645 | |
8d138742 | 11646 | fi |
d9898ee8 | 11647 | |
ac40fd9e | 11648 | |
8d138742 | 11649 | fi |
d9898ee8 | 11650 | |
d9898ee8 | 11651 | |
8d138742 | 11652 | fi |
d9898ee8 | 11653 | |
d9898ee8 | 11654 | |
8d138742 | 11655 | fi |
d9898ee8 | 11656 | |
8d138742 CE |
11657 | ;; |
11658 | esac | |
d9898ee8 | 11659 | |
d50284c4 | 11660 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11661 | enable_dlopen=no |
d50284c4 CE |
11662 | else |
11663 | enable_dlopen=yes | |
d9898ee8 | 11664 | fi |
11665 | ||
8d138742 CE |
11666 | case $lt_cv_dlopen in |
11667 | dlopen) | |
d50284c4 CE |
11668 | save_CPPFLAGS=$CPPFLAGS |
11669 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11670 | |
d50284c4 | 11671 | save_LDFLAGS=$LDFLAGS |
8d138742 | 11672 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11673 | |
d50284c4 | 11674 | save_LIBS=$LIBS |
8d138742 | 11675 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11676 | |
b0322a85 | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11678 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11679 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 | 11680 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 11681 | else |
d50284c4 | 11682 | if test yes = "$cross_compiling"; then : |
8d138742 | 11683 | lt_cv_dlopen_self=cross |
d9898ee8 | 11684 | else |
8d138742 CE |
11685 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11686 | lt_status=$lt_dlunknown | |
11687 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11688 | #line $LINENO "configure" |
8d138742 | 11689 | #include "confdefs.h" |
d9898ee8 | 11690 | |
8d138742 CE |
11691 | #if HAVE_DLFCN_H |
11692 | #include <dlfcn.h> | |
11693 | #endif | |
d9898ee8 | 11694 | |
8d138742 | 11695 | #include <stdio.h> |
d9898ee8 | 11696 | |
8d138742 CE |
11697 | #ifdef RTLD_GLOBAL |
11698 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11699 | #else | |
11700 | # ifdef DL_GLOBAL | |
11701 | # define LT_DLGLOBAL DL_GLOBAL | |
11702 | # else | |
11703 | # define LT_DLGLOBAL 0 | |
11704 | # endif | |
11705 | #endif | |
d9898ee8 | 11706 | |
8d138742 CE |
11707 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11708 | find out it does not work in some platform. */ | |
11709 | #ifndef LT_DLLAZY_OR_NOW | |
11710 | # ifdef RTLD_LAZY | |
11711 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11712 | # else | |
11713 | # ifdef DL_LAZY | |
11714 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11715 | # else | |
11716 | # ifdef RTLD_NOW | |
11717 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11718 | # else | |
11719 | # ifdef DL_NOW | |
11720 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11721 | # else | |
11722 | # define LT_DLLAZY_OR_NOW 0 | |
11723 | # endif | |
11724 | # endif | |
11725 | # endif | |
11726 | # endif | |
11727 | #endif | |
d9898ee8 | 11728 | |
d50284c4 | 11729 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11730 | correspondingly for the symbols needed. */ |
d50284c4 | 11731 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11732 | int fnord () __attribute__((visibility("default"))); |
11733 | #endif | |
11734 | ||
11735 | int fnord () { return 42; } | |
8d138742 CE |
11736 | int main () |
11737 | { | |
11738 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11739 | int status = $lt_dlunknown; | |
11740 | ||
11741 | if (self) | |
11742 | { | |
11743 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11744 | else |
11745 | { | |
11746 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11747 | else puts (dlerror ()); | |
11748 | } | |
8d138742 CE |
11749 | /* dlclose (self); */ |
11750 | } | |
11751 | else | |
11752 | puts (dlerror ()); | |
d9898ee8 | 11753 | |
8d138742 CE |
11754 | return status; |
11755 | } | |
11756 | _LT_EOF | |
b0322a85 | 11757 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11758 | (eval $ac_link) 2>&5 |
11759 | ac_status=$? | |
b0322a85 | 11760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11761 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11762 | (./conftest; exit; ) >&5 2>/dev/null |
11763 | lt_status=$? | |
11764 | case x$lt_status in | |
11765 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11766 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11767 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11768 | esac | |
11769 | else : | |
11770 | # compilation failed | |
11771 | lt_cv_dlopen_self=no | |
11772 | fi | |
d9898ee8 | 11773 | fi |
8d138742 | 11774 | rm -fr conftest* |
d9898ee8 | 11775 | |
11776 | ||
d9898ee8 | 11777 | fi |
b0322a85 | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11779 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11780 | |
d50284c4 | 11781 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 11782 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11784 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11785 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
11786 | $as_echo_n "(cached) " >&6 |
11787 | else | |
d50284c4 | 11788 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11789 | lt_cv_dlopen_self_static=cross |
11790 | else | |
11791 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11792 | lt_status=$lt_dlunknown | |
11793 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11794 | #line $LINENO "configure" |
8d138742 | 11795 | #include "confdefs.h" |
d9898ee8 | 11796 | |
8d138742 CE |
11797 | #if HAVE_DLFCN_H |
11798 | #include <dlfcn.h> | |
11799 | #endif | |
d9898ee8 | 11800 | |
8d138742 | 11801 | #include <stdio.h> |
d9898ee8 | 11802 | |
8d138742 CE |
11803 | #ifdef RTLD_GLOBAL |
11804 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11805 | #else | |
11806 | # ifdef DL_GLOBAL | |
11807 | # define LT_DLGLOBAL DL_GLOBAL | |
11808 | # else | |
11809 | # define LT_DLGLOBAL 0 | |
11810 | # endif | |
11811 | #endif | |
d9898ee8 | 11812 | |
8d138742 CE |
11813 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11814 | find out it does not work in some platform. */ | |
11815 | #ifndef LT_DLLAZY_OR_NOW | |
11816 | # ifdef RTLD_LAZY | |
11817 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11818 | # else | |
11819 | # ifdef DL_LAZY | |
11820 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11821 | # else | |
11822 | # ifdef RTLD_NOW | |
11823 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11824 | # else | |
11825 | # ifdef DL_NOW | |
11826 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11827 | # else | |
11828 | # define LT_DLLAZY_OR_NOW 0 | |
11829 | # endif | |
11830 | # endif | |
11831 | # endif | |
11832 | # endif | |
11833 | #endif | |
11834 | ||
d50284c4 | 11835 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11836 | correspondingly for the symbols needed. */ |
d50284c4 | 11837 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11838 | int fnord () __attribute__((visibility("default"))); |
11839 | #endif | |
11840 | ||
11841 | int fnord () { return 42; } | |
8d138742 CE |
11842 | int main () |
11843 | { | |
11844 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11845 | int status = $lt_dlunknown; | |
11846 | ||
11847 | if (self) | |
11848 | { | |
11849 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11850 | else |
11851 | { | |
11852 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11853 | else puts (dlerror ()); | |
11854 | } | |
8d138742 CE |
11855 | /* dlclose (self); */ |
11856 | } | |
11857 | else | |
11858 | puts (dlerror ()); | |
11859 | ||
11860 | return status; | |
11861 | } | |
11862 | _LT_EOF | |
b0322a85 | 11863 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11864 | (eval $ac_link) 2>&5 |
11865 | ac_status=$? | |
b0322a85 | 11866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11867 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11868 | (./conftest; exit; ) >&5 2>/dev/null |
11869 | lt_status=$? | |
11870 | case x$lt_status in | |
11871 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11872 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11873 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
d9898ee8 | 11874 | esac |
8d138742 CE |
11875 | else : |
11876 | # compilation failed | |
11877 | lt_cv_dlopen_self_static=no | |
11878 | fi | |
11879 | fi | |
11880 | rm -fr conftest* | |
d9898ee8 | 11881 | |
d9898ee8 | 11882 | |
8d138742 | 11883 | fi |
b0322a85 | 11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11885 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11886 | fi | |
d9898ee8 | 11887 | |
d50284c4 CE |
11888 | CPPFLAGS=$save_CPPFLAGS |
11889 | LDFLAGS=$save_LDFLAGS | |
11890 | LIBS=$save_LIBS | |
8d138742 CE |
11891 | ;; |
11892 | esac | |
d9898ee8 | 11893 | |
8d138742 CE |
11894 | case $lt_cv_dlopen_self in |
11895 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11896 | *) enable_dlopen_self=unknown ;; | |
11897 | esac | |
d9898ee8 | 11898 | |
8d138742 CE |
11899 | case $lt_cv_dlopen_self_static in |
11900 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11901 | *) enable_dlopen_self_static=unknown ;; | |
11902 | esac | |
11903 | fi | |
d9898ee8 | 11904 | |
d9898ee8 | 11905 | |
d9898ee8 | 11906 | |
d9898ee8 | 11907 | |
d9898ee8 | 11908 | |
d9898ee8 | 11909 | |
d9898ee8 | 11910 | |
d9898ee8 | 11911 | |
d9898ee8 | 11912 | |
d9898ee8 | 11913 | |
d9898ee8 | 11914 | |
d9898ee8 | 11915 | |
d9898ee8 | 11916 | |
d9898ee8 | 11917 | |
8d138742 CE |
11918 | |
11919 | ||
11920 | ||
11921 | striplib= | |
11922 | old_striplib= | |
b0322a85 | 11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11924 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11925 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11926 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11927 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11929 | $as_echo "yes" >&6; } |
11930 | else | |
11931 | # FIXME - insert some real tests, host_os isn't really good enough | |
11932 | case $host_os in | |
11933 | darwin*) | |
d50284c4 | 11934 | if test -n "$STRIP"; then |
8d138742 CE |
11935 | striplib="$STRIP -x" |
11936 | old_striplib="$STRIP -S" | |
b0322a85 | 11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11938 | $as_echo "yes" >&6; } |
11939 | else | |
b0322a85 | 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 11941 | $as_echo "no" >&6; } |
d9898ee8 | 11942 | fi |
8d138742 CE |
11943 | ;; |
11944 | *) | |
b0322a85 | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11946 | $as_echo "no" >&6; } |
11947 | ;; | |
11948 | esac | |
11949 | fi | |
d9898ee8 | 11950 | |
d9898ee8 | 11951 | |
d9898ee8 | 11952 | |
d9898ee8 | 11953 | |
d9898ee8 | 11954 | |
d9898ee8 | 11955 | |
d9898ee8 | 11956 | |
d9898ee8 | 11957 | |
8d138742 CE |
11958 | |
11959 | ||
11960 | ||
11961 | ||
d50284c4 | 11962 | # Report what library types will actually be built |
b0322a85 | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11964 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 CE |
11966 | $as_echo "$can_build_shared" >&6; } |
11967 | ||
b0322a85 | 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 11969 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 11970 | test no = "$can_build_shared" && enable_shared=no |
8d138742 CE |
11971 | |
11972 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11973 | # are all built from PIC. | |
11974 | case $host_os in | |
11975 | aix3*) | |
d50284c4 | 11976 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
11977 | if test -n "$RANLIB"; then |
11978 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11979 | postinstall_cmds='$RANLIB $lib' | |
11980 | fi | |
11981 | ;; | |
11982 | ||
11983 | aix[4-9]*) | |
d50284c4 CE |
11984 | if test ia64 != "$host_cpu"; then |
11985 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
11986 | yes,aix,yes) ;; # shared object as lib.so file only | |
11987 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
11988 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
11989 | esac | |
8d138742 CE |
11990 | fi |
11991 | ;; | |
11992 | esac | |
b0322a85 | 11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 CE |
11994 | $as_echo "$enable_shared" >&6; } |
11995 | ||
b0322a85 | 11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11997 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11998 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 11999 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 CE |
12001 | $as_echo "$enable_static" >&6; } |
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | fi | |
12007 | ac_ext=c | |
12008 | ac_cpp='$CPP $CPPFLAGS' | |
12009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12012 | ||
d50284c4 | 12013 | CC=$lt_save_CC |
8d138742 CE |
12014 | |
12015 | ||
12016 | ||
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | ||
b0322a85 CE |
12023 | |
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ac_config_commands="$ac_config_commands libtool" | |
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | # Only expand once: | |
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h | |
12040 | do : | |
12041 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12042 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12043 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
12044 | cat >>confdefs.h <<_ACEOF |
12045 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12046 | _ACEOF | |
d9898ee8 | 12047 | |
8d138742 | 12048 | fi |
d9898ee8 | 12049 | |
8d138742 | 12050 | done |
d9898ee8 | 12051 | |
b0322a85 | 12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 12053 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 12054 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
12055 | $as_echo_n "(cached) " >&6 |
12056 | else | |
b0322a85 | 12057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12058 | /* end confdefs.h. */ |
12059 | #include <stdlib.h> | |
12060 | #include <stdarg.h> | |
12061 | #include <string.h> | |
12062 | #include <float.h> | |
d9898ee8 | 12063 | |
8d138742 CE |
12064 | int |
12065 | main () | |
12066 | { | |
d9898ee8 | 12067 | |
8d138742 CE |
12068 | ; |
12069 | return 0; | |
12070 | } | |
12071 | _ACEOF | |
b0322a85 | 12072 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12073 | ac_cv_header_stdc=yes |
12074 | else | |
b0322a85 | 12075 | ac_cv_header_stdc=no |
8d138742 | 12076 | fi |
8d138742 | 12077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12078 | |
8d138742 CE |
12079 | if test $ac_cv_header_stdc = yes; then |
12080 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 12081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12082 | /* end confdefs.h. */ |
12083 | #include <string.h> | |
d9898ee8 | 12084 | |
8d138742 CE |
12085 | _ACEOF |
12086 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12087 | $EGREP "memchr" >/dev/null 2>&1; then : |
12088 | ||
8d138742 CE |
12089 | else |
12090 | ac_cv_header_stdc=no | |
12091 | fi | |
12092 | rm -f conftest* | |
d9898ee8 | 12093 | |
8d138742 | 12094 | fi |
d9898ee8 | 12095 | |
8d138742 CE |
12096 | if test $ac_cv_header_stdc = yes; then |
12097 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 12098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12099 | /* end confdefs.h. */ |
12100 | #include <stdlib.h> | |
d9898ee8 | 12101 | |
8d138742 CE |
12102 | _ACEOF |
12103 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12104 | $EGREP "free" >/dev/null 2>&1; then : |
12105 | ||
8d138742 CE |
12106 | else |
12107 | ac_cv_header_stdc=no | |
12108 | fi | |
12109 | rm -f conftest* | |
d9898ee8 | 12110 | |
8d138742 | 12111 | fi |
d9898ee8 | 12112 | |
8d138742 CE |
12113 | if test $ac_cv_header_stdc = yes; then |
12114 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 12115 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12116 | : |
12117 | else | |
b0322a85 | 12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12119 | /* end confdefs.h. */ |
12120 | #include <ctype.h> | |
12121 | #include <stdlib.h> | |
12122 | #if ((' ' & 0x0FF) == 0x020) | |
12123 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12124 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12125 | #else | |
12126 | # define ISLOWER(c) \ | |
12127 | (('a' <= (c) && (c) <= 'i') \ | |
12128 | || ('j' <= (c) && (c) <= 'r') \ | |
12129 | || ('s' <= (c) && (c) <= 'z')) | |
12130 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12131 | #endif | |
d9898ee8 | 12132 | |
8d138742 CE |
12133 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12134 | int | |
12135 | main () | |
12136 | { | |
12137 | int i; | |
12138 | for (i = 0; i < 256; i++) | |
12139 | if (XOR (islower (i), ISLOWER (i)) | |
12140 | || toupper (i) != TOUPPER (i)) | |
12141 | return 2; | |
12142 | return 0; | |
12143 | } | |
12144 | _ACEOF | |
b0322a85 | 12145 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12146 | |
b0322a85 CE |
12147 | else |
12148 | ac_cv_header_stdc=no | |
8d138742 | 12149 | fi |
b0322a85 CE |
12150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12151 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 12152 | fi |
d9898ee8 | 12153 | |
8d138742 CE |
12154 | fi |
12155 | fi | |
b0322a85 | 12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
12157 | $as_echo "$ac_cv_header_stdc" >&6; } |
12158 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 12159 | |
b0322a85 | 12160 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 12161 | |
8d138742 | 12162 | fi |
d9898ee8 | 12163 | |
b0322a85 | 12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
8d138742 | 12165 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
b0322a85 | 12166 | if ${ac_cv_header_sys_wait_h+:} false; then : |
8d138742 CE |
12167 | $as_echo_n "(cached) " >&6 |
12168 | else | |
b0322a85 | 12169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12170 | /* end confdefs.h. */ |
12171 | #include <sys/types.h> | |
12172 | #include <sys/wait.h> | |
12173 | #ifndef WEXITSTATUS | |
12174 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
12175 | #endif | |
12176 | #ifndef WIFEXITED | |
12177 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
12178 | #endif | |
d9898ee8 | 12179 | |
8d138742 CE |
12180 | int |
12181 | main () | |
12182 | { | |
12183 | int s; | |
12184 | wait (&s); | |
12185 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
12186 | ; | |
12187 | return 0; | |
12188 | } | |
12189 | _ACEOF | |
b0322a85 | 12190 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12191 | ac_cv_header_sys_wait_h=yes |
12192 | else | |
b0322a85 | 12193 | ac_cv_header_sys_wait_h=no |
8d138742 | 12194 | fi |
8d138742 CE |
12195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12196 | fi | |
b0322a85 | 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
8d138742 CE |
12198 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
12199 | if test $ac_cv_header_sys_wait_h = yes; then | |
d9898ee8 | 12200 | |
b0322a85 | 12201 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
d9898ee8 | 12202 | |
8d138742 | 12203 | fi |
d9898ee8 | 12204 | |
d9898ee8 | 12205 | |
d9898ee8 | 12206 | |
b0322a85 | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 12208 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 12209 | if ${ac_cv_c_const+:} false; then : |
8d138742 CE |
12210 | $as_echo_n "(cached) " >&6 |
12211 | else | |
b0322a85 | 12212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12213 | /* end confdefs.h. */ |
d9898ee8 | 12214 | |
8d138742 CE |
12215 | int |
12216 | main () | |
12217 | { | |
b0322a85 | 12218 | |
8d138742 | 12219 | #ifndef __cplusplus |
b0322a85 | 12220 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 12221 | typedef int charset[2]; |
b0322a85 | 12222 | const charset cs = { 0, 0 }; |
8d138742 CE |
12223 | /* SunOS 4.1.1 cc rejects this. */ |
12224 | char const *const *pcpcc; | |
12225 | char **ppc; | |
12226 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12227 | struct point {int x, y;}; | |
12228 | static struct point const zero = {0,0}; | |
12229 | /* AIX XL C 1.02.0.0 rejects this. | |
12230 | It does not let you subtract one const X* pointer from another in | |
12231 | an arm of an if-expression whose if-part is not a constant | |
12232 | expression */ | |
12233 | const char *g = "string"; | |
12234 | pcpcc = &g + (g ? g-g : 0); | |
12235 | /* HPUX 7.0 cc rejects these. */ | |
12236 | ++pcpcc; | |
12237 | ppc = (char**) pcpcc; | |
12238 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
12239 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
12240 | char tx; | |
12241 | char *t = &tx; | |
8d138742 | 12242 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
d9898ee8 | 12243 | |
8d138742 CE |
12244 | *t++ = 0; |
12245 | if (s) return 0; | |
12246 | } | |
12247 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12248 | int x[] = {25, 17}; | |
12249 | const int *foo = &x[0]; | |
12250 | ++foo; | |
12251 | } | |
12252 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12253 | typedef const int *iptr; | |
12254 | iptr p = 0; | |
12255 | ++p; | |
12256 | } | |
b0322a85 | 12257 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 12258 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
12259 | struct s { int j; const int *ap[3]; } bx; |
12260 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
12261 | } |
12262 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12263 | const int foo = 10; | |
12264 | if (!foo) return 0; | |
12265 | } | |
12266 | return !cs[0] && !zero.x; | |
12267 | #endif | |
d9898ee8 | 12268 | |
8d138742 CE |
12269 | ; |
12270 | return 0; | |
12271 | } | |
12272 | _ACEOF | |
b0322a85 | 12273 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12274 | ac_cv_c_const=yes |
12275 | else | |
b0322a85 | 12276 | ac_cv_c_const=no |
8d138742 | 12277 | fi |
8d138742 CE |
12278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12279 | fi | |
b0322a85 | 12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
12281 | $as_echo "$ac_cv_c_const" >&6; } |
12282 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 12283 | |
b0322a85 | 12284 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 12285 | |
8d138742 | 12286 | fi |
d9898ee8 | 12287 | |
b0322a85 CE |
12288 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
12289 | if test "x$ac_cv_type_off_t" = xyes; then : | |
12290 | ||
d9898ee8 | 12291 | else |
b0322a85 CE |
12292 | |
12293 | cat >>confdefs.h <<_ACEOF | |
12294 | #define off_t long int | |
8d138742 | 12295 | _ACEOF |
b0322a85 CE |
12296 | |
12297 | fi | |
12298 | ||
12299 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
12300 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
12301 | ||
12302 | else | |
12303 | ||
12304 | cat >>confdefs.h <<_ACEOF | |
12305 | #define pid_t int | |
8d138742 | 12306 | _ACEOF |
b0322a85 CE |
12307 | |
12308 | fi | |
12309 | ||
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
12311 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
12312 | if ${ac_cv_type_signal+:} false; then : | |
12313 | $as_echo_n "(cached) " >&6 | |
12314 | else | |
12315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12316 | /* end confdefs.h. */ |
b0322a85 CE |
12317 | #include <sys/types.h> |
12318 | #include <signal.h> | |
12319 | ||
8d138742 CE |
12320 | int |
12321 | main () | |
12322 | { | |
b0322a85 | 12323 | return *(signal (0, 0)) (0) == 1; |
8d138742 CE |
12324 | ; |
12325 | return 0; | |
12326 | } | |
12327 | _ACEOF | |
b0322a85 CE |
12328 | if ac_fn_c_try_compile "$LINENO"; then : |
12329 | ac_cv_type_signal=int | |
8d138742 | 12330 | else |
b0322a85 | 12331 | ac_cv_type_signal=void |
8d138742 | 12332 | fi |
8d138742 CE |
12333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12334 | fi | |
b0322a85 CE |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
12336 | $as_echo "$ac_cv_type_signal" >&6; } | |
d9898ee8 | 12337 | |
8d138742 | 12338 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12339 | #define RETSIGTYPE $ac_cv_type_signal |
8d138742 | 12340 | _ACEOF |
d9898ee8 | 12341 | |
b0322a85 CE |
12342 | |
12343 | # Check whether --enable-largefile was given. | |
12344 | if test "${enable_largefile+set}" = set; then : | |
12345 | enableval=$enable_largefile; | |
8d138742 | 12346 | fi |
d9898ee8 | 12347 | |
b0322a85 CE |
12348 | if test "$enable_largefile" != no; then |
12349 | ||
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12351 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12352 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8d138742 CE |
12353 | $as_echo_n "(cached) " >&6 |
12354 | else | |
b0322a85 CE |
12355 | ac_cv_sys_largefile_CC=no |
12356 | if test "$GCC" != yes; then | |
12357 | ac_save_CC=$CC | |
12358 | while :; do | |
12359 | # IRIX 6.2 and later do not support large files by default, | |
12360 | # so use the C compiler's -n32 option if that helps. | |
12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12362 | /* end confdefs.h. */ |
b0322a85 CE |
12363 | #include <sys/types.h> |
12364 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12365 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12366 | since some C++ compilers masquerading as C compilers | |
12367 | incorrectly reject 9223372036854775807. */ | |
12368 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12369 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12370 | && LARGE_OFF_T % 2147483647 == 1) | |
12371 | ? 1 : -1]; | |
8d138742 CE |
12372 | int |
12373 | main () | |
12374 | { | |
b0322a85 | 12375 | |
8d138742 CE |
12376 | ; |
12377 | return 0; | |
12378 | } | |
12379 | _ACEOF | |
b0322a85 CE |
12380 | if ac_fn_c_try_compile "$LINENO"; then : |
12381 | break | |
12382 | fi | |
12383 | rm -f core conftest.err conftest.$ac_objext | |
12384 | CC="$CC -n32" | |
12385 | if ac_fn_c_try_compile "$LINENO"; then : | |
12386 | ac_cv_sys_largefile_CC=' -n32'; break | |
12387 | fi | |
12388 | rm -f core conftest.err conftest.$ac_objext | |
12389 | break | |
12390 | done | |
12391 | CC=$ac_save_CC | |
12392 | rm -f conftest.$ac_ext | |
12393 | fi | |
12394 | fi | |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12396 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12397 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12398 | CC=$CC$ac_cv_sys_largefile_CC | |
12399 | fi | |
12400 | ||
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
12402 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12403 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
12404 | $as_echo_n "(cached) " >&6 | |
12405 | else | |
12406 | while :; do | |
12407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12408 | /* end confdefs.h. */ |
b0322a85 CE |
12409 | #include <sys/types.h> |
12410 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12411 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12412 | since some C++ compilers masquerading as C compilers | |
12413 | incorrectly reject 9223372036854775807. */ | |
12414 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12415 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12416 | && LARGE_OFF_T % 2147483647 == 1) | |
12417 | ? 1 : -1]; | |
8d138742 CE |
12418 | int |
12419 | main () | |
12420 | { | |
b0322a85 | 12421 | |
8d138742 CE |
12422 | ; |
12423 | return 0; | |
12424 | } | |
12425 | _ACEOF | |
b0322a85 CE |
12426 | if ac_fn_c_try_compile "$LINENO"; then : |
12427 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 12428 | fi |
8d138742 | 12429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12431 | /* end confdefs.h. */ | |
12432 | #define _FILE_OFFSET_BITS 64 | |
12433 | #include <sys/types.h> | |
12434 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12435 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12436 | since some C++ compilers masquerading as C compilers | |
12437 | incorrectly reject 9223372036854775807. */ | |
12438 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12439 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12440 | && LARGE_OFF_T % 2147483647 == 1) | |
12441 | ? 1 : -1]; | |
12442 | int | |
12443 | main () | |
12444 | { | |
d9898ee8 | 12445 | |
b0322a85 CE |
12446 | ; |
12447 | return 0; | |
12448 | } | |
12449 | _ACEOF | |
12450 | if ac_fn_c_try_compile "$LINENO"; then : | |
12451 | ac_cv_sys_file_offset_bits=64; break | |
8d138742 | 12452 | fi |
8d138742 | 12453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12454 | ac_cv_sys_file_offset_bits=unknown |
12455 | break | |
12456 | done | |
8d138742 | 12457 | fi |
b0322a85 CE |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
12459 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12460 | case $ac_cv_sys_file_offset_bits in #( | |
12461 | no | unknown) ;; | |
12462 | *) | |
8d138742 | 12463 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12464 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
8d138742 | 12465 | _ACEOF |
b0322a85 CE |
12466 | ;; |
12467 | esac | |
12468 | rm -rf conftest* | |
12469 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12471 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12472 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 CE |
12473 | $as_echo_n "(cached) " >&6 |
12474 | else | |
b0322a85 CE |
12475 | while :; do |
12476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
12477 | /* end confdefs.h. */ |
12478 | #include <sys/types.h> | |
b0322a85 CE |
12479 | /* Check that off_t can represent 2**63 - 1 correctly. |
12480 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12481 | since some C++ compilers masquerading as C compilers | |
12482 | incorrectly reject 9223372036854775807. */ | |
12483 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12484 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12485 | && LARGE_OFF_T % 2147483647 == 1) | |
12486 | ? 1 : -1]; | |
12487 | int | |
12488 | main () | |
12489 | { | |
d9898ee8 | 12490 | |
b0322a85 CE |
12491 | ; |
12492 | return 0; | |
12493 | } | |
12494 | _ACEOF | |
12495 | if ac_fn_c_try_compile "$LINENO"; then : | |
12496 | ac_cv_sys_large_files=no; break | |
12497 | fi | |
12498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12500 | /* end confdefs.h. */ | |
12501 | #define _LARGE_FILES 1 | |
12502 | #include <sys/types.h> | |
12503 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12504 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12505 | since some C++ compilers masquerading as C compilers | |
12506 | incorrectly reject 9223372036854775807. */ | |
12507 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12508 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12509 | && LARGE_OFF_T % 2147483647 == 1) | |
12510 | ? 1 : -1]; | |
8d138742 CE |
12511 | int |
12512 | main () | |
12513 | { | |
b0322a85 | 12514 | |
8d138742 CE |
12515 | ; |
12516 | return 0; | |
12517 | } | |
12518 | _ACEOF | |
b0322a85 CE |
12519 | if ac_fn_c_try_compile "$LINENO"; then : |
12520 | ac_cv_sys_large_files=1; break | |
8d138742 | 12521 | fi |
8d138742 | 12522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12523 | ac_cv_sys_large_files=unknown |
12524 | break | |
12525 | done | |
8d138742 | 12526 | fi |
b0322a85 CE |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
12528 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12529 | case $ac_cv_sys_large_files in #( | |
12530 | no | unknown) ;; | |
12531 | *) | |
8d138742 | 12532 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12533 | #define _LARGE_FILES $ac_cv_sys_large_files |
8d138742 | 12534 | _ACEOF |
b0322a85 CE |
12535 | ;; |
12536 | esac | |
12537 | rm -rf conftest* | |
12538 | fi | |
12539 | ||
d9898ee8 | 12540 | |
b0322a85 | 12541 | fi |
d9898ee8 | 12542 | |
d9898ee8 | 12543 | |
b0322a85 | 12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 |
8d138742 | 12545 | $as_echo_n "checking for off64_t... " >&6; } |
b0322a85 | 12546 | if ${liblock_cv_hasoff64t+:} false; then : |
8d138742 CE |
12547 | $as_echo_n "(cached) " >&6 |
12548 | else | |
12549 | liblock_cv_hasoff64t="no" | |
b0322a85 | 12550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12551 | /* end confdefs.h. */ |
d9898ee8 | 12552 | |
8d138742 | 12553 | #include <sys/types.h> |
d9898ee8 | 12554 | |
8d138742 CE |
12555 | int |
12556 | main () | |
12557 | { | |
d9898ee8 | 12558 | |
8d138742 | 12559 | off64_t n; |
d9898ee8 | 12560 | |
8d138742 | 12561 | n=0; |
d9898ee8 | 12562 | |
8d138742 CE |
12563 | ; |
12564 | return 0; | |
12565 | } | |
12566 | _ACEOF | |
b0322a85 | 12567 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 12568 | liblock_cv_hasoff64t="yes" |
8d138742 | 12569 | fi |
8d138742 | 12570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12571 | |
d9898ee8 | 12572 | |
8d138742 | 12573 | fi |
b0322a85 | 12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5 |
8d138742 | 12575 | $as_echo "$liblock_cv_hasoff64t" >&6; } |
d9898ee8 | 12576 | |
8d138742 CE |
12577 | if test "$liblock_cv_hasoff64t" = "yes" |
12578 | then | |
12579 | LL_OFFSET_TYPE=off64_t | |
12580 | else | |
12581 | LL_OFFSET_TYPE=off_t | |
12582 | fi | |
d9898ee8 | 12583 | |
8d138742 CE |
12584 | cat >>confdefs.h <<_ACEOF |
12585 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12586 | _ACEOF | |
d9898ee8 | 12587 | |
12588 | ||
b0322a85 | 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5 |
8d138742 | 12590 | $as_echo_n "checking for flock_t... " >&6; } |
b0322a85 | 12591 | if ${liblock_cv_hasflock_t+:} false; then : |
8d138742 | 12592 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12593 | else |
8d138742 | 12594 | liblock_cv_hasflock_t="no" |
b0322a85 | 12595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12596 | /* end confdefs.h. */ |
d9898ee8 | 12597 | |
8d138742 CE |
12598 | #if HAVE_CONFIG_H |
12599 | #include "config.h" | |
12600 | #endif | |
12601 | #include <sys/types.h> | |
12602 | #if HAVE_FCNTL_H | |
12603 | #include <fcntl.h> | |
12604 | #endif | |
12605 | #if HAVE_SYS_FCNTL_H | |
12606 | #include <sys/fcntl.h> | |
12607 | #endif | |
d9898ee8 | 12608 | |
8d138742 CE |
12609 | int |
12610 | main () | |
12611 | { | |
d9898ee8 | 12612 | |
8d138742 | 12613 | flock_t t; |
d9898ee8 | 12614 | |
8d138742 CE |
12615 | ; |
12616 | return 0; | |
12617 | } | |
12618 | _ACEOF | |
b0322a85 | 12619 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 12620 | liblock_cv_hasflock_t="yes" |
8d138742 | 12621 | fi |
8d138742 | 12622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12623 | fi |
b0322a85 | 12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5 |
8d138742 | 12625 | $as_echo "$liblock_cv_hasflock_t" >&6; } |
d9898ee8 | 12626 | |
8d138742 CE |
12627 | if test "$liblock_cv_hasflock_t" = "yes" |
12628 | then | |
12629 | ||
12630 | cat >>confdefs.h <<_ACEOF | |
12631 | #define HAS_FLOCK_T 1 | |
12632 | _ACEOF | |
d9898ee8 | 12633 | |
8d138742 | 12634 | fi |
d9898ee8 | 12635 | |
d9898ee8 | 12636 | |
8d138742 | 12637 | for ac_func in getdtablesize setpgrp sysconf |
b0322a85 CE |
12638 | do : |
12639 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12640 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12641 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 CE |
12642 | cat >>confdefs.h <<_ACEOF |
12643 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12644 | _ACEOF | |
d9898ee8 | 12645 | |
8d138742 CE |
12646 | fi |
12647 | done | |
d9898ee8 | 12648 | |
b0322a85 CE |
12649 | ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
12650 | if test "x$ac_cv_func_setpgrp" = xyes; then : | |
d9898ee8 | 12651 | |
b0322a85 | 12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 |
8d138742 | 12653 | $as_echo_n "checking whether setpgrp takes no argument... " >&6; } |
b0322a85 | 12654 | if ${ac_cv_func_setpgrp_void+:} false; then : |
8d138742 CE |
12655 | $as_echo_n "(cached) " >&6 |
12656 | else | |
b0322a85 CE |
12657 | if test "$cross_compiling" = yes; then : |
12658 | as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 | |
8d138742 | 12659 | else |
b0322a85 | 12660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12661 | /* end confdefs.h. */ |
12662 | $ac_includes_default | |
12663 | int | |
12664 | main () | |
12665 | { | |
12666 | /* If this system has a BSD-style setpgrp which takes arguments, | |
12667 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
12668 | exit successfully. */ | |
12669 | return setpgrp (1,1) != -1; | |
12670 | ; | |
12671 | return 0; | |
12672 | } | |
12673 | _ACEOF | |
b0322a85 | 12674 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 CE |
12675 | ac_cv_func_setpgrp_void=no |
12676 | else | |
b0322a85 | 12677 | ac_cv_func_setpgrp_void=yes |
8d138742 | 12678 | fi |
b0322a85 CE |
12679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12680 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 12681 | fi |
d9898ee8 | 12682 | |
8d138742 | 12683 | fi |
b0322a85 | 12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 |
8d138742 CE |
12685 | $as_echo "$ac_cv_func_setpgrp_void" >&6; } |
12686 | if test $ac_cv_func_setpgrp_void = yes; then | |
d9898ee8 | 12687 | |
b0322a85 | 12688 | $as_echo "#define SETPGRP_VOID 1" >>confdefs.h |
d9898ee8 | 12689 | |
8d138742 | 12690 | fi |
d9898ee8 | 12691 | |
12692 | ||
12693 | ||
8d138742 | 12694 | fi |
d9898ee8 | 12695 | |
12696 | ||
b0322a85 | 12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5 |
8d138742 | 12698 | $as_echo_n "checking for fcntl... " >&6; } |
b0322a85 | 12699 | if ${liblock_cv_hasfcntl+:} false; then : |
8d138742 | 12700 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12701 | else |
8d138742 | 12702 | liblock_cv_hasfcntl="no" |
b0322a85 | 12703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12704 | /* end confdefs.h. */ |
8d138742 CE |
12705 | |
12706 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12707 | #include "${srcdir}/lockfcntl.c" | |
12708 | ||
12709 | int | |
12710 | main () | |
12711 | { | |
12712 | ||
12713 | int n; | |
12714 | ||
12715 | ; | |
12716 | return 0; | |
12717 | } | |
d9898ee8 | 12718 | _ACEOF |
b0322a85 | 12719 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 12720 | liblock_cv_hasfcntl="yes" |
d9898ee8 | 12721 | fi |
b0322a85 CE |
12722 | rm -f core conftest.err conftest.$ac_objext \ |
12723 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 12724 | fi |
b0322a85 | 12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5 |
8d138742 CE |
12726 | $as_echo "$liblock_cv_hasfcntl" >&6; } |
12727 | if test "$liblock_cv_hasfcntl" = "yes" | |
12728 | then | |
d9898ee8 | 12729 | |
8d138742 CE |
12730 | cat >>confdefs.h <<_ACEOF |
12731 | #define HAS_FCNTL 1 | |
12732 | _ACEOF | |
12733 | ||
12734 | fi | |
12735 | ||
b0322a85 | 12736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 |
8d138742 | 12737 | $as_echo_n "checking for flock... " >&6; } |
b0322a85 | 12738 | if ${liblock_cv_hasflock+:} false; then : |
8d138742 CE |
12739 | $as_echo_n "(cached) " >&6 |
12740 | else | |
12741 | liblock_cv_hasflock="no" | |
b0322a85 | 12742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12743 | /* end confdefs.h. */ |
8d138742 CE |
12744 | |
12745 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12746 | #include "${srcdir}/lockflock.c" | |
12747 | ||
12748 | int | |
12749 | main () | |
12750 | { | |
12751 | ||
12752 | int n; | |
12753 | ||
12754 | ; | |
12755 | return 0; | |
12756 | } | |
d9898ee8 | 12757 | _ACEOF |
b0322a85 | 12758 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 12759 | liblock_cv_hasflock="yes" |
d9898ee8 | 12760 | fi |
b0322a85 CE |
12761 | rm -f core conftest.err conftest.$ac_objext \ |
12762 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 12763 | fi |
b0322a85 | 12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5 |
8d138742 CE |
12765 | $as_echo "$liblock_cv_hasflock" >&6; } |
12766 | if test "$liblock_cv_hasflock" = "yes" | |
12767 | then | |
12768 | ||
12769 | cat >>confdefs.h <<_ACEOF | |
12770 | #define HAS_FLOCK 1 | |
d9898ee8 | 12771 | _ACEOF |
12772 | ||
12773 | fi | |
12774 | ||
b0322a85 | 12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 |
8d138742 | 12776 | $as_echo_n "checking for lockf... " >&6; } |
b0322a85 | 12777 | if ${liblock_cv_haslockf+:} false; then : |
8d138742 | 12778 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12779 | else |
8d138742 | 12780 | liblock_cv_haslockf="no" |
b0322a85 | 12781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12782 | /* end confdefs.h. */ |
8d138742 CE |
12783 | |
12784 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12785 | #include "${srcdir}/locklockf.c" | |
d9898ee8 | 12786 | |
12787 | int | |
12788 | main () | |
12789 | { | |
12790 | ||
8d138742 CE |
12791 | int n; |
12792 | ||
d9898ee8 | 12793 | ; |
12794 | return 0; | |
12795 | } | |
12796 | _ACEOF | |
b0322a85 | 12797 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 12798 | liblock_cv_haslockf="yes" |
d9898ee8 | 12799 | fi |
b0322a85 CE |
12800 | rm -f core conftest.err conftest.$ac_objext \ |
12801 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 12802 | fi |
b0322a85 | 12803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5 |
8d138742 CE |
12804 | $as_echo "$liblock_cv_haslockf" >&6; } |
12805 | if test "$liblock_cv_haslockf" = "yes" | |
12806 | then | |
d9898ee8 | 12807 | |
8d138742 CE |
12808 | cat >>confdefs.h <<_ACEOF |
12809 | #define HAS_LOCKF 1 | |
d9898ee8 | 12810 | _ACEOF |
d9898ee8 | 12811 | |
d9898ee8 | 12812 | fi |
d9898ee8 | 12813 | |
b0322a85 | 12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5 |
8d138742 CE |
12815 | $as_echo_n "checking for locking method... " >&6; } |
12816 | ||
12817 | # Check whether --with-locking-method was given. | |
b0322a85 | 12818 | if test "${with_locking_method+set}" = set; then : |
8d138742 CE |
12819 | withval=$with_locking_method; lockmethod="$withval" |
12820 | else | |
12821 | lockmethod="" | |
d9898ee8 | 12822 | fi |
12823 | ||
8d138742 CE |
12824 | |
12825 | case x$lockmethod in | |
12826 | xfcntl) | |
b0322a85 | 12827 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12828 | : |
12829 | ||
12830 | else | |
b0322a85 CE |
12831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12832 | /* end confdefs.h. */ | |
12833 | ||
12834 | #define USE_FCNTL 1 | |
12835 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12836 | #include "${srcdir}/locktest.c" | |
d9898ee8 | 12837 | |
b0322a85 CE |
12838 | _ACEOF |
12839 | if ac_fn_c_try_run "$LINENO"; then : | |
12840 | ||
12841 | else | |
12842 | as_fn_error $? "fcntl test failed." "$LINENO" 5 | |
8d138742 | 12843 | fi |
b0322a85 CE |
12844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12845 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12846 | fi |
12847 | ||
8d138742 CE |
12848 | ;; |
12849 | x) | |
b0322a85 CE |
12850 | if test "$cross_compiling" = yes; then : |
12851 | as_fn_error $? "--with-locking-method option required" "$LINENO" 5 | |
d9898ee8 | 12852 | else |
b0322a85 | 12853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12854 | /* end confdefs.h. */ |
12855 | ||
12856 | #define USE_FCNTL 1 | |
12857 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12858 | #include "${srcdir}/locktest.c" | |
12859 | ||
d9898ee8 | 12860 | _ACEOF |
b0322a85 | 12861 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 12862 | lockmethod=fcntl |
d9898ee8 | 12863 | fi |
b0322a85 CE |
12864 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12865 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12866 | fi |
dd184caf | 12867 | |
8d138742 CE |
12868 | ;; |
12869 | esac | |
d9898ee8 | 12870 | |
8d138742 CE |
12871 | case x$lockmethod in |
12872 | xlockf) | |
b0322a85 | 12873 | if test "$cross_compiling" = yes; then : |
8d138742 | 12874 | : |
d9898ee8 | 12875 | |
d9898ee8 | 12876 | else |
b0322a85 | 12877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12878 | /* end confdefs.h. */ |
d9898ee8 | 12879 | |
8d138742 CE |
12880 | #define USE_LOCKF 1 |
12881 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12882 | #include "${srcdir}/locktest.c" | |
12883 | ||
d9898ee8 | 12884 | _ACEOF |
b0322a85 | 12885 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12886 | |
b0322a85 CE |
12887 | else |
12888 | as_fn_error $? "lockf test failed." "$LINENO" 5 | |
d9898ee8 | 12889 | fi |
b0322a85 CE |
12890 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12891 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12892 | fi |
12893 | ||
8d138742 CE |
12894 | ;; |
12895 | x) | |
b0322a85 CE |
12896 | if test "$cross_compiling" = yes; then : |
12897 | as_fn_error $? "--with-locking-method option required" "$LINENO" 5 | |
d9898ee8 | 12898 | else |
b0322a85 | 12899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12900 | /* end confdefs.h. */ |
12901 | ||
8d138742 CE |
12902 | #define USE_LOCKF 1 |
12903 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12904 | #include "${srcdir}/locktest.c" | |
d9898ee8 | 12905 | |
d9898ee8 | 12906 | _ACEOF |
b0322a85 | 12907 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 12908 | lockmethod=lockf |
d9898ee8 | 12909 | fi |
b0322a85 CE |
12910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12911 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12912 | fi |
d9898ee8 | 12913 | |
8d138742 CE |
12914 | ;; |
12915 | esac | |
12916 | ||
12917 | ||
12918 | case x$lockmethod in | |
12919 | xflock) | |
b0322a85 | 12920 | if test "$cross_compiling" = yes; then : |
8d138742 | 12921 | : |
d9898ee8 | 12922 | |
d9898ee8 | 12923 | else |
b0322a85 | 12924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12925 | /* end confdefs.h. */ |
8d138742 CE |
12926 | |
12927 | #define USE_FLOCK 1 | |
12928 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12929 | #include "${srcdir}/locktest.c" | |
12930 | ||
d9898ee8 | 12931 | _ACEOF |
b0322a85 | 12932 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12933 | |
b0322a85 CE |
12934 | else |
12935 | as_fn_error $? "flock test failed." "$LINENO" 5 | |
d9898ee8 | 12936 | fi |
b0322a85 CE |
12937 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12938 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12939 | fi |
d9898ee8 | 12940 | |
8d138742 CE |
12941 | ;; |
12942 | x) | |
b0322a85 CE |
12943 | if test "$cross_compiling" = yes; then : |
12944 | as_fn_error $? "--with-locking-method option required" "$LINENO" 5 | |
d9898ee8 | 12945 | else |
b0322a85 | 12946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12947 | /* end confdefs.h. */ |
d9898ee8 | 12948 | |
8d138742 CE |
12949 | #define USE_FLOCK 1 |
12950 | #define LL_OFFSET_TYPE $LL_OFFSET_TYPE | |
12951 | #include "${srcdir}/locktest.c" | |
12952 | ||
d9898ee8 | 12953 | _ACEOF |
b0322a85 | 12954 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 12955 | lockmethod=flock |
8d138742 | 12956 | fi |
b0322a85 CE |
12957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12958 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 12959 | fi |
dd184caf | 12960 | |
8d138742 CE |
12961 | ;; |
12962 | esac | |
12963 | ||
12964 | case x$lockmethod in | |
12965 | xlockf) | |
12966 | ;; | |
12967 | xflock) | |
12968 | ;; | |
12969 | xfcntl) | |
12970 | ;; | |
12971 | *) | |
b0322a85 | 12972 | as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5 |
8d138742 CE |
12973 | ;; |
12974 | esac | |
12975 | ||
b0322a85 | 12976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5 |
8d138742 CE |
12977 | $as_echo "$lockmethod" >&6; } |
12978 | ||
12979 | if test "$lockmethod" = "fcntl"; then | |
12980 | USE_FCNTL_TRUE= | |
12981 | USE_FCNTL_FALSE='#' | |
12982 | else | |
12983 | USE_FCNTL_TRUE='#' | |
12984 | USE_FCNTL_FALSE= | |
12985 | fi | |
12986 | ||
12987 | if test "$lockmethod" = "flock"; then | |
12988 | USE_FLOCK_TRUE= | |
12989 | USE_FLOCK_FALSE='#' | |
12990 | else | |
12991 | USE_FLOCK_TRUE='#' | |
12992 | USE_FLOCK_FALSE= | |
12993 | fi | |
12994 | ||
12995 | if test "$lockmethod" = "lockf"; then | |
12996 | USE_LOCKF_TRUE= | |
12997 | USE_LOCKF_FALSE='#' | |
12998 | else | |
12999 | USE_LOCKF_TRUE='#' | |
13000 | USE_LOCKF_FALSE= | |
13001 | fi | |
13002 | ||
13003 | ||
13004 | if test -d ${srcdir}/../docbook; then | |
13005 | HAVE_SGML_TRUE= | |
13006 | HAVE_SGML_FALSE='#' | |
13007 | else | |
13008 | HAVE_SGML_TRUE='#' | |
13009 | HAVE_SGML_FALSE= | |
d9898ee8 | 13010 | fi |
8d138742 CE |
13011 | |
13012 | ||
d9898ee8 | 13013 | |
13014 | cat >>confdefs.h <<_ACEOF | |
8d138742 CE |
13015 | #define liblock_config_h 1 |
13016 | _ACEOF | |
13017 | ||
13018 | ||
13019 | ac_config_files="$ac_config_files Makefile" | |
13020 | ||
13021 | cat >confcache <<\_ACEOF | |
13022 | # This file is a shell script that caches the results of configure | |
13023 | # tests run on this system so they can be shared between configure | |
13024 | # scripts and configure runs, see configure's option --config-cache. | |
13025 | # It is not useful on other systems. If it contains results you don't | |
13026 | # want to keep, you may remove or edit it. | |
13027 | # | |
13028 | # config.status only pays attention to the cache file if you give it | |
13029 | # the --recheck option to rerun configure. | |
13030 | # | |
13031 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13032 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13033 | # following values. | |
13034 | ||
d9898ee8 | 13035 | _ACEOF |
13036 | ||
8d138742 CE |
13037 | # The following way of writing the cache mishandles newlines in values, |
13038 | # but we know of no workaround that is simple, portable, and efficient. | |
13039 | # So, we kill variables containing newlines. | |
13040 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13041 | # and sets the high bit in the cache file unless we assign to the vars. | |
13042 | ( | |
13043 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13044 | eval ac_val=\$$ac_var | |
13045 | case $ac_val in #( | |
13046 | *${as_nl}*) | |
13047 | case $ac_var in #( | |
b0322a85 | 13048 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
13049 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13050 | esac | |
13051 | case $ac_var in #( | |
13052 | _ | IFS | as_nl) ;; #( | |
13053 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 13054 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
13055 | esac ;; |
13056 | esac | |
13057 | done | |
13058 | ||
13059 | (set) 2>&1 | | |
13060 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13061 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
13062 | # `set' does not quote correctly, so add quotes: double-quote |
13063 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
13064 | sed -n \ |
13065 | "s/'/'\\\\''/g; | |
13066 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13067 | ;; #( | |
13068 | *) | |
13069 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13070 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13071 | ;; | |
13072 | esac | | |
13073 | sort | |
13074 | ) | | |
13075 | sed ' | |
13076 | /^ac_cv_env_/b end | |
13077 | t clear | |
13078 | :clear | |
13079 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13080 | t end | |
13081 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13082 | :end' >>confcache | |
13083 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13084 | if test -w "$cache_file"; then | |
b0322a85 CE |
13085 | if test "x$cache_file" != "x/dev/null"; then |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 13087 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
13088 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13089 | cat confcache >"$cache_file" | |
13090 | else | |
13091 | case $cache_file in #( | |
13092 | */* | ?:*) | |
13093 | mv -f confcache "$cache_file"$$ && | |
13094 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13095 | *) | |
13096 | mv -f confcache "$cache_file" ;; | |
13097 | esac | |
13098 | fi | |
13099 | fi | |
8d138742 | 13100 | else |
b0322a85 | 13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
13102 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13103 | fi | |
13104 | fi | |
13105 | rm -f confcache | |
13106 | ||
13107 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13108 | # Let make expand exec_prefix. | |
13109 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13110 | ||
13111 | DEFS=-DHAVE_CONFIG_H | |
13112 | ||
13113 | ac_libobjs= | |
13114 | ac_ltlibobjs= | |
d50284c4 | 13115 | U= |
8d138742 CE |
13116 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13117 | # 1. Remove the extension, and $U if already installed. | |
13118 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13119 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13120 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13121 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
13122 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13123 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
13124 | done |
13125 | LIBOBJS=$ac_libobjs | |
13126 | ||
13127 | LTLIBOBJS=$ac_ltlibobjs | |
13128 | ||
13129 | ||
b0322a85 CE |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
13131 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
13132 | if test -n "$am_sleep_pid"; then | |
13133 | # Hide warnings about reused PIDs. | |
13134 | wait $am_sleep_pid 2>/dev/null | |
13135 | fi | |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
13137 | $as_echo "done" >&6; } | |
8d138742 CE |
13138 | if test -n "$EXEEXT"; then |
13139 | am__EXEEXT_TRUE= | |
13140 | am__EXEEXT_FALSE='#' | |
13141 | else | |
13142 | am__EXEEXT_TRUE='#' | |
13143 | am__EXEEXT_FALSE= | |
13144 | fi | |
13145 | ||
13146 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
b0322a85 CE |
13147 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
13148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13149 | fi |
13150 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
13151 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13152 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13153 | fi |
13154 | if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then | |
b0322a85 CE |
13155 | as_fn_error $? "conditional \"USE_FCNTL\" was never defined. |
13156 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13157 | fi |
13158 | if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then | |
b0322a85 CE |
13159 | as_fn_error $? "conditional \"USE_FLOCK\" was never defined. |
13160 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13161 | fi |
13162 | if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then | |
b0322a85 CE |
13163 | as_fn_error $? "conditional \"USE_LOCKF\" was never defined. |
13164 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13165 | fi |
13166 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
13167 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
13168 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13169 | fi |
13170 | ||
b0322a85 | 13171 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
13172 | ac_write_fail=0 |
13173 | ac_clean_files_save=$ac_clean_files | |
13174 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 13176 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
13177 | as_write_fail=0 |
13178 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
13179 | #! $SHELL |
13180 | # Generated by $as_me. | |
13181 | # Run this file to recreate the current configuration. | |
13182 | # Compiler output produced by configure, useful for debugging | |
13183 | # configure, is in config.log if it exists. | |
13184 | ||
13185 | debug=false | |
13186 | ac_cs_recheck=false | |
13187 | ac_cs_silent=false | |
d9898ee8 | 13188 | |
b0322a85 CE |
13189 | SHELL=\${CONFIG_SHELL-$SHELL} |
13190 | export SHELL | |
13191 | _ASEOF | |
13192 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13193 | ## -------------------- ## | |
13194 | ## M4sh Initialization. ## | |
13195 | ## -------------------- ## | |
d9898ee8 | 13196 | |
8d138742 CE |
13197 | # Be more Bourne compatible |
13198 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 13199 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
13200 | emulate sh |
13201 | NULLCMD=: | |
13202 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13203 | # is contrary to our usage. Disable this feature. | |
13204 | alias -g '${1+"$@"}'='"$@"' | |
13205 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13206 | else |
b0322a85 CE |
13207 | case `(set -o) 2>/dev/null` in #( |
13208 | *posix*) : | |
13209 | set -o posix ;; #( | |
13210 | *) : | |
13211 | ;; | |
8d138742 | 13212 | esac |
8d138742 | 13213 | fi |
d9898ee8 | 13214 | |
d9898ee8 | 13215 | |
8d138742 CE |
13216 | as_nl=' |
13217 | ' | |
13218 | export as_nl | |
13219 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13220 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13221 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13222 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
13223 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
13224 | # but without wasting forks for bash or zsh. | |
13225 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13226 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13227 | as_echo='print -r --' | |
13228 | as_echo_n='print -rn --' | |
13229 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
13230 | as_echo='printf %s\n' |
13231 | as_echo_n='printf %s' | |
13232 | else | |
13233 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13234 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13235 | as_echo_n='/usr/ucb/echo -n' | |
13236 | else | |
13237 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13238 | as_echo_n_body='eval | |
13239 | arg=$1; | |
b0322a85 | 13240 | case $arg in #( |
8d138742 CE |
13241 | *"$as_nl"*) |
13242 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13243 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13244 | esac; | |
13245 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13246 | ' | |
13247 | export as_echo_n_body | |
13248 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13249 | fi | |
13250 | export as_echo_body | |
13251 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13252 | fi |
dd184caf | 13253 | |
8d138742 CE |
13254 | # The user is always right. |
13255 | if test "${PATH_SEPARATOR+set}" != set; then | |
13256 | PATH_SEPARATOR=: | |
13257 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13258 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13259 | PATH_SEPARATOR=';' | |
13260 | } | |
d9898ee8 | 13261 | fi |
d9898ee8 | 13262 | |
d9898ee8 | 13263 | |
8d138742 CE |
13264 | # IFS |
13265 | # We need space, tab and new line, in precisely that order. Quoting is | |
13266 | # there to prevent editors from complaining about space-tab. | |
13267 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13268 | # splitting by setting IFS to empty value.) | |
13269 | IFS=" "" $as_nl" | |
d9898ee8 | 13270 | |
8d138742 | 13271 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
13272 | as_myself= |
13273 | case $0 in #(( | |
8d138742 CE |
13274 | *[\\/]* ) as_myself=$0 ;; |
13275 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13276 | for as_dir in $PATH | |
13277 | do | |
13278 | IFS=$as_save_IFS | |
13279 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13280 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13281 | done | |
8d138742 | 13282 | IFS=$as_save_IFS |
d9898ee8 | 13283 | |
8d138742 CE |
13284 | ;; |
13285 | esac | |
13286 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13287 | # in which case we are not to be found in the path. | |
13288 | if test "x$as_myself" = x; then | |
13289 | as_myself=$0 | |
13290 | fi | |
13291 | if test ! -f "$as_myself"; then | |
13292 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 13293 | exit 1 |
8d138742 | 13294 | fi |
d9898ee8 | 13295 | |
b0322a85 CE |
13296 | # Unset variables that we do not need and which cause bugs (e.g. in |
13297 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13298 | # suppresses any "Segmentation fault" message there. '((' could | |
13299 | # trigger a bug in pdksh 5.2.14. | |
13300 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13301 | do eval test x\${$as_var+set} = xset \ | |
13302 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
13303 | done |
13304 | PS1='$ ' | |
13305 | PS2='> ' | |
13306 | PS4='+ ' | |
d9898ee8 | 13307 | |
8d138742 CE |
13308 | # NLS nuisances. |
13309 | LC_ALL=C | |
13310 | export LC_ALL | |
13311 | LANGUAGE=C | |
13312 | export LANGUAGE | |
d9898ee8 | 13313 | |
b0322a85 CE |
13314 | # CDPATH. |
13315 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13316 | ||
13317 | ||
13318 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13319 | # ---------------------------------------- | |
13320 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13321 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13322 | # script with STATUS, using 1 if that was 0. | |
13323 | as_fn_error () | |
13324 | { | |
13325 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
13326 | if test "$4"; then | |
13327 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13328 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13329 | fi | |
13330 | $as_echo "$as_me: error: $2" >&2 | |
13331 | as_fn_exit $as_status | |
13332 | } # as_fn_error | |
13333 | ||
13334 | ||
13335 | # as_fn_set_status STATUS | |
13336 | # ----------------------- | |
13337 | # Set $? to STATUS, without forking. | |
13338 | as_fn_set_status () | |
13339 | { | |
13340 | return $1 | |
13341 | } # as_fn_set_status | |
13342 | ||
13343 | # as_fn_exit STATUS | |
13344 | # ----------------- | |
13345 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13346 | as_fn_exit () | |
13347 | { | |
13348 | set +e | |
13349 | as_fn_set_status $1 | |
13350 | exit $1 | |
13351 | } # as_fn_exit | |
13352 | ||
13353 | # as_fn_unset VAR | |
13354 | # --------------- | |
13355 | # Portably unset VAR. | |
13356 | as_fn_unset () | |
13357 | { | |
13358 | { eval $1=; unset $1;} | |
13359 | } | |
13360 | as_unset=as_fn_unset | |
13361 | # as_fn_append VAR VALUE | |
13362 | # ---------------------- | |
13363 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13364 | # advantage of any shell optimizations that allow amortized linear growth over | |
13365 | # repeated appends, instead of the typical quadratic growth present in naive | |
13366 | # implementations. | |
13367 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13368 | eval 'as_fn_append () | |
13369 | { | |
13370 | eval $1+=\$2 | |
13371 | }' | |
13372 | else | |
13373 | as_fn_append () | |
13374 | { | |
13375 | eval $1=\$$1\$2 | |
13376 | } | |
13377 | fi # as_fn_append | |
13378 | ||
13379 | # as_fn_arith ARG... | |
13380 | # ------------------ | |
13381 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13382 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13383 | # must be portable across $(()) and expr. | |
13384 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13385 | eval 'as_fn_arith () | |
13386 | { | |
13387 | as_val=$(( $* )) | |
13388 | }' | |
13389 | else | |
13390 | as_fn_arith () | |
13391 | { | |
13392 | as_val=`expr "$@" || test $? -eq 1` | |
13393 | } | |
13394 | fi # as_fn_arith | |
13395 | ||
13396 | ||
8d138742 CE |
13397 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13398 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13399 | as_expr=expr | |
d9898ee8 | 13400 | else |
8d138742 | 13401 | as_expr=false |
d9898ee8 | 13402 | fi |
dd184caf | 13403 | |
8d138742 CE |
13404 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13405 | as_basename=basename | |
13406 | else | |
13407 | as_basename=false | |
d9898ee8 | 13408 | fi |
d9898ee8 | 13409 | |
b0322a85 CE |
13410 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13411 | as_dirname=dirname | |
13412 | else | |
13413 | as_dirname=false | |
13414 | fi | |
d9898ee8 | 13415 | |
8d138742 CE |
13416 | as_me=`$as_basename -- "$0" || |
13417 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13418 | X"$0" : 'X\(//\)$' \| \ | |
13419 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13420 | $as_echo X/"$0" | | |
13421 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13422 | s//\1/ | |
13423 | q | |
13424 | } | |
13425 | /^X\/\(\/\/\)$/{ | |
13426 | s//\1/ | |
13427 | q | |
13428 | } | |
13429 | /^X\/\(\/\).*/{ | |
13430 | s//\1/ | |
13431 | q | |
13432 | } | |
13433 | s/.*/./; q'` | |
d9898ee8 | 13434 | |
b0322a85 CE |
13435 | # Avoid depending upon Character Ranges. |
13436 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13437 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13438 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13439 | as_cr_digits='0123456789' | |
13440 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 13441 | |
8d138742 | 13442 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 13443 | case `echo -n x` in #((((( |
8d138742 | 13444 | -n*) |
b0322a85 | 13445 | case `echo 'xy\c'` in |
8d138742 | 13446 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
13447 | xy) ECHO_C='\c';; |
13448 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13449 | ECHO_T=' ';; | |
8d138742 CE |
13450 | esac;; |
13451 | *) | |
13452 | ECHO_N='-n';; | |
dd184caf | 13453 | esac |
b0322a85 CE |
13454 | |
13455 | rm -f conf$$ conf$$.exe conf$$.file | |
13456 | if test -d conf$$.dir; then | |
13457 | rm -f conf$$.dir/conf$$.file | |
d9898ee8 | 13458 | else |
b0322a85 CE |
13459 | rm -f conf$$.dir |
13460 | mkdir conf$$.dir 2>/dev/null | |
13461 | fi | |
13462 | if (echo >conf$$.file) 2>/dev/null; then | |
13463 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13464 | as_ln_s='ln -s' | |
13465 | # ... but there are two gotchas: | |
13466 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13467 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13468 | # In both cases, we have to default to `cp -pR'. | |
13469 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13470 | as_ln_s='cp -pR' | |
13471 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13472 | as_ln_s=ln | |
13473 | else | |
13474 | as_ln_s='cp -pR' | |
13475 | fi | |
13476 | else | |
13477 | as_ln_s='cp -pR' | |
d9898ee8 | 13478 | fi |
b0322a85 CE |
13479 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13480 | rmdir conf$$.dir 2>/dev/null | |
13481 | ||
13482 | ||
13483 | # as_fn_mkdir_p | |
13484 | # ------------- | |
13485 | # Create "$as_dir" as a directory, including parents if necessary. | |
13486 | as_fn_mkdir_p () | |
13487 | { | |
13488 | ||
13489 | case $as_dir in #( | |
13490 | -*) as_dir=./$as_dir;; | |
13491 | esac | |
13492 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13493 | as_dirs= | |
13494 | while :; do | |
13495 | case $as_dir in #( | |
13496 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13497 | *) as_qdir=$as_dir;; | |
13498 | esac | |
13499 | as_dirs="'$as_qdir' $as_dirs" | |
13500 | as_dir=`$as_dirname -- "$as_dir" || | |
13501 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13502 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13503 | X"$as_dir" : 'X\(//\)$' \| \ | |
13504 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13505 | $as_echo X"$as_dir" | | |
13506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13507 | s//\1/ | |
13508 | q | |
13509 | } | |
13510 | /^X\(\/\/\)[^/].*/{ | |
13511 | s//\1/ | |
13512 | q | |
13513 | } | |
13514 | /^X\(\/\/\)$/{ | |
13515 | s//\1/ | |
13516 | q | |
13517 | } | |
13518 | /^X\(\/\).*/{ | |
13519 | s//\1/ | |
13520 | q | |
13521 | } | |
13522 | s/.*/./; q'` | |
13523 | test -d "$as_dir" && break | |
13524 | done | |
13525 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13526 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 13527 | |
d9898ee8 | 13528 | |
b0322a85 | 13529 | } # as_fn_mkdir_p |
8d138742 | 13530 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 13531 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
13532 | else |
13533 | test -d ./-p && rmdir ./-p | |
13534 | as_mkdir_p=false | |
d9898ee8 | 13535 | fi |
d9898ee8 | 13536 | |
b0322a85 CE |
13537 | |
13538 | # as_fn_executable_p FILE | |
13539 | # ----------------------- | |
13540 | # Test if FILE is an executable regular file. | |
13541 | as_fn_executable_p () | |
13542 | { | |
13543 | test -f "$1" && test -x "$1" | |
13544 | } # as_fn_executable_p | |
13545 | as_test_x='test -x' | |
13546 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 13547 | |
8d138742 CE |
13548 | # Sed expression to map a string onto a valid CPP name. |
13549 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13550 | |
8d138742 CE |
13551 | # Sed expression to map a string onto a valid variable name. |
13552 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13553 | |
d9898ee8 | 13554 | |
8d138742 | 13555 | exec 6>&1 |
b0322a85 CE |
13556 | ## ----------------------------------- ## |
13557 | ## Main body of $CONFIG_STATUS script. ## | |
13558 | ## ----------------------------------- ## | |
13559 | _ASEOF | |
13560 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 13561 | |
b0322a85 CE |
13562 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13563 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
13564 | # report actual input values of CONFIG_FILES etc. instead of their |
13565 | # values after options handling. | |
13566 | ac_log=" | |
13567 | This file was extended by liblock $as_me 0.60, which was | |
b0322a85 | 13568 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 13569 | |
8d138742 CE |
13570 | CONFIG_FILES = $CONFIG_FILES |
13571 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13572 | CONFIG_LINKS = $CONFIG_LINKS | |
13573 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13574 | $ $0 $@ | |
dd184caf | 13575 | |
8d138742 CE |
13576 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13577 | " | |
d9898ee8 | 13578 | |
d9898ee8 | 13579 | _ACEOF |
8d138742 CE |
13580 | |
13581 | case $ac_config_files in *" | |
13582 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 13583 | esac |
d9898ee8 | 13584 | |
8d138742 CE |
13585 | case $ac_config_headers in *" |
13586 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13587 | esac | |
dd184caf | 13588 | |
13589 | ||
8d138742 CE |
13590 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13591 | # Files that config.status was made for. | |
13592 | config_files="$ac_config_files" | |
13593 | config_headers="$ac_config_headers" | |
13594 | config_commands="$ac_config_commands" | |
d9898ee8 | 13595 | |
d9898ee8 | 13596 | _ACEOF |
13597 | ||
8d138742 CE |
13598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13599 | ac_cs_usage="\ | |
b0322a85 CE |
13600 | \`$as_me' instantiates files and other configuration actions |
13601 | from templates according to the current configuration. Unless the files | |
13602 | and actions are specified as TAGs, all are instantiated by default. | |
8d138742 | 13603 | |
b0322a85 | 13604 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 13605 | |
8d138742 CE |
13606 | -h, --help print this help, then exit |
13607 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 13608 | --config print configuration, then exit |
8d138742 CE |
13609 | -q, --quiet, --silent |
13610 | do not print progress messages | |
13611 | -d, --debug don't remove temporary files | |
13612 | --recheck update $as_me by reconfiguring in the same conditions | |
13613 | --file=FILE[:TEMPLATE] | |
13614 | instantiate the configuration file FILE | |
13615 | --header=FILE[:TEMPLATE] | |
13616 | instantiate the configuration header FILE | |
d9898ee8 | 13617 | |
8d138742 CE |
13618 | Configuration files: |
13619 | $config_files | |
d9898ee8 | 13620 | |
8d138742 CE |
13621 | Configuration headers: |
13622 | $config_headers | |
13623 | ||
13624 | Configuration commands: | |
13625 | $config_commands | |
13626 | ||
b0322a85 | 13627 | Report bugs to <courier-users@lists.sourceforge.net>." |
8d138742 CE |
13628 | |
13629 | _ACEOF | |
13630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13631 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
13632 | ac_cs_version="\\ |
13633 | liblock config.status 0.60 | |
b0322a85 CE |
13634 | configured by $0, generated by GNU Autoconf 2.69, |
13635 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 13636 | |
b0322a85 | 13637 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
13638 | This config.status script is free software; the Free Software Foundation |
13639 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 13640 | |
8d138742 CE |
13641 | ac_pwd='$ac_pwd' |
13642 | srcdir='$srcdir' | |
13643 | INSTALL='$INSTALL' | |
13644 | MKDIR_P='$MKDIR_P' | |
13645 | AWK='$AWK' | |
13646 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 13647 | _ACEOF |
d9898ee8 | 13648 | |
8d138742 CE |
13649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13650 | # The default lists apply if the user does not specify any file. | |
13651 | ac_need_defaults=: | |
13652 | while test $# != 0 | |
13653 | do | |
13654 | case $1 in | |
b0322a85 | 13655 | --*=?*) |
8d138742 CE |
13656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13657 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13658 | ac_shift=: | |
13659 | ;; | |
b0322a85 CE |
13660 | --*=) |
13661 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13662 | ac_optarg= | |
13663 | ac_shift=: | |
13664 | ;; | |
8d138742 CE |
13665 | *) |
13666 | ac_option=$1 | |
13667 | ac_optarg=$2 | |
13668 | ac_shift=shift | |
13669 | ;; | |
13670 | esac | |
d9898ee8 | 13671 | |
8d138742 CE |
13672 | case $ac_option in |
13673 | # Handling of the options. | |
13674 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13675 | ac_cs_recheck=: ;; | |
13676 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13677 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
13678 | --config | --confi | --conf | --con | --co | --c ) |
13679 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
13680 | --debug | --debu | --deb | --de | --d | -d ) |
13681 | debug=: ;; | |
13682 | --file | --fil | --fi | --f ) | |
13683 | $ac_shift | |
13684 | case $ac_optarg in | |
13685 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 13686 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 13687 | esac |
b0322a85 | 13688 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
13689 | ac_need_defaults=false;; |
13690 | --header | --heade | --head | --hea ) | |
13691 | $ac_shift | |
13692 | case $ac_optarg in | |
13693 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13694 | esac | |
b0322a85 | 13695 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
13696 | ac_need_defaults=false;; |
13697 | --he | --h) | |
13698 | # Conflict between --help and --header | |
b0322a85 CE |
13699 | as_fn_error $? "ambiguous option: \`$1' |
13700 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
13701 | --help | --hel | -h ) |
13702 | $as_echo "$ac_cs_usage"; exit ;; | |
13703 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13704 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13705 | ac_cs_silent=: ;; | |
d9898ee8 | 13706 | |
8d138742 | 13707 | # This is an error. |
b0322a85 CE |
13708 | -*) as_fn_error $? "unrecognized option: \`$1' |
13709 | Try \`$0 --help' for more information." ;; | |
d9898ee8 | 13710 | |
b0322a85 | 13711 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 13712 | ac_need_defaults=false ;; |
d9898ee8 | 13713 | |
8d138742 CE |
13714 | esac |
13715 | shift | |
13716 | done | |
dd184caf | 13717 | |
8d138742 | 13718 | ac_configure_extra_args= |
dd184caf | 13719 | |
8d138742 CE |
13720 | if $ac_cs_silent; then |
13721 | exec 6>/dev/null | |
13722 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 13723 | fi |
d9898ee8 | 13724 | |
d9898ee8 | 13725 | _ACEOF |
8d138742 CE |
13726 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13727 | if \$ac_cs_recheck; then | |
b0322a85 | 13728 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13729 | shift |
13730 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13731 | CONFIG_SHELL='$SHELL' | |
13732 | export CONFIG_SHELL | |
13733 | exec "\$@" | |
d9898ee8 | 13734 | fi |
13735 | ||
d9898ee8 | 13736 | _ACEOF |
8d138742 CE |
13737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13738 | exec 5>>config.log | |
13739 | { | |
13740 | echo | |
13741 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13742 | ## Running $as_me. ## | |
13743 | _ASBOX | |
13744 | $as_echo "$ac_log" | |
13745 | } >&5 | |
d9898ee8 | 13746 | |
8d138742 CE |
13747 | _ACEOF |
13748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13749 | # | |
13750 | # INIT-COMMANDS | |
13751 | # | |
13752 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13753 | |
d9898ee8 | 13754 | |
8d138742 CE |
13755 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13756 | # if CDPATH is set. | |
13757 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13758 | |
8d138742 CE |
13759 | sed_quote_subst='$sed_quote_subst' |
13760 | double_quote_subst='$double_quote_subst' | |
13761 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13762 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13763 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13764 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13765 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13766 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13767 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13768 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13769 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13770 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13771 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13772 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13773 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13774 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13775 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13776 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13777 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13778 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13779 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13780 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13781 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13782 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13783 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13784 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13785 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13786 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13787 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13788 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13789 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13790 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13791 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13792 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13793 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13794 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13795 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13796 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13797 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13798 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13799 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13800 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13801 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13802 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13803 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13804 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13805 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13806 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13807 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13808 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13809 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13810 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13811 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13812 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13813 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13814 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13815 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13816 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13817 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13818 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13819 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13820 | 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 | 13821 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13822 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13823 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13824 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13825 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13826 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13827 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13828 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13829 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13830 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13831 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13832 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13833 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13834 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13835 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13836 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13837 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13838 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13839 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13840 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13841 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13842 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13843 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13844 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13845 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13846 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13847 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13848 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13849 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13850 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13851 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13852 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13853 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13854 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13855 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13856 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13857 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13858 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13859 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13860 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13861 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13862 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13863 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13864 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13865 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13866 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13867 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13868 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13869 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13870 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13871 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13872 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13873 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13874 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13875 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13876 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13877 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13878 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13879 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13880 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13881 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13882 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13883 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13884 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13885 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13886 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13887 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13888 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13889 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13890 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13891 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13892 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13893 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13894 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13895 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13896 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13897 | |
13898 | LTCC='$LTCC' | |
13899 | LTCFLAGS='$LTCFLAGS' | |
13900 | compiler='$compiler_DEFAULT' | |
13901 | ||
b0322a85 CE |
13902 | # A function that is used when there is no print builtin or printf. |
13903 | func_fallback_echo () | |
13904 | { | |
13905 | eval 'cat <<_LTECHO_EOF | |
13906 | \$1 | |
13907 | _LTECHO_EOF' | |
13908 | } | |
13909 | ||
8d138742 | 13910 | # Quote evaled strings. |
b0322a85 CE |
13911 | for var in SHELL \ |
13912 | ECHO \ | |
13913 | PATH_SEPARATOR \ | |
13914 | SED \ | |
8d138742 CE |
13915 | GREP \ |
13916 | EGREP \ | |
13917 | FGREP \ | |
13918 | LD \ | |
13919 | NM \ | |
13920 | LN_S \ | |
13921 | lt_SP2NL \ | |
13922 | lt_NL2SP \ | |
13923 | reload_flag \ | |
13924 | OBJDUMP \ | |
13925 | deplibs_check_method \ | |
13926 | file_magic_cmd \ | |
b0322a85 CE |
13927 | file_magic_glob \ |
13928 | want_nocaseglob \ | |
13929 | DLLTOOL \ | |
13930 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13931 | AR \ |
13932 | AR_FLAGS \ | |
b0322a85 | 13933 | archiver_list_spec \ |
8d138742 CE |
13934 | STRIP \ |
13935 | RANLIB \ | |
13936 | CC \ | |
13937 | CFLAGS \ | |
13938 | compiler \ | |
13939 | lt_cv_sys_global_symbol_pipe \ | |
13940 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13941 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13942 | lt_cv_sys_global_symbol_to_c_name_address \ |
13943 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13944 | lt_cv_nm_interface \ |
b0322a85 | 13945 | nm_file_list_spec \ |
d50284c4 | 13946 | lt_cv_truncate_bin \ |
8d138742 | 13947 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13948 | lt_prog_compiler_pic \ |
b0322a85 | 13949 | lt_prog_compiler_wl \ |
8d138742 CE |
13950 | lt_prog_compiler_static \ |
13951 | lt_cv_prog_compiler_c_o \ | |
13952 | need_locks \ | |
b0322a85 | 13953 | MANIFEST_TOOL \ |
8d138742 CE |
13954 | DSYMUTIL \ |
13955 | NMEDIT \ | |
13956 | LIPO \ | |
13957 | OTOOL \ | |
13958 | OTOOL64 \ | |
13959 | shrext_cmds \ | |
13960 | export_dynamic_flag_spec \ | |
13961 | whole_archive_flag_spec \ | |
13962 | compiler_needs_object \ | |
13963 | with_gnu_ld \ | |
13964 | allow_undefined_flag \ | |
13965 | no_undefined_flag \ | |
13966 | hardcode_libdir_flag_spec \ | |
8d138742 | 13967 | hardcode_libdir_separator \ |
8d138742 CE |
13968 | exclude_expsyms \ |
13969 | include_expsyms \ | |
13970 | file_list_spec \ | |
13971 | variables_saved_for_relink \ | |
13972 | libname_spec \ | |
13973 | library_names_spec \ | |
13974 | soname_spec \ | |
b0322a85 | 13975 | install_override_mode \ |
8d138742 CE |
13976 | finish_eval \ |
13977 | old_striplib \ | |
13978 | striplib; do | |
b0322a85 | 13979 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13980 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13981 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13982 | ;; |
13983 | *) | |
13984 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13985 | ;; | |
13986 | esac | |
13987 | done | |
13988 | ||
13989 | # Double-quote double-evaled strings. | |
13990 | for var in reload_cmds \ | |
13991 | old_postinstall_cmds \ | |
13992 | old_postuninstall_cmds \ | |
13993 | old_archive_cmds \ | |
13994 | extract_expsyms_cmds \ | |
13995 | old_archive_from_new_cmds \ | |
13996 | old_archive_from_expsyms_cmds \ | |
13997 | archive_cmds \ | |
13998 | archive_expsym_cmds \ | |
13999 | module_cmds \ | |
14000 | module_expsym_cmds \ | |
14001 | export_symbols_cmds \ | |
14002 | prelink_cmds \ | |
b0322a85 | 14003 | postlink_cmds \ |
8d138742 CE |
14004 | postinstall_cmds \ |
14005 | postuninstall_cmds \ | |
14006 | finish_cmds \ | |
14007 | sys_lib_search_path_spec \ | |
d50284c4 CE |
14008 | configure_time_dlsearch_path \ |
14009 | configure_time_lt_sys_library_path; do | |
b0322a85 | 14010 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 14011 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 14012 | 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 |
14013 | ;; |
14014 | *) | |
14015 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14016 | ;; | |
14017 | esac | |
14018 | done | |
14019 | ||
8d138742 | 14020 | ac_aux_dir='$ac_aux_dir' |
dd184caf | 14021 | |
d50284c4 | 14022 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14023 | # commands through without removal of \ escapes INIT. |
d50284c4 | 14024 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 14025 | setopt NO_GLOB_SUBST |
d9898ee8 | 14026 | fi |
dd184caf | 14027 | |
d9898ee8 | 14028 | |
8d138742 CE |
14029 | PACKAGE='$PACKAGE' |
14030 | VERSION='$VERSION' | |
8d138742 CE |
14031 | RM='$RM' |
14032 | ofile='$ofile' | |
d9898ee8 | 14033 | |
d9898ee8 | 14034 | |
d9898ee8 | 14035 | |
d9898ee8 | 14036 | |
8d138742 | 14037 | _ACEOF |
d9898ee8 | 14038 | |
8d138742 | 14039 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 14040 | |
8d138742 CE |
14041 | # Handling of arguments. |
14042 | for ac_config_target in $ac_config_targets | |
14043 | do | |
14044 | case $ac_config_target in | |
14045 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
14046 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14047 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14048 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 14049 | |
b0322a85 | 14050 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
14051 | esac |
14052 | done | |
dd184caf | 14053 | |
dd184caf | 14054 | |
8d138742 CE |
14055 | # If the user did not use the arguments to specify the items to instantiate, |
14056 | # then the envvar interface is used. Set only those that are not. | |
14057 | # We use the long form for the default assignment because of an extremely | |
14058 | # bizarre bug on SunOS 4.1.3. | |
14059 | if $ac_need_defaults; then | |
14060 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14061 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14062 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
d9898ee8 | 14063 | fi |
d9898ee8 | 14064 | |
8d138742 CE |
14065 | # Have a temporary directory for convenience. Make it in the build tree |
14066 | # simply because there is no reason against having it here, and in addition, | |
14067 | # creating and moving files from /tmp can sometimes cause problems. | |
14068 | # Hook for its removal unless debugging. | |
14069 | # Note that there is a small window in which the directory will not be cleaned: | |
14070 | # after its creation but before its name has been assigned to `$tmp'. | |
14071 | $debug || | |
14072 | { | |
b0322a85 | 14073 | tmp= ac_tmp= |
8d138742 | 14074 | trap 'exit_status=$? |
b0322a85 CE |
14075 | : "${ac_tmp:=$tmp}" |
14076 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 14077 | ' 0 |
b0322a85 | 14078 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
14079 | } |
14080 | # Create a (secure) tmp directory for tmp files. | |
14081 | ||
14082 | { | |
14083 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 14084 | test -d "$tmp" |
8d138742 CE |
14085 | } || |
14086 | { | |
14087 | tmp=./conf$$-$RANDOM | |
14088 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
14089 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14090 | ac_tmp=$tmp | |
d9898ee8 | 14091 | |
8d138742 CE |
14092 | # Set up the scripts for CONFIG_FILES section. |
14093 | # No need to generate them if there are no CONFIG_FILES. | |
14094 | # This happens for instance with `./config.status config.h'. | |
14095 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 14096 | |
d9898ee8 | 14097 | |
b0322a85 CE |
14098 | ac_cr=`echo X | tr X '\015'` |
14099 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14100 | # But we know of no other shell where ac_cr would be empty at this | |
14101 | # point, so we can use a bashism as a fallback. | |
14102 | if test "x$ac_cr" = x; then | |
14103 | eval ac_cr=\$\'\\r\' | |
14104 | fi | |
8d138742 CE |
14105 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14106 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14107 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 14108 | else |
8d138742 | 14109 | ac_cs_awk_cr=$ac_cr |
dd184caf | 14110 | fi |
14111 | ||
b0322a85 | 14112 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 14113 | _ACEOF |
d9898ee8 | 14114 | |
d9898ee8 | 14115 | |
8d138742 CE |
14116 | { |
14117 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14118 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14119 | echo "_ACEOF" | |
14120 | } >conf$$subs.sh || | |
b0322a85 CE |
14121 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14122 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
14123 | ac_delim='%!_!# ' |
14124 | for ac_last_try in false false false false false :; do | |
14125 | . ./conf$$subs.sh || | |
b0322a85 | 14126 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
dd184caf | 14127 | |
8d138742 CE |
14128 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14129 | if test $ac_delim_n = $ac_delim_num; then | |
14130 | break | |
14131 | elif $ac_last_try; then | |
b0322a85 | 14132 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
14133 | else |
14134 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14135 | fi | |
14136 | done | |
14137 | rm -f conf$$subs.sh | |
14138 | ||
14139 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 14140 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
14141 | _ACEOF |
14142 | sed -n ' | |
14143 | h | |
14144 | s/^/S["/; s/!.*/"]=/ | |
14145 | p | |
14146 | g | |
14147 | s/^[^!]*!// | |
14148 | :repl | |
14149 | t repl | |
14150 | s/'"$ac_delim"'$// | |
14151 | t delim | |
14152 | :nl | |
14153 | h | |
b0322a85 | 14154 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14155 | t more1 |
14156 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14157 | p | |
14158 | n | |
14159 | b repl | |
14160 | :more1 | |
14161 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14162 | p | |
14163 | g | |
14164 | s/.\{148\}// | |
14165 | t nl | |
14166 | :delim | |
14167 | h | |
b0322a85 | 14168 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14169 | t more2 |
14170 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14171 | p | |
14172 | b | |
14173 | :more2 | |
14174 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14175 | p | |
14176 | g | |
14177 | s/.\{148\}// | |
14178 | t delim | |
14179 | ' <conf$$subs.awk | sed ' | |
14180 | /^[^""]/{ | |
14181 | N | |
14182 | s/\n// | |
14183 | } | |
14184 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14185 | rm -f conf$$subs.awk | |
14186 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14187 | _ACAWK | |
b0322a85 | 14188 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
14189 | for (key in S) S_is_set[key] = 1 |
14190 | FS = "\a" | |
d9898ee8 | 14191 | |
8d138742 CE |
14192 | } |
14193 | { | |
14194 | line = $ 0 | |
14195 | nfields = split(line, field, "@") | |
14196 | substed = 0 | |
14197 | len = length(field[1]) | |
14198 | for (i = 2; i < nfields; i++) { | |
14199 | key = field[i] | |
14200 | keylen = length(key) | |
14201 | if (S_is_set[key]) { | |
14202 | value = S[key] | |
14203 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14204 | len += length(value) + length(field[++i]) | |
14205 | substed = 1 | |
14206 | } else | |
14207 | len += 1 + keylen | |
14208 | } | |
d9898ee8 | 14209 | |
8d138742 CE |
14210 | print line |
14211 | } | |
14212 | ||
14213 | _ACAWK | |
d9898ee8 | 14214 | _ACEOF |
8d138742 CE |
14215 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14216 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14217 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 14218 | else |
8d138742 | 14219 | cat |
b0322a85 CE |
14220 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14221 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 14222 | _ACEOF |
d9898ee8 | 14223 | |
b0322a85 CE |
14224 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14225 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
14226 | # trailing colons and then remove the whole line if VPATH becomes empty |
14227 | # (actually we leave an empty line to preserve line numbers). | |
14228 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
14229 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14230 | h | |
14231 | s/// | |
14232 | s/^/:/ | |
14233 | s/[ ]*$/:/ | |
14234 | s/:\$(srcdir):/:/g | |
14235 | s/:\${srcdir}:/:/g | |
14236 | s/:@srcdir@:/:/g | |
14237 | s/^:*// | |
8d138742 | 14238 | s/:*$// |
b0322a85 CE |
14239 | x |
14240 | s/\(=[ ]*\).*/\1/ | |
14241 | G | |
14242 | s/\n// | |
8d138742 CE |
14243 | s/^[^=]*=[ ]*$// |
14244 | }' | |
d9898ee8 | 14245 | fi |
d9898ee8 | 14246 | |
8d138742 CE |
14247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14248 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 14249 | |
8d138742 CE |
14250 | # Set up the scripts for CONFIG_HEADERS section. |
14251 | # No need to generate them if there are no CONFIG_HEADERS. | |
14252 | # This happens for instance with `./config.status Makefile'. | |
14253 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 14254 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 | 14255 | BEGIN { |
d9898ee8 | 14256 | _ACEOF |
dd184caf | 14257 | |
8d138742 CE |
14258 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14259 | # here-document in config.status, that substitutes the proper values into | |
14260 | # config.h.in to produce config.h. | |
dd184caf | 14261 | |
8d138742 CE |
14262 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14263 | # handling of long lines. | |
14264 | ac_delim='%!_!# ' | |
14265 | for ac_last_try in false false :; do | |
b0322a85 CE |
14266 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14267 | if test -z "$ac_tt"; then | |
8d138742 CE |
14268 | break |
14269 | elif $ac_last_try; then | |
b0322a85 | 14270 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
14271 | else |
14272 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14273 | fi | |
14274 | done | |
d9898ee8 | 14275 | |
8d138742 CE |
14276 | # For the awk script, D is an array of macro values keyed by name, |
14277 | # likewise P contains macro parameters if any. Preserve backslash | |
14278 | # newline sequences. | |
d9898ee8 | 14279 | |
8d138742 CE |
14280 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14281 | sed -n ' | |
14282 | s/.\{148\}/&'"$ac_delim"'/g | |
14283 | t rset | |
14284 | :rset | |
14285 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14286 | t def | |
14287 | d | |
14288 | :def | |
14289 | s/\\$// | |
14290 | t bsnl | |
14291 | s/["\\]/\\&/g | |
14292 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14293 | D["\1"]=" \3"/p | |
14294 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14295 | d | |
14296 | :bsnl | |
14297 | s/["\\]/\\&/g | |
14298 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14299 | D["\1"]=" \3\\\\\\n"\\/p | |
14300 | t cont | |
14301 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14302 | t cont | |
14303 | d | |
14304 | :cont | |
14305 | n | |
14306 | s/.\{148\}/&'"$ac_delim"'/g | |
14307 | t clear | |
14308 | :clear | |
14309 | s/\\$// | |
14310 | t bsnlc | |
14311 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14312 | d | |
14313 | :bsnlc | |
14314 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14315 | b cont | |
14316 | ' <confdefs.h | sed ' | |
14317 | s/'"$ac_delim"'/"\\\ | |
14318 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14319 | ||
14320 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14321 | for (key in D) D_is_set[key] = 1 | |
14322 | FS = "\a" | |
14323 | } | |
14324 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14325 | line = \$ 0 | |
14326 | split(line, arg, " ") | |
14327 | if (arg[1] == "#") { | |
14328 | defundef = arg[2] | |
14329 | mac1 = arg[3] | |
14330 | } else { | |
14331 | defundef = substr(arg[1], 2) | |
14332 | mac1 = arg[2] | |
14333 | } | |
14334 | split(mac1, mac2, "(") #) | |
14335 | macro = mac2[1] | |
14336 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14337 | if (D_is_set[macro]) { | |
14338 | # Preserve the white space surrounding the "#". | |
14339 | print prefix "define", macro P[macro] D[macro] | |
14340 | next | |
14341 | } else { | |
14342 | # Replace #undef with comments. This is necessary, for example, | |
14343 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14344 | # on some systems where configure will not decide to define it. | |
14345 | if (defundef == "undef") { | |
14346 | print "/*", prefix defundef, macro, "*/" | |
14347 | next | |
14348 | } | |
14349 | } | |
14350 | } | |
14351 | { print } | |
14352 | _ACAWK | |
d9898ee8 | 14353 | _ACEOF |
8d138742 | 14354 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0322a85 | 14355 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 14356 | fi # test -n "$CONFIG_HEADERS" |
dd184caf | 14357 | |
14358 | ||
8d138742 CE |
14359 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14360 | shift | |
14361 | for ac_tag | |
14362 | do | |
14363 | case $ac_tag in | |
14364 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14365 | esac | |
14366 | case $ac_mode$ac_tag in | |
14367 | :[FHL]*:*);; | |
b0322a85 | 14368 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
14369 | :[FH]-) ac_tag=-:-;; |
14370 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14371 | esac | |
14372 | ac_save_IFS=$IFS | |
14373 | IFS=: | |
14374 | set x $ac_tag | |
14375 | IFS=$ac_save_IFS | |
14376 | shift | |
14377 | ac_file=$1 | |
14378 | shift | |
d9898ee8 | 14379 | |
8d138742 CE |
14380 | case $ac_mode in |
14381 | :L) ac_source=$1;; | |
14382 | :[FH]) | |
14383 | ac_file_inputs= | |
14384 | for ac_f | |
14385 | do | |
14386 | case $ac_f in | |
b0322a85 | 14387 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
14388 | *) # Look for the file first in the build tree, then in the source tree |
14389 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14390 | # because $ac_f cannot contain `:'. | |
14391 | test -f "$ac_f" || | |
14392 | case $ac_f in | |
14393 | [\\/$]*) false;; | |
14394 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14395 | esac || | |
b0322a85 | 14396 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
14397 | esac |
14398 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 14399 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 14400 | done |
d9898ee8 | 14401 | |
8d138742 CE |
14402 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14403 | # use $as_me), people would be surprised to read: | |
14404 | # /* config.h. Generated by config.status. */ | |
14405 | configure_input='Generated from '` | |
14406 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14407 | `' by configure.' | |
14408 | if test x"$ac_file" != x-; then | |
14409 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
14411 | $as_echo "$as_me: creating $ac_file" >&6;} |
14412 | fi | |
14413 | # Neutralize special characters interpreted by sed in replacement strings. | |
14414 | case $configure_input in #( | |
14415 | *\&* | *\|* | *\\* ) | |
14416 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14417 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14418 | *) ac_sed_conf_input=$configure_input;; | |
14419 | esac | |
d9898ee8 | 14420 | |
8d138742 | 14421 | case $ac_tag in |
b0322a85 CE |
14422 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14423 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
14424 | esac |
14425 | ;; | |
14426 | esac | |
d9898ee8 | 14427 | |
8d138742 CE |
14428 | ac_dir=`$as_dirname -- "$ac_file" || |
14429 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14430 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14431 | X"$ac_file" : 'X\(//\)$' \| \ | |
14432 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14433 | $as_echo X"$ac_file" | | |
14434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14435 | s//\1/ | |
14436 | q | |
14437 | } | |
14438 | /^X\(\/\/\)[^/].*/{ | |
14439 | s//\1/ | |
14440 | q | |
14441 | } | |
14442 | /^X\(\/\/\)$/{ | |
14443 | s//\1/ | |
14444 | q | |
14445 | } | |
14446 | /^X\(\/\).*/{ | |
14447 | s//\1/ | |
14448 | q | |
14449 | } | |
14450 | s/.*/./; q'` | |
b0322a85 | 14451 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 14452 | ac_builddir=. |
d9898ee8 | 14453 | |
8d138742 CE |
14454 | case "$ac_dir" in |
14455 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14456 | *) | |
14457 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14458 | # A ".." for each directory in $ac_dir_suffix. | |
14459 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14460 | case $ac_top_builddir_sub in | |
14461 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14462 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14463 | esac ;; | |
dd184caf | 14464 | esac |
8d138742 CE |
14465 | ac_abs_top_builddir=$ac_pwd |
14466 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14467 | # for backward compatibility: | |
14468 | ac_top_builddir=$ac_top_build_prefix | |
14469 | ||
14470 | case $srcdir in | |
14471 | .) # We are building in place. | |
14472 | ac_srcdir=. | |
14473 | ac_top_srcdir=$ac_top_builddir_sub | |
14474 | ac_abs_top_srcdir=$ac_pwd ;; | |
14475 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14476 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14477 | ac_top_srcdir=$srcdir | |
14478 | ac_abs_top_srcdir=$srcdir ;; | |
14479 | *) # Relative name. | |
14480 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14481 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14482 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dd184caf | 14483 | esac |
8d138742 | 14484 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 14485 | |
dd184caf | 14486 | |
8d138742 CE |
14487 | case $ac_mode in |
14488 | :F) | |
14489 | # | |
14490 | # CONFIG_FILE | |
14491 | # | |
dd184caf | 14492 | |
8d138742 CE |
14493 | case $INSTALL in |
14494 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14495 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14496 | esac | |
14497 | ac_MKDIR_P=$MKDIR_P | |
14498 | case $MKDIR_P in | |
14499 | [\\/$]* | ?:[\\/]* ) ;; | |
14500 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14501 | esac | |
d9898ee8 | 14502 | _ACEOF |
d9898ee8 | 14503 | |
8d138742 CE |
14504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14505 | # If the template does not know about datarootdir, expand it. | |
14506 | # FIXME: This hack should be removed a few years after 2.60. | |
14507 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
14508 | ac_sed_dataroot=' |
14509 | /datarootdir/ { | |
14510 | p | |
14511 | q | |
14512 | } | |
14513 | /@datadir@/p | |
14514 | /@docdir@/p | |
14515 | /@infodir@/p | |
14516 | /@localedir@/p | |
b0322a85 | 14517 | /@mandir@/p' |
8d138742 CE |
14518 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14519 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14520 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 | 14522 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 | 14523 | _ACEOF |
8d138742 CE |
14524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14525 | ac_datarootdir_hack=' | |
14526 | s&@datadir@&$datadir&g | |
14527 | s&@docdir@&$docdir&g | |
14528 | s&@infodir@&$infodir&g | |
14529 | s&@localedir@&$localedir&g | |
14530 | s&@mandir@&$mandir&g | |
b0322a85 | 14531 | s&\\\${datarootdir}&$datarootdir&g' ;; |
d9898ee8 | 14532 | esac |
8d138742 | 14533 | _ACEOF |
d9898ee8 | 14534 | |
8d138742 CE |
14535 | # Neutralize VPATH when `$srcdir' = `.'. |
14536 | # Shell code in configure.ac might set extrasub. | |
14537 | # FIXME: do we really want to maintain this feature? | |
14538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14539 | ac_sed_extra="$ac_vpsub | |
14540 | $extrasub | |
14541 | _ACEOF | |
14542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14543 | :t | |
14544 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14545 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14546 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14547 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14548 | s&@srcdir@&$ac_srcdir&;t t | |
14549 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14550 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14551 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14552 | s&@builddir@&$ac_builddir&;t t | |
14553 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14554 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14555 | s&@INSTALL@&$ac_INSTALL&;t t | |
14556 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14557 | $ac_datarootdir_hack | |
14558 | " | |
b0322a85 CE |
14559 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14560 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 14561 | |
8d138742 | 14562 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
14563 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14564 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14565 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14567 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 14568 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 14569 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 14570 | |
b0322a85 | 14571 | rm -f "$ac_tmp/stdin" |
8d138742 | 14572 | case $ac_file in |
b0322a85 CE |
14573 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14574 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 14575 | esac \ |
b0322a85 | 14576 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
14577 | ;; |
14578 | :H) | |
14579 | # | |
14580 | # CONFIG_HEADER | |
14581 | # | |
14582 | if test x"$ac_file" != x-; then | |
14583 | { | |
14584 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14585 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14586 | } >"$ac_tmp/config.h" \ | |
14587 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14588 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
14590 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
14591 | else | |
14592 | rm -f "$ac_file" | |
b0322a85 CE |
14593 | mv "$ac_tmp/config.h" "$ac_file" \ |
14594 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
14595 | fi |
14596 | else | |
14597 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14598 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14599 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
14600 | fi |
14601 | # Compute "$ac_file"'s index in $config_headers. | |
14602 | _am_arg="$ac_file" | |
14603 | _am_stamp_count=1 | |
14604 | for _am_header in $config_headers :; do | |
14605 | case $_am_header in | |
14606 | $_am_arg | $_am_arg:* ) | |
14607 | break ;; | |
14608 | * ) | |
14609 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14610 | esac | |
14611 | done | |
14612 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14613 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14614 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14615 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14616 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14617 | $as_echo X"$_am_arg" | | |
14618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14619 | s//\1/ | |
14620 | q | |
14621 | } | |
14622 | /^X\(\/\/\)[^/].*/{ | |
14623 | s//\1/ | |
14624 | q | |
14625 | } | |
14626 | /^X\(\/\/\)$/{ | |
14627 | s//\1/ | |
14628 | q | |
14629 | } | |
14630 | /^X\(\/\).*/{ | |
14631 | s//\1/ | |
14632 | q | |
14633 | } | |
14634 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14635 | ;; | |
d9898ee8 | 14636 | |
b0322a85 | 14637 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
14638 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
14639 | ;; | |
14640 | esac | |
d9898ee8 | 14641 | |
14642 | ||
8d138742 CE |
14643 | case $ac_file$ac_mode in |
14644 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 14645 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
14646 | # are listed without --file. Let's play safe and only enable the eval |
14647 | # if we detect the quoting. | |
14648 | case $CONFIG_FILES in | |
14649 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14650 | *) set x $CONFIG_FILES ;; | |
14651 | esac | |
14652 | shift | |
14653 | for mf | |
14654 | do | |
14655 | # Strip MF so we end up with the name of the file. | |
14656 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14657 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 14658 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
14659 | # some people rename them; so instead we look at the file content. |
14660 | # Grep'ing the first line is not enough: some people post-process | |
14661 | # each Makefile.in and add a new line on top of each file to say so. | |
14662 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14663 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14664 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14665 | dirpart=`$as_dirname -- "$mf" || | |
14666 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14667 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14668 | X"$mf" : 'X\(//\)$' \| \ | |
14669 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14670 | $as_echo X"$mf" | | |
14671 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14672 | s//\1/ | |
14673 | q | |
14674 | } | |
14675 | /^X\(\/\/\)[^/].*/{ | |
14676 | s//\1/ | |
14677 | q | |
14678 | } | |
14679 | /^X\(\/\/\)$/{ | |
14680 | s//\1/ | |
14681 | q | |
14682 | } | |
14683 | /^X\(\/\).*/{ | |
14684 | s//\1/ | |
14685 | q | |
14686 | } | |
14687 | s/.*/./; q'` | |
14688 | else | |
14689 | continue | |
14690 | fi | |
14691 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 14692 | # from the Makefile without running 'make'. |
8d138742 CE |
14693 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14694 | test -z "$DEPDIR" && continue | |
14695 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 14696 | test -z "$am__include" && continue |
8d138742 | 14697 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
14698 | # Find all dependency output files, they are included files with |
14699 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14700 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14701 | # expansion. | |
14702 | for file in `sed -n " | |
14703 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 14704 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
14705 | # Make sure the directory exists. |
14706 | test -f "$dirpart/$file" && continue | |
14707 | fdir=`$as_dirname -- "$file" || | |
14708 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14709 | X"$file" : 'X\(//\)[^/]' \| \ | |
14710 | X"$file" : 'X\(//\)$' \| \ | |
14711 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14712 | $as_echo X"$file" | | |
14713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14714 | s//\1/ | |
14715 | q | |
14716 | } | |
14717 | /^X\(\/\/\)[^/].*/{ | |
14718 | s//\1/ | |
14719 | q | |
14720 | } | |
14721 | /^X\(\/\/\)$/{ | |
14722 | s//\1/ | |
14723 | q | |
14724 | } | |
14725 | /^X\(\/\).*/{ | |
14726 | s//\1/ | |
14727 | q | |
14728 | } | |
14729 | s/.*/./; q'` | |
b0322a85 | 14730 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14731 | # echo "creating $dirpart/$file" |
14732 | echo '# dummy' > "$dirpart/$file" | |
14733 | done | |
14734 | done | |
14735 | } | |
14736 | ;; | |
14737 | "libtool":C) | |
d9898ee8 | 14738 | |
d50284c4 | 14739 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14740 | # commands through without removal of \ escapes. |
d50284c4 | 14741 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14742 | setopt NO_GLOB_SUBST |
14743 | fi | |
d9898ee8 | 14744 | |
d50284c4 | 14745 | cfgfile=${ofile}T |
8d138742 CE |
14746 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14747 | $RM "$cfgfile" | |
d9898ee8 | 14748 | |
8d138742 CE |
14749 | cat <<_LT_EOF >> "$cfgfile" |
14750 | #! $SHELL | |
d50284c4 | 14751 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14752 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14753 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14754 | |
14755 | # Provide generalized library-building support services. | |
14756 | # Written by Gordon Matzigkeit, 1996 | |
14757 | ||
14758 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14759 | # This is free software; see the source for copying conditions. There is NO | |
14760 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14761 | ||
14762 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14763 | # it under the terms of the GNU General Public License as published by | |
14764 | # the Free Software Foundation; either version 2 of of the License, or | |
14765 | # (at your option) any later version. | |
d9898ee8 | 14766 | # |
d50284c4 CE |
14767 | # As a special exception to the GNU General Public License, if you |
14768 | # distribute this file as part of a program or library that is built | |
14769 | # using GNU Libtool, you may include this file under the same | |
14770 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14771 | # |
d50284c4 CE |
14772 | # GNU Libtool is distributed in the hope that it will be useful, but |
14773 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14774 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14775 | # GNU General Public License for more details. | |
14776 | # | |
14777 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14778 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 14779 | |
dd184caf | 14780 | |
8d138742 | 14781 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14782 | available_tags='' |
14783 | ||
14784 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14785 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 14786 | |
8d138742 | 14787 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14788 | |
8d138742 CE |
14789 | # Which release of libtool.m4 was used? |
14790 | macro_version=$macro_version | |
14791 | macro_revision=$macro_revision | |
d9898ee8 | 14792 | |
8d138742 CE |
14793 | # Whether or not to build shared libraries. |
14794 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14795 | |
8d138742 CE |
14796 | # Whether or not to build static libraries. |
14797 | build_old_libs=$enable_static | |
d9898ee8 | 14798 | |
8d138742 CE |
14799 | # What type of objects to build. |
14800 | pic_mode=$pic_mode | |
d9898ee8 | 14801 | |
8d138742 CE |
14802 | # Whether or not to optimize for fast installation. |
14803 | fast_install=$enable_fast_install | |
d9898ee8 | 14804 | |
d50284c4 CE |
14805 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14806 | shared_archive_member_spec=$shared_archive_member_spec | |
14807 | ||
b0322a85 CE |
14808 | # Shell to use when invoking shell scripts. |
14809 | SHELL=$lt_SHELL | |
14810 | ||
14811 | # An echo program that protects backslashes. | |
14812 | ECHO=$lt_ECHO | |
14813 | ||
14814 | # The PATH separator for the build system. | |
14815 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14816 | ||
8d138742 CE |
14817 | # The host system. |
14818 | host_alias=$host_alias | |
14819 | host=$host | |
14820 | host_os=$host_os | |
d9898ee8 | 14821 | |
8d138742 CE |
14822 | # The build system. |
14823 | build_alias=$build_alias | |
14824 | build=$build | |
14825 | build_os=$build_os | |
d9898ee8 | 14826 | |
8d138742 CE |
14827 | # A sed program that does not truncate output. |
14828 | SED=$lt_SED | |
d9898ee8 | 14829 | |
8d138742 CE |
14830 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14831 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 14832 | |
8d138742 CE |
14833 | # A grep program that handles long lines. |
14834 | GREP=$lt_GREP | |
dd184caf | 14835 | |
8d138742 CE |
14836 | # An ERE matcher. |
14837 | EGREP=$lt_EGREP | |
dd184caf | 14838 | |
8d138742 CE |
14839 | # A literal string matcher. |
14840 | FGREP=$lt_FGREP | |
dd184caf | 14841 | |
8d138742 CE |
14842 | # A BSD- or MS-compatible name lister. |
14843 | NM=$lt_NM | |
dd184caf | 14844 | |
8d138742 CE |
14845 | # Whether we need soft or hard links. |
14846 | LN_S=$lt_LN_S | |
dd184caf | 14847 | |
8d138742 CE |
14848 | # What is the maximum length of a command? |
14849 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 14850 | |
8d138742 CE |
14851 | # Object file suffix (normally "o"). |
14852 | objext=$ac_objext | |
d9898ee8 | 14853 | |
8d138742 CE |
14854 | # Executable file suffix (normally ""). |
14855 | exeext=$exeext | |
d9898ee8 | 14856 | |
8d138742 CE |
14857 | # whether the shell understands "unset". |
14858 | lt_unset=$lt_unset | |
dd184caf | 14859 | |
8d138742 CE |
14860 | # turn spaces into newlines. |
14861 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14862 | |
8d138742 CE |
14863 | # turn newlines into spaces. |
14864 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 14865 | |
b0322a85 CE |
14866 | # convert \$build file names to \$host format. |
14867 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14868 | ||
14869 | # convert \$build files to toolchain format. | |
14870 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 14871 | |
8d138742 CE |
14872 | # An object symbol dumper. |
14873 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14874 | |
8d138742 CE |
14875 | # Method to check whether dependent libraries are shared objects. |
14876 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14877 | |
b0322a85 | 14878 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14879 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14880 | |
b0322a85 CE |
14881 | # How to find potential files when deplibs_check_method = "file_magic". |
14882 | file_magic_glob=$lt_file_magic_glob | |
14883 | ||
14884 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14885 | want_nocaseglob=$lt_want_nocaseglob | |
14886 | ||
14887 | # DLL creation program. | |
14888 | DLLTOOL=$lt_DLLTOOL | |
14889 | ||
14890 | # Command to associate shared and link libraries. | |
14891 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14892 | ||
8d138742 CE |
14893 | # The archiver. |
14894 | AR=$lt_AR | |
b0322a85 CE |
14895 | |
14896 | # Flags to create an archive. | |
8d138742 | 14897 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14898 | |
b0322a85 CE |
14899 | # How to feed a file listing to the archiver. |
14900 | archiver_list_spec=$lt_archiver_list_spec | |
14901 | ||
8d138742 CE |
14902 | # A symbol stripping program. |
14903 | STRIP=$lt_STRIP | |
d9898ee8 | 14904 | |
8d138742 CE |
14905 | # Commands used to install an old-style archive. |
14906 | RANLIB=$lt_RANLIB | |
14907 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14908 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14909 | |
b0322a85 CE |
14910 | # Whether to use a lock for old archive extraction. |
14911 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14912 | ||
8d138742 CE |
14913 | # A C compiler. |
14914 | LTCC=$lt_CC | |
d9898ee8 | 14915 | |
8d138742 CE |
14916 | # LTCC compiler flags. |
14917 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14918 | |
8d138742 CE |
14919 | # Take the output of nm and produce a listing of raw symbols and C names. |
14920 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14921 | |
8d138742 CE |
14922 | # Transform the output of nm in a proper C declaration. |
14923 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14924 | |
d50284c4 CE |
14925 | # Transform the output of nm into a list of symbols to manually relocate. |
14926 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14927 | ||
8d138742 CE |
14928 | # Transform the output of nm in a C name address pair. |
14929 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 14930 | |
8d138742 CE |
14931 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14932 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 14933 | |
d50284c4 CE |
14934 | # The name lister interface. |
14935 | nm_interface=$lt_lt_cv_nm_interface | |
14936 | ||
b0322a85 CE |
14937 | # Specify filename containing input files for \$NM. |
14938 | nm_file_list_spec=$lt_nm_file_list_spec | |
dd184caf | 14939 | |
d50284c4 | 14940 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14941 | lt_sysroot=$lt_sysroot |
8d138742 | 14942 | |
d50284c4 CE |
14943 | # Command to truncate a binary pipe. |
14944 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14945 | ||
b0322a85 CE |
14946 | # The name of the directory that contains temporary libtool files. |
14947 | objdir=$objdir | |
d9898ee8 | 14948 | |
8d138742 CE |
14949 | # Used to examine libraries when file_magic_cmd begins with "file". |
14950 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14951 | |
8d138742 CE |
14952 | # Must we lock files when doing compilation? |
14953 | need_locks=$lt_need_locks | |
d9898ee8 | 14954 | |
b0322a85 CE |
14955 | # Manifest tool. |
14956 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14957 | ||
8d138742 CE |
14958 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14959 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14960 | |
8d138742 CE |
14961 | # Tool to change global to local symbols on Mac OS X. |
14962 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14963 | |
8d138742 CE |
14964 | # Tool to manipulate fat objects and archives on Mac OS X. |
14965 | LIPO=$lt_LIPO | |
d9898ee8 | 14966 | |
8d138742 CE |
14967 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14968 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14969 | |
8d138742 CE |
14970 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14971 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14972 | |
8d138742 CE |
14973 | # Old archive suffix (normally "a"). |
14974 | libext=$libext | |
d9898ee8 | 14975 | |
8d138742 CE |
14976 | # Shared library suffix (normally ".so"). |
14977 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14978 | |
8d138742 CE |
14979 | # The commands to extract the exported symbol list from a shared archive. |
14980 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14981 | |
8d138742 CE |
14982 | # Variables whose values should be saved in libtool wrapper scripts and |
14983 | # restored at link time. | |
14984 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14985 | |
8d138742 CE |
14986 | # Do we need the "lib" prefix for modules? |
14987 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14988 | |
8d138742 CE |
14989 | # Do we need a version for libraries? |
14990 | need_version=$need_version | |
d9898ee8 | 14991 | |
8d138742 CE |
14992 | # Library versioning type. |
14993 | version_type=$version_type | |
d9898ee8 | 14994 | |
8d138742 CE |
14995 | # Shared library runtime path variable. |
14996 | runpath_var=$runpath_var | |
d9898ee8 | 14997 | |
8d138742 CE |
14998 | # Shared library path variable. |
14999 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 15000 | |
8d138742 CE |
15001 | # Is shlibpath searched before the hard-coded library search path? |
15002 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 15003 | |
8d138742 CE |
15004 | # Format of library name prefix. |
15005 | libname_spec=$lt_libname_spec | |
d9898ee8 | 15006 | |
8d138742 CE |
15007 | # List of archive names. First name is the real one, the rest are links. |
15008 | # The last name is the one that the linker finds with -lNAME | |
15009 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 15010 | |
8d138742 CE |
15011 | # The coded name of the library, if different from the real name. |
15012 | soname_spec=$lt_soname_spec | |
d9898ee8 | 15013 | |
b0322a85 CE |
15014 | # Permission mode override for installation of shared libraries. |
15015 | install_override_mode=$lt_install_override_mode | |
15016 | ||
8d138742 CE |
15017 | # Command to use after installation of a shared archive. |
15018 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 15019 | |
8d138742 CE |
15020 | # Command to use after uninstallation of a shared archive. |
15021 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 15022 | |
8d138742 CE |
15023 | # Commands used to finish a libtool library installation in a directory. |
15024 | finish_cmds=$lt_finish_cmds | |
dd184caf | 15025 | |
8d138742 CE |
15026 | # As "finish_cmds", except a single script fragment to be evaled but |
15027 | # not shown. | |
15028 | finish_eval=$lt_finish_eval | |
d9898ee8 | 15029 | |
8d138742 CE |
15030 | # Whether we should hardcode library paths into libraries. |
15031 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 15032 | |
8d138742 CE |
15033 | # Compile-time system search path for libraries. |
15034 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 15035 | |
d50284c4 CE |
15036 | # Detected run-time system search path for libraries. |
15037 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
15038 | ||
15039 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
15040 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 15041 | |
8d138742 CE |
15042 | # Whether dlopen is supported. |
15043 | dlopen_support=$enable_dlopen | |
d9898ee8 | 15044 | |
8d138742 CE |
15045 | # Whether dlopen of programs is supported. |
15046 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 15047 | |
8d138742 CE |
15048 | # Whether dlopen of statically linked programs is supported. |
15049 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 15050 | |
8d138742 CE |
15051 | # Commands to strip libraries. |
15052 | old_striplib=$lt_old_striplib | |
15053 | striplib=$lt_striplib | |
d9898ee8 | 15054 | |
d9898ee8 | 15055 | |
8d138742 CE |
15056 | # The linker used to build libraries. |
15057 | LD=$lt_LD | |
d9898ee8 | 15058 | |
b0322a85 CE |
15059 | # How to create reloadable object files. |
15060 | reload_flag=$lt_reload_flag | |
15061 | reload_cmds=$lt_reload_cmds | |
15062 | ||
8d138742 CE |
15063 | # Commands used to build an old-style archive. |
15064 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 15065 | |
8d138742 CE |
15066 | # A language specific compiler. |
15067 | CC=$lt_compiler | |
d9898ee8 | 15068 | |
8d138742 CE |
15069 | # Is the compiler the GNU compiler? |
15070 | with_gcc=$GCC | |
dd184caf | 15071 | |
8d138742 CE |
15072 | # Compiler flag to turn off builtin functions. |
15073 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 15074 | |
8d138742 CE |
15075 | # Additional compiler flags for building library objects. |
15076 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 15077 | |
b0322a85 CE |
15078 | # How to pass a linker flag through the compiler. |
15079 | wl=$lt_lt_prog_compiler_wl | |
15080 | ||
8d138742 CE |
15081 | # Compiler flag to prevent dynamic linking. |
15082 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 15083 | |
8d138742 CE |
15084 | # Does compiler simultaneously support -c and -o options? |
15085 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15086 | ||
15087 | # Whether or not to add -lc for building shared libraries. | |
15088 | build_libtool_need_lc=$archive_cmds_need_lc | |
15089 | ||
15090 | # Whether or not to disallow shared libs when runtime libs are static. | |
15091 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15092 | ||
15093 | # Compiler flag to allow reflexive dlopens. | |
15094 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 15095 | |
8d138742 CE |
15096 | # Compiler flag to generate shared objects directly from archives. |
15097 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 15098 | |
8d138742 CE |
15099 | # Whether the compiler copes with passing no objects directly. |
15100 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 15101 | |
8d138742 CE |
15102 | # Create an old-style archive from a shared archive. |
15103 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 15104 | |
8d138742 CE |
15105 | # Create a temporary old-style archive to link instead of a shared archive. |
15106 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 15107 | |
8d138742 CE |
15108 | # Commands used to build a shared archive. |
15109 | archive_cmds=$lt_archive_cmds | |
15110 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 15111 | |
8d138742 CE |
15112 | # Commands used to build a loadable module if different from building |
15113 | # a shared archive. | |
15114 | module_cmds=$lt_module_cmds | |
15115 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 15116 | |
8d138742 CE |
15117 | # Whether we are building with GNU ld or not. |
15118 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 15119 | |
8d138742 CE |
15120 | # Flag that allows shared libraries with undefined symbols to be built. |
15121 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 15122 | |
8d138742 CE |
15123 | # Flag that enforces no undefined symbols. |
15124 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 15125 | |
8d138742 CE |
15126 | # Flag to hardcode \$libdir into a binary during linking. |
15127 | # This must work even if \$libdir does not exist | |
15128 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 15129 | |
8d138742 CE |
15130 | # Whether we need a single "-rpath" flag with a separated argument. |
15131 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 15132 | |
d50284c4 | 15133 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
15134 | # DIR into the resulting binary. |
15135 | hardcode_direct=$hardcode_direct | |
dd184caf | 15136 | |
d50284c4 | 15137 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 15138 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 15139 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
15140 | # library is relocated. |
15141 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 15142 | |
8d138742 CE |
15143 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15144 | # into the resulting binary. | |
15145 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 15146 | |
8d138742 CE |
15147 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15148 | # into the resulting binary. | |
15149 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 15150 | |
8d138742 CE |
15151 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15152 | # into the library and all subsequent libraries and executables linked | |
15153 | # against it. | |
15154 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 15155 | |
8d138742 CE |
15156 | # Set to yes if linker adds runtime paths of dependent libraries |
15157 | # to runtime path list. | |
15158 | inherit_rpath=$inherit_rpath | |
dd184caf | 15159 | |
8d138742 CE |
15160 | # Whether libtool must link a program against all its dependency libraries. |
15161 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 15162 | |
8d138742 CE |
15163 | # Set to "yes" if exported symbols are required. |
15164 | always_export_symbols=$always_export_symbols | |
dd184caf | 15165 | |
8d138742 CE |
15166 | # The commands to list exported symbols. |
15167 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 15168 | |
8d138742 CE |
15169 | # Symbols that should not be listed in the preloaded symbols. |
15170 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 15171 | |
8d138742 CE |
15172 | # Symbols that must always be exported. |
15173 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 15174 | |
8d138742 CE |
15175 | # Commands necessary for linking programs (against libraries) with templates. |
15176 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 15177 | |
b0322a85 CE |
15178 | # Commands necessary for finishing linking programs. |
15179 | postlink_cmds=$lt_postlink_cmds | |
15180 | ||
8d138742 CE |
15181 | # Specify filename containing input files. |
15182 | file_list_spec=$lt_file_list_spec | |
15183 | ||
15184 | # How to hardcode a shared library path into an executable. | |
15185 | hardcode_action=$hardcode_action | |
d9898ee8 | 15186 | |
8d138742 | 15187 | # ### END LIBTOOL CONFIG |
d9898ee8 | 15188 | |
d50284c4 CE |
15189 | _LT_EOF |
15190 | ||
15191 | cat <<'_LT_EOF' >> "$cfgfile" | |
15192 | ||
15193 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
15194 | ||
15195 | # func_munge_path_list VARIABLE PATH | |
15196 | # ----------------------------------- | |
15197 | # VARIABLE is name of variable containing _space_ separated list of | |
15198 | # directories to be munged by the contents of PATH, which is string | |
15199 | # having a format: | |
15200 | # "DIR[:DIR]:" | |
15201 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
15202 | # ":DIR[:DIR]" | |
15203 | # string "DIR[ DIR]" will be appended to VARIABLE | |
15204 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
15205 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
15206 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
15207 | # "DIR[:DIR]" | |
15208 | # VARIABLE will be replaced by "DIR[ DIR]" | |
15209 | func_munge_path_list () | |
15210 | { | |
15211 | case x$2 in | |
15212 | x) | |
15213 | ;; | |
15214 | *:) | |
15215 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
15216 | ;; | |
15217 | x:*) | |
15218 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
15219 | ;; | |
15220 | *::*) | |
15221 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
15222 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
15223 | ;; | |
15224 | *) | |
15225 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
15226 | ;; | |
15227 | esac | |
15228 | } | |
15229 | ||
15230 | ||
15231 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
15232 | func_cc_basename () | |
15233 | { | |
15234 | for cc_temp in $*""; do | |
15235 | case $cc_temp in | |
15236 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15237 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15238 | \-*) ;; | |
15239 | *) break;; | |
15240 | esac | |
15241 | done | |
15242 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
15243 | } | |
15244 | ||
15245 | ||
15246 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
15247 | ||
8d138742 | 15248 | _LT_EOF |
d9898ee8 | 15249 | |
8d138742 CE |
15250 | case $host_os in |
15251 | aix3*) | |
15252 | cat <<\_LT_EOF >> "$cfgfile" | |
15253 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15254 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15255 | # vanish in a puff of smoke. | |
d50284c4 | 15256 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
15257 | COLLECT_NAMES= |
15258 | export COLLECT_NAMES | |
15259 | fi | |
15260 | _LT_EOF | |
15261 | ;; | |
dd184caf | 15262 | esac |
8d138742 CE |
15263 | |
15264 | ||
d50284c4 | 15265 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
15266 | |
15267 | ||
15268 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15269 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15270 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15271 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
15272 | sed '$q' "$ltmain" >> "$cfgfile" \ |
15273 | || (rm -f "$cfgfile"; exit 1) | |
15274 | ||
b0322a85 | 15275 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
15276 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15277 | chmod +x "$ofile" | |
15278 | ||
d9898ee8 | 15279 | ;; |
dd184caf | 15280 | |
d9898ee8 | 15281 | esac |
dd184caf | 15282 | done # for ac_tag |
d9898ee8 | 15283 | |
d9898ee8 | 15284 | |
b0322a85 | 15285 | as_fn_exit 0 |
d9898ee8 | 15286 | _ACEOF |
d9898ee8 | 15287 | ac_clean_files=$ac_clean_files_save |
15288 | ||
8d138742 | 15289 | test $ac_write_fail = 0 || |
b0322a85 | 15290 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 15291 | |
d9898ee8 | 15292 | |
15293 | # configure is writing to config.log, and then calls config.status. | |
15294 | # config.status does its own redirection, appending to config.log. | |
15295 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15296 | # by configure, so config.status won't be able to write to it; its | |
15297 | # output is simply discarded. So we exec the FD to /dev/null, | |
15298 | # effectively closing config.log, so it can be properly (re)opened and | |
15299 | # appended to by config.status. When coming back to configure, we | |
15300 | # need to make the FD available again. | |
15301 | if test "$no_create" != yes; then | |
15302 | ac_cs_success=: | |
15303 | ac_config_status_args= | |
15304 | test "$silent" = yes && | |
15305 | ac_config_status_args="$ac_config_status_args --quiet" | |
15306 | exec 5>/dev/null | |
15307 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15308 | exec 5>>config.log | |
15309 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15310 | # would make configure fail if this is the last instruction. | |
b0322a85 | 15311 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 15312 | fi |
8d138742 | 15313 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 15314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
15315 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15316 | fi | |
d9898ee8 | 15317 |