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 random128 0.10. |
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 | test \$(( 1 + 1 )) = 2 || exit 1 | |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
dd184caf | 212 | else |
b0322a85 | 213 | as_have_required=no |
dd184caf | 214 | fi |
b0322a85 | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
dd184caf | 216 | |
dd184caf | 217 | else |
b0322a85 CE |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
d9898ee8 | 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
224 | as_found=: |
225 | case $as_dir in #( | |
d9898ee8 | 226 | /*) |
dd184caf | 227 | for as_base in sh bash ksh sh5; do |
b0322a85 CE |
228 | # Try only shells that exist, to save several forks. |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
dd184caf | 237 | done;; |
238 | esac | |
b0322a85 | 239 | as_found=false |
dd184caf | 240 | done |
b0322a85 CE |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
dd184caf | 245 | IFS=$as_save_IFS |
246 | ||
247 | ||
b0322a85 CE |
248 | if test "x$CONFIG_SHELL" != x; then : |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
dd184caf | 262 | esac |
b0322a85 CE |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
dd184caf | 284 | fi |
dd184caf | 285 | fi |
dd184caf | 286 | fi |
b0322a85 CE |
287 | SHELL=${CONFIG_SHELL-/bin/sh} |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
dd184caf | 292 | |
b0322a85 CE |
293 | ## --------------------- ## |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
dd184caf | 304 | |
b0322a85 CE |
305 | # as_fn_set_status STATUS |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
dd184caf | 312 | |
b0322a85 CE |
313 | # as_fn_exit STATUS |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
dd184caf | 328 | |
b0322a85 CE |
329 | case $as_dir in #( |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 367 | |
dd184caf | 368 | |
b0322a85 | 369 | } # as_fn_mkdir_p |
dd184caf | 370 | |
b0322a85 CE |
371 | # as_fn_executable_p FILE |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
dd184caf | 412 | |
413 | ||
b0322a85 CE |
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
dd184caf | 429 | |
b0322a85 CE |
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
dd184caf | 433 | else |
b0322a85 | 434 | as_expr=false |
dd184caf | 435 | fi |
436 | ||
b0322a85 CE |
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 | as_basename=basename | |
dd184caf | 439 | else |
b0322a85 | 440 | as_basename=false |
dd184caf | 441 | fi |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
dd184caf | 445 | else |
b0322a85 | 446 | as_dirname=false |
dd184caf | 447 | fi |
448 | ||
b0322a85 CE |
449 | as_me=`$as_basename -- "$0" || |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
dd184caf | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
dd184caf | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
dd184caf | 481 | sed -n ' |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
d9898ee8 | 485 | sed ' |
dd184caf | 486 | s/[$]LINENO.*/&-/ |
487 | t lineno | |
488 | b | |
489 | :lineno | |
d9898ee8 | 490 | N |
dd184caf | 491 | :loop |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 493 | t loop |
dd184caf | 494 | s/-\n.*// |
d9898ee8 | 495 | ' >$as_me.lineno && |
dd184caf | 496 | chmod +x "$as_me.lineno" || |
b0322a85 | 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
d9898ee8 | 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
504 | # (the dirname of $[0] is not the place where we might find the | |
dd184caf | 505 | # original and so on. Autoconf is especially sensitive to this). |
506 | . "./$as_me.lineno" | |
d9898ee8 | 507 | # Exit status is that of the last command. |
508 | exit | |
509 | } | |
510 | ||
dd184caf | 511 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 512 | case `echo -n x` in #((((( |
dd184caf | 513 | -n*) |
b0322a85 | 514 | case `echo 'xy\c'` in |
dd184caf | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
516 | xy) ECHO_C='\c';; |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
dd184caf | 519 | esac;; |
520 | *) | |
521 | ECHO_N='-n';; | |
d9898ee8 | 522 | esac |
d9898ee8 | 523 | |
524 | rm -f conf$$ conf$$.exe conf$$.file | |
dd184caf | 525 | if test -d conf$$.dir; then |
526 | rm -f conf$$.dir/conf$$.file | |
527 | else | |
528 | rm -f conf$$.dir | |
8d138742 CE |
529 | mkdir conf$$.dir 2>/dev/null |
530 | fi | |
531 | if (echo >conf$$.file) 2>/dev/null; then | |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 537 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 539 | as_ln_s='cp -pR' |
8d138742 CE |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
541 | as_ln_s=ln | |
542 | else | |
b0322a85 | 543 | as_ln_s='cp -pR' |
8d138742 | 544 | fi |
d9898ee8 | 545 | else |
b0322a85 | 546 | as_ln_s='cp -pR' |
d9898ee8 | 547 | fi |
dd184caf | 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 550 | |
551 | if mkdir -p . 2>/dev/null; then | |
b0322a85 | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
d9898ee8 | 553 | else |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
556 | fi | |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 560 | |
561 | # Sed expression to map a string onto a valid CPP name. | |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | # Sed expression to map a string onto a valid variable name. | |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
566 | ||
d9898ee8 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
568 | ||
d9898ee8 | 569 | |
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
d9898ee8 | 573 | # Name of the host. |
b0322a85 | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 575 | # so uname gets run too. |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | ||
d9898ee8 | 578 | # |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
dd184caf | 582 | ac_clean_files= |
d9898ee8 | 583 | ac_config_libobj_dir=. |
dd184caf | 584 | LIBOBJS= |
d9898ee8 | 585 | cross_compiling=no |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
d9898ee8 | 589 | |
d9898ee8 | 590 | # Identity of this package. |
591 | PACKAGE_NAME='random128' | |
592 | PACKAGE_TARNAME='random128' | |
593 | PACKAGE_VERSION='0.10' | |
594 | PACKAGE_STRING='random128 0.10' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="random128.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
dd184caf | 602 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 603 | # include <sys/types.h> |
604 | #endif | |
dd184caf | 605 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 606 | # include <sys/stat.h> |
607 | #endif | |
dd184caf | 608 | #ifdef STDC_HEADERS |
d9898ee8 | 609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
dd184caf | 612 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
dd184caf | 616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
dd184caf | 622 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 623 | # include <strings.h> |
624 | #endif | |
dd184caf | 625 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 626 | # include <inttypes.h> |
d9898ee8 | 627 | #endif |
dd184caf | 628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
8d138742 CE |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
d50284c4 | 639 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
640 | OTOOL64 |
641 | OTOOL | |
642 | LIPO | |
643 | NMEDIT | |
644 | DSYMUTIL | |
b0322a85 | 645 | MANIFEST_TOOL |
dd184caf | 646 | RANLIB |
b0322a85 | 647 | ac_ct_AR |
8d138742 | 648 | AR |
b0322a85 | 649 | DLLTOOL |
8d138742 CE |
650 | OBJDUMP |
651 | NM | |
652 | ac_ct_DUMPBIN | |
653 | DUMPBIN | |
654 | LD | |
655 | FGREP | |
656 | SED | |
657 | host_os | |
658 | host_vendor | |
659 | host_cpu | |
660 | host | |
661 | build_os | |
662 | build_vendor | |
663 | build_cpu | |
664 | build | |
dd184caf | 665 | LIBTOOL |
8d138742 CE |
666 | W |
667 | PS | |
668 | LN_S | |
669 | EGREP | |
670 | GREP | |
671 | CPP | |
672 | am__fastdepCC_FALSE | |
673 | am__fastdepCC_TRUE | |
674 | CCDEPMODE | |
b0322a85 | 675 | am__nodep |
8d138742 CE |
676 | AMDEPBACKSLASH |
677 | AMDEP_FALSE | |
678 | AMDEP_TRUE | |
679 | am__quote | |
680 | am__include | |
681 | DEPDIR | |
682 | OBJEXT | |
683 | EXEEXT | |
684 | ac_ct_CC | |
685 | CPPFLAGS | |
686 | LDFLAGS | |
687 | CFLAGS | |
688 | CC | |
b0322a85 CE |
689 | AM_BACKSLASH |
690 | AM_DEFAULT_VERBOSITY | |
691 | AM_DEFAULT_V | |
692 | AM_V | |
8d138742 CE |
693 | am__untar |
694 | am__tar | |
695 | AMTAR | |
696 | am__leading_dot | |
697 | SET_MAKE | |
698 | AWK | |
699 | mkdir_p | |
700 | MKDIR_P | |
701 | INSTALL_STRIP_PROGRAM | |
702 | STRIP | |
703 | install_sh | |
704 | MAKEINFO | |
705 | AUTOHEADER | |
706 | AUTOMAKE | |
707 | AUTOCONF | |
708 | ACLOCAL | |
709 | VERSION | |
710 | PACKAGE | |
711 | CYGPATH_W | |
712 | am__isrc | |
713 | INSTALL_DATA | |
714 | INSTALL_SCRIPT | |
715 | INSTALL_PROGRAM | |
716 | target_alias | |
717 | host_alias | |
718 | build_alias | |
719 | LIBS | |
720 | ECHO_T | |
721 | ECHO_N | |
722 | ECHO_C | |
723 | DEFS | |
724 | mandir | |
725 | localedir | |
726 | libdir | |
727 | psdir | |
728 | pdfdir | |
729 | dvidir | |
730 | htmldir | |
731 | infodir | |
732 | docdir | |
733 | oldincludedir | |
734 | includedir | |
735 | localstatedir | |
736 | sharedstatedir | |
737 | sysconfdir | |
738 | datadir | |
739 | datarootdir | |
740 | libexecdir | |
741 | sbindir | |
742 | bindir | |
743 | program_transform_name | |
744 | prefix | |
745 | exec_prefix | |
b0322a85 | 746 | PACKAGE_URL |
8d138742 CE |
747 | PACKAGE_BUGREPORT |
748 | PACKAGE_STRING | |
749 | PACKAGE_VERSION | |
750 | PACKAGE_TARNAME | |
751 | PACKAGE_NAME | |
752 | PATH_SEPARATOR | |
753 | SHELL' | |
d9898ee8 | 754 | ac_subst_files='' |
8d138742 CE |
755 | ac_user_opts=' |
756 | enable_option_checking | |
b0322a85 | 757 | enable_silent_rules |
8d138742 CE |
758 | enable_dependency_tracking |
759 | enable_shared | |
760 | enable_static | |
761 | with_pic | |
762 | enable_fast_install | |
d50284c4 | 763 | with_aix_soname |
8d138742 | 764 | with_gnu_ld |
b0322a85 | 765 | with_sysroot |
8d138742 | 766 | enable_libtool_lock |
b0322a85 | 767 | enable_largefile |
8d138742 CE |
768 | with_random |
769 | ' | |
dd184caf | 770 | ac_precious_vars='build_alias |
771 | host_alias | |
772 | target_alias | |
773 | CC | |
774 | CFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
777 | CPPFLAGS | |
d50284c4 CE |
778 | CPP |
779 | LT_SYS_LIBRARY_PATH' | |
dd184caf | 780 | |
d9898ee8 | 781 | |
782 | # Initialize some variables set by options. | |
783 | ac_init_help= | |
784 | ac_init_version=false | |
8d138742 CE |
785 | ac_unrecognized_opts= |
786 | ac_unrecognized_sep= | |
d9898ee8 | 787 | # The variables have the same names as the options, with |
788 | # dashes changed to underlines. | |
789 | cache_file=/dev/null | |
790 | exec_prefix=NONE | |
791 | no_create= | |
792 | no_recursion= | |
793 | prefix=NONE | |
794 | program_prefix=NONE | |
795 | program_suffix=NONE | |
796 | program_transform_name=s,x,x, | |
797 | silent= | |
798 | site= | |
799 | srcdir= | |
800 | verbose= | |
801 | x_includes=NONE | |
802 | x_libraries=NONE | |
803 | ||
804 | # Installation directory options. | |
805 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
806 | # and all the variables that are supposed to be based on exec_prefix | |
807 | # by default will actually change. | |
808 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 809 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 810 | bindir='${exec_prefix}/bin' |
811 | sbindir='${exec_prefix}/sbin' | |
812 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 813 | datarootdir='${prefix}/share' |
814 | datadir='${datarootdir}' | |
d9898ee8 | 815 | sysconfdir='${prefix}/etc' |
816 | sharedstatedir='${prefix}/com' | |
817 | localstatedir='${prefix}/var' | |
d9898ee8 | 818 | includedir='${prefix}/include' |
819 | oldincludedir='/usr/include' | |
dd184caf | 820 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
821 | infodir='${datarootdir}/info' | |
822 | htmldir='${docdir}' | |
823 | dvidir='${docdir}' | |
824 | pdfdir='${docdir}' | |
825 | psdir='${docdir}' | |
826 | libdir='${exec_prefix}/lib' | |
827 | localedir='${datarootdir}/locale' | |
828 | mandir='${datarootdir}/man' | |
d9898ee8 | 829 | |
830 | ac_prev= | |
dd184caf | 831 | ac_dashdash= |
d9898ee8 | 832 | for ac_option |
833 | do | |
834 | # If the previous option needs an argument, assign it. | |
835 | if test -n "$ac_prev"; then | |
dd184caf | 836 | eval $ac_prev=\$ac_option |
d9898ee8 | 837 | ac_prev= |
838 | continue | |
839 | fi | |
840 | ||
dd184caf | 841 | case $ac_option in |
b0322a85 CE |
842 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
843 | *=) ac_optarg= ;; | |
844 | *) ac_optarg=yes ;; | |
dd184caf | 845 | esac |
d9898ee8 | 846 | |
847 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
848 | ||
dd184caf | 849 | case $ac_dashdash$ac_option in |
850 | --) | |
851 | ac_dashdash=yes ;; | |
d9898ee8 | 852 | |
853 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
854 | ac_prev=bindir ;; | |
855 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
856 | bindir=$ac_optarg ;; | |
857 | ||
858 | -build | --build | --buil | --bui | --bu) | |
859 | ac_prev=build_alias ;; | |
860 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
861 | build_alias=$ac_optarg ;; | |
862 | ||
863 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
864 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
865 | ac_prev=cache_file ;; | |
866 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
867 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
868 | cache_file=$ac_optarg ;; | |
869 | ||
870 | --config-cache | -C) | |
871 | cache_file=config.cache ;; | |
872 | ||
dd184caf | 873 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 874 | ac_prev=datadir ;; |
dd184caf | 875 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 876 | datadir=$ac_optarg ;; |
877 | ||
dd184caf | 878 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
879 | | --dataroo | --dataro | --datar) | |
880 | ac_prev=datarootdir ;; | |
881 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
882 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
883 | datarootdir=$ac_optarg ;; | |
884 | ||
d9898ee8 | 885 | -disable-* | --disable-*) |
8d138742 | 886 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 887 | # Reject names that are not valid shell variable names. |
8d138742 | 888 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 889 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
890 | ac_useropt_orig=$ac_useropt |
891 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
892 | case $ac_user_opts in | |
893 | *" | |
894 | "enable_$ac_useropt" | |
895 | "*) ;; | |
896 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
897 | ac_unrecognized_sep=', ';; | |
898 | esac | |
899 | eval enable_$ac_useropt=no ;; | |
dd184caf | 900 | |
901 | -docdir | --docdir | --docdi | --doc | --do) | |
902 | ac_prev=docdir ;; | |
903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
904 | docdir=$ac_optarg ;; | |
905 | ||
906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
907 | ac_prev=dvidir ;; | |
908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
909 | dvidir=$ac_optarg ;; | |
d9898ee8 | 910 | |
911 | -enable-* | --enable-*) | |
8d138742 | 912 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 913 | # Reject names that are not valid shell variable names. |
8d138742 | 914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 915 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
916 | ac_useropt_orig=$ac_useropt |
917 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
918 | case $ac_user_opts in | |
919 | *" | |
920 | "enable_$ac_useropt" | |
921 | "*) ;; | |
922 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
923 | ac_unrecognized_sep=', ';; | |
924 | esac | |
925 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 926 | |
927 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
928 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
929 | | --exec | --exe | --ex) | |
930 | ac_prev=exec_prefix ;; | |
931 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
932 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
933 | | --exec=* | --exe=* | --ex=*) | |
934 | exec_prefix=$ac_optarg ;; | |
935 | ||
936 | -gas | --gas | --ga | --g) | |
937 | # Obsolete; use --with-gas. | |
938 | with_gas=yes ;; | |
939 | ||
940 | -help | --help | --hel | --he | -h) | |
941 | ac_init_help=long ;; | |
942 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
943 | ac_init_help=recursive ;; | |
944 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
945 | ac_init_help=short ;; | |
946 | ||
947 | -host | --host | --hos | --ho) | |
948 | ac_prev=host_alias ;; | |
949 | -host=* | --host=* | --hos=* | --ho=*) | |
950 | host_alias=$ac_optarg ;; | |
951 | ||
dd184caf | 952 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
953 | ac_prev=htmldir ;; | |
954 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
955 | | --ht=*) | |
956 | htmldir=$ac_optarg ;; | |
957 | ||
d9898ee8 | 958 | -includedir | --includedir | --includedi | --included | --include \ |
959 | | --includ | --inclu | --incl | --inc) | |
960 | ac_prev=includedir ;; | |
961 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
962 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
963 | includedir=$ac_optarg ;; | |
964 | ||
965 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
966 | ac_prev=infodir ;; | |
967 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
968 | infodir=$ac_optarg ;; | |
969 | ||
970 | -libdir | --libdir | --libdi | --libd) | |
971 | ac_prev=libdir ;; | |
972 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
973 | libdir=$ac_optarg ;; | |
974 | ||
975 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
976 | | --libexe | --libex | --libe) | |
977 | ac_prev=libexecdir ;; | |
978 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
979 | | --libexe=* | --libex=* | --libe=*) | |
980 | libexecdir=$ac_optarg ;; | |
981 | ||
dd184caf | 982 | -localedir | --localedir | --localedi | --localed | --locale) |
983 | ac_prev=localedir ;; | |
984 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
985 | localedir=$ac_optarg ;; | |
986 | ||
d9898ee8 | 987 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 988 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 989 | ac_prev=localstatedir ;; |
990 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 991 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 992 | localstatedir=$ac_optarg ;; |
993 | ||
994 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
995 | ac_prev=mandir ;; | |
996 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
997 | mandir=$ac_optarg ;; | |
998 | ||
999 | -nfp | --nfp | --nf) | |
1000 | # Obsolete; use --without-fp. | |
1001 | with_fp=no ;; | |
1002 | ||
1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1004 | | --no-cr | --no-c | -n) | |
1005 | no_create=yes ;; | |
1006 | ||
1007 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1008 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1009 | no_recursion=yes ;; | |
1010 | ||
1011 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1012 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1013 | | --oldin | --oldi | --old | --ol | --o) | |
1014 | ac_prev=oldincludedir ;; | |
1015 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1016 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1017 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1018 | oldincludedir=$ac_optarg ;; | |
1019 | ||
1020 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1021 | ac_prev=prefix ;; | |
1022 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1023 | prefix=$ac_optarg ;; | |
1024 | ||
1025 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1026 | | --program-pre | --program-pr | --program-p) | |
1027 | ac_prev=program_prefix ;; | |
1028 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1029 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1030 | program_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1033 | | --program-suf | --program-su | --program-s) | |
1034 | ac_prev=program_suffix ;; | |
1035 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1036 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1037 | program_suffix=$ac_optarg ;; | |
1038 | ||
1039 | -program-transform-name | --program-transform-name \ | |
1040 | | --program-transform-nam | --program-transform-na \ | |
1041 | | --program-transform-n | --program-transform- \ | |
1042 | | --program-transform | --program-transfor \ | |
1043 | | --program-transfo | --program-transf \ | |
1044 | | --program-trans | --program-tran \ | |
1045 | | --progr-tra | --program-tr | --program-t) | |
1046 | ac_prev=program_transform_name ;; | |
1047 | -program-transform-name=* | --program-transform-name=* \ | |
1048 | | --program-transform-nam=* | --program-transform-na=* \ | |
1049 | | --program-transform-n=* | --program-transform-=* \ | |
1050 | | --program-transform=* | --program-transfor=* \ | |
1051 | | --program-transfo=* | --program-transf=* \ | |
1052 | | --program-trans=* | --program-tran=* \ | |
1053 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1054 | program_transform_name=$ac_optarg ;; | |
1055 | ||
dd184caf | 1056 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1057 | ac_prev=pdfdir ;; | |
1058 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1059 | pdfdir=$ac_optarg ;; | |
1060 | ||
1061 | -psdir | --psdir | --psdi | --psd | --ps) | |
1062 | ac_prev=psdir ;; | |
1063 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1064 | psdir=$ac_optarg ;; | |
1065 | ||
d9898ee8 | 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1067 | | -silent | --silent | --silen | --sile | --sil) | |
1068 | silent=yes ;; | |
1069 | ||
1070 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1071 | ac_prev=sbindir ;; | |
1072 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1073 | | --sbi=* | --sb=*) | |
1074 | sbindir=$ac_optarg ;; | |
1075 | ||
1076 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1077 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1078 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1079 | | --sha | --sh) | |
1080 | ac_prev=sharedstatedir ;; | |
1081 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1082 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1083 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1084 | | --sha=* | --sh=*) | |
1085 | sharedstatedir=$ac_optarg ;; | |
1086 | ||
1087 | -site | --site | --sit) | |
1088 | ac_prev=site ;; | |
1089 | -site=* | --site=* | --sit=*) | |
1090 | site=$ac_optarg ;; | |
1091 | ||
1092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1093 | ac_prev=srcdir ;; | |
1094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1095 | srcdir=$ac_optarg ;; | |
1096 | ||
1097 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1098 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1099 | ac_prev=sysconfdir ;; | |
1100 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1101 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1102 | sysconfdir=$ac_optarg ;; | |
1103 | ||
1104 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1105 | ac_prev=target_alias ;; | |
1106 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1107 | target_alias=$ac_optarg ;; | |
1108 | ||
1109 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1110 | verbose=yes ;; | |
1111 | ||
1112 | -version | --version | --versio | --versi | --vers | -V) | |
1113 | ac_init_version=: ;; | |
1114 | ||
1115 | -with-* | --with-*) | |
8d138742 | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1117 | # Reject names that are not valid shell variable names. |
8d138742 | 1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1119 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1120 | ac_useropt_orig=$ac_useropt |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "with_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
1128 | esac | |
1129 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1130 | |
1131 | -without-* | --without-*) | |
8d138742 | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1133 | # Reject names that are not valid shell variable names. |
8d138742 | 1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1135 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1136 | ac_useropt_orig=$ac_useropt |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1146 | |
1147 | --x) | |
1148 | # Obsolete; use --with-x. | |
1149 | with_x=yes ;; | |
1150 | ||
1151 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1152 | | --x-incl | --x-inc | --x-in | --x-i) | |
1153 | ac_prev=x_includes ;; | |
1154 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1155 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1156 | x_includes=$ac_optarg ;; | |
1157 | ||
1158 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1159 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1160 | ac_prev=x_libraries ;; | |
1161 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1162 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1163 | x_libraries=$ac_optarg ;; | |
1164 | ||
b0322a85 CE |
1165 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1166 | Try \`$0 --help' for more information" | |
d9898ee8 | 1167 | ;; |
1168 | ||
1169 | *=*) | |
1170 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1171 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1172 | case $ac_envvar in #( |
1173 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1174 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1175 | esac | |
dd184caf | 1176 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1177 | export $ac_envvar ;; |
1178 | ||
1179 | *) | |
1180 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1181 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1182 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1183 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1184 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1185 | ;; |
1186 | ||
1187 | esac | |
1188 | done | |
1189 | ||
1190 | if test -n "$ac_prev"; then | |
1191 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1192 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1193 | fi |
1194 | ||
8d138742 CE |
1195 | if test -n "$ac_unrecognized_opts"; then |
1196 | case $enable_option_checking in | |
1197 | no) ;; | |
b0322a85 | 1198 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1199 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1200 | esac | |
1201 | fi | |
1202 | ||
1203 | # Check all directory arguments for consistency. | |
dd184caf | 1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1207 | libdir localedir mandir | |
d9898ee8 | 1208 | do |
dd184caf | 1209 | eval ac_val=\$$ac_var |
8d138742 CE |
1210 | # Remove trailing slashes. |
1211 | case $ac_val in | |
1212 | */ ) | |
1213 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1214 | eval $ac_var=\$ac_val;; | |
1215 | esac | |
1216 | # Be sure to have absolute directory names. | |
d9898ee8 | 1217 | case $ac_val in |
dd184caf | 1218 | [\\/$]* | ?:[\\/]* ) continue;; |
1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1220 | esac |
b0322a85 | 1221 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1222 | done |
1223 | ||
1224 | # There might be people who depend on the old broken behavior: `$host' | |
1225 | # used to hold the argument of --host etc. | |
1226 | # FIXME: To remove some day. | |
1227 | build=$build_alias | |
1228 | host=$host_alias | |
1229 | target=$target_alias | |
1230 | ||
1231 | # FIXME: To remove some day. | |
1232 | if test "x$host_alias" != x; then | |
1233 | if test "x$build_alias" = x; then | |
1234 | cross_compiling=maybe | |
d9898ee8 | 1235 | elif test "x$build_alias" != "x$host_alias"; then |
1236 | cross_compiling=yes | |
1237 | fi | |
1238 | fi | |
1239 | ||
1240 | ac_tool_prefix= | |
1241 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1242 | ||
1243 | test "$silent" = yes && exec 6>/dev/null | |
1244 | ||
1245 | ||
dd184caf | 1246 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1247 | ac_ls_di=`ls -di .` && | |
1248 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1249 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1250 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1251 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1252 | |
1253 | ||
d9898ee8 | 1254 | # Find the source files, if location was not specified. |
1255 | if test -z "$srcdir"; then | |
1256 | ac_srcdir_defaulted=yes | |
dd184caf | 1257 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1258 | ac_confdir=`$as_dirname -- "$as_myself" || |
1259 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1260 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1261 | X"$as_myself" : 'X\(//\)$' \| \ | |
1262 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1263 | $as_echo X"$as_myself" | | |
dd184caf | 1264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1265 | s//\1/ | |
1266 | q | |
1267 | } | |
1268 | /^X\(\/\/\)[^/].*/{ | |
1269 | s//\1/ | |
1270 | q | |
1271 | } | |
1272 | /^X\(\/\/\)$/{ | |
1273 | s//\1/ | |
1274 | q | |
1275 | } | |
1276 | /^X\(\/\).*/{ | |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | s/.*/./; q'` | |
d9898ee8 | 1281 | srcdir=$ac_confdir |
dd184caf | 1282 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1283 | srcdir=.. |
1284 | fi | |
1285 | else | |
1286 | ac_srcdir_defaulted=no | |
1287 | fi | |
dd184caf | 1288 | if test ! -r "$srcdir/$ac_unique_file"; then |
1289 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1290 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1291 | fi |
dd184caf | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1293 | ac_abs_confdir=`( | |
b0322a85 | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1295 | pwd)` |
1296 | # When building in place, set srcdir=. | |
1297 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1298 | srcdir=. | |
1299 | fi | |
1300 | # Remove unnecessary trailing slashes from srcdir. | |
1301 | # Double slashes in file names in object file debugging info | |
1302 | # mess up M-x gdb in Emacs. | |
1303 | case $srcdir in | |
1304 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1305 | esac | |
1306 | for ac_var in $ac_precious_vars; do | |
1307 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1308 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1309 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1311 | done | |
d9898ee8 | 1312 | |
1313 | # | |
1314 | # Report the --help message. | |
1315 | # | |
1316 | if test "$ac_init_help" = "long"; then | |
1317 | # Omit some internal or obsolete options to make the list less imposing. | |
1318 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1319 | cat <<_ACEOF | |
1320 | \`configure' configures random128 0.10 to adapt to many kinds of systems. | |
1321 | ||
1322 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1323 | ||
1324 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1325 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1326 | ||
1327 | Defaults for the options are specified in brackets. | |
1328 | ||
1329 | Configuration: | |
1330 | -h, --help display this help and exit | |
1331 | --help=short display options specific to this package | |
1332 | --help=recursive display the short help of all the included packages | |
1333 | -V, --version display version information and exit | |
b0322a85 | 1334 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1335 | --cache-file=FILE cache test results in FILE [disabled] |
1336 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1337 | -n, --no-create do not create output files | |
1338 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1339 | ||
d9898ee8 | 1340 | Installation directories: |
1341 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1342 | [$ac_default_prefix] |
d9898ee8 | 1343 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1344 | [PREFIX] |
d9898ee8 | 1345 | |
1346 | By default, \`make install' will install all the files in | |
1347 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1348 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1349 | for instance \`--prefix=\$HOME'. | |
1350 | ||
1351 | For better control, use the options below. | |
1352 | ||
1353 | Fine tuning of the installation directories: | |
8d138742 CE |
1354 | --bindir=DIR user executables [EPREFIX/bin] |
1355 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1356 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1357 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1358 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1359 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1360 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1361 | --includedir=DIR C header files [PREFIX/include] | |
1362 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1363 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1364 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1365 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1366 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1367 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1368 | --docdir=DIR documentation root [DATAROOTDIR/doc/random128] | |
1369 | --htmldir=DIR html documentation [DOCDIR] | |
1370 | --dvidir=DIR dvi documentation [DOCDIR] | |
1371 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1372 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1373 | _ACEOF |
1374 | ||
1375 | cat <<\_ACEOF | |
1376 | ||
1377 | Program names: | |
1378 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1379 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1380 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1381 | ||
1382 | System types: | |
1383 | --build=BUILD configure for building on BUILD [guessed] | |
1384 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1385 | _ACEOF | |
1386 | fi | |
1387 | ||
1388 | if test -n "$ac_init_help"; then | |
1389 | case $ac_init_help in | |
1390 | short | recursive ) echo "Configuration of random128 0.10:";; | |
1391 | esac | |
1392 | cat <<\_ACEOF | |
1393 | ||
1394 | Optional Features: | |
8d138742 | 1395 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1396 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1397 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1398 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1399 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1400 | --enable-dependency-tracking | |
1401 | do not reject slow dependency extractors | |
1402 | --disable-dependency-tracking | |
1403 | speeds up one-time build | |
dd184caf | 1404 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1405 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1406 | --enable-fast-install[=PKGS] |
1407 | optimize for fast installation [default=yes] | |
1408 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1409 | --disable-largefile omit support for large files |
d9898ee8 | 1410 | |
1411 | Optional Packages: | |
1412 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1413 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1414 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1415 | both] |
d50284c4 CE |
1416 | --with-aix-soname=aix|svr4|both |
1417 | shared library versioning (aka "SONAME") variant to | |
1418 | provide on AIX, [default=aix]. | |
8d138742 | 1419 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1420 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1421 | compiler's sysroot if not specified). | |
d9898ee8 | 1422 | --with-random=/dev/urandom - location of the system random file generator |
1423 | --without-random - there is no system random file generator | |
1424 | ||
1425 | Some influential environment variables: | |
1426 | CC C compiler command | |
1427 | CFLAGS C compiler flags | |
1428 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1429 | nonstandard directory <lib dir> | |
dd184caf | 1430 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1431 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1432 | you have headers in a nonstandard directory <include dir> |
d9898ee8 | 1433 | CPP C preprocessor |
d50284c4 CE |
1434 | LT_SYS_LIBRARY_PATH |
1435 | User-defined run-time library search path. | |
d9898ee8 | 1436 | |
1437 | Use these variables to override the choices made by `configure' or to help | |
1438 | it to find libraries and programs with nonstandard names/locations. | |
1439 | ||
1440 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1441 | _ACEOF | |
dd184caf | 1442 | ac_status=$? |
d9898ee8 | 1443 | fi |
1444 | ||
1445 | if test "$ac_init_help" = "recursive"; then | |
1446 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1447 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1448 | test -d "$ac_dir" || |
1449 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1450 | continue | |
d9898ee8 | 1451 | ac_builddir=. |
1452 | ||
dd184caf | 1453 | case "$ac_dir" in |
1454 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1455 | *) | |
8d138742 | 1456 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1457 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1458 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1459 | case $ac_top_builddir_sub in |
1460 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1461 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1462 | esac ;; | |
1463 | esac | |
1464 | ac_abs_top_builddir=$ac_pwd | |
1465 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1466 | # for backward compatibility: | |
1467 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1468 | |
1469 | case $srcdir in | |
dd184caf | 1470 | .) # We are building in place. |
d9898ee8 | 1471 | ac_srcdir=. |
dd184caf | 1472 | ac_top_srcdir=$ac_top_builddir_sub |
1473 | ac_abs_top_srcdir=$ac_pwd ;; | |
1474 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1475 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1476 | ac_top_srcdir=$srcdir |
1477 | ac_abs_top_srcdir=$srcdir ;; | |
1478 | *) # Relative name. | |
1479 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1480 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1481 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1482 | esac |
dd184caf | 1483 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1484 | ||
1485 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1486 | # Check for guested configure. | |
1487 | if test -f "$ac_srcdir/configure.gnu"; then | |
1488 | echo && | |
1489 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1490 | elif test -f "$ac_srcdir/configure"; then | |
1491 | echo && | |
1492 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1493 | else |
8d138742 | 1494 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1495 | fi || ac_status=$? |
1496 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1497 | done |
1498 | fi | |
1499 | ||
dd184caf | 1500 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1501 | if $ac_init_version; then |
1502 | cat <<\_ACEOF | |
1503 | random128 configure 0.10 | |
b0322a85 CE |
1504 | generated by GNU Autoconf 2.69 |
1505 | ||
1506 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1507 | This configure script is free software; the Free Software Foundation | |
1508 | gives unlimited permission to copy, distribute and modify it. | |
1509 | _ACEOF | |
1510 | exit | |
1511 | fi | |
1512 | ||
1513 | ## ------------------------ ## | |
1514 | ## Autoconf initialization. ## | |
1515 | ## ------------------------ ## | |
1516 | ||
1517 | # ac_fn_c_try_compile LINENO | |
1518 | # -------------------------- | |
1519 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1520 | ac_fn_c_try_compile () | |
1521 | { | |
1522 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1523 | rm -f conftest.$ac_objext | |
1524 | if { { ac_try="$ac_compile" | |
1525 | case "(($ac_try" in | |
1526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1527 | *) ac_try_echo=$ac_try;; | |
1528 | esac | |
1529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1530 | $as_echo "$ac_try_echo"; } >&5 | |
1531 | (eval "$ac_compile") 2>conftest.err | |
1532 | ac_status=$? | |
1533 | if test -s conftest.err; then | |
1534 | grep -v '^ *+' conftest.err >conftest.er1 | |
1535 | cat conftest.er1 >&5 | |
1536 | mv -f conftest.er1 conftest.err | |
1537 | fi | |
1538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1539 | test $ac_status = 0; } && { | |
1540 | test -z "$ac_c_werror_flag" || | |
1541 | test ! -s conftest.err | |
1542 | } && test -s conftest.$ac_objext; then : | |
1543 | ac_retval=0 | |
1544 | else | |
1545 | $as_echo "$as_me: failed program was:" >&5 | |
1546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1547 | ||
1548 | ac_retval=1 | |
1549 | fi | |
1550 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1551 | as_fn_set_status $ac_retval | |
1552 | ||
1553 | } # ac_fn_c_try_compile | |
1554 | ||
1555 | # ac_fn_c_try_cpp LINENO | |
1556 | # ---------------------- | |
1557 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1558 | ac_fn_c_try_cpp () | |
1559 | { | |
1560 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1561 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1562 | case "(($ac_try" in | |
1563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1564 | *) ac_try_echo=$ac_try;; | |
1565 | esac | |
1566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1567 | $as_echo "$ac_try_echo"; } >&5 | |
1568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1569 | ac_status=$? | |
1570 | if test -s conftest.err; then | |
1571 | grep -v '^ *+' conftest.err >conftest.er1 | |
1572 | cat conftest.er1 >&5 | |
1573 | mv -f conftest.er1 conftest.err | |
1574 | fi | |
1575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1576 | test $ac_status = 0; } > conftest.i && { | |
1577 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1578 | test ! -s conftest.err | |
1579 | }; then : | |
1580 | ac_retval=0 | |
1581 | else | |
1582 | $as_echo "$as_me: failed program was:" >&5 | |
1583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1584 | ||
1585 | ac_retval=1 | |
1586 | fi | |
1587 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1588 | as_fn_set_status $ac_retval | |
1589 | ||
1590 | } # ac_fn_c_try_cpp | |
1591 | ||
1592 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1593 | # ------------------------------------------------------- | |
1594 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1595 | # the include files in INCLUDES and setting the cache variable VAR | |
1596 | # accordingly. | |
1597 | ac_fn_c_check_header_mongrel () | |
1598 | { | |
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1600 | if eval \${$3+:} false; then : | |
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1602 | $as_echo_n "checking for $2... " >&6; } | |
1603 | if eval \${$3+:} false; then : | |
1604 | $as_echo_n "(cached) " >&6 | |
1605 | fi | |
1606 | eval ac_res=\$$3 | |
1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1608 | $as_echo "$ac_res" >&6; } | |
1609 | else | |
1610 | # Is the header compilable? | |
1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1612 | $as_echo_n "checking $2 usability... " >&6; } | |
1613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1614 | /* end confdefs.h. */ | |
1615 | $4 | |
1616 | #include <$2> | |
1617 | _ACEOF | |
1618 | if ac_fn_c_try_compile "$LINENO"; then : | |
1619 | ac_header_compiler=yes | |
1620 | else | |
1621 | ac_header_compiler=no | |
1622 | fi | |
1623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1625 | $as_echo "$ac_header_compiler" >&6; } | |
1626 | ||
1627 | # Is the header present? | |
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1629 | $as_echo_n "checking $2 presence... " >&6; } | |
1630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1631 | /* end confdefs.h. */ | |
1632 | #include <$2> | |
1633 | _ACEOF | |
1634 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1635 | ac_header_preproc=yes | |
1636 | else | |
1637 | ac_header_preproc=no | |
1638 | fi | |
1639 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1641 | $as_echo "$ac_header_preproc" >&6; } | |
1642 | ||
1643 | # So? What about this header? | |
1644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1645 | yes:no: ) | |
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1647 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1649 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1650 | ;; | |
1651 | no:yes:* ) | |
1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1653 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1655 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1657 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1659 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1661 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1662 | ( $as_echo "## -------------------------------------------------- ## | |
1663 | ## Report this to courier-users@lists.sourceforge.net ## | |
1664 | ## -------------------------------------------------- ##" | |
1665 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1666 | ;; | |
1667 | esac | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1669 | $as_echo_n "checking for $2... " >&6; } | |
1670 | if eval \${$3+:} false; then : | |
1671 | $as_echo_n "(cached) " >&6 | |
1672 | else | |
1673 | eval "$3=\$ac_header_compiler" | |
1674 | fi | |
1675 | eval ac_res=\$$3 | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1677 | $as_echo "$ac_res" >&6; } | |
1678 | fi | |
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1680 | ||
1681 | } # ac_fn_c_check_header_mongrel | |
1682 | ||
1683 | # ac_fn_c_try_run LINENO | |
1684 | # ---------------------- | |
1685 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1686 | # that executables *can* be run. | |
1687 | ac_fn_c_try_run () | |
1688 | { | |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1690 | if { { ac_try="$ac_link" | |
1691 | case "(($ac_try" in | |
1692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1693 | *) ac_try_echo=$ac_try;; | |
1694 | esac | |
1695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1696 | $as_echo "$ac_try_echo"; } >&5 | |
1697 | (eval "$ac_link") 2>&5 | |
1698 | ac_status=$? | |
1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1700 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1701 | { { case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_try") 2>&5 | |
1708 | ac_status=$? | |
1709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1710 | test $ac_status = 0; }; }; then : | |
1711 | ac_retval=0 | |
1712 | else | |
1713 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1714 | $as_echo "$as_me: failed program was:" >&5 | |
1715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1716 | ||
1717 | ac_retval=$ac_status | |
1718 | fi | |
1719 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1720 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1721 | as_fn_set_status $ac_retval | |
1722 | ||
1723 | } # ac_fn_c_try_run | |
1724 | ||
1725 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1726 | # ------------------------------------------------------- | |
1727 | # Tests whether HEADER exists and can be compiled using the include files in | |
1728 | # INCLUDES, setting the cache variable VAR accordingly. | |
1729 | ac_fn_c_check_header_compile () | |
1730 | { | |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1733 | $as_echo_n "checking for $2... " >&6; } | |
1734 | if eval \${$3+:} false; then : | |
1735 | $as_echo_n "(cached) " >&6 | |
1736 | else | |
1737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1738 | /* end confdefs.h. */ | |
1739 | $4 | |
1740 | #include <$2> | |
1741 | _ACEOF | |
1742 | if ac_fn_c_try_compile "$LINENO"; then : | |
1743 | eval "$3=yes" | |
1744 | else | |
1745 | eval "$3=no" | |
1746 | fi | |
1747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1748 | fi | |
1749 | eval ac_res=\$$3 | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1751 | $as_echo "$ac_res" >&6; } | |
1752 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1753 | ||
1754 | } # ac_fn_c_check_header_compile | |
1755 | ||
1756 | # ac_fn_c_try_link LINENO | |
1757 | # ----------------------- | |
1758 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1759 | ac_fn_c_try_link () | |
1760 | { | |
1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1763 | if { { ac_try="$ac_link" | |
1764 | case "(($ac_try" in | |
1765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1766 | *) ac_try_echo=$ac_try;; | |
1767 | esac | |
1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1769 | $as_echo "$ac_try_echo"; } >&5 | |
1770 | (eval "$ac_link") 2>conftest.err | |
1771 | ac_status=$? | |
1772 | if test -s conftest.err; then | |
1773 | grep -v '^ *+' conftest.err >conftest.er1 | |
1774 | cat conftest.er1 >&5 | |
1775 | mv -f conftest.er1 conftest.err | |
1776 | fi | |
1777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1778 | test $ac_status = 0; } && { | |
1779 | test -z "$ac_c_werror_flag" || | |
1780 | test ! -s conftest.err | |
1781 | } && test -s conftest$ac_exeext && { | |
1782 | test "$cross_compiling" = yes || | |
1783 | test -x conftest$ac_exeext | |
1784 | }; then : | |
1785 | ac_retval=0 | |
1786 | else | |
1787 | $as_echo "$as_me: failed program was:" >&5 | |
1788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1789 | ||
1790 | ac_retval=1 | |
1791 | fi | |
1792 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1793 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1794 | # interfere with the next link command; also delete a directory that is | |
1795 | # left behind by Apple's compiler. We do this before executing the actions. | |
1796 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1797 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1798 | as_fn_set_status $ac_retval | |
1799 | ||
1800 | } # ac_fn_c_try_link | |
1801 | ||
1802 | # ac_fn_c_check_func LINENO FUNC VAR | |
1803 | # ---------------------------------- | |
1804 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1805 | ac_fn_c_check_func () | |
1806 | { | |
1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1809 | $as_echo_n "checking for $2... " >&6; } | |
1810 | if eval \${$3+:} false; then : | |
1811 | $as_echo_n "(cached) " >&6 | |
1812 | else | |
1813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1814 | /* end confdefs.h. */ | |
1815 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1817 | #define $2 innocuous_$2 | |
1818 | ||
1819 | /* System header to define __stub macros and hopefully few prototypes, | |
1820 | which can conflict with char $2 (); below. | |
1821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1822 | <limits.h> exists even on freestanding compilers. */ | |
1823 | ||
1824 | #ifdef __STDC__ | |
1825 | # include <limits.h> | |
1826 | #else | |
1827 | # include <assert.h> | |
1828 | #endif | |
1829 | ||
1830 | #undef $2 | |
1831 | ||
1832 | /* Override any GCC internal prototype to avoid an error. | |
1833 | Use char because int might match the return type of a GCC | |
1834 | builtin and then its argument prototype would still apply. */ | |
1835 | #ifdef __cplusplus | |
1836 | extern "C" | |
1837 | #endif | |
1838 | char $2 (); | |
1839 | /* The GNU C library defines this for functions which it implements | |
1840 | to always fail with ENOSYS. Some functions are actually named | |
1841 | something starting with __ and the normal name is an alias. */ | |
1842 | #if defined __stub_$2 || defined __stub___$2 | |
1843 | choke me | |
1844 | #endif | |
1845 | ||
1846 | int | |
1847 | main () | |
1848 | { | |
1849 | return $2 (); | |
1850 | ; | |
1851 | return 0; | |
1852 | } | |
1853 | _ACEOF | |
1854 | if ac_fn_c_try_link "$LINENO"; then : | |
1855 | eval "$3=yes" | |
1856 | else | |
1857 | eval "$3=no" | |
1858 | fi | |
1859 | rm -f core conftest.err conftest.$ac_objext \ | |
1860 | conftest$ac_exeext conftest.$ac_ext | |
1861 | fi | |
1862 | eval ac_res=\$$3 | |
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1864 | $as_echo "$ac_res" >&6; } | |
1865 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1866 | |
b0322a85 CE |
1867 | } # ac_fn_c_check_func |
1868 | ||
1869 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1870 | # ------------------------------------------- | |
1871 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1872 | # variable VAR accordingly. | |
1873 | ac_fn_c_check_type () | |
1874 | { | |
1875 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1877 | $as_echo_n "checking for $2... " >&6; } | |
1878 | if eval \${$3+:} false; then : | |
1879 | $as_echo_n "(cached) " >&6 | |
1880 | else | |
1881 | eval "$3=no" | |
1882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1883 | /* end confdefs.h. */ | |
1884 | $4 | |
1885 | int | |
1886 | main () | |
1887 | { | |
1888 | if (sizeof ($2)) | |
1889 | return 0; | |
1890 | ; | |
1891 | return 0; | |
1892 | } | |
d9898ee8 | 1893 | _ACEOF |
b0322a85 CE |
1894 | if ac_fn_c_try_compile "$LINENO"; then : |
1895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1896 | /* end confdefs.h. */ | |
1897 | $4 | |
1898 | int | |
1899 | main () | |
1900 | { | |
1901 | if (sizeof (($2))) | |
1902 | return 0; | |
1903 | ; | |
1904 | return 0; | |
1905 | } | |
1906 | _ACEOF | |
1907 | if ac_fn_c_try_compile "$LINENO"; then : | |
1908 | ||
1909 | else | |
1910 | eval "$3=yes" | |
d9898ee8 | 1911 | fi |
b0322a85 CE |
1912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1913 | fi | |
1914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1915 | fi | |
1916 | eval ac_res=\$$3 | |
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1918 | $as_echo "$ac_res" >&6; } | |
1919 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1920 | ||
1921 | } # ac_fn_c_check_type | |
dd184caf | 1922 | cat >config.log <<_ACEOF |
d9898ee8 | 1923 | This file contains any messages produced by compilers while |
1924 | running configure, to aid debugging if configure makes a mistake. | |
1925 | ||
1926 | It was created by random128 $as_me 0.10, which was | |
b0322a85 | 1927 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1928 | |
1929 | $ $0 $@ | |
1930 | ||
1931 | _ACEOF | |
dd184caf | 1932 | exec 5>>config.log |
d9898ee8 | 1933 | { |
1934 | cat <<_ASUNAME | |
1935 | ## --------- ## | |
1936 | ## Platform. ## | |
1937 | ## --------- ## | |
1938 | ||
1939 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1940 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1941 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1942 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1943 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1944 | ||
1945 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1946 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1947 | ||
1948 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1949 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1950 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1951 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1952 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1953 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1954 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1955 | ||
1956 | _ASUNAME | |
1957 | ||
1958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1959 | for as_dir in $PATH | |
1960 | do | |
1961 | IFS=$as_save_IFS | |
1962 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1963 | $as_echo "PATH: $as_dir" |
1964 | done | |
dd184caf | 1965 | IFS=$as_save_IFS |
d9898ee8 | 1966 | |
1967 | } >&5 | |
1968 | ||
1969 | cat >&5 <<_ACEOF | |
1970 | ||
1971 | ||
1972 | ## ----------- ## | |
1973 | ## Core tests. ## | |
1974 | ## ----------- ## | |
1975 | ||
1976 | _ACEOF | |
1977 | ||
1978 | ||
1979 | # Keep a trace of the command line. | |
1980 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1981 | # Strip out --silent because we don't want to record it for future runs. | |
1982 | # Also quote any args containing shell meta-characters. | |
1983 | # Make two passes to allow for proper duplicate-argument suppression. | |
1984 | ac_configure_args= | |
1985 | ac_configure_args0= | |
1986 | ac_configure_args1= | |
d9898ee8 | 1987 | ac_must_keep_next=false |
1988 | for ac_pass in 1 2 | |
1989 | do | |
1990 | for ac_arg | |
1991 | do | |
1992 | case $ac_arg in | |
1993 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1994 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1995 | | -silent | --silent | --silen | --sile | --sil) | |
1996 | continue ;; | |
dd184caf | 1997 | *\'*) |
8d138742 | 1998 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1999 | esac |
2000 | case $ac_pass in | |
b0322a85 | 2001 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2002 | 2) |
b0322a85 | 2003 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2004 | if test $ac_must_keep_next = true; then |
2005 | ac_must_keep_next=false # Got value, back to normal. | |
2006 | else | |
2007 | case $ac_arg in | |
2008 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2009 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2010 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2011 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2012 | case "$ac_configure_args0 " in | |
2013 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2014 | esac | |
2015 | ;; | |
2016 | -* ) ac_must_keep_next=true ;; | |
2017 | esac | |
2018 | fi | |
b0322a85 | 2019 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2020 | ;; |
2021 | esac | |
2022 | done | |
2023 | done | |
b0322a85 CE |
2024 | { ac_configure_args0=; unset ac_configure_args0;} |
2025 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2026 | |
2027 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2028 | # config.log. We remove comments because anyway the quotes in there | |
2029 | # would cause problems or look ugly. | |
dd184caf | 2030 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2031 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2032 | trap 'exit_status=$? |
2033 | # Save into config.log some information that might help in debugging. | |
2034 | { | |
2035 | echo | |
2036 | ||
b0322a85 | 2037 | $as_echo "## ---------------- ## |
d9898ee8 | 2038 | ## Cache variables. ## |
b0322a85 | 2039 | ## ---------------- ##" |
d9898ee8 | 2040 | echo |
2041 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2042 | ( |
2043 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2044 | eval ac_val=\$$ac_var | |
2045 | case $ac_val in #( | |
2046 | *${as_nl}*) | |
2047 | case $ac_var in #( | |
b0322a85 | 2048 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2049 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2050 | esac |
2051 | case $ac_var in #( | |
2052 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2053 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2054 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2055 | esac ;; |
2056 | esac | |
2057 | done | |
d9898ee8 | 2058 | (set) 2>&1 | |
dd184caf | 2059 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2060 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2061 | sed -n \ |
dd184caf | 2062 | "s/'\''/'\''\\\\'\'''\''/g; |
2063 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2064 | ;; #( | |
d9898ee8 | 2065 | *) |
dd184caf | 2066 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2067 | ;; |
dd184caf | 2068 | esac | |
2069 | sort | |
2070 | ) | |
d9898ee8 | 2071 | echo |
2072 | ||
b0322a85 | 2073 | $as_echo "## ----------------- ## |
d9898ee8 | 2074 | ## Output variables. ## |
b0322a85 | 2075 | ## ----------------- ##" |
d9898ee8 | 2076 | echo |
2077 | for ac_var in $ac_subst_vars | |
2078 | do | |
dd184caf | 2079 | eval ac_val=\$$ac_var |
2080 | case $ac_val in | |
8d138742 | 2081 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2082 | esac |
8d138742 | 2083 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2084 | done | sort |
2085 | echo | |
2086 | ||
2087 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2088 | $as_echo "## ------------------- ## |
dd184caf | 2089 | ## File substitutions. ## |
b0322a85 | 2090 | ## ------------------- ##" |
d9898ee8 | 2091 | echo |
2092 | for ac_var in $ac_subst_files | |
2093 | do | |
dd184caf | 2094 | eval ac_val=\$$ac_var |
2095 | case $ac_val in | |
8d138742 | 2096 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2097 | esac |
8d138742 | 2098 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2099 | done | sort |
2100 | echo | |
2101 | fi | |
2102 | ||
2103 | if test -s confdefs.h; then | |
b0322a85 | 2104 | $as_echo "## ----------- ## |
d9898ee8 | 2105 | ## confdefs.h. ## |
b0322a85 | 2106 | ## ----------- ##" |
d9898ee8 | 2107 | echo |
dd184caf | 2108 | cat confdefs.h |
d9898ee8 | 2109 | echo |
2110 | fi | |
2111 | test "$ac_signal" != 0 && | |
8d138742 CE |
2112 | $as_echo "$as_me: caught signal $ac_signal" |
2113 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2114 | } >&5 |
dd184caf | 2115 | rm -f core *.core core.conftest.* && |
2116 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2117 | exit $exit_status |
dd184caf | 2118 | ' 0 |
d9898ee8 | 2119 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2120 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2121 | done |
2122 | ac_signal=0 | |
2123 | ||
2124 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2125 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2126 | |
b0322a85 CE |
2127 | $as_echo "/* confdefs.h */" > confdefs.h |
2128 | ||
d9898ee8 | 2129 | # Predefined preprocessor variables. |
2130 | ||
2131 | cat >>confdefs.h <<_ACEOF | |
2132 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2133 | _ACEOF | |
2134 | ||
d9898ee8 | 2135 | cat >>confdefs.h <<_ACEOF |
2136 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2137 | _ACEOF | |
2138 | ||
d9898ee8 | 2139 | cat >>confdefs.h <<_ACEOF |
2140 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2141 | _ACEOF | |
2142 | ||
d9898ee8 | 2143 | cat >>confdefs.h <<_ACEOF |
2144 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2145 | _ACEOF | |
2146 | ||
d9898ee8 | 2147 | cat >>confdefs.h <<_ACEOF |
2148 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2149 | _ACEOF | |
2150 | ||
b0322a85 CE |
2151 | cat >>confdefs.h <<_ACEOF |
2152 | #define PACKAGE_URL "$PACKAGE_URL" | |
2153 | _ACEOF | |
2154 | ||
d9898ee8 | 2155 | |
2156 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2157 | # Prefer an explicitly selected file to automatically selected ones. |
2158 | ac_site_file1=NONE | |
2159 | ac_site_file2=NONE | |
dd184caf | 2160 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2161 | # We do not want a PATH search for config.site. |
2162 | case $CONFIG_SITE in #(( | |
2163 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2164 | */*) ac_site_file1=$CONFIG_SITE;; | |
2165 | *) ac_site_file1=./$CONFIG_SITE;; | |
2166 | esac | |
dd184caf | 2167 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2168 | ac_site_file1=$prefix/share/config.site |
2169 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2170 | else |
8d138742 CE |
2171 | ac_site_file1=$ac_default_prefix/share/config.site |
2172 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2173 | fi |
8d138742 | 2174 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2175 | do |
8d138742 | 2176 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2177 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2179 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2180 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2181 | . "$ac_site_file" \ |
2182 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2184 | as_fn_error $? "failed to load site script $ac_site_file | |
2185 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2186 | fi |
2187 | done | |
2188 | ||
2189 | if test -r "$cache_file"; then | |
b0322a85 CE |
2190 | # Some versions of bash will fail to source /dev/null (special files |
2191 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2192 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2194 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2195 | case $cache_file in |
dd184caf | 2196 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2197 | *) . "./$cache_file";; | |
d9898ee8 | 2198 | esac |
2199 | fi | |
2200 | else | |
b0322a85 | 2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2202 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2203 | >$cache_file |
2204 | fi | |
2205 | ||
2206 | # Check that the precious variables saved in the cache have kept the same | |
2207 | # value. | |
2208 | ac_cache_corrupted=false | |
dd184caf | 2209 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2210 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2211 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2212 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2213 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2214 | case $ac_old_set,$ac_new_set in |
2215 | set,) | |
b0322a85 | 2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2217 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2218 | ac_cache_corrupted=: ;; |
2219 | ,set) | |
b0322a85 | 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2221 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2222 | ac_cache_corrupted=: ;; |
2223 | ,);; | |
2224 | *) | |
2225 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2226 | # differences in whitespace do not lead to failure. |
2227 | ac_old_val_w=`echo x $ac_old_val` | |
2228 | ac_new_val_w=`echo x $ac_new_val` | |
2229 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2231 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2232 | ac_cache_corrupted=: | |
2233 | else | |
b0322a85 | 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2235 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2236 | eval $ac_var=\$ac_old_val | |
2237 | fi | |
b0322a85 | 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2239 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2241 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2242 | fi;; |
2243 | esac | |
2244 | # Pass precious variables to config.status. | |
2245 | if test "$ac_new_set" = set; then | |
2246 | case $ac_new_val in | |
8d138742 | 2247 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2248 | *) ac_arg=$ac_var=$ac_new_val ;; |
2249 | esac | |
2250 | case " $ac_configure_args " in | |
2251 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2252 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2253 | esac |
2254 | fi | |
2255 | done | |
2256 | if $ac_cache_corrupted; then | |
b0322a85 | 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2260 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2261 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2262 | fi |
b0322a85 CE |
2263 | ## -------------------- ## |
2264 | ## Main body of script. ## | |
2265 | ## -------------------- ## | |
d9898ee8 | 2266 | |
dd184caf | 2267 | ac_ext=c |
2268 | ac_cpp='$CPP $CPPFLAGS' | |
2269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2272 | |
2273 | ||
2274 | ||
2275 | >confdefs.h # Kill PACKAGE_ macros | |
2276 | ||
2277 | ||
d9898ee8 | 2278 | ac_aux_dir= |
b0322a85 | 2279 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2280 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2281 | ac_aux_dir=$ac_dir |
2282 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2283 | break | |
dd184caf | 2284 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2285 | ac_aux_dir=$ac_dir |
2286 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2287 | break | |
dd184caf | 2288 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2289 | ac_aux_dir=$ac_dir |
2290 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2291 | break | |
2292 | fi | |
2293 | done | |
2294 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2295 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2296 | fi |
dd184caf | 2297 | |
2298 | # These three variables are undocumented and unsupported, | |
2299 | # and are intended to be withdrawn in a future Autoconf release. | |
2300 | # They can cause serious problems if a builder's source tree is in a directory | |
2301 | # whose full name contains unusual characters. | |
2302 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2303 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2304 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2305 | ||
d9898ee8 | 2306 | |
d50284c4 | 2307 | am__api_version='1.15' |
b0322a85 | 2308 | |
d9898ee8 | 2309 | # Find a good install program. We prefer a C program (faster), |
2310 | # so one script is as good as another. But avoid the broken or | |
2311 | # incompatible versions: | |
2312 | # SysV /etc/install, /usr/sbin/install | |
2313 | # SunOS /usr/etc/install | |
2314 | # IRIX /sbin/install | |
2315 | # AIX /bin/install | |
2316 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2317 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2318 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2319 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2320 | # OS/2's system install, which has a completely different semantic | |
2321 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2322 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2324 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2325 | if test -z "$INSTALL"; then |
b0322a85 | 2326 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2327 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2328 | else |
2329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2330 | for as_dir in $PATH | |
2331 | do | |
2332 | IFS=$as_save_IFS | |
2333 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2334 | # Account for people who put trailing slashes in PATH elements. |
2335 | case $as_dir/ in #(( | |
2336 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2337 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2338 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2339 | /usr/ucb/* ) ;; |
2340 | *) | |
2341 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2342 | # Don't use installbsd from OSF since it installs stuff as root | |
2343 | # by default. | |
2344 | for ac_prog in ginstall scoinst install; do | |
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2346 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2347 | if test $ac_prog = install && |
2348 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2349 | # AIX install. It has an incompatible calling convention. | |
2350 | : | |
2351 | elif test $ac_prog = install && | |
2352 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2353 | # program-specific install script used by HP pwplus--don't use. | |
2354 | : | |
2355 | else | |
8d138742 CE |
2356 | rm -rf conftest.one conftest.two conftest.dir |
2357 | echo one > conftest.one | |
2358 | echo two > conftest.two | |
2359 | mkdir conftest.dir | |
2360 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2361 | test -s conftest.one && test -s conftest.two && | |
2362 | test -s conftest.dir/conftest.one && | |
2363 | test -s conftest.dir/conftest.two | |
2364 | then | |
2365 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2366 | break 3 | |
2367 | fi | |
d9898ee8 | 2368 | fi |
2369 | fi | |
2370 | done | |
2371 | done | |
2372 | ;; | |
2373 | esac | |
8d138742 | 2374 | |
b0322a85 | 2375 | done |
dd184caf | 2376 | IFS=$as_save_IFS |
d9898ee8 | 2377 | |
8d138742 | 2378 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2379 | |
2380 | fi | |
2381 | if test "${ac_cv_path_install+set}" = set; then | |
2382 | INSTALL=$ac_cv_path_install | |
2383 | else | |
dd184caf | 2384 | # As a last resort, use the slow shell script. Don't cache a |
2385 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2386 | # break other packages using the cache if that directory is |
dd184caf | 2387 | # removed, or if the value is a relative name. |
d9898ee8 | 2388 | INSTALL=$ac_install_sh |
2389 | fi | |
2390 | fi | |
b0322a85 | 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2392 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2393 | |
2394 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2395 | # It thinks the first close brace ends the variable substitution. | |
2396 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2397 | ||
2398 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2399 | ||
2400 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2401 | ||
b0322a85 | 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2403 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2404 | # Reject unsafe characters in $srcdir or the absolute working directory |
2405 | # name. Accept space and tab only in the latter. | |
2406 | am_lf=' | |
2407 | ' | |
2408 | case `pwd` in | |
2409 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2410 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2411 | esac |
2412 | case $srcdir in | |
2413 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2414 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2415 | esac |
2416 | ||
b0322a85 | 2417 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2418 | # arguments. Must try -L first in case configure is actually a |
2419 | # symlink; some systems play weird games with the mod time of symlinks | |
2420 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2421 | # directory). | |
2422 | if ( | |
b0322a85 CE |
2423 | am_has_slept=no |
2424 | for am_try in 1 2; do | |
2425 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2426 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2427 | if test "$*" = "X"; then | |
2428 | # -L didn't work. | |
2429 | set X `ls -t "$srcdir/configure" conftest.file` | |
2430 | fi | |
2431 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2432 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2433 | ||
2434 | # If neither matched, then we have a broken ls. This can happen | |
2435 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2436 | # broken ls alias from the environment. This has actually | |
2437 | # happened. Such a system could not be considered "sane". | |
2438 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2439 | alias in your environment" "$LINENO" 5 | |
2440 | fi | |
2441 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2442 | break | |
2443 | fi | |
2444 | # Just in case. | |
2445 | sleep 1 | |
2446 | am_has_slept=yes | |
2447 | done | |
d9898ee8 | 2448 | test "$2" = conftest.file |
2449 | ) | |
2450 | then | |
2451 | # Ok. | |
2452 | : | |
2453 | else | |
b0322a85 CE |
2454 | as_fn_error $? "newly created file is older than distributed files! |
2455 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2456 | fi |
b0322a85 | 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2458 | $as_echo "yes" >&6; } |
b0322a85 CE |
2459 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2460 | # generated files are strictly newer. | |
2461 | am_sleep_pid= | |
2462 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2463 | ( sleep 1 ) & | |
2464 | am_sleep_pid=$! | |
2465 | fi | |
2466 | ||
2467 | rm -f conftest.file | |
2468 | ||
d9898ee8 | 2469 | test "$program_prefix" != NONE && |
dd184caf | 2470 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2471 | # Use a double $ so make ignores it. |
2472 | test "$program_suffix" != NONE && | |
dd184caf | 2473 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2474 | # Double any \ or $. |
d9898ee8 | 2475 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2476 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2477 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2478 | |
d50284c4 CE |
2479 | # Expand $ac_aux_dir to an absolute path. |
2480 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2481 | |
8d138742 CE |
2482 | if test x"${MISSING+set}" != xset; then |
2483 | case $am_aux_dir in | |
2484 | *\ * | *\ *) | |
2485 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2486 | *) | |
2487 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2488 | esac | |
2489 | fi | |
d9898ee8 | 2490 | # Use eval to expand $SHELL |
b0322a85 CE |
2491 | if eval "$MISSING --is-lightweight"; then |
2492 | am_missing_run="$MISSING " | |
d9898ee8 | 2493 | else |
2494 | am_missing_run= | |
b0322a85 CE |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2496 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2497 | fi |
2498 | ||
d50284c4 | 2499 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2500 | case $am_aux_dir in |
2501 | *\ * | *\ *) | |
2502 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2503 | *) | |
2504 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2505 | esac | |
2506 | fi | |
2507 | ||
b0322a85 CE |
2508 | # Installed binaries are usually stripped using 'strip' when the user |
2509 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2510 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2511 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2512 | if test "$cross_compiling" != no; then |
2513 | if test -n "$ac_tool_prefix"; then | |
2514 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2515 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2517 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2518 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2519 | $as_echo_n "(cached) " >&6 |
2520 | else | |
2521 | if test -n "$STRIP"; then | |
2522 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2523 | else | |
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2525 | for as_dir in $PATH | |
2526 | do | |
2527 | IFS=$as_save_IFS | |
2528 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2529 | for ac_exec_ext in '' $ac_executable_extensions; do |
2530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2531 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2533 | break 2 |
2534 | fi | |
2535 | done | |
b0322a85 | 2536 | done |
8d138742 CE |
2537 | IFS=$as_save_IFS |
2538 | ||
2539 | fi | |
2540 | fi | |
2541 | STRIP=$ac_cv_prog_STRIP | |
2542 | if test -n "$STRIP"; then | |
b0322a85 | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2544 | $as_echo "$STRIP" >&6; } |
2545 | else | |
b0322a85 | 2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2547 | $as_echo "no" >&6; } |
d9898ee8 | 2548 | fi |
2549 | ||
8d138742 CE |
2550 | |
2551 | fi | |
2552 | if test -z "$ac_cv_prog_STRIP"; then | |
2553 | ac_ct_STRIP=$STRIP | |
2554 | # Extract the first word of "strip", so it can be a program name with args. | |
2555 | set dummy strip; ac_word=$2 | |
b0322a85 | 2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2557 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2558 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2559 | $as_echo_n "(cached) " >&6 |
2560 | else | |
2561 | if test -n "$ac_ct_STRIP"; then | |
2562 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2563 | else | |
2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2565 | for as_dir in $PATH | |
2566 | do | |
2567 | IFS=$as_save_IFS | |
2568 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2569 | for ac_exec_ext in '' $ac_executable_extensions; do |
2570 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2571 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2573 | break 2 |
2574 | fi | |
2575 | done | |
b0322a85 | 2576 | done |
8d138742 CE |
2577 | IFS=$as_save_IFS |
2578 | ||
2579 | fi | |
2580 | fi | |
2581 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2582 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2584 | $as_echo "$ac_ct_STRIP" >&6; } |
2585 | else | |
b0322a85 | 2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2587 | $as_echo "no" >&6; } |
2588 | fi | |
2589 | ||
2590 | if test "x$ac_ct_STRIP" = x; then | |
2591 | STRIP=":" | |
2592 | else | |
2593 | case $cross_compiling:$ac_tool_warned in | |
2594 | yes:) | |
b0322a85 | 2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2596 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2597 | ac_tool_warned=yes ;; | |
2598 | esac | |
2599 | STRIP=$ac_ct_STRIP | |
2600 | fi | |
2601 | else | |
2602 | STRIP="$ac_cv_prog_STRIP" | |
2603 | fi | |
2604 | ||
2605 | fi | |
2606 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2607 | ||
b0322a85 | 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2609 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2610 | if test -z "$MKDIR_P"; then |
b0322a85 | 2611 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2612 | $as_echo_n "(cached) " >&6 |
dd184caf | 2613 | else |
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2615 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2616 | do | |
2617 | IFS=$as_save_IFS | |
2618 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2619 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2620 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2621 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2622 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2623 | 'mkdir (GNU coreutils) '* | \ | |
2624 | 'mkdir (coreutils) '* | \ | |
2625 | 'mkdir (fileutils) '4.1*) | |
2626 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2627 | break 3;; | |
2628 | esac | |
2629 | done | |
2630 | done | |
b0322a85 | 2631 | done |
dd184caf | 2632 | IFS=$as_save_IFS |
2633 | ||
2634 | fi | |
2635 | ||
b0322a85 | 2636 | test -d ./--version && rmdir ./--version |
dd184caf | 2637 | if test "${ac_cv_path_mkdir+set}" = set; then |
2638 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2639 | else |
dd184caf | 2640 | # As a last resort, use the slow shell script. Don't cache a |
2641 | # value for MKDIR_P within a source directory, because that will | |
2642 | # break other packages using the cache if that directory is | |
2643 | # removed, or if the value is a relative name. | |
dd184caf | 2644 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2645 | fi |
2646 | fi | |
b0322a85 | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2648 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2649 | |
d9898ee8 | 2650 | for ac_prog in gawk mawk nawk awk |
2651 | do | |
2652 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2653 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2655 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2656 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2657 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2658 | else |
2659 | if test -n "$AWK"; then | |
2660 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2661 | else | |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2667 | for ac_exec_ext in '' $ac_executable_extensions; do |
2668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2669 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2671 | break 2 |
2672 | fi | |
2673 | done | |
b0322a85 | 2674 | done |
dd184caf | 2675 | IFS=$as_save_IFS |
d9898ee8 | 2676 | |
2677 | fi | |
2678 | fi | |
2679 | AWK=$ac_cv_prog_AWK | |
2680 | if test -n "$AWK"; then | |
b0322a85 | 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2682 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2683 | else |
b0322a85 | 2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2685 | $as_echo "no" >&6; } |
d9898ee8 | 2686 | fi |
2687 | ||
dd184caf | 2688 | |
d9898ee8 | 2689 | test -n "$AWK" && break |
2690 | done | |
2691 | ||
b0322a85 | 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2693 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2694 | set x ${MAKE-make} | |
2695 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2696 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2697 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2698 | else |
2699 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2700 | SHELL = /bin/sh |
d9898ee8 | 2701 | all: |
dd184caf | 2702 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2703 | _ACEOF |
b0322a85 | 2704 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2705 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2706 | *@@@%%%=?*=@@@%%%*) | |
2707 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2708 | *) | |
2709 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2710 | esac | |
d9898ee8 | 2711 | rm -f conftest.make |
2712 | fi | |
dd184caf | 2713 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2715 | $as_echo "yes" >&6; } |
d9898ee8 | 2716 | SET_MAKE= |
2717 | else | |
b0322a85 | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2719 | $as_echo "no" >&6; } |
d9898ee8 | 2720 | SET_MAKE="MAKE=${MAKE-make}" |
2721 | fi | |
2722 | ||
2723 | rm -rf .tst 2>/dev/null | |
2724 | mkdir .tst 2>/dev/null | |
2725 | if test -d .tst; then | |
2726 | am__leading_dot=. | |
2727 | else | |
2728 | am__leading_dot=_ | |
2729 | fi | |
2730 | rmdir .tst 2>/dev/null | |
2731 | ||
b0322a85 CE |
2732 | # Check whether --enable-silent-rules was given. |
2733 | if test "${enable_silent_rules+set}" = set; then : | |
2734 | enableval=$enable_silent_rules; | |
2735 | fi | |
2736 | ||
2737 | case $enable_silent_rules in # ((( | |
2738 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2739 | no) AM_DEFAULT_VERBOSITY=1;; | |
2740 | *) AM_DEFAULT_VERBOSITY=1;; | |
2741 | esac | |
2742 | am_make=${MAKE-make} | |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2744 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2745 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2746 | $as_echo_n "(cached) " >&6 | |
2747 | else | |
2748 | if $as_echo 'TRUE=$(BAR$(V)) | |
2749 | BAR0=false | |
2750 | BAR1=true | |
2751 | V=1 | |
2752 | am__doit: | |
2753 | @$(TRUE) | |
2754 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2755 | am_cv_make_support_nested_variables=yes | |
2756 | else | |
2757 | am_cv_make_support_nested_variables=no | |
2758 | fi | |
2759 | fi | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2761 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2762 | if test $am_cv_make_support_nested_variables = yes; then | |
2763 | AM_V='$(V)' | |
2764 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2765 | else | |
2766 | AM_V=$AM_DEFAULT_VERBOSITY | |
2767 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2768 | fi | |
2769 | AM_BACKSLASH='\' | |
2770 | ||
dd184caf | 2771 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2772 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2773 | # is not polluted with repeated "-I." | |
2774 | am__isrc=' -I$(srcdir)' | |
2775 | # test to see if srcdir already configured | |
2776 | if test -f $srcdir/config.status; then | |
b0322a85 | 2777 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2778 | fi |
d9898ee8 | 2779 | fi |
2780 | ||
2781 | # test whether we have cygpath | |
2782 | if test -z "$CYGPATH_W"; then | |
2783 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2784 | CYGPATH_W='cygpath -w' | |
2785 | else | |
2786 | CYGPATH_W=echo | |
2787 | fi | |
2788 | fi | |
2789 | ||
2790 | ||
2791 | # Define the identity of the package. | |
2792 | PACKAGE='random128' | |
2793 | VERSION='0.10' | |
2794 | ||
2795 | ||
2796 | # Some tools Automake needs. | |
2797 | ||
2798 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2799 | ||
2800 | ||
2801 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2802 | ||
2803 | ||
2804 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2805 | ||
2806 | ||
2807 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2808 | ||
2809 | ||
2810 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2811 | ||
b0322a85 CE |
2812 | # For better backward compatibility. To be removed once Automake 1.9.x |
2813 | # dies out for good. For more background, see: | |
2814 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2815 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2816 | mkdir_p='$(MKDIR_P)' | |
2817 | ||
d50284c4 CE |
2818 | # We need awk for the "check" target (and possibly the TAP driver). The |
2819 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2820 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2821 | # in the wild :-( We should find a proper way to deprecate it ... | |
2822 | AMTAR='$${TAR-tar}' | |
2823 | ||
d9898ee8 | 2824 | |
b0322a85 CE |
2825 | # We'll loop over all known methods to create a tar archive until one works. |
2826 | _am_tools='gnutar pax cpio none' | |
2827 | ||
2828 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2829 | |
d9898ee8 | 2830 | |
2831 | ||
2832 | ||
2833 | ||
2834 | ||
d50284c4 CE |
2835 | # POSIX will say in a future version that running "rm -f" with no argument |
2836 | # is OK; and we want to be able to make that assumption in our Makefile | |
2837 | # recipes. So use an aggressive probe to check that the usage we want is | |
2838 | # actually supported "in the wild" to an acceptable degree. | |
2839 | # See automake bug#10828. | |
2840 | # To make any issue more visible, cause the running configure to be aborted | |
2841 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2842 | # user can still override this though. | |
2843 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2844 | cat >&2 <<'END' | |
2845 | Oops! | |
2846 | ||
2847 | Your 'rm' program seems unable to run without file operands specified | |
2848 | on the command line, even when the '-f' option is present. This is contrary | |
2849 | to the behaviour of most rm programs out there, and not conforming with | |
2850 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2851 | ||
2852 | Please tell bug-automake@gnu.org about your system, including the value | |
2853 | of your $PATH and any error possibly output before this message. This | |
2854 | can help us improve future automake versions. | |
2855 | ||
2856 | END | |
2857 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2858 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2859 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2860 | echo >&2 | |
2861 | else | |
2862 | cat >&2 <<'END' | |
2863 | Aborting the configuration process, to ensure you take notice of the issue. | |
2864 | ||
2865 | You can download and install GNU coreutils to get an 'rm' implementation | |
2866 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2867 | ||
2868 | If you want to complete the configuration process using your problematic | |
2869 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2870 | to "yes", and re-run configure. | |
2871 | ||
2872 | END | |
2873 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2874 | fi | |
2875 | fi | |
2876 | ||
d9898ee8 | 2877 | LPATH="$PATH:/usr/local/bin" |
2878 | ||
2879 | ||
dd184caf | 2880 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2881 | |
2882 | DEPDIR="${am__leading_dot}deps" | |
2883 | ||
dd184caf | 2884 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 2885 | |
2886 | ||
2887 | am_make=${MAKE-make} | |
2888 | cat > confinc << 'END' | |
2889 | am__doit: | |
8d138742 | 2890 | @echo this is the am__doit target |
d9898ee8 | 2891 | .PHONY: am__doit |
2892 | END | |
2893 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 2895 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 2896 | am__include="#" |
2897 | am__quote= | |
2898 | _am_result=none | |
2899 | # First try GNU make style include. | |
2900 | echo "include confinc" > confmf | |
b0322a85 | 2901 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
2902 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2903 | *the\ am__doit\ target*) | |
2904 | am__include=include | |
2905 | am__quote= | |
2906 | _am_result=GNU | |
2907 | ;; | |
2908 | esac | |
d9898ee8 | 2909 | # Now try BSD make style include. |
2910 | if test "$am__include" = "#"; then | |
2911 | echo '.include "confinc"' > confmf | |
8d138742 CE |
2912 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2913 | *the\ am__doit\ target*) | |
2914 | am__include=.include | |
2915 | am__quote="\"" | |
2916 | _am_result=BSD | |
2917 | ;; | |
2918 | esac | |
d9898ee8 | 2919 | fi |
2920 | ||
2921 | ||
b0322a85 | 2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 2923 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 2924 | rm -f confinc confmf |
2925 | ||
dd184caf | 2926 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 2927 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 2928 | enableval=$enable_dependency_tracking; |
2929 | fi | |
d9898ee8 | 2930 | |
d9898ee8 | 2931 | if test "x$enable_dependency_tracking" != xno; then |
2932 | am_depcomp="$ac_aux_dir/depcomp" | |
2933 | AMDEPBACKSLASH='\' | |
b0322a85 | 2934 | am__nodep='_no' |
d9898ee8 | 2935 | fi |
dd184caf | 2936 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 2937 | AMDEP_TRUE= |
2938 | AMDEP_FALSE='#' | |
2939 | else | |
2940 | AMDEP_TRUE='#' | |
2941 | AMDEP_FALSE= | |
2942 | fi | |
2943 | ||
2944 | ||
d9898ee8 | 2945 | ac_ext=c |
2946 | ac_cpp='$CPP $CPPFLAGS' | |
2947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2950 | if test -n "$ac_tool_prefix"; then | |
2951 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2952 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2954 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2955 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2956 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2957 | else |
2958 | if test -n "$CC"; then | |
2959 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2960 | else | |
2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2962 | for as_dir in $PATH | |
2963 | do | |
2964 | IFS=$as_save_IFS | |
2965 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
2967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2968 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2970 | break 2 |
2971 | fi | |
2972 | done | |
b0322a85 | 2973 | done |
dd184caf | 2974 | IFS=$as_save_IFS |
d9898ee8 | 2975 | |
2976 | fi | |
2977 | fi | |
2978 | CC=$ac_cv_prog_CC | |
2979 | if test -n "$CC"; then | |
b0322a85 | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2981 | $as_echo "$CC" >&6; } |
d9898ee8 | 2982 | else |
b0322a85 | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2984 | $as_echo "no" >&6; } |
d9898ee8 | 2985 | fi |
2986 | ||
dd184caf | 2987 | |
d9898ee8 | 2988 | fi |
2989 | if test -z "$ac_cv_prog_CC"; then | |
2990 | ac_ct_CC=$CC | |
2991 | # Extract the first word of "gcc", so it can be a program name with args. | |
2992 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2994 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2995 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2996 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2997 | else |
2998 | if test -n "$ac_ct_CC"; then | |
2999 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3000 | else | |
3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3002 | for as_dir in $PATH | |
3003 | do | |
3004 | IFS=$as_save_IFS | |
3005 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3006 | for ac_exec_ext in '' $ac_executable_extensions; do |
3007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3008 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3010 | break 2 |
3011 | fi | |
3012 | done | |
b0322a85 | 3013 | done |
dd184caf | 3014 | IFS=$as_save_IFS |
d9898ee8 | 3015 | |
3016 | fi | |
3017 | fi | |
3018 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3019 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3021 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3022 | else |
b0322a85 | 3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3024 | $as_echo "no" >&6; } |
d9898ee8 | 3025 | fi |
3026 | ||
dd184caf | 3027 | if test "x$ac_ct_CC" = x; then |
3028 | CC="" | |
3029 | else | |
3030 | case $cross_compiling:$ac_tool_warned in | |
3031 | yes:) | |
b0322a85 | 3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3034 | ac_tool_warned=yes ;; |
3035 | esac | |
3036 | CC=$ac_ct_CC | |
3037 | fi | |
d9898ee8 | 3038 | else |
3039 | CC="$ac_cv_prog_CC" | |
3040 | fi | |
3041 | ||
3042 | if test -z "$CC"; then | |
dd184caf | 3043 | if test -n "$ac_tool_prefix"; then |
3044 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3045 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3047 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3048 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3049 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3050 | else |
3051 | if test -n "$CC"; then | |
3052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3053 | else | |
3054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3055 | for as_dir in $PATH | |
3056 | do | |
3057 | IFS=$as_save_IFS | |
3058 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do |
3060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3061 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3063 | break 2 |
3064 | fi | |
3065 | done | |
b0322a85 | 3066 | done |
dd184caf | 3067 | IFS=$as_save_IFS |
d9898ee8 | 3068 | |
3069 | fi | |
3070 | fi | |
3071 | CC=$ac_cv_prog_CC | |
3072 | if test -n "$CC"; then | |
b0322a85 | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3074 | $as_echo "$CC" >&6; } |
d9898ee8 | 3075 | else |
b0322a85 | 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3077 | $as_echo "no" >&6; } |
d9898ee8 | 3078 | fi |
3079 | ||
d9898ee8 | 3080 | |
dd184caf | 3081 | fi |
d9898ee8 | 3082 | fi |
3083 | if test -z "$CC"; then | |
3084 | # Extract the first word of "cc", so it can be a program name with args. | |
3085 | set dummy cc; ac_word=$2 | |
b0322a85 | 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3087 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3088 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3089 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3090 | else |
3091 | if test -n "$CC"; then | |
3092 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3093 | else | |
3094 | ac_prog_rejected=no | |
3095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3096 | for as_dir in $PATH | |
3097 | do | |
3098 | IFS=$as_save_IFS | |
3099 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3100 | for ac_exec_ext in '' $ac_executable_extensions; do |
3101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3102 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3103 | ac_prog_rejected=yes | |
3104 | continue | |
3105 | fi | |
3106 | ac_cv_prog_CC="cc" | |
b0322a85 | 3107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3108 | break 2 |
3109 | fi | |
3110 | done | |
b0322a85 | 3111 | done |
dd184caf | 3112 | IFS=$as_save_IFS |
d9898ee8 | 3113 | |
3114 | if test $ac_prog_rejected = yes; then | |
3115 | # We found a bogon in the path, so make sure we never use it. | |
3116 | set dummy $ac_cv_prog_CC | |
3117 | shift | |
3118 | if test $# != 0; then | |
3119 | # We chose a different compiler from the bogus one. | |
3120 | # However, it has the same basename, so the bogon will be chosen | |
3121 | # first if we set CC to just the basename; use the full file name. | |
3122 | shift | |
3123 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3124 | fi | |
3125 | fi | |
3126 | fi | |
3127 | fi | |
3128 | CC=$ac_cv_prog_CC | |
3129 | if test -n "$CC"; then | |
b0322a85 | 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3131 | $as_echo "$CC" >&6; } |
d9898ee8 | 3132 | else |
b0322a85 | 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3134 | $as_echo "no" >&6; } |
d9898ee8 | 3135 | fi |
3136 | ||
dd184caf | 3137 | |
d9898ee8 | 3138 | fi |
3139 | if test -z "$CC"; then | |
3140 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3141 | for ac_prog in cl.exe |
d9898ee8 | 3142 | do |
3143 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3144 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3146 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3147 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3148 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3149 | else |
3150 | if test -n "$CC"; then | |
3151 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3152 | else | |
3153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3154 | for as_dir in $PATH | |
3155 | do | |
3156 | IFS=$as_save_IFS | |
3157 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3158 | for ac_exec_ext in '' $ac_executable_extensions; do |
3159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3160 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3162 | break 2 |
3163 | fi | |
3164 | done | |
b0322a85 | 3165 | done |
dd184caf | 3166 | IFS=$as_save_IFS |
d9898ee8 | 3167 | |
3168 | fi | |
3169 | fi | |
3170 | CC=$ac_cv_prog_CC | |
3171 | if test -n "$CC"; then | |
b0322a85 | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3173 | $as_echo "$CC" >&6; } |
d9898ee8 | 3174 | else |
b0322a85 | 3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3176 | $as_echo "no" >&6; } |
d9898ee8 | 3177 | fi |
3178 | ||
dd184caf | 3179 | |
d9898ee8 | 3180 | test -n "$CC" && break |
3181 | done | |
3182 | fi | |
3183 | if test -z "$CC"; then | |
3184 | ac_ct_CC=$CC | |
dd184caf | 3185 | for ac_prog in cl.exe |
d9898ee8 | 3186 | do |
3187 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3188 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3190 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3191 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3192 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3193 | else |
3194 | if test -n "$ac_ct_CC"; then | |
3195 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3196 | else | |
3197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3198 | for as_dir in $PATH | |
3199 | do | |
3200 | IFS=$as_save_IFS | |
3201 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3202 | for ac_exec_ext in '' $ac_executable_extensions; do |
3203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3204 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3206 | break 2 |
3207 | fi | |
3208 | done | |
b0322a85 | 3209 | done |
dd184caf | 3210 | IFS=$as_save_IFS |
d9898ee8 | 3211 | |
3212 | fi | |
3213 | fi | |
3214 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3215 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3217 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3218 | else |
b0322a85 | 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3220 | $as_echo "no" >&6; } |
d9898ee8 | 3221 | fi |
3222 | ||
dd184caf | 3223 | |
d9898ee8 | 3224 | test -n "$ac_ct_CC" && break |
3225 | done | |
3226 | ||
dd184caf | 3227 | if test "x$ac_ct_CC" = x; then |
3228 | CC="" | |
3229 | else | |
3230 | case $cross_compiling:$ac_tool_warned in | |
3231 | yes:) | |
b0322a85 | 3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3233 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3234 | ac_tool_warned=yes ;; |
3235 | esac | |
3236 | CC=$ac_ct_CC | |
3237 | fi | |
d9898ee8 | 3238 | fi |
3239 | ||
3240 | fi | |
3241 | ||
3242 | ||
b0322a85 | 3243 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3245 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3246 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3247 | |
3248 | # Provide some information about the compiler. | |
b0322a85 | 3249 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3250 | set X $ac_compile |
3251 | ac_compiler=$2 | |
b0322a85 CE |
3252 | for ac_option in --version -v -V -qversion; do |
3253 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3254 | case "(($ac_try" in |
3255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3256 | *) ac_try_echo=$ac_try;; | |
3257 | esac | |
b0322a85 CE |
3258 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3259 | $as_echo "$ac_try_echo"; } >&5 | |
3260 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3261 | ac_status=$? |
b0322a85 CE |
3262 | if test -s conftest.err; then |
3263 | sed '10a\ | |
3264 | ... rest of stderr output deleted ... | |
3265 | 10q' conftest.err >conftest.er1 | |
3266 | cat conftest.er1 >&5 | |
3267 | fi | |
3268 | rm -f conftest.er1 conftest.err | |
3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3270 | test $ac_status = 0; } | |
3271 | done | |
d9898ee8 | 3272 | |
b0322a85 | 3273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3274 | /* end confdefs.h. */ |
3275 | ||
3276 | int | |
3277 | main () | |
3278 | { | |
3279 | ||
3280 | ; | |
3281 | return 0; | |
3282 | } | |
3283 | _ACEOF | |
3284 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3285 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3286 | # Try to create an executable without -o first, disregard a.out. |
3287 | # It will help us diagnose broken compilers, and finding out an intuition | |
3288 | # of exeext. | |
b0322a85 CE |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3290 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3291 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3292 | ||
3293 | # The possible output files: | |
3294 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3295 | ||
dd184caf | 3296 | ac_rmfiles= |
3297 | for ac_file in $ac_files | |
3298 | do | |
3299 | case $ac_file in | |
8d138742 | 3300 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3301 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3302 | esac | |
3303 | done | |
3304 | rm -f $ac_rmfiles | |
3305 | ||
b0322a85 | 3306 | if { { ac_try="$ac_link_default" |
dd184caf | 3307 | case "(($ac_try" in |
3308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3309 | *) ac_try_echo=$ac_try;; | |
3310 | esac | |
b0322a85 CE |
3311 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3312 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3313 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3314 | ac_status=$? |
b0322a85 CE |
3315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3316 | test $ac_status = 0; }; then : | |
dd184caf | 3317 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3318 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3319 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3320 | # so that the user can short-circuit this test for compilers unknown to | |
3321 | # Autoconf. | |
3322 | for ac_file in $ac_files '' | |
d9898ee8 | 3323 | do |
3324 | test -f "$ac_file" || continue | |
3325 | case $ac_file in | |
8d138742 | 3326 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3327 | ;; |
3328 | [ab].out ) | |
3329 | # We found the default executable, but exeext='' is most | |
3330 | # certainly right. | |
3331 | break;; | |
3332 | *.* ) | |
b0322a85 | 3333 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3334 | then :; else |
3335 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3336 | fi | |
3337 | # We set ac_cv_exeext here because the later test for it is not | |
3338 | # safe: cross compilers may not add the suffix if given an `-o' | |
3339 | # argument, so we may need to know it at that point already. | |
3340 | # Even if this section looks crufty: it has the advantage of | |
3341 | # actually working. | |
d9898ee8 | 3342 | break;; |
3343 | * ) | |
3344 | break;; | |
3345 | esac | |
3346 | done | |
dd184caf | 3347 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3348 | ||
d9898ee8 | 3349 | else |
dd184caf | 3350 | ac_file='' |
3351 | fi | |
b0322a85 CE |
3352 | if test -z "$ac_file"; then : |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3354 | $as_echo "no" >&6; } | |
3355 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3356 | sed 's/^/| /' conftest.$ac_ext >&5 |
3357 | ||
b0322a85 | 3358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3360 | as_fn_error 77 "C compiler cannot create executables |
3361 | See \`config.log' for more details" "$LINENO" 5; } | |
3362 | else | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3364 | $as_echo "yes" >&6; } | |
d9898ee8 | 3365 | fi |
b0322a85 CE |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3367 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3369 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3370 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3371 | |
8d138742 | 3372 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3373 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3375 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3376 | if { { ac_try="$ac_link" |
dd184caf | 3377 | case "(($ac_try" in |
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3379 | *) ac_try_echo=$ac_try;; | |
3380 | esac | |
b0322a85 CE |
3381 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3382 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3383 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3384 | ac_status=$? |
b0322a85 CE |
3385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3386 | test $ac_status = 0; }; then : | |
d9898ee8 | 3387 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3388 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3389 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3390 | # `rm'. | |
3391 | for ac_file in conftest.exe conftest conftest.*; do | |
3392 | test -f "$ac_file" || continue | |
3393 | case $ac_file in | |
8d138742 | 3394 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3395 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3396 | break;; |
3397 | * ) break;; | |
3398 | esac | |
3399 | done | |
3400 | else | |
b0322a85 | 3401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3403 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3404 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3405 | fi |
b0322a85 CE |
3406 | rm -f conftest conftest$ac_cv_exeext |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3408 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3409 | |
3410 | rm -f conftest.$ac_ext | |
3411 | EXEEXT=$ac_cv_exeext | |
3412 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3414 | /* end confdefs.h. */ | |
3415 | #include <stdio.h> | |
3416 | int | |
3417 | main () | |
3418 | { | |
3419 | FILE *f = fopen ("conftest.out", "w"); | |
3420 | return ferror (f) || fclose (f) != 0; | |
3421 | ||
3422 | ; | |
3423 | return 0; | |
3424 | } | |
3425 | _ACEOF | |
3426 | ac_clean_files="$ac_clean_files conftest.out" | |
3427 | # Check that the compiler produces executables we can run. If not, either | |
3428 | # the compiler is broken, or we cross compile. | |
3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3430 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3431 | if test "$cross_compiling" != yes; then | |
3432 | { { ac_try="$ac_link" | |
3433 | case "(($ac_try" in | |
3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3435 | *) ac_try_echo=$ac_try;; | |
3436 | esac | |
3437 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3438 | $as_echo "$ac_try_echo"; } >&5 | |
3439 | (eval "$ac_link") 2>&5 | |
3440 | ac_status=$? | |
3441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3442 | test $ac_status = 0; } | |
3443 | if { ac_try='./conftest$ac_cv_exeext' | |
3444 | { { case "(($ac_try" in | |
3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3446 | *) ac_try_echo=$ac_try;; | |
3447 | esac | |
3448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3449 | $as_echo "$ac_try_echo"; } >&5 | |
3450 | (eval "$ac_try") 2>&5 | |
3451 | ac_status=$? | |
3452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3453 | test $ac_status = 0; }; }; then | |
3454 | cross_compiling=no | |
3455 | else | |
3456 | if test "$cross_compiling" = maybe; then | |
3457 | cross_compiling=yes | |
3458 | else | |
3459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3461 | as_fn_error $? "cannot run C compiled programs. | |
3462 | If you meant to cross compile, use \`--host'. | |
3463 | See \`config.log' for more details" "$LINENO" 5; } | |
3464 | fi | |
3465 | fi | |
3466 | fi | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3468 | $as_echo "$cross_compiling" >&6; } | |
3469 | ||
3470 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3471 | ac_clean_files=$ac_clean_files_save | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3473 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3474 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3475 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3476 | else |
b0322a85 | 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3478 | /* end confdefs.h. */ |
3479 | ||
3480 | int | |
3481 | main () | |
3482 | { | |
3483 | ||
3484 | ; | |
3485 | return 0; | |
3486 | } | |
3487 | _ACEOF | |
3488 | rm -f conftest.o conftest.obj | |
b0322a85 | 3489 | if { { ac_try="$ac_compile" |
dd184caf | 3490 | case "(($ac_try" in |
3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3492 | *) ac_try_echo=$ac_try;; | |
3493 | esac | |
b0322a85 CE |
3494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3495 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3496 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3497 | ac_status=$? |
b0322a85 CE |
3498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3499 | test $ac_status = 0; }; then : | |
dd184caf | 3500 | for ac_file in conftest.o conftest.obj conftest.*; do |
3501 | test -f "$ac_file" || continue; | |
d9898ee8 | 3502 | case $ac_file in |
8d138742 | 3503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3504 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3505 | break;; | |
3506 | esac | |
3507 | done | |
3508 | else | |
8d138742 | 3509 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
3511 | ||
b0322a85 | 3512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3514 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3515 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3516 | fi |
d9898ee8 | 3517 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3518 | fi | |
b0322a85 | 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3520 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3521 | OBJEXT=$ac_cv_objext |
3522 | ac_objext=$OBJEXT | |
b0322a85 | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3524 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3525 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3526 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3527 | else |
b0322a85 | 3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3529 | /* end confdefs.h. */ |
3530 | ||
3531 | int | |
3532 | main () | |
3533 | { | |
3534 | #ifndef __GNUC__ | |
3535 | choke me | |
3536 | #endif | |
3537 | ||
3538 | ; | |
3539 | return 0; | |
3540 | } | |
3541 | _ACEOF | |
b0322a85 | 3542 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3543 | ac_compiler_gnu=yes |
3544 | else | |
b0322a85 | 3545 | ac_compiler_gnu=no |
d9898ee8 | 3546 | fi |
dd184caf | 3547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3548 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3549 | ||
3550 | fi | |
b0322a85 | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3552 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3553 | if test $ac_compiler_gnu = yes; then | |
3554 | GCC=yes | |
3555 | else | |
3556 | GCC= | |
3557 | fi | |
d9898ee8 | 3558 | ac_test_CFLAGS=${CFLAGS+set} |
3559 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3561 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3562 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3563 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3564 | else |
dd184caf | 3565 | ac_save_c_werror_flag=$ac_c_werror_flag |
3566 | ac_c_werror_flag=yes | |
3567 | ac_cv_prog_cc_g=no | |
3568 | CFLAGS="-g" | |
b0322a85 | 3569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3570 | /* end confdefs.h. */ |
3571 | ||
3572 | int | |
3573 | main () | |
3574 | { | |
3575 | ||
b0322a85 CE |
3576 | ; |
3577 | return 0; | |
3578 | } | |
dd184caf | 3579 | _ACEOF |
b0322a85 CE |
3580 | if ac_fn_c_try_compile "$LINENO"; then : |
3581 | ac_cv_prog_cc_g=yes | |
3582 | else | |
3583 | CFLAGS="" | |
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 : |
dd184caf | 3596 | |
b0322a85 CE |
3597 | else |
3598 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3599 | CFLAGS="-g" |
b0322a85 | 3600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3601 | /* end confdefs.h. */ |
3602 | ||
3603 | int | |
3604 | main () | |
3605 | { | |
3606 | ||
3607 | ; | |
3608 | return 0; | |
3609 | } | |
3610 | _ACEOF | |
b0322a85 | 3611 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3612 | ac_cv_prog_cc_g=yes |
dd184caf | 3613 | fi |
dd184caf | 3614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3615 | fi | |
dd184caf | 3616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3617 | fi |
dd184caf | 3618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3619 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3620 | fi |
b0322a85 | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3622 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3623 | if test "$ac_test_CFLAGS" = set; then |
3624 | CFLAGS=$ac_save_CFLAGS | |
3625 | elif test $ac_cv_prog_cc_g = yes; then | |
3626 | if test "$GCC" = yes; then | |
3627 | CFLAGS="-g -O2" | |
3628 | else | |
3629 | CFLAGS="-g" | |
3630 | fi | |
3631 | else | |
3632 | if test "$GCC" = yes; then | |
3633 | CFLAGS="-O2" | |
3634 | else | |
3635 | CFLAGS= | |
3636 | fi | |
3637 | fi | |
b0322a85 | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3639 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3640 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3641 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3642 | else |
dd184caf | 3643 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3644 | ac_save_CC=$CC |
b0322a85 | 3645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3646 | /* end confdefs.h. */ |
3647 | #include <stdarg.h> | |
3648 | #include <stdio.h> | |
b0322a85 | 3649 | struct stat; |
d9898ee8 | 3650 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3651 | struct buf { int x; }; | |
3652 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3653 | static char *e (p, i) | |
3654 | char **p; | |
3655 | int i; | |
3656 | { | |
3657 | return p[i]; | |
3658 | } | |
3659 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3660 | { | |
3661 | char *s; | |
3662 | va_list v; | |
3663 | va_start (v,p); | |
3664 | s = g (p, va_arg (v,int)); | |
3665 | va_end (v); | |
3666 | return s; | |
3667 | } | |
3668 | ||
3669 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3670 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3671 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3672 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3673 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3674 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3675 | that's true only with -std. */ |
d9898ee8 | 3676 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3677 | ||
dd184caf | 3678 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3679 | inside strings and character constants. */ | |
3680 | #define FOO(x) 'x' | |
3681 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3682 | ||
d9898ee8 | 3683 | int test (int i, double x); |
3684 | struct s1 {int (*f) (int a);}; | |
3685 | struct s2 {int (*f) (double a);}; | |
3686 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3687 | int argc; | |
3688 | char **argv; | |
3689 | int | |
3690 | main () | |
3691 | { | |
3692 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3693 | ; | |
3694 | return 0; | |
3695 | } | |
3696 | _ACEOF | |
dd184caf | 3697 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3698 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3699 | do |
3700 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3701 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3702 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3703 | fi |
dd184caf | 3704 | rm -f core conftest.err conftest.$ac_objext |
3705 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3706 | done |
dd184caf | 3707 | rm -f conftest.$ac_ext |
d9898ee8 | 3708 | CC=$ac_save_CC |
3709 | ||
3710 | fi | |
dd184caf | 3711 | # AC_CACHE_VAL |
3712 | case "x$ac_cv_prog_cc_c89" in | |
3713 | x) | |
b0322a85 | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3715 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3716 | xno) |
b0322a85 | 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3718 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3719 | *) |
dd184caf | 3720 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3722 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3723 | esac |
b0322a85 | 3724 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3725 | |
b0322a85 | 3726 | fi |
d9898ee8 | 3727 | |
d9898ee8 | 3728 | ac_ext=c |
3729 | ac_cpp='$CPP $CPPFLAGS' | |
3730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3733 | ||
d50284c4 CE |
3734 | ac_ext=c |
3735 | ac_cpp='$CPP $CPPFLAGS' | |
3736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3740 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3741 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3742 | $as_echo_n "(cached) " >&6 | |
3743 | else | |
3744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3745 | /* end confdefs.h. */ | |
3746 | ||
3747 | int | |
3748 | main () | |
3749 | { | |
3750 | ||
3751 | ; | |
3752 | return 0; | |
3753 | } | |
3754 | _ACEOF | |
3755 | # Make sure it works both with $CC and with simple cc. | |
3756 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3757 | # compilers refuse to overwrite an existing .o file with -o, | |
3758 | # though they will create one. | |
3759 | am_cv_prog_cc_c_o=yes | |
3760 | for am_i in 1 2; do | |
3761 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3762 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3763 | ac_status=$? | |
3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3765 | (exit $ac_status); } \ | |
3766 | && test -f conftest2.$ac_objext; then | |
3767 | : OK | |
3768 | else | |
3769 | am_cv_prog_cc_c_o=no | |
3770 | break | |
3771 | fi | |
3772 | done | |
3773 | rm -f core conftest* | |
3774 | unset am_i | |
3775 | fi | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3777 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3778 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3779 | # Losing compiler, so override with the script. | |
3780 | # FIXME: It is wrong to rewrite CC. | |
3781 | # But if we don't then we get into trouble of one sort or another. | |
3782 | # A longer-term fix would be to have automake use am__CC in this case, | |
3783 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3784 | CC="$am_aux_dir/compile $CC" | |
3785 | fi | |
3786 | ac_ext=c | |
3787 | ac_cpp='$CPP $CPPFLAGS' | |
3788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3791 | ||
3792 | ||
d9898ee8 | 3793 | depcc="$CC" am_compiler_list= |
3794 | ||
b0322a85 | 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3796 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3797 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3798 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3799 | else |
3800 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3801 | # We make a subdir and do the tests there. Otherwise we can end up | |
3802 | # making bogus files that we don't know about and never remove. For | |
3803 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3804 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3805 | # in D". | |
3806 | rm -rf conftest.dir | |
d9898ee8 | 3807 | mkdir conftest.dir |
3808 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3809 | # using a relative directory. | |
3810 | cp "$am_depcomp" conftest.dir | |
3811 | cd conftest.dir | |
3812 | # We will build objects and dependencies in a subdirectory because | |
3813 | # it helps to detect inapplicable dependency modes. For instance | |
3814 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3815 | # side effect of compilation, but ICC will put the dependencies in | |
3816 | # the current directory while Tru64 will put them in the object | |
3817 | # directory. | |
3818 | mkdir sub | |
3819 | ||
3820 | am_cv_CC_dependencies_compiler_type=none | |
3821 | if test "$am_compiler_list" = ""; then | |
3822 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3823 | fi | |
8d138742 CE |
3824 | am__universal=false |
3825 | case " $depcc " in #( | |
3826 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3827 | esac | |
3828 | ||
d9898ee8 | 3829 | for depmode in $am_compiler_list; do |
3830 | # Setup a source with many dependencies, because some compilers | |
3831 | # like to wrap large dependency lists on column 80 (with \), and | |
3832 | # we should not choose a depcomp mode which is confused by this. | |
3833 | # | |
3834 | # We need to recreate these files for each test, as the compiler may | |
3835 | # overwrite some of them when testing with obscure command lines. | |
3836 | # This happens at least with the AIX C compiler. | |
3837 | : > sub/conftest.c | |
3838 | for i in 1 2 3 4 5 6; do | |
3839 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3840 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3841 | # Solaris 10 /bin/sh. | |
3842 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3843 | done |
3844 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3845 | ||
b0322a85 | 3846 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3847 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3848 | # handle '-M -o', and we need to detect this. Also, some Intel |
3849 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3850 | am__obj=sub/conftest.${OBJEXT-o} |
3851 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3852 | case $depmode in |
8d138742 CE |
3853 | gcc) |
3854 | # This depmode causes a compiler race in universal mode. | |
3855 | test "$am__universal" = false || continue | |
3856 | ;; | |
d9898ee8 | 3857 | nosideeffect) |
b0322a85 CE |
3858 | # After this tag, mechanisms are not by side-effect, so they'll |
3859 | # only be used when explicitly requested. | |
d9898ee8 | 3860 | if test "x$enable_dependency_tracking" = xyes; then |
3861 | continue | |
3862 | else | |
3863 | break | |
3864 | fi | |
3865 | ;; | |
b0322a85 CE |
3866 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3867 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3868 | # not run yet. These depmodes are late enough in the game, and |
3869 | # so weak that their functioning should not be impacted. | |
3870 | am__obj=conftest.${OBJEXT-o} | |
3871 | am__minus_obj= | |
3872 | ;; | |
d9898ee8 | 3873 | none) break ;; |
3874 | esac | |
d9898ee8 | 3875 | if depmode=$depmode \ |
8d138742 | 3876 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3877 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3878 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3879 | >/dev/null 2>conftest.err && |
dd184caf | 3880 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3881 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3882 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3883 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3884 | # icc doesn't choke on unknown options, it will just issue warnings | |
3885 | # or remarks (even with -Werror). So we grep stderr for any message | |
3886 | # that says an option was ignored or not supported. | |
3887 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3888 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3889 | # The diagnosis changed in icc 8.0: | |
3890 | # icc: Command line remark: option '-MP' not supported | |
3891 | if (grep 'ignoring option' conftest.err || | |
3892 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3893 | am_cv_CC_dependencies_compiler_type=$depmode | |
3894 | break | |
3895 | fi | |
3896 | fi | |
3897 | done | |
3898 | ||
3899 | cd .. | |
3900 | rm -rf conftest.dir | |
3901 | else | |
3902 | am_cv_CC_dependencies_compiler_type=none | |
3903 | fi | |
3904 | ||
3905 | fi | |
b0322a85 | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3907 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3908 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3909 | ||
dd184caf | 3910 | if |
d9898ee8 | 3911 | test "x$enable_dependency_tracking" != xno \ |
3912 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3913 | am__fastdepCC_TRUE= | |
3914 | am__fastdepCC_FALSE='#' | |
3915 | else | |
3916 | am__fastdepCC_TRUE='#' | |
3917 | am__fastdepCC_FALSE= | |
3918 | fi | |
3919 | ||
3920 | ||
3921 | ||
3922 | ac_ext=c | |
3923 | ac_cpp='$CPP $CPPFLAGS' | |
3924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 | 3928 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
d9898ee8 | 3929 | # On Suns, sometimes $CPP names a directory. |
3930 | if test -n "$CPP" && test -d "$CPP"; then | |
3931 | CPP= | |
3932 | fi | |
3933 | if test -z "$CPP"; then | |
b0322a85 | 3934 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 3935 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3936 | else |
3937 | # Double quotes because CPP needs to be expanded | |
3938 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3939 | do | |
3940 | ac_preproc_ok=false | |
3941 | for ac_c_preproc_warn_flag in '' yes | |
3942 | do | |
3943 | # Use a header file that comes with gcc, so configuring glibc | |
3944 | # with a fresh cross-compiler works. | |
3945 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3946 | # <limits.h> exists even on freestanding compilers. | |
3947 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3948 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3950 | /* end confdefs.h. */ |
3951 | #ifdef __STDC__ | |
3952 | # include <limits.h> | |
3953 | #else | |
3954 | # include <assert.h> | |
3955 | #endif | |
3956 | Syntax error | |
3957 | _ACEOF | |
b0322a85 | 3958 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 3959 | |
b0322a85 | 3960 | else |
d9898ee8 | 3961 | # Broken: fails on valid input. |
3962 | continue | |
3963 | fi | |
b0322a85 | 3964 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 3965 | |
dd184caf | 3966 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3967 | # can be detected and how. |
b0322a85 | 3968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3969 | /* end confdefs.h. */ |
3970 | #include <ac_nonexistent.h> | |
3971 | _ACEOF | |
b0322a85 | 3972 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 3973 | # Broken: success on invalid input. |
3974 | continue | |
3975 | else | |
d9898ee8 | 3976 | # Passes both tests. |
3977 | ac_preproc_ok=: | |
3978 | break | |
3979 | fi | |
b0322a85 | 3980 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 3981 | |
3982 | done | |
3983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
3984 | rm -f conftest.i conftest.err conftest.$ac_ext |
3985 | if $ac_preproc_ok; then : | |
d9898ee8 | 3986 | break |
3987 | fi | |
3988 | ||
3989 | done | |
3990 | ac_cv_prog_CPP=$CPP | |
3991 | ||
3992 | fi | |
3993 | CPP=$ac_cv_prog_CPP | |
3994 | else | |
3995 | ac_cv_prog_CPP=$CPP | |
3996 | fi | |
b0322a85 | 3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 | 3998 | $as_echo "$CPP" >&6; } |
d9898ee8 | 3999 | ac_preproc_ok=false |
4000 | for ac_c_preproc_warn_flag in '' yes | |
4001 | do | |
4002 | # Use a header file that comes with gcc, so configuring glibc | |
4003 | # with a fresh cross-compiler works. | |
4004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4005 | # <limits.h> exists even on freestanding compilers. | |
4006 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4007 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4009 | /* end confdefs.h. */ |
4010 | #ifdef __STDC__ | |
4011 | # include <limits.h> | |
4012 | #else | |
4013 | # include <assert.h> | |
4014 | #endif | |
4015 | Syntax error | |
4016 | _ACEOF | |
b0322a85 | 4017 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4018 | |
b0322a85 | 4019 | else |
d9898ee8 | 4020 | # Broken: fails on valid input. |
4021 | continue | |
4022 | fi | |
b0322a85 | 4023 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4024 | |
dd184caf | 4025 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4026 | # can be detected and how. |
b0322a85 | 4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4028 | /* end confdefs.h. */ |
4029 | #include <ac_nonexistent.h> | |
4030 | _ACEOF | |
b0322a85 | 4031 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4032 | # Broken: success on invalid input. |
4033 | continue | |
4034 | else | |
d9898ee8 | 4035 | # Passes both tests. |
4036 | ac_preproc_ok=: | |
4037 | break | |
4038 | fi | |
b0322a85 | 4039 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4040 | |
4041 | done | |
4042 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4043 | rm -f conftest.i conftest.err conftest.$ac_ext |
4044 | if $ac_preproc_ok; then : | |
4045 | ||
d9898ee8 | 4046 | else |
b0322a85 | 4047 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4048 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4049 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4050 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4051 | fi |
4052 | ||
4053 | ac_ext=c | |
4054 | ac_cpp='$CPP $CPPFLAGS' | |
4055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4058 | ||
4059 | ||
b0322a85 | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4061 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4062 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4063 | $as_echo_n "(cached) " >&6 |
dd184caf | 4064 | else |
8d138742 | 4065 | if test -z "$GREP"; then |
dd184caf | 4066 | ac_path_GREP_found=false |
8d138742 CE |
4067 | # Loop through the user's path and test for each of PROGNAME-LIST |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4069 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4073 | for ac_prog in grep ggrep; do |
8d138742 CE |
4074 | for ac_exec_ext in '' $ac_executable_extensions; do |
4075 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4076 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4077 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4078 | # Check for GNU $ac_path_GREP |
4079 | case `"$ac_path_GREP" --version 2>&1` in | |
4080 | *GNU*) | |
4081 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4082 | *) | |
4083 | ac_count=0 | |
8d138742 | 4084 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4085 | while : |
4086 | do | |
4087 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4088 | mv "conftest.tmp" "conftest.in" | |
4089 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4090 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4091 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4092 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4093 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4094 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4095 | # Best one so far, save it but keep looking for a better one | |
4096 | ac_cv_path_GREP="$ac_path_GREP" | |
4097 | ac_path_GREP_max=$ac_count | |
4098 | fi | |
4099 | # 10*(2^10) chars as input seems more than enough | |
4100 | test $ac_count -gt 10 && break | |
4101 | done | |
4102 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4103 | esac | |
4104 | ||
8d138742 CE |
4105 | $ac_path_GREP_found && break 3 |
4106 | done | |
dd184caf | 4107 | done |
b0322a85 | 4108 | done |
dd184caf | 4109 | IFS=$as_save_IFS |
8d138742 | 4110 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4111 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4112 | fi |
dd184caf | 4113 | else |
4114 | ac_cv_path_GREP=$GREP | |
4115 | fi | |
4116 | ||
dd184caf | 4117 | fi |
b0322a85 | 4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4119 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4120 | GREP="$ac_cv_path_GREP" |
4121 | ||
4122 | ||
b0322a85 | 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4124 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4125 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4126 | $as_echo_n "(cached) " >&6 |
dd184caf | 4127 | else |
4128 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4129 | then ac_cv_path_EGREP="$GREP -E" | |
4130 | else | |
8d138742 | 4131 | if test -z "$EGREP"; then |
dd184caf | 4132 | ac_path_EGREP_found=false |
8d138742 CE |
4133 | # Loop through the user's path and test for each of PROGNAME-LIST |
4134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4135 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4136 | do | |
4137 | IFS=$as_save_IFS | |
4138 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4139 | for ac_prog in egrep; do |
8d138742 CE |
4140 | for ac_exec_ext in '' $ac_executable_extensions; do |
4141 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4142 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4143 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4144 | # Check for GNU $ac_path_EGREP |
4145 | case `"$ac_path_EGREP" --version 2>&1` in | |
4146 | *GNU*) | |
4147 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4148 | *) | |
4149 | ac_count=0 | |
8d138742 | 4150 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4151 | while : |
4152 | do | |
4153 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4154 | mv "conftest.tmp" "conftest.in" | |
4155 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4156 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4157 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4158 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4159 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4160 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4161 | # Best one so far, save it but keep looking for a better one | |
4162 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4163 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4164 | fi |
dd184caf | 4165 | # 10*(2^10) chars as input seems more than enough |
4166 | test $ac_count -gt 10 && break | |
4167 | done | |
4168 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4169 | esac | |
4170 | ||
8d138742 CE |
4171 | $ac_path_EGREP_found && break 3 |
4172 | done | |
dd184caf | 4173 | done |
b0322a85 | 4174 | done |
dd184caf | 4175 | IFS=$as_save_IFS |
8d138742 | 4176 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4177 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4178 | fi |
dd184caf | 4179 | else |
4180 | ac_cv_path_EGREP=$EGREP | |
4181 | fi | |
4182 | ||
dd184caf | 4183 | fi |
4184 | fi | |
b0322a85 | 4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 | 4186 | $as_echo "$ac_cv_path_EGREP" >&6; } |
dd184caf | 4187 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 | 4188 | |
4189 | ||
b0322a85 | 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 4191 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 4192 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 | 4193 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4194 | else |
b0322a85 | 4195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4196 | /* end confdefs.h. */ |
4197 | #include <stdlib.h> | |
4198 | #include <stdarg.h> | |
4199 | #include <string.h> | |
4200 | #include <float.h> | |
4201 | ||
4202 | int | |
4203 | main () | |
4204 | { | |
4205 | ||
4206 | ; | |
4207 | return 0; | |
4208 | } | |
4209 | _ACEOF | |
b0322a85 | 4210 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 4211 | ac_cv_header_stdc=yes |
4212 | else | |
b0322a85 | 4213 | ac_cv_header_stdc=no |
d9898ee8 | 4214 | fi |
dd184caf | 4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4216 | |
4217 | if test $ac_cv_header_stdc = yes; then | |
4218 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4220 | /* end confdefs.h. */ |
4221 | #include <string.h> | |
4222 | ||
4223 | _ACEOF | |
4224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
4225 | $EGREP "memchr" >/dev/null 2>&1; then : |
4226 | ||
d9898ee8 | 4227 | else |
4228 | ac_cv_header_stdc=no | |
4229 | fi | |
4230 | rm -f conftest* | |
4231 | ||
4232 | fi | |
4233 | ||
4234 | if test $ac_cv_header_stdc = yes; then | |
4235 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 4236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4237 | /* end confdefs.h. */ |
4238 | #include <stdlib.h> | |
4239 | ||
4240 | _ACEOF | |
4241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
4242 | $EGREP "free" >/dev/null 2>&1; then : |
4243 | ||
d9898ee8 | 4244 | else |
4245 | ac_cv_header_stdc=no | |
4246 | fi | |
4247 | rm -f conftest* | |
4248 | ||
4249 | fi | |
4250 | ||
4251 | if test $ac_cv_header_stdc = yes; then | |
4252 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 4253 | if test "$cross_compiling" = yes; then : |
d9898ee8 | 4254 | : |
4255 | else | |
b0322a85 | 4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4257 | /* end confdefs.h. */ |
4258 | #include <ctype.h> | |
dd184caf | 4259 | #include <stdlib.h> |
d9898ee8 | 4260 | #if ((' ' & 0x0FF) == 0x020) |
4261 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4262 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4263 | #else | |
4264 | # define ISLOWER(c) \ | |
4265 | (('a' <= (c) && (c) <= 'i') \ | |
4266 | || ('j' <= (c) && (c) <= 'r') \ | |
4267 | || ('s' <= (c) && (c) <= 'z')) | |
4268 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4269 | #endif | |
4270 | ||
4271 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4272 | int | |
4273 | main () | |
4274 | { | |
4275 | int i; | |
4276 | for (i = 0; i < 256; i++) | |
4277 | if (XOR (islower (i), ISLOWER (i)) | |
b0322a85 CE |
4278 | || toupper (i) != TOUPPER (i)) |
4279 | return 2; | |
4280 | return 0; | |
4281 | } | |
4282 | _ACEOF | |
4283 | if ac_fn_c_try_run "$LINENO"; then : | |
4284 | ||
d9898ee8 | 4285 | else |
b0322a85 CE |
4286 | ac_cv_header_stdc=no |
4287 | fi | |
4288 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4289 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4290 | fi | |
d9898ee8 | 4291 | |
d9898ee8 | 4292 | fi |
b0322a85 CE |
4293 | fi |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4295 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4296 | if test $ac_cv_header_stdc = yes; then | |
dd184caf | 4297 | |
b0322a85 | 4298 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 4299 | |
d9898ee8 | 4300 | fi |
b0322a85 CE |
4301 | |
4302 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4303 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4304 | inttypes.h stdint.h unistd.h | |
4305 | do : | |
4306 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4307 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4308 | " | |
4309 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4310 | cat >>confdefs.h <<_ACEOF | |
4311 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4312 | _ACEOF | |
d9898ee8 | 4313 | |
4314 | fi | |
b0322a85 CE |
4315 | |
4316 | done | |
4317 | ||
4318 | ||
4319 | ||
4320 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4321 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
d9898ee8 | 4322 | MINIX=yes |
4323 | else | |
4324 | MINIX= | |
4325 | fi | |
4326 | ||
4327 | ||
8d138742 | 4328 | if test "$MINIX" = yes; then |
d9898ee8 | 4329 | |
b0322a85 | 4330 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d9898ee8 | 4331 | |
4332 | ||
b0322a85 | 4333 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d9898ee8 | 4334 | |
4335 | ||
b0322a85 | 4336 | $as_echo "#define _MINIX 1" >>confdefs.h |
d9898ee8 | 4337 | |
8d138742 CE |
4338 | fi |
4339 | ||
4340 | ||
b0322a85 | 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
8d138742 | 4342 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
b0322a85 | 4343 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8d138742 CE |
4344 | $as_echo_n "(cached) " >&6 |
4345 | else | |
b0322a85 | 4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
4347 | /* end confdefs.h. */ |
4348 | ||
b0322a85 CE |
4349 | # define __EXTENSIONS__ 1 |
4350 | $ac_includes_default | |
8d138742 CE |
4351 | int |
4352 | main () | |
4353 | { | |
4354 | ||
4355 | ; | |
4356 | return 0; | |
4357 | } | |
4358 | _ACEOF | |
b0322a85 | 4359 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
4360 | ac_cv_safe_to_define___extensions__=yes |
4361 | else | |
b0322a85 | 4362 | ac_cv_safe_to_define___extensions__=no |
8d138742 | 4363 | fi |
8d138742 | 4364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4365 | fi |
b0322a85 | 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
8d138742 CE |
4367 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4368 | test $ac_cv_safe_to_define___extensions__ = yes && | |
b0322a85 | 4369 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
8d138742 | 4370 | |
b0322a85 | 4371 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d9898ee8 | 4372 | |
b0322a85 | 4373 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
d9898ee8 | 4374 | |
b0322a85 | 4375 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
d9898ee8 | 4376 | |
b0322a85 | 4377 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d9898ee8 | 4378 | |
d9898ee8 | 4379 | |
d9898ee8 | 4380 | |
b0322a85 | 4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 4382 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 4383 | LN_S=$as_ln_s |
4384 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 4386 | $as_echo "yes" >&6; } |
d9898ee8 | 4387 | else |
b0322a85 | 4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 4389 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 4390 | fi |
4391 | ||
4392 | ac_ext=c | |
4393 | ac_cpp='$CPP $CPPFLAGS' | |
4394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4397 | if test -n "$ac_tool_prefix"; then | |
4398 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4399 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4401 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4402 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4403 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4404 | else |
4405 | if test -n "$CC"; then | |
4406 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4407 | else | |
4408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4409 | for as_dir in $PATH | |
4410 | do | |
4411 | IFS=$as_save_IFS | |
4412 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4413 | for ac_exec_ext in '' $ac_executable_extensions; do |
4414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4415 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 4416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4417 | break 2 |
4418 | fi | |
4419 | done | |
b0322a85 | 4420 | done |
dd184caf | 4421 | IFS=$as_save_IFS |
d9898ee8 | 4422 | |
4423 | fi | |
4424 | fi | |
4425 | CC=$ac_cv_prog_CC | |
4426 | if test -n "$CC"; then | |
b0322a85 | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4428 | $as_echo "$CC" >&6; } |
d9898ee8 | 4429 | else |
b0322a85 | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4431 | $as_echo "no" >&6; } |
d9898ee8 | 4432 | fi |
4433 | ||
dd184caf | 4434 | |
d9898ee8 | 4435 | fi |
4436 | if test -z "$ac_cv_prog_CC"; then | |
4437 | ac_ct_CC=$CC | |
4438 | # Extract the first word of "gcc", so it can be a program name with args. | |
4439 | set dummy gcc; ac_word=$2 | |
b0322a85 | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4441 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4442 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 4443 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4444 | else |
4445 | if test -n "$ac_ct_CC"; then | |
4446 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4447 | else | |
4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4449 | for as_dir in $PATH | |
4450 | do | |
4451 | IFS=$as_save_IFS | |
4452 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
4454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4455 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 4456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4457 | break 2 |
4458 | fi | |
4459 | done | |
b0322a85 | 4460 | done |
dd184caf | 4461 | IFS=$as_save_IFS |
d9898ee8 | 4462 | |
4463 | fi | |
4464 | fi | |
4465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4466 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 4468 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 4469 | else |
b0322a85 | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4471 | $as_echo "no" >&6; } |
d9898ee8 | 4472 | fi |
4473 | ||
dd184caf | 4474 | if test "x$ac_ct_CC" = x; then |
4475 | CC="" | |
4476 | else | |
4477 | case $cross_compiling:$ac_tool_warned in | |
4478 | yes:) | |
b0322a85 | 4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 4480 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 4481 | ac_tool_warned=yes ;; |
4482 | esac | |
4483 | CC=$ac_ct_CC | |
4484 | fi | |
d9898ee8 | 4485 | else |
4486 | CC="$ac_cv_prog_CC" | |
4487 | fi | |
4488 | ||
4489 | if test -z "$CC"; then | |
dd184caf | 4490 | if test -n "$ac_tool_prefix"; then |
4491 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 4492 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4494 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4495 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4496 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4497 | else |
4498 | if test -n "$CC"; then | |
4499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4500 | else | |
4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4502 | for as_dir in $PATH | |
4503 | do | |
4504 | IFS=$as_save_IFS | |
4505 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4506 | for ac_exec_ext in '' $ac_executable_extensions; do |
4507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4508 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 4509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4510 | break 2 |
4511 | fi | |
4512 | done | |
b0322a85 | 4513 | done |
dd184caf | 4514 | IFS=$as_save_IFS |
d9898ee8 | 4515 | |
4516 | fi | |
4517 | fi | |
4518 | CC=$ac_cv_prog_CC | |
4519 | if test -n "$CC"; then | |
b0322a85 | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4521 | $as_echo "$CC" >&6; } |
d9898ee8 | 4522 | else |
b0322a85 | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4524 | $as_echo "no" >&6; } |
d9898ee8 | 4525 | fi |
4526 | ||
d9898ee8 | 4527 | |
dd184caf | 4528 | fi |
d9898ee8 | 4529 | fi |
4530 | if test -z "$CC"; then | |
4531 | # Extract the first word of "cc", so it can be a program name with args. | |
4532 | set dummy cc; ac_word=$2 | |
b0322a85 | 4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4534 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4535 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4536 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4537 | else |
4538 | if test -n "$CC"; then | |
4539 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4540 | else | |
4541 | ac_prog_rejected=no | |
4542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4543 | for as_dir in $PATH | |
4544 | do | |
4545 | IFS=$as_save_IFS | |
4546 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4547 | for ac_exec_ext in '' $ac_executable_extensions; do |
4548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4549 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4550 | ac_prog_rejected=yes | |
4551 | continue | |
4552 | fi | |
4553 | ac_cv_prog_CC="cc" | |
b0322a85 | 4554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4555 | break 2 |
4556 | fi | |
4557 | done | |
b0322a85 | 4558 | done |
dd184caf | 4559 | IFS=$as_save_IFS |
d9898ee8 | 4560 | |
4561 | if test $ac_prog_rejected = yes; then | |
4562 | # We found a bogon in the path, so make sure we never use it. | |
4563 | set dummy $ac_cv_prog_CC | |
4564 | shift | |
4565 | if test $# != 0; then | |
4566 | # We chose a different compiler from the bogus one. | |
4567 | # However, it has the same basename, so the bogon will be chosen | |
4568 | # first if we set CC to just the basename; use the full file name. | |
4569 | shift | |
4570 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4571 | fi | |
4572 | fi | |
4573 | fi | |
4574 | fi | |
4575 | CC=$ac_cv_prog_CC | |
4576 | if test -n "$CC"; then | |
b0322a85 | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4578 | $as_echo "$CC" >&6; } |
d9898ee8 | 4579 | else |
b0322a85 | 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4581 | $as_echo "no" >&6; } |
d9898ee8 | 4582 | fi |
4583 | ||
dd184caf | 4584 | |
d9898ee8 | 4585 | fi |
4586 | if test -z "$CC"; then | |
4587 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 4588 | for ac_prog in cl.exe |
d9898ee8 | 4589 | do |
4590 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4591 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4593 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4594 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 4595 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4596 | else |
4597 | if test -n "$CC"; then | |
4598 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4599 | else | |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4605 | for ac_exec_ext in '' $ac_executable_extensions; do |
4606 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4607 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 4608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4609 | break 2 |
4610 | fi | |
4611 | done | |
b0322a85 | 4612 | done |
dd184caf | 4613 | IFS=$as_save_IFS |
d9898ee8 | 4614 | |
4615 | fi | |
4616 | fi | |
4617 | CC=$ac_cv_prog_CC | |
4618 | if test -n "$CC"; then | |
b0322a85 | 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 4620 | $as_echo "$CC" >&6; } |
d9898ee8 | 4621 | else |
b0322a85 | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4623 | $as_echo "no" >&6; } |
d9898ee8 | 4624 | fi |
4625 | ||
dd184caf | 4626 | |
d9898ee8 | 4627 | test -n "$CC" && break |
4628 | done | |
4629 | fi | |
4630 | if test -z "$CC"; then | |
4631 | ac_ct_CC=$CC | |
dd184caf | 4632 | for ac_prog in cl.exe |
d9898ee8 | 4633 | do |
4634 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4635 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4637 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4638 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 4639 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4640 | else |
4641 | if test -n "$ac_ct_CC"; then | |
4642 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4643 | else | |
4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4645 | for as_dir in $PATH | |
4646 | do | |
4647 | IFS=$as_save_IFS | |
4648 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4649 | for ac_exec_ext in '' $ac_executable_extensions; do |
4650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4651 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 4652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4653 | break 2 |
4654 | fi | |
4655 | done | |
b0322a85 | 4656 | done |
dd184caf | 4657 | IFS=$as_save_IFS |
d9898ee8 | 4658 | |
4659 | fi | |
4660 | fi | |
4661 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4662 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 4664 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 4665 | else |
b0322a85 | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4667 | $as_echo "no" >&6; } |
d9898ee8 | 4668 | fi |
4669 | ||
dd184caf | 4670 | |
d9898ee8 | 4671 | test -n "$ac_ct_CC" && break |
4672 | done | |
4673 | ||
dd184caf | 4674 | if test "x$ac_ct_CC" = x; then |
4675 | CC="" | |
4676 | else | |
4677 | case $cross_compiling:$ac_tool_warned in | |
4678 | yes:) | |
b0322a85 | 4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 4680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 4681 | ac_tool_warned=yes ;; |
4682 | esac | |
4683 | CC=$ac_ct_CC | |
4684 | fi | |
d9898ee8 | 4685 | fi |
4686 | ||
4687 | fi | |
4688 | ||
4689 | ||
b0322a85 | 4690 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4692 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4693 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4694 | |
4695 | # Provide some information about the compiler. | |
b0322a85 | 4696 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
4697 | set X $ac_compile |
4698 | ac_compiler=$2 | |
b0322a85 CE |
4699 | for ac_option in --version -v -V -qversion; do |
4700 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 4701 | case "(($ac_try" in |
4702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4703 | *) ac_try_echo=$ac_try;; | |
4704 | esac | |
b0322a85 CE |
4705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4706 | $as_echo "$ac_try_echo"; } >&5 | |
4707 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 4708 | ac_status=$? |
b0322a85 CE |
4709 | if test -s conftest.err; then |
4710 | sed '10a\ | |
4711 | ... rest of stderr output deleted ... | |
4712 | 10q' conftest.err >conftest.er1 | |
4713 | cat conftest.er1 >&5 | |
4714 | fi | |
4715 | rm -f conftest.er1 conftest.err | |
4716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4717 | test $ac_status = 0; } | |
4718 | done | |
d9898ee8 | 4719 | |
b0322a85 | 4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 4721 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 4722 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 4723 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4724 | else |
b0322a85 | 4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4726 | /* end confdefs.h. */ |
4727 | ||
4728 | int | |
4729 | main () | |
4730 | { | |
4731 | #ifndef __GNUC__ | |
4732 | choke me | |
4733 | #endif | |
4734 | ||
4735 | ; | |
4736 | return 0; | |
4737 | } | |
4738 | _ACEOF | |
b0322a85 | 4739 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 4740 | ac_compiler_gnu=yes |
4741 | else | |
b0322a85 | 4742 | ac_compiler_gnu=no |
d9898ee8 | 4743 | fi |
dd184caf | 4744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4745 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4746 | ||
4747 | fi | |
b0322a85 | 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
4749 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4750 | if test $ac_compiler_gnu = yes; then | |
4751 | GCC=yes | |
4752 | else | |
4753 | GCC= | |
4754 | fi | |
d9898ee8 | 4755 | ac_test_CFLAGS=${CFLAGS+set} |
4756 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 4758 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 4759 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 4760 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4761 | else |
dd184caf | 4762 | ac_save_c_werror_flag=$ac_c_werror_flag |
4763 | ac_c_werror_flag=yes | |
4764 | ac_cv_prog_cc_g=no | |
4765 | CFLAGS="-g" | |
b0322a85 | 4766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4767 | /* end confdefs.h. */ |
4768 | ||
4769 | int | |
4770 | main () | |
4771 | { | |
4772 | ||
4773 | ; | |
4774 | return 0; | |
4775 | } | |
4776 | _ACEOF | |
b0322a85 | 4777 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 4778 | ac_cv_prog_cc_g=yes |
4779 | else | |
b0322a85 CE |
4780 | CFLAGS="" |
4781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 4782 | /* end confdefs.h. */ |
4783 | ||
4784 | int | |
4785 | main () | |
4786 | { | |
4787 | ||
4788 | ; | |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
b0322a85 | 4792 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 4793 | |
b0322a85 CE |
4794 | else |
4795 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 4796 | CFLAGS="-g" |
b0322a85 | 4797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 4798 | /* end confdefs.h. */ |
4799 | ||
4800 | int | |
4801 | main () | |
4802 | { | |
4803 | ||
4804 | ; | |
4805 | return 0; | |
4806 | } | |
4807 | _ACEOF | |
b0322a85 | 4808 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 4809 | ac_cv_prog_cc_g=yes |
dd184caf | 4810 | fi |
dd184caf | 4811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4812 | fi | |
dd184caf | 4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4814 | fi |
dd184caf | 4815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4816 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 4817 | fi |
b0322a85 | 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 4819 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 4820 | if test "$ac_test_CFLAGS" = set; then |
4821 | CFLAGS=$ac_save_CFLAGS | |
4822 | elif test $ac_cv_prog_cc_g = yes; then | |
4823 | if test "$GCC" = yes; then | |
4824 | CFLAGS="-g -O2" | |
4825 | else | |
4826 | CFLAGS="-g" | |
4827 | fi | |
4828 | else | |
4829 | if test "$GCC" = yes; then | |
4830 | CFLAGS="-O2" | |
4831 | else | |
4832 | CFLAGS= | |
4833 | fi | |
4834 | fi | |
b0322a85 | 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 4836 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 4837 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 4838 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4839 | else |
dd184caf | 4840 | ac_cv_prog_cc_c89=no |
d9898ee8 | 4841 | ac_save_CC=$CC |
b0322a85 | 4842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4843 | /* end confdefs.h. */ |
4844 | #include <stdarg.h> | |
4845 | #include <stdio.h> | |
b0322a85 | 4846 | struct stat; |
d9898ee8 | 4847 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4848 | struct buf { int x; }; | |
4849 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4850 | static char *e (p, i) | |
4851 | char **p; | |
4852 | int i; | |
4853 | { | |
4854 | return p[i]; | |
4855 | } | |
4856 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4857 | { | |
4858 | char *s; | |
4859 | va_list v; | |
4860 | va_start (v,p); | |
4861 | s = g (p, va_arg (v,int)); | |
4862 | va_end (v); | |
4863 | return s; | |
4864 | } | |
4865 | ||
4866 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4867 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4868 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 4869 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 4870 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4871 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 4872 | that's true only with -std. */ |
d9898ee8 | 4873 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4874 | ||
dd184caf | 4875 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4876 | inside strings and character constants. */ | |
4877 | #define FOO(x) 'x' | |
4878 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4879 | ||
d9898ee8 | 4880 | int test (int i, double x); |
4881 | struct s1 {int (*f) (int a);}; | |
4882 | struct s2 {int (*f) (double a);}; | |
4883 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4884 | int argc; | |
4885 | char **argv; | |
4886 | int | |
4887 | main () | |
4888 | { | |
4889 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4890 | ; | |
4891 | return 0; | |
4892 | } | |
4893 | _ACEOF | |
dd184caf | 4894 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4895 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 4896 | do |
4897 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 4898 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 4899 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 4900 | fi |
dd184caf | 4901 | rm -f core conftest.err conftest.$ac_objext |
4902 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 4903 | done |
dd184caf | 4904 | rm -f conftest.$ac_ext |
d9898ee8 | 4905 | CC=$ac_save_CC |
4906 | ||
4907 | fi | |
dd184caf | 4908 | # AC_CACHE_VAL |
4909 | case "x$ac_cv_prog_cc_c89" in | |
4910 | x) | |
b0322a85 | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 4912 | $as_echo "none needed" >&6; } ;; |
dd184caf | 4913 | xno) |
b0322a85 | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 4915 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 4916 | *) |
dd184caf | 4917 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 4919 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 4920 | esac |
b0322a85 | 4921 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 4922 | |
b0322a85 | 4923 | fi |
d9898ee8 | 4924 | |
d9898ee8 | 4925 | ac_ext=c |
4926 | ac_cpp='$CPP $CPPFLAGS' | |
4927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4930 | ||
d50284c4 CE |
4931 | ac_ext=c |
4932 | ac_cpp='$CPP $CPPFLAGS' | |
4933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4937 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4938 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4939 | $as_echo_n "(cached) " >&6 | |
4940 | else | |
4941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4942 | /* end confdefs.h. */ | |
4943 | ||
4944 | int | |
4945 | main () | |
4946 | { | |
4947 | ||
4948 | ; | |
4949 | return 0; | |
4950 | } | |
4951 | _ACEOF | |
4952 | # Make sure it works both with $CC and with simple cc. | |
4953 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4954 | # compilers refuse to overwrite an existing .o file with -o, | |
4955 | # though they will create one. | |
4956 | am_cv_prog_cc_c_o=yes | |
4957 | for am_i in 1 2; do | |
4958 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4959 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4960 | ac_status=$? | |
4961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4962 | (exit $ac_status); } \ | |
4963 | && test -f conftest2.$ac_objext; then | |
4964 | : OK | |
4965 | else | |
4966 | am_cv_prog_cc_c_o=no | |
4967 | break | |
4968 | fi | |
4969 | done | |
4970 | rm -f core conftest* | |
4971 | unset am_i | |
4972 | fi | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4974 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4975 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4976 | # Losing compiler, so override with the script. | |
4977 | # FIXME: It is wrong to rewrite CC. | |
4978 | # But if we don't then we get into trouble of one sort or another. | |
4979 | # A longer-term fix would be to have automake use am__CC in this case, | |
4980 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4981 | CC="$am_aux_dir/compile $CC" | |
4982 | fi | |
4983 | ac_ext=c | |
4984 | ac_cpp='$CPP $CPPFLAGS' | |
4985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4988 | ||
4989 | ||
d9898ee8 | 4990 | depcc="$CC" am_compiler_list= |
4991 | ||
b0322a85 | 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 4993 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 4994 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 4995 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4996 | else |
4997 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4998 | # We make a subdir and do the tests there. Otherwise we can end up | |
4999 | # making bogus files that we don't know about and never remove. For | |
5000 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
5001 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5002 | # in D". | |
5003 | rm -rf conftest.dir | |
d9898ee8 | 5004 | mkdir conftest.dir |
5005 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5006 | # using a relative directory. | |
5007 | cp "$am_depcomp" conftest.dir | |
5008 | cd conftest.dir | |
5009 | # We will build objects and dependencies in a subdirectory because | |
5010 | # it helps to detect inapplicable dependency modes. For instance | |
5011 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5012 | # side effect of compilation, but ICC will put the dependencies in | |
5013 | # the current directory while Tru64 will put them in the object | |
5014 | # directory. | |
5015 | mkdir sub | |
5016 | ||
5017 | am_cv_CC_dependencies_compiler_type=none | |
5018 | if test "$am_compiler_list" = ""; then | |
5019 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5020 | fi | |
8d138742 CE |
5021 | am__universal=false |
5022 | case " $depcc " in #( | |
5023 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5024 | esac | |
5025 | ||
d9898ee8 | 5026 | for depmode in $am_compiler_list; do |
5027 | # Setup a source with many dependencies, because some compilers | |
5028 | # like to wrap large dependency lists on column 80 (with \), and | |
5029 | # we should not choose a depcomp mode which is confused by this. | |
5030 | # | |
5031 | # We need to recreate these files for each test, as the compiler may | |
5032 | # overwrite some of them when testing with obscure command lines. | |
5033 | # This happens at least with the AIX C compiler. | |
5034 | : > sub/conftest.c | |
5035 | for i in 1 2 3 4 5 6; do | |
5036 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
5037 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5038 | # Solaris 10 /bin/sh. | |
5039 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 5040 | done |
5041 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5042 | ||
b0322a85 | 5043 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 5044 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
5045 | # handle '-M -o', and we need to detect this. Also, some Intel |
5046 | # versions had trouble with output in subdirs. | |
8d138742 CE |
5047 | am__obj=sub/conftest.${OBJEXT-o} |
5048 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 5049 | case $depmode in |
8d138742 CE |
5050 | gcc) |
5051 | # This depmode causes a compiler race in universal mode. | |
5052 | test "$am__universal" = false || continue | |
5053 | ;; | |
d9898ee8 | 5054 | nosideeffect) |
b0322a85 CE |
5055 | # After this tag, mechanisms are not by side-effect, so they'll |
5056 | # only be used when explicitly requested. | |
d9898ee8 | 5057 | if test "x$enable_dependency_tracking" = xyes; then |
5058 | continue | |
5059 | else | |
5060 | break | |
5061 | fi | |
5062 | ;; | |
b0322a85 CE |
5063 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
5064 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
5065 | # not run yet. These depmodes are late enough in the game, and |
5066 | # so weak that their functioning should not be impacted. | |
5067 | am__obj=conftest.${OBJEXT-o} | |
5068 | am__minus_obj= | |
5069 | ;; | |
d9898ee8 | 5070 | none) break ;; |
5071 | esac | |
d9898ee8 | 5072 | if depmode=$depmode \ |
8d138742 | 5073 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 5074 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 5075 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 5076 | >/dev/null 2>conftest.err && |
dd184caf | 5077 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5078 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 5079 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5080 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5081 | # icc doesn't choke on unknown options, it will just issue warnings | |
5082 | # or remarks (even with -Werror). So we grep stderr for any message | |
5083 | # that says an option was ignored or not supported. | |
5084 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5085 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5086 | # The diagnosis changed in icc 8.0: | |
5087 | # icc: Command line remark: option '-MP' not supported | |
5088 | if (grep 'ignoring option' conftest.err || | |
5089 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5090 | am_cv_CC_dependencies_compiler_type=$depmode | |
5091 | break | |
5092 | fi | |
5093 | fi | |
5094 | done | |
5095 | ||
5096 | cd .. | |
5097 | rm -rf conftest.dir | |
5098 | else | |
5099 | am_cv_CC_dependencies_compiler_type=none | |
5100 | fi | |
5101 | ||
5102 | fi | |
b0322a85 | 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 5104 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 5105 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5106 | ||
dd184caf | 5107 | if |
d9898ee8 | 5108 | test "x$enable_dependency_tracking" != xno \ |
5109 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5110 | am__fastdepCC_TRUE= | |
5111 | am__fastdepCC_FALSE='#' | |
5112 | else | |
5113 | am__fastdepCC_TRUE='#' | |
5114 | am__fastdepCC_FALSE= | |
5115 | fi | |
5116 | ||
5117 | ||
5118 | for ac_prog in ps | |
5119 | do | |
5120 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5121 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5123 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5124 | if ${ac_cv_path_PS+:} false; then : |
8d138742 | 5125 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5126 | else |
5127 | case $PS in | |
5128 | [\\/]* | ?:[\\/]*) | |
5129 | ac_cv_path_PS="$PS" # Let the user override the test with a path. | |
5130 | ;; | |
5131 | *) | |
5132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5133 | for as_dir in $LPATH | |
5134 | do | |
5135 | IFS=$as_save_IFS | |
5136 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5137 | for ac_exec_ext in '' $ac_executable_extensions; do |
5138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 5139 | ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 5140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5141 | break 2 |
5142 | fi | |
5143 | done | |
b0322a85 | 5144 | done |
dd184caf | 5145 | IFS=$as_save_IFS |
d9898ee8 | 5146 | |
5147 | ;; | |
5148 | esac | |
5149 | fi | |
5150 | PS=$ac_cv_path_PS | |
d9898ee8 | 5151 | if test -n "$PS"; then |
b0322a85 | 5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5 |
8d138742 | 5153 | $as_echo "$PS" >&6; } |
d9898ee8 | 5154 | else |
b0322a85 | 5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5156 | $as_echo "no" >&6; } |
d9898ee8 | 5157 | fi |
5158 | ||
dd184caf | 5159 | |
d9898ee8 | 5160 | test -n "$PS" && break |
5161 | done | |
5162 | test -n "$PS" || PS="ps" | |
5163 | ||
5164 | for ac_prog in w | |
5165 | do | |
5166 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5167 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5169 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5170 | if ${ac_cv_path_W+:} false; then : |
8d138742 | 5171 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5172 | else |
5173 | case $W in | |
5174 | [\\/]* | ?:[\\/]*) | |
5175 | ac_cv_path_W="$W" # Let the user override the test with a path. | |
5176 | ;; | |
5177 | *) | |
5178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5179 | for as_dir in $LPATH | |
5180 | do | |
5181 | IFS=$as_save_IFS | |
5182 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5183 | for ac_exec_ext in '' $ac_executable_extensions; do |
5184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 5185 | ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 5186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5187 | break 2 |
5188 | fi | |
5189 | done | |
b0322a85 | 5190 | done |
dd184caf | 5191 | IFS=$as_save_IFS |
d9898ee8 | 5192 | |
5193 | ;; | |
5194 | esac | |
5195 | fi | |
5196 | W=$ac_cv_path_W | |
d9898ee8 | 5197 | if test -n "$W"; then |
b0322a85 | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5 |
8d138742 | 5199 | $as_echo "$W" >&6; } |
d9898ee8 | 5200 | else |
b0322a85 | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5202 | $as_echo "no" >&6; } |
d9898ee8 | 5203 | fi |
5204 | ||
dd184caf | 5205 | |
d9898ee8 | 5206 | test -n "$W" && break |
5207 | done | |
5208 | test -n "$W" || W="w" | |
5209 | ||
8d138742 CE |
5210 | case `pwd` in |
5211 | *\ * | *\ *) | |
b0322a85 | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
5213 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
5214 | esac | |
5215 | ||
5216 | ||
5217 | ||
d50284c4 CE |
5218 | macro_version='2.4.6' |
5219 | macro_revision='2.4.6' | |
8d138742 CE |
5220 | |
5221 | ||
5222 | ||
d9898ee8 | 5223 | |
dd184caf | 5224 | |
d9898ee8 | 5225 | |
dd184caf | 5226 | |
dd184caf | 5227 | |
d9898ee8 | 5228 | |
8d138742 CE |
5229 | |
5230 | ||
5231 | ||
5232 | ||
d50284c4 | 5233 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 5234 | |
d9898ee8 | 5235 | # Make sure we can run config.sub. |
dd184caf | 5236 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 5237 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 5238 | |
b0322a85 | 5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 5240 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 5241 | if ${ac_cv_build+:} false; then : |
8d138742 | 5242 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5243 | else |
dd184caf | 5244 | ac_build_alias=$build_alias |
5245 | test "x$ac_build_alias" = x && | |
5246 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5247 | test "x$ac_build_alias" = x && | |
b0322a85 | 5248 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 5249 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 5250 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 5251 | |
5252 | fi | |
b0322a85 | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 5254 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 5255 | case $ac_cv_build in |
5256 | *-*-*) ;; | |
b0322a85 | 5257 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 5258 | esac |
d9898ee8 | 5259 | build=$ac_cv_build |
dd184caf | 5260 | ac_save_IFS=$IFS; IFS='-' |
5261 | set x $ac_cv_build | |
5262 | shift | |
5263 | build_cpu=$1 | |
5264 | build_vendor=$2 | |
5265 | shift; shift | |
5266 | # Remember, the first character of IFS is used to create $*, | |
5267 | # except with old shells: | |
5268 | build_os=$* | |
5269 | IFS=$ac_save_IFS | |
5270 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5271 | ||
5272 | ||
b0322a85 | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 5274 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 5275 | if ${ac_cv_host+:} false; then : |
8d138742 | 5276 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5277 | else |
dd184caf | 5278 | if test "x$host_alias" = x; then |
5279 | ac_cv_host=$ac_cv_build | |
5280 | else | |
5281 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 5282 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 5283 | fi |
d9898ee8 | 5284 | |
5285 | fi | |
b0322a85 | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 5287 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 5288 | case $ac_cv_host in |
5289 | *-*-*) ;; | |
b0322a85 | 5290 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 5291 | esac |
d9898ee8 | 5292 | host=$ac_cv_host |
dd184caf | 5293 | ac_save_IFS=$IFS; IFS='-' |
5294 | set x $ac_cv_host | |
5295 | shift | |
5296 | host_cpu=$1 | |
5297 | host_vendor=$2 | |
5298 | shift; shift | |
5299 | # Remember, the first character of IFS is used to create $*, | |
5300 | # except with old shells: | |
5301 | host_os=$* | |
5302 | IFS=$ac_save_IFS | |
5303 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5304 | ||
5305 | ||
b0322a85 CE |
5306 | # Backslashify metacharacters that are still active within |
5307 | # double-quoted strings. | |
5308 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5309 | ||
5310 | # Same as above, but do not quote variable references. | |
5311 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5312 | ||
5313 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5314 | # double_quote_subst'ed string. | |
5315 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5316 | ||
5317 | # Sed substitution to delay expansion of an escaped single quote. | |
5318 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5319 | ||
5320 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5321 | no_glob_subst='s/\*/\\\*/g' | |
5322 | ||
5323 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5324 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5325 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5326 | ||
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5328 | $as_echo_n "checking how to print strings... " >&6; } | |
5329 | # Test print first, because it will be a builtin if present. | |
5330 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5331 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5332 | ECHO='print -r --' | |
5333 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5334 | ECHO='printf %s\n' | |
5335 | else | |
5336 | # Use this function as a fallback that always works. | |
5337 | func_fallback_echo () | |
5338 | { | |
5339 | eval 'cat <<_LTECHO_EOF | |
5340 | $1 | |
5341 | _LTECHO_EOF' | |
5342 | } | |
5343 | ECHO='func_fallback_echo' | |
5344 | fi | |
5345 | ||
5346 | # func_echo_all arg... | |
5347 | # Invoke $ECHO with all args, space-separated. | |
5348 | func_echo_all () | |
5349 | { | |
5350 | $ECHO "" | |
5351 | } | |
5352 | ||
d50284c4 | 5353 | case $ECHO in |
b0322a85 CE |
5354 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
5355 | $as_echo "printf" >&6; } ;; | |
5356 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5357 | $as_echo "print -r" >&6; } ;; | |
5358 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5359 | $as_echo "cat" >&6; } ;; | |
5360 | esac | |
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | ||
5366 | ||
5367 | ||
5368 | ||
5369 | ||
5370 | ||
5371 | ||
5372 | ||
5373 | ||
5374 | ||
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 5376 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 5377 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
5378 | $as_echo_n "(cached) " >&6 |
5379 | else | |
5380 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5381 | for ac_i in 1 2 3 4 5 6 7; do | |
5382 | ac_script="$ac_script$as_nl$ac_script" | |
5383 | done | |
5384 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 5385 | { ac_script=; unset ac_script;} |
8d138742 CE |
5386 | if test -z "$SED"; then |
5387 | ac_path_SED_found=false | |
5388 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 5390 | for as_dir in $PATH |
5391 | do | |
5392 | IFS=$as_save_IFS | |
5393 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 5394 | for ac_prog in sed gsed; do |
d9898ee8 | 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 5396 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 5397 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
5398 | # Check for GNU ac_path_SED and select it if it is found. |
5399 | # Check for GNU $ac_path_SED | |
5400 | case `"$ac_path_SED" --version 2>&1` in | |
5401 | *GNU*) | |
5402 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5403 | *) | |
5404 | ac_count=0 | |
5405 | $as_echo_n 0123456789 >"conftest.in" | |
5406 | while : | |
5407 | do | |
5408 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5409 | mv "conftest.tmp" "conftest.in" | |
5410 | cp "conftest.in" "conftest.nl" | |
5411 | $as_echo '' >> "conftest.nl" | |
5412 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5413 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 5414 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
5415 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
5416 | # Best one so far, save it but keep looking for a better one | |
5417 | ac_cv_path_SED="$ac_path_SED" | |
5418 | ac_path_SED_max=$ac_count | |
5419 | fi | |
5420 | # 10*(2^10) chars as input seems more than enough | |
5421 | test $ac_count -gt 10 && break | |
5422 | done | |
5423 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5424 | esac | |
5425 | ||
5426 | $ac_path_SED_found && break 3 | |
d9898ee8 | 5427 | done |
5428 | done | |
b0322a85 | 5429 | done |
d9898ee8 | 5430 | IFS=$as_save_IFS |
8d138742 | 5431 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 5432 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 5433 | fi |
8d138742 CE |
5434 | else |
5435 | ac_cv_path_SED=$SED | |
5436 | fi | |
d9898ee8 | 5437 | |
5438 | fi | |
b0322a85 | 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
5440 | $as_echo "$ac_cv_path_SED" >&6; } |
5441 | SED="$ac_cv_path_SED" | |
5442 | rm -f conftest.sed | |
d9898ee8 | 5443 | |
8d138742 CE |
5444 | test -z "$SED" && SED=sed |
5445 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 5446 | |
d9898ee8 | 5447 | |
5448 | ||
8d138742 CE |
5449 | |
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
b0322a85 | 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 5458 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 5459 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 CE |
5460 | $as_echo_n "(cached) " >&6 |
5461 | else | |
5462 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5463 | then ac_cv_path_FGREP="$GREP -F" | |
5464 | else | |
5465 | if test -z "$FGREP"; then | |
5466 | ac_path_FGREP_found=false | |
5467 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5469 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5470 | do | |
5471 | IFS=$as_save_IFS | |
5472 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 5473 | for ac_prog in fgrep; do |
8d138742 CE |
5474 | for ac_exec_ext in '' $ac_executable_extensions; do |
5475 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 5476 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
5477 | # Check for GNU ac_path_FGREP and select it if it is found. |
5478 | # Check for GNU $ac_path_FGREP | |
5479 | case `"$ac_path_FGREP" --version 2>&1` in | |
5480 | *GNU*) | |
5481 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5482 | *) | |
5483 | ac_count=0 | |
5484 | $as_echo_n 0123456789 >"conftest.in" | |
5485 | while : | |
5486 | do | |
5487 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5488 | mv "conftest.tmp" "conftest.in" | |
5489 | cp "conftest.in" "conftest.nl" | |
5490 | $as_echo 'FGREP' >> "conftest.nl" | |
5491 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5492 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 5493 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
5494 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
5495 | # Best one so far, save it but keep looking for a better one | |
5496 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5497 | ac_path_FGREP_max=$ac_count | |
5498 | fi | |
5499 | # 10*(2^10) chars as input seems more than enough | |
5500 | test $ac_count -gt 10 && break | |
5501 | done | |
5502 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5503 | esac | |
5504 | ||
5505 | $ac_path_FGREP_found && break 3 | |
5506 | done | |
5507 | done | |
b0322a85 | 5508 | done |
8d138742 CE |
5509 | IFS=$as_save_IFS |
5510 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 5511 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
5512 | fi |
5513 | else | |
5514 | ac_cv_path_FGREP=$FGREP | |
5515 | fi | |
5516 | ||
5517 | fi | |
5518 | fi | |
b0322a85 | 5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
5520 | $as_echo "$ac_cv_path_FGREP" >&6; } |
5521 | FGREP="$ac_cv_path_FGREP" | |
5522 | ||
5523 | ||
5524 | test -z "$GREP" && GREP=grep | |
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | # Check whether --with-gnu-ld was given. | |
b0322a85 | 5545 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 5546 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 5547 | else |
5548 | with_gnu_ld=no | |
dd184caf | 5549 | fi |
5550 | ||
d9898ee8 | 5551 | ac_prog=ld |
d50284c4 | 5552 | if test yes = "$GCC"; then |
d9898ee8 | 5553 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 5555 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 5556 | case $host in |
5557 | *-*-mingw*) | |
d50284c4 | 5558 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 5559 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5560 | *) | |
5561 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5562 | esac | |
5563 | case $ac_prog in | |
5564 | # Accept absolute paths. | |
5565 | [\\/]* | ?:[\\/]*) | |
5566 | re_direlt='/[^/][^/]*/\.\./' | |
5567 | # Canonicalize the pathname of ld | |
8d138742 CE |
5568 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
5569 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5570 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 5571 | done |
d50284c4 | 5572 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 5573 | ;; |
5574 | "") | |
5575 | # If it fails, then pretend we aren't using GCC. | |
5576 | ac_prog=ld | |
5577 | ;; | |
5578 | *) | |
5579 | # If it is relative, then search for the first ld in PATH. | |
5580 | with_gnu_ld=unknown | |
5581 | ;; | |
5582 | esac | |
d50284c4 | 5583 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 5585 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 5586 | else |
b0322a85 | 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 5588 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 5589 | fi |
b0322a85 | 5590 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 5591 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5592 | else |
5593 | if test -z "$LD"; then | |
d50284c4 | 5594 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 5595 | for ac_dir in $PATH; do |
d50284c4 | 5596 | IFS=$lt_save_ifs |
d9898ee8 | 5597 | test -z "$ac_dir" && ac_dir=. |
5598 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 5599 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 5600 | # Check to see if the program is GNU ld. I'd rather use --version, |
5601 | # but apparently some variants of GNU ld only accept -v. | |
5602 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5603 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5604 | *GNU* | *'with BFD'*) | |
d50284c4 | 5605 | test no != "$with_gnu_ld" && break |
d9898ee8 | 5606 | ;; |
5607 | *) | |
d50284c4 | 5608 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 5609 | ;; |
5610 | esac | |
5611 | fi | |
5612 | done | |
d50284c4 | 5613 | IFS=$lt_save_ifs |
d9898ee8 | 5614 | else |
d50284c4 | 5615 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 5616 | fi |
5617 | fi | |
5618 | ||
d50284c4 | 5619 | LD=$lt_cv_path_LD |
d9898ee8 | 5620 | if test -n "$LD"; then |
b0322a85 | 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 5622 | $as_echo "$LD" >&6; } |
d9898ee8 | 5623 | else |
b0322a85 | 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5625 | $as_echo "no" >&6; } |
d9898ee8 | 5626 | fi |
b0322a85 CE |
5627 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 5629 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 5630 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 5631 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5632 | else |
5633 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5634 | case `$LD -v 2>&1 </dev/null` in | |
5635 | *GNU* | *'with BFD'*) | |
5636 | lt_cv_prog_gnu_ld=yes | |
5637 | ;; | |
5638 | *) | |
5639 | lt_cv_prog_gnu_ld=no | |
5640 | ;; | |
5641 | esac | |
5642 | fi | |
b0322a85 | 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 5644 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 5645 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5646 | ||
5647 | ||
d9898ee8 | 5648 | |
8d138742 CE |
5649 | |
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
b0322a85 | 5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 5656 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 5657 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 5658 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5659 | else |
5660 | if test -n "$NM"; then | |
5661 | # Let the user override the test. | |
d50284c4 | 5662 | lt_cv_path_NM=$NM |
d9898ee8 | 5663 | else |
d50284c4 | 5664 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 5665 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5666 | lt_nm_to_check="$lt_nm_to_check nm" | |
5667 | fi | |
5668 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 5669 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 5670 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 5671 | IFS=$lt_save_ifs |
d9898ee8 | 5672 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
5673 | tmp_nm=$ac_dir/$lt_tmp_nm |
5674 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 5675 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 5676 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 5677 | # nm: unknown option "B" ignored |
5678 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
5679 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
5680 | case $build_os in | |
5681 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5682 | *) lt_bad_file=/dev/null ;; | |
5683 | esac | |
5684 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5685 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 5686 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 5687 | break 2 |
d9898ee8 | 5688 | ;; |
5689 | *) | |
5690 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5691 | */dev/null*) | |
5692 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 5693 | break 2 |
d9898ee8 | 5694 | ;; |
5695 | *) | |
5696 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5697 | continue # so that we can try to find one that supports BSD flags | |
5698 | ;; | |
5699 | esac | |
5700 | ;; | |
5701 | esac | |
5702 | fi | |
5703 | done | |
d50284c4 | 5704 | IFS=$lt_save_ifs |
d9898ee8 | 5705 | done |
8d138742 | 5706 | : ${lt_cv_path_NM=no} |
d9898ee8 | 5707 | fi |
5708 | fi | |
b0322a85 | 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 5710 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
5711 | if test no != "$lt_cv_path_NM"; then |
5712 | NM=$lt_cv_path_NM | |
8d138742 CE |
5713 | else |
5714 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
5715 | if test -n "$DUMPBIN"; then : |
5716 | # Let the user override the test. | |
5717 | else | |
5718 | if test -n "$ac_tool_prefix"; then | |
5719 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
5720 | do |
5721 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5722 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5724 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5725 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
5726 | $as_echo_n "(cached) " >&6 |
5727 | else | |
5728 | if test -n "$DUMPBIN"; then | |
5729 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5730 | else | |
5731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5732 | for as_dir in $PATH | |
5733 | do | |
5734 | IFS=$as_save_IFS | |
5735 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5736 | for ac_exec_ext in '' $ac_executable_extensions; do |
5737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5738 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 5739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5740 | break 2 |
5741 | fi | |
5742 | done | |
b0322a85 | 5743 | done |
8d138742 | 5744 | IFS=$as_save_IFS |
d9898ee8 | 5745 | |
8d138742 CE |
5746 | fi |
5747 | fi | |
5748 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5749 | if test -n "$DUMPBIN"; then | |
b0322a85 | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 | 5751 | $as_echo "$DUMPBIN" >&6; } |
d9898ee8 | 5752 | else |
b0322a85 | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5754 | $as_echo "no" >&6; } |
5755 | fi | |
d9898ee8 | 5756 | |
d9898ee8 | 5757 | |
8d138742 CE |
5758 | test -n "$DUMPBIN" && break |
5759 | done | |
5760 | fi | |
5761 | if test -z "$DUMPBIN"; then | |
5762 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 5763 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
5764 | do |
5765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5766 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5768 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5769 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
5770 | $as_echo_n "(cached) " >&6 |
5771 | else | |
5772 | if test -n "$ac_ct_DUMPBIN"; then | |
5773 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5774 | else | |
5775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5776 | for as_dir in $PATH | |
5777 | do | |
5778 | IFS=$as_save_IFS | |
5779 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5780 | for ac_exec_ext in '' $ac_executable_extensions; do |
5781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5782 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 5783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5784 | break 2 |
5785 | fi | |
5786 | done | |
b0322a85 | 5787 | done |
8d138742 | 5788 | IFS=$as_save_IFS |
d9898ee8 | 5789 | |
8d138742 CE |
5790 | fi |
5791 | fi | |
5792 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5793 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
5795 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5796 | else | |
b0322a85 | 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5798 | $as_echo "no" >&6; } |
5799 | fi | |
d9898ee8 | 5800 | |
d9898ee8 | 5801 | |
8d138742 CE |
5802 | test -n "$ac_ct_DUMPBIN" && break |
5803 | done | |
5804 | ||
5805 | if test "x$ac_ct_DUMPBIN" = x; then | |
5806 | DUMPBIN=":" | |
ac40fd9e | 5807 | else |
8d138742 CE |
5808 | case $cross_compiling:$ac_tool_warned in |
5809 | yes:) | |
b0322a85 | 5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5812 | ac_tool_warned=yes ;; | |
5813 | esac | |
5814 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 5815 | fi |
8d138742 | 5816 | fi |
d9898ee8 | 5817 | |
d50284c4 | 5818 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 5819 | *COFF*) |
d50284c4 | 5820 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
5821 | ;; |
5822 | *) | |
5823 | DUMPBIN=: | |
5824 | ;; | |
5825 | esac | |
5826 | fi | |
d9898ee8 | 5827 | |
d50284c4 CE |
5828 | if test : != "$DUMPBIN"; then |
5829 | NM=$DUMPBIN | |
d9898ee8 | 5830 | fi |
8d138742 CE |
5831 | fi |
5832 | test -z "$NM" && NM=nm | |
d9898ee8 | 5833 | |
d9898ee8 | 5834 | |
d9898ee8 | 5835 | |
d9898ee8 | 5836 | |
d9898ee8 | 5837 | |
d9898ee8 | 5838 | |
b0322a85 | 5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 5840 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 5841 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
5842 | $as_echo_n "(cached) " >&6 |
5843 | else | |
5844 | lt_cv_nm_interface="BSD nm" | |
5845 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 5846 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
5847 | (eval "$ac_compile" 2>conftest.err) |
5848 | cat conftest.err >&5 | |
b0322a85 | 5849 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
5850 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5851 | cat conftest.err >&5 | |
b0322a85 | 5852 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
5853 | cat conftest.out >&5 |
5854 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5855 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 5856 | fi |
8d138742 CE |
5857 | rm -f conftest* |
5858 | fi | |
b0322a85 | 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 5860 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 5861 | |
8d138742 | 5862 | # find the maximum length of command line arguments |
b0322a85 | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 5864 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 5865 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
5866 | $as_echo_n "(cached) " >&6 |
5867 | else | |
5868 | i=0 | |
d50284c4 | 5869 | teststring=ABCD |
d9898ee8 | 5870 | |
8d138742 CE |
5871 | case $build_os in |
5872 | msdosdjgpp*) | |
5873 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5874 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5875 | # during glob expansion). Even if it were fixed, the result of this | |
5876 | # check would be larger than it should be. | |
5877 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5878 | ;; | |
d9898ee8 | 5879 | |
8d138742 CE |
5880 | gnu*) |
5881 | # Under GNU Hurd, this test is not required because there is | |
5882 | # no limit to the length of command line arguments. | |
5883 | # Libtool will interpret -1 as no limit whatsoever | |
5884 | lt_cv_sys_max_cmd_len=-1; | |
5885 | ;; | |
d9898ee8 | 5886 | |
8d138742 CE |
5887 | cygwin* | mingw* | cegcc*) |
5888 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5889 | # about 5 minutes as the teststring grows exponentially. | |
5890 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5891 | # you end up with a "frozen" computer, even though with patience | |
5892 | # the test eventually succeeds (with a max line length of 256k). | |
5893 | # Instead, let's just punt: use the minimum linelength reported by | |
5894 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5895 | lt_cv_sys_max_cmd_len=8192; | |
5896 | ;; | |
ac40fd9e | 5897 | |
b0322a85 CE |
5898 | mint*) |
5899 | # On MiNT this can take a long time and run out of memory. | |
5900 | lt_cv_sys_max_cmd_len=8192; | |
5901 | ;; | |
5902 | ||
8d138742 CE |
5903 | amigaos*) |
5904 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5905 | # So we just punt and use a minimum line length of 8192. | |
5906 | lt_cv_sys_max_cmd_len=8192; | |
5907 | ;; | |
d9898ee8 | 5908 | |
d50284c4 | 5909 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
5910 | # This has been around since 386BSD, at least. Likely further. |
5911 | if test -x /sbin/sysctl; then | |
5912 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5913 | elif test -x /usr/sbin/sysctl; then | |
5914 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5915 | else | |
5916 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5917 | fi | |
5918 | # And add a safety zone | |
5919 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5920 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 5921 | ;; |
8d138742 CE |
5922 | |
5923 | interix*) | |
5924 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5925 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 5926 | ;; |
8d138742 | 5927 | |
b0322a85 CE |
5928 | os2*) |
5929 | # The test takes a long time on OS/2. | |
5930 | lt_cv_sys_max_cmd_len=8192 | |
5931 | ;; | |
5932 | ||
8d138742 CE |
5933 | osf*) |
5934 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5935 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5936 | # nice to cause kernel panics so lets avoid the loop below. | |
5937 | # First set a reasonable default. | |
5938 | lt_cv_sys_max_cmd_len=16384 | |
5939 | # | |
5940 | if test -x /sbin/sysconfig; then | |
5941 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5942 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5943 | esac | |
5944 | fi | |
d9898ee8 | 5945 | ;; |
8d138742 CE |
5946 | sco3.2v5*) |
5947 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 5948 | ;; |
8d138742 CE |
5949 | sysv5* | sco5v6* | sysv4.2uw2*) |
5950 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5951 | if test -n "$kargmax"; then | |
5952 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5953 | else | |
5954 | lt_cv_sys_max_cmd_len=32768 | |
5955 | fi | |
d9898ee8 | 5956 | ;; |
8d138742 CE |
5957 | *) |
5958 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
5959 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
5960 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
5961 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5962 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5963 | else | |
5964 | # Make teststring a little bigger before we do anything with it. | |
5965 | # a 1K string should be a reasonable start. | |
d50284c4 | 5966 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
5967 | teststring=$teststring$teststring |
5968 | done | |
5969 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5970 | # If test is not a shell built-in, we'll probably end up computing a | |
5971 | # maximum length that is only half of the actual maximum length, but | |
5972 | # we can't tell. | |
d50284c4 | 5973 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 5974 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 5975 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
5976 | do |
5977 | i=`expr $i + 1` | |
5978 | teststring=$teststring$teststring | |
5979 | done | |
5980 | # Only check the string length outside the loop. | |
5981 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5982 | teststring= | |
5983 | # Add a significant safety factor because C++ compilers can tack on | |
5984 | # massive amounts of additional arguments before passing them to the | |
5985 | # linker. It appears as though 1/2 is a usable value. | |
5986 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5987 | fi | |
d9898ee8 | 5988 | ;; |
5989 | esac | |
d9898ee8 | 5990 | |
8d138742 | 5991 | fi |
d9898ee8 | 5992 | |
d50284c4 | 5993 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
5995 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5996 | else | |
b0322a85 | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 5998 | $as_echo "none" >&6; } |
d9898ee8 | 5999 | fi |
8d138742 | 6000 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 6001 | |
6002 | ||
6003 | ||
6004 | ||
d9898ee8 | 6005 | |
d9898ee8 | 6006 | |
8d138742 CE |
6007 | : ${CP="cp -f"} |
6008 | : ${MV="mv -f"} | |
6009 | : ${RM="rm -f"} | |
d9898ee8 | 6010 | |
8d138742 CE |
6011 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6012 | lt_unset=unset | |
6013 | else | |
6014 | lt_unset=false | |
dd184caf | 6015 | fi |
d9898ee8 | 6016 | |
d9898ee8 | 6017 | |
8d138742 CE |
6018 | |
6019 | ||
6020 | ||
6021 | # test EBCDIC or ASCII | |
6022 | case `echo X|tr X '\101'` in | |
6023 | A) # ASCII based system | |
6024 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6025 | lt_SP2NL='tr \040 \012' | |
6026 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 6027 | ;; |
8d138742 CE |
6028 | *) # EBCDIC based system |
6029 | lt_SP2NL='tr \100 \n' | |
6030 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 6031 | ;; |
8d138742 | 6032 | esac |
d9898ee8 | 6033 | |
d9898ee8 | 6034 | |
d9898ee8 | 6035 | |
d9898ee8 | 6036 | |
d9898ee8 | 6037 | |
d9898ee8 | 6038 | |
dd184caf | 6039 | |
d9898ee8 | 6040 | |
6041 | ||
b0322a85 CE |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6043 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6044 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6045 | $as_echo_n "(cached) " >&6 | |
6046 | else | |
6047 | case $host in | |
6048 | *-*-mingw* ) | |
6049 | case $build in | |
6050 | *-*-mingw* ) # actually msys | |
6051 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6052 | ;; | |
6053 | *-*-cygwin* ) | |
6054 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6055 | ;; | |
6056 | * ) # otherwise, assume *nix | |
6057 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6058 | ;; | |
6059 | esac | |
6060 | ;; | |
6061 | *-*-cygwin* ) | |
6062 | case $build in | |
6063 | *-*-mingw* ) # actually msys | |
6064 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6065 | ;; | |
6066 | *-*-cygwin* ) | |
6067 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6068 | ;; | |
6069 | * ) # otherwise, assume *nix | |
6070 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6071 | ;; | |
6072 | esac | |
6073 | ;; | |
6074 | * ) # unhandled hosts (and "normal" native builds) | |
6075 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6076 | ;; | |
6077 | esac | |
6078 | ||
6079 | fi | |
6080 | ||
6081 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6083 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6084 | ||
6085 | ||
6086 | ||
6087 | ||
6088 | ||
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6090 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6091 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6092 | $as_echo_n "(cached) " >&6 | |
6093 | else | |
6094 | #assume ordinary cross tools, or native build. | |
6095 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6096 | case $host in | |
6097 | *-*-mingw* ) | |
6098 | case $build in | |
6099 | *-*-mingw* ) # actually msys | |
6100 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6101 | ;; | |
6102 | esac | |
6103 | ;; | |
6104 | esac | |
6105 | ||
6106 | fi | |
6107 | ||
6108 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6110 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 6117 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 6118 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 6119 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6120 | else |
8d138742 | 6121 | lt_cv_ld_reload_flag='-r' |
d9898ee8 | 6122 | fi |
b0322a85 | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
6124 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
6125 | reload_flag=$lt_cv_ld_reload_flag | |
6126 | case $reload_flag in | |
6127 | "" | " "*) ;; | |
6128 | *) reload_flag=" $reload_flag" ;; | |
6129 | esac | |
6130 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6131 | case $host_os in | |
b0322a85 | 6132 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 6133 | if test yes != "$GCC"; then |
b0322a85 CE |
6134 | reload_cmds=false |
6135 | fi | |
6136 | ;; | |
8d138742 | 6137 | darwin*) |
d50284c4 CE |
6138 | if test yes = "$GCC"; then |
6139 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
6140 | else |
6141 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6142 | fi | |
6143 | ;; | |
6144 | esac | |
dd184caf | 6145 | |
d9898ee8 | 6146 | |
d9898ee8 | 6147 | |
dd184caf | 6148 | |
d9898ee8 | 6149 | |
d9898ee8 | 6150 | |
d9898ee8 | 6151 | |
d9898ee8 | 6152 | |
d9898ee8 | 6153 | |
8d138742 CE |
6154 | if test -n "$ac_tool_prefix"; then |
6155 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6156 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6158 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6159 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 6160 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6161 | else |
8d138742 CE |
6162 | if test -n "$OBJDUMP"; then |
6163 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6164 | else |
6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6166 | for as_dir in $PATH | |
6167 | do | |
6168 | IFS=$as_save_IFS | |
6169 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6170 | for ac_exec_ext in '' $ac_executable_extensions; do |
6171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6172 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 6173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6174 | break 2 |
6175 | fi | |
6176 | done | |
b0322a85 | 6177 | done |
dd184caf | 6178 | IFS=$as_save_IFS |
d9898ee8 | 6179 | |
6180 | fi | |
6181 | fi | |
8d138742 CE |
6182 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6183 | if test -n "$OBJDUMP"; then | |
b0322a85 | 6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 | 6185 | $as_echo "$OBJDUMP" >&6; } |
d9898ee8 | 6186 | else |
b0322a85 | 6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6188 | $as_echo "no" >&6; } |
d9898ee8 | 6189 | fi |
6190 | ||
dd184caf | 6191 | |
d9898ee8 | 6192 | fi |
8d138742 CE |
6193 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6194 | ac_ct_OBJDUMP=$OBJDUMP | |
6195 | # Extract the first word of "objdump", so it can be a program name with args. | |
6196 | set dummy objdump; ac_word=$2 | |
b0322a85 | 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6198 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6199 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 6200 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6201 | else |
8d138742 CE |
6202 | if test -n "$ac_ct_OBJDUMP"; then |
6203 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6204 | else |
6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6206 | for as_dir in $PATH | |
6207 | do | |
6208 | IFS=$as_save_IFS | |
6209 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6210 | for ac_exec_ext in '' $ac_executable_extensions; do |
6211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6212 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 6213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6214 | break 2 |
6215 | fi | |
6216 | done | |
b0322a85 | 6217 | done |
dd184caf | 6218 | IFS=$as_save_IFS |
d9898ee8 | 6219 | |
6220 | fi | |
6221 | fi | |
8d138742 CE |
6222 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6223 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 6225 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 6226 | else |
b0322a85 | 6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6228 | $as_echo "no" >&6; } |
d9898ee8 | 6229 | fi |
6230 | ||
8d138742 CE |
6231 | if test "x$ac_ct_OBJDUMP" = x; then |
6232 | OBJDUMP="false" | |
dd184caf | 6233 | else |
6234 | case $cross_compiling:$ac_tool_warned in | |
6235 | yes:) | |
b0322a85 | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6237 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6238 | ac_tool_warned=yes ;; |
6239 | esac | |
8d138742 | 6240 | OBJDUMP=$ac_ct_OBJDUMP |
dd184caf | 6241 | fi |
8d138742 CE |
6242 | else |
6243 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
d9898ee8 | 6244 | fi |
6245 | ||
8d138742 | 6246 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 6247 | |
d9898ee8 | 6248 | |
d9898ee8 | 6249 | |
d9898ee8 | 6250 | |
dd184caf | 6251 | |
d9898ee8 | 6252 | |
d9898ee8 | 6253 | |
d9898ee8 | 6254 | |
dd184caf | 6255 | |
b0322a85 | 6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 6257 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 6258 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 6259 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6260 | else |
8d138742 CE |
6261 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6262 | lt_cv_file_magic_test_file= | |
6263 | lt_cv_deplibs_check_method='unknown' | |
6264 | # Need to set the preceding variable on all platforms that support | |
6265 | # interlibrary dependencies. | |
6266 | # 'none' -- dependencies not supported. | |
d50284c4 | 6267 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
6268 | # 'pass_all' -- all dependencies passed with no checks. |
6269 | # 'test_compile' -- check by making test program. | |
6270 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
6271 | # that responds to the $file_magic_cmd with a given extended regex. |
6272 | # If you have 'file' or equivalent on your system and you're not sure | |
6273 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 6274 | |
8d138742 CE |
6275 | case $host_os in |
6276 | aix[4-9]*) | |
6277 | lt_cv_deplibs_check_method=pass_all | |
6278 | ;; | |
dd184caf | 6279 | |
8d138742 CE |
6280 | beos*) |
6281 | lt_cv_deplibs_check_method=pass_all | |
6282 | ;; | |
dd184caf | 6283 | |
8d138742 CE |
6284 | bsdi[45]*) |
6285 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6286 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6287 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6288 | ;; | |
d9898ee8 | 6289 | |
8d138742 CE |
6290 | cygwin*) |
6291 | # func_win32_libid is a shell function defined in ltmain.sh | |
6292 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6293 | lt_cv_file_magic_cmd='func_win32_libid' | |
6294 | ;; | |
dd184caf | 6295 | |
8d138742 CE |
6296 | mingw* | pw32*) |
6297 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6298 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6299 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 6300 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
6301 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6302 | lt_cv_file_magic_cmd='func_win32_libid' | |
6303 | else | |
b0322a85 CE |
6304 | # Keep this pattern in sync with the one in func_win32_libid. |
6305 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
6306 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6307 | fi | |
6308 | ;; | |
dd184caf | 6309 | |
b0322a85 | 6310 | cegcc*) |
8d138742 CE |
6311 | # use the weaker test based on 'objdump'. See mingw*. |
6312 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6313 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6314 | ;; | |
d9898ee8 | 6315 | |
8d138742 CE |
6316 | darwin* | rhapsody*) |
6317 | lt_cv_deplibs_check_method=pass_all | |
6318 | ;; | |
dd184caf | 6319 | |
8d138742 CE |
6320 | freebsd* | dragonfly*) |
6321 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6322 | case $host_cpu in | |
6323 | i*86 ) | |
6324 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6325 | # Let's accept both of them until this is cleared up. | |
6326 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6327 | lt_cv_file_magic_cmd=/usr/bin/file | |
6328 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6329 | ;; | |
6330 | esac | |
dd184caf | 6331 | else |
8d138742 | 6332 | lt_cv_deplibs_check_method=pass_all |
dd184caf | 6333 | fi |
8d138742 | 6334 | ;; |
d9898ee8 | 6335 | |
b0322a85 CE |
6336 | haiku*) |
6337 | lt_cv_deplibs_check_method=pass_all | |
6338 | ;; | |
6339 | ||
8d138742 CE |
6340 | hpux10.20* | hpux11*) |
6341 | lt_cv_file_magic_cmd=/usr/bin/file | |
6342 | case $host_cpu in | |
6343 | ia64*) | |
6344 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6345 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6346 | ;; | |
6347 | hppa*64*) | |
b0322a85 | 6348 | 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 |
6349 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6350 | ;; | |
6351 | *) | |
b0322a85 | 6352 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
6353 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6354 | ;; | |
6355 | esac | |
6356 | ;; | |
d9898ee8 | 6357 | |
8d138742 CE |
6358 | interix[3-9]*) |
6359 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6360 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6361 | ;; | |
d9898ee8 | 6362 | |
8d138742 CE |
6363 | irix5* | irix6* | nonstopux*) |
6364 | case $LD in | |
6365 | *-32|*"-32 ") libmagic=32-bit;; | |
6366 | *-n32|*"-n32 ") libmagic=N32;; | |
6367 | *-64|*"-64 ") libmagic=64-bit;; | |
6368 | *) libmagic=never-match;; | |
6369 | esac | |
6370 | lt_cv_deplibs_check_method=pass_all | |
6371 | ;; | |
d9898ee8 | 6372 | |
b0322a85 | 6373 | # This must be glibc/ELF. |
d50284c4 | 6374 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 CE |
6375 | lt_cv_deplibs_check_method=pass_all |
6376 | ;; | |
6377 | ||
6378 | netbsd*) | |
6379 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6380 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6381 | else | |
6382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6383 | fi | |
6384 | ;; | |
6385 | ||
6386 | newos6*) | |
6387 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6388 | lt_cv_file_magic_cmd=/usr/bin/file | |
6389 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6390 | ;; | |
6391 | ||
6392 | *nto* | *qnx*) | |
6393 | lt_cv_deplibs_check_method=pass_all | |
6394 | ;; | |
6395 | ||
d50284c4 CE |
6396 | openbsd* | bitrig*) |
6397 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
b0322a85 CE |
6398 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6399 | else | |
6400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6401 | fi | |
6402 | ;; | |
6403 | ||
6404 | osf3* | osf4* | osf5*) | |
6405 | lt_cv_deplibs_check_method=pass_all | |
6406 | ;; | |
6407 | ||
6408 | rdos*) | |
6409 | lt_cv_deplibs_check_method=pass_all | |
6410 | ;; | |
6411 | ||
6412 | solaris*) | |
6413 | lt_cv_deplibs_check_method=pass_all | |
6414 | ;; | |
6415 | ||
6416 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6417 | lt_cv_deplibs_check_method=pass_all | |
6418 | ;; | |
6419 | ||
6420 | sysv4 | sysv4.3*) | |
6421 | case $host_vendor in | |
6422 | motorola) | |
6423 | 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]' | |
6424 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6425 | ;; | |
6426 | ncr) | |
6427 | lt_cv_deplibs_check_method=pass_all | |
6428 | ;; | |
6429 | sequent) | |
6430 | lt_cv_file_magic_cmd='/bin/file' | |
6431 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6432 | ;; | |
6433 | sni) | |
6434 | lt_cv_file_magic_cmd='/bin/file' | |
6435 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6436 | lt_cv_file_magic_test_file=/lib/libc.so | |
6437 | ;; | |
6438 | siemens) | |
6439 | lt_cv_deplibs_check_method=pass_all | |
6440 | ;; | |
6441 | pc) | |
6442 | lt_cv_deplibs_check_method=pass_all | |
6443 | ;; | |
6444 | esac | |
6445 | ;; | |
6446 | ||
6447 | tpf*) | |
6448 | lt_cv_deplibs_check_method=pass_all | |
6449 | ;; | |
d50284c4 CE |
6450 | os2*) |
6451 | lt_cv_deplibs_check_method=pass_all | |
6452 | ;; | |
b0322a85 CE |
6453 | esac |
6454 | ||
6455 | fi | |
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6457 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6458 | ||
6459 | file_magic_glob= | |
6460 | want_nocaseglob=no | |
6461 | if test "$build" = "$host"; then | |
6462 | case $host_os in | |
6463 | mingw* | pw32*) | |
6464 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6465 | want_nocaseglob=yes | |
6466 | else | |
6467 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6468 | fi | |
6469 | ;; | |
6470 | esac | |
6471 | fi | |
6472 | ||
6473 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6474 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6475 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | if test -n "$ac_tool_prefix"; then | |
6499 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6500 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6502 | $as_echo_n "checking for $ac_word... " >&6; } | |
6503 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6504 | $as_echo_n "(cached) " >&6 | |
6505 | else | |
6506 | if test -n "$DLLTOOL"; then | |
6507 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6508 | else | |
6509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6510 | for as_dir in $PATH | |
6511 | do | |
6512 | IFS=$as_save_IFS | |
6513 | test -z "$as_dir" && as_dir=. | |
6514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6516 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6518 | break 2 | |
6519 | fi | |
6520 | done | |
6521 | done | |
6522 | IFS=$as_save_IFS | |
6523 | ||
6524 | fi | |
6525 | fi | |
6526 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6527 | if test -n "$DLLTOOL"; then | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6529 | $as_echo "$DLLTOOL" >&6; } | |
6530 | else | |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6532 | $as_echo "no" >&6; } | |
6533 | fi | |
6534 | ||
6535 | ||
6536 | fi | |
6537 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6538 | ac_ct_DLLTOOL=$DLLTOOL | |
6539 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6540 | set dummy dlltool; ac_word=$2 | |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6542 | $as_echo_n "checking for $ac_word... " >&6; } | |
6543 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6544 | $as_echo_n "(cached) " >&6 | |
6545 | else | |
6546 | if test -n "$ac_ct_DLLTOOL"; then | |
6547 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6548 | else | |
6549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6550 | for as_dir in $PATH | |
6551 | do | |
6552 | IFS=$as_save_IFS | |
6553 | test -z "$as_dir" && as_dir=. | |
6554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6556 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6558 | break 2 | |
6559 | fi | |
6560 | done | |
6561 | done | |
6562 | IFS=$as_save_IFS | |
6563 | ||
6564 | fi | |
6565 | fi | |
6566 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6567 | if test -n "$ac_ct_DLLTOOL"; then | |
6568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6569 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6570 | else | |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6572 | $as_echo "no" >&6; } | |
6573 | fi | |
d9898ee8 | 6574 | |
b0322a85 CE |
6575 | if test "x$ac_ct_DLLTOOL" = x; then |
6576 | DLLTOOL="false" | |
8d138742 | 6577 | else |
b0322a85 CE |
6578 | case $cross_compiling:$ac_tool_warned in |
6579 | yes:) | |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6581 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6582 | ac_tool_warned=yes ;; | |
6583 | esac | |
6584 | DLLTOOL=$ac_ct_DLLTOOL | |
8d138742 | 6585 | fi |
b0322a85 CE |
6586 | else |
6587 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6588 | fi | |
d9898ee8 | 6589 | |
b0322a85 | 6590 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
d9898ee8 | 6591 | |
6592 | ||
6593 | ||
d9898ee8 | 6594 | |
dd184caf | 6595 | |
d9898ee8 | 6596 | |
d9898ee8 | 6597 | |
b0322a85 CE |
6598 | |
6599 | ||
6600 | ||
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6602 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6603 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6604 | $as_echo_n "(cached) " >&6 | |
6605 | else | |
6606 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6607 | ||
6608 | case $host_os in | |
6609 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
6610 | # two different shell functions defined in ltmain.sh; |
6611 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
6612 | case `$DLLTOOL --help 2>&1` in |
6613 | *--identify-strict*) | |
6614 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8d138742 | 6615 | ;; |
b0322a85 CE |
6616 | *) |
6617 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8d138742 CE |
6618 | ;; |
6619 | esac | |
6620 | ;; | |
b0322a85 CE |
6621 | *) |
6622 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 6623 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
8d138742 CE |
6624 | ;; |
6625 | esac | |
d9898ee8 | 6626 | |
d9898ee8 | 6627 | fi |
b0322a85 CE |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6629 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6630 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6631 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
d9898ee8 | 6632 | |
dd184caf | 6633 | |
d9898ee8 | 6634 | |
d9898ee8 | 6635 | |
d9898ee8 | 6636 | |
d9898ee8 | 6637 | |
6638 | ||
d9898ee8 | 6639 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
6640 | for ac_prog in ar |
6641 | do | |
6642 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6643 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6645 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6646 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 6647 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6648 | else |
8d138742 CE |
6649 | if test -n "$AR"; then |
6650 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 6651 | else |
6652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6653 | for as_dir in $PATH | |
6654 | do | |
6655 | IFS=$as_save_IFS | |
6656 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6657 | for ac_exec_ext in '' $ac_executable_extensions; do |
6658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6659 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6661 | break 2 |
6662 | fi | |
6663 | done | |
b0322a85 | 6664 | done |
dd184caf | 6665 | IFS=$as_save_IFS |
d9898ee8 | 6666 | |
6667 | fi | |
6668 | fi | |
8d138742 CE |
6669 | AR=$ac_cv_prog_AR |
6670 | if test -n "$AR"; then | |
b0322a85 | 6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 6672 | $as_echo "$AR" >&6; } |
d9898ee8 | 6673 | else |
b0322a85 | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6675 | $as_echo "no" >&6; } |
d9898ee8 | 6676 | fi |
6677 | ||
dd184caf | 6678 | |
b0322a85 CE |
6679 | test -n "$AR" && break |
6680 | done | |
d9898ee8 | 6681 | fi |
b0322a85 | 6682 | if test -z "$AR"; then |
8d138742 | 6683 | ac_ct_AR=$AR |
b0322a85 CE |
6684 | for ac_prog in ar |
6685 | do | |
6686 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6687 | set dummy $ac_prog; ac_word=$2 | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6689 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6690 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 6691 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6692 | else |
8d138742 CE |
6693 | if test -n "$ac_ct_AR"; then |
6694 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 6695 | else |
6696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6697 | for as_dir in $PATH | |
6698 | do | |
6699 | IFS=$as_save_IFS | |
6700 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6701 | for ac_exec_ext in '' $ac_executable_extensions; do |
6702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6703 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6705 | break 2 |
6706 | fi | |
6707 | done | |
b0322a85 | 6708 | done |
dd184caf | 6709 | IFS=$as_save_IFS |
d9898ee8 | 6710 | |
6711 | fi | |
6712 | fi | |
8d138742 CE |
6713 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6714 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 | 6716 | $as_echo "$ac_ct_AR" >&6; } |
d9898ee8 | 6717 | else |
b0322a85 | 6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6719 | $as_echo "no" >&6; } |
d9898ee8 | 6720 | fi |
6721 | ||
b0322a85 CE |
6722 | |
6723 | test -n "$ac_ct_AR" && break | |
6724 | done | |
6725 | ||
8d138742 CE |
6726 | if test "x$ac_ct_AR" = x; then |
6727 | AR="false" | |
dd184caf | 6728 | else |
6729 | case $cross_compiling:$ac_tool_warned in | |
6730 | yes:) | |
b0322a85 | 6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6732 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6733 | ac_tool_warned=yes ;; |
6734 | esac | |
8d138742 | 6735 | AR=$ac_ct_AR |
dd184caf | 6736 | fi |
d9898ee8 | 6737 | fi |
6738 | ||
b0322a85 CE |
6739 | : ${AR=ar} |
6740 | : ${AR_FLAGS=cru} | |
6741 | ||
6742 | ||
6743 | ||
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
6750 | ||
6751 | ||
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6753 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6754 | if ${lt_cv_ar_at_file+:} false; then : | |
6755 | $as_echo_n "(cached) " >&6 | |
6756 | else | |
6757 | lt_cv_ar_at_file=no | |
6758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6759 | /* end confdefs.h. */ | |
6760 | ||
6761 | int | |
6762 | main () | |
6763 | { | |
d9898ee8 | 6764 | |
b0322a85 CE |
6765 | ; |
6766 | return 0; | |
6767 | } | |
6768 | _ACEOF | |
6769 | if ac_fn_c_try_compile "$LINENO"; then : | |
6770 | echo conftest.$ac_objext > conftest.lst | |
6771 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6772 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6773 | (eval $lt_ar_try) 2>&5 | |
6774 | ac_status=$? | |
6775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6776 | test $ac_status = 0; } | |
d50284c4 | 6777 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
6778 | # Ensure the archiver fails upon bogus file names. |
6779 | rm -f conftest.$ac_objext libconftest.a | |
6780 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6781 | (eval $lt_ar_try) 2>&5 | |
6782 | ac_status=$? | |
6783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6784 | test $ac_status = 0; } | |
d50284c4 | 6785 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
6786 | lt_cv_ar_at_file=@ |
6787 | fi | |
6788 | fi | |
6789 | rm -f conftest.* libconftest.a | |
d9898ee8 | 6790 | |
b0322a85 CE |
6791 | fi |
6792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 6793 | |
b0322a85 CE |
6794 | fi |
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6796 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
8d138742 | 6797 | |
d50284c4 | 6798 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
6799 | archiver_list_spec= |
6800 | else | |
6801 | archiver_list_spec=$lt_cv_ar_at_file | |
6802 | fi | |
8d138742 CE |
6803 | |
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | if test -n "$ac_tool_prefix"; then | |
6811 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6812 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6814 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6815 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 6816 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6817 | else |
8d138742 CE |
6818 | if test -n "$STRIP"; then |
6819 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6820 | else | |
6821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6822 | for as_dir in $PATH | |
6823 | do | |
6824 | IFS=$as_save_IFS | |
6825 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6826 | for ac_exec_ext in '' $ac_executable_extensions; do |
6827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6828 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 6829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6830 | break 2 |
6831 | fi | |
6832 | done | |
b0322a85 | 6833 | done |
8d138742 | 6834 | IFS=$as_save_IFS |
d9898ee8 | 6835 | |
8d138742 CE |
6836 | fi |
6837 | fi | |
6838 | STRIP=$ac_cv_prog_STRIP | |
6839 | if test -n "$STRIP"; then | |
b0322a85 | 6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
6841 | $as_echo "$STRIP" >&6; } |
6842 | else | |
b0322a85 | 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6844 | $as_echo "no" >&6; } |
d9898ee8 | 6845 | fi |
dd184caf | 6846 | |
d9898ee8 | 6847 | |
6848 | fi | |
8d138742 CE |
6849 | if test -z "$ac_cv_prog_STRIP"; then |
6850 | ac_ct_STRIP=$STRIP | |
6851 | # Extract the first word of "strip", so it can be a program name with args. | |
6852 | set dummy strip; ac_word=$2 | |
b0322a85 | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6854 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6855 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 6856 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6857 | else |
8d138742 CE |
6858 | if test -n "$ac_ct_STRIP"; then |
6859 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6860 | else | |
6861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6862 | for as_dir in $PATH | |
6863 | do | |
6864 | IFS=$as_save_IFS | |
6865 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6866 | for ac_exec_ext in '' $ac_executable_extensions; do |
6867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6868 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 6869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6870 | break 2 |
6871 | fi | |
6872 | done | |
b0322a85 | 6873 | done |
8d138742 | 6874 | IFS=$as_save_IFS |
d9898ee8 | 6875 | |
8d138742 CE |
6876 | fi |
6877 | fi | |
6878 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6879 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
6881 | $as_echo "$ac_ct_STRIP" >&6; } |
6882 | else | |
b0322a85 | 6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6884 | $as_echo "no" >&6; } |
6885 | fi | |
6886 | ||
6887 | if test "x$ac_ct_STRIP" = x; then | |
6888 | STRIP=":" | |
6889 | else | |
6890 | case $cross_compiling:$ac_tool_warned in | |
6891 | yes:) | |
b0322a85 | 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6894 | ac_tool_warned=yes ;; | |
dd184caf | 6895 | esac |
8d138742 CE |
6896 | STRIP=$ac_ct_STRIP |
6897 | fi | |
d9898ee8 | 6898 | else |
8d138742 CE |
6899 | STRIP="$ac_cv_prog_STRIP" |
6900 | fi | |
6901 | ||
6902 | test -z "$STRIP" && STRIP=: | |
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | ||
6909 | if test -n "$ac_tool_prefix"; then | |
6910 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6911 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6913 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6914 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 CE |
6915 | $as_echo_n "(cached) " >&6 |
6916 | else | |
6917 | if test -n "$RANLIB"; then | |
6918 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6919 | else | |
6920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6921 | for as_dir in $PATH | |
6922 | do | |
6923 | IFS=$as_save_IFS | |
6924 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6925 | for ac_exec_ext in '' $ac_executable_extensions; do |
6926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6927 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 6928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6929 | break 2 |
6930 | fi | |
6931 | done | |
b0322a85 | 6932 | done |
8d138742 | 6933 | IFS=$as_save_IFS |
d9898ee8 | 6934 | |
8d138742 CE |
6935 | fi |
6936 | fi | |
6937 | RANLIB=$ac_cv_prog_RANLIB | |
6938 | if test -n "$RANLIB"; then | |
b0322a85 | 6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
6940 | $as_echo "$RANLIB" >&6; } |
6941 | else | |
b0322a85 | 6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6943 | $as_echo "no" >&6; } |
d9898ee8 | 6944 | fi |
dd184caf | 6945 | |
d9898ee8 | 6946 | |
6947 | fi | |
8d138742 CE |
6948 | if test -z "$ac_cv_prog_RANLIB"; then |
6949 | ac_ct_RANLIB=$RANLIB | |
6950 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6951 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6953 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6954 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
6955 | $as_echo_n "(cached) " >&6 |
6956 | else | |
6957 | if test -n "$ac_ct_RANLIB"; then | |
6958 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6959 | else | |
6960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6961 | for as_dir in $PATH | |
6962 | do | |
6963 | IFS=$as_save_IFS | |
6964 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6965 | for ac_exec_ext in '' $ac_executable_extensions; do |
6966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6967 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 6968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6969 | break 2 |
d9898ee8 | 6970 | fi |
8d138742 | 6971 | done |
b0322a85 | 6972 | done |
8d138742 CE |
6973 | IFS=$as_save_IFS |
6974 | ||
6975 | fi | |
6976 | fi | |
6977 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6978 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 | 6980 | $as_echo "$ac_ct_RANLIB" >&6; } |
d9898ee8 | 6981 | else |
b0322a85 | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6983 | $as_echo "no" >&6; } |
6984 | fi | |
6985 | ||
6986 | if test "x$ac_ct_RANLIB" = x; then | |
6987 | RANLIB=":" | |
d9898ee8 | 6988 | else |
8d138742 CE |
6989 | case $cross_compiling:$ac_tool_warned in |
6990 | yes:) | |
b0322a85 | 6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6992 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6993 | ac_tool_warned=yes ;; | |
6994 | esac | |
6995 | RANLIB=$ac_ct_RANLIB | |
d9898ee8 | 6996 | fi |
8d138742 CE |
6997 | else |
6998 | RANLIB="$ac_cv_prog_RANLIB" | |
d9898ee8 | 6999 | fi |
7000 | ||
8d138742 | 7001 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 7002 | |
7003 | ||
7004 | ||
d9898ee8 | 7005 | |
d9898ee8 | 7006 | |
d9898ee8 | 7007 | |
8d138742 CE |
7008 | # Determine commands to create old-style static archives. |
7009 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7010 | old_postinstall_cmds='chmod 644 $oldlib' | |
7011 | old_postuninstall_cmds= | |
d9898ee8 | 7012 | |
8d138742 CE |
7013 | if test -n "$RANLIB"; then |
7014 | case $host_os in | |
d50284c4 | 7015 | bitrig* | openbsd*) |
b0322a85 | 7016 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
d9898ee8 | 7017 | ;; |
8d138742 | 7018 | *) |
b0322a85 | 7019 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 7020 | ;; |
8d138742 | 7021 | esac |
b0322a85 | 7022 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
7023 | fi |
7024 | ||
b0322a85 CE |
7025 | case $host_os in |
7026 | darwin*) | |
7027 | lock_old_archive_extraction=yes ;; | |
7028 | *) | |
7029 | lock_old_archive_extraction=no ;; | |
7030 | esac | |
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
8d138742 CE |
7037 | |
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
d9898ee8 | 7044 | |
d9898ee8 | 7045 | |
d9898ee8 | 7046 | |
d9898ee8 | 7047 | |
d9898ee8 | 7048 | |
d9898ee8 | 7049 | |
7050 | ||
7051 | ||
7052 | ||
ac40fd9e | 7053 | |
8d138742 CE |
7054 | |
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
7069 | ||
7070 | # If no C compiler was specified, use CC. | |
7071 | LTCC=${LTCC-"$CC"} | |
7072 | ||
7073 | # If no C compiler flags were specified, use CFLAGS. | |
7074 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7075 | ||
7076 | # Allow CC to be a program name with arguments. | |
7077 | compiler=$CC | |
7078 | ||
7079 | ||
d9898ee8 | 7080 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 7082 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 7083 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 7084 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7085 | else |
7086 | ||
7087 | # These are sane defaults that work on at least a few old systems. | |
7088 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7089 | ||
7090 | # Character class describing NM global symbol codes. | |
7091 | symcode='[BCDEGRST]' | |
7092 | ||
7093 | # Regexp to match symbols that can be accessed directly from C. | |
7094 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7095 | ||
d9898ee8 | 7096 | # Define system-specific variables. |
7097 | case $host_os in | |
7098 | aix*) | |
7099 | symcode='[BCDT]' | |
7100 | ;; | |
8d138742 | 7101 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 7102 | symcode='[ABCDGISTW]' |
7103 | ;; | |
8d138742 | 7104 | hpux*) |
d50284c4 | 7105 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 7106 | symcode='[ABCDEGRST]' |
7107 | fi | |
d9898ee8 | 7108 | ;; |
7109 | irix* | nonstopux*) | |
7110 | symcode='[BCDEGRST]' | |
7111 | ;; | |
7112 | osf*) | |
7113 | symcode='[BCDEGQRST]' | |
7114 | ;; | |
7115 | solaris*) | |
7116 | symcode='[BDRT]' | |
7117 | ;; | |
7118 | sco3.2v5*) | |
7119 | symcode='[DT]' | |
7120 | ;; | |
7121 | sysv4.2uw2*) | |
7122 | symcode='[DT]' | |
7123 | ;; | |
7124 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7125 | symcode='[ABDT]' | |
7126 | ;; | |
7127 | sysv4) | |
7128 | symcode='[DFNSTU]' | |
7129 | ;; | |
7130 | esac | |
7131 | ||
8d138742 CE |
7132 | # If we're using GNU nm, then use its standard symbol codes. |
7133 | case `$NM -V 2>&1` in | |
7134 | *GNU* | *'with BFD'*) | |
7135 | symcode='[ABCDGIRSTW]' ;; | |
7136 | esac | |
7137 | ||
d50284c4 CE |
7138 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7139 | # Gets list of data symbols to import. | |
7140 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7141 | # Adjust the below global symbol transforms to fixup imported variables. | |
7142 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7143 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7144 | lt_c_name_lib_hook="\ | |
7145 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7146 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7147 | else | |
7148 | # Disable hooks by default. | |
7149 | lt_cv_sys_global_symbol_to_import= | |
7150 | lt_cdecl_hook= | |
7151 | lt_c_name_hook= | |
7152 | lt_c_name_lib_hook= | |
7153 | fi | |
7154 | ||
8d138742 CE |
7155 | # Transform an extracted symbol line into a proper C declaration. |
7156 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7157 | # so use this general approach. | |
d50284c4 CE |
7158 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
7159 | $lt_cdecl_hook\ | |
7160 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7161 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
8d138742 CE |
7162 | |
7163 | # Transform an extracted symbol line into symbol name and symbol address | |
d50284c4 CE |
7164 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
7165 | $lt_c_name_hook\ | |
7166 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7167 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7168 | ||
7169 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7170 | # symbol address. | |
7171 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7172 | $lt_c_name_lib_hook\ | |
7173 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7174 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7175 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 | 7176 | |
d9898ee8 | 7177 | # Handle CRLF in mingw tool chain |
7178 | opt_cr= | |
7179 | case $build_os in | |
7180 | mingw*) | |
8d138742 | 7181 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 7182 | ;; |
7183 | esac | |
7184 | ||
8d138742 | 7185 | # Try without a prefix underscore, then with it. |
d9898ee8 | 7186 | for ac_symprfx in "" "_"; do |
7187 | ||
7188 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7189 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7190 | ||
7191 | # Write the raw and C identifiers. | |
8d138742 | 7192 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
d50284c4 CE |
7193 | # Fake it for dumpbin and say T for any non-static function, |
7194 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
7195 | # Also find C++ and __fastcall symbols from MSVC++, |
7196 | # which start with @ or ?. | |
7197 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7198 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 7199 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 7200 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
7201 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
7202 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7203 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
7204 | " \$ 0!~/External *\|/{next};"\ |
7205 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7206 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
7207 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
7208 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7209 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7210 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
7211 | " ' prfx=^$ac_symprfx" |
7212 | else | |
7213 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7214 | fi | |
b0322a85 | 7215 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 7216 | |
7217 | # Check to see that the pipe works correctly. | |
7218 | pipe_works=no | |
7219 | ||
7220 | rm -f conftest* | |
8d138742 | 7221 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 7222 | #ifdef __cplusplus |
7223 | extern "C" { | |
7224 | #endif | |
7225 | char nm_test_var; | |
8d138742 CE |
7226 | void nm_test_func(void); |
7227 | void nm_test_func(void){} | |
d9898ee8 | 7228 | #ifdef __cplusplus |
7229 | } | |
7230 | #endif | |
7231 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 7232 | _LT_EOF |
d9898ee8 | 7233 | |
b0322a85 | 7234 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 7235 | (eval $ac_compile) 2>&5 |
7236 | ac_status=$? | |
b0322a85 CE |
7237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7238 | test $ac_status = 0; }; then | |
d9898ee8 | 7239 | # Now try to grab the symbols. |
7240 | nlist=conftest.nm | |
b0322a85 CE |
7241 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7242 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 7243 | ac_status=$? |
b0322a85 CE |
7244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7245 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 7246 | # Try sorting and uniquifying the output. |
7247 | if sort "$nlist" | uniq > "$nlist"T; then | |
7248 | mv -f "$nlist"T "$nlist" | |
7249 | else | |
7250 | rm -f "$nlist"T | |
7251 | fi | |
7252 | ||
7253 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
7254 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
7255 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7256 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 7257 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
7258 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
7259 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
7260 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
7261 | # define LT_DLSYM_CONST | |
d50284c4 | 7262 | #elif defined __osf__ |
b0322a85 CE |
7263 | /* This system does not cope well with relocations in const data. */ |
7264 | # define LT_DLSYM_CONST | |
7265 | #else | |
7266 | # define LT_DLSYM_CONST const | |
7267 | #endif | |
7268 | ||
d9898ee8 | 7269 | #ifdef __cplusplus |
7270 | extern "C" { | |
7271 | #endif | |
7272 | ||
8d138742 | 7273 | _LT_EOF |
d9898ee8 | 7274 | # Now generate the symbol file. |
8d138742 | 7275 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 7276 | |
8d138742 | 7277 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 7278 | |
8d138742 | 7279 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 7280 | LT_DLSYM_CONST struct { |
d9898ee8 | 7281 | const char *name; |
8d138742 | 7282 | void *address; |
d9898ee8 | 7283 | } |
8d138742 | 7284 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 7285 | { |
8d138742 CE |
7286 | { "@PROGRAM@", (void *) 0 }, |
7287 | _LT_EOF | |
d50284c4 | 7288 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
7289 | cat <<\_LT_EOF >> conftest.$ac_ext |
7290 | {0, (void *) 0} | |
d9898ee8 | 7291 | }; |
7292 | ||
8d138742 CE |
7293 | /* This works around a problem in FreeBSD linker */ |
7294 | #ifdef FREEBSD_WORKAROUND | |
7295 | static const void *lt_preloaded_setup() { | |
7296 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7297 | } | |
7298 | #endif | |
7299 | ||
d9898ee8 | 7300 | #ifdef __cplusplus |
7301 | } | |
7302 | #endif | |
8d138742 | 7303 | _LT_EOF |
d9898ee8 | 7304 | # Now try linking the two files. |
7305 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
7306 | lt_globsym_save_LIBS=$LIBS |
7307 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 7308 | LIBS=conftstm.$ac_objext |
d9898ee8 | 7309 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 7310 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 7311 | (eval $ac_link) 2>&5 |
7312 | ac_status=$? | |
b0322a85 | 7313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 7314 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
d9898ee8 | 7315 | pipe_works=yes |
7316 | fi | |
b0322a85 CE |
7317 | LIBS=$lt_globsym_save_LIBS |
7318 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 7319 | else |
7320 | echo "cannot find nm_test_func in $nlist" >&5 | |
7321 | fi | |
7322 | else | |
7323 | echo "cannot find nm_test_var in $nlist" >&5 | |
7324 | fi | |
7325 | else | |
7326 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7327 | fi | |
7328 | else | |
7329 | echo "$progname: failed program was:" >&5 | |
7330 | cat conftest.$ac_ext >&5 | |
7331 | fi | |
8d138742 | 7332 | rm -rf conftest* conftst* |
d9898ee8 | 7333 | |
7334 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 7335 | if test yes = "$pipe_works"; then |
d9898ee8 | 7336 | break |
7337 | else | |
7338 | lt_cv_sys_global_symbol_pipe= | |
7339 | fi | |
7340 | done | |
7341 | ||
7342 | fi | |
7343 | ||
7344 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7345 | lt_cv_sys_global_symbol_to_cdecl= | |
7346 | fi | |
7347 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 7349 | $as_echo "failed" >&6; } |
d9898ee8 | 7350 | else |
b0322a85 | 7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 7352 | $as_echo "ok" >&6; } |
d9898ee8 | 7353 | fi |
7354 | ||
b0322a85 CE |
7355 | # Response file support. |
7356 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7357 | nm_file_list_spec='@' | |
7358 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7359 | nm_file_list_spec='@' | |
7360 | fi | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
d9898ee8 | 7365 | |
7366 | ||
7367 | ||
7368 | ||
7369 | ||
d9898ee8 | 7370 | |
d9898ee8 | 7371 | |
d9898ee8 | 7372 | |
d9898ee8 | 7373 | |
d9898ee8 | 7374 | |
d9898ee8 | 7375 | |
d9898ee8 | 7376 | |
d50284c4 CE |
7377 | |
7378 | ||
7379 | ||
7380 | ||
7381 | ||
7382 | ||
7383 | ||
7384 | ||
7385 | ||
7386 | ||
d9898ee8 | 7387 | |
d9898ee8 | 7388 | |
d9898ee8 | 7389 | |
dd184caf | 7390 | |
b0322a85 CE |
7391 | |
7392 | ||
7393 | ||
7394 | ||
7395 | ||
7396 | ||
7397 | ||
7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7399 | $as_echo_n "checking for sysroot... " >&6; } | |
7400 | ||
7401 | # Check whether --with-sysroot was given. | |
7402 | if test "${with_sysroot+set}" = set; then : | |
7403 | withval=$with_sysroot; | |
7404 | else | |
7405 | with_sysroot=no | |
7406 | fi | |
7407 | ||
7408 | ||
7409 | lt_sysroot= | |
d50284c4 | 7410 | case $with_sysroot in #( |
b0322a85 | 7411 | yes) |
d50284c4 | 7412 | if test yes = "$GCC"; then |
b0322a85 CE |
7413 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
7414 | fi | |
7415 | ;; #( | |
7416 | /*) | |
7417 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7418 | ;; #( | |
7419 | no|'') | |
7420 | ;; #( | |
7421 | *) | |
d50284c4 CE |
7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
7423 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
7424 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
7425 | ;; | |
7426 | esac | |
7427 | ||
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7429 | $as_echo "${lt_sysroot:-no}" >&6; } | |
d9898ee8 | 7430 | |
d9898ee8 | 7431 | |
d9898ee8 | 7432 | |
d9898ee8 | 7433 | |
8d138742 | 7434 | |
d50284c4 CE |
7435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
7436 | $as_echo_n "checking for a working dd... " >&6; } | |
7437 | if ${ac_cv_path_lt_DD+:} false; then : | |
7438 | $as_echo_n "(cached) " >&6 | |
7439 | else | |
7440 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7441 | cat conftest.i conftest.i >conftest2.i | |
7442 | : ${lt_DD:=$DD} | |
7443 | if test -z "$lt_DD"; then | |
7444 | ac_path_lt_DD_found=false | |
7445 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7447 | for as_dir in $PATH | |
7448 | do | |
7449 | IFS=$as_save_IFS | |
7450 | test -z "$as_dir" && as_dir=. | |
7451 | for ac_prog in dd; do | |
7452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7453 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7454 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7455 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7456 | cmp -s conftest.i conftest.out \ | |
7457 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7458 | fi | |
7459 | $ac_path_lt_DD_found && break 3 | |
7460 | done | |
7461 | done | |
7462 | done | |
7463 | IFS=$as_save_IFS | |
7464 | if test -z "$ac_cv_path_lt_DD"; then | |
7465 | : | |
7466 | fi | |
7467 | else | |
7468 | ac_cv_path_lt_DD=$lt_DD | |
7469 | fi | |
7470 | ||
7471 | rm -f conftest.i conftest2.i conftest.out | |
7472 | fi | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7474 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7475 | ||
7476 | ||
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7478 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7479 | if ${lt_cv_truncate_bin+:} false; then : | |
7480 | $as_echo_n "(cached) " >&6 | |
7481 | else | |
7482 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7483 | cat conftest.i conftest.i >conftest2.i | |
7484 | lt_cv_truncate_bin= | |
7485 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7486 | cmp -s conftest.i conftest.out \ | |
7487 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7488 | fi | |
7489 | rm -f conftest.i conftest2.i conftest.out | |
7490 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7491 | fi | |
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7493 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7502 | func_cc_basename () | |
7503 | { | |
7504 | for cc_temp in $*""; do | |
7505 | case $cc_temp in | |
7506 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7507 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7508 | \-*) ;; | |
7509 | *) break;; | |
7510 | esac | |
7511 | done | |
7512 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7513 | } | |
7514 | ||
8d138742 | 7515 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 7516 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 7517 | enableval=$enable_libtool_lock; |
d9898ee8 | 7518 | fi |
8d138742 | 7519 | |
d50284c4 | 7520 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
7521 | |
7522 | # Some flags need to be propagated to the compiler or linker for good | |
7523 | # libtool support. | |
7524 | case $host in | |
7525 | ia64-*-hpux*) | |
d50284c4 CE |
7526 | # Find out what ABI is being produced by ac_compile, and set mode |
7527 | # options accordingly. | |
8d138742 | 7528 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7529 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7530 | (eval $ac_compile) 2>&5 |
7531 | ac_status=$? | |
b0322a85 CE |
7532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7533 | test $ac_status = 0; }; then | |
8d138742 CE |
7534 | case `/usr/bin/file conftest.$ac_objext` in |
7535 | *ELF-32*) | |
d50284c4 | 7536 | HPUX_IA64_MODE=32 |
8d138742 CE |
7537 | ;; |
7538 | *ELF-64*) | |
d50284c4 | 7539 | HPUX_IA64_MODE=64 |
8d138742 CE |
7540 | ;; |
7541 | esac | |
7542 | fi | |
7543 | rm -rf conftest* | |
7544 | ;; | |
7545 | *-*-irix6*) | |
d50284c4 CE |
7546 | # Find out what ABI is being produced by ac_compile, and set linker |
7547 | # options accordingly. | |
b0322a85 CE |
7548 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7549 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
7550 | (eval $ac_compile) 2>&5 |
7551 | ac_status=$? | |
b0322a85 CE |
7552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7553 | test $ac_status = 0; }; then | |
d50284c4 | 7554 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
7555 | case `/usr/bin/file conftest.$ac_objext` in |
7556 | *32-bit*) | |
7557 | LD="${LD-ld} -melf32bsmip" | |
7558 | ;; | |
7559 | *N32*) | |
7560 | LD="${LD-ld} -melf32bmipn32" | |
7561 | ;; | |
7562 | *64-bit*) | |
7563 | LD="${LD-ld} -melf64bmip" | |
7564 | ;; | |
7565 | esac | |
7566 | else | |
7567 | case `/usr/bin/file conftest.$ac_objext` in | |
7568 | *32-bit*) | |
7569 | LD="${LD-ld} -32" | |
7570 | ;; | |
7571 | *N32*) | |
7572 | LD="${LD-ld} -n32" | |
7573 | ;; | |
7574 | *64-bit*) | |
7575 | LD="${LD-ld} -64" | |
7576 | ;; | |
7577 | esac | |
7578 | fi | |
7579 | fi | |
7580 | rm -rf conftest* | |
7581 | ;; | |
7582 | ||
d50284c4 CE |
7583 | mips64*-*linux*) |
7584 | # Find out what ABI is being produced by ac_compile, and set linker | |
7585 | # options accordingly. | |
7586 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7587 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7588 | (eval $ac_compile) 2>&5 | |
7589 | ac_status=$? | |
7590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7591 | test $ac_status = 0; }; then | |
7592 | emul=elf | |
7593 | case `/usr/bin/file conftest.$ac_objext` in | |
7594 | *32-bit*) | |
7595 | emul="${emul}32" | |
7596 | ;; | |
7597 | *64-bit*) | |
7598 | emul="${emul}64" | |
7599 | ;; | |
7600 | esac | |
7601 | case `/usr/bin/file conftest.$ac_objext` in | |
7602 | *MSB*) | |
7603 | emul="${emul}btsmip" | |
7604 | ;; | |
7605 | *LSB*) | |
7606 | emul="${emul}ltsmip" | |
7607 | ;; | |
7608 | esac | |
7609 | case `/usr/bin/file conftest.$ac_objext` in | |
7610 | *N32*) | |
7611 | emul="${emul}n32" | |
7612 | ;; | |
7613 | esac | |
7614 | LD="${LD-ld} -m $emul" | |
7615 | fi | |
7616 | rm -rf conftest* | |
7617 | ;; | |
7618 | ||
7619 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 7620 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
7621 | # Find out what ABI is being produced by ac_compile, and set linker |
7622 | # options accordingly. Note that the listed cases only cover the | |
7623 | # situations where additional linker options are needed (such as when | |
7624 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7625 | # vice versa); the common cases where no linker options are needed do | |
7626 | # not appear in the list. | |
8d138742 | 7627 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7628 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7629 | (eval $ac_compile) 2>&5 |
7630 | ac_status=$? | |
b0322a85 CE |
7631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7632 | test $ac_status = 0; }; then | |
8d138742 CE |
7633 | case `/usr/bin/file conftest.o` in |
7634 | *32-bit*) | |
7635 | case $host in | |
7636 | x86_64-*kfreebsd*-gnu) | |
7637 | LD="${LD-ld} -m elf_i386_fbsd" | |
7638 | ;; | |
7639 | x86_64-*linux*) | |
d50284c4 CE |
7640 | case `/usr/bin/file conftest.o` in |
7641 | *x86-64*) | |
7642 | LD="${LD-ld} -m elf32_x86_64" | |
7643 | ;; | |
7644 | *) | |
7645 | LD="${LD-ld} -m elf_i386" | |
7646 | ;; | |
7647 | esac | |
8d138742 | 7648 | ;; |
d50284c4 CE |
7649 | powerpc64le-*linux*) |
7650 | LD="${LD-ld} -m elf32lppclinux" | |
7651 | ;; | |
7652 | powerpc64-*linux*) | |
8d138742 CE |
7653 | LD="${LD-ld} -m elf32ppclinux" |
7654 | ;; | |
7655 | s390x-*linux*) | |
7656 | LD="${LD-ld} -m elf_s390" | |
7657 | ;; | |
7658 | sparc64-*linux*) | |
7659 | LD="${LD-ld} -m elf32_sparc" | |
7660 | ;; | |
7661 | esac | |
7662 | ;; | |
7663 | *64-bit*) | |
7664 | case $host in | |
7665 | x86_64-*kfreebsd*-gnu) | |
7666 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7667 | ;; | |
7668 | x86_64-*linux*) | |
7669 | LD="${LD-ld} -m elf_x86_64" | |
7670 | ;; | |
d50284c4 CE |
7671 | powerpcle-*linux*) |
7672 | LD="${LD-ld} -m elf64lppc" | |
7673 | ;; | |
7674 | powerpc-*linux*) | |
8d138742 CE |
7675 | LD="${LD-ld} -m elf64ppc" |
7676 | ;; | |
7677 | s390*-*linux*|s390*-*tpf*) | |
7678 | LD="${LD-ld} -m elf64_s390" | |
7679 | ;; | |
7680 | sparc*-*linux*) | |
7681 | LD="${LD-ld} -m elf64_sparc" | |
7682 | ;; | |
7683 | esac | |
7684 | ;; | |
7685 | esac | |
7686 | fi | |
7687 | rm -rf conftest* | |
7688 | ;; | |
7689 | ||
7690 | *-*-sco3.2v5*) | |
7691 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 7692 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 7693 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 7695 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 7696 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
7697 | $as_echo_n "(cached) " >&6 |
7698 | else | |
7699 | ac_ext=c | |
7700 | ac_cpp='$CPP $CPPFLAGS' | |
7701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7704 | ||
b0322a85 | 7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7706 | /* end confdefs.h. */ |
7707 | ||
7708 | int | |
7709 | main () | |
7710 | { | |
7711 | ||
7712 | ; | |
7713 | return 0; | |
7714 | } | |
7715 | _ACEOF | |
b0322a85 | 7716 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7717 | lt_cv_cc_needs_belf=yes |
d9898ee8 | 7718 | else |
b0322a85 | 7719 | lt_cv_cc_needs_belf=no |
d9898ee8 | 7720 | fi |
b0322a85 CE |
7721 | rm -f core conftest.err conftest.$ac_objext \ |
7722 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
7723 | ac_ext=c |
7724 | ac_cpp='$CPP $CPPFLAGS' | |
7725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dd184caf | 7728 | |
d9898ee8 | 7729 | fi |
b0322a85 | 7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 7731 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 7732 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 7733 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 7734 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
7735 | fi |
7736 | ;; | |
b0322a85 | 7737 | *-*solaris*) |
d50284c4 CE |
7738 | # Find out what ABI is being produced by ac_compile, and set linker |
7739 | # options accordingly. | |
8d138742 | 7740 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7741 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7742 | (eval $ac_compile) 2>&5 |
7743 | ac_status=$? | |
b0322a85 CE |
7744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7745 | test $ac_status = 0; }; then | |
8d138742 CE |
7746 | case `/usr/bin/file conftest.o` in |
7747 | *64-bit*) | |
7748 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
7749 | yes*) |
7750 | case $host in | |
d50284c4 | 7751 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
7752 | LD="${LD-ld} -m elf_x86_64" |
7753 | ;; | |
7754 | sparc*-*-solaris*) | |
7755 | LD="${LD-ld} -m elf64_sparc" | |
7756 | ;; | |
7757 | esac | |
7758 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7759 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 7760 | LD=${LD-ld}_sol2 |
b0322a85 CE |
7761 | fi |
7762 | ;; | |
8d138742 CE |
7763 | *) |
7764 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7765 | LD="${LD-ld} -64" | |
7766 | fi | |
7767 | ;; | |
7768 | esac | |
7769 | ;; | |
7770 | esac | |
7771 | fi | |
7772 | rm -rf conftest* | |
7773 | ;; | |
7774 | esac | |
7775 | ||
d50284c4 | 7776 | need_locks=$enable_libtool_lock |
b0322a85 CE |
7777 | |
7778 | if test -n "$ac_tool_prefix"; then | |
7779 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7780 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7782 | $as_echo_n "checking for $ac_word... " >&6; } | |
7783 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7784 | $as_echo_n "(cached) " >&6 | |
7785 | else | |
7786 | if test -n "$MANIFEST_TOOL"; then | |
7787 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7788 | else | |
7789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7790 | for as_dir in $PATH | |
7791 | do | |
7792 | IFS=$as_save_IFS | |
7793 | test -z "$as_dir" && as_dir=. | |
7794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7796 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7798 | break 2 | |
7799 | fi | |
7800 | done | |
7801 | done | |
7802 | IFS=$as_save_IFS | |
7803 | ||
7804 | fi | |
7805 | fi | |
7806 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7807 | if test -n "$MANIFEST_TOOL"; then | |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7809 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7810 | else | |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7812 | $as_echo "no" >&6; } | |
7813 | fi | |
7814 | ||
7815 | ||
7816 | fi | |
7817 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7818 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7819 | # Extract the first word of "mt", so it can be a program name with args. | |
7820 | set dummy mt; ac_word=$2 | |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7822 | $as_echo_n "checking for $ac_word... " >&6; } | |
7823 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7824 | $as_echo_n "(cached) " >&6 | |
7825 | else | |
7826 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7827 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7828 | else | |
7829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7830 | for as_dir in $PATH | |
7831 | do | |
7832 | IFS=$as_save_IFS | |
7833 | test -z "$as_dir" && as_dir=. | |
7834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7836 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7838 | break 2 | |
7839 | fi | |
7840 | done | |
7841 | done | |
7842 | IFS=$as_save_IFS | |
7843 | ||
7844 | fi | |
7845 | fi | |
7846 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7847 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7849 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7850 | else | |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7852 | $as_echo "no" >&6; } | |
7853 | fi | |
7854 | ||
7855 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7856 | MANIFEST_TOOL=":" | |
7857 | else | |
7858 | case $cross_compiling:$ac_tool_warned in | |
7859 | yes:) | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7861 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7862 | ac_tool_warned=yes ;; | |
7863 | esac | |
7864 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7865 | fi | |
7866 | else | |
7867 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7868 | fi | |
7869 | ||
7870 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7872 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7873 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7874 | $as_echo_n "(cached) " >&6 | |
7875 | else | |
7876 | lt_cv_path_mainfest_tool=no | |
7877 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7878 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7879 | cat conftest.err >&5 | |
7880 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7881 | lt_cv_path_mainfest_tool=yes | |
7882 | fi | |
7883 | rm -f conftest* | |
7884 | fi | |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7886 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 7887 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
7888 | MANIFEST_TOOL=: |
7889 | fi | |
7890 | ||
7891 | ||
7892 | ||
7893 | ||
8d138742 CE |
7894 | |
7895 | ||
7896 | case $host_os in | |
7897 | rhapsody* | darwin*) | |
7898 | if test -n "$ac_tool_prefix"; then | |
7899 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7900 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7902 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7903 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 | 7904 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7905 | else |
8d138742 CE |
7906 | if test -n "$DSYMUTIL"; then |
7907 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 7908 | else |
7909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7910 | for as_dir in $PATH | |
7911 | do | |
7912 | IFS=$as_save_IFS | |
7913 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7914 | for ac_exec_ext in '' $ac_executable_extensions; do |
7915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7916 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 7917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7918 | break 2 |
7919 | fi | |
7920 | done | |
b0322a85 | 7921 | done |
dd184caf | 7922 | IFS=$as_save_IFS |
d9898ee8 | 7923 | |
d9898ee8 | 7924 | fi |
7925 | fi | |
8d138742 CE |
7926 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7927 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 7929 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 7930 | else |
b0322a85 | 7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7932 | $as_echo "no" >&6; } |
d9898ee8 | 7933 | fi |
7934 | ||
8d138742 CE |
7935 | |
7936 | fi | |
7937 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7938 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7939 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7940 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7942 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7943 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
7944 | $as_echo_n "(cached) " >&6 |
7945 | else | |
7946 | if test -n "$ac_ct_DSYMUTIL"; then | |
7947 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7948 | else | |
7949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7950 | for as_dir in $PATH | |
7951 | do | |
7952 | IFS=$as_save_IFS | |
7953 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7954 | for ac_exec_ext in '' $ac_executable_extensions; do |
7955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7956 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 7957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7958 | break 2 |
7959 | fi | |
7960 | done | |
b0322a85 | 7961 | done |
8d138742 CE |
7962 | IFS=$as_save_IFS |
7963 | ||
7964 | fi | |
7965 | fi | |
7966 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7967 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
7969 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
7970 | else | |
b0322a85 | 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7972 | $as_echo "no" >&6; } |
7973 | fi | |
7974 | ||
7975 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7976 | DSYMUTIL=":" | |
dd184caf | 7977 | else |
7978 | case $cross_compiling:$ac_tool_warned in | |
7979 | yes:) | |
b0322a85 | 7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7981 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7982 | ac_tool_warned=yes ;; |
7983 | esac | |
8d138742 | 7984 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 7985 | fi |
d9898ee8 | 7986 | else |
8d138742 | 7987 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 7988 | fi |
7989 | ||
8d138742 CE |
7990 | if test -n "$ac_tool_prefix"; then |
7991 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7992 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7994 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7995 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 7996 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7997 | else |
8d138742 CE |
7998 | if test -n "$NMEDIT"; then |
7999 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 8000 | else |
8001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8002 | for as_dir in $PATH | |
8003 | do | |
8004 | IFS=$as_save_IFS | |
8005 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8006 | for ac_exec_ext in '' $ac_executable_extensions; do |
8007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8008 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 8009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 8010 | break 2 |
8011 | fi | |
8012 | done | |
b0322a85 | 8013 | done |
dd184caf | 8014 | IFS=$as_save_IFS |
d9898ee8 | 8015 | |
8016 | fi | |
8017 | fi | |
8d138742 CE |
8018 | NMEDIT=$ac_cv_prog_NMEDIT |
8019 | if test -n "$NMEDIT"; then | |
b0322a85 | 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 8021 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 8022 | else |
b0322a85 | 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8024 | $as_echo "no" >&6; } |
d9898ee8 | 8025 | fi |
8026 | ||
dd184caf | 8027 | |
d9898ee8 | 8028 | fi |
8d138742 CE |
8029 | if test -z "$ac_cv_prog_NMEDIT"; then |
8030 | ac_ct_NMEDIT=$NMEDIT | |
8031 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8032 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8034 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8035 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 8036 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8037 | else |
8d138742 CE |
8038 | if test -n "$ac_ct_NMEDIT"; then |
8039 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 8040 | else |
8041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8042 | for as_dir in $PATH | |
8043 | do | |
8044 | IFS=$as_save_IFS | |
8045 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8046 | for ac_exec_ext in '' $ac_executable_extensions; do |
8047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8048 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 8049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 8050 | break 2 |
8051 | fi | |
8052 | done | |
b0322a85 | 8053 | done |
dd184caf | 8054 | IFS=$as_save_IFS |
d9898ee8 | 8055 | |
d9898ee8 | 8056 | fi |
8057 | fi | |
8d138742 CE |
8058 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8059 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 8061 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 8062 | else |
b0322a85 | 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8064 | $as_echo "no" >&6; } |
d9898ee8 | 8065 | fi |
8066 | ||
8d138742 CE |
8067 | if test "x$ac_ct_NMEDIT" = x; then |
8068 | NMEDIT=":" | |
dd184caf | 8069 | else |
8070 | case $cross_compiling:$ac_tool_warned in | |
8071 | yes:) | |
b0322a85 | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 8073 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 8074 | ac_tool_warned=yes ;; |
8075 | esac | |
8d138742 | 8076 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 8077 | fi |
d9898ee8 | 8078 | else |
8d138742 | 8079 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 8080 | fi |
8081 | ||
8d138742 CE |
8082 | if test -n "$ac_tool_prefix"; then |
8083 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8084 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8086 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8087 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
8088 | $as_echo_n "(cached) " >&6 |
8089 | else | |
8090 | if test -n "$LIPO"; then | |
8091 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8092 | else | |
8093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8094 | for as_dir in $PATH | |
8095 | do | |
8096 | IFS=$as_save_IFS | |
8097 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8098 | for ac_exec_ext in '' $ac_executable_extensions; do |
8099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8100 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 8101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8102 | break 2 |
8103 | fi | |
8104 | done | |
b0322a85 | 8105 | done |
8d138742 | 8106 | IFS=$as_save_IFS |
d9898ee8 | 8107 | |
8d138742 CE |
8108 | fi |
8109 | fi | |
8110 | LIPO=$ac_cv_prog_LIPO | |
8111 | if test -n "$LIPO"; then | |
b0322a85 | 8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
8113 | $as_echo "$LIPO" >&6; } |
8114 | else | |
b0322a85 | 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8116 | $as_echo "no" >&6; } |
8117 | fi | |
d9898ee8 | 8118 | |
d9898ee8 | 8119 | |
d9898ee8 | 8120 | fi |
8d138742 CE |
8121 | if test -z "$ac_cv_prog_LIPO"; then |
8122 | ac_ct_LIPO=$LIPO | |
8123 | # Extract the first word of "lipo", so it can be a program name with args. | |
8124 | set dummy lipo; ac_word=$2 | |
b0322a85 | 8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8126 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8127 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
8128 | $as_echo_n "(cached) " >&6 |
8129 | else | |
8130 | if test -n "$ac_ct_LIPO"; then | |
8131 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8132 | else | |
8133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8134 | for as_dir in $PATH | |
8135 | do | |
8136 | IFS=$as_save_IFS | |
8137 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8138 | for ac_exec_ext in '' $ac_executable_extensions; do |
8139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8140 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 8141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8142 | break 2 |
8143 | fi | |
d9898ee8 | 8144 | done |
b0322a85 | 8145 | done |
8d138742 | 8146 | IFS=$as_save_IFS |
d9898ee8 | 8147 | |
8d138742 CE |
8148 | fi |
8149 | fi | |
8150 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8151 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 8153 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 8154 | else |
b0322a85 | 8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8156 | $as_echo "no" >&6; } |
8157 | fi | |
d9898ee8 | 8158 | |
8d138742 CE |
8159 | if test "x$ac_ct_LIPO" = x; then |
8160 | LIPO=":" | |
8161 | else | |
8162 | case $cross_compiling:$ac_tool_warned in | |
8163 | yes:) | |
b0322a85 | 8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8165 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8166 | ac_tool_warned=yes ;; | |
d9898ee8 | 8167 | esac |
8d138742 CE |
8168 | LIPO=$ac_ct_LIPO |
8169 | fi | |
8170 | else | |
8171 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 8172 | fi |
8173 | ||
8d138742 CE |
8174 | if test -n "$ac_tool_prefix"; then |
8175 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8176 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8178 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8179 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 8180 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8181 | else |
8d138742 CE |
8182 | if test -n "$OTOOL"; then |
8183 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8184 | else | |
8185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8186 | for as_dir in $PATH | |
8187 | do | |
8188 | IFS=$as_save_IFS | |
8189 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8190 | for ac_exec_ext in '' $ac_executable_extensions; do |
8191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8192 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 8193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8194 | break 2 |
8195 | fi | |
8196 | done | |
b0322a85 | 8197 | done |
8d138742 | 8198 | IFS=$as_save_IFS |
d9898ee8 | 8199 | |
8d138742 CE |
8200 | fi |
8201 | fi | |
8202 | OTOOL=$ac_cv_prog_OTOOL | |
8203 | if test -n "$OTOOL"; then | |
b0322a85 | 8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 8205 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 8206 | else |
b0322a85 | 8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8208 | $as_echo "no" >&6; } |
8209 | fi | |
d9898ee8 | 8210 | |
d9898ee8 | 8211 | |
d9898ee8 | 8212 | fi |
8d138742 CE |
8213 | if test -z "$ac_cv_prog_OTOOL"; then |
8214 | ac_ct_OTOOL=$OTOOL | |
8215 | # Extract the first word of "otool", so it can be a program name with args. | |
8216 | set dummy otool; ac_word=$2 | |
b0322a85 | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8218 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8219 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
8220 | $as_echo_n "(cached) " >&6 |
8221 | else | |
8222 | if test -n "$ac_ct_OTOOL"; then | |
8223 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8224 | else | |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
8231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8232 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8234 | break 2 |
8235 | fi | |
8236 | done | |
b0322a85 | 8237 | done |
8d138742 | 8238 | IFS=$as_save_IFS |
d9898ee8 | 8239 | |
8d138742 CE |
8240 | fi |
8241 | fi | |
8242 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8243 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 8245 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 8246 | else |
b0322a85 | 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8248 | $as_echo "no" >&6; } |
d9898ee8 | 8249 | fi |
8250 | ||
8d138742 CE |
8251 | if test "x$ac_ct_OTOOL" = x; then |
8252 | OTOOL=":" | |
d9898ee8 | 8253 | else |
8d138742 CE |
8254 | case $cross_compiling:$ac_tool_warned in |
8255 | yes:) | |
b0322a85 | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8258 | ac_tool_warned=yes ;; | |
8259 | esac | |
8260 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 8261 | fi |
8d138742 CE |
8262 | else |
8263 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 8264 | fi |
8265 | ||
8d138742 CE |
8266 | if test -n "$ac_tool_prefix"; then |
8267 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8268 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8270 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8271 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
8272 | $as_echo_n "(cached) " >&6 |
8273 | else | |
8274 | if test -n "$OTOOL64"; then | |
8275 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8276 | else | |
8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8278 | for as_dir in $PATH | |
8279 | do | |
8280 | IFS=$as_save_IFS | |
8281 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8282 | for ac_exec_ext in '' $ac_executable_extensions; do |
8283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8284 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 8285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 8286 | break 2 |
d9898ee8 | 8287 | fi |
8d138742 | 8288 | done |
b0322a85 | 8289 | done |
8d138742 | 8290 | IFS=$as_save_IFS |
d9898ee8 | 8291 | |
8d138742 CE |
8292 | fi |
8293 | fi | |
8294 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8295 | if test -n "$OTOOL64"; then | |
b0322a85 | 8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
8297 | $as_echo "$OTOOL64" >&6; } |
8298 | else | |
b0322a85 | 8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8300 | $as_echo "no" >&6; } |
dd184caf | 8301 | fi |
d9898ee8 | 8302 | |
d9898ee8 | 8303 | |
8d138742 CE |
8304 | fi |
8305 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8306 | ac_ct_OTOOL64=$OTOOL64 | |
8307 | # Extract the first word of "otool64", so it can be a program name with args. | |
8308 | set dummy otool64; ac_word=$2 | |
b0322a85 | 8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 8310 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 8311 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
8312 | $as_echo_n "(cached) " >&6 |
8313 | else | |
8314 | if test -n "$ac_ct_OTOOL64"; then | |
8315 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8316 | else | |
8317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8318 | for as_dir in $PATH | |
8319 | do | |
8320 | IFS=$as_save_IFS | |
8321 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
8322 | for ac_exec_ext in '' $ac_executable_extensions; do |
8323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 8324 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 8325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
8326 | break 2 |
8327 | fi | |
8328 | done | |
b0322a85 | 8329 | done |
8d138742 | 8330 | IFS=$as_save_IFS |
d9898ee8 | 8331 | |
8d138742 CE |
8332 | fi |
8333 | fi | |
8334 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8335 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 8337 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 8338 | else |
b0322a85 | 8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8340 | $as_echo "no" >&6; } |
dd184caf | 8341 | fi |
8342 | ||
8d138742 CE |
8343 | if test "x$ac_ct_OTOOL64" = x; then |
8344 | OTOOL64=":" | |
8345 | else | |
8346 | case $cross_compiling:$ac_tool_warned in | |
8347 | yes:) | |
b0322a85 | 8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
8349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8350 | ac_tool_warned=yes ;; | |
8351 | esac | |
8352 | OTOOL64=$ac_ct_OTOOL64 | |
8353 | fi | |
8354 | else | |
8355 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8356 | fi | |
8357 | ||
8358 | ||
8359 | ||
d9898ee8 | 8360 | |
d9898ee8 | 8361 | |
8362 | ||
d9898ee8 | 8363 | |
d9898ee8 | 8364 | |
d9898ee8 | 8365 | |
d9898ee8 | 8366 | |
8367 | ||
d9898ee8 | 8368 | |
d9898ee8 | 8369 | |
d9898ee8 | 8370 | |
8371 | ||
d9898ee8 | 8372 | |
d9898ee8 | 8373 | |
8374 | ||
8375 | ||
d9898ee8 | 8376 | |
d9898ee8 | 8377 | |
8378 | ||
d9898ee8 | 8379 | |
8d138742 CE |
8380 | |
8381 | ||
8382 | ||
8383 | ||
b0322a85 | 8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 8385 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 8386 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
8387 | $as_echo_n "(cached) " >&6 |
8388 | else | |
8389 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 8390 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
8391 | # By default we will add the -single_module flag. You can override |
8392 | # by either setting the environment variable LT_MULTI_MODULE | |
8393 | # non-empty at configure time, or by adding -multi_module to the | |
8394 | # link flags. | |
8395 | rm -rf libconftest.dylib* | |
8396 | echo "int foo(void){return 1;}" > conftest.c | |
8397 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8398 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8399 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8400 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8401 | _lt_result=$? | |
b0322a85 CE |
8402 | # If there is a non-empty error log, and "single_module" |
8403 | # appears in it, assume the flag caused a linker warning | |
8404 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8405 | cat conftest.err >&5 | |
8406 | # Otherwise, if the output was created with a 0 exit code from | |
8407 | # the compiler, it worked. | |
d50284c4 | 8408 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
8409 | lt_cv_apple_cc_single_mod=yes |
8410 | else | |
8411 | cat conftest.err >&5 | |
8412 | fi | |
8413 | rm -rf libconftest.dylib* | |
8414 | rm -f conftest.* | |
8415 | fi | |
d9898ee8 | 8416 | fi |
b0322a85 | 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 8418 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
8419 | |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 8421 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 8422 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
8423 | $as_echo_n "(cached) " >&6 |
8424 | else | |
8425 | lt_cv_ld_exported_symbols_list=no | |
8426 | save_LDFLAGS=$LDFLAGS | |
8427 | echo "_main" > conftest.sym | |
8428 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 8429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 8430 | /* end confdefs.h. */ |
d9898ee8 | 8431 | |
8d138742 CE |
8432 | int |
8433 | main () | |
8434 | { | |
8435 | ||
8436 | ; | |
8437 | return 0; | |
8438 | } | |
8439 | _ACEOF | |
b0322a85 | 8440 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 8441 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 8442 | else |
b0322a85 | 8443 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 8444 | fi |
b0322a85 CE |
8445 | rm -f core conftest.err conftest.$ac_objext \ |
8446 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 8447 | LDFLAGS=$save_LDFLAGS |
8d138742 | 8448 | |
d9898ee8 | 8449 | fi |
b0322a85 | 8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 8451 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
8452 | |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8454 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8455 | if ${lt_cv_ld_force_load+:} false; then : | |
8456 | $as_echo_n "(cached) " >&6 | |
8457 | else | |
8458 | lt_cv_ld_force_load=no | |
8459 | cat > conftest.c << _LT_EOF | |
8460 | int forced_loaded() { return 2;} | |
8461 | _LT_EOF | |
8462 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8463 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8464 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8465 | $AR cru libconftest.a conftest.o 2>&5 | |
8466 | echo "$RANLIB libconftest.a" >&5 | |
8467 | $RANLIB libconftest.a 2>&5 | |
8468 | cat > conftest.c << _LT_EOF | |
8469 | int main() { return 0;} | |
8470 | _LT_EOF | |
8471 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8472 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8473 | _lt_result=$? | |
8474 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8475 | cat conftest.err >&5 | |
d50284c4 | 8476 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
8477 | lt_cv_ld_force_load=yes |
8478 | else | |
8479 | cat conftest.err >&5 | |
8480 | fi | |
8481 | rm -f conftest.err libconftest.a conftest conftest.c | |
8482 | rm -rf conftest.dSYM | |
8483 | ||
8484 | fi | |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8486 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
8487 | case $host_os in |
8488 | rhapsody* | darwin1.[012]) | |
d50284c4 | 8489 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 8490 | darwin1.*) |
d50284c4 | 8491 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
8492 | darwin*) # darwin 5.x on |
8493 | # if running on 10.5 or later, the deployment target defaults | |
8494 | # to the OS version, if on x86, and 10.4, the deployment | |
8495 | # target defaults to 10.4. Don't you love it? | |
8496 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8497 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
8498 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8499 | 10.[012][,.]*) | |
8500 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 8501 | 10.*) |
d50284c4 | 8502 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
8503 | esac |
8504 | ;; | |
8505 | esac | |
d50284c4 | 8506 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
8507 | _lt_dar_single_mod='$single_module' |
8508 | fi | |
d50284c4 CE |
8509 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
8510 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 8511 | else |
d50284c4 | 8512 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 8513 | fi |
d50284c4 | 8514 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
8515 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8516 | else | |
8517 | _lt_dsymutil= | |
8518 | fi | |
8519 | ;; | |
8520 | esac | |
d9898ee8 | 8521 | |
d50284c4 CE |
8522 | # func_munge_path_list VARIABLE PATH |
8523 | # ----------------------------------- | |
8524 | # VARIABLE is name of variable containing _space_ separated list of | |
8525 | # directories to be munged by the contents of PATH, which is string | |
8526 | # having a format: | |
8527 | # "DIR[:DIR]:" | |
8528 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8529 | # ":DIR[:DIR]" | |
8530 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8531 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8532 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8533 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8534 | # "DIR[:DIR]" | |
8535 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8536 | func_munge_path_list () | |
8537 | { | |
8538 | case x$2 in | |
8539 | x) | |
8540 | ;; | |
8541 | *:) | |
8542 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8543 | ;; | |
8544 | x:*) | |
8545 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8546 | ;; | |
8547 | *::*) | |
8548 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8549 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8550 | ;; | |
8551 | *) | |
8552 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8553 | ;; | |
8554 | esac | |
8555 | } | |
8556 | ||
8d138742 | 8557 | for ac_header in dlfcn.h |
b0322a85 CE |
8558 | do : |
8559 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8560 | " | |
8561 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 8562 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 8563 | #define HAVE_DLFCN_H 1 |
8d138742 | 8564 | _ACEOF |
d9898ee8 | 8565 | |
8d138742 | 8566 | fi |
d9898ee8 | 8567 | |
8d138742 | 8568 | done |
d9898ee8 | 8569 | |
d9898ee8 | 8570 | |
d9898ee8 | 8571 | |
b0322a85 CE |
8572 | |
8573 | ||
8d138742 | 8574 | # Set options |
d9898ee8 | 8575 | |
d9898ee8 | 8576 | |
d9898ee8 | 8577 | |
8d138742 CE |
8578 | enable_dlopen=no |
8579 | ||
8580 | ||
8581 | enable_win32_dll=no | |
8582 | ||
8583 | ||
8584 | # Check whether --enable-shared was given. | |
b0322a85 | 8585 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
8586 | enableval=$enable_shared; p=${PACKAGE-default} |
8587 | case $enableval in | |
8588 | yes) enable_shared=yes ;; | |
8589 | no) enable_shared=no ;; | |
d9898ee8 | 8590 | *) |
8d138742 CE |
8591 | enable_shared=no |
8592 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8593 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8594 | for pkg in $enableval; do |
d50284c4 | 8595 | IFS=$lt_save_ifs |
8d138742 CE |
8596 | if test "X$pkg" = "X$p"; then |
8597 | enable_shared=yes | |
8598 | fi | |
8599 | done | |
d50284c4 | 8600 | IFS=$lt_save_ifs |
d9898ee8 | 8601 | ;; |
8602 | esac | |
8d138742 CE |
8603 | else |
8604 | enable_shared=yes | |
8605 | fi | |
d9898ee8 | 8606 | |
d9898ee8 | 8607 | |
d9898ee8 | 8608 | |
d9898ee8 | 8609 | |
d9898ee8 | 8610 | |
d9898ee8 | 8611 | |
ac40fd9e | 8612 | |
d9898ee8 | 8613 | |
d9898ee8 | 8614 | |
8d138742 | 8615 | # Check whether --enable-static was given. |
b0322a85 | 8616 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
8617 | enableval=$enable_static; p=${PACKAGE-default} |
8618 | case $enableval in | |
8619 | yes) enable_static=yes ;; | |
8620 | no) enable_static=no ;; | |
8621 | *) | |
8622 | enable_static=no | |
8623 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8624 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8625 | for pkg in $enableval; do |
d50284c4 | 8626 | IFS=$lt_save_ifs |
8d138742 CE |
8627 | if test "X$pkg" = "X$p"; then |
8628 | enable_static=yes | |
8629 | fi | |
8630 | done | |
d50284c4 | 8631 | IFS=$lt_save_ifs |
d9898ee8 | 8632 | ;; |
8d138742 CE |
8633 | esac |
8634 | else | |
8635 | enable_static=yes | |
8636 | fi | |
d9898ee8 | 8637 | |
d9898ee8 | 8638 | |
d9898ee8 | 8639 | |
d9898ee8 | 8640 | |
d9898ee8 | 8641 | |
d9898ee8 | 8642 | |
d9898ee8 | 8643 | |
d9898ee8 | 8644 | |
d9898ee8 | 8645 | |
d9898ee8 | 8646 | |
8d138742 | 8647 | # Check whether --with-pic was given. |
b0322a85 CE |
8648 | if test "${with_pic+set}" = set; then : |
8649 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8650 | case $withval in | |
8651 | yes|no) pic_mode=$withval ;; | |
8652 | *) | |
8653 | pic_mode=default | |
8654 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8655 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 8656 | for lt_pkg in $withval; do |
d50284c4 | 8657 | IFS=$lt_save_ifs |
b0322a85 CE |
8658 | if test "X$lt_pkg" = "X$lt_p"; then |
8659 | pic_mode=yes | |
8660 | fi | |
8661 | done | |
d50284c4 | 8662 | IFS=$lt_save_ifs |
b0322a85 CE |
8663 | ;; |
8664 | esac | |
d9898ee8 | 8665 | else |
8d138742 | 8666 | pic_mode=default |
d9898ee8 | 8667 | fi |
8668 | ||
d9898ee8 | 8669 | |
d9898ee8 | 8670 | |
8d138742 CE |
8671 | |
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | # Check whether --enable-fast-install was given. | |
b0322a85 | 8677 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
8678 | enableval=$enable_fast_install; p=${PACKAGE-default} |
8679 | case $enableval in | |
8680 | yes) enable_fast_install=yes ;; | |
8681 | no) enable_fast_install=no ;; | |
8682 | *) | |
8683 | enable_fast_install=no | |
8684 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8685 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8686 | for pkg in $enableval; do |
d50284c4 | 8687 | IFS=$lt_save_ifs |
8d138742 CE |
8688 | if test "X$pkg" = "X$p"; then |
8689 | enable_fast_install=yes | |
8690 | fi | |
8691 | done | |
d50284c4 | 8692 | IFS=$lt_save_ifs |
8d138742 CE |
8693 | ;; |
8694 | esac | |
d9898ee8 | 8695 | else |
8d138742 | 8696 | enable_fast_install=yes |
d9898ee8 | 8697 | fi |
8698 | ||
8699 | ||
d9898ee8 | 8700 | |
d9898ee8 | 8701 | |
d9898ee8 | 8702 | |
8703 | ||
d9898ee8 | 8704 | |
d9898ee8 | 8705 | |
d50284c4 CE |
8706 | shared_archive_member_spec= |
8707 | case $host,$enable_shared in | |
8708 | power*-*-aix[5-9]*,yes) | |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8710 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8711 | ||
8712 | # Check whether --with-aix-soname was given. | |
8713 | if test "${with_aix_soname+set}" = set; then : | |
8714 | withval=$with_aix_soname; case $withval in | |
8715 | aix|svr4|both) | |
8716 | ;; | |
8717 | *) | |
8718 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8719 | ;; | |
8720 | esac | |
8721 | lt_cv_with_aix_soname=$with_aix_soname | |
8722 | else | |
8723 | if ${lt_cv_with_aix_soname+:} false; then : | |
8724 | $as_echo_n "(cached) " >&6 | |
8725 | else | |
8726 | lt_cv_with_aix_soname=aix | |
8727 | fi | |
8728 | ||
8729 | with_aix_soname=$lt_cv_with_aix_soname | |
8730 | fi | |
8731 | ||
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8733 | $as_echo "$with_aix_soname" >&6; } | |
8734 | if test aix != "$with_aix_soname"; then | |
8735 | # For the AIX way of multilib, we name the shared archive member | |
8736 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8737 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8738 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8739 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8740 | if test 64 = "${OBJECT_MODE-32}"; then | |
8741 | shared_archive_member_spec=shr_64 | |
8742 | else | |
8743 | shared_archive_member_spec=shr | |
8744 | fi | |
8745 | fi | |
8746 | ;; | |
8747 | *) | |
8748 | with_aix_soname=aix | |
8749 | ;; | |
8750 | esac | |
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | ||
d9898ee8 | 8758 | |
d9898ee8 | 8759 | |
d9898ee8 | 8760 | |
8d138742 | 8761 | # This can be used to rebuild libtool when needed |
d50284c4 | 8762 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 8763 | |
8d138742 CE |
8764 | # Always use our own libtool. |
8765 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 8766 | |
d9898ee8 | 8767 | |
d9898ee8 | 8768 | |
d9898ee8 | 8769 | |
d9898ee8 | 8770 | |
d9898ee8 | 8771 | |
d9898ee8 | 8772 | |
d9898ee8 | 8773 | |
d9898ee8 | 8774 | |
d9898ee8 | 8775 | |
d9898ee8 | 8776 | |
d9898ee8 | 8777 | |
d9898ee8 | 8778 | |
d9898ee8 | 8779 | |
d9898ee8 | 8780 | |
d9898ee8 | 8781 | |
d9898ee8 | 8782 | |
d9898ee8 | 8783 | |
d9898ee8 | 8784 | |
b0322a85 CE |
8785 | |
8786 | ||
8787 | ||
8788 | ||
8789 | ||
d9898ee8 | 8790 | |
d9898ee8 | 8791 | |
d9898ee8 | 8792 | |
d9898ee8 | 8793 | |
d9898ee8 | 8794 | |
d9898ee8 | 8795 | |
8d138742 | 8796 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 8797 | |
d9898ee8 | 8798 | |
d9898ee8 | 8799 | |
d9898ee8 | 8800 | |
d9898ee8 | 8801 | |
d9898ee8 | 8802 | |
dd184caf | 8803 | |
dd184caf | 8804 | |
d9898ee8 | 8805 | |
d9898ee8 | 8806 | |
d9898ee8 | 8807 | |
d9898ee8 | 8808 | |
8d138742 CE |
8809 | |
8810 | ||
d50284c4 | 8811 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 | 8812 | setopt NO_GLOB_SUBST |
ac40fd9e | 8813 | fi |
8d138742 | 8814 | |
b0322a85 | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 8816 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 8817 | if ${lt_cv_objdir+:} false; then : |
8d138742 | 8818 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8819 | else |
8d138742 CE |
8820 | rm -f .libs 2>/dev/null |
8821 | mkdir .libs 2>/dev/null | |
8822 | if test -d .libs; then | |
8823 | lt_cv_objdir=.libs | |
8824 | else | |
8825 | # MS-DOS does not allow filenames that begin with a dot. | |
8826 | lt_cv_objdir=_libs | |
8827 | fi | |
8828 | rmdir .libs 2>/dev/null | |
8829 | fi | |
b0322a85 | 8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
8831 | $as_echo "$lt_cv_objdir" >&6; } |
8832 | objdir=$lt_cv_objdir | |
d9898ee8 | 8833 | |
dd184caf | 8834 | |
dd184caf | 8835 | |
d9898ee8 | 8836 | |
d9898ee8 | 8837 | |
8d138742 CE |
8838 | cat >>confdefs.h <<_ACEOF |
8839 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8840 | _ACEOF | |
d9898ee8 | 8841 | |
d9898ee8 | 8842 | |
d9898ee8 | 8843 | |
d9898ee8 | 8844 | |
8d138742 CE |
8845 | case $host_os in |
8846 | aix3*) | |
8847 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8848 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8849 | # vanish in a puff of smoke. | |
d50284c4 | 8850 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8851 | COLLECT_NAMES= |
8852 | export COLLECT_NAMES | |
8853 | fi | |
8854 | ;; | |
8855 | esac | |
d9898ee8 | 8856 | |
8d138742 CE |
8857 | # Global variables: |
8858 | ofile=libtool | |
8859 | can_build_shared=yes | |
d9898ee8 | 8860 | |
d50284c4 | 8861 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8862 | # which needs '.lib'). |
8863 | libext=a | |
d9898ee8 | 8864 | |
d50284c4 | 8865 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8866 | |
d50284c4 CE |
8867 | old_CC=$CC |
8868 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8869 | |
8d138742 CE |
8870 | # Set sane defaults for various variables |
8871 | test -z "$CC" && CC=cc | |
8872 | test -z "$LTCC" && LTCC=$CC | |
8873 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8874 | test -z "$LD" && LD=ld | |
8875 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8876 | |
d50284c4 CE |
8877 | func_cc_basename $compiler |
8878 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8879 | |
d9898ee8 | 8880 | |
8d138742 CE |
8881 | # Only perform the check for file, if the check method requires it |
8882 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8883 | case $deplibs_check_method in | |
8884 | file_magic*) | |
8885 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8887 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8888 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8889 | $as_echo_n "(cached) " >&6 |
8890 | else | |
8891 | case $MAGIC_CMD in | |
8892 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8893 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8894 | ;; |
8895 | *) | |
d50284c4 CE |
8896 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8897 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8898 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8899 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8900 | IFS=$lt_save_ifs |
8d138742 | 8901 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8902 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8903 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8904 | if test -n "$file_magic_test_file"; then |
8905 | case $deplibs_check_method in | |
8906 | "file_magic "*) | |
8907 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8908 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8909 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8910 | $EGREP "$file_magic_regex" > /dev/null; then | |
8911 | : | |
8912 | else | |
8913 | cat <<_LT_EOF 1>&2 | |
8914 | ||
8915 | *** Warning: the command libtool uses to detect shared libraries, | |
8916 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8917 | *** The result is that libtool may fail to recognize shared libraries | |
8918 | *** as such. This will affect the creation of libtool libraries that | |
8919 | *** depend on shared libraries, but programs linked with such libtool | |
8920 | *** libraries will work regardless of this problem. Nevertheless, you | |
8921 | *** may want to report the problem to your system manager and/or to | |
8922 | *** bug-libtool@gnu.org | |
8923 | ||
8924 | _LT_EOF | |
8925 | fi ;; | |
8926 | esac | |
d9898ee8 | 8927 | fi |
8d138742 CE |
8928 | break |
8929 | fi | |
8930 | done | |
d50284c4 CE |
8931 | IFS=$lt_save_ifs |
8932 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8933 | ;; |
8934 | esac | |
8935 | fi | |
d9898ee8 | 8936 | |
d50284c4 | 8937 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8938 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8940 | $as_echo "$MAGIC_CMD" >&6; } |
8941 | else | |
b0322a85 | 8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8943 | $as_echo "no" >&6; } |
8944 | fi | |
d9898ee8 | 8945 | |
d9898ee8 | 8946 | |
d9898ee8 | 8947 | |
d9898ee8 | 8948 | |
d9898ee8 | 8949 | |
8d138742 CE |
8950 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8951 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8953 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8954 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8955 | $as_echo_n "(cached) " >&6 |
8956 | else | |
8957 | case $MAGIC_CMD in | |
8958 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8959 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
d9898ee8 | 8960 | ;; |
8d138742 | 8961 | *) |
d50284c4 CE |
8962 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8963 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8964 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8965 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8966 | IFS=$lt_save_ifs |
8d138742 | 8967 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8968 | if test -f "$ac_dir/file"; then |
8969 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8970 | if test -n "$file_magic_test_file"; then |
8971 | case $deplibs_check_method in | |
8972 | "file_magic "*) | |
8973 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8974 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8975 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8976 | $EGREP "$file_magic_regex" > /dev/null; then | |
8977 | : | |
8978 | else | |
8979 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8980 | |
8d138742 CE |
8981 | *** Warning: the command libtool uses to detect shared libraries, |
8982 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8983 | *** The result is that libtool may fail to recognize shared libraries | |
8984 | *** as such. This will affect the creation of libtool libraries that | |
8985 | *** depend on shared libraries, but programs linked with such libtool | |
8986 | *** libraries will work regardless of this problem. Nevertheless, you | |
8987 | *** may want to report the problem to your system manager and/or to | |
8988 | *** bug-libtool@gnu.org | |
ac40fd9e | 8989 | |
8d138742 CE |
8990 | _LT_EOF |
8991 | fi ;; | |
8992 | esac | |
8993 | fi | |
8994 | break | |
ac40fd9e | 8995 | fi |
8996 | done | |
d50284c4 CE |
8997 | IFS=$lt_save_ifs |
8998 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8999 | ;; |
9000 | esac | |
9001 | fi | |
9002 | ||
d50284c4 | 9003 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 9004 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 9006 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 9007 | else |
b0322a85 | 9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 9009 | $as_echo "no" >&6; } |
d9898ee8 | 9010 | fi |
d9898ee8 | 9011 | |
d9898ee8 | 9012 | |
8d138742 CE |
9013 | else |
9014 | MAGIC_CMD=: | |
9015 | fi | |
9016 | fi | |
d9898ee8 | 9017 | |
8d138742 | 9018 | fi |
d9898ee8 | 9019 | ;; |
8d138742 | 9020 | esac |
d9898ee8 | 9021 | |
8d138742 | 9022 | # Use C for the default configuration in the libtool script |
d9898ee8 | 9023 | |
d50284c4 | 9024 | lt_save_CC=$CC |
8d138742 CE |
9025 | ac_ext=c |
9026 | ac_cpp='$CPP $CPPFLAGS' | |
9027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 9030 | |
d9898ee8 | 9031 | |
8d138742 CE |
9032 | # Source file extension for C test sources. |
9033 | ac_ext=c | |
d9898ee8 | 9034 | |
8d138742 CE |
9035 | # Object file extension for compiled C test sources. |
9036 | objext=o | |
9037 | objext=$objext | |
d9898ee8 | 9038 | |
8d138742 CE |
9039 | # Code to be used in simple compile tests |
9040 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 9041 | |
8d138742 CE |
9042 | # Code to be used in simple link tests |
9043 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 9044 | |
d9898ee8 | 9045 | |
ac40fd9e | 9046 | |
d9898ee8 | 9047 | |
d9898ee8 | 9048 | |
d9898ee8 | 9049 | |
d9898ee8 | 9050 | |
8d138742 CE |
9051 | # If no C compiler was specified, use CC. |
9052 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 9053 | |
8d138742 CE |
9054 | # If no C compiler flags were specified, use CFLAGS. |
9055 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 9056 | |
8d138742 CE |
9057 | # Allow CC to be a program name with arguments. |
9058 | compiler=$CC | |
d9898ee8 | 9059 | |
8d138742 CE |
9060 | # Save the default compiler, since it gets overwritten when the other |
9061 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9062 | compiler_DEFAULT=$CC | |
d9898ee8 | 9063 | |
8d138742 CE |
9064 | # save warnings/boilerplate of simple test code |
9065 | ac_outfile=conftest.$ac_objext | |
9066 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9067 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9068 | _lt_compiler_boilerplate=`cat conftest.err` | |
9069 | $RM conftest* | |
d9898ee8 | 9070 | |
8d138742 CE |
9071 | ac_outfile=conftest.$ac_objext |
9072 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9073 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9074 | _lt_linker_boilerplate=`cat conftest.err` | |
9075 | $RM -r conftest* | |
d9898ee8 | 9076 | |
d9898ee8 | 9077 | |
8d138742 | 9078 | if test -n "$compiler"; then |
d9898ee8 | 9079 | |
8d138742 | 9080 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 9081 | |
d50284c4 | 9082 | if test yes = "$GCC"; then |
b0322a85 CE |
9083 | case $cc_basename in |
9084 | nvcc*) | |
9085 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9086 | *) | |
9087 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9088 | esac | |
d9898ee8 | 9089 | |
b0322a85 | 9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 9091 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 9092 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
9093 | $as_echo_n "(cached) " >&6 |
9094 | else | |
9095 | lt_cv_prog_compiler_rtti_exceptions=no | |
9096 | ac_outfile=conftest.$ac_objext | |
9097 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 9098 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
9099 | # Insert the option either (1) after the last *FLAGS variable, or |
9100 | # (2) before a word containing "conftest.", or (3) at the end. | |
9101 | # Note that $ac_compile itself does not contain backslashes and begins | |
9102 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9103 | # The option is referenced via a variable to avoid confusing sed. | |
9104 | lt_compile=`echo "$ac_compile" | $SED \ | |
9105 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9106 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9107 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9108 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9109 | (eval "$lt_compile" 2>conftest.err) |
9110 | ac_status=$? | |
9111 | cat conftest.err >&5 | |
b0322a85 | 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9113 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9114 | # The compiler can only warn and ignore the option if not recognized | |
9115 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 9116 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
9117 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9118 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9119 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9120 | fi | |
9121 | fi | |
9122 | $RM conftest* | |
d9898ee8 | 9123 | |
8d138742 | 9124 | fi |
b0322a85 | 9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 9126 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 9127 | |
d50284c4 | 9128 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
9129 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
9130 | else | |
9131 | : | |
9132 | fi | |
ac40fd9e | 9133 | |
8d138742 | 9134 | fi |
d9898ee8 | 9135 | |
d9898ee8 | 9136 | |
d9898ee8 | 9137 | |
d9898ee8 | 9138 | |
d9898ee8 | 9139 | |
d9898ee8 | 9140 | |
8d138742 CE |
9141 | lt_prog_compiler_wl= |
9142 | lt_prog_compiler_pic= | |
9143 | lt_prog_compiler_static= | |
d9898ee8 | 9144 | |
d9898ee8 | 9145 | |
d50284c4 | 9146 | if test yes = "$GCC"; then |
8d138742 CE |
9147 | lt_prog_compiler_wl='-Wl,' |
9148 | lt_prog_compiler_static='-static' | |
d9898ee8 | 9149 | |
8d138742 CE |
9150 | case $host_os in |
9151 | aix*) | |
9152 | # All AIX code is PIC. | |
d50284c4 | 9153 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9154 | # AIX 5 now supports IA64 processor |
9155 | lt_prog_compiler_static='-Bstatic' | |
9156 | fi | |
d50284c4 | 9157 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 9158 | ;; |
d9898ee8 | 9159 | |
8d138742 CE |
9160 | amigaos*) |
9161 | case $host_cpu in | |
9162 | powerpc) | |
9163 | # see comment about AmigaOS4 .so support | |
9164 | lt_prog_compiler_pic='-fPIC' | |
9165 | ;; | |
9166 | m68k) | |
9167 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
9168 | # adding the '-m68020' flag to GCC prevents building anything better, |
9169 | # like '-m68040'. | |
8d138742 CE |
9170 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
9171 | ;; | |
9172 | esac | |
9173 | ;; | |
d9898ee8 | 9174 | |
8d138742 CE |
9175 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9176 | # PIC is the default for these OSes. | |
9177 | ;; | |
d9898ee8 | 9178 | |
8d138742 CE |
9179 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9180 | # This hack is so that the source file can tell whether it is being | |
9181 | # built for inclusion in a dll (and should export symbols for example). | |
9182 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9183 | # (--disable-auto-import) libraries | |
9184 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
9185 | case $host_os in |
9186 | os2*) | |
9187 | lt_prog_compiler_static='$wl-static' | |
9188 | ;; | |
9189 | esac | |
8d138742 | 9190 | ;; |
d9898ee8 | 9191 | |
8d138742 CE |
9192 | darwin* | rhapsody*) |
9193 | # PIC is the default on this platform | |
9194 | # Common symbols not allowed in MH_DYLIB files | |
9195 | lt_prog_compiler_pic='-fno-common' | |
9196 | ;; | |
d9898ee8 | 9197 | |
b0322a85 CE |
9198 | haiku*) |
9199 | # PIC is the default for Haiku. | |
9200 | # The "-static" flag exists, but is broken. | |
9201 | lt_prog_compiler_static= | |
9202 | ;; | |
9203 | ||
8d138742 CE |
9204 | hpux*) |
9205 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9206 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9207 | # sets the default TLS model and affects inlining. | |
9208 | case $host_cpu in | |
9209 | hppa*64*) | |
9210 | # +Z the default | |
9211 | ;; | |
9212 | *) | |
9213 | lt_prog_compiler_pic='-fPIC' | |
9214 | ;; | |
9215 | esac | |
9216 | ;; | |
d9898ee8 | 9217 | |
8d138742 CE |
9218 | interix[3-9]*) |
9219 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9220 | # Instead, we relocate shared libraries at runtime. | |
9221 | ;; | |
d9898ee8 | 9222 | |
8d138742 CE |
9223 | msdosdjgpp*) |
9224 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9225 | # on systems that don't support them. | |
9226 | lt_prog_compiler_can_build_shared=no | |
9227 | enable_shared=no | |
9228 | ;; | |
d9898ee8 | 9229 | |
8d138742 CE |
9230 | *nto* | *qnx*) |
9231 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9232 | # it will coredump. | |
9233 | lt_prog_compiler_pic='-fPIC -shared' | |
9234 | ;; | |
d9898ee8 | 9235 | |
8d138742 CE |
9236 | sysv4*MP*) |
9237 | if test -d /usr/nec; then | |
9238 | lt_prog_compiler_pic=-Kconform_pic | |
9239 | fi | |
9240 | ;; | |
dd184caf | 9241 | |
8d138742 CE |
9242 | *) |
9243 | lt_prog_compiler_pic='-fPIC' | |
9244 | ;; | |
9245 | esac | |
b0322a85 CE |
9246 | |
9247 | case $cc_basename in | |
9248 | nvcc*) # Cuda Compiler Driver 2.2 | |
9249 | lt_prog_compiler_wl='-Xlinker ' | |
9250 | if test -n "$lt_prog_compiler_pic"; then | |
9251 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9252 | fi | |
9253 | ;; | |
9254 | esac | |
8d138742 CE |
9255 | else |
9256 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9257 | case $host_os in | |
9258 | aix*) | |
9259 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 9260 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9261 | # AIX 5 now supports IA64 processor |
9262 | lt_prog_compiler_static='-Bstatic' | |
9263 | else | |
9264 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9265 | fi | |
9266 | ;; | |
d9898ee8 | 9267 | |
d50284c4 CE |
9268 | darwin* | rhapsody*) |
9269 | # PIC is the default on this platform | |
9270 | # Common symbols not allowed in MH_DYLIB files | |
9271 | lt_prog_compiler_pic='-fno-common' | |
9272 | case $cc_basename in | |
9273 | nagfor*) | |
9274 | # NAG Fortran compiler | |
9275 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9276 | lt_prog_compiler_pic='-PIC' | |
9277 | lt_prog_compiler_static='-Bstatic' | |
9278 | ;; | |
9279 | esac | |
9280 | ;; | |
9281 | ||
8d138742 CE |
9282 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9283 | # This hack is so that the source file can tell whether it is being | |
9284 | # built for inclusion in a dll (and should export symbols for example). | |
9285 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
9286 | case $host_os in |
9287 | os2*) | |
9288 | lt_prog_compiler_static='$wl-static' | |
9289 | ;; | |
9290 | esac | |
8d138742 | 9291 | ;; |
d9898ee8 | 9292 | |
8d138742 CE |
9293 | hpux9* | hpux10* | hpux11*) |
9294 | lt_prog_compiler_wl='-Wl,' | |
9295 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9296 | # not for PA HP-UX. | |
9297 | case $host_cpu in | |
9298 | hppa*64*|ia64*) | |
9299 | # +Z the default | |
9300 | ;; | |
9301 | *) | |
9302 | lt_prog_compiler_pic='+Z' | |
9303 | ;; | |
9304 | esac | |
9305 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 9306 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 9307 | ;; |
d9898ee8 | 9308 | |
8d138742 CE |
9309 | irix5* | irix6* | nonstopux*) |
9310 | lt_prog_compiler_wl='-Wl,' | |
9311 | # PIC (with -KPIC) is the default. | |
9312 | lt_prog_compiler_static='-non_shared' | |
9313 | ;; | |
d9898ee8 | 9314 | |
d50284c4 | 9315 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 9316 | case $cc_basename in |
d50284c4 | 9317 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
9318 | ecc*) |
9319 | lt_prog_compiler_wl='-Wl,' | |
9320 | lt_prog_compiler_pic='-KPIC' | |
9321 | lt_prog_compiler_static='-static' | |
9322 | ;; | |
9323 | # icc used to be incompatible with GCC. | |
9324 | # ICC 10 doesn't accept -KPIC any more. | |
9325 | icc* | ifort*) | |
9326 | lt_prog_compiler_wl='-Wl,' | |
9327 | lt_prog_compiler_pic='-fPIC' | |
9328 | lt_prog_compiler_static='-static' | |
9329 | ;; | |
9330 | # Lahey Fortran 8.1. | |
9331 | lf95*) | |
9332 | lt_prog_compiler_wl='-Wl,' | |
9333 | lt_prog_compiler_pic='--shared' | |
9334 | lt_prog_compiler_static='--static' | |
9335 | ;; | |
b0322a85 CE |
9336 | nagfor*) |
9337 | # NAG Fortran compiler | |
9338 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9339 | lt_prog_compiler_pic='-PIC' | |
9340 | lt_prog_compiler_static='-Bstatic' | |
9341 | ;; | |
d50284c4 CE |
9342 | tcc*) |
9343 | # Fabrice Bellard et al's Tiny C Compiler | |
9344 | lt_prog_compiler_wl='-Wl,' | |
9345 | lt_prog_compiler_pic='-fPIC' | |
9346 | lt_prog_compiler_static='-static' | |
9347 | ;; | |
b0322a85 | 9348 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
9349 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9350 | # which looks to be a dead project) | |
9351 | lt_prog_compiler_wl='-Wl,' | |
9352 | lt_prog_compiler_pic='-fpic' | |
9353 | lt_prog_compiler_static='-Bstatic' | |
9354 | ;; | |
9355 | ccc*) | |
9356 | lt_prog_compiler_wl='-Wl,' | |
9357 | # All Alpha code is PIC. | |
9358 | lt_prog_compiler_static='-non_shared' | |
9359 | ;; | |
b0322a85 CE |
9360 | xl* | bgxl* | bgf* | mpixl*) |
9361 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
9362 | lt_prog_compiler_wl='-Wl,' |
9363 | lt_prog_compiler_pic='-qpic' | |
9364 | lt_prog_compiler_static='-qstaticlink' | |
9365 | ;; | |
9366 | *) | |
9367 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
9368 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
9369 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9370 | lt_prog_compiler_pic='-KPIC' | |
9371 | lt_prog_compiler_static='-Bstatic' | |
9372 | lt_prog_compiler_wl='' | |
9373 | ;; | |
9374 | *Sun\ F* | *Sun*Fortran*) | |
9375 | lt_prog_compiler_pic='-KPIC' | |
9376 | lt_prog_compiler_static='-Bstatic' | |
9377 | lt_prog_compiler_wl='-Qoption ld ' | |
9378 | ;; | |
8d138742 CE |
9379 | *Sun\ C*) |
9380 | # Sun C 5.9 | |
9381 | lt_prog_compiler_pic='-KPIC' | |
9382 | lt_prog_compiler_static='-Bstatic' | |
9383 | lt_prog_compiler_wl='-Wl,' | |
9384 | ;; | |
b0322a85 CE |
9385 | *Intel*\ [CF]*Compiler*) |
9386 | lt_prog_compiler_wl='-Wl,' | |
9387 | lt_prog_compiler_pic='-fPIC' | |
9388 | lt_prog_compiler_static='-static' | |
9389 | ;; | |
9390 | *Portland\ Group*) | |
9391 | lt_prog_compiler_wl='-Wl,' | |
9392 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 9393 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
9394 | ;; |
9395 | esac | |
9396 | ;; | |
9397 | esac | |
9398 | ;; | |
d9898ee8 | 9399 | |
8d138742 CE |
9400 | newsos6) |
9401 | lt_prog_compiler_pic='-KPIC' | |
9402 | lt_prog_compiler_static='-Bstatic' | |
9403 | ;; | |
d9898ee8 | 9404 | |
8d138742 CE |
9405 | *nto* | *qnx*) |
9406 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9407 | # it will coredump. | |
9408 | lt_prog_compiler_pic='-fPIC -shared' | |
9409 | ;; | |
d9898ee8 | 9410 | |
8d138742 CE |
9411 | osf3* | osf4* | osf5*) |
9412 | lt_prog_compiler_wl='-Wl,' | |
9413 | # All OSF/1 code is PIC. | |
9414 | lt_prog_compiler_static='-non_shared' | |
9415 | ;; | |
d9898ee8 | 9416 | |
8d138742 CE |
9417 | rdos*) |
9418 | lt_prog_compiler_static='-non_shared' | |
9419 | ;; | |
d9898ee8 | 9420 | |
8d138742 CE |
9421 | solaris*) |
9422 | lt_prog_compiler_pic='-KPIC' | |
9423 | lt_prog_compiler_static='-Bstatic' | |
9424 | case $cc_basename in | |
b0322a85 | 9425 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
9426 | lt_prog_compiler_wl='-Qoption ld ';; |
9427 | *) | |
9428 | lt_prog_compiler_wl='-Wl,';; | |
9429 | esac | |
9430 | ;; | |
9431 | ||
9432 | sunos4*) | |
9433 | lt_prog_compiler_wl='-Qoption ld ' | |
9434 | lt_prog_compiler_pic='-PIC' | |
9435 | lt_prog_compiler_static='-Bstatic' | |
9436 | ;; | |
9437 | ||
9438 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9439 | lt_prog_compiler_wl='-Wl,' | |
9440 | lt_prog_compiler_pic='-KPIC' | |
9441 | lt_prog_compiler_static='-Bstatic' | |
9442 | ;; | |
9443 | ||
9444 | sysv4*MP*) | |
d50284c4 | 9445 | if test -d /usr/nec; then |
8d138742 CE |
9446 | lt_prog_compiler_pic='-Kconform_pic' |
9447 | lt_prog_compiler_static='-Bstatic' | |
9448 | fi | |
9449 | ;; | |
9450 | ||
9451 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9452 | lt_prog_compiler_wl='-Wl,' | |
9453 | lt_prog_compiler_pic='-KPIC' | |
9454 | lt_prog_compiler_static='-Bstatic' | |
9455 | ;; | |
9456 | ||
9457 | unicos*) | |
9458 | lt_prog_compiler_wl='-Wl,' | |
9459 | lt_prog_compiler_can_build_shared=no | |
9460 | ;; | |
9461 | ||
9462 | uts4*) | |
9463 | lt_prog_compiler_pic='-pic' | |
9464 | lt_prog_compiler_static='-Bstatic' | |
9465 | ;; | |
9466 | ||
9467 | *) | |
9468 | lt_prog_compiler_can_build_shared=no | |
9469 | ;; | |
9470 | esac | |
9471 | fi | |
9472 | ||
9473 | case $host_os in | |
d50284c4 | 9474 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
9475 | *djgpp*) |
9476 | lt_prog_compiler_pic= | |
9477 | ;; | |
9478 | *) | |
9479 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9480 | ;; | |
dd184caf | 9481 | esac |
8d138742 | 9482 | |
b0322a85 CE |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9484 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9485 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9486 | $as_echo_n "(cached) " >&6 | |
9487 | else | |
9488 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9489 | fi | |
9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9491 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9492 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8d138742 CE |
9493 | |
9494 | # | |
9495 | # Check to make sure the PIC flag actually works. | |
9496 | # | |
9497 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 9499 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 9500 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 | 9501 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9502 | else |
8d138742 CE |
9503 | lt_cv_prog_compiler_pic_works=no |
9504 | ac_outfile=conftest.$ac_objext | |
9505 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 9506 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
9507 | # Insert the option either (1) after the last *FLAGS variable, or |
9508 | # (2) before a word containing "conftest.", or (3) at the end. | |
9509 | # Note that $ac_compile itself does not contain backslashes and begins | |
9510 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9511 | # The option is referenced via a variable to avoid confusing sed. | |
9512 | lt_compile=`echo "$ac_compile" | $SED \ | |
9513 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9514 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9515 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9516 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9517 | (eval "$lt_compile" 2>conftest.err) |
9518 | ac_status=$? | |
9519 | cat conftest.err >&5 | |
b0322a85 | 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9521 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9522 | # The compiler can only warn and ignore the option if not recognized | |
9523 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 9524 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
9525 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9526 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9527 | lt_cv_prog_compiler_pic_works=yes | |
9528 | fi | |
9529 | fi | |
9530 | $RM conftest* | |
d9898ee8 | 9531 | |
d9898ee8 | 9532 | fi |
b0322a85 | 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 9534 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
dd184caf | 9535 | |
d50284c4 | 9536 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
9537 | case $lt_prog_compiler_pic in |
9538 | "" | " "*) ;; | |
9539 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9540 | esac | |
d9898ee8 | 9541 | else |
8d138742 CE |
9542 | lt_prog_compiler_pic= |
9543 | lt_prog_compiler_can_build_shared=no | |
9544 | fi | |
d9898ee8 | 9545 | |
8d138742 CE |
9546 | fi |
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
b0322a85 CE |
9553 | |
9554 | ||
9555 | ||
9556 | ||
9557 | ||
8d138742 CE |
9558 | # |
9559 | # Check to make sure the static flag actually works. | |
9560 | # | |
9561 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 9563 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 9564 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 | 9565 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9566 | else |
8d138742 | 9567 | lt_cv_prog_compiler_static_works=no |
d50284c4 | 9568 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
9569 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9570 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9571 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9572 | # The linker can only warn and ignore the option if not recognized | |
9573 | # So say no if there are warnings | |
9574 | if test -s conftest.err; then | |
9575 | # Append any errors to the config.log. | |
9576 | cat conftest.err 1>&5 | |
b0322a85 | 9577 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
9578 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9579 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9580 | lt_cv_prog_compiler_static_works=yes | |
9581 | fi | |
9582 | else | |
9583 | lt_cv_prog_compiler_static_works=yes | |
9584 | fi | |
9585 | fi | |
9586 | $RM -r conftest* | |
d50284c4 | 9587 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 9588 | |
d9898ee8 | 9589 | fi |
b0322a85 | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 9591 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
dd184caf | 9592 | |
d50284c4 | 9593 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 | 9594 | : |
d9898ee8 | 9595 | else |
8d138742 CE |
9596 | lt_prog_compiler_static= |
9597 | fi | |
d9898ee8 | 9598 | |
d9898ee8 | 9599 | |
d9898ee8 | 9600 | |
d9898ee8 | 9601 | |
d9898ee8 | 9602 | |
d9898ee8 | 9603 | |
dd184caf | 9604 | |
b0322a85 | 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9606 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9607 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 9608 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9609 | else |
8d138742 CE |
9610 | lt_cv_prog_compiler_c_o=no |
9611 | $RM -r conftest 2>/dev/null | |
9612 | mkdir conftest | |
9613 | cd conftest | |
9614 | mkdir out | |
9615 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9616 | |
8d138742 CE |
9617 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9618 | # Insert the option either (1) after the last *FLAGS variable, or | |
9619 | # (2) before a word containing "conftest.", or (3) at the end. | |
9620 | # Note that $ac_compile itself does not contain backslashes and begins | |
9621 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9622 | lt_compile=`echo "$ac_compile" | $SED \ | |
9623 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9624 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9625 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9626 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9627 | (eval "$lt_compile" 2>out/conftest.err) |
9628 | ac_status=$? | |
9629 | cat out/conftest.err >&5 | |
b0322a85 | 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9631 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9632 | then | |
9633 | # The compiler can only warn and ignore the option if not recognized | |
9634 | # So say no if there are warnings | |
b0322a85 | 9635 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9636 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9637 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9638 | lt_cv_prog_compiler_c_o=yes | |
9639 | fi | |
9640 | fi | |
9641 | chmod u+w . 2>&5 | |
9642 | $RM conftest* | |
9643 | # SGI C++ compiler will create directory out/ii_files/ for | |
9644 | # template instantiation | |
9645 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9646 | $RM out/* && rmdir out | |
9647 | cd .. | |
9648 | $RM -r conftest | |
9649 | $RM conftest* | |
d9898ee8 | 9650 | |
d9898ee8 | 9651 | fi |
b0322a85 | 9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9653 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
dd184caf | 9654 | |
d9898ee8 | 9655 | |
d9898ee8 | 9656 | |
dd184caf | 9657 | |
d9898ee8 | 9658 | |
8d138742 | 9659 | |
b0322a85 | 9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9661 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9662 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 9663 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9664 | else |
8d138742 CE |
9665 | lt_cv_prog_compiler_c_o=no |
9666 | $RM -r conftest 2>/dev/null | |
9667 | mkdir conftest | |
9668 | cd conftest | |
9669 | mkdir out | |
9670 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9671 | |
8d138742 CE |
9672 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9673 | # Insert the option either (1) after the last *FLAGS variable, or | |
9674 | # (2) before a word containing "conftest.", or (3) at the end. | |
9675 | # Note that $ac_compile itself does not contain backslashes and begins | |
9676 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9677 | lt_compile=`echo "$ac_compile" | $SED \ | |
9678 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9679 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9680 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9681 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9682 | (eval "$lt_compile" 2>out/conftest.err) |
9683 | ac_status=$? | |
9684 | cat out/conftest.err >&5 | |
b0322a85 | 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9686 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9687 | then | |
9688 | # The compiler can only warn and ignore the option if not recognized | |
9689 | # So say no if there are warnings | |
b0322a85 | 9690 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9691 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9692 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9693 | lt_cv_prog_compiler_c_o=yes | |
9694 | fi | |
9695 | fi | |
9696 | chmod u+w . 2>&5 | |
9697 | $RM conftest* | |
9698 | # SGI C++ compiler will create directory out/ii_files/ for | |
9699 | # template instantiation | |
9700 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9701 | $RM out/* && rmdir out | |
9702 | cd .. | |
9703 | $RM -r conftest | |
9704 | $RM conftest* | |
dd184caf | 9705 | |
d9898ee8 | 9706 | fi |
b0322a85 | 9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9708 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 9709 | |
9710 | ||
d9898ee8 | 9711 | |
9712 | ||
d50284c4 CE |
9713 | hard_links=nottested |
9714 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 9715 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
9717 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
9718 | hard_links=yes | |
9719 | $RM conftest* | |
9720 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9721 | touch conftest.a | |
9722 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9723 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 9724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 9725 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
9726 | if test no = "$hard_links"; then |
9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9728 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
9729 | need_locks=warn |
9730 | fi | |
9731 | else | |
9732 | need_locks=no | |
9733 | fi | |
d9898ee8 | 9734 | |
9735 | ||
d9898ee8 | 9736 | |
9737 | ||
d9898ee8 | 9738 | |
9739 | ||
b0322a85 | 9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 CE |
9741 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
9742 | ||
9743 | runpath_var= | |
9744 | allow_undefined_flag= | |
9745 | always_export_symbols=no | |
9746 | archive_cmds= | |
9747 | archive_expsym_cmds= | |
9748 | compiler_needs_object=no | |
9749 | enable_shared_with_static_runtimes=no | |
9750 | export_dynamic_flag_spec= | |
9751 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9752 | hardcode_automatic=no | |
9753 | hardcode_direct=no | |
9754 | hardcode_direct_absolute=no | |
9755 | hardcode_libdir_flag_spec= | |
8d138742 CE |
9756 | hardcode_libdir_separator= |
9757 | hardcode_minus_L=no | |
9758 | hardcode_shlibpath_var=unsupported | |
9759 | inherit_rpath=no | |
9760 | link_all_deplibs=unknown | |
9761 | module_cmds= | |
9762 | module_expsym_cmds= | |
9763 | old_archive_from_new_cmds= | |
9764 | old_archive_from_expsyms_cmds= | |
9765 | thread_safe_flag_spec= | |
9766 | whole_archive_flag_spec= | |
9767 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9768 | # included in the symbol list | |
9769 | include_expsyms= | |
9770 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
9771 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
9772 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9773 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
9774 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9775 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9776 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9777 | # the symbol is explicitly referenced. Since portable code cannot | |
9778 | # rely on this symbol name, it's probably fine to never include it in | |
9779 | # preloaded symbol tables. | |
9780 | # Exclude shared library initialization/finalization symbols. | |
9781 | extract_expsyms_cmds= | |
d9898ee8 | 9782 | |
8d138742 CE |
9783 | case $host_os in |
9784 | cygwin* | mingw* | pw32* | cegcc*) | |
9785 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9786 | # When not using gcc, we currently assume that we are using | |
9787 | # Microsoft Visual C++. | |
d50284c4 | 9788 | if test yes != "$GCC"; then |
8d138742 CE |
9789 | with_gnu_ld=no |
9790 | fi | |
9791 | ;; | |
9792 | interix*) | |
9793 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9794 | with_gnu_ld=yes | |
9795 | ;; | |
d50284c4 | 9796 | openbsd* | bitrig*) |
8d138742 | 9797 | with_gnu_ld=no |
d9898ee8 | 9798 | ;; |
9799 | esac | |
9800 | ||
8d138742 | 9801 | ld_shlibs=yes |
b0322a85 CE |
9802 | |
9803 | # On some targets, GNU ld is compatible enough with the native linker | |
9804 | # that we're better off using the native interface for both. | |
9805 | lt_use_gnu_ld_interface=no | |
d50284c4 | 9806 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
9807 | case $host_os in |
9808 | aix*) | |
9809 | # The AIX port of GNU ld has always aspired to compatibility | |
9810 | # with the native linker. However, as the warning in the GNU ld | |
9811 | # block says, versions before 2.19.5* couldn't really create working | |
9812 | # shared libraries, regardless of the interface used. | |
9813 | case `$LD -v 2>&1` in | |
9814 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9815 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9816 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9817 | *) | |
9818 | lt_use_gnu_ld_interface=yes | |
9819 | ;; | |
9820 | esac | |
9821 | ;; | |
9822 | *) | |
9823 | lt_use_gnu_ld_interface=yes | |
9824 | ;; | |
9825 | esac | |
9826 | fi | |
9827 | ||
d50284c4 | 9828 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 9829 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 9830 | wlarc='$wl' |
d9898ee8 | 9831 | |
8d138742 CE |
9832 | # Set some defaults for GNU ld with shared library support. These |
9833 | # are reset later if shared libraries are not supported. Putting them | |
9834 | # here allows them to be overridden if necessary. | |
9835 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9836 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9837 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9838 | # ancient GNU ld didn't support --whole-archive et. al. |
9839 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9840 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9841 | else |
9842 | whole_archive_flag_spec= | |
9843 | fi | |
9844 | supports_anon_versioning=no | |
d50284c4 | 9845 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9846 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9847 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9848 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9849 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9850 | *\ 2.11.*) ;; # other 2.11 versions | |
9851 | *) supports_anon_versioning=yes ;; | |
9852 | esac | |
d9898ee8 | 9853 | |
8d138742 CE |
9854 | # See if GNU ld supports shared libraries. |
9855 | case $host_os in | |
9856 | aix[3-9]*) | |
9857 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9858 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9859 | ld_shlibs=no |
9860 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9861 | |
b0322a85 | 9862 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9863 | *** to be unable to reliably create shared libraries on AIX. |
9864 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9865 | *** really care for shared libraries, you may want to install binutils |
9866 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9867 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9868 | |
8d138742 CE |
9869 | _LT_EOF |
9870 | fi | |
9871 | ;; | |
d9898ee8 | 9872 | |
8d138742 CE |
9873 | amigaos*) |
9874 | case $host_cpu in | |
9875 | powerpc) | |
9876 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9877 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9878 | archive_expsym_cmds='' |
9879 | ;; | |
9880 | m68k) | |
9881 | 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)' | |
9882 | hardcode_libdir_flag_spec='-L$libdir' | |
9883 | hardcode_minus_L=yes | |
9884 | ;; | |
9885 | esac | |
9886 | ;; | |
d9898ee8 | 9887 | |
8d138742 CE |
9888 | beos*) |
9889 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9890 | allow_undefined_flag=unsupported | |
9891 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9892 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9893 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9894 | else |
9895 | ld_shlibs=no | |
9896 | fi | |
9897 | ;; | |
d9898ee8 | 9898 | |
8d138742 CE |
9899 | cygwin* | mingw* | pw32* | cegcc*) |
9900 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9901 | # as there is no search path for DLLs. | |
9902 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9903 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9904 | allow_undefined_flag=unsupported |
9905 | always_export_symbols=no | |
9906 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9907 | 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' |
9908 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9909 | |
8d138742 | 9910 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9911 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9912 | # If the export-symbols file already is a .def file, use it as | |
9913 | # is; otherwise, prepend EXPORTS... | |
9914 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9915 | cp $export_symbols $output_objdir/$soname.def; | |
9916 | else | |
9917 | echo EXPORTS > $output_objdir/$soname.def; | |
9918 | cat $export_symbols >> $output_objdir/$soname.def; | |
9919 | fi~ | |
9920 | $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 |
9921 | else |
9922 | ld_shlibs=no | |
9923 | fi | |
9924 | ;; | |
d9898ee8 | 9925 | |
b0322a85 | 9926 | haiku*) |
d50284c4 | 9927 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9928 | link_all_deplibs=yes |
9929 | ;; | |
9930 | ||
d50284c4 CE |
9931 | os2*) |
9932 | hardcode_libdir_flag_spec='-L$libdir' | |
9933 | hardcode_minus_L=yes | |
9934 | allow_undefined_flag=unsupported | |
9935 | shrext_cmds=.dll | |
9936 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9937 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9938 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9939 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9940 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9941 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9942 | emximp -o $lib $output_objdir/$libname.def' | |
9943 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9944 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9945 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9946 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9947 | prefix_cmds="$SED"~ | |
9948 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9949 | prefix_cmds="$prefix_cmds -e 1d"; | |
9950 | fi~ | |
9951 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9952 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9953 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9954 | emximp -o $lib $output_objdir/$libname.def' | |
9955 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9956 | enable_shared_with_static_runtimes=yes | |
9957 | ;; | |
9958 | ||
8d138742 CE |
9959 | interix[3-9]*) |
9960 | hardcode_direct=no | |
9961 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9962 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9963 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9964 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9965 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9966 | # default) and relocated if they conflict, which is a slow very memory | |
9967 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9968 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9969 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9970 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9971 | 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 | 9972 | ;; |
d9898ee8 | 9973 | |
b0322a85 | 9974 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9975 | tmp_diet=no |
d50284c4 | 9976 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9977 | case $cc_basename in |
9978 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9979 | esac | |
9980 | fi | |
9981 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9982 | && test no = "$tmp_diet" |
8d138742 | 9983 | then |
b0322a85 | 9984 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9985 | tmp_sharedflag='-shared' |
9986 | case $cc_basename,$host_cpu in | |
9987 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9988 | 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 |
9989 | tmp_addflag=' $pic_flag' |
9990 | ;; | |
b0322a85 CE |
9991 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9992 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9993 | 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 |
9994 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9995 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9996 | tmp_addflag=' -i_dynamic' ;; | |
9997 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9998 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9999 | ifc* | ifort*) # Intel Fortran compiler | |
10000 | tmp_addflag=' -nofor_main' ;; | |
10001 | lf95*) # Lahey Fortran 8.1 | |
10002 | whole_archive_flag_spec= | |
10003 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
10004 | nagfor*) # NAGFOR 5.3 |
10005 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 10006 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
10007 | tmp_sharedflag='-qmkshrobj' |
10008 | tmp_addflag= ;; | |
b0322a85 | 10009 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 10010 | 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 |
10011 | compiler_needs_object=yes |
10012 | ;; | |
8d138742 CE |
10013 | esac |
10014 | case `$CC -V 2>&1 | sed 5q` in | |
10015 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 10016 | 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 |
10017 | compiler_needs_object=yes |
10018 | tmp_sharedflag='-G' ;; | |
10019 | *Sun\ F*) # Sun Fortran 8.3 | |
10020 | tmp_sharedflag='-G' ;; | |
10021 | esac | |
d50284c4 | 10022 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 10023 | |
d50284c4 | 10024 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 10025 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
10026 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10027 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10028 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 10029 | fi |
d9898ee8 | 10030 | |
8d138742 | 10031 | case $cc_basename in |
d50284c4 CE |
10032 | tcc*) |
10033 | export_dynamic_flag_spec='-rdynamic' | |
10034 | ;; | |
b0322a85 | 10035 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
10036 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10037 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 10038 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 10039 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 10040 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 10041 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
10042 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10043 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10044 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
10045 | fi |
10046 | ;; | |
10047 | esac | |
10048 | else | |
10049 | ld_shlibs=no | |
10050 | fi | |
10051 | ;; | |
d9898ee8 | 10052 | |
8d138742 CE |
10053 | netbsd*) |
10054 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10055 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10056 | wlarc= | |
10057 | else | |
d50284c4 CE |
10058 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10059 | 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 |
10060 | fi |
10061 | ;; | |
d9898ee8 | 10062 | |
8d138742 CE |
10063 | solaris*) |
10064 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10065 | ld_shlibs=no | |
10066 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 10067 | |
8d138742 CE |
10068 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10069 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10070 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10071 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10072 | *** your PATH or compiler configuration so that the native linker is | |
10073 | *** used, and then restart. | |
d9898ee8 | 10074 | |
8d138742 CE |
10075 | _LT_EOF |
10076 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
10077 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10078 | 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 |
10079 | else |
10080 | ld_shlibs=no | |
10081 | fi | |
10082 | ;; | |
d9898ee8 | 10083 | |
8d138742 CE |
10084 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10085 | case `$LD -v 2>&1` in | |
10086 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10087 | ld_shlibs=no | |
10088 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 10089 | |
d50284c4 | 10090 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
10091 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
10092 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10093 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10094 | *** your PATH or compiler configuration so that the native linker is | |
10095 | *** used, and then restart. | |
d9898ee8 | 10096 | |
8d138742 CE |
10097 | _LT_EOF |
10098 | ;; | |
10099 | *) | |
10100 | # For security reasons, it is highly recommended that you always | |
10101 | # use absolute paths for naming shared libraries, and exclude the | |
10102 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10103 | # requires that you compile everything twice, which is a pain. | |
10104 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
10105 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10106 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10107 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
10108 | else |
10109 | ld_shlibs=no | |
10110 | fi | |
10111 | ;; | |
10112 | esac | |
10113 | ;; | |
d9898ee8 | 10114 | |
8d138742 CE |
10115 | sunos4*) |
10116 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10117 | wlarc= | |
10118 | hardcode_direct=yes | |
10119 | hardcode_shlibpath_var=no | |
d9898ee8 | 10120 | ;; |
8d138742 | 10121 | |
d9898ee8 | 10122 | *) |
8d138742 | 10123 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
d50284c4 CE |
10124 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10125 | 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 |
10126 | else |
10127 | ld_shlibs=no | |
10128 | fi | |
d9898ee8 | 10129 | ;; |
10130 | esac | |
d9898ee8 | 10131 | |
d50284c4 | 10132 | if test no = "$ld_shlibs"; then |
8d138742 CE |
10133 | runpath_var= |
10134 | hardcode_libdir_flag_spec= | |
10135 | export_dynamic_flag_spec= | |
10136 | whole_archive_flag_spec= | |
10137 | fi | |
10138 | else | |
10139 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10140 | case $host_os in | |
10141 | aix3*) | |
10142 | allow_undefined_flag=unsupported | |
10143 | always_export_symbols=yes | |
10144 | 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' | |
10145 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10146 | # are no directories specified by -L. | |
10147 | hardcode_minus_L=yes | |
d50284c4 | 10148 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
10149 | # Neither direct hardcoding nor static linking is supported with a |
10150 | # broken collect2. | |
10151 | hardcode_direct=unsupported | |
10152 | fi | |
10153 | ;; | |
d9898ee8 | 10154 | |
8d138742 | 10155 | aix[4-9]*) |
d50284c4 | 10156 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
10157 | # On IA64, the linker does run time linking by default, so we don't |
10158 | # have to do anything special. | |
10159 | aix_use_runtimelinking=no | |
10160 | exp_sym_flag='-Bexport' | |
d50284c4 | 10161 | no_entry_flag= |
8d138742 CE |
10162 | else |
10163 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
10164 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
10165 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10166 | # weak defined symbols like other global defined symbols, whereas | |
10167 | # GNU nm marks them as "W". | |
10168 | # While the 'weak' keyword is ignored in the Export File, we need | |
10169 | # it in the Import File for the 'aix-soname' feature, so we have | |
10170 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 10171 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 10172 | 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 | 10173 | else |
d50284c4 | 10174 | 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 |
10175 | fi |
10176 | aix_use_runtimelinking=no | |
d9898ee8 | 10177 | |
8d138742 CE |
10178 | # Test if we are trying to use run time linking or normal |
10179 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
10180 | # have runtime linking enabled, and use it for executables. |
10181 | # For shared libraries, we enable/disable runtime linking | |
10182 | # depending on the kind of the shared library created - | |
10183 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10184 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10185 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10186 | # lib.a static archive | |
10187 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10188 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10189 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10190 | # lib.a(lib.so.V) shared, rtl:no | |
10191 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10192 | # lib.a static archive | |
8d138742 CE |
10193 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
10194 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 10195 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
10196 | aix_use_runtimelinking=yes |
10197 | break | |
10198 | fi | |
10199 | done | |
d50284c4 CE |
10200 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
10201 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10202 | # so we don't have lib.a shared libs to link our executables. | |
10203 | # We have to force runtime linking in this case. | |
10204 | aix_use_runtimelinking=yes | |
10205 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10206 | fi | |
8d138742 CE |
10207 | ;; |
10208 | esac | |
d9898ee8 | 10209 | |
8d138742 CE |
10210 | exp_sym_flag='-bexport' |
10211 | no_entry_flag='-bnoentry' | |
10212 | fi | |
d9898ee8 | 10213 | |
8d138742 CE |
10214 | # When large executables or shared objects are built, AIX ld can |
10215 | # have problems creating the table of contents. If linking a library | |
10216 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10217 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10218 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 10219 | |
8d138742 CE |
10220 | archive_cmds='' |
10221 | hardcode_direct=yes | |
10222 | hardcode_direct_absolute=yes | |
10223 | hardcode_libdir_separator=':' | |
10224 | link_all_deplibs=yes | |
d50284c4 CE |
10225 | file_list_spec='$wl-f,' |
10226 | case $with_aix_soname,$aix_use_runtimelinking in | |
10227 | aix,*) ;; # traditional, no import file | |
10228 | svr4,* | *,yes) # use import file | |
10229 | # The Import File defines what to hardcode. | |
10230 | hardcode_direct=no | |
10231 | hardcode_direct_absolute=no | |
10232 | ;; | |
10233 | esac | |
d9898ee8 | 10234 | |
d50284c4 | 10235 | if test yes = "$GCC"; then |
8d138742 CE |
10236 | case $host_os in aix4.[012]|aix4.[012].*) |
10237 | # We only want to do this on AIX 4.2 and lower, the check | |
10238 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 10239 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
10240 | if test -f "$collect2name" && |
10241 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10242 | then | |
10243 | # We have reworked collect2 | |
10244 | : | |
10245 | else | |
10246 | # We have old collect2 | |
10247 | hardcode_direct=unsupported | |
10248 | # It fails to find uninstalled libraries when the uninstalled | |
10249 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10250 | # to unsupported forces relinking | |
10251 | hardcode_minus_L=yes | |
10252 | hardcode_libdir_flag_spec='-L$libdir' | |
10253 | hardcode_libdir_separator= | |
10254 | fi | |
10255 | ;; | |
10256 | esac | |
10257 | shared_flag='-shared' | |
d50284c4 CE |
10258 | if test yes = "$aix_use_runtimelinking"; then |
10259 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 10260 | fi |
d50284c4 CE |
10261 | # Need to ensure runtime linking is disabled for the traditional |
10262 | # shared library, or the linker may eventually find shared libraries | |
10263 | # /with/ Import File - we do not want to mix them. | |
10264 | shared_flag_aix='-shared' | |
10265 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
10266 | else |
10267 | # not using gcc | |
d50284c4 | 10268 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
10269 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10270 | # chokes on -Wl,-G. The following line is correct: | |
10271 | shared_flag='-G' | |
10272 | else | |
d50284c4 CE |
10273 | if test yes = "$aix_use_runtimelinking"; then |
10274 | shared_flag='$wl-G' | |
8d138742 | 10275 | else |
d50284c4 | 10276 | shared_flag='$wl-bM:SRE' |
8d138742 | 10277 | fi |
d50284c4 CE |
10278 | shared_flag_aix='$wl-bM:SRE' |
10279 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
10280 | fi |
10281 | fi | |
d9898ee8 | 10282 | |
d50284c4 | 10283 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
10284 | # It seems that -bexpall does not export symbols beginning with |
10285 | # underscore (_), so it is better to generate a list of symbols to export. | |
10286 | always_export_symbols=yes | |
d50284c4 | 10287 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
10288 | # Warning - without using the other runtime loading flags (-brtl), |
10289 | # -berok will link without error, but may produce a broken library. | |
10290 | allow_undefined_flag='-berok' | |
10291 | # Determine the default libpath from the value encoded in an | |
10292 | # empty executable. | |
d50284c4 | 10293 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
10294 | aix_libpath=$lt_cv_aix_libpath |
10295 | else | |
10296 | if ${lt_cv_aix_libpath_+:} false; then : | |
10297 | $as_echo_n "(cached) " >&6 | |
10298 | else | |
10299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 10300 | /* end confdefs.h. */ |
d9898ee8 | 10301 | |
8d138742 CE |
10302 | int |
10303 | main () | |
10304 | { | |
d9898ee8 | 10305 | |
8d138742 CE |
10306 | ; |
10307 | return 0; | |
10308 | } | |
10309 | _ACEOF | |
b0322a85 | 10310 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 10311 | |
b0322a85 CE |
10312 | lt_aix_libpath_sed=' |
10313 | /Import File Strings/,/^$/ { | |
10314 | /^0/ { | |
10315 | s/^0 *\([^ ]*\) *$/\1/ | |
10316 | p | |
10317 | } | |
10318 | }' | |
10319 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10320 | # Check for a 64-bit object if we didn't find anything. | |
10321 | if test -z "$lt_cv_aix_libpath_"; then | |
10322 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10323 | fi | |
10324 | fi | |
10325 | rm -f core conftest.err conftest.$ac_objext \ | |
10326 | conftest$ac_exeext conftest.$ac_ext | |
10327 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 10328 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 10329 | fi |
d9898ee8 | 10330 | |
8d138742 | 10331 | fi |
d9898ee8 | 10332 | |
b0322a85 CE |
10333 | aix_libpath=$lt_cv_aix_libpath_ |
10334 | fi | |
d9898ee8 | 10335 | |
d50284c4 CE |
10336 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10337 | 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 | 10338 | else |
d50284c4 CE |
10339 | if test ia64 = "$host_cpu"; then |
10340 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 10341 | allow_undefined_flag="-z nodefs" |
d50284c4 | 10342 | 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 |
10343 | else |
10344 | # Determine the default libpath from the value encoded in an | |
10345 | # empty executable. | |
d50284c4 | 10346 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
10347 | aix_libpath=$lt_cv_aix_libpath |
10348 | else | |
10349 | if ${lt_cv_aix_libpath_+:} false; then : | |
10350 | $as_echo_n "(cached) " >&6 | |
8d138742 | 10351 | else |
b0322a85 CE |
10352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10353 | /* end confdefs.h. */ | |
10354 | ||
10355 | int | |
10356 | main () | |
10357 | { | |
10358 | ||
10359 | ; | |
10360 | return 0; | |
10361 | } | |
10362 | _ACEOF | |
10363 | if ac_fn_c_try_link "$LINENO"; then : | |
d9898ee8 | 10364 | |
b0322a85 CE |
10365 | lt_aix_libpath_sed=' |
10366 | /Import File Strings/,/^$/ { | |
10367 | /^0/ { | |
10368 | s/^0 *\([^ ]*\) *$/\1/ | |
10369 | p | |
10370 | } | |
10371 | }' | |
10372 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10373 | # Check for a 64-bit object if we didn't find anything. | |
10374 | if test -z "$lt_cv_aix_libpath_"; then | |
10375 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10376 | fi | |
10377 | fi | |
10378 | rm -f core conftest.err conftest.$ac_objext \ | |
10379 | conftest$ac_exeext conftest.$ac_ext | |
10380 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 10381 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 10382 | fi |
d9898ee8 | 10383 | |
8d138742 | 10384 | fi |
d9898ee8 | 10385 | |
b0322a85 CE |
10386 | aix_libpath=$lt_cv_aix_libpath_ |
10387 | fi | |
d9898ee8 | 10388 | |
d50284c4 | 10389 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
10390 | # Warning - without using the other run time loading flags, |
10391 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
10392 | no_undefined_flag=' $wl-bernotok' |
10393 | allow_undefined_flag=' $wl-berok' | |
10394 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 10395 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 10396 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
10397 | else |
10398 | # Exported symbols can be pulled into shared objects from archives | |
10399 | whole_archive_flag_spec='$convenience' | |
10400 | fi | |
8d138742 | 10401 | archive_cmds_need_lc=yes |
d50284c4 CE |
10402 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10403 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10404 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10405 | if test svr4 != "$with_aix_soname"; then | |
10406 | # This is similar to how AIX traditionally builds its shared libraries. | |
10407 | 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' | |
10408 | fi | |
10409 | if test aix != "$with_aix_soname"; then | |
10410 | 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' | |
10411 | else | |
10412 | # used by -dlpreopen to get the symbols | |
10413 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10414 | fi | |
10415 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
10416 | fi |
10417 | fi | |
10418 | ;; | |
d9898ee8 | 10419 | |
8d138742 CE |
10420 | amigaos*) |
10421 | case $host_cpu in | |
10422 | powerpc) | |
10423 | # see comment about AmigaOS4 .so support | |
d50284c4 | 10424 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
10425 | archive_expsym_cmds='' |
10426 | ;; | |
10427 | m68k) | |
10428 | 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)' | |
10429 | hardcode_libdir_flag_spec='-L$libdir' | |
10430 | hardcode_minus_L=yes | |
10431 | ;; | |
10432 | esac | |
10433 | ;; | |
d9898ee8 | 10434 | |
8d138742 CE |
10435 | bsdi[45]*) |
10436 | export_dynamic_flag_spec=-rdynamic | |
10437 | ;; | |
d9898ee8 | 10438 | |
8d138742 CE |
10439 | cygwin* | mingw* | pw32* | cegcc*) |
10440 | # When not using gcc, we currently assume that we are using | |
10441 | # Microsoft Visual C++. | |
10442 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10443 | # no search path for DLLs. | |
b0322a85 CE |
10444 | case $cc_basename in |
10445 | cl*) | |
10446 | # Native MSVC | |
10447 | hardcode_libdir_flag_spec=' ' | |
10448 | allow_undefined_flag=unsupported | |
10449 | always_export_symbols=yes | |
10450 | file_list_spec='@' | |
10451 | # Tell ltmain to make .lib files, not .a files. | |
10452 | libext=lib | |
10453 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 10454 | shrext_cmds=.dll |
b0322a85 | 10455 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
10456 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10457 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10458 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10459 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10460 | else | |
10461 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10462 | fi~ | |
10463 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10464 | linknames=' | |
b0322a85 CE |
10465 | # The linker will not automatically build a static lib if we build a DLL. |
10466 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10467 | enable_shared_with_static_runtimes=yes | |
10468 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10469 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10470 | # Don't use ranlib | |
10471 | old_postinstall_cmds='chmod 644 $oldlib' | |
10472 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
10473 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10474 | case $lt_outputfile in | |
10475 | *.exe|*.EXE) ;; | |
10476 | *) | |
10477 | lt_outputfile=$lt_outputfile.exe | |
10478 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10479 | ;; | |
10480 | esac~ | |
10481 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10482 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10483 | $RM "$lt_outputfile.manifest"; | |
10484 | fi' | |
b0322a85 CE |
10485 | ;; |
10486 | *) | |
10487 | # Assume MSVC wrapper | |
10488 | hardcode_libdir_flag_spec=' ' | |
10489 | allow_undefined_flag=unsupported | |
10490 | # Tell ltmain to make .lib files, not .a files. | |
10491 | libext=lib | |
10492 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 10493 | shrext_cmds=.dll |
b0322a85 CE |
10494 | # FIXME: Setting linknames here is a bad hack. |
10495 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10496 | # The linker will automatically build a .lib file if we build a DLL. | |
10497 | old_archive_from_new_cmds='true' | |
10498 | # FIXME: Should let the user specify the lib program. | |
10499 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10500 | enable_shared_with_static_runtimes=yes | |
10501 | ;; | |
10502 | esac | |
8d138742 | 10503 | ;; |
d9898ee8 | 10504 | |
8d138742 | 10505 | darwin* | rhapsody*) |
d9898ee8 | 10506 | |
d9898ee8 | 10507 | |
8d138742 CE |
10508 | archive_cmds_need_lc=no |
10509 | hardcode_direct=no | |
10510 | hardcode_automatic=yes | |
10511 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
10512 | if test yes = "$lt_cv_ld_force_load"; then |
10513 | 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 |
10514 | |
10515 | else | |
10516 | whole_archive_flag_spec='' | |
10517 | fi | |
8d138742 | 10518 | link_all_deplibs=yes |
d50284c4 | 10519 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 10520 | case $cc_basename in |
d50284c4 | 10521 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
10522 | *) _lt_dar_can_shared=$GCC ;; |
10523 | esac | |
d50284c4 | 10524 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 10525 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
10526 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10527 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10528 | 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" | |
10529 | 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 | 10530 | |
8d138742 CE |
10531 | else |
10532 | ld_shlibs=no | |
10533 | fi | |
d9898ee8 | 10534 | |
8d138742 | 10535 | ;; |
d9898ee8 | 10536 | |
8d138742 CE |
10537 | dgux*) |
10538 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10539 | hardcode_libdir_flag_spec='-L$libdir' | |
10540 | hardcode_shlibpath_var=no | |
10541 | ;; | |
d9898ee8 | 10542 | |
8d138742 CE |
10543 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10544 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10545 | # does not break anything, and helps significantly (at the cost of a little | |
10546 | # extra space). | |
10547 | freebsd2.2*) | |
10548 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10549 | hardcode_libdir_flag_spec='-R$libdir' | |
10550 | hardcode_direct=yes | |
10551 | hardcode_shlibpath_var=no | |
10552 | ;; | |
d9898ee8 | 10553 | |
8d138742 | 10554 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 10555 | freebsd2.*) |
8d138742 CE |
10556 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10557 | hardcode_direct=yes | |
10558 | hardcode_minus_L=yes | |
10559 | hardcode_shlibpath_var=no | |
10560 | ;; | |
d9898ee8 | 10561 | |
8d138742 CE |
10562 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10563 | freebsd* | dragonfly*) | |
b0322a85 | 10564 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10565 | hardcode_libdir_flag_spec='-R$libdir' |
10566 | hardcode_direct=yes | |
10567 | hardcode_shlibpath_var=no | |
10568 | ;; | |
d9898ee8 | 10569 | |
8d138742 | 10570 | hpux9*) |
d50284c4 CE |
10571 | if test yes = "$GCC"; then |
10572 | 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 | 10573 | else |
d50284c4 | 10574 | 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 | 10575 | fi |
d50284c4 | 10576 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
10577 | hardcode_libdir_separator=: |
10578 | hardcode_direct=yes | |
d9898ee8 | 10579 | |
8d138742 CE |
10580 | # hardcode_minus_L: Not really in the search PATH, |
10581 | # but as the default location of the library. | |
10582 | hardcode_minus_L=yes | |
d50284c4 | 10583 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 10584 | ;; |
d9898ee8 | 10585 | |
8d138742 | 10586 | hpux10*) |
d50284c4 CE |
10587 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10588 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10589 | else |
10590 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10591 | fi | |
d50284c4 CE |
10592 | if test no = "$with_gnu_ld"; then |
10593 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
10594 | hardcode_libdir_separator=: |
10595 | hardcode_direct=yes | |
10596 | hardcode_direct_absolute=yes | |
d50284c4 | 10597 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
10598 | # hardcode_minus_L: Not really in the search PATH, |
10599 | # but as the default location of the library. | |
10600 | hardcode_minus_L=yes | |
10601 | fi | |
10602 | ;; | |
d9898ee8 | 10603 | |
8d138742 | 10604 | hpux11*) |
d50284c4 | 10605 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
10606 | case $host_cpu in |
10607 | hppa*64*) | |
d50284c4 | 10608 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10609 | ;; |
10610 | ia64*) | |
d50284c4 | 10611 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10612 | ;; |
10613 | *) | |
d50284c4 | 10614 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10615 | ;; |
10616 | esac | |
10617 | else | |
10618 | case $host_cpu in | |
10619 | hppa*64*) | |
d50284c4 | 10620 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10621 | ;; |
10622 | ia64*) | |
d50284c4 | 10623 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10624 | ;; |
10625 | *) | |
b0322a85 CE |
10626 | |
10627 | # Older versions of the 11.00 compiler do not understand -b yet | |
10628 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10630 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10631 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10632 | $as_echo_n "(cached) " >&6 | |
10633 | else | |
10634 | lt_cv_prog_compiler__b=no | |
d50284c4 | 10635 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
10636 | LDFLAGS="$LDFLAGS -b" |
10637 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10638 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10639 | # The linker can only warn and ignore the option if not recognized | |
10640 | # So say no if there are warnings | |
10641 | if test -s conftest.err; then | |
10642 | # Append any errors to the config.log. | |
10643 | cat conftest.err 1>&5 | |
10644 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10645 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10646 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10647 | lt_cv_prog_compiler__b=yes | |
10648 | fi | |
10649 | else | |
10650 | lt_cv_prog_compiler__b=yes | |
10651 | fi | |
10652 | fi | |
10653 | $RM -r conftest* | |
d50284c4 | 10654 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10655 | |
10656 | fi | |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10658 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10659 | ||
d50284c4 CE |
10660 | if test yes = "$lt_cv_prog_compiler__b"; then |
10661 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
10662 | else |
10663 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10664 | fi | |
10665 | ||
8d138742 CE |
10666 | ;; |
10667 | esac | |
10668 | fi | |
d50284c4 CE |
10669 | if test no = "$with_gnu_ld"; then |
10670 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 10671 | hardcode_libdir_separator=: |
d9898ee8 | 10672 | |
8d138742 CE |
10673 | case $host_cpu in |
10674 | hppa*64*|ia64*) | |
10675 | hardcode_direct=no | |
10676 | hardcode_shlibpath_var=no | |
10677 | ;; | |
10678 | *) | |
10679 | hardcode_direct=yes | |
10680 | hardcode_direct_absolute=yes | |
d50284c4 | 10681 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 10682 | |
8d138742 CE |
10683 | # hardcode_minus_L: Not really in the search PATH, |
10684 | # but as the default location of the library. | |
10685 | hardcode_minus_L=yes | |
10686 | ;; | |
10687 | esac | |
10688 | fi | |
10689 | ;; | |
d9898ee8 | 10690 | |
8d138742 | 10691 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
10692 | if test yes = "$GCC"; then |
10693 | 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 |
10694 | # Try to use the -exported_symbol ld option, if it does not |
10695 | # work, assume that -exports_file does not work either and | |
10696 | # implicitly export all symbols. | |
b0322a85 CE |
10697 | # This should be the same for all languages, so no per-tag cache variable. |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10699 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10700 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10701 | $as_echo_n "(cached) " >&6 | |
10702 | else | |
d50284c4 CE |
10703 | save_LDFLAGS=$LDFLAGS |
10704 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10706 | /* end confdefs.h. */ | |
10707 | int foo (void) { return 0; } | |
8d138742 | 10708 | _ACEOF |
b0322a85 CE |
10709 | if ac_fn_c_try_link "$LINENO"; then : |
10710 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 10711 | else |
b0322a85 | 10712 | lt_cv_irix_exported_symbol=no |
8d138742 | 10713 | fi |
b0322a85 CE |
10714 | rm -f core conftest.err conftest.$ac_objext \ |
10715 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 10716 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10717 | fi |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10719 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
10720 | if test yes = "$lt_cv_irix_exported_symbol"; then |
10721 | 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 | 10722 | fi |
8d138742 | 10723 | else |
d50284c4 CE |
10724 | 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' |
10725 | 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 |
10726 | fi |
10727 | archive_cmds_need_lc='no' | |
d50284c4 | 10728 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10729 | hardcode_libdir_separator=: |
10730 | inherit_rpath=yes | |
10731 | link_all_deplibs=yes | |
10732 | ;; | |
d9898ee8 | 10733 | |
d50284c4 CE |
10734 | linux*) |
10735 | case $cc_basename in | |
10736 | tcc*) | |
10737 | # Fabrice Bellard et al's Tiny C Compiler | |
10738 | ld_shlibs=yes | |
10739 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10740 | ;; | |
10741 | esac | |
10742 | ;; | |
10743 | ||
8d138742 CE |
10744 | netbsd*) |
10745 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10746 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10747 | else | |
10748 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10749 | fi | |
10750 | hardcode_libdir_flag_spec='-R$libdir' | |
10751 | hardcode_direct=yes | |
10752 | hardcode_shlibpath_var=no | |
10753 | ;; | |
d9898ee8 | 10754 | |
8d138742 CE |
10755 | newsos6) |
10756 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10757 | hardcode_direct=yes | |
d50284c4 | 10758 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10759 | hardcode_libdir_separator=: |
10760 | hardcode_shlibpath_var=no | |
10761 | ;; | |
d9898ee8 | 10762 | |
8d138742 CE |
10763 | *nto* | *qnx*) |
10764 | ;; | |
d9898ee8 | 10765 | |
d50284c4 | 10766 | openbsd* | bitrig*) |
8d138742 CE |
10767 | if test -f /usr/libexec/ld.so; then |
10768 | hardcode_direct=yes | |
10769 | hardcode_shlibpath_var=no | |
10770 | hardcode_direct_absolute=yes | |
d50284c4 | 10771 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 10772 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
10773 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10774 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10775 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 10776 | else |
d50284c4 CE |
10777 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10778 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
10779 | fi |
10780 | else | |
10781 | ld_shlibs=no | |
10782 | fi | |
10783 | ;; | |
d9898ee8 | 10784 | |
8d138742 CE |
10785 | os2*) |
10786 | hardcode_libdir_flag_spec='-L$libdir' | |
10787 | hardcode_minus_L=yes | |
10788 | allow_undefined_flag=unsupported | |
d50284c4 CE |
10789 | shrext_cmds=.dll |
10790 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10791 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10792 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10793 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10794 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10795 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10796 | emximp -o $lib $output_objdir/$libname.def' | |
10797 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10798 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10799 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10800 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10801 | prefix_cmds="$SED"~ | |
10802 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10803 | prefix_cmds="$prefix_cmds -e 1d"; | |
10804 | fi~ | |
10805 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10806 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10807 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10808 | emximp -o $lib $output_objdir/$libname.def' | |
10809 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10810 | enable_shared_with_static_runtimes=yes | |
8d138742 | 10811 | ;; |
d9898ee8 | 10812 | |
8d138742 | 10813 | osf3*) |
d50284c4 CE |
10814 | if test yes = "$GCC"; then |
10815 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10816 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
8d138742 CE |
10817 | else |
10818 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10819 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
8d138742 CE |
10820 | fi |
10821 | archive_cmds_need_lc='no' | |
d50284c4 | 10822 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10823 | hardcode_libdir_separator=: |
10824 | ;; | |
d9898ee8 | 10825 | |
8d138742 | 10826 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
10827 | if test yes = "$GCC"; then |
10828 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10829 | 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' | |
10830 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
10831 | else |
10832 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10833 | 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 | 10834 | 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 | 10835 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
d9898ee8 | 10836 | |
8d138742 CE |
10837 | # Both c and cxx compiler support -rpath directly |
10838 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10839 | fi | |
10840 | archive_cmds_need_lc='no' | |
10841 | hardcode_libdir_separator=: | |
10842 | ;; | |
d9898ee8 | 10843 | |
8d138742 CE |
10844 | solaris*) |
10845 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10846 | if test yes = "$GCC"; then |
10847 | wlarc='$wl' | |
10848 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10849 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10850 | $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 |
10851 | else |
10852 | case `$CC -V 2>&1` in | |
10853 | *"Compilers 5.0"*) | |
10854 | wlarc='' | |
d50284c4 | 10855 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10856 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10857 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10858 | ;; |
10859 | *) | |
d50284c4 CE |
10860 | wlarc='$wl' |
10861 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10862 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10863 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10864 | ;; |
10865 | esac | |
10866 | fi | |
10867 | hardcode_libdir_flag_spec='-R$libdir' | |
10868 | hardcode_shlibpath_var=no | |
10869 | case $host_os in | |
10870 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10871 | *) | |
10872 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 10873 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10874 | # but is careful enough not to reorder. |
10875 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10876 | if test yes = "$GCC"; then |
10877 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
10878 | else |
10879 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10880 | fi | |
10881 | ;; | |
10882 | esac | |
10883 | link_all_deplibs=yes | |
10884 | ;; | |
d9898ee8 | 10885 | |
8d138742 | 10886 | sunos4*) |
d50284c4 | 10887 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10888 | # Use $CC to link under sequent, because it throws in some extra .o |
10889 | # files that make .init and .fini sections work. | |
d50284c4 | 10890 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10891 | else |
10892 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10893 | fi | |
10894 | hardcode_libdir_flag_spec='-L$libdir' | |
10895 | hardcode_direct=yes | |
10896 | hardcode_minus_L=yes | |
10897 | hardcode_shlibpath_var=no | |
10898 | ;; | |
d9898ee8 | 10899 | |
8d138742 CE |
10900 | sysv4) |
10901 | case $host_vendor in | |
10902 | sni) | |
10903 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10904 | hardcode_direct=yes # is this really true??? | |
10905 | ;; | |
10906 | siemens) | |
10907 | ## LD is ld it makes a PLAMLIB | |
10908 | ## CC just makes a GrossModule. | |
10909 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10910 | reload_cmds='$CC -r -o $output$reload_objs' | |
10911 | hardcode_direct=no | |
10912 | ;; | |
10913 | motorola) | |
10914 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10915 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10916 | ;; | |
10917 | esac | |
10918 | runpath_var='LD_RUN_PATH' | |
10919 | hardcode_shlibpath_var=no | |
10920 | ;; | |
d9898ee8 | 10921 | |
8d138742 CE |
10922 | sysv4.3*) |
10923 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10924 | hardcode_shlibpath_var=no | |
10925 | export_dynamic_flag_spec='-Bexport' | |
10926 | ;; | |
d9898ee8 | 10927 | |
8d138742 CE |
10928 | sysv4*MP*) |
10929 | if test -d /usr/nec; then | |
10930 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10931 | hardcode_shlibpath_var=no | |
10932 | runpath_var=LD_RUN_PATH | |
10933 | hardcode_runpath_var=yes | |
10934 | ld_shlibs=yes | |
10935 | fi | |
10936 | ;; | |
d9898ee8 | 10937 | |
8d138742 | 10938 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10939 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10940 | archive_cmds_need_lc=no |
10941 | hardcode_shlibpath_var=no | |
10942 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10943 | |
d50284c4 CE |
10944 | if test yes = "$GCC"; then |
10945 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10946 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10947 | else |
d50284c4 CE |
10948 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10949 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10950 | fi |
10951 | ;; | |
d9898ee8 | 10952 | |
8d138742 | 10953 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10954 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10955 | # link with -lc, and that would cause any symbols used from libc to |
10956 | # always be unresolved, which means just about no library would | |
10957 | # ever link correctly. If we're not using GNU ld we use -z text | |
10958 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10959 | # as -z defs. | |
d50284c4 CE |
10960 | no_undefined_flag='$wl-z,text' |
10961 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10962 | archive_cmds_need_lc=no |
10963 | hardcode_shlibpath_var=no | |
d50284c4 | 10964 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10965 | hardcode_libdir_separator=':' |
10966 | link_all_deplibs=yes | |
d50284c4 | 10967 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10968 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10969 | |
d50284c4 CE |
10970 | if test yes = "$GCC"; then |
10971 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10972 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10973 | else |
d50284c4 CE |
10974 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10975 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10976 | fi |
10977 | ;; | |
d9898ee8 | 10978 | |
8d138742 CE |
10979 | uts4*) |
10980 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10981 | hardcode_libdir_flag_spec='-L$libdir' | |
10982 | hardcode_shlibpath_var=no | |
10983 | ;; | |
d9898ee8 | 10984 | |
8d138742 CE |
10985 | *) |
10986 | ld_shlibs=no | |
10987 | ;; | |
10988 | esac | |
d9898ee8 | 10989 | |
d50284c4 | 10990 | if test sni = "$host_vendor"; then |
8d138742 CE |
10991 | case $host in |
10992 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10993 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10994 | ;; |
10995 | esac | |
10996 | fi | |
10997 | fi | |
d9898ee8 | 10998 | |
b0322a85 | 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 11000 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 11001 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 11002 | |
8d138742 | 11003 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 11004 | |
d9898ee8 | 11005 | |
d9898ee8 | 11006 | |
d9898ee8 | 11007 | |
d9898ee8 | 11008 | |
d9898ee8 | 11009 | |
d9898ee8 | 11010 | |
d9898ee8 | 11011 | |
d9898ee8 | 11012 | |
d9898ee8 | 11013 | |
d9898ee8 | 11014 | |
d9898ee8 | 11015 | |
d9898ee8 | 11016 | |
d9898ee8 | 11017 | |
d9898ee8 | 11018 | |
8d138742 CE |
11019 | # |
11020 | # Do we need to explicitly link libc? | |
11021 | # | |
11022 | case "x$archive_cmds_need_lc" in | |
11023 | x|xyes) | |
11024 | # Assume -lc should be added | |
11025 | archive_cmds_need_lc=yes | |
d9898ee8 | 11026 | |
d50284c4 | 11027 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
11028 | case $archive_cmds in |
11029 | *'~'*) | |
11030 | # FIXME: we may have to deal with multi-command sequences. | |
11031 | ;; | |
11032 | '$CC '*) | |
11033 | # Test whether the compiler implicitly links with -lc since on some | |
11034 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11035 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 11037 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
11038 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
11039 | $as_echo_n "(cached) " >&6 | |
11040 | else | |
11041 | $RM conftest* | |
11042 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 11043 | |
b0322a85 | 11044 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
11045 | (eval $ac_compile) 2>&5 |
11046 | ac_status=$? | |
b0322a85 CE |
11047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11048 | test $ac_status = 0; } 2>conftest.err; then | |
11049 | soname=conftest | |
11050 | lib=conftest | |
11051 | libobjs=conftest.$ac_objext | |
11052 | deplibs= | |
11053 | wl=$lt_prog_compiler_wl | |
11054 | pic_flag=$lt_prog_compiler_pic | |
11055 | compiler_flags=-v | |
11056 | linker_flags=-v | |
11057 | verstring= | |
11058 | output_objdir=. | |
11059 | libname=conftest | |
11060 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11061 | allow_undefined_flag= | |
11062 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
11063 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11064 | ac_status=$? | |
b0322a85 CE |
11065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11066 | test $ac_status = 0; } | |
11067 | then | |
11068 | lt_cv_archive_cmds_need_lc=no | |
11069 | else | |
11070 | lt_cv_archive_cmds_need_lc=yes | |
11071 | fi | |
11072 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11073 | else | |
11074 | cat conftest.err 1>&5 | |
11075 | fi | |
11076 | $RM conftest* | |
11077 | ||
11078 | fi | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11080 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11081 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 CE |
11082 | ;; |
11083 | esac | |
11084 | fi | |
11085 | ;; | |
11086 | esac | |
d9898ee8 | 11087 | |
d9898ee8 | 11088 | |
d9898ee8 | 11089 | |
d9898ee8 | 11090 | |
d9898ee8 | 11091 | |
d9898ee8 | 11092 | |
d9898ee8 | 11093 | |
d9898ee8 | 11094 | |
d9898ee8 | 11095 | |
d9898ee8 | 11096 | |
d9898ee8 | 11097 | |
d9898ee8 | 11098 | |
d9898ee8 | 11099 | |
d9898ee8 | 11100 | |
d9898ee8 | 11101 | |
d9898ee8 | 11102 | |
11103 | ||
d9898ee8 | 11104 | |
d9898ee8 | 11105 | |
d9898ee8 | 11106 | |
d9898ee8 | 11107 | |
d9898ee8 | 11108 | |
11109 | ||
d9898ee8 | 11110 | |
d9898ee8 | 11111 | |
11112 | ||
dd184caf | 11113 | |
d9898ee8 | 11114 | |
d9898ee8 | 11115 | |
d9898ee8 | 11116 | |
d9898ee8 | 11117 | |
d9898ee8 | 11118 | |
d9898ee8 | 11119 | |
d9898ee8 | 11120 | |
d9898ee8 | 11121 | |
d9898ee8 | 11122 | |
d9898ee8 | 11123 | |
d9898ee8 | 11124 | |
d9898ee8 | 11125 | |
d9898ee8 | 11126 | |
11127 | ||
d9898ee8 | 11128 | |
d9898ee8 | 11129 | |
11130 | ||
d9898ee8 | 11131 | |
11132 | ||
d9898ee8 | 11133 | |
d9898ee8 | 11134 | |
11135 | ||
dd184caf | 11136 | |
d9898ee8 | 11137 | |
d9898ee8 | 11138 | |
11139 | ||
11140 | ||
d9898ee8 | 11141 | |
d9898ee8 | 11142 | |
d9898ee8 | 11143 | |
d9898ee8 | 11144 | |
d9898ee8 | 11145 | |
d9898ee8 | 11146 | |
d9898ee8 | 11147 | |
d9898ee8 | 11148 | |
d9898ee8 | 11149 | |
d9898ee8 | 11150 | |
d9898ee8 | 11151 | |
d9898ee8 | 11152 | |
d9898ee8 | 11153 | |
dd184caf | 11154 | |
dd184caf | 11155 | |
d9898ee8 | 11156 | |
d9898ee8 | 11157 | |
d9898ee8 | 11158 | |
d9898ee8 | 11159 | |
d9898ee8 | 11160 | |
d9898ee8 | 11161 | |
dd184caf | 11162 | |
dd184caf | 11163 | |
d9898ee8 | 11164 | |
d9898ee8 | 11165 | |
d9898ee8 | 11166 | |
d9898ee8 | 11167 | |
d9898ee8 | 11168 | |
d9898ee8 | 11169 | |
d9898ee8 | 11170 | |
d9898ee8 | 11171 | |
d9898ee8 | 11172 | |
d9898ee8 | 11173 | |
d9898ee8 | 11174 | |
d9898ee8 | 11175 | |
d9898ee8 | 11176 | |
d9898ee8 | 11177 | |
d9898ee8 | 11178 | |
d9898ee8 | 11179 | |
d9898ee8 | 11180 | |
d9898ee8 | 11181 | |
d9898ee8 | 11182 | |
d9898ee8 | 11183 | |
d9898ee8 | 11184 | |
d9898ee8 | 11185 | |
d9898ee8 | 11186 | |
d9898ee8 | 11187 | |
11188 | ||
d9898ee8 | 11189 | |
d9898ee8 | 11190 | |
d9898ee8 | 11191 | |
d9898ee8 | 11192 | |
d9898ee8 | 11193 | |
d9898ee8 | 11194 | |
d9898ee8 | 11195 | |
d9898ee8 | 11196 | |
d9898ee8 | 11197 | |
ac40fd9e | 11198 | |
ac40fd9e | 11199 | |
d9898ee8 | 11200 | |
11201 | ||
d9898ee8 | 11202 | |
d9898ee8 | 11203 | |
d9898ee8 | 11204 | |
d9898ee8 | 11205 | |
d9898ee8 | 11206 | |
d9898ee8 | 11207 | |
d9898ee8 | 11208 | |
d9898ee8 | 11209 | |
d9898ee8 | 11210 | |
d9898ee8 | 11211 | |
d9898ee8 | 11212 | |
d9898ee8 | 11213 | |
d9898ee8 | 11214 | |
d9898ee8 | 11215 | |
11216 | ||
d9898ee8 | 11217 | |
d9898ee8 | 11218 | |
d9898ee8 | 11219 | |
11220 | ||
d9898ee8 | 11221 | |
d9898ee8 | 11222 | |
d9898ee8 | 11223 | |
d9898ee8 | 11224 | |
d9898ee8 | 11225 | |
d9898ee8 | 11226 | |
d9898ee8 | 11227 | |
ac40fd9e | 11228 | |
d9898ee8 | 11229 | |
d9898ee8 | 11230 | |
d9898ee8 | 11231 | |
d9898ee8 | 11232 | |
8d138742 CE |
11233 | |
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
b0322a85 | 11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
11240 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
11241 | ||
d50284c4 | 11242 | if test yes = "$GCC"; then |
8d138742 | 11243 | case $host_os in |
d50284c4 CE |
11244 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
11245 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 11246 | esac |
b0322a85 | 11247 | case $host_os in |
d50284c4 CE |
11248 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
11249 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
11250 | esac |
11251 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11252 | case $lt_search_path_spec in | |
11253 | *\;*) | |
8d138742 CE |
11254 | # if the path contains ";" then we assume it to be the separator |
11255 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11256 | # assumed that no part of a normal pathname contains ";" but that should | |
11257 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
11258 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11259 | ;; | |
11260 | *) | |
11261 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11262 | ;; | |
11263 | esac | |
8d138742 | 11264 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 11265 | # and add multilib dir if necessary... |
8d138742 | 11266 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
11267 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
11268 | # ...but if some path component already ends with the multilib dir we assume | |
11269 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11270 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11271 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11272 | lt_multi_os_dir= | |
11273 | ;; | |
11274 | esac | |
8d138742 | 11275 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
11276 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
11277 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11278 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
11279 | test -d "$lt_sys_path" && \ |
11280 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11281 | fi | |
11282 | done | |
b0322a85 | 11283 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
11284 | BEGIN {RS = " "; FS = "/|\n";} { |
11285 | lt_foo = ""; | |
11286 | lt_count = 0; | |
8d138742 CE |
11287 | for (lt_i = NF; lt_i > 0; lt_i--) { |
11288 | if ($lt_i != "" && $lt_i != ".") { | |
11289 | if ($lt_i == "..") { | |
11290 | lt_count++; | |
11291 | } else { | |
11292 | if (lt_count == 0) { | |
d50284c4 | 11293 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
11294 | } else { |
11295 | lt_count--; | |
11296 | } | |
11297 | } | |
11298 | } | |
11299 | } | |
11300 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11301 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11302 | }'` | |
b0322a85 CE |
11303 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11304 | # for these hosts. | |
11305 | case $host_os in | |
11306 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 11307 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
11308 | esac |
11309 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
11310 | else |
11311 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11312 | fi | |
11313 | library_names_spec= | |
11314 | libname_spec='lib$name' | |
11315 | soname_spec= | |
d50284c4 | 11316 | shrext_cmds=.so |
8d138742 CE |
11317 | postinstall_cmds= |
11318 | postuninstall_cmds= | |
11319 | finish_cmds= | |
11320 | finish_eval= | |
11321 | shlibpath_var= | |
11322 | shlibpath_overrides_runpath=unknown | |
11323 | version_type=none | |
11324 | dynamic_linker="$host_os ld.so" | |
11325 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11326 | need_lib_prefix=unknown | |
11327 | hardcode_into_libs=no | |
11328 | ||
11329 | # when you set need_version to no, make sure it does not cause -set_version | |
11330 | # flags to be left without arguments | |
11331 | need_version=unknown | |
11332 | ||
d50284c4 CE |
11333 | |
11334 | ||
8d138742 CE |
11335 | case $host_os in |
11336 | aix3*) | |
b0322a85 | 11337 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11338 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
8d138742 CE |
11339 | shlibpath_var=LIBPATH |
11340 | ||
11341 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 11342 | soname_spec='$libname$release$shared_ext$major' |
8d138742 CE |
11343 | ;; |
11344 | ||
11345 | aix[4-9]*) | |
b0322a85 | 11346 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11347 | need_lib_prefix=no |
11348 | need_version=no | |
11349 | hardcode_into_libs=yes | |
d50284c4 | 11350 | if test ia64 = "$host_cpu"; then |
8d138742 | 11351 | # AIX 5 supports IA64 |
d50284c4 | 11352 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
8d138742 CE |
11353 | shlibpath_var=LD_LIBRARY_PATH |
11354 | else | |
11355 | # With GCC up to 2.95.x, collect2 would create an import file | |
11356 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
11357 | # the line '#! .'. This would cause the generated library to |
11358 | # depend on '.', always an invalid library. This was fixed in | |
8d138742 CE |
11359 | # development snapshots of GCC prior to 3.0. |
11360 | case $host_os in | |
11361 | aix4 | aix4.[01] | aix4.[01].*) | |
d9898ee8 | 11362 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11363 | echo ' yes ' | |
d50284c4 | 11364 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 11365 | : |
11366 | else | |
11367 | can_build_shared=no | |
11368 | fi | |
11369 | ;; | |
11370 | esac | |
d50284c4 CE |
11371 | # Using Import Files as archive members, it is possible to support |
11372 | # filename-based versioning of shared library archives on AIX. While | |
11373 | # this would work for both with and without runtime linking, it will | |
11374 | # prevent static linking of such archives. So we do filename-based | |
11375 | # shared library versioning with .so extension only, which is used | |
11376 | # when both runtime linking and shared linking is enabled. | |
11377 | # Unfortunately, runtime linking may impact performance, so we do | |
11378 | # not want this to be the default eventually. Also, we use the | |
11379 | # versioned .so libs for executables only if there is the -brtl | |
11380 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11381 | # To allow for filename-based versioning support, we need to create | |
11382 | # libNAME.so.V as an archive file, containing: | |
11383 | # *) an Import File, referring to the versioned filename of the | |
11384 | # archive as well as the shared archive member, telling the | |
11385 | # bitwidth (32 or 64) of that shared object, and providing the | |
11386 | # list of exported symbols of that shared object, eventually | |
11387 | # decorated with the 'weak' keyword | |
11388 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11389 | # it being seen by the linker. | |
11390 | # At run time we better use the real file rather than another symlink, | |
11391 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11392 | ||
11393 | case $with_aix_soname,$aix_use_runtimelinking in | |
11394 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 11395 | # soname into executable. Probably we can add versioning support to |
11396 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
11397 | aix,yes) # traditional libtool |
11398 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 11399 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11400 | # instead of lib<name>.a to let people know that these are not | |
11401 | # typical AIX shared libraries. | |
d50284c4 CE |
11402 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11403 | ;; | |
11404 | aix,no) # traditional AIX only | |
11405 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 11406 | # We preserve .a as extension for shared libraries through AIX4.2 |
11407 | # and later when we are not doing run time linking. | |
d50284c4 CE |
11408 | library_names_spec='$libname$release.a $libname.a' |
11409 | soname_spec='$libname$release$shared_ext$major' | |
11410 | ;; | |
11411 | svr4,*) # full svr4 only | |
11412 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11413 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11414 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11415 | shlibpath_overrides_runpath=yes | |
11416 | ;; | |
11417 | *,yes) # both, prefer svr4 | |
11418 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11419 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11420 | # unpreferred sharedlib libNAME.a needs extra handling | |
11421 | 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"' | |
11422 | 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"' | |
11423 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11424 | shlibpath_overrides_runpath=yes | |
11425 | ;; | |
11426 | *,no) # both, prefer aix | |
11427 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11428 | library_names_spec='$libname$release.a $libname.a' | |
11429 | soname_spec='$libname$release$shared_ext$major' | |
11430 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11431 | 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)' | |
11432 | 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"' | |
11433 | ;; | |
11434 | esac | |
d9898ee8 | 11435 | shlibpath_var=LIBPATH |
11436 | fi | |
11437 | ;; | |
11438 | ||
11439 | amigaos*) | |
8d138742 CE |
11440 | case $host_cpu in |
11441 | powerpc) | |
11442 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11443 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 11444 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11445 | ;; |
11446 | m68k) | |
11447 | library_names_spec='$libname.ixlibrary $libname.a' | |
11448 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 11449 | 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 |
11450 | ;; |
11451 | esac | |
d9898ee8 | 11452 | ;; |
11453 | ||
11454 | beos*) | |
d50284c4 | 11455 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 11456 | dynamic_linker="$host_os ld.so" |
11457 | shlibpath_var=LIBRARY_PATH | |
11458 | ;; | |
11459 | ||
11460 | bsdi[45]*) | |
b0322a85 | 11461 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11462 | need_version=no |
d50284c4 CE |
11463 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11464 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11466 | shlibpath_var=LD_LIBRARY_PATH | |
11467 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11468 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11469 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11470 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11471 | # libtool to hard-code these into programs | |
11472 | ;; | |
11473 | ||
8d138742 | 11474 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 11475 | version_type=windows |
d50284c4 | 11476 | shrext_cmds=.dll |
d9898ee8 | 11477 | need_version=no |
11478 | need_lib_prefix=no | |
11479 | ||
b0322a85 CE |
11480 | case $GCC,$cc_basename in |
11481 | yes,*) | |
11482 | # gcc | |
d9898ee8 | 11483 | library_names_spec='$libname.dll.a' |
11484 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
11485 | postinstall_cmds='base_file=`basename \$file`~ |
11486 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 11487 | dldir=$destdir/`dirname \$dlpath`~ |
11488 | test -d \$dldir || mkdir -p \$dldir~ | |
11489 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
11490 | chmod a+x \$dldir/$dlname~ |
11491 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11492 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11493 | fi' | |
d9898ee8 | 11494 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11495 | dlpath=$dir/\$dldll~ | |
8d138742 | 11496 | $RM \$dlpath' |
d9898ee8 | 11497 | shlibpath_overrides_runpath=yes |
11498 | ||
11499 | case $host_os in | |
11500 | cygwin*) | |
11501 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 11502 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
11503 | |
11504 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 11505 | ;; |
8d138742 | 11506 | mingw* | cegcc*) |
d9898ee8 | 11507 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 11508 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 11509 | ;; |
11510 | pw32*) | |
11511 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 11512 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 11513 | ;; |
11514 | esac | |
b0322a85 CE |
11515 | dynamic_linker='Win32 ld.exe' |
11516 | ;; | |
11517 | ||
11518 | *,cl*) | |
11519 | # Native MSVC | |
11520 | libname_spec='$name' | |
d50284c4 CE |
11521 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11522 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
11523 | |
11524 | case $build_os in | |
11525 | mingw*) | |
11526 | sys_lib_search_path_spec= | |
11527 | lt_save_ifs=$IFS | |
11528 | IFS=';' | |
11529 | for lt_path in $LIB | |
11530 | do | |
11531 | IFS=$lt_save_ifs | |
11532 | # Let DOS variable expansion print the short 8.3 style file name. | |
11533 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11534 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11535 | done | |
11536 | IFS=$lt_save_ifs | |
11537 | # Convert to MSYS style. | |
11538 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11539 | ;; | |
11540 | cygwin*) | |
11541 | # Convert to unix form, then to dos form, then back to unix form | |
11542 | # but this time dos style (no spaces!) so that the unix form looks | |
11543 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11544 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11545 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11546 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11547 | ;; | |
11548 | *) | |
d50284c4 | 11549 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
11550 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11551 | # It is most probably a Windows format PATH. | |
11552 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11553 | else | |
11554 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11555 | fi | |
11556 | # FIXME: find the short name or the path components, as spaces are | |
11557 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11558 | ;; | |
11559 | esac | |
11560 | ||
11561 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
11562 | postinstall_cmds='base_file=`basename \$file`~ |
11563 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
11564 | dldir=$destdir/`dirname \$dlpath`~ |
11565 | test -d \$dldir || mkdir -p \$dldir~ | |
11566 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11567 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11568 | dlpath=$dir/\$dldll~ | |
11569 | $RM \$dlpath' | |
11570 | shlibpath_overrides_runpath=yes | |
11571 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 11572 | ;; |
11573 | ||
11574 | *) | |
b0322a85 | 11575 | # Assume MSVC wrapper |
d50284c4 | 11576 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 11577 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 11578 | ;; |
11579 | esac | |
d9898ee8 | 11580 | # FIXME: first we should search . and the directory the executable is in |
11581 | shlibpath_var=PATH | |
11582 | ;; | |
11583 | ||
11584 | darwin* | rhapsody*) | |
11585 | dynamic_linker="$host_os dyld" | |
11586 | version_type=darwin | |
11587 | need_lib_prefix=no | |
11588 | need_version=no | |
d50284c4 CE |
11589 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11590 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 11591 | shlibpath_overrides_runpath=yes |
11592 | shlibpath_var=DYLD_LIBRARY_PATH | |
11593 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 11594 | |
8d138742 | 11595 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 11596 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11597 | ;; | |
11598 | ||
11599 | dgux*) | |
b0322a85 | 11600 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11601 | need_lib_prefix=no |
11602 | need_version=no | |
d50284c4 CE |
11603 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11604 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11605 | shlibpath_var=LD_LIBRARY_PATH |
11606 | ;; | |
11607 | ||
d9898ee8 | 11608 | freebsd* | dragonfly*) |
11609 | # DragonFly does not have aout. When/if they implement a new | |
11610 | # versioning mechanism, adjust this. | |
11611 | if test -x /usr/bin/objformat; then | |
11612 | objformat=`/usr/bin/objformat` | |
11613 | else | |
11614 | case $host_os in | |
b0322a85 | 11615 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 11616 | *) objformat=elf ;; |
11617 | esac | |
11618 | fi | |
11619 | version_type=freebsd-$objformat | |
11620 | case $version_type in | |
11621 | freebsd-elf*) | |
d50284c4 CE |
11622 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11623 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11624 | need_version=no |
11625 | need_lib_prefix=no | |
11626 | ;; | |
11627 | freebsd-*) | |
d50284c4 | 11628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11629 | need_version=yes |
11630 | ;; | |
11631 | esac | |
11632 | shlibpath_var=LD_LIBRARY_PATH | |
11633 | case $host_os in | |
b0322a85 | 11634 | freebsd2.*) |
d9898ee8 | 11635 | shlibpath_overrides_runpath=yes |
11636 | ;; | |
11637 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11638 | shlibpath_overrides_runpath=yes | |
11639 | hardcode_into_libs=yes | |
11640 | ;; | |
11641 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11642 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11643 | shlibpath_overrides_runpath=no | |
11644 | hardcode_into_libs=yes | |
11645 | ;; | |
ac40fd9e | 11646 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 11647 | shlibpath_overrides_runpath=yes |
11648 | hardcode_into_libs=yes | |
11649 | ;; | |
11650 | esac | |
11651 | ;; | |
11652 | ||
b0322a85 CE |
11653 | haiku*) |
11654 | version_type=linux # correct to gnu/linux during the next big refactor | |
11655 | need_lib_prefix=no | |
11656 | need_version=no | |
11657 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
11658 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11659 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 11660 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 11661 | shlibpath_overrides_runpath=no |
b0322a85 | 11662 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 11663 | hardcode_into_libs=yes |
11664 | ;; | |
11665 | ||
11666 | hpux9* | hpux10* | hpux11*) | |
11667 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11668 | # link against other versions. | |
11669 | version_type=sunos | |
11670 | need_lib_prefix=no | |
11671 | need_version=no | |
11672 | case $host_cpu in | |
11673 | ia64*) | |
11674 | shrext_cmds='.so' | |
11675 | hardcode_into_libs=yes | |
11676 | dynamic_linker="$host_os dld.so" | |
11677 | shlibpath_var=LD_LIBRARY_PATH | |
11678 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11680 | soname_spec='$libname$release$shared_ext$major' | |
11681 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 11682 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 11683 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 11684 | else |
11685 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 11686 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 11687 | fi |
d9898ee8 | 11688 | ;; |
8d138742 CE |
11689 | hppa*64*) |
11690 | shrext_cmds='.sl' | |
11691 | hardcode_into_libs=yes | |
11692 | dynamic_linker="$host_os dld.sl" | |
11693 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11694 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11695 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11696 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11697 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11698 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11699 | ;; | |
11700 | *) | |
d9898ee8 | 11701 | shrext_cmds='.sl' |
11702 | dynamic_linker="$host_os dld.sl" | |
11703 | shlibpath_var=SHLIB_PATH | |
11704 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
11705 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11706 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11707 | ;; |
11708 | esac | |
b0322a85 | 11709 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 11710 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
11711 | # or fails outright, so override atomically: |
11712 | install_override_mode=555 | |
d9898ee8 | 11713 | ;; |
11714 | ||
ac40fd9e | 11715 | interix[3-9]*) |
b0322a85 | 11716 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11717 | need_lib_prefix=no |
11718 | need_version=no | |
d50284c4 CE |
11719 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11720 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11721 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11722 | shlibpath_var=LD_LIBRARY_PATH | |
11723 | shlibpath_overrides_runpath=no | |
11724 | hardcode_into_libs=yes | |
11725 | ;; | |
11726 | ||
11727 | irix5* | irix6* | nonstopux*) | |
11728 | case $host_os in | |
11729 | nonstopux*) version_type=nonstopux ;; | |
11730 | *) | |
d50284c4 | 11731 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 11732 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11733 | else |
11734 | version_type=irix | |
11735 | fi ;; | |
11736 | esac | |
11737 | need_lib_prefix=no | |
11738 | need_version=no | |
d50284c4 CE |
11739 | soname_spec='$libname$release$shared_ext$major' |
11740 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 11741 | case $host_os in |
11742 | irix5* | nonstopux*) | |
11743 | libsuff= shlibsuff= | |
11744 | ;; | |
11745 | *) | |
11746 | case $LD in # libtool.m4 will add one of these switches to LD | |
11747 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11748 | libsuff= shlibsuff= libmagic=32-bit;; | |
11749 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11750 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11751 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11752 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11753 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11754 | esac | |
11755 | ;; | |
11756 | esac | |
11757 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11758 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
11759 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11760 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 11761 | hardcode_into_libs=yes |
11762 | ;; | |
11763 | ||
11764 | # No shared lib support for Linux oldld, aout, or coff. | |
11765 | linux*oldld* | linux*aout* | linux*coff*) | |
11766 | dynamic_linker=no | |
11767 | ;; | |
11768 | ||
d50284c4 CE |
11769 | linux*android*) |
11770 | version_type=none # Android doesn't support versioned libraries. | |
11771 | need_lib_prefix=no | |
11772 | need_version=no | |
11773 | library_names_spec='$libname$release$shared_ext' | |
11774 | soname_spec='$libname$release$shared_ext' | |
11775 | finish_cmds= | |
11776 | shlibpath_var=LD_LIBRARY_PATH | |
11777 | shlibpath_overrides_runpath=yes | |
11778 | ||
11779 | # This implies no fast_install, which is unacceptable. | |
11780 | # Some rework will be needed to allow for fast_install | |
11781 | # before this can be enabled. | |
11782 | hardcode_into_libs=yes | |
11783 | ||
11784 | dynamic_linker='Android linker' | |
11785 | # Don't embed -rpath directories since the linker doesn't support them. | |
11786 | hardcode_libdir_flag_spec='-L$libdir' | |
11787 | ;; | |
11788 | ||
b0322a85 | 11789 | # This must be glibc/ELF. |
d50284c4 | 11790 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 11791 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11792 | need_lib_prefix=no |
11793 | need_version=no | |
d50284c4 CE |
11794 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11795 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11796 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11797 | shlibpath_var=LD_LIBRARY_PATH | |
11798 | shlibpath_overrides_runpath=no | |
b0322a85 | 11799 | |
8d138742 | 11800 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
11801 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11802 | $as_echo_n "(cached) " >&6 | |
11803 | else | |
11804 | lt_cv_shlibpath_overrides_runpath=no | |
11805 | save_LDFLAGS=$LDFLAGS | |
11806 | save_libdir=$libdir | |
11807 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11808 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
11810 | /* end confdefs.h. */ |
11811 | ||
11812 | int | |
11813 | main () | |
11814 | { | |
11815 | ||
11816 | ; | |
11817 | return 0; | |
11818 | } | |
11819 | _ACEOF | |
b0322a85 CE |
11820 | if ac_fn_c_try_link "$LINENO"; then : |
11821 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11822 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 11823 | fi |
b0322a85 CE |
11824 | fi |
11825 | rm -f core conftest.err conftest.$ac_objext \ | |
11826 | conftest$ac_exeext conftest.$ac_ext | |
11827 | LDFLAGS=$save_LDFLAGS | |
11828 | libdir=$save_libdir | |
8d138742 CE |
11829 | |
11830 | fi | |
11831 | ||
b0322a85 | 11832 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 11833 | |
d9898ee8 | 11834 | # This implies no fast_install, which is unacceptable. |
11835 | # Some rework will be needed to allow for fast_install | |
11836 | # before this can be enabled. | |
11837 | hardcode_into_libs=yes | |
8d138742 CE |
11838 | |
11839 | # Add ABI-specific directories to the system library path. | |
11840 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11841 | |
d50284c4 CE |
11842 | # Ideally, we could use ldconfig to report *all* directores which are |
11843 | # searched for libraries, however this is still not possible. Aside from not | |
11844 | # being certain /sbin/ldconfig is available, command | |
11845 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11846 | # even though it is searched at run-time. Try to do the best guess by | |
11847 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11848 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11849 | 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 | 11850 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11851 | fi |
11852 | ||
11853 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11854 | # powerpc, because MkLinux only supported shared libraries with the | |
11855 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11856 | # most powerpc-linux boxes support dynamic linking these days and | |
11857 | # people can always --disable-shared, the test was removed, and we | |
11858 | # assume the GNU/Linux dynamic linker is in use. | |
11859 | dynamic_linker='GNU/Linux ld.so' | |
11860 | ;; | |
11861 | ||
d9898ee8 | 11862 | netbsd*) |
11863 | version_type=sunos | |
11864 | need_lib_prefix=no | |
11865 | need_version=no | |
8d138742 | 11866 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11867 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11869 | dynamic_linker='NetBSD (a.out) ld.so' | |
11870 | else | |
d50284c4 CE |
11871 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11872 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11873 | dynamic_linker='NetBSD ld.elf_so' |
11874 | fi | |
11875 | shlibpath_var=LD_LIBRARY_PATH | |
11876 | shlibpath_overrides_runpath=yes | |
11877 | hardcode_into_libs=yes | |
11878 | ;; | |
11879 | ||
11880 | newsos6) | |
b0322a85 | 11881 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11882 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11883 | shlibpath_var=LD_LIBRARY_PATH |
11884 | shlibpath_overrides_runpath=yes | |
11885 | ;; | |
11886 | ||
8d138742 CE |
11887 | *nto* | *qnx*) |
11888 | version_type=qnx | |
d9898ee8 | 11889 | need_lib_prefix=no |
11890 | need_version=no | |
d50284c4 CE |
11891 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11892 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11893 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11894 | shlibpath_overrides_runpath=no |
11895 | hardcode_into_libs=yes | |
11896 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11897 | ;; |
11898 | ||
d50284c4 | 11899 | openbsd* | bitrig*) |
d9898ee8 | 11900 | version_type=sunos |
d50284c4 | 11901 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11902 | need_lib_prefix=no |
d50284c4 CE |
11903 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11904 | need_version=no | |
d9898ee8 | 11905 | else |
d50284c4 | 11906 | need_version=yes |
d9898ee8 | 11907 | fi |
d50284c4 CE |
11908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11910 | shlibpath_var=LD_LIBRARY_PATH | |
11911 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11912 | ;; |
11913 | ||
11914 | os2*) | |
11915 | libname_spec='$name' | |
d50284c4 CE |
11916 | version_type=windows |
11917 | shrext_cmds=.dll | |
11918 | need_version=no | |
d9898ee8 | 11919 | need_lib_prefix=no |
d50284c4 CE |
11920 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11921 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11922 | v=$($ECHO $release$versuffix | tr -d .-); | |
11923 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11924 | $ECHO $n$v`$shared_ext' | |
11925 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11926 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11927 | shlibpath_var=BEGINLIBPATH |
11928 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11929 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11930 | postinstall_cmds='base_file=`basename \$file`~ | |
11931 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11932 | dldir=$destdir/`dirname \$dlpath`~ | |
11933 | test -d \$dldir || mkdir -p \$dldir~ | |
11934 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11935 | chmod a+x \$dldir/$dlname~ | |
11936 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11937 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11938 | fi' | |
11939 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11940 | dlpath=$dir/\$dldll~ | |
11941 | $RM \$dlpath' | |
d9898ee8 | 11942 | ;; |
11943 | ||
11944 | osf3* | osf4* | osf5*) | |
11945 | version_type=osf | |
11946 | need_lib_prefix=no | |
11947 | need_version=no | |
d50284c4 CE |
11948 | soname_spec='$libname$release$shared_ext$major' |
11949 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11950 | shlibpath_var=LD_LIBRARY_PATH |
11951 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11953 | ;; |
11954 | ||
ac40fd9e | 11955 | rdos*) |
11956 | dynamic_linker=no | |
11957 | ;; | |
11958 | ||
d9898ee8 | 11959 | solaris*) |
b0322a85 | 11960 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11961 | need_lib_prefix=no |
11962 | need_version=no | |
d50284c4 CE |
11963 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11964 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11965 | shlibpath_var=LD_LIBRARY_PATH |
11966 | shlibpath_overrides_runpath=yes | |
11967 | hardcode_into_libs=yes | |
11968 | # ldd complains unless libraries are executable | |
11969 | postinstall_cmds='chmod +x $lib' | |
11970 | ;; | |
11971 | ||
11972 | sunos4*) | |
11973 | version_type=sunos | |
d50284c4 | 11974 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11975 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11976 | shlibpath_var=LD_LIBRARY_PATH | |
11977 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11978 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11979 | need_lib_prefix=no |
11980 | fi | |
11981 | need_version=yes | |
11982 | ;; | |
11983 | ||
11984 | sysv4 | sysv4.3*) | |
b0322a85 | 11985 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11986 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11987 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11988 | shlibpath_var=LD_LIBRARY_PATH |
11989 | case $host_vendor in | |
11990 | sni) | |
11991 | shlibpath_overrides_runpath=no | |
11992 | need_lib_prefix=no | |
d9898ee8 | 11993 | runpath_var=LD_RUN_PATH |
11994 | ;; | |
11995 | siemens) | |
11996 | need_lib_prefix=no | |
11997 | ;; | |
11998 | motorola) | |
11999 | need_lib_prefix=no | |
12000 | need_version=no | |
12001 | shlibpath_overrides_runpath=no | |
12002 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12003 | ;; | |
12004 | esac | |
12005 | ;; | |
12006 | ||
12007 | sysv4*MP*) | |
d50284c4 | 12008 | if test -d /usr/nec; then |
b0322a85 | 12009 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
12010 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
12011 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 12012 | shlibpath_var=LD_LIBRARY_PATH |
12013 | fi | |
12014 | ;; | |
12015 | ||
12016 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 12017 | version_type=sco |
d9898ee8 | 12018 | need_lib_prefix=no |
12019 | need_version=no | |
d50284c4 CE |
12020 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
12021 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 12022 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 12023 | shlibpath_overrides_runpath=yes |
d9898ee8 | 12024 | hardcode_into_libs=yes |
d50284c4 | 12025 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 12026 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 12027 | else |
12028 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 12029 | case $host_os in |
12030 | sco3.2v5*) | |
12031 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12032 | ;; | |
12033 | esac | |
12034 | fi | |
12035 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12036 | ;; | |
12037 | ||
8d138742 CE |
12038 | tpf*) |
12039 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 12040 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
12041 | need_lib_prefix=no |
12042 | need_version=no | |
d50284c4 | 12043 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
12044 | shlibpath_var=LD_LIBRARY_PATH |
12045 | shlibpath_overrides_runpath=no | |
12046 | hardcode_into_libs=yes | |
12047 | ;; | |
12048 | ||
d9898ee8 | 12049 | uts4*) |
b0322a85 | 12050 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
12051 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12052 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 12053 | shlibpath_var=LD_LIBRARY_PATH |
12054 | ;; | |
12055 | ||
12056 | *) | |
12057 | dynamic_linker=no | |
12058 | ;; | |
12059 | esac | |
b0322a85 | 12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 12061 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 12062 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 12063 | |
12064 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 12065 | if test yes = "$GCC"; then |
d9898ee8 | 12066 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12067 | fi | |
12068 | ||
d50284c4 CE |
12069 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
12070 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
d9898ee8 | 12071 | fi |
d50284c4 CE |
12072 | |
12073 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12074 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 12075 | fi |
12076 | ||
d50284c4 CE |
12077 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
12078 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12079 | ||
12080 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12081 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12082 | ||
12083 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12084 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12085 | ||
12086 | ||
12087 | ||
12088 | ||
12089 | ||
12090 | ||
d9898ee8 | 12091 | |
d9898ee8 | 12092 | |
d9898ee8 | 12093 | |
d9898ee8 | 12094 | |
d9898ee8 | 12095 | |
d9898ee8 | 12096 | |
d9898ee8 | 12097 | |
d9898ee8 | 12098 | |
d9898ee8 | 12099 | |
d9898ee8 | 12100 | |
d9898ee8 | 12101 | |
d9898ee8 | 12102 | |
d9898ee8 | 12103 | |
d9898ee8 | 12104 | |
d9898ee8 | 12105 | |
d9898ee8 | 12106 | |
d9898ee8 | 12107 | |
d9898ee8 | 12108 | |
d9898ee8 | 12109 | |
d9898ee8 | 12110 | |
d9898ee8 | 12111 | |
d9898ee8 | 12112 | |
d9898ee8 | 12113 | |
d9898ee8 | 12114 | |
d9898ee8 | 12115 | |
d9898ee8 | 12116 | |
d9898ee8 | 12117 | |
d9898ee8 | 12118 | |
d9898ee8 | 12119 | |
d9898ee8 | 12120 | |
d9898ee8 | 12121 | |
d9898ee8 | 12122 | |
d9898ee8 | 12123 | |
d9898ee8 | 12124 | |
d9898ee8 | 12125 | |
d9898ee8 | 12126 | |
d9898ee8 | 12127 | |
d9898ee8 | 12128 | |
d9898ee8 | 12129 | |
d9898ee8 | 12130 | |
d9898ee8 | 12131 | |
d9898ee8 | 12132 | |
d9898ee8 | 12133 | |
d9898ee8 | 12134 | |
d9898ee8 | 12135 | |
d9898ee8 | 12136 | |
d9898ee8 | 12137 | |
d9898ee8 | 12138 | |
d9898ee8 | 12139 | |
d9898ee8 | 12140 | |
d9898ee8 | 12141 | |
d9898ee8 | 12142 | |
d9898ee8 | 12143 | |
d9898ee8 | 12144 | |
d9898ee8 | 12145 | |
d9898ee8 | 12146 | |
d9898ee8 | 12147 | |
d9898ee8 | 12148 | |
d9898ee8 | 12149 | |
d9898ee8 | 12150 | |
d9898ee8 | 12151 | |
d9898ee8 | 12152 | |
d9898ee8 | 12153 | |
d9898ee8 | 12154 | |
d9898ee8 | 12155 | |
d9898ee8 | 12156 | |
d9898ee8 | 12157 | |
d9898ee8 | 12158 | |
d9898ee8 | 12159 | |
d9898ee8 | 12160 | |
d9898ee8 | 12161 | |
d9898ee8 | 12162 | |
d9898ee8 | 12163 | |
d9898ee8 | 12164 | |
d9898ee8 | 12165 | |
d9898ee8 | 12166 | |
d9898ee8 | 12167 | |
d9898ee8 | 12168 | |
d9898ee8 | 12169 | |
d9898ee8 | 12170 | |
d9898ee8 | 12171 | |
d9898ee8 | 12172 | |
d9898ee8 | 12173 | |
d9898ee8 | 12174 | |
d9898ee8 | 12175 | |
d9898ee8 | 12176 | |
b0322a85 CE |
12177 | |
12178 | ||
12179 | ||
12180 | ||
12181 | ||
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
12183 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
12184 | hardcode_action= | |
12185 | if test -n "$hardcode_libdir_flag_spec" || | |
12186 | test -n "$runpath_var" || | |
d50284c4 | 12187 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 12188 | |
8d138742 | 12189 | # We can hardcode non-existent directories. |
d50284c4 | 12190 | if test no != "$hardcode_direct" && |
8d138742 CE |
12191 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12192 | # have to relink, otherwise we might link with an installed library | |
12193 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
12194 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
12195 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
12196 | # Linking always hardcodes the temporary library directory. |
12197 | hardcode_action=relink | |
12198 | else | |
12199 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12200 | hardcode_action=immediate | |
d9898ee8 | 12201 | fi |
8d138742 CE |
12202 | else |
12203 | # We cannot hardcode anything, or else we can only hardcode existing | |
12204 | # directories. | |
12205 | hardcode_action=unsupported | |
d9898ee8 | 12206 | fi |
b0322a85 | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 12208 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 12209 | |
d50284c4 CE |
12210 | if test relink = "$hardcode_action" || |
12211 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
12212 | # Fast installation is not supported |
12213 | enable_fast_install=no | |
d50284c4 CE |
12214 | elif test yes = "$shlibpath_overrides_runpath" || |
12215 | test no = "$enable_shared"; then | |
8d138742 CE |
12216 | # Fast installation is not necessary |
12217 | enable_fast_install=needless | |
12218 | fi | |
d9898ee8 | 12219 | |
d9898ee8 | 12220 | |
d9898ee8 | 12221 | |
d9898ee8 | 12222 | |
d9898ee8 | 12223 | |
d9898ee8 | 12224 | |
d50284c4 | 12225 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
12226 | enable_dlopen=unknown |
12227 | enable_dlopen_self=unknown | |
12228 | enable_dlopen_self_static=unknown | |
12229 | else | |
12230 | lt_cv_dlopen=no | |
12231 | lt_cv_dlopen_libs= | |
d9898ee8 | 12232 | |
8d138742 CE |
12233 | case $host_os in |
12234 | beos*) | |
d50284c4 | 12235 | lt_cv_dlopen=load_add_on |
8d138742 CE |
12236 | lt_cv_dlopen_libs= |
12237 | lt_cv_dlopen_self=yes | |
12238 | ;; | |
d9898ee8 | 12239 | |
8d138742 | 12240 | mingw* | pw32* | cegcc*) |
d50284c4 | 12241 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
12242 | lt_cv_dlopen_libs= |
12243 | ;; | |
d9898ee8 | 12244 | |
8d138742 | 12245 | cygwin*) |
d50284c4 | 12246 | lt_cv_dlopen=dlopen |
b0322a85 CE |
12247 | lt_cv_dlopen_libs= |
12248 | ;; | |
d9898ee8 | 12249 | |
b0322a85 | 12250 | darwin*) |
d50284c4 | 12251 | # if libdl is installed we need to link against it |
b0322a85 CE |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12253 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12254 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12255 | $as_echo_n "(cached) " >&6 | |
12256 | else | |
12257 | ac_check_lib_save_LIBS=$LIBS | |
12258 | LIBS="-ldl $LIBS" | |
12259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12260 | /* end confdefs.h. */ | |
d9898ee8 | 12261 | |
8d138742 CE |
12262 | /* Override any GCC internal prototype to avoid an error. |
12263 | Use char because int might match the return type of a GCC | |
12264 | builtin and then its argument prototype would still apply. */ | |
12265 | #ifdef __cplusplus | |
12266 | extern "C" | |
12267 | #endif | |
b0322a85 | 12268 | char dlopen (); |
8d138742 CE |
12269 | int |
12270 | main () | |
12271 | { | |
b0322a85 | 12272 | return dlopen (); |
8d138742 CE |
12273 | ; |
12274 | return 0; | |
12275 | } | |
12276 | _ACEOF | |
b0322a85 CE |
12277 | if ac_fn_c_try_link "$LINENO"; then : |
12278 | ac_cv_lib_dl_dlopen=yes | |
8d138742 | 12279 | else |
b0322a85 CE |
12280 | ac_cv_lib_dl_dlopen=no |
12281 | fi | |
12282 | rm -f core conftest.err conftest.$ac_objext \ | |
12283 | conftest$ac_exeext conftest.$ac_ext | |
12284 | LIBS=$ac_check_lib_save_LIBS | |
d9898ee8 | 12285 | fi |
b0322a85 CE |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12287 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12288 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 12289 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
b0322a85 CE |
12290 | else |
12291 | ||
d50284c4 | 12292 | lt_cv_dlopen=dyld |
b0322a85 CE |
12293 | lt_cv_dlopen_libs= |
12294 | lt_cv_dlopen_self=yes | |
d9898ee8 | 12295 | |
8d138742 | 12296 | fi |
b0322a85 CE |
12297 | |
12298 | ;; | |
12299 | ||
d50284c4 CE |
12300 | tpf*) |
12301 | # Don't try to run any link tests for TPF. We know it's impossible | |
12302 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12303 | lt_cv_dlopen=dlopen | |
12304 | lt_cv_dlopen_libs= | |
12305 | lt_cv_dlopen_self=no | |
12306 | ;; | |
12307 | ||
b0322a85 CE |
12308 | *) |
12309 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12310 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 12311 | lt_cv_dlopen=shl_load |
8d138742 | 12312 | else |
b0322a85 | 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 12314 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 12315 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
12316 | $as_echo_n "(cached) " >&6 |
12317 | else | |
12318 | ac_check_lib_save_LIBS=$LIBS | |
12319 | LIBS="-ldld $LIBS" | |
b0322a85 | 12320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12321 | /* end confdefs.h. */ |
d9898ee8 | 12322 | |
8d138742 CE |
12323 | /* Override any GCC internal prototype to avoid an error. |
12324 | Use char because int might match the return type of a GCC | |
12325 | builtin and then its argument prototype would still apply. */ | |
12326 | #ifdef __cplusplus | |
12327 | extern "C" | |
12328 | #endif | |
12329 | char shl_load (); | |
12330 | int | |
12331 | main () | |
12332 | { | |
12333 | return shl_load (); | |
12334 | ; | |
12335 | return 0; | |
12336 | } | |
12337 | _ACEOF | |
b0322a85 | 12338 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 12339 | ac_cv_lib_dld_shl_load=yes |
d9898ee8 | 12340 | else |
b0322a85 | 12341 | ac_cv_lib_dld_shl_load=no |
d9898ee8 | 12342 | fi |
b0322a85 CE |
12343 | rm -f core conftest.err conftest.$ac_objext \ |
12344 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12345 | LIBS=$ac_check_lib_save_LIBS |
12346 | fi | |
b0322a85 | 12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 12348 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 12349 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 12350 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 12351 | else |
b0322a85 CE |
12352 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12353 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 12354 | lt_cv_dlopen=dlopen |
8d138742 | 12355 | else |
b0322a85 | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 12357 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 12358 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
12359 | $as_echo_n "(cached) " >&6 |
12360 | else | |
12361 | ac_check_lib_save_LIBS=$LIBS | |
12362 | LIBS="-ldl $LIBS" | |
b0322a85 | 12363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12364 | /* end confdefs.h. */ |
d9898ee8 | 12365 | |
8d138742 CE |
12366 | /* Override any GCC internal prototype to avoid an error. |
12367 | Use char because int might match the return type of a GCC | |
12368 | builtin and then its argument prototype would still apply. */ | |
12369 | #ifdef __cplusplus | |
12370 | extern "C" | |
12371 | #endif | |
12372 | char dlopen (); | |
12373 | int | |
12374 | main () | |
12375 | { | |
12376 | return dlopen (); | |
12377 | ; | |
12378 | return 0; | |
12379 | } | |
12380 | _ACEOF | |
b0322a85 | 12381 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12382 | ac_cv_lib_dl_dlopen=yes |
12383 | else | |
b0322a85 | 12384 | ac_cv_lib_dl_dlopen=no |
8d138742 | 12385 | fi |
b0322a85 CE |
12386 | rm -f core conftest.err conftest.$ac_objext \ |
12387 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12388 | LIBS=$ac_check_lib_save_LIBS |
12389 | fi | |
b0322a85 | 12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 12391 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 12392 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 12393 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 12394 | else |
b0322a85 | 12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 12396 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 12397 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
12398 | $as_echo_n "(cached) " >&6 |
12399 | else | |
12400 | ac_check_lib_save_LIBS=$LIBS | |
12401 | LIBS="-lsvld $LIBS" | |
b0322a85 | 12402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12403 | /* end confdefs.h. */ |
d9898ee8 | 12404 | |
8d138742 CE |
12405 | /* Override any GCC internal prototype to avoid an error. |
12406 | Use char because int might match the return type of a GCC | |
12407 | builtin and then its argument prototype would still apply. */ | |
12408 | #ifdef __cplusplus | |
12409 | extern "C" | |
12410 | #endif | |
12411 | char dlopen (); | |
12412 | int | |
12413 | main () | |
12414 | { | |
12415 | return dlopen (); | |
12416 | ; | |
12417 | return 0; | |
12418 | } | |
12419 | _ACEOF | |
b0322a85 | 12420 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12421 | ac_cv_lib_svld_dlopen=yes |
12422 | else | |
b0322a85 | 12423 | ac_cv_lib_svld_dlopen=no |
8d138742 | 12424 | fi |
b0322a85 CE |
12425 | rm -f core conftest.err conftest.$ac_objext \ |
12426 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12427 | LIBS=$ac_check_lib_save_LIBS |
12428 | fi | |
b0322a85 | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 12430 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 12431 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 12432 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 12433 | else |
b0322a85 | 12434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 12435 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 12436 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
12437 | $as_echo_n "(cached) " >&6 |
12438 | else | |
12439 | ac_check_lib_save_LIBS=$LIBS | |
12440 | LIBS="-ldld $LIBS" | |
b0322a85 | 12441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12442 | /* end confdefs.h. */ |
d9898ee8 | 12443 | |
8d138742 CE |
12444 | /* Override any GCC internal prototype to avoid an error. |
12445 | Use char because int might match the return type of a GCC | |
12446 | builtin and then its argument prototype would still apply. */ | |
12447 | #ifdef __cplusplus | |
12448 | extern "C" | |
12449 | #endif | |
12450 | char dld_link (); | |
12451 | int | |
12452 | main () | |
12453 | { | |
12454 | return dld_link (); | |
12455 | ; | |
12456 | return 0; | |
12457 | } | |
12458 | _ACEOF | |
b0322a85 | 12459 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12460 | ac_cv_lib_dld_dld_link=yes |
12461 | else | |
b0322a85 | 12462 | ac_cv_lib_dld_dld_link=no |
8d138742 | 12463 | fi |
b0322a85 CE |
12464 | rm -f core conftest.err conftest.$ac_objext \ |
12465 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12466 | LIBS=$ac_check_lib_save_LIBS |
12467 | fi | |
b0322a85 | 12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 12469 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 12470 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 12471 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 12472 | fi |
d9898ee8 | 12473 | |
d9898ee8 | 12474 | |
8d138742 | 12475 | fi |
d9898ee8 | 12476 | |
d9898ee8 | 12477 | |
8d138742 | 12478 | fi |
d9898ee8 | 12479 | |
d9898ee8 | 12480 | |
8d138742 | 12481 | fi |
d9898ee8 | 12482 | |
d9898ee8 | 12483 | |
8d138742 | 12484 | fi |
d9898ee8 | 12485 | |
d9898ee8 | 12486 | |
8d138742 | 12487 | fi |
d9898ee8 | 12488 | |
8d138742 CE |
12489 | ;; |
12490 | esac | |
d9898ee8 | 12491 | |
d50284c4 | 12492 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 12493 | enable_dlopen=no |
d50284c4 CE |
12494 | else |
12495 | enable_dlopen=yes | |
8d138742 | 12496 | fi |
d9898ee8 | 12497 | |
8d138742 CE |
12498 | case $lt_cv_dlopen in |
12499 | dlopen) | |
d50284c4 CE |
12500 | save_CPPFLAGS=$CPPFLAGS |
12501 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 12502 | |
d50284c4 | 12503 | save_LDFLAGS=$LDFLAGS |
8d138742 | 12504 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 12505 | |
d50284c4 | 12506 | save_LIBS=$LIBS |
8d138742 | 12507 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 12508 | |
b0322a85 | 12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 12510 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 12511 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
12512 | $as_echo_n "(cached) " >&6 |
12513 | else | |
d50284c4 | 12514 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
12515 | lt_cv_dlopen_self=cross |
12516 | else | |
12517 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12518 | lt_status=$lt_dlunknown | |
12519 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12520 | #line $LINENO "configure" |
8d138742 | 12521 | #include "confdefs.h" |
d9898ee8 | 12522 | |
8d138742 CE |
12523 | #if HAVE_DLFCN_H |
12524 | #include <dlfcn.h> | |
12525 | #endif | |
d9898ee8 | 12526 | |
8d138742 | 12527 | #include <stdio.h> |
d9898ee8 | 12528 | |
8d138742 CE |
12529 | #ifdef RTLD_GLOBAL |
12530 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12531 | #else | |
12532 | # ifdef DL_GLOBAL | |
12533 | # define LT_DLGLOBAL DL_GLOBAL | |
12534 | # else | |
12535 | # define LT_DLGLOBAL 0 | |
12536 | # endif | |
12537 | #endif | |
d9898ee8 | 12538 | |
8d138742 CE |
12539 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12540 | find out it does not work in some platform. */ | |
12541 | #ifndef LT_DLLAZY_OR_NOW | |
12542 | # ifdef RTLD_LAZY | |
12543 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12544 | # else | |
12545 | # ifdef DL_LAZY | |
12546 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12547 | # else | |
12548 | # ifdef RTLD_NOW | |
12549 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12550 | # else | |
12551 | # ifdef DL_NOW | |
12552 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12553 | # else | |
12554 | # define LT_DLLAZY_OR_NOW 0 | |
12555 | # endif | |
12556 | # endif | |
12557 | # endif | |
12558 | # endif | |
12559 | #endif | |
d9898ee8 | 12560 | |
d50284c4 | 12561 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12562 | correspondingly for the symbols needed. */ |
d50284c4 | 12563 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12564 | int fnord () __attribute__((visibility("default"))); |
12565 | #endif | |
12566 | ||
12567 | int fnord () { return 42; } | |
8d138742 CE |
12568 | int main () |
12569 | { | |
12570 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12571 | int status = $lt_dlunknown; | |
d9898ee8 | 12572 | |
8d138742 CE |
12573 | if (self) |
12574 | { | |
12575 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12576 | else |
12577 | { | |
12578 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12579 | else puts (dlerror ()); | |
12580 | } | |
8d138742 CE |
12581 | /* dlclose (self); */ |
12582 | } | |
12583 | else | |
12584 | puts (dlerror ()); | |
d9898ee8 | 12585 | |
8d138742 CE |
12586 | return status; |
12587 | } | |
12588 | _LT_EOF | |
b0322a85 | 12589 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12590 | (eval $ac_link) 2>&5 |
12591 | ac_status=$? | |
b0322a85 | 12592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12593 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12594 | (./conftest; exit; ) >&5 2>/dev/null |
12595 | lt_status=$? | |
12596 | case x$lt_status in | |
12597 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12598 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12599 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12600 | esac | |
12601 | else : | |
12602 | # compilation failed | |
12603 | lt_cv_dlopen_self=no | |
12604 | fi | |
12605 | fi | |
12606 | rm -fr conftest* | |
d9898ee8 | 12607 | |
d9898ee8 | 12608 | |
8d138742 | 12609 | fi |
b0322a85 | 12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 12611 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 12612 | |
d50284c4 | 12613 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 12614 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 12616 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 12617 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
12618 | $as_echo_n "(cached) " >&6 |
12619 | else | |
d50284c4 | 12620 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
12621 | lt_cv_dlopen_self_static=cross |
12622 | else | |
12623 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12624 | lt_status=$lt_dlunknown | |
12625 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12626 | #line $LINENO "configure" |
8d138742 | 12627 | #include "confdefs.h" |
d9898ee8 | 12628 | |
8d138742 CE |
12629 | #if HAVE_DLFCN_H |
12630 | #include <dlfcn.h> | |
12631 | #endif | |
d9898ee8 | 12632 | |
8d138742 | 12633 | #include <stdio.h> |
d9898ee8 | 12634 | |
8d138742 CE |
12635 | #ifdef RTLD_GLOBAL |
12636 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12637 | #else | |
12638 | # ifdef DL_GLOBAL | |
12639 | # define LT_DLGLOBAL DL_GLOBAL | |
12640 | # else | |
12641 | # define LT_DLGLOBAL 0 | |
12642 | # endif | |
12643 | #endif | |
d9898ee8 | 12644 | |
8d138742 CE |
12645 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12646 | find out it does not work in some platform. */ | |
12647 | #ifndef LT_DLLAZY_OR_NOW | |
12648 | # ifdef RTLD_LAZY | |
12649 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12650 | # else | |
12651 | # ifdef DL_LAZY | |
12652 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12653 | # else | |
12654 | # ifdef RTLD_NOW | |
12655 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12656 | # else | |
12657 | # ifdef DL_NOW | |
12658 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12659 | # else | |
12660 | # define LT_DLLAZY_OR_NOW 0 | |
12661 | # endif | |
12662 | # endif | |
12663 | # endif | |
12664 | # endif | |
12665 | #endif | |
d9898ee8 | 12666 | |
d50284c4 | 12667 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12668 | correspondingly for the symbols needed. */ |
d50284c4 | 12669 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12670 | int fnord () __attribute__((visibility("default"))); |
12671 | #endif | |
12672 | ||
12673 | int fnord () { return 42; } | |
8d138742 CE |
12674 | int main () |
12675 | { | |
12676 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12677 | int status = $lt_dlunknown; | |
d9898ee8 | 12678 | |
8d138742 CE |
12679 | if (self) |
12680 | { | |
12681 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12682 | else |
12683 | { | |
12684 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12685 | else puts (dlerror ()); | |
12686 | } | |
8d138742 CE |
12687 | /* dlclose (self); */ |
12688 | } | |
12689 | else | |
12690 | puts (dlerror ()); | |
d9898ee8 | 12691 | |
8d138742 CE |
12692 | return status; |
12693 | } | |
12694 | _LT_EOF | |
b0322a85 | 12695 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12696 | (eval $ac_link) 2>&5 |
12697 | ac_status=$? | |
b0322a85 | 12698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12699 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12700 | (./conftest; exit; ) >&5 2>/dev/null |
12701 | lt_status=$? | |
12702 | case x$lt_status in | |
12703 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12704 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12705 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12706 | esac | |
12707 | else : | |
12708 | # compilation failed | |
12709 | lt_cv_dlopen_self_static=no | |
12710 | fi | |
12711 | fi | |
12712 | rm -fr conftest* | |
d9898ee8 | 12713 | |
d9898ee8 | 12714 | |
8d138742 | 12715 | fi |
b0322a85 | 12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
12717 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
12718 | fi | |
d9898ee8 | 12719 | |
d50284c4 CE |
12720 | CPPFLAGS=$save_CPPFLAGS |
12721 | LDFLAGS=$save_LDFLAGS | |
12722 | LIBS=$save_LIBS | |
8d138742 CE |
12723 | ;; |
12724 | esac | |
d9898ee8 | 12725 | |
8d138742 CE |
12726 | case $lt_cv_dlopen_self in |
12727 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12728 | *) enable_dlopen_self=unknown ;; | |
12729 | esac | |
d9898ee8 | 12730 | |
8d138742 CE |
12731 | case $lt_cv_dlopen_self_static in |
12732 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12733 | *) enable_dlopen_self_static=unknown ;; | |
12734 | esac | |
12735 | fi | |
d9898ee8 | 12736 | |
d9898ee8 | 12737 | |
d9898ee8 | 12738 | |
d9898ee8 | 12739 | |
d9898ee8 | 12740 | |
d9898ee8 | 12741 | |
d9898ee8 | 12742 | |
d9898ee8 | 12743 | |
d9898ee8 | 12744 | |
d9898ee8 | 12745 | |
d9898ee8 | 12746 | |
d9898ee8 | 12747 | |
d9898ee8 | 12748 | |
d9898ee8 | 12749 | |
d9898ee8 | 12750 | |
d9898ee8 | 12751 | |
d9898ee8 | 12752 | |
8d138742 CE |
12753 | striplib= |
12754 | old_striplib= | |
b0322a85 | 12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
12756 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
12757 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12758 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12759 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
12761 | $as_echo "yes" >&6; } |
12762 | else | |
12763 | # FIXME - insert some real tests, host_os isn't really good enough | |
12764 | case $host_os in | |
12765 | darwin*) | |
d50284c4 | 12766 | if test -n "$STRIP"; then |
8d138742 CE |
12767 | striplib="$STRIP -x" |
12768 | old_striplib="$STRIP -S" | |
b0322a85 | 12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
12770 | $as_echo "yes" >&6; } |
12771 | else | |
b0322a85 | 12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12773 | $as_echo "no" >&6; } |
12774 | fi | |
12775 | ;; | |
12776 | *) | |
b0322a85 | 12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12778 | $as_echo "no" >&6; } |
12779 | ;; | |
12780 | esac | |
12781 | fi | |
d9898ee8 | 12782 | |
d9898ee8 | 12783 | |
d9898ee8 | 12784 | |
d9898ee8 | 12785 | |
d9898ee8 | 12786 | |
d9898ee8 | 12787 | |
d9898ee8 | 12788 | |
d9898ee8 | 12789 | |
d9898ee8 | 12790 | |
d9898ee8 | 12791 | |
d9898ee8 | 12792 | |
d9898ee8 | 12793 | |
d50284c4 | 12794 | # Report what library types will actually be built |
b0322a85 | 12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 12796 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 12798 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 12799 | |
b0322a85 | 12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 12801 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 12802 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 12803 | |
8d138742 CE |
12804 | # On AIX, shared libraries and static libraries use the same namespace, and |
12805 | # are all built from PIC. | |
12806 | case $host_os in | |
12807 | aix3*) | |
d50284c4 | 12808 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
12809 | if test -n "$RANLIB"; then |
12810 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12811 | postinstall_cmds='$RANLIB $lib' | |
12812 | fi | |
12813 | ;; | |
d9898ee8 | 12814 | |
8d138742 | 12815 | aix[4-9]*) |
d50284c4 CE |
12816 | if test ia64 != "$host_cpu"; then |
12817 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12818 | yes,aix,yes) ;; # shared object as lib.so file only | |
12819 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12820 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12821 | esac | |
8d138742 CE |
12822 | fi |
12823 | ;; | |
12824 | esac | |
b0322a85 | 12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 12826 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 12827 | |
b0322a85 | 12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
12829 | $as_echo_n "checking whether to build static libraries... " >&6; } |
12830 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 12831 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 12833 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 12834 | |
d9898ee8 | 12835 | |
d9898ee8 | 12836 | |
12837 | ||
d9898ee8 | 12838 | fi |
d9898ee8 | 12839 | ac_ext=c |
12840 | ac_cpp='$CPP $CPPFLAGS' | |
12841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12844 | ||
d50284c4 | 12845 | CC=$lt_save_CC |
d9898ee8 | 12846 | |
d9898ee8 | 12847 | |
d9898ee8 | 12848 | |
12849 | ||
d9898ee8 | 12850 | |
d9898ee8 | 12851 | |
d9898ee8 | 12852 | |
d9898ee8 | 12853 | |
d9898ee8 | 12854 | |
d9898ee8 | 12855 | |
d9898ee8 | 12856 | |
d9898ee8 | 12857 | |
12858 | ||
b0322a85 CE |
12859 | |
12860 | ||
8d138742 | 12861 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12862 | |
d9898ee8 | 12863 | |
12864 | ||
d9898ee8 | 12865 | |
8d138742 | 12866 | # Only expand once: |
d9898ee8 | 12867 | |
d9898ee8 | 12868 | |
d9898ee8 | 12869 | |
8d138742 CE |
12870 | if test "$PS" = "ps" |
12871 | then | |
b0322a85 | 12872 | as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5 |
8d138742 | 12873 | fi |
d9898ee8 | 12874 | |
8d138742 CE |
12875 | if test x$GXX = xyes |
12876 | then | |
12877 | CFLAGS="-Wall $CFLAGS" | |
12878 | fi | |
d9898ee8 | 12879 | |
8d138742 | 12880 | CFLAGS="-I.. -I$srcdir/.. $CFLAGS" |
d9898ee8 | 12881 | |
d9898ee8 | 12882 | |
b0322a85 | 12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
8d138742 | 12884 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
b0322a85 | 12885 | if ${ac_cv_header_sys_wait_h+:} false; then : |
8d138742 CE |
12886 | $as_echo_n "(cached) " >&6 |
12887 | else | |
b0322a85 | 12888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12889 | /* end confdefs.h. */ |
12890 | #include <sys/types.h> | |
12891 | #include <sys/wait.h> | |
12892 | #ifndef WEXITSTATUS | |
12893 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
12894 | #endif | |
12895 | #ifndef WIFEXITED | |
12896 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
12897 | #endif | |
12898 | ||
12899 | int | |
12900 | main () | |
12901 | { | |
12902 | int s; | |
12903 | wait (&s); | |
12904 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
12905 | ; | |
12906 | return 0; | |
12907 | } | |
12908 | _ACEOF | |
b0322a85 | 12909 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
12910 | ac_cv_header_sys_wait_h=yes |
12911 | else | |
b0322a85 | 12912 | ac_cv_header_sys_wait_h=no |
8d138742 | 12913 | fi |
8d138742 CE |
12914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12915 | fi | |
b0322a85 | 12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
8d138742 CE |
12917 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
12918 | if test $ac_cv_header_sys_wait_h = yes; then | |
12919 | ||
b0322a85 CE |
12920 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
12921 | ||
8d138742 | 12922 | fi |
b0322a85 CE |
12923 | |
12924 | for ac_header in unistd.h fcntl.h | |
12925 | do : | |
12926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12927 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12928 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
12929 | cat >>confdefs.h <<_ACEOF |
12930 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12931 | _ACEOF | |
d9898ee8 | 12932 | |
8d138742 | 12933 | fi |
d9898ee8 | 12934 | |
8d138742 | 12935 | done |
d9898ee8 | 12936 | |
d9898ee8 | 12937 | |
b0322a85 CE |
12938 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
12939 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
12940 | ||
8d138742 | 12941 | else |
b0322a85 CE |
12942 | |
12943 | cat >>confdefs.h <<_ACEOF | |
12944 | #define pid_t int | |
8d138742 | 12945 | _ACEOF |
b0322a85 CE |
12946 | |
12947 | fi | |
12948 | ||
12949 | # Check whether --enable-largefile was given. | |
12950 | if test "${enable_largefile+set}" = set; then : | |
12951 | enableval=$enable_largefile; | |
12952 | fi | |
12953 | ||
12954 | if test "$enable_largefile" != no; then | |
12955 | ||
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12957 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12958 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
12959 | $as_echo_n "(cached) " >&6 | |
12960 | else | |
12961 | ac_cv_sys_largefile_CC=no | |
12962 | if test "$GCC" != yes; then | |
12963 | ac_save_CC=$CC | |
12964 | while :; do | |
12965 | # IRIX 6.2 and later do not support large files by default, | |
12966 | # so use the C compiler's -n32 option if that helps. | |
12967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12968 | /* end confdefs.h. */ |
b0322a85 CE |
12969 | #include <sys/types.h> |
12970 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12971 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12972 | since some C++ compilers masquerading as C compilers | |
12973 | incorrectly reject 9223372036854775807. */ | |
12974 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12975 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12976 | && LARGE_OFF_T % 2147483647 == 1) | |
12977 | ? 1 : -1]; | |
8d138742 CE |
12978 | int |
12979 | main () | |
12980 | { | |
b0322a85 | 12981 | |
8d138742 CE |
12982 | ; |
12983 | return 0; | |
12984 | } | |
12985 | _ACEOF | |
b0322a85 CE |
12986 | if ac_fn_c_try_compile "$LINENO"; then : |
12987 | break | |
12988 | fi | |
12989 | rm -f core conftest.err conftest.$ac_objext | |
12990 | CC="$CC -n32" | |
12991 | if ac_fn_c_try_compile "$LINENO"; then : | |
12992 | ac_cv_sys_largefile_CC=' -n32'; break | |
12993 | fi | |
12994 | rm -f core conftest.err conftest.$ac_objext | |
12995 | break | |
12996 | done | |
12997 | CC=$ac_save_CC | |
12998 | rm -f conftest.$ac_ext | |
12999 | fi | |
13000 | fi | |
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
13002 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
13003 | if test "$ac_cv_sys_largefile_CC" != no; then | |
13004 | CC=$CC$ac_cv_sys_largefile_CC | |
13005 | fi | |
13006 | ||
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
13008 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
13009 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
13010 | $as_echo_n "(cached) " >&6 | |
13011 | else | |
13012 | while :; do | |
13013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13014 | /* end confdefs.h. */ | |
13015 | #include <sys/types.h> | |
13016 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13017 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13018 | since some C++ compilers masquerading as C compilers | |
13019 | incorrectly reject 9223372036854775807. */ | |
13020 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13021 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13022 | && LARGE_OFF_T % 2147483647 == 1) | |
13023 | ? 1 : -1]; | |
13024 | int | |
13025 | main () | |
13026 | { | |
13027 | ||
13028 | ; | |
13029 | return 0; | |
13030 | } | |
8d138742 | 13031 | _ACEOF |
b0322a85 CE |
13032 | if ac_fn_c_try_compile "$LINENO"; then : |
13033 | ac_cv_sys_file_offset_bits=no; break | |
13034 | fi | |
13035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 13037 | /* end confdefs.h. */ |
b0322a85 CE |
13038 | #define _FILE_OFFSET_BITS 64 |
13039 | #include <sys/types.h> | |
13040 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13041 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13042 | since some C++ compilers masquerading as C compilers | |
13043 | incorrectly reject 9223372036854775807. */ | |
13044 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13045 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13046 | && LARGE_OFF_T % 2147483647 == 1) | |
13047 | ? 1 : -1]; | |
8d138742 CE |
13048 | int |
13049 | main () | |
13050 | { | |
b0322a85 | 13051 | |
8d138742 CE |
13052 | ; |
13053 | return 0; | |
13054 | } | |
13055 | _ACEOF | |
b0322a85 CE |
13056 | if ac_fn_c_try_compile "$LINENO"; then : |
13057 | ac_cv_sys_file_offset_bits=64; break | |
13058 | fi | |
13059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13060 | ac_cv_sys_file_offset_bits=unknown | |
13061 | break | |
13062 | done | |
13063 | fi | |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
13065 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
13066 | case $ac_cv_sys_file_offset_bits in #( | |
13067 | no | unknown) ;; | |
13068 | *) | |
13069 | cat >>confdefs.h <<_ACEOF | |
13070 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
13071 | _ACEOF | |
13072 | ;; | |
8d138742 | 13073 | esac |
b0322a85 CE |
13074 | rm -rf conftest* |
13075 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
13077 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
13078 | if ${ac_cv_sys_large_files+:} false; then : | |
13079 | $as_echo_n "(cached) " >&6 | |
8d138742 | 13080 | else |
b0322a85 CE |
13081 | while :; do |
13082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13083 | /* end confdefs.h. */ | |
13084 | #include <sys/types.h> | |
13085 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13086 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13087 | since some C++ compilers masquerading as C compilers | |
13088 | incorrectly reject 9223372036854775807. */ | |
13089 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13090 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13091 | && LARGE_OFF_T % 2147483647 == 1) | |
13092 | ? 1 : -1]; | |
13093 | int | |
13094 | main () | |
13095 | { | |
d9898ee8 | 13096 | |
b0322a85 CE |
13097 | ; |
13098 | return 0; | |
13099 | } | |
13100 | _ACEOF | |
13101 | if ac_fn_c_try_compile "$LINENO"; then : | |
13102 | ac_cv_sys_large_files=no; break | |
8d138742 | 13103 | fi |
8d138742 | 13104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
13105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13106 | /* end confdefs.h. */ | |
13107 | #define _LARGE_FILES 1 | |
13108 | #include <sys/types.h> | |
13109 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13110 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13111 | since some C++ compilers masquerading as C compilers | |
13112 | incorrectly reject 9223372036854775807. */ | |
13113 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13114 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13115 | && LARGE_OFF_T % 2147483647 == 1) | |
13116 | ? 1 : -1]; | |
13117 | int | |
13118 | main () | |
13119 | { | |
d9898ee8 | 13120 | |
b0322a85 CE |
13121 | ; |
13122 | return 0; | |
13123 | } | |
13124 | _ACEOF | |
13125 | if ac_fn_c_try_compile "$LINENO"; then : | |
13126 | ac_cv_sys_large_files=1; break | |
8d138742 | 13127 | fi |
8d138742 | 13128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
13129 | ac_cv_sys_large_files=unknown |
13130 | break | |
13131 | done | |
8d138742 | 13132 | fi |
b0322a85 CE |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
13134 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
13135 | case $ac_cv_sys_large_files in #( | |
13136 | no | unknown) ;; | |
13137 | *) | |
8d138742 | 13138 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13139 | #define _LARGE_FILES $ac_cv_sys_large_files |
8d138742 | 13140 | _ACEOF |
b0322a85 CE |
13141 | ;; |
13142 | esac | |
13143 | rm -rf conftest* | |
13144 | fi | |
13145 | ||
d9898ee8 | 13146 | |
8d138742 | 13147 | fi |
d9898ee8 | 13148 | |
d9898ee8 | 13149 | |
d9898ee8 | 13150 | |
8d138742 | 13151 | # Check whether --with-random was given. |
b0322a85 | 13152 | if test "${with_random+set}" = set; then : |
8d138742 CE |
13153 | withval=$with_random; random="$withval" |
13154 | else | |
13155 | random="y" | |
13156 | fi | |
d9898ee8 | 13157 | |
d9898ee8 | 13158 | |
8d138742 CE |
13159 | case "$random" in |
13160 | /*) | |
13161 | ;; | |
13162 | y*|1*) | |
b0322a85 | 13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5 |
8d138742 | 13164 | $as_echo_n "checking for random source... " >&6; } |
b0322a85 | 13165 | if ${random_cv_RANDOM+:} false; then : |
8d138742 CE |
13166 | $as_echo_n "(cached) " >&6 |
13167 | else | |
13168 | if test -c /dev/urandom | |
13169 | then | |
13170 | random_cv_RANDOM=/dev/urandom | |
13171 | else | |
13172 | if test -c /dev/random | |
13173 | then | |
13174 | random_cv_RANDOM=/dev/random | |
13175 | else | |
13176 | random_cv_RANDOM="none" | |
13177 | fi | |
13178 | fi | |
d9898ee8 | 13179 | |
8d138742 | 13180 | fi |
b0322a85 | 13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5 |
8d138742 CE |
13182 | $as_echo "$random_cv_RANDOM" >&6; } |
13183 | random="$random_cv_RANDOM" | |
13184 | ;; | |
13185 | *) | |
13186 | random="none" | |
13187 | ;; | |
13188 | esac | |
d9898ee8 | 13189 | |
8d138742 CE |
13190 | if test "$random" != "none" |
13191 | then | |
d9898ee8 | 13192 | |
8d138742 CE |
13193 | cat >>confdefs.h <<_ACEOF |
13194 | #define RANDOM "$random" | |
13195 | _ACEOF | |
d9898ee8 | 13196 | |
8d138742 | 13197 | fi |
d9898ee8 | 13198 | |
b0322a85 | 13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5 |
8d138742 | 13200 | $as_echo_n "checking for some good options for ps... " >&6; } |
b0322a85 | 13201 | if ${random_cv_PS_OPTIONS+:} false; then : |
8d138742 CE |
13202 | $as_echo_n "(cached) " >&6 |
13203 | else | |
13204 | for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al | |
13205 | do | |
13206 | ps $opts >/dev/null 2>/dev/null || continue | |
13207 | break | |
13208 | done | |
13209 | random_cv_PS_OPTIONS="$opts" | |
d9898ee8 | 13210 | |
8d138742 | 13211 | fi |
b0322a85 | 13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5 |
8d138742 | 13213 | $as_echo "$random_cv_PS_OPTIONS" >&6; } |
d9898ee8 | 13214 | |
d9898ee8 | 13215 | |
8d138742 CE |
13216 | cat >>confdefs.h <<_ACEOF |
13217 | #define PS_OPTIONS "$random_cv_PS_OPTIONS" | |
13218 | _ACEOF | |
d9898ee8 | 13219 | |
d9898ee8 | 13220 | |
8d138742 CE |
13221 | cat >>confdefs.h <<_ACEOF |
13222 | #define PS "$PS" | |
13223 | _ACEOF | |
d9898ee8 | 13224 | |
d9898ee8 | 13225 | |
8d138742 CE |
13226 | if test "$W" != "w" |
13227 | then | |
d9898ee8 | 13228 | |
8d138742 CE |
13229 | cat >>confdefs.h <<_ACEOF |
13230 | #define W "$w" | |
13231 | _ACEOF | |
d9898ee8 | 13232 | |
8d138742 | 13233 | fi |
d9898ee8 | 13234 | |
8d138742 | 13235 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 13236 | |
8d138742 CE |
13237 | cat >confcache <<\_ACEOF |
13238 | # This file is a shell script that caches the results of configure | |
13239 | # tests run on this system so they can be shared between configure | |
13240 | # scripts and configure runs, see configure's option --config-cache. | |
13241 | # It is not useful on other systems. If it contains results you don't | |
13242 | # want to keep, you may remove or edit it. | |
13243 | # | |
13244 | # config.status only pays attention to the cache file if you give it | |
13245 | # the --recheck option to rerun configure. | |
13246 | # | |
13247 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13248 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13249 | # following values. | |
d9898ee8 | 13250 | |
8d138742 | 13251 | _ACEOF |
d9898ee8 | 13252 | |
8d138742 CE |
13253 | # The following way of writing the cache mishandles newlines in values, |
13254 | # but we know of no workaround that is simple, portable, and efficient. | |
13255 | # So, we kill variables containing newlines. | |
13256 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13257 | # and sets the high bit in the cache file unless we assign to the vars. | |
13258 | ( | |
13259 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13260 | eval ac_val=\$$ac_var | |
13261 | case $ac_val in #( | |
13262 | *${as_nl}*) | |
13263 | case $ac_var in #( | |
b0322a85 | 13264 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
13265 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13266 | esac | |
13267 | case $ac_var in #( | |
13268 | _ | IFS | as_nl) ;; #( | |
13269 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 13270 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
13271 | esac ;; |
13272 | esac | |
13273 | done | |
d9898ee8 | 13274 | |
8d138742 CE |
13275 | (set) 2>&1 | |
13276 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13277 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
13278 | # `set' does not quote correctly, so add quotes: double-quote |
13279 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
13280 | sed -n \ |
13281 | "s/'/'\\\\''/g; | |
13282 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13283 | ;; #( | |
13284 | *) | |
13285 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13286 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13287 | ;; | |
13288 | esac | | |
13289 | sort | |
13290 | ) | | |
13291 | sed ' | |
13292 | /^ac_cv_env_/b end | |
13293 | t clear | |
13294 | :clear | |
13295 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13296 | t end | |
13297 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13298 | :end' >>confcache | |
13299 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13300 | if test -w "$cache_file"; then | |
b0322a85 CE |
13301 | if test "x$cache_file" != "x/dev/null"; then |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 13303 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
13304 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13305 | cat confcache >"$cache_file" | |
13306 | else | |
13307 | case $cache_file in #( | |
13308 | */* | ?:*) | |
13309 | mv -f confcache "$cache_file"$$ && | |
13310 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13311 | *) | |
13312 | mv -f confcache "$cache_file" ;; | |
13313 | esac | |
13314 | fi | |
13315 | fi | |
8d138742 | 13316 | else |
b0322a85 | 13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
13318 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13319 | fi | |
13320 | fi | |
13321 | rm -f confcache | |
d9898ee8 | 13322 | |
8d138742 CE |
13323 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13324 | # Let make expand exec_prefix. | |
13325 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 13326 | |
8d138742 | 13327 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 13328 | |
8d138742 CE |
13329 | ac_libobjs= |
13330 | ac_ltlibobjs= | |
d50284c4 | 13331 | U= |
8d138742 CE |
13332 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13333 | # 1. Remove the extension, and $U if already installed. | |
13334 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13335 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13336 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13337 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
13338 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13339 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
13340 | done |
13341 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 13342 | |
8d138742 | 13343 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 13344 | |
d9898ee8 | 13345 | |
b0322a85 CE |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
13347 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
13348 | if test -n "$am_sleep_pid"; then | |
13349 | # Hide warnings about reused PIDs. | |
13350 | wait $am_sleep_pid 2>/dev/null | |
13351 | fi | |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
13353 | $as_echo "done" >&6; } | |
8d138742 CE |
13354 | if test -n "$EXEEXT"; then |
13355 | am__EXEEXT_TRUE= | |
13356 | am__EXEEXT_FALSE='#' | |
13357 | else | |
13358 | am__EXEEXT_TRUE='#' | |
13359 | am__EXEEXT_FALSE= | |
13360 | fi | |
d9898ee8 | 13361 | |
8d138742 | 13362 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
13363 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
13364 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13365 | fi |
13366 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
13367 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13368 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
13369 | fi |
13370 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
13371 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13372 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 | 13373 | fi |
d9898ee8 | 13374 | |
b0322a85 | 13375 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
13376 | ac_write_fail=0 |
13377 | ac_clean_files_save=$ac_clean_files | |
13378 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 13380 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
13381 | as_write_fail=0 |
13382 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
13383 | #! $SHELL |
13384 | # Generated by $as_me. | |
13385 | # Run this file to recreate the current configuration. | |
13386 | # Compiler output produced by configure, useful for debugging | |
13387 | # configure, is in config.log if it exists. | |
d9898ee8 | 13388 | |
8d138742 CE |
13389 | debug=false |
13390 | ac_cs_recheck=false | |
13391 | ac_cs_silent=false | |
d9898ee8 | 13392 | |
b0322a85 CE |
13393 | SHELL=\${CONFIG_SHELL-$SHELL} |
13394 | export SHELL | |
13395 | _ASEOF | |
13396 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13397 | ## -------------------- ## | |
13398 | ## M4sh Initialization. ## | |
13399 | ## -------------------- ## | |
d9898ee8 | 13400 | |
8d138742 CE |
13401 | # Be more Bourne compatible |
13402 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 13403 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
13404 | emulate sh |
13405 | NULLCMD=: | |
13406 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13407 | # is contrary to our usage. Disable this feature. | |
13408 | alias -g '${1+"$@"}'='"$@"' | |
13409 | setopt NO_GLOB_SUBST | |
13410 | else | |
b0322a85 CE |
13411 | case `(set -o) 2>/dev/null` in #( |
13412 | *posix*) : | |
13413 | set -o posix ;; #( | |
13414 | *) : | |
13415 | ;; | |
8d138742 | 13416 | esac |
8d138742 | 13417 | fi |
d9898ee8 | 13418 | |
d9898ee8 | 13419 | |
8d138742 CE |
13420 | as_nl=' |
13421 | ' | |
13422 | export as_nl | |
13423 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13424 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13425 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13426 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
13427 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
13428 | # but without wasting forks for bash or zsh. | |
13429 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13430 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13431 | as_echo='print -r --' | |
13432 | as_echo_n='print -rn --' | |
13433 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
13434 | as_echo='printf %s\n' |
13435 | as_echo_n='printf %s' | |
13436 | else | |
13437 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13438 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13439 | as_echo_n='/usr/ucb/echo -n' | |
13440 | else | |
13441 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13442 | as_echo_n_body='eval | |
13443 | arg=$1; | |
b0322a85 | 13444 | case $arg in #( |
8d138742 CE |
13445 | *"$as_nl"*) |
13446 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13447 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13448 | esac; | |
13449 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13450 | ' | |
13451 | export as_echo_n_body | |
13452 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13453 | fi | |
13454 | export as_echo_body | |
13455 | as_echo='sh -c $as_echo_body as_echo' | |
13456 | fi | |
d9898ee8 | 13457 | |
8d138742 CE |
13458 | # The user is always right. |
13459 | if test "${PATH_SEPARATOR+set}" != set; then | |
13460 | PATH_SEPARATOR=: | |
13461 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13462 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13463 | PATH_SEPARATOR=';' | |
13464 | } | |
13465 | fi | |
d9898ee8 | 13466 | |
d9898ee8 | 13467 | |
8d138742 CE |
13468 | # IFS |
13469 | # We need space, tab and new line, in precisely that order. Quoting is | |
13470 | # there to prevent editors from complaining about space-tab. | |
13471 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13472 | # splitting by setting IFS to empty value.) | |
13473 | IFS=" "" $as_nl" | |
d9898ee8 | 13474 | |
8d138742 | 13475 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
13476 | as_myself= |
13477 | case $0 in #(( | |
8d138742 CE |
13478 | *[\\/]* ) as_myself=$0 ;; |
13479 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13480 | for as_dir in $PATH | |
13481 | do | |
13482 | IFS=$as_save_IFS | |
13483 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13484 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13485 | done | |
8d138742 | 13486 | IFS=$as_save_IFS |
d9898ee8 | 13487 | |
8d138742 CE |
13488 | ;; |
13489 | esac | |
13490 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13491 | # in which case we are not to be found in the path. | |
13492 | if test "x$as_myself" = x; then | |
13493 | as_myself=$0 | |
13494 | fi | |
13495 | if test ! -f "$as_myself"; then | |
13496 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 13497 | exit 1 |
8d138742 | 13498 | fi |
d9898ee8 | 13499 | |
b0322a85 CE |
13500 | # Unset variables that we do not need and which cause bugs (e.g. in |
13501 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13502 | # suppresses any "Segmentation fault" message there. '((' could | |
13503 | # trigger a bug in pdksh 5.2.14. | |
13504 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13505 | do eval test x\${$as_var+set} = xset \ | |
13506 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
13507 | done |
13508 | PS1='$ ' | |
13509 | PS2='> ' | |
13510 | PS4='+ ' | |
d9898ee8 | 13511 | |
8d138742 CE |
13512 | # NLS nuisances. |
13513 | LC_ALL=C | |
13514 | export LC_ALL | |
13515 | LANGUAGE=C | |
13516 | export LANGUAGE | |
d9898ee8 | 13517 | |
b0322a85 CE |
13518 | # CDPATH. |
13519 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13520 | ||
13521 | ||
13522 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13523 | # ---------------------------------------- | |
13524 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13525 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13526 | # script with STATUS, using 1 if that was 0. | |
13527 | as_fn_error () | |
13528 | { | |
13529 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
13530 | if test "$4"; then | |
13531 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13532 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13533 | fi | |
13534 | $as_echo "$as_me: error: $2" >&2 | |
13535 | as_fn_exit $as_status | |
13536 | } # as_fn_error | |
13537 | ||
13538 | ||
13539 | # as_fn_set_status STATUS | |
13540 | # ----------------------- | |
13541 | # Set $? to STATUS, without forking. | |
13542 | as_fn_set_status () | |
13543 | { | |
13544 | return $1 | |
13545 | } # as_fn_set_status | |
13546 | ||
13547 | # as_fn_exit STATUS | |
13548 | # ----------------- | |
13549 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13550 | as_fn_exit () | |
13551 | { | |
13552 | set +e | |
13553 | as_fn_set_status $1 | |
13554 | exit $1 | |
13555 | } # as_fn_exit | |
13556 | ||
13557 | # as_fn_unset VAR | |
13558 | # --------------- | |
13559 | # Portably unset VAR. | |
13560 | as_fn_unset () | |
13561 | { | |
13562 | { eval $1=; unset $1;} | |
13563 | } | |
13564 | as_unset=as_fn_unset | |
13565 | # as_fn_append VAR VALUE | |
13566 | # ---------------------- | |
13567 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13568 | # advantage of any shell optimizations that allow amortized linear growth over | |
13569 | # repeated appends, instead of the typical quadratic growth present in naive | |
13570 | # implementations. | |
13571 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13572 | eval 'as_fn_append () | |
13573 | { | |
13574 | eval $1+=\$2 | |
13575 | }' | |
13576 | else | |
13577 | as_fn_append () | |
13578 | { | |
13579 | eval $1=\$$1\$2 | |
13580 | } | |
13581 | fi # as_fn_append | |
13582 | ||
13583 | # as_fn_arith ARG... | |
13584 | # ------------------ | |
13585 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13586 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13587 | # must be portable across $(()) and expr. | |
13588 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13589 | eval 'as_fn_arith () | |
13590 | { | |
13591 | as_val=$(( $* )) | |
13592 | }' | |
13593 | else | |
13594 | as_fn_arith () | |
13595 | { | |
13596 | as_val=`expr "$@" || test $? -eq 1` | |
13597 | } | |
13598 | fi # as_fn_arith | |
13599 | ||
13600 | ||
8d138742 CE |
13601 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13602 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13603 | as_expr=expr | |
13604 | else | |
13605 | as_expr=false | |
13606 | fi | |
d9898ee8 | 13607 | |
8d138742 CE |
13608 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13609 | as_basename=basename | |
13610 | else | |
13611 | as_basename=false | |
13612 | fi | |
d9898ee8 | 13613 | |
b0322a85 CE |
13614 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13615 | as_dirname=dirname | |
13616 | else | |
13617 | as_dirname=false | |
13618 | fi | |
d9898ee8 | 13619 | |
8d138742 CE |
13620 | as_me=`$as_basename -- "$0" || |
13621 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13622 | X"$0" : 'X\(//\)$' \| \ | |
13623 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13624 | $as_echo X/"$0" | | |
13625 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13626 | s//\1/ | |
13627 | q | |
13628 | } | |
13629 | /^X\/\(\/\/\)$/{ | |
13630 | s//\1/ | |
13631 | q | |
13632 | } | |
13633 | /^X\/\(\/\).*/{ | |
13634 | s//\1/ | |
13635 | q | |
13636 | } | |
13637 | s/.*/./; q'` | |
d9898ee8 | 13638 | |
b0322a85 CE |
13639 | # Avoid depending upon Character Ranges. |
13640 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13641 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13642 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13643 | as_cr_digits='0123456789' | |
13644 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 13645 | |
8d138742 | 13646 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 13647 | case `echo -n x` in #((((( |
8d138742 | 13648 | -n*) |
b0322a85 | 13649 | case `echo 'xy\c'` in |
8d138742 | 13650 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
13651 | xy) ECHO_C='\c';; |
13652 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13653 | ECHO_T=' ';; | |
8d138742 CE |
13654 | esac;; |
13655 | *) | |
13656 | ECHO_N='-n';; | |
13657 | esac | |
b0322a85 CE |
13658 | |
13659 | rm -f conf$$ conf$$.exe conf$$.file | |
13660 | if test -d conf$$.dir; then | |
13661 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 13662 | else |
b0322a85 CE |
13663 | rm -f conf$$.dir |
13664 | mkdir conf$$.dir 2>/dev/null | |
13665 | fi | |
13666 | if (echo >conf$$.file) 2>/dev/null; then | |
13667 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13668 | as_ln_s='ln -s' | |
13669 | # ... but there are two gotchas: | |
13670 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13671 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13672 | # In both cases, we have to default to `cp -pR'. | |
13673 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13674 | as_ln_s='cp -pR' | |
13675 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13676 | as_ln_s=ln | |
13677 | else | |
13678 | as_ln_s='cp -pR' | |
13679 | fi | |
13680 | else | |
13681 | as_ln_s='cp -pR' | |
8d138742 | 13682 | fi |
b0322a85 CE |
13683 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13684 | rmdir conf$$.dir 2>/dev/null | |
13685 | ||
13686 | ||
13687 | # as_fn_mkdir_p | |
13688 | # ------------- | |
13689 | # Create "$as_dir" as a directory, including parents if necessary. | |
13690 | as_fn_mkdir_p () | |
13691 | { | |
13692 | ||
13693 | case $as_dir in #( | |
13694 | -*) as_dir=./$as_dir;; | |
13695 | esac | |
13696 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13697 | as_dirs= | |
13698 | while :; do | |
13699 | case $as_dir in #( | |
13700 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13701 | *) as_qdir=$as_dir;; | |
13702 | esac | |
13703 | as_dirs="'$as_qdir' $as_dirs" | |
13704 | as_dir=`$as_dirname -- "$as_dir" || | |
13705 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13706 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13707 | X"$as_dir" : 'X\(//\)$' \| \ | |
13708 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13709 | $as_echo X"$as_dir" | | |
13710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13711 | s//\1/ | |
13712 | q | |
13713 | } | |
13714 | /^X\(\/\/\)[^/].*/{ | |
13715 | s//\1/ | |
13716 | q | |
13717 | } | |
13718 | /^X\(\/\/\)$/{ | |
13719 | s//\1/ | |
13720 | q | |
13721 | } | |
13722 | /^X\(\/\).*/{ | |
13723 | s//\1/ | |
13724 | q | |
13725 | } | |
13726 | s/.*/./; q'` | |
13727 | test -d "$as_dir" && break | |
13728 | done | |
13729 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13730 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
d9898ee8 | 13731 | |
d9898ee8 | 13732 | |
b0322a85 | 13733 | } # as_fn_mkdir_p |
8d138742 | 13734 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 13735 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
13736 | else |
13737 | test -d ./-p && rmdir ./-p | |
13738 | as_mkdir_p=false | |
13739 | fi | |
d9898ee8 | 13740 | |
b0322a85 CE |
13741 | |
13742 | # as_fn_executable_p FILE | |
13743 | # ----------------------- | |
13744 | # Test if FILE is an executable regular file. | |
13745 | as_fn_executable_p () | |
13746 | { | |
13747 | test -f "$1" && test -x "$1" | |
13748 | } # as_fn_executable_p | |
13749 | as_test_x='test -x' | |
13750 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 13751 | |
8d138742 CE |
13752 | # Sed expression to map a string onto a valid CPP name. |
13753 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13754 | |
8d138742 CE |
13755 | # Sed expression to map a string onto a valid variable name. |
13756 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13757 | |
d9898ee8 | 13758 | |
8d138742 | 13759 | exec 6>&1 |
b0322a85 CE |
13760 | ## ----------------------------------- ## |
13761 | ## Main body of $CONFIG_STATUS script. ## | |
13762 | ## ----------------------------------- ## | |
13763 | _ASEOF | |
13764 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 13765 | |
b0322a85 CE |
13766 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13767 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
13768 | # report actual input values of CONFIG_FILES etc. instead of their |
13769 | # values after options handling. | |
13770 | ac_log=" | |
13771 | This file was extended by random128 $as_me 0.10, which was | |
b0322a85 | 13772 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 13773 | |
8d138742 CE |
13774 | CONFIG_FILES = $CONFIG_FILES |
13775 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13776 | CONFIG_LINKS = $CONFIG_LINKS | |
13777 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13778 | $ $0 $@ | |
d9898ee8 | 13779 | |
8d138742 CE |
13780 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13781 | " | |
d9898ee8 | 13782 | |
8d138742 | 13783 | _ACEOF |
d9898ee8 | 13784 | |
8d138742 CE |
13785 | case $ac_config_files in *" |
13786 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13787 | esac | |
d9898ee8 | 13788 | |
8d138742 CE |
13789 | case $ac_config_headers in *" |
13790 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13791 | esac | |
d9898ee8 | 13792 | |
d9898ee8 | 13793 | |
8d138742 CE |
13794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13795 | # Files that config.status was made for. | |
13796 | config_files="$ac_config_files" | |
13797 | config_headers="$ac_config_headers" | |
13798 | config_commands="$ac_config_commands" | |
d9898ee8 | 13799 | |
8d138742 | 13800 | _ACEOF |
d9898ee8 | 13801 | |
8d138742 CE |
13802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13803 | ac_cs_usage="\ | |
b0322a85 CE |
13804 | \`$as_me' instantiates files and other configuration actions |
13805 | from templates according to the current configuration. Unless the files | |
13806 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 13807 | |
b0322a85 | 13808 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 13809 | |
8d138742 CE |
13810 | -h, --help print this help, then exit |
13811 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 13812 | --config print configuration, then exit |
8d138742 CE |
13813 | -q, --quiet, --silent |
13814 | do not print progress messages | |
13815 | -d, --debug don't remove temporary files | |
13816 | --recheck update $as_me by reconfiguring in the same conditions | |
13817 | --file=FILE[:TEMPLATE] | |
13818 | instantiate the configuration file FILE | |
13819 | --header=FILE[:TEMPLATE] | |
13820 | instantiate the configuration header FILE | |
d9898ee8 | 13821 | |
8d138742 CE |
13822 | Configuration files: |
13823 | $config_files | |
d9898ee8 | 13824 | |
8d138742 CE |
13825 | Configuration headers: |
13826 | $config_headers | |
d9898ee8 | 13827 | |
8d138742 CE |
13828 | Configuration commands: |
13829 | $config_commands | |
d9898ee8 | 13830 | |
b0322a85 | 13831 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 13832 | |
8d138742 CE |
13833 | _ACEOF |
13834 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13835 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
13836 | ac_cs_version="\\ |
13837 | random128 config.status 0.10 | |
b0322a85 CE |
13838 | configured by $0, generated by GNU Autoconf 2.69, |
13839 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 13840 | |
b0322a85 | 13841 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
13842 | This config.status script is free software; the Free Software Foundation |
13843 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 13844 | |
8d138742 CE |
13845 | ac_pwd='$ac_pwd' |
13846 | srcdir='$srcdir' | |
13847 | INSTALL='$INSTALL' | |
13848 | MKDIR_P='$MKDIR_P' | |
13849 | AWK='$AWK' | |
13850 | test -n "\$AWK" || AWK=awk | |
13851 | _ACEOF | |
d9898ee8 | 13852 | |
8d138742 CE |
13853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13854 | # The default lists apply if the user does not specify any file. | |
13855 | ac_need_defaults=: | |
13856 | while test $# != 0 | |
13857 | do | |
13858 | case $1 in | |
b0322a85 | 13859 | --*=?*) |
8d138742 CE |
13860 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13861 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13862 | ac_shift=: | |
13863 | ;; | |
b0322a85 CE |
13864 | --*=) |
13865 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13866 | ac_optarg= | |
13867 | ac_shift=: | |
13868 | ;; | |
8d138742 CE |
13869 | *) |
13870 | ac_option=$1 | |
13871 | ac_optarg=$2 | |
13872 | ac_shift=shift | |
13873 | ;; | |
13874 | esac | |
d9898ee8 | 13875 | |
8d138742 CE |
13876 | case $ac_option in |
13877 | # Handling of the options. | |
13878 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13879 | ac_cs_recheck=: ;; | |
13880 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13881 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
13882 | --config | --confi | --conf | --con | --co | --c ) |
13883 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
13884 | --debug | --debu | --deb | --de | --d | -d ) |
13885 | debug=: ;; | |
13886 | --file | --fil | --fi | --f ) | |
13887 | $ac_shift | |
13888 | case $ac_optarg in | |
13889 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 13890 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 13891 | esac |
b0322a85 | 13892 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
13893 | ac_need_defaults=false;; |
13894 | --header | --heade | --head | --hea ) | |
13895 | $ac_shift | |
13896 | case $ac_optarg in | |
13897 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13898 | esac | |
b0322a85 | 13899 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
13900 | ac_need_defaults=false;; |
13901 | --he | --h) | |
13902 | # Conflict between --help and --header | |
b0322a85 CE |
13903 | as_fn_error $? "ambiguous option: \`$1' |
13904 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
13905 | --help | --hel | -h ) |
13906 | $as_echo "$ac_cs_usage"; exit ;; | |
13907 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13908 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13909 | ac_cs_silent=: ;; | |
d9898ee8 | 13910 | |
8d138742 | 13911 | # This is an error. |
b0322a85 CE |
13912 | -*) as_fn_error $? "unrecognized option: \`$1' |
13913 | Try \`$0 --help' for more information." ;; | |
d9898ee8 | 13914 | |
b0322a85 | 13915 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 13916 | ac_need_defaults=false ;; |
d9898ee8 | 13917 | |
8d138742 CE |
13918 | esac |
13919 | shift | |
13920 | done | |
d9898ee8 | 13921 | |
8d138742 | 13922 | ac_configure_extra_args= |
d9898ee8 | 13923 | |
8d138742 CE |
13924 | if $ac_cs_silent; then |
13925 | exec 6>/dev/null | |
13926 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13927 | fi | |
d9898ee8 | 13928 | |
8d138742 CE |
13929 | _ACEOF |
13930 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13931 | if \$ac_cs_recheck; then | |
b0322a85 | 13932 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13933 | shift |
13934 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13935 | CONFIG_SHELL='$SHELL' | |
13936 | export CONFIG_SHELL | |
13937 | exec "\$@" | |
13938 | fi | |
d9898ee8 | 13939 | |
8d138742 CE |
13940 | _ACEOF |
13941 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13942 | exec 5>>config.log | |
13943 | { | |
13944 | echo | |
13945 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13946 | ## Running $as_me. ## | |
13947 | _ASBOX | |
13948 | $as_echo "$ac_log" | |
13949 | } >&5 | |
d9898ee8 | 13950 | |
8d138742 CE |
13951 | _ACEOF |
13952 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13953 | # | |
13954 | # INIT-COMMANDS | |
13955 | # | |
13956 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13957 | |
13958 | ||
8d138742 CE |
13959 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13960 | # if CDPATH is set. | |
13961 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13962 | |
8d138742 CE |
13963 | sed_quote_subst='$sed_quote_subst' |
13964 | double_quote_subst='$double_quote_subst' | |
13965 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13966 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13967 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13968 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13969 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13970 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13971 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13972 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13973 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13974 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13975 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13976 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13977 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13978 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13979 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13980 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13981 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13982 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13983 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13984 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13985 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13986 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13987 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13988 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13989 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13990 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13991 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13992 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13993 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13994 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13995 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13996 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13997 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13998 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13999 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14000 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14001 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14002 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14003 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
14004 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
14005 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
14006 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
14007 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14008 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14009 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
14010 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14011 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14012 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14013 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14014 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14015 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14016 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14017 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14018 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14019 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14020 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14021 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 14022 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14023 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
14024 | 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 | 14025 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14026 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
14027 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 14028 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
14029 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
14030 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14031 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14032 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14033 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14034 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14035 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14036 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14037 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
14038 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14039 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14040 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14041 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14042 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14043 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14044 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14045 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14046 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14047 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14048 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14049 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14050 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14051 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14052 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14053 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14054 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14055 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14056 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14057 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14058 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14059 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14060 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14061 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14062 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14063 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14064 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14065 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14066 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14067 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14068 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14069 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14070 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14071 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14072 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14073 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14074 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
14075 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14076 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14077 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14078 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14079 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14080 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14081 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14082 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14083 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14084 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14085 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14086 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14087 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14088 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14089 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14090 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14091 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14092 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
14093 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
14094 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
14095 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
14096 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14097 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14098 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14099 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14100 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
14101 | |
14102 | LTCC='$LTCC' | |
14103 | LTCFLAGS='$LTCFLAGS' | |
14104 | compiler='$compiler_DEFAULT' | |
14105 | ||
b0322a85 CE |
14106 | # A function that is used when there is no print builtin or printf. |
14107 | func_fallback_echo () | |
14108 | { | |
14109 | eval 'cat <<_LTECHO_EOF | |
14110 | \$1 | |
14111 | _LTECHO_EOF' | |
14112 | } | |
14113 | ||
8d138742 | 14114 | # Quote evaled strings. |
b0322a85 CE |
14115 | for var in SHELL \ |
14116 | ECHO \ | |
14117 | PATH_SEPARATOR \ | |
14118 | SED \ | |
8d138742 CE |
14119 | GREP \ |
14120 | EGREP \ | |
14121 | FGREP \ | |
14122 | LD \ | |
14123 | NM \ | |
14124 | LN_S \ | |
14125 | lt_SP2NL \ | |
14126 | lt_NL2SP \ | |
14127 | reload_flag \ | |
14128 | OBJDUMP \ | |
14129 | deplibs_check_method \ | |
14130 | file_magic_cmd \ | |
b0322a85 CE |
14131 | file_magic_glob \ |
14132 | want_nocaseglob \ | |
14133 | DLLTOOL \ | |
14134 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
14135 | AR \ |
14136 | AR_FLAGS \ | |
b0322a85 | 14137 | archiver_list_spec \ |
8d138742 CE |
14138 | STRIP \ |
14139 | RANLIB \ | |
14140 | CC \ | |
14141 | CFLAGS \ | |
14142 | compiler \ | |
14143 | lt_cv_sys_global_symbol_pipe \ | |
14144 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 14145 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
14146 | lt_cv_sys_global_symbol_to_c_name_address \ |
14147 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 14148 | lt_cv_nm_interface \ |
b0322a85 | 14149 | nm_file_list_spec \ |
d50284c4 | 14150 | lt_cv_truncate_bin \ |
8d138742 | 14151 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 14152 | lt_prog_compiler_pic \ |
b0322a85 | 14153 | lt_prog_compiler_wl \ |
8d138742 CE |
14154 | lt_prog_compiler_static \ |
14155 | lt_cv_prog_compiler_c_o \ | |
14156 | need_locks \ | |
b0322a85 | 14157 | MANIFEST_TOOL \ |
8d138742 CE |
14158 | DSYMUTIL \ |
14159 | NMEDIT \ | |
14160 | LIPO \ | |
14161 | OTOOL \ | |
14162 | OTOOL64 \ | |
14163 | shrext_cmds \ | |
14164 | export_dynamic_flag_spec \ | |
14165 | whole_archive_flag_spec \ | |
14166 | compiler_needs_object \ | |
14167 | with_gnu_ld \ | |
14168 | allow_undefined_flag \ | |
14169 | no_undefined_flag \ | |
14170 | hardcode_libdir_flag_spec \ | |
8d138742 | 14171 | hardcode_libdir_separator \ |
8d138742 CE |
14172 | exclude_expsyms \ |
14173 | include_expsyms \ | |
14174 | file_list_spec \ | |
14175 | variables_saved_for_relink \ | |
14176 | libname_spec \ | |
14177 | library_names_spec \ | |
14178 | soname_spec \ | |
b0322a85 | 14179 | install_override_mode \ |
8d138742 CE |
14180 | finish_eval \ |
14181 | old_striplib \ | |
14182 | striplib; do | |
b0322a85 | 14183 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 14184 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 14185 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
14186 | ;; |
14187 | *) | |
14188 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14189 | ;; | |
14190 | esac | |
14191 | done | |
d9898ee8 | 14192 | |
8d138742 CE |
14193 | # Double-quote double-evaled strings. |
14194 | for var in reload_cmds \ | |
14195 | old_postinstall_cmds \ | |
14196 | old_postuninstall_cmds \ | |
14197 | old_archive_cmds \ | |
14198 | extract_expsyms_cmds \ | |
14199 | old_archive_from_new_cmds \ | |
14200 | old_archive_from_expsyms_cmds \ | |
14201 | archive_cmds \ | |
14202 | archive_expsym_cmds \ | |
14203 | module_cmds \ | |
14204 | module_expsym_cmds \ | |
14205 | export_symbols_cmds \ | |
14206 | prelink_cmds \ | |
b0322a85 | 14207 | postlink_cmds \ |
8d138742 CE |
14208 | postinstall_cmds \ |
14209 | postuninstall_cmds \ | |
14210 | finish_cmds \ | |
14211 | sys_lib_search_path_spec \ | |
d50284c4 CE |
14212 | configure_time_dlsearch_path \ |
14213 | configure_time_lt_sys_library_path; do | |
b0322a85 | 14214 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 14215 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 14216 | 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 |
14217 | ;; |
14218 | *) | |
14219 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14220 | ;; | |
14221 | esac | |
14222 | done | |
d9898ee8 | 14223 | |
8d138742 | 14224 | ac_aux_dir='$ac_aux_dir' |
d9898ee8 | 14225 | |
d50284c4 | 14226 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14227 | # commands through without removal of \ escapes INIT. |
d50284c4 | 14228 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 14229 | setopt NO_GLOB_SUBST |
d9898ee8 | 14230 | fi |
14231 | ||
d9898ee8 | 14232 | |
8d138742 CE |
14233 | PACKAGE='$PACKAGE' |
14234 | VERSION='$VERSION' | |
8d138742 CE |
14235 | RM='$RM' |
14236 | ofile='$ofile' | |
d9898ee8 | 14237 | |
d9898ee8 | 14238 | |
dd184caf | 14239 | |
d9898ee8 | 14240 | |
d9898ee8 | 14241 | _ACEOF |
14242 | ||
8d138742 | 14243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 14244 | |
8d138742 CE |
14245 | # Handling of arguments. |
14246 | for ac_config_target in $ac_config_targets | |
14247 | do | |
14248 | case $ac_config_target in | |
14249 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
14250 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14251 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14252 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 14253 | |
b0322a85 | 14254 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
14255 | esac |
14256 | done | |
d9898ee8 | 14257 | |
d9898ee8 | 14258 | |
8d138742 CE |
14259 | # If the user did not use the arguments to specify the items to instantiate, |
14260 | # then the envvar interface is used. Set only those that are not. | |
14261 | # We use the long form for the default assignment because of an extremely | |
14262 | # bizarre bug on SunOS 4.1.3. | |
14263 | if $ac_need_defaults; then | |
14264 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14265 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14266 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
d9898ee8 | 14267 | fi |
dd184caf | 14268 | |
8d138742 CE |
14269 | # Have a temporary directory for convenience. Make it in the build tree |
14270 | # simply because there is no reason against having it here, and in addition, | |
14271 | # creating and moving files from /tmp can sometimes cause problems. | |
14272 | # Hook for its removal unless debugging. | |
14273 | # Note that there is a small window in which the directory will not be cleaned: | |
14274 | # after its creation but before its name has been assigned to `$tmp'. | |
14275 | $debug || | |
14276 | { | |
b0322a85 | 14277 | tmp= ac_tmp= |
8d138742 | 14278 | trap 'exit_status=$? |
b0322a85 CE |
14279 | : "${ac_tmp:=$tmp}" |
14280 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 14281 | ' 0 |
b0322a85 | 14282 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
14283 | } |
14284 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 14285 | |
8d138742 CE |
14286 | { |
14287 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 14288 | test -d "$tmp" |
8d138742 CE |
14289 | } || |
14290 | { | |
14291 | tmp=./conf$$-$RANDOM | |
14292 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
14293 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14294 | ac_tmp=$tmp | |
d9898ee8 | 14295 | |
8d138742 CE |
14296 | # Set up the scripts for CONFIG_FILES section. |
14297 | # No need to generate them if there are no CONFIG_FILES. | |
14298 | # This happens for instance with `./config.status config.h'. | |
14299 | if test -n "$CONFIG_FILES"; then | |
dd184caf | 14300 | |
d9898ee8 | 14301 | |
b0322a85 CE |
14302 | ac_cr=`echo X | tr X '\015'` |
14303 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14304 | # But we know of no other shell where ac_cr would be empty at this | |
14305 | # point, so we can use a bashism as a fallback. | |
14306 | if test "x$ac_cr" = x; then | |
14307 | eval ac_cr=\$\'\\r\' | |
14308 | fi | |
8d138742 CE |
14309 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14310 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14311 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 14312 | else |
8d138742 | 14313 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 14314 | fi |
d9898ee8 | 14315 | |
b0322a85 | 14316 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 14317 | _ACEOF |
14318 | ||
d9898ee8 | 14319 | |
8d138742 CE |
14320 | { |
14321 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14322 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14323 | echo "_ACEOF" | |
14324 | } >conf$$subs.sh || | |
b0322a85 CE |
14325 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14326 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
14327 | ac_delim='%!_!# ' |
14328 | for ac_last_try in false false false false false :; do | |
14329 | . ./conf$$subs.sh || | |
b0322a85 | 14330 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 14331 | |
8d138742 CE |
14332 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14333 | if test $ac_delim_n = $ac_delim_num; then | |
14334 | break | |
14335 | elif $ac_last_try; then | |
b0322a85 | 14336 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
14337 | else |
14338 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14339 | fi | |
14340 | done | |
14341 | rm -f conf$$subs.sh | |
14342 | ||
14343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 14344 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
14345 | _ACEOF |
14346 | sed -n ' | |
14347 | h | |
14348 | s/^/S["/; s/!.*/"]=/ | |
14349 | p | |
14350 | g | |
14351 | s/^[^!]*!// | |
14352 | :repl | |
14353 | t repl | |
14354 | s/'"$ac_delim"'$// | |
14355 | t delim | |
14356 | :nl | |
14357 | h | |
b0322a85 | 14358 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14359 | t more1 |
14360 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14361 | p | |
14362 | n | |
14363 | b repl | |
14364 | :more1 | |
14365 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14366 | p | |
14367 | g | |
14368 | s/.\{148\}// | |
14369 | t nl | |
14370 | :delim | |
14371 | h | |
b0322a85 | 14372 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
14373 | t more2 |
14374 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14375 | p | |
14376 | b | |
14377 | :more2 | |
14378 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14379 | p | |
14380 | g | |
14381 | s/.\{148\}// | |
14382 | t delim | |
14383 | ' <conf$$subs.awk | sed ' | |
14384 | /^[^""]/{ | |
14385 | N | |
14386 | s/\n// | |
14387 | } | |
14388 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14389 | rm -f conf$$subs.awk | |
14390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14391 | _ACAWK | |
b0322a85 | 14392 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
14393 | for (key in S) S_is_set[key] = 1 |
14394 | FS = "\a" | |
d9898ee8 | 14395 | |
8d138742 | 14396 | } |
d9898ee8 | 14397 | { |
8d138742 CE |
14398 | line = $ 0 |
14399 | nfields = split(line, field, "@") | |
14400 | substed = 0 | |
14401 | len = length(field[1]) | |
14402 | for (i = 2; i < nfields; i++) { | |
14403 | key = field[i] | |
14404 | keylen = length(key) | |
14405 | if (S_is_set[key]) { | |
14406 | value = S[key] | |
14407 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14408 | len += length(value) + length(field[++i]) | |
14409 | substed = 1 | |
14410 | } else | |
14411 | len += 1 + keylen | |
14412 | } | |
14413 | ||
14414 | print line | |
d9898ee8 | 14415 | } |
8d138742 CE |
14416 | |
14417 | _ACAWK | |
14418 | _ACEOF | |
14419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14420 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14421 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 14422 | else |
8d138742 | 14423 | cat |
b0322a85 CE |
14424 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14425 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 14426 | _ACEOF |
d9898ee8 | 14427 | |
b0322a85 CE |
14428 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14429 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
14430 | # trailing colons and then remove the whole line if VPATH becomes empty |
14431 | # (actually we leave an empty line to preserve line numbers). | |
14432 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
14433 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14434 | h | |
14435 | s/// | |
14436 | s/^/:/ | |
14437 | s/[ ]*$/:/ | |
14438 | s/:\$(srcdir):/:/g | |
14439 | s/:\${srcdir}:/:/g | |
14440 | s/:@srcdir@:/:/g | |
14441 | s/^:*// | |
8d138742 | 14442 | s/:*$// |
b0322a85 CE |
14443 | x |
14444 | s/\(=[ ]*\).*/\1/ | |
14445 | G | |
14446 | s/\n// | |
8d138742 CE |
14447 | s/^[^=]*=[ ]*$// |
14448 | }' | |
d9898ee8 | 14449 | fi |
dd184caf | 14450 | |
8d138742 CE |
14451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14452 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 14453 | |
8d138742 CE |
14454 | # Set up the scripts for CONFIG_HEADERS section. |
14455 | # No need to generate them if there are no CONFIG_HEADERS. | |
14456 | # This happens for instance with `./config.status Makefile'. | |
14457 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 14458 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 | 14459 | BEGIN { |
d9898ee8 | 14460 | _ACEOF |
14461 | ||
8d138742 CE |
14462 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14463 | # here-document in config.status, that substitutes the proper values into | |
14464 | # config.h.in to produce config.h. | |
d9898ee8 | 14465 | |
8d138742 CE |
14466 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14467 | # handling of long lines. | |
14468 | ac_delim='%!_!# ' | |
14469 | for ac_last_try in false false :; do | |
b0322a85 CE |
14470 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14471 | if test -z "$ac_tt"; then | |
8d138742 CE |
14472 | break |
14473 | elif $ac_last_try; then | |
b0322a85 | 14474 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
14475 | else |
14476 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14477 | fi | |
14478 | done | |
d9898ee8 | 14479 | |
8d138742 CE |
14480 | # For the awk script, D is an array of macro values keyed by name, |
14481 | # likewise P contains macro parameters if any. Preserve backslash | |
14482 | # newline sequences. | |
d9898ee8 | 14483 | |
8d138742 CE |
14484 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14485 | sed -n ' | |
14486 | s/.\{148\}/&'"$ac_delim"'/g | |
14487 | t rset | |
14488 | :rset | |
14489 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14490 | t def | |
14491 | d | |
14492 | :def | |
14493 | s/\\$// | |
14494 | t bsnl | |
14495 | s/["\\]/\\&/g | |
14496 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14497 | D["\1"]=" \3"/p | |
14498 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14499 | d | |
14500 | :bsnl | |
14501 | s/["\\]/\\&/g | |
14502 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14503 | D["\1"]=" \3\\\\\\n"\\/p | |
14504 | t cont | |
14505 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14506 | t cont | |
14507 | d | |
14508 | :cont | |
14509 | n | |
14510 | s/.\{148\}/&'"$ac_delim"'/g | |
14511 | t clear | |
14512 | :clear | |
14513 | s/\\$// | |
14514 | t bsnlc | |
14515 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14516 | d | |
14517 | :bsnlc | |
14518 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14519 | b cont | |
14520 | ' <confdefs.h | sed ' | |
14521 | s/'"$ac_delim"'/"\\\ | |
14522 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14523 | ||
14524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14525 | for (key in D) D_is_set[key] = 1 | |
14526 | FS = "\a" | |
14527 | } | |
14528 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14529 | line = \$ 0 | |
14530 | split(line, arg, " ") | |
14531 | if (arg[1] == "#") { | |
14532 | defundef = arg[2] | |
14533 | mac1 = arg[3] | |
14534 | } else { | |
14535 | defundef = substr(arg[1], 2) | |
14536 | mac1 = arg[2] | |
14537 | } | |
14538 | split(mac1, mac2, "(") #) | |
14539 | macro = mac2[1] | |
14540 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14541 | if (D_is_set[macro]) { | |
14542 | # Preserve the white space surrounding the "#". | |
14543 | print prefix "define", macro P[macro] D[macro] | |
14544 | next | |
14545 | } else { | |
14546 | # Replace #undef with comments. This is necessary, for example, | |
14547 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14548 | # on some systems where configure will not decide to define it. | |
14549 | if (defundef == "undef") { | |
14550 | print "/*", prefix defundef, macro, "*/" | |
14551 | next | |
14552 | } | |
14553 | } | |
14554 | } | |
14555 | { print } | |
14556 | _ACAWK | |
14557 | _ACEOF | |
14558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 14559 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 14560 | fi # test -n "$CONFIG_HEADERS" |
dd184caf | 14561 | |
d9898ee8 | 14562 | |
8d138742 CE |
14563 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14564 | shift | |
14565 | for ac_tag | |
14566 | do | |
14567 | case $ac_tag in | |
14568 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14569 | esac | |
14570 | case $ac_mode$ac_tag in | |
14571 | :[FHL]*:*);; | |
b0322a85 | 14572 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
14573 | :[FH]-) ac_tag=-:-;; |
14574 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14575 | esac | |
14576 | ac_save_IFS=$IFS | |
14577 | IFS=: | |
14578 | set x $ac_tag | |
14579 | IFS=$ac_save_IFS | |
14580 | shift | |
14581 | ac_file=$1 | |
14582 | shift | |
d9898ee8 | 14583 | |
8d138742 CE |
14584 | case $ac_mode in |
14585 | :L) ac_source=$1;; | |
14586 | :[FH]) | |
14587 | ac_file_inputs= | |
14588 | for ac_f | |
14589 | do | |
14590 | case $ac_f in | |
b0322a85 | 14591 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
14592 | *) # Look for the file first in the build tree, then in the source tree |
14593 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14594 | # because $ac_f cannot contain `:'. | |
14595 | test -f "$ac_f" || | |
14596 | case $ac_f in | |
14597 | [\\/$]*) false;; | |
14598 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14599 | esac || | |
b0322a85 | 14600 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
14601 | esac |
14602 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 14603 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 CE |
14604 | done |
14605 | ||
14606 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14607 | # use $as_me), people would be surprised to read: | |
14608 | # /* config.h. Generated by config.status. */ | |
14609 | configure_input='Generated from '` | |
14610 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14611 | `' by configure.' | |
14612 | if test x"$ac_file" != x-; then | |
14613 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
14615 | $as_echo "$as_me: creating $ac_file" >&6;} |
14616 | fi | |
14617 | # Neutralize special characters interpreted by sed in replacement strings. | |
14618 | case $configure_input in #( | |
14619 | *\&* | *\|* | *\\* ) | |
14620 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14621 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14622 | *) ac_sed_conf_input=$configure_input;; | |
14623 | esac | |
14624 | ||
14625 | case $ac_tag in | |
b0322a85 CE |
14626 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14627 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
14628 | esac |
14629 | ;; | |
14630 | esac | |
14631 | ||
14632 | ac_dir=`$as_dirname -- "$ac_file" || | |
14633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14634 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14635 | X"$ac_file" : 'X\(//\)$' \| \ | |
14636 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14637 | $as_echo X"$ac_file" | | |
14638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14639 | s//\1/ | |
14640 | q | |
14641 | } | |
14642 | /^X\(\/\/\)[^/].*/{ | |
14643 | s//\1/ | |
14644 | q | |
14645 | } | |
14646 | /^X\(\/\/\)$/{ | |
14647 | s//\1/ | |
14648 | q | |
14649 | } | |
14650 | /^X\(\/\).*/{ | |
14651 | s//\1/ | |
14652 | q | |
14653 | } | |
14654 | s/.*/./; q'` | |
b0322a85 | 14655 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 CE |
14656 | ac_builddir=. |
14657 | ||
14658 | case "$ac_dir" in | |
14659 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
d9898ee8 | 14660 | *) |
8d138742 CE |
14661 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
14662 | # A ".." for each directory in $ac_dir_suffix. | |
14663 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14664 | case $ac_top_builddir_sub in | |
14665 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14666 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14667 | esac ;; | |
d9898ee8 | 14668 | esac |
8d138742 CE |
14669 | ac_abs_top_builddir=$ac_pwd |
14670 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14671 | # for backward compatibility: | |
14672 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 14673 | |
8d138742 CE |
14674 | case $srcdir in |
14675 | .) # We are building in place. | |
14676 | ac_srcdir=. | |
14677 | ac_top_srcdir=$ac_top_builddir_sub | |
14678 | ac_abs_top_srcdir=$ac_pwd ;; | |
14679 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14680 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14681 | ac_top_srcdir=$srcdir | |
14682 | ac_abs_top_srcdir=$srcdir ;; | |
14683 | *) # Relative name. | |
14684 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14685 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14686 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14687 | esac | |
14688 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 14689 | |
d9898ee8 | 14690 | |
8d138742 CE |
14691 | case $ac_mode in |
14692 | :F) | |
14693 | # | |
14694 | # CONFIG_FILE | |
14695 | # | |
d9898ee8 | 14696 | |
8d138742 CE |
14697 | case $INSTALL in |
14698 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14699 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14700 | esac | |
14701 | ac_MKDIR_P=$MKDIR_P | |
14702 | case $MKDIR_P in | |
14703 | [\\/$]* | ?:[\\/]* ) ;; | |
14704 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14705 | esac | |
14706 | _ACEOF | |
d9898ee8 | 14707 | |
8d138742 CE |
14708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14709 | # If the template does not know about datarootdir, expand it. | |
14710 | # FIXME: This hack should be removed a few years after 2.60. | |
14711 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
14712 | ac_sed_dataroot=' |
14713 | /datarootdir/ { | |
14714 | p | |
14715 | q | |
14716 | } | |
14717 | /@datadir@/p | |
14718 | /@docdir@/p | |
14719 | /@infodir@/p | |
14720 | /@localedir@/p | |
b0322a85 | 14721 | /@mandir@/p' |
8d138742 CE |
14722 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14723 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14724 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
14726 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14727 | _ACEOF | |
14728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14729 | ac_datarootdir_hack=' | |
14730 | s&@datadir@&$datadir&g | |
14731 | s&@docdir@&$docdir&g | |
14732 | s&@infodir@&$infodir&g | |
14733 | s&@localedir@&$localedir&g | |
14734 | s&@mandir@&$mandir&g | |
b0322a85 | 14735 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
14736 | esac |
14737 | _ACEOF | |
d9898ee8 | 14738 | |
8d138742 CE |
14739 | # Neutralize VPATH when `$srcdir' = `.'. |
14740 | # Shell code in configure.ac might set extrasub. | |
14741 | # FIXME: do we really want to maintain this feature? | |
14742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14743 | ac_sed_extra="$ac_vpsub | |
14744 | $extrasub | |
d9898ee8 | 14745 | _ACEOF |
8d138742 CE |
14746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14747 | :t | |
14748 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14749 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14750 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14751 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14752 | s&@srcdir@&$ac_srcdir&;t t | |
14753 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14754 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14755 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14756 | s&@builddir@&$ac_builddir&;t t | |
14757 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14758 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14759 | s&@INSTALL@&$ac_INSTALL&;t t | |
14760 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14761 | $ac_datarootdir_hack | |
14762 | " | |
b0322a85 CE |
14763 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14764 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 14765 | |
8d138742 | 14766 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
14767 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14768 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14769 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14771 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 14772 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 14773 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 14774 | |
b0322a85 | 14775 | rm -f "$ac_tmp/stdin" |
8d138742 | 14776 | case $ac_file in |
b0322a85 CE |
14777 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14778 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 14779 | esac \ |
b0322a85 | 14780 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
14781 | ;; |
14782 | :H) | |
14783 | # | |
14784 | # CONFIG_HEADER | |
14785 | # | |
14786 | if test x"$ac_file" != x-; then | |
14787 | { | |
14788 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14789 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14790 | } >"$ac_tmp/config.h" \ | |
14791 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14792 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
14794 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
14795 | else | |
14796 | rm -f "$ac_file" | |
b0322a85 CE |
14797 | mv "$ac_tmp/config.h" "$ac_file" \ |
14798 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
14799 | fi |
14800 | else | |
14801 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14802 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14803 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
14804 | fi |
14805 | # Compute "$ac_file"'s index in $config_headers. | |
14806 | _am_arg="$ac_file" | |
14807 | _am_stamp_count=1 | |
14808 | for _am_header in $config_headers :; do | |
14809 | case $_am_header in | |
14810 | $_am_arg | $_am_arg:* ) | |
14811 | break ;; | |
14812 | * ) | |
14813 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14814 | esac | |
14815 | done | |
14816 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14817 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14818 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14819 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14820 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14821 | $as_echo X"$_am_arg" | | |
14822 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14823 | s//\1/ | |
14824 | q | |
14825 | } | |
14826 | /^X\(\/\/\)[^/].*/{ | |
14827 | s//\1/ | |
14828 | q | |
14829 | } | |
14830 | /^X\(\/\/\)$/{ | |
14831 | s//\1/ | |
14832 | q | |
14833 | } | |
14834 | /^X\(\/\).*/{ | |
14835 | s//\1/ | |
14836 | q | |
14837 | } | |
14838 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14839 | ;; | |
d9898ee8 | 14840 | |
b0322a85 | 14841 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
14842 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
14843 | ;; | |
14844 | esac | |
d9898ee8 | 14845 | |
d9898ee8 | 14846 | |
8d138742 CE |
14847 | case $ac_file$ac_mode in |
14848 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 14849 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
14850 | # are listed without --file. Let's play safe and only enable the eval |
14851 | # if we detect the quoting. | |
14852 | case $CONFIG_FILES in | |
14853 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14854 | *) set x $CONFIG_FILES ;; | |
14855 | esac | |
14856 | shift | |
14857 | for mf | |
14858 | do | |
14859 | # Strip MF so we end up with the name of the file. | |
14860 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14861 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 14862 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
14863 | # some people rename them; so instead we look at the file content. |
14864 | # Grep'ing the first line is not enough: some people post-process | |
14865 | # each Makefile.in and add a new line on top of each file to say so. | |
14866 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14867 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14868 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14869 | dirpart=`$as_dirname -- "$mf" || | |
14870 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14871 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14872 | X"$mf" : 'X\(//\)$' \| \ | |
14873 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14874 | $as_echo X"$mf" | | |
14875 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14876 | s//\1/ | |
14877 | q | |
14878 | } | |
14879 | /^X\(\/\/\)[^/].*/{ | |
14880 | s//\1/ | |
14881 | q | |
14882 | } | |
14883 | /^X\(\/\/\)$/{ | |
14884 | s//\1/ | |
14885 | q | |
14886 | } | |
14887 | /^X\(\/\).*/{ | |
14888 | s//\1/ | |
14889 | q | |
14890 | } | |
14891 | s/.*/./; q'` | |
14892 | else | |
14893 | continue | |
14894 | fi | |
14895 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 14896 | # from the Makefile without running 'make'. |
8d138742 CE |
14897 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14898 | test -z "$DEPDIR" && continue | |
14899 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 14900 | test -z "$am__include" && continue |
8d138742 | 14901 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
14902 | # Find all dependency output files, they are included files with |
14903 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14904 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14905 | # expansion. | |
14906 | for file in `sed -n " | |
14907 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 14908 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
14909 | # Make sure the directory exists. |
14910 | test -f "$dirpart/$file" && continue | |
14911 | fdir=`$as_dirname -- "$file" || | |
14912 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14913 | X"$file" : 'X\(//\)[^/]' \| \ | |
14914 | X"$file" : 'X\(//\)$' \| \ | |
14915 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14916 | $as_echo X"$file" | | |
14917 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14918 | s//\1/ | |
14919 | q | |
14920 | } | |
14921 | /^X\(\/\/\)[^/].*/{ | |
14922 | s//\1/ | |
14923 | q | |
14924 | } | |
14925 | /^X\(\/\/\)$/{ | |
14926 | s//\1/ | |
14927 | q | |
14928 | } | |
14929 | /^X\(\/\).*/{ | |
14930 | s//\1/ | |
14931 | q | |
14932 | } | |
14933 | s/.*/./; q'` | |
b0322a85 | 14934 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14935 | # echo "creating $dirpart/$file" |
14936 | echo '# dummy' > "$dirpart/$file" | |
14937 | done | |
14938 | done | |
14939 | } | |
14940 | ;; | |
14941 | "libtool":C) | |
d9898ee8 | 14942 | |
d50284c4 | 14943 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14944 | # commands through without removal of \ escapes. |
d50284c4 | 14945 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14946 | setopt NO_GLOB_SUBST |
14947 | fi | |
d9898ee8 | 14948 | |
d50284c4 | 14949 | cfgfile=${ofile}T |
8d138742 CE |
14950 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14951 | $RM "$cfgfile" | |
dd184caf | 14952 | |
8d138742 CE |
14953 | cat <<_LT_EOF >> "$cfgfile" |
14954 | #! $SHELL | |
d50284c4 | 14955 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14956 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14957 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14958 | |
14959 | # Provide generalized library-building support services. | |
14960 | # Written by Gordon Matzigkeit, 1996 | |
14961 | ||
14962 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14963 | # This is free software; see the source for copying conditions. There is NO | |
14964 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14965 | ||
14966 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14967 | # it under the terms of the GNU General Public License as published by | |
14968 | # the Free Software Foundation; either version 2 of of the License, or | |
14969 | # (at your option) any later version. | |
d9898ee8 | 14970 | # |
d50284c4 CE |
14971 | # As a special exception to the GNU General Public License, if you |
14972 | # distribute this file as part of a program or library that is built | |
14973 | # using GNU Libtool, you may include this file under the same | |
14974 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14975 | # |
d50284c4 CE |
14976 | # GNU Libtool is distributed in the hope that it will be useful, but |
14977 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14978 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14979 | # GNU General Public License for more details. | |
14980 | # | |
14981 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14982 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 14983 | |
d9898ee8 | 14984 | |
8d138742 | 14985 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14986 | available_tags='' |
14987 | ||
14988 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14989 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
dd184caf | 14990 | |
8d138742 | 14991 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14992 | |
8d138742 CE |
14993 | # Which release of libtool.m4 was used? |
14994 | macro_version=$macro_version | |
14995 | macro_revision=$macro_revision | |
d9898ee8 | 14996 | |
8d138742 CE |
14997 | # Whether or not to build shared libraries. |
14998 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14999 | |
8d138742 CE |
15000 | # Whether or not to build static libraries. |
15001 | build_old_libs=$enable_static | |
d9898ee8 | 15002 | |
8d138742 CE |
15003 | # What type of objects to build. |
15004 | pic_mode=$pic_mode | |
d9898ee8 | 15005 | |
8d138742 CE |
15006 | # Whether or not to optimize for fast installation. |
15007 | fast_install=$enable_fast_install | |
d9898ee8 | 15008 | |
d50284c4 CE |
15009 | # Shared archive member basename,for filename based shared library versioning on AIX. |
15010 | shared_archive_member_spec=$shared_archive_member_spec | |
15011 | ||
b0322a85 CE |
15012 | # Shell to use when invoking shell scripts. |
15013 | SHELL=$lt_SHELL | |
15014 | ||
15015 | # An echo program that protects backslashes. | |
15016 | ECHO=$lt_ECHO | |
15017 | ||
15018 | # The PATH separator for the build system. | |
15019 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
15020 | ||
8d138742 CE |
15021 | # The host system. |
15022 | host_alias=$host_alias | |
15023 | host=$host | |
15024 | host_os=$host_os | |
d9898ee8 | 15025 | |
8d138742 CE |
15026 | # The build system. |
15027 | build_alias=$build_alias | |
15028 | build=$build | |
15029 | build_os=$build_os | |
d9898ee8 | 15030 | |
8d138742 CE |
15031 | # A sed program that does not truncate output. |
15032 | SED=$lt_SED | |
d9898ee8 | 15033 | |
8d138742 CE |
15034 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15035 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 15036 | |
8d138742 CE |
15037 | # A grep program that handles long lines. |
15038 | GREP=$lt_GREP | |
dd184caf | 15039 | |
8d138742 CE |
15040 | # An ERE matcher. |
15041 | EGREP=$lt_EGREP | |
dd184caf | 15042 | |
8d138742 CE |
15043 | # A literal string matcher. |
15044 | FGREP=$lt_FGREP | |
dd184caf | 15045 | |
8d138742 CE |
15046 | # A BSD- or MS-compatible name lister. |
15047 | NM=$lt_NM | |
dd184caf | 15048 | |
8d138742 CE |
15049 | # Whether we need soft or hard links. |
15050 | LN_S=$lt_LN_S | |
dd184caf | 15051 | |
8d138742 CE |
15052 | # What is the maximum length of a command? |
15053 | max_cmd_len=$max_cmd_len | |
dd184caf | 15054 | |
8d138742 CE |
15055 | # Object file suffix (normally "o"). |
15056 | objext=$ac_objext | |
d9898ee8 | 15057 | |
8d138742 CE |
15058 | # Executable file suffix (normally ""). |
15059 | exeext=$exeext | |
d9898ee8 | 15060 | |
8d138742 CE |
15061 | # whether the shell understands "unset". |
15062 | lt_unset=$lt_unset | |
d9898ee8 | 15063 | |
8d138742 CE |
15064 | # turn spaces into newlines. |
15065 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 15066 | |
8d138742 CE |
15067 | # turn newlines into spaces. |
15068 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 15069 | |
b0322a85 CE |
15070 | # convert \$build file names to \$host format. |
15071 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
15072 | ||
15073 | # convert \$build files to toolchain format. | |
15074 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 15075 | |
8d138742 CE |
15076 | # An object symbol dumper. |
15077 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 15078 | |
8d138742 CE |
15079 | # Method to check whether dependent libraries are shared objects. |
15080 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 15081 | |
b0322a85 | 15082 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 15083 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 15084 | |
b0322a85 CE |
15085 | # How to find potential files when deplibs_check_method = "file_magic". |
15086 | file_magic_glob=$lt_file_magic_glob | |
15087 | ||
15088 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
15089 | want_nocaseglob=$lt_want_nocaseglob | |
15090 | ||
15091 | # DLL creation program. | |
15092 | DLLTOOL=$lt_DLLTOOL | |
15093 | ||
15094 | # Command to associate shared and link libraries. | |
15095 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
15096 | ||
8d138742 CE |
15097 | # The archiver. |
15098 | AR=$lt_AR | |
b0322a85 CE |
15099 | |
15100 | # Flags to create an archive. | |
8d138742 | 15101 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 15102 | |
b0322a85 CE |
15103 | # How to feed a file listing to the archiver. |
15104 | archiver_list_spec=$lt_archiver_list_spec | |
15105 | ||
8d138742 CE |
15106 | # A symbol stripping program. |
15107 | STRIP=$lt_STRIP | |
d9898ee8 | 15108 | |
8d138742 CE |
15109 | # Commands used to install an old-style archive. |
15110 | RANLIB=$lt_RANLIB | |
15111 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15112 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 15113 | |
b0322a85 CE |
15114 | # Whether to use a lock for old archive extraction. |
15115 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15116 | ||
8d138742 CE |
15117 | # A C compiler. |
15118 | LTCC=$lt_CC | |
d9898ee8 | 15119 | |
8d138742 CE |
15120 | # LTCC compiler flags. |
15121 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 15122 | |
8d138742 CE |
15123 | # Take the output of nm and produce a listing of raw symbols and C names. |
15124 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 15125 | |
8d138742 CE |
15126 | # Transform the output of nm in a proper C declaration. |
15127 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 15128 | |
d50284c4 CE |
15129 | # Transform the output of nm into a list of symbols to manually relocate. |
15130 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
15131 | ||
8d138742 CE |
15132 | # Transform the output of nm in a C name address pair. |
15133 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 15134 | |
8d138742 CE |
15135 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15136 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 15137 | |
d50284c4 CE |
15138 | # The name lister interface. |
15139 | nm_interface=$lt_lt_cv_nm_interface | |
15140 | ||
b0322a85 CE |
15141 | # Specify filename containing input files for \$NM. |
15142 | nm_file_list_spec=$lt_nm_file_list_spec | |
d9898ee8 | 15143 | |
d50284c4 | 15144 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 15145 | lt_sysroot=$lt_sysroot |
dd184caf | 15146 | |
d50284c4 CE |
15147 | # Command to truncate a binary pipe. |
15148 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
15149 | ||
b0322a85 CE |
15150 | # The name of the directory that contains temporary libtool files. |
15151 | objdir=$objdir | |
d9898ee8 | 15152 | |
8d138742 CE |
15153 | # Used to examine libraries when file_magic_cmd begins with "file". |
15154 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 15155 | |
8d138742 CE |
15156 | # Must we lock files when doing compilation? |
15157 | need_locks=$lt_need_locks | |
d9898ee8 | 15158 | |
b0322a85 CE |
15159 | # Manifest tool. |
15160 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
15161 | ||
8d138742 CE |
15162 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15163 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 15164 | |
8d138742 CE |
15165 | # Tool to change global to local symbols on Mac OS X. |
15166 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 15167 | |
8d138742 CE |
15168 | # Tool to manipulate fat objects and archives on Mac OS X. |
15169 | LIPO=$lt_LIPO | |
d9898ee8 | 15170 | |
8d138742 CE |
15171 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
15172 | OTOOL=$lt_OTOOL | |
d9898ee8 | 15173 | |
8d138742 CE |
15174 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
15175 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 15176 | |
8d138742 CE |
15177 | # Old archive suffix (normally "a"). |
15178 | libext=$libext | |
d9898ee8 | 15179 | |
8d138742 CE |
15180 | # Shared library suffix (normally ".so"). |
15181 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 15182 | |
8d138742 CE |
15183 | # The commands to extract the exported symbol list from a shared archive. |
15184 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 15185 | |
8d138742 CE |
15186 | # Variables whose values should be saved in libtool wrapper scripts and |
15187 | # restored at link time. | |
15188 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 15189 | |
8d138742 CE |
15190 | # Do we need the "lib" prefix for modules? |
15191 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 15192 | |
8d138742 CE |
15193 | # Do we need a version for libraries? |
15194 | need_version=$need_version | |
d9898ee8 | 15195 | |
8d138742 CE |
15196 | # Library versioning type. |
15197 | version_type=$version_type | |
d9898ee8 | 15198 | |
8d138742 CE |
15199 | # Shared library runtime path variable. |
15200 | runpath_var=$runpath_var | |
d9898ee8 | 15201 | |
8d138742 CE |
15202 | # Shared library path variable. |
15203 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 15204 | |
8d138742 CE |
15205 | # Is shlibpath searched before the hard-coded library search path? |
15206 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 15207 | |
8d138742 CE |
15208 | # Format of library name prefix. |
15209 | libname_spec=$lt_libname_spec | |
d9898ee8 | 15210 | |
8d138742 CE |
15211 | # List of archive names. First name is the real one, the rest are links. |
15212 | # The last name is the one that the linker finds with -lNAME | |
15213 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 15214 | |
8d138742 CE |
15215 | # The coded name of the library, if different from the real name. |
15216 | soname_spec=$lt_soname_spec | |
d9898ee8 | 15217 | |
b0322a85 CE |
15218 | # Permission mode override for installation of shared libraries. |
15219 | install_override_mode=$lt_install_override_mode | |
15220 | ||
8d138742 CE |
15221 | # Command to use after installation of a shared archive. |
15222 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 15223 | |
8d138742 CE |
15224 | # Command to use after uninstallation of a shared archive. |
15225 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 15226 | |
8d138742 CE |
15227 | # Commands used to finish a libtool library installation in a directory. |
15228 | finish_cmds=$lt_finish_cmds | |
dd184caf | 15229 | |
8d138742 CE |
15230 | # As "finish_cmds", except a single script fragment to be evaled but |
15231 | # not shown. | |
15232 | finish_eval=$lt_finish_eval | |
d9898ee8 | 15233 | |
8d138742 CE |
15234 | # Whether we should hardcode library paths into libraries. |
15235 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 15236 | |
8d138742 CE |
15237 | # Compile-time system search path for libraries. |
15238 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 15239 | |
d50284c4 CE |
15240 | # Detected run-time system search path for libraries. |
15241 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
15242 | ||
15243 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
15244 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 15245 | |
8d138742 CE |
15246 | # Whether dlopen is supported. |
15247 | dlopen_support=$enable_dlopen | |
d9898ee8 | 15248 | |
8d138742 CE |
15249 | # Whether dlopen of programs is supported. |
15250 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 15251 | |
8d138742 CE |
15252 | # Whether dlopen of statically linked programs is supported. |
15253 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 15254 | |
8d138742 CE |
15255 | # Commands to strip libraries. |
15256 | old_striplib=$lt_old_striplib | |
15257 | striplib=$lt_striplib | |
d9898ee8 | 15258 | |
d9898ee8 | 15259 | |
8d138742 CE |
15260 | # The linker used to build libraries. |
15261 | LD=$lt_LD | |
d9898ee8 | 15262 | |
b0322a85 CE |
15263 | # How to create reloadable object files. |
15264 | reload_flag=$lt_reload_flag | |
15265 | reload_cmds=$lt_reload_cmds | |
15266 | ||
8d138742 CE |
15267 | # Commands used to build an old-style archive. |
15268 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 15269 | |
8d138742 CE |
15270 | # A language specific compiler. |
15271 | CC=$lt_compiler | |
d9898ee8 | 15272 | |
8d138742 CE |
15273 | # Is the compiler the GNU compiler? |
15274 | with_gcc=$GCC | |
dd184caf | 15275 | |
8d138742 CE |
15276 | # Compiler flag to turn off builtin functions. |
15277 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 15278 | |
8d138742 CE |
15279 | # Additional compiler flags for building library objects. |
15280 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 15281 | |
b0322a85 CE |
15282 | # How to pass a linker flag through the compiler. |
15283 | wl=$lt_lt_prog_compiler_wl | |
15284 | ||
8d138742 CE |
15285 | # Compiler flag to prevent dynamic linking. |
15286 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 15287 | |
8d138742 CE |
15288 | # Does compiler simultaneously support -c and -o options? |
15289 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15290 | ||
15291 | # Whether or not to add -lc for building shared libraries. | |
15292 | build_libtool_need_lc=$archive_cmds_need_lc | |
15293 | ||
15294 | # Whether or not to disallow shared libs when runtime libs are static. | |
15295 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15296 | ||
15297 | # Compiler flag to allow reflexive dlopens. | |
15298 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 15299 | |
8d138742 CE |
15300 | # Compiler flag to generate shared objects directly from archives. |
15301 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 15302 | |
8d138742 CE |
15303 | # Whether the compiler copes with passing no objects directly. |
15304 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 15305 | |
8d138742 CE |
15306 | # Create an old-style archive from a shared archive. |
15307 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 15308 | |
8d138742 CE |
15309 | # Create a temporary old-style archive to link instead of a shared archive. |
15310 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 15311 | |
8d138742 CE |
15312 | # Commands used to build a shared archive. |
15313 | archive_cmds=$lt_archive_cmds | |
15314 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 15315 | |
8d138742 CE |
15316 | # Commands used to build a loadable module if different from building |
15317 | # a shared archive. | |
15318 | module_cmds=$lt_module_cmds | |
15319 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 15320 | |
8d138742 CE |
15321 | # Whether we are building with GNU ld or not. |
15322 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 15323 | |
8d138742 CE |
15324 | # Flag that allows shared libraries with undefined symbols to be built. |
15325 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 15326 | |
8d138742 CE |
15327 | # Flag that enforces no undefined symbols. |
15328 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 15329 | |
8d138742 CE |
15330 | # Flag to hardcode \$libdir into a binary during linking. |
15331 | # This must work even if \$libdir does not exist | |
15332 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 15333 | |
8d138742 CE |
15334 | # Whether we need a single "-rpath" flag with a separated argument. |
15335 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 15336 | |
d50284c4 | 15337 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
15338 | # DIR into the resulting binary. |
15339 | hardcode_direct=$hardcode_direct | |
dd184caf | 15340 | |
d50284c4 | 15341 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 15342 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 15343 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
15344 | # library is relocated. |
15345 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 15346 | |
8d138742 CE |
15347 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15348 | # into the resulting binary. | |
15349 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 15350 | |
8d138742 CE |
15351 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15352 | # into the resulting binary. | |
15353 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 15354 | |
8d138742 CE |
15355 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15356 | # into the library and all subsequent libraries and executables linked | |
15357 | # against it. | |
15358 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 15359 | |
8d138742 CE |
15360 | # Set to yes if linker adds runtime paths of dependent libraries |
15361 | # to runtime path list. | |
15362 | inherit_rpath=$inherit_rpath | |
dd184caf | 15363 | |
8d138742 CE |
15364 | # Whether libtool must link a program against all its dependency libraries. |
15365 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 15366 | |
8d138742 CE |
15367 | # Set to "yes" if exported symbols are required. |
15368 | always_export_symbols=$always_export_symbols | |
d9898ee8 | 15369 | |
8d138742 CE |
15370 | # The commands to list exported symbols. |
15371 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 15372 | |
8d138742 CE |
15373 | # Symbols that should not be listed in the preloaded symbols. |
15374 | exclude_expsyms=$lt_exclude_expsyms | |
dd184caf | 15375 | |
8d138742 CE |
15376 | # Symbols that must always be exported. |
15377 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 15378 | |
8d138742 CE |
15379 | # Commands necessary for linking programs (against libraries) with templates. |
15380 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 15381 | |
b0322a85 CE |
15382 | # Commands necessary for finishing linking programs. |
15383 | postlink_cmds=$lt_postlink_cmds | |
15384 | ||
8d138742 CE |
15385 | # Specify filename containing input files. |
15386 | file_list_spec=$lt_file_list_spec | |
15387 | ||
15388 | # How to hardcode a shared library path into an executable. | |
15389 | hardcode_action=$hardcode_action | |
d9898ee8 | 15390 | |
8d138742 | 15391 | # ### END LIBTOOL CONFIG |
d9898ee8 | 15392 | |
d50284c4 CE |
15393 | _LT_EOF |
15394 | ||
15395 | cat <<'_LT_EOF' >> "$cfgfile" | |
15396 | ||
15397 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
15398 | ||
15399 | # func_munge_path_list VARIABLE PATH | |
15400 | # ----------------------------------- | |
15401 | # VARIABLE is name of variable containing _space_ separated list of | |
15402 | # directories to be munged by the contents of PATH, which is string | |
15403 | # having a format: | |
15404 | # "DIR[:DIR]:" | |
15405 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
15406 | # ":DIR[:DIR]" | |
15407 | # string "DIR[ DIR]" will be appended to VARIABLE | |
15408 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
15409 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
15410 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
15411 | # "DIR[:DIR]" | |
15412 | # VARIABLE will be replaced by "DIR[ DIR]" | |
15413 | func_munge_path_list () | |
15414 | { | |
15415 | case x$2 in | |
15416 | x) | |
15417 | ;; | |
15418 | *:) | |
15419 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
15420 | ;; | |
15421 | x:*) | |
15422 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
15423 | ;; | |
15424 | *::*) | |
15425 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
15426 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
15427 | ;; | |
15428 | *) | |
15429 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
15430 | ;; | |
15431 | esac | |
15432 | } | |
15433 | ||
15434 | ||
15435 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
15436 | func_cc_basename () | |
15437 | { | |
15438 | for cc_temp in $*""; do | |
15439 | case $cc_temp in | |
15440 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15441 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15442 | \-*) ;; | |
15443 | *) break;; | |
15444 | esac | |
15445 | done | |
15446 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
15447 | } | |
15448 | ||
15449 | ||
15450 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
15451 | ||
8d138742 | 15452 | _LT_EOF |
d9898ee8 | 15453 | |
8d138742 CE |
15454 | case $host_os in |
15455 | aix3*) | |
15456 | cat <<\_LT_EOF >> "$cfgfile" | |
15457 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15458 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15459 | # vanish in a puff of smoke. | |
d50284c4 | 15460 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
15461 | COLLECT_NAMES= |
15462 | export COLLECT_NAMES | |
15463 | fi | |
15464 | _LT_EOF | |
15465 | ;; | |
dd184caf | 15466 | esac |
8d138742 CE |
15467 | |
15468 | ||
d50284c4 | 15469 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
15470 | |
15471 | ||
15472 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15473 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15474 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15475 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
15476 | sed '$q' "$ltmain" >> "$cfgfile" \ |
15477 | || (rm -f "$cfgfile"; exit 1) | |
15478 | ||
b0322a85 | 15479 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
15480 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15481 | chmod +x "$ofile" | |
15482 | ||
d9898ee8 | 15483 | ;; |
dd184caf | 15484 | |
d9898ee8 | 15485 | esac |
dd184caf | 15486 | done # for ac_tag |
d9898ee8 | 15487 | |
d9898ee8 | 15488 | |
b0322a85 | 15489 | as_fn_exit 0 |
d9898ee8 | 15490 | _ACEOF |
d9898ee8 | 15491 | ac_clean_files=$ac_clean_files_save |
15492 | ||
8d138742 | 15493 | test $ac_write_fail = 0 || |
b0322a85 | 15494 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 15495 | |
d9898ee8 | 15496 | |
15497 | # configure is writing to config.log, and then calls config.status. | |
15498 | # config.status does its own redirection, appending to config.log. | |
15499 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15500 | # by configure, so config.status won't be able to write to it; its | |
15501 | # output is simply discarded. So we exec the FD to /dev/null, | |
15502 | # effectively closing config.log, so it can be properly (re)opened and | |
15503 | # appended to by config.status. When coming back to configure, we | |
15504 | # need to make the FD available again. | |
15505 | if test "$no_create" != yes; then | |
15506 | ac_cs_success=: | |
15507 | ac_config_status_args= | |
15508 | test "$silent" = yes && | |
15509 | ac_config_status_args="$ac_config_status_args --quiet" | |
15510 | exec 5>/dev/null | |
15511 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15512 | exec 5>>config.log | |
15513 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15514 | # would make configure fail if this is the last instruction. | |
b0322a85 | 15515 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 15516 | fi |
8d138742 | 15517 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
15519 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15520 | fi | |
d9898ee8 | 15521 |