]>
Commit | Line | Data |
---|---|---|
b9668ba4 AK |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5070705b | 3 | # Generated by GNU Autoconf 2.69 for yaml 0.2.2. |
b9668ba4 | 4 | # |
c45550e5 | 5 | # Report bugs to <https://github.com/yaml/libyaml/issues/new>. |
b9668ba4 | 6 | # |
0fbeb4dc | 7 | # |
0044e680 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
0fbeb4dc AK |
9 | # |
10 | # | |
b9668ba4 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
0fbeb4dc AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
b9668ba4 AK |
16 | |
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
0fbeb4dc | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b9668ba4 AK |
20 | emulate sh |
21 | NULLCMD=: | |
47dc80f6 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b9668ba4 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
0fbeb4dc AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
b9668ba4 | 32 | esac |
b9668ba4 AK |
33 | fi |
34 | ||
35 | ||
47dc80f6 AK |
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 | |
0fbeb4dc AK |
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 | |
47dc80f6 AK |
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' | |
b9668ba4 | 56 | else |
47dc80f6 AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
0fbeb4dc | 60 | case $arg in #( |
47dc80f6 AK |
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' | |
b9668ba4 | 69 | fi |
47dc80f6 AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
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 | } | |
b9668ba4 AK |
81 | fi |
82 | ||
b9668ba4 AK |
83 | |
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.) | |
b9668ba4 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
059850b5 | 92 | as_myself= |
0fbeb4dc | 93 | case $0 in #(( |
b9668ba4 AK |
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=. | |
0fbeb4dc AK |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
b9668ba4 AK |
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 | |
47dc80f6 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
0fbeb4dc | 113 | exit 1 |
b9668ba4 AK |
114 | fi |
115 | ||
0fbeb4dc AK |
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 || : | |
b9668ba4 AK |
123 | done |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
47dc80f6 AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
b9668ba4 | 133 | |
b9668ba4 | 134 | # CDPATH. |
0fbeb4dc | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
b9668ba4 | 136 | |
0044e680 AK |
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;} | |
b9668ba4 | 162 | if test "x$CONFIG_SHELL" = x; then |
0fbeb4dc AK |
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 | |
b9668ba4 | 170 | else |
0fbeb4dc AK |
171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
b9668ba4 | 177 | fi |
0fbeb4dc AK |
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; } | |
b9668ba4 AK |
184 | |
185 | exitcode=0 | |
0fbeb4dc AK |
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 | |
0044e680 AK |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
0fbeb4dc AK |
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 | |
059850b5 AK |
201 | |
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
0fbeb4dc AK |
209 | test \$(( 1 + 1 )) = 2 || exit 1" |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
b9668ba4 | 212 | else |
0fbeb4dc | 213 | as_have_required=no |
b9668ba4 | 214 | fi |
0fbeb4dc | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
b9668ba4 | 216 | |
b9668ba4 | 217 | else |
0fbeb4dc AK |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
b9668ba4 AK |
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=. | |
0fbeb4dc AK |
224 | as_found=: |
225 | case $as_dir in #( | |
b9668ba4 AK |
226 | /*) |
227 | for as_base in sh bash ksh sh5; do | |
0fbeb4dc AK |
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 | |
b9668ba4 AK |
237 | done;; |
238 | esac | |
0fbeb4dc | 239 | as_found=false |
b9668ba4 | 240 | done |
0fbeb4dc AK |
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; } | |
b9668ba4 AK |
245 | IFS=$as_save_IFS |
246 | ||
247 | ||
0fbeb4dc | 248 | if test "x$CONFIG_SHELL" != x; then : |
0044e680 AK |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
b9668ba4 AK |
268 | fi |
269 | ||
0fbeb4dc AK |
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 | |
c45550e5 | 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and https://github.com/yaml/libyaml/issues/new about |
0fbeb4dc AK |
278 | $0: your system, including any error possibly output before |
279 | $0: this message. Then install a modern shell, or manually | |
280 | $0: run the script under such a shell if you do have one." | |
281 | fi | |
282 | exit 1 | |
b9668ba4 | 283 | fi |
b9668ba4 | 284 | fi |
b9668ba4 | 285 | fi |
0fbeb4dc AK |
286 | SHELL=${CONFIG_SHELL-/bin/sh} |
287 | export SHELL | |
288 | # Unset more variables known to interfere with behavior of common tools. | |
289 | CLICOLOR_FORCE= GREP_OPTIONS= | |
290 | unset CLICOLOR_FORCE GREP_OPTIONS | |
b9668ba4 | 291 | |
0fbeb4dc AK |
292 | ## --------------------- ## |
293 | ## M4sh Shell Functions. ## | |
294 | ## --------------------- ## | |
295 | # as_fn_unset VAR | |
296 | # --------------- | |
297 | # Portably unset VAR. | |
298 | as_fn_unset () | |
299 | { | |
300 | { eval $1=; unset $1;} | |
301 | } | |
302 | as_unset=as_fn_unset | |
b9668ba4 | 303 | |
0fbeb4dc AK |
304 | # as_fn_set_status STATUS |
305 | # ----------------------- | |
306 | # Set $? to STATUS, without forking. | |
307 | as_fn_set_status () | |
308 | { | |
309 | return $1 | |
310 | } # as_fn_set_status | |
b9668ba4 | 311 | |
0fbeb4dc AK |
312 | # as_fn_exit STATUS |
313 | # ----------------- | |
314 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
315 | as_fn_exit () | |
316 | { | |
317 | set +e | |
318 | as_fn_set_status $1 | |
319 | exit $1 | |
320 | } # as_fn_exit | |
321 | ||
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
b9668ba4 | 327 | |
0fbeb4dc AK |
328 | case $as_dir in #( |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
335 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
336 | *) as_qdir=$as_dir;; | |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
344 | $as_echo X"$as_dir" | | |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
366 | ||
367 | ||
368 | } # as_fn_mkdir_p | |
0044e680 AK |
369 | |
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
0fbeb4dc AK |
377 | # as_fn_append VAR VALUE |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
384 | eval 'as_fn_append () | |
385 | { | |
386 | eval $1+=\$2 | |
387 | }' | |
b9668ba4 | 388 | else |
0fbeb4dc AK |
389 | as_fn_append () |
390 | { | |
391 | eval $1=\$$1\$2 | |
392 | } | |
393 | fi # as_fn_append | |
394 | ||
395 | # as_fn_arith ARG... | |
396 | # ------------------ | |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
399 | # must be portable across $(()) and expr. | |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
401 | eval 'as_fn_arith () | |
402 | { | |
403 | as_val=$(( $* )) | |
404 | }' | |
405 | else | |
406 | as_fn_arith () | |
407 | { | |
408 | as_val=`expr "$@" || test $? -eq 1` | |
409 | } | |
410 | fi # as_fn_arith | |
b9668ba4 | 411 | |
b9668ba4 | 412 | |
0fbeb4dc AK |
413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
414 | # ---------------------------------------- | |
415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
417 | # script with STATUS, using 1 if that was 0. | |
418 | as_fn_error () | |
419 | { | |
420 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
421 | if test "$4"; then | |
422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
423 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
424 | fi | |
425 | $as_echo "$as_me: error: $2" >&2 | |
426 | as_fn_exit $as_status | |
427 | } # as_fn_error | |
428 | ||
429 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
431 | as_expr=expr | |
b9668ba4 | 432 | else |
0fbeb4dc | 433 | as_expr=false |
b9668ba4 AK |
434 | fi |
435 | ||
0fbeb4dc AK |
436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
437 | as_basename=basename | |
438 | else | |
439 | as_basename=false | |
b9668ba4 AK |
440 | fi |
441 | ||
0fbeb4dc AK |
442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
443 | as_dirname=dirname | |
b9668ba4 | 444 | else |
0fbeb4dc | 445 | as_dirname=false |
b9668ba4 AK |
446 | fi |
447 | ||
0fbeb4dc AK |
448 | as_me=`$as_basename -- "$0" || |
449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
450 | X"$0" : 'X\(//\)$' \| \ | |
451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
452 | $as_echo X/"$0" | | |
453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | /^X\/\(\/\/\)$/{ | |
458 | s//\1/ | |
459 | q | |
460 | } | |
461 | /^X\/\(\/\).*/{ | |
462 | s//\1/ | |
463 | q | |
464 | } | |
465 | s/.*/./; q'` | |
b9668ba4 | 466 | |
0fbeb4dc AK |
467 | # Avoid depending upon Character Ranges. |
468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
471 | as_cr_digits='0123456789' | |
472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b9668ba4 | 473 | |
b9668ba4 | 474 | |
0fbeb4dc AK |
475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
b9668ba4 AK |
480 | sed -n ' |
481 | p | |
482 | /[$]LINENO/= | |
483 | ' <$as_myself | | |
484 | sed ' | |
485 | s/[$]LINENO.*/&-/ | |
486 | t lineno | |
487 | b | |
488 | :lineno | |
489 | N | |
490 | :loop | |
491 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
492 | t loop | |
493 | s/-\n.*// | |
494 | ' >$as_me.lineno && | |
495 | chmod +x "$as_me.lineno" || | |
0fbeb4dc | 496 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
b9668ba4 | 497 | |
0044e680 AK |
498 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
499 | # already done that, so ensure we don't try to do so again and fall | |
500 | # in an infinite loop. This has already happened in practice. | |
501 | _as_can_reexec=no; export _as_can_reexec | |
b9668ba4 AK |
502 | # Don't try to exec as it changes $[0], causing all sort of problems |
503 | # (the dirname of $[0] is not the place where we might find the | |
504 | # original and so on. Autoconf is especially sensitive to this). | |
505 | . "./$as_me.lineno" | |
506 | # Exit status is that of the last command. | |
507 | exit | |
508 | } | |
509 | ||
b9668ba4 | 510 | ECHO_C= ECHO_N= ECHO_T= |
0fbeb4dc | 511 | case `echo -n x` in #((((( |
b9668ba4 | 512 | -n*) |
0fbeb4dc | 513 | case `echo 'xy\c'` in |
b9668ba4 | 514 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
0fbeb4dc AK |
515 | xy) ECHO_C='\c';; |
516 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
517 | ECHO_T=' ';; | |
b9668ba4 AK |
518 | esac;; |
519 | *) | |
520 | ECHO_N='-n';; | |
521 | esac | |
b9668ba4 AK |
522 | |
523 | rm -f conf$$ conf$$.exe conf$$.file | |
524 | if test -d conf$$.dir; then | |
525 | rm -f conf$$.dir/conf$$.file | |
526 | else | |
527 | rm -f conf$$.dir | |
47dc80f6 AK |
528 | mkdir conf$$.dir 2>/dev/null |
529 | fi | |
530 | if (echo >conf$$.file) 2>/dev/null; then | |
531 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
532 | as_ln_s='ln -s' | |
533 | # ... but there are two gotchas: | |
534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
535 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
0044e680 | 536 | # In both cases, we have to default to `cp -pR'. |
47dc80f6 | 537 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
0044e680 | 538 | as_ln_s='cp -pR' |
47dc80f6 AK |
539 | elif ln conf$$.file conf$$ 2>/dev/null; then |
540 | as_ln_s=ln | |
541 | else | |
0044e680 | 542 | as_ln_s='cp -pR' |
47dc80f6 | 543 | fi |
b9668ba4 | 544 | else |
0044e680 | 545 | as_ln_s='cp -pR' |
b9668ba4 AK |
546 | fi |
547 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
548 | rmdir conf$$.dir 2>/dev/null | |
549 | ||
550 | if mkdir -p . 2>/dev/null; then | |
0fbeb4dc | 551 | as_mkdir_p='mkdir -p "$as_dir"' |
b9668ba4 AK |
552 | else |
553 | test -d ./-p && rmdir ./-p | |
554 | as_mkdir_p=false | |
555 | fi | |
556 | ||
0044e680 AK |
557 | as_test_x='test -x' |
558 | as_executable_p=as_fn_executable_p | |
b9668ba4 AK |
559 | |
560 | # Sed expression to map a string onto a valid CPP name. | |
561 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
562 | ||
563 | # Sed expression to map a string onto a valid variable name. | |
564 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
b9668ba4 AK |
566 | SHELL=${CONFIG_SHELL-/bin/sh} |
567 | ||
b9668ba4 | 568 | |
0fbeb4dc AK |
569 | test -n "$DJDIR" || exec 7<&0 </dev/null |
570 | exec 6>&1 | |
b9668ba4 AK |
571 | |
572 | # Name of the host. | |
0fbeb4dc | 573 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b9668ba4 AK |
574 | # so uname gets run too. |
575 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
576 | ||
577 | # | |
578 | # Initializations. | |
579 | # | |
580 | ac_default_prefix=/usr/local | |
581 | ac_clean_files= | |
582 | ac_config_libobj_dir=. | |
583 | LIBOBJS= | |
584 | cross_compiling=no | |
585 | subdirs= | |
586 | MFLAGS= | |
587 | MAKEFLAGS= | |
b9668ba4 AK |
588 | |
589 | # Identity of this package. | |
590 | PACKAGE_NAME='yaml' | |
591 | PACKAGE_TARNAME='yaml' | |
5070705b AK |
592 | PACKAGE_VERSION='0.2.2' |
593 | PACKAGE_STRING='yaml 0.2.2' | |
c45550e5 | 594 | PACKAGE_BUGREPORT='https://github.com/yaml/libyaml/issues/new' |
0fbeb4dc | 595 | PACKAGE_URL='' |
b9668ba4 AK |
596 | |
597 | # Factoring default headers for most tests. | |
598 | ac_includes_default="\ | |
599 | #include <stdio.h> | |
600 | #ifdef HAVE_SYS_TYPES_H | |
601 | # include <sys/types.h> | |
602 | #endif | |
603 | #ifdef HAVE_SYS_STAT_H | |
604 | # include <sys/stat.h> | |
605 | #endif | |
606 | #ifdef STDC_HEADERS | |
607 | # include <stdlib.h> | |
608 | # include <stddef.h> | |
609 | #else | |
610 | # ifdef HAVE_STDLIB_H | |
611 | # include <stdlib.h> | |
612 | # endif | |
613 | #endif | |
614 | #ifdef HAVE_STRING_H | |
615 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
616 | # include <memory.h> | |
617 | # endif | |
618 | # include <string.h> | |
619 | #endif | |
620 | #ifdef HAVE_STRINGS_H | |
621 | # include <strings.h> | |
622 | #endif | |
623 | #ifdef HAVE_INTTYPES_H | |
624 | # include <inttypes.h> | |
625 | #endif | |
626 | #ifdef HAVE_STDINT_H | |
627 | # include <stdint.h> | |
628 | #endif | |
629 | #ifdef HAVE_UNISTD_H | |
630 | # include <unistd.h> | |
631 | #endif" | |
632 | ||
0fbeb4dc AK |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
b9668ba4 | 636 | LIBOBJS |
47dc80f6 AK |
637 | DOXYGEN_FALSE |
638 | DOXYGEN_TRUE | |
639 | DOXYGEN | |
c45550e5 | 640 | LT_SYS_LIBRARY_PATH |
47dc80f6 AK |
641 | OTOOL64 |
642 | OTOOL | |
643 | LIPO | |
644 | NMEDIT | |
645 | DSYMUTIL | |
059850b5 | 646 | MANIFEST_TOOL |
47dc80f6 | 647 | RANLIB |
059850b5 | 648 | ac_ct_AR |
47dc80f6 | 649 | AR |
059850b5 | 650 | DLLTOOL |
47dc80f6 AK |
651 | OBJDUMP |
652 | NM | |
653 | ac_ct_DUMPBIN | |
654 | DUMPBIN | |
655 | LD | |
656 | FGREP | |
657 | EGREP | |
658 | GREP | |
659 | SED | |
660 | host_os | |
661 | host_vendor | |
662 | host_cpu | |
663 | host | |
664 | build_os | |
665 | build_vendor | |
666 | build_cpu | |
667 | build | |
668 | LIBTOOL | |
669 | LN_S | |
670 | CPP | |
671 | am__fastdepCC_FALSE | |
672 | am__fastdepCC_TRUE | |
673 | CCDEPMODE | |
059850b5 | 674 | am__nodep |
47dc80f6 AK |
675 | AMDEPBACKSLASH |
676 | AMDEP_FALSE | |
677 | AMDEP_TRUE | |
678 | am__quote | |
679 | am__include | |
680 | DEPDIR | |
681 | OBJEXT | |
682 | EXEEXT | |
683 | ac_ct_CC | |
684 | CPPFLAGS | |
685 | LDFLAGS | |
686 | CFLAGS | |
687 | CC | |
688 | YAML_LT_AGE | |
689 | YAML_LT_REVISION | |
690 | YAML_LT_CURRENT | |
691 | YAML_LT_RELEASE | |
0044e680 AK |
692 | AM_BACKSLASH |
693 | AM_DEFAULT_VERBOSITY | |
694 | AM_DEFAULT_V | |
695 | AM_V | |
47dc80f6 AK |
696 | am__untar |
697 | am__tar | |
698 | AMTAR | |
699 | am__leading_dot | |
700 | SET_MAKE | |
701 | AWK | |
702 | mkdir_p | |
703 | MKDIR_P | |
704 | INSTALL_STRIP_PROGRAM | |
705 | STRIP | |
706 | install_sh | |
707 | MAKEINFO | |
708 | AUTOHEADER | |
709 | AUTOMAKE | |
710 | AUTOCONF | |
711 | ACLOCAL | |
712 | VERSION | |
713 | PACKAGE | |
714 | CYGPATH_W | |
715 | am__isrc | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | target_alias | |
720 | host_alias | |
721 | build_alias | |
722 | LIBS | |
723 | ECHO_T | |
724 | ECHO_N | |
725 | ECHO_C | |
726 | DEFS | |
727 | mandir | |
728 | localedir | |
729 | libdir | |
730 | psdir | |
731 | pdfdir | |
732 | dvidir | |
733 | htmldir | |
734 | infodir | |
735 | docdir | |
736 | oldincludedir | |
737 | includedir | |
5070705b | 738 | runstatedir |
47dc80f6 AK |
739 | localstatedir |
740 | sharedstatedir | |
741 | sysconfdir | |
742 | datadir | |
743 | datarootdir | |
744 | libexecdir | |
745 | sbindir | |
746 | bindir | |
747 | program_transform_name | |
748 | prefix | |
749 | exec_prefix | |
0fbeb4dc | 750 | PACKAGE_URL |
47dc80f6 AK |
751 | PACKAGE_BUGREPORT |
752 | PACKAGE_STRING | |
753 | PACKAGE_VERSION | |
754 | PACKAGE_TARNAME | |
755 | PACKAGE_NAME | |
756 | PATH_SEPARATOR | |
757 | SHELL' | |
b9668ba4 | 758 | ac_subst_files='' |
47dc80f6 AK |
759 | ac_user_opts=' |
760 | enable_option_checking | |
0044e680 | 761 | enable_silent_rules |
47dc80f6 AK |
762 | enable_dependency_tracking |
763 | enable_shared | |
764 | enable_static | |
765 | with_pic | |
766 | enable_fast_install | |
c45550e5 | 767 | with_aix_soname |
47dc80f6 | 768 | with_gnu_ld |
059850b5 | 769 | with_sysroot |
47dc80f6 AK |
770 | enable_libtool_lock |
771 | ' | |
b9668ba4 AK |
772 | ac_precious_vars='build_alias |
773 | host_alias | |
774 | target_alias | |
775 | CC | |
776 | CFLAGS | |
777 | LDFLAGS | |
778 | LIBS | |
779 | CPPFLAGS | |
c45550e5 AK |
780 | CPP |
781 | LT_SYS_LIBRARY_PATH' | |
b9668ba4 AK |
782 | |
783 | ||
784 | # Initialize some variables set by options. | |
785 | ac_init_help= | |
786 | ac_init_version=false | |
47dc80f6 AK |
787 | ac_unrecognized_opts= |
788 | ac_unrecognized_sep= | |
b9668ba4 AK |
789 | # The variables have the same names as the options, with |
790 | # dashes changed to underlines. | |
791 | cache_file=/dev/null | |
792 | exec_prefix=NONE | |
793 | no_create= | |
794 | no_recursion= | |
795 | prefix=NONE | |
796 | program_prefix=NONE | |
797 | program_suffix=NONE | |
798 | program_transform_name=s,x,x, | |
799 | silent= | |
800 | site= | |
801 | srcdir= | |
802 | verbose= | |
803 | x_includes=NONE | |
804 | x_libraries=NONE | |
805 | ||
806 | # Installation directory options. | |
807 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
808 | # and all the variables that are supposed to be based on exec_prefix | |
809 | # by default will actually change. | |
810 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
811 | # (The list follows the same order as the GNU Coding Standards.) | |
812 | bindir='${exec_prefix}/bin' | |
813 | sbindir='${exec_prefix}/sbin' | |
814 | libexecdir='${exec_prefix}/libexec' | |
815 | datarootdir='${prefix}/share' | |
816 | datadir='${datarootdir}' | |
817 | sysconfdir='${prefix}/etc' | |
818 | sharedstatedir='${prefix}/com' | |
819 | localstatedir='${prefix}/var' | |
5070705b | 820 | runstatedir='${localstatedir}/run' |
b9668ba4 AK |
821 | includedir='${prefix}/include' |
822 | oldincludedir='/usr/include' | |
823 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
824 | infodir='${datarootdir}/info' | |
825 | htmldir='${docdir}' | |
826 | dvidir='${docdir}' | |
827 | pdfdir='${docdir}' | |
828 | psdir='${docdir}' | |
829 | libdir='${exec_prefix}/lib' | |
830 | localedir='${datarootdir}/locale' | |
831 | mandir='${datarootdir}/man' | |
832 | ||
833 | ac_prev= | |
834 | ac_dashdash= | |
835 | for ac_option | |
836 | do | |
837 | # If the previous option needs an argument, assign it. | |
838 | if test -n "$ac_prev"; then | |
839 | eval $ac_prev=\$ac_option | |
840 | ac_prev= | |
841 | continue | |
842 | fi | |
843 | ||
844 | case $ac_option in | |
0fbeb4dc AK |
845 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
846 | *=) ac_optarg= ;; | |
847 | *) ac_optarg=yes ;; | |
b9668ba4 AK |
848 | esac |
849 | ||
850 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
851 | ||
852 | case $ac_dashdash$ac_option in | |
853 | --) | |
854 | ac_dashdash=yes ;; | |
855 | ||
856 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
857 | ac_prev=bindir ;; | |
858 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
859 | bindir=$ac_optarg ;; | |
860 | ||
861 | -build | --build | --buil | --bui | --bu) | |
862 | ac_prev=build_alias ;; | |
863 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
864 | build_alias=$ac_optarg ;; | |
865 | ||
866 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
867 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
868 | ac_prev=cache_file ;; | |
869 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
870 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
871 | cache_file=$ac_optarg ;; | |
872 | ||
873 | --config-cache | -C) | |
874 | cache_file=config.cache ;; | |
875 | ||
876 | -datadir | --datadir | --datadi | --datad) | |
877 | ac_prev=datadir ;; | |
878 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
879 | datadir=$ac_optarg ;; | |
880 | ||
881 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
882 | | --dataroo | --dataro | --datar) | |
883 | ac_prev=datarootdir ;; | |
884 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
885 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
886 | datarootdir=$ac_optarg ;; | |
887 | ||
888 | -disable-* | --disable-*) | |
47dc80f6 | 889 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b9668ba4 | 890 | # Reject names that are not valid shell variable names. |
47dc80f6 | 891 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
0fbeb4dc | 892 | as_fn_error $? "invalid feature name: $ac_useropt" |
47dc80f6 AK |
893 | ac_useropt_orig=$ac_useropt |
894 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
895 | case $ac_user_opts in | |
896 | *" | |
897 | "enable_$ac_useropt" | |
898 | "*) ;; | |
899 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
900 | ac_unrecognized_sep=', ';; | |
901 | esac | |
902 | eval enable_$ac_useropt=no ;; | |
b9668ba4 AK |
903 | |
904 | -docdir | --docdir | --docdi | --doc | --do) | |
905 | ac_prev=docdir ;; | |
906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
907 | docdir=$ac_optarg ;; | |
908 | ||
909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
910 | ac_prev=dvidir ;; | |
911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
912 | dvidir=$ac_optarg ;; | |
913 | ||
914 | -enable-* | --enable-*) | |
47dc80f6 | 915 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b9668ba4 | 916 | # Reject names that are not valid shell variable names. |
47dc80f6 | 917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
0fbeb4dc | 918 | as_fn_error $? "invalid feature name: $ac_useropt" |
47dc80f6 AK |
919 | ac_useropt_orig=$ac_useropt |
920 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
921 | case $ac_user_opts in | |
922 | *" | |
923 | "enable_$ac_useropt" | |
924 | "*) ;; | |
925 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
926 | ac_unrecognized_sep=', ';; | |
927 | esac | |
928 | eval enable_$ac_useropt=\$ac_optarg ;; | |
b9668ba4 AK |
929 | |
930 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
931 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
932 | | --exec | --exe | --ex) | |
933 | ac_prev=exec_prefix ;; | |
934 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
935 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
936 | | --exec=* | --exe=* | --ex=*) | |
937 | exec_prefix=$ac_optarg ;; | |
938 | ||
939 | -gas | --gas | --ga | --g) | |
940 | # Obsolete; use --with-gas. | |
941 | with_gas=yes ;; | |
942 | ||
943 | -help | --help | --hel | --he | -h) | |
944 | ac_init_help=long ;; | |
945 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
946 | ac_init_help=recursive ;; | |
947 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
948 | ac_init_help=short ;; | |
949 | ||
950 | -host | --host | --hos | --ho) | |
951 | ac_prev=host_alias ;; | |
952 | -host=* | --host=* | --hos=* | --ho=*) | |
953 | host_alias=$ac_optarg ;; | |
954 | ||
955 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
956 | ac_prev=htmldir ;; | |
957 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
958 | | --ht=*) | |
959 | htmldir=$ac_optarg ;; | |
960 | ||
961 | -includedir | --includedir | --includedi | --included | --include \ | |
962 | | --includ | --inclu | --incl | --inc) | |
963 | ac_prev=includedir ;; | |
964 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
965 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
966 | includedir=$ac_optarg ;; | |
967 | ||
968 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
969 | ac_prev=infodir ;; | |
970 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
971 | infodir=$ac_optarg ;; | |
972 | ||
973 | -libdir | --libdir | --libdi | --libd) | |
974 | ac_prev=libdir ;; | |
975 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
976 | libdir=$ac_optarg ;; | |
977 | ||
978 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
979 | | --libexe | --libex | --libe) | |
980 | ac_prev=libexecdir ;; | |
981 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
982 | | --libexe=* | --libex=* | --libe=*) | |
983 | libexecdir=$ac_optarg ;; | |
984 | ||
985 | -localedir | --localedir | --localedi | --localed | --locale) | |
986 | ac_prev=localedir ;; | |
987 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
988 | localedir=$ac_optarg ;; | |
989 | ||
990 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
991 | | --localstate | --localstat | --localsta | --localst | --locals) | |
992 | ac_prev=localstatedir ;; | |
993 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
994 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
995 | localstatedir=$ac_optarg ;; | |
996 | ||
997 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
998 | ac_prev=mandir ;; | |
999 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1000 | mandir=$ac_optarg ;; | |
1001 | ||
1002 | -nfp | --nfp | --nf) | |
1003 | # Obsolete; use --without-fp. | |
1004 | with_fp=no ;; | |
1005 | ||
1006 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1007 | | --no-cr | --no-c | -n) | |
1008 | no_create=yes ;; | |
1009 | ||
1010 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1011 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1012 | no_recursion=yes ;; | |
1013 | ||
1014 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1015 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1016 | | --oldin | --oldi | --old | --ol | --o) | |
1017 | ac_prev=oldincludedir ;; | |
1018 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1019 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1020 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1021 | oldincludedir=$ac_optarg ;; | |
1022 | ||
1023 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1024 | ac_prev=prefix ;; | |
1025 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1026 | prefix=$ac_optarg ;; | |
1027 | ||
1028 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1029 | | --program-pre | --program-pr | --program-p) | |
1030 | ac_prev=program_prefix ;; | |
1031 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1032 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1033 | program_prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1036 | | --program-suf | --program-su | --program-s) | |
1037 | ac_prev=program_suffix ;; | |
1038 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1039 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1040 | program_suffix=$ac_optarg ;; | |
1041 | ||
1042 | -program-transform-name | --program-transform-name \ | |
1043 | | --program-transform-nam | --program-transform-na \ | |
1044 | | --program-transform-n | --program-transform- \ | |
1045 | | --program-transform | --program-transfor \ | |
1046 | | --program-transfo | --program-transf \ | |
1047 | | --program-trans | --program-tran \ | |
1048 | | --progr-tra | --program-tr | --program-t) | |
1049 | ac_prev=program_transform_name ;; | |
1050 | -program-transform-name=* | --program-transform-name=* \ | |
1051 | | --program-transform-nam=* | --program-transform-na=* \ | |
1052 | | --program-transform-n=* | --program-transform-=* \ | |
1053 | | --program-transform=* | --program-transfor=* \ | |
1054 | | --program-transfo=* | --program-transf=* \ | |
1055 | | --program-trans=* | --program-tran=* \ | |
1056 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1057 | program_transform_name=$ac_optarg ;; | |
1058 | ||
1059 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1060 | ac_prev=pdfdir ;; | |
1061 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1062 | pdfdir=$ac_optarg ;; | |
1063 | ||
1064 | -psdir | --psdir | --psdi | --psd | --ps) | |
1065 | ac_prev=psdir ;; | |
1066 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1067 | psdir=$ac_optarg ;; | |
1068 | ||
1069 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1070 | | -silent | --silent | --silen | --sile | --sil) | |
1071 | silent=yes ;; | |
1072 | ||
5070705b AK |
1073 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1074 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1075 | | --run | --ru | --r) | |
1076 | ac_prev=runstatedir ;; | |
1077 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1078 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1079 | | --run=* | --ru=* | --r=*) | |
1080 | runstatedir=$ac_optarg ;; | |
1081 | ||
b9668ba4 AK |
1082 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1083 | ac_prev=sbindir ;; | |
1084 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1085 | | --sbi=* | --sb=*) | |
1086 | sbindir=$ac_optarg ;; | |
1087 | ||
1088 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1089 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1090 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1091 | | --sha | --sh) | |
1092 | ac_prev=sharedstatedir ;; | |
1093 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1094 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1095 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1096 | | --sha=* | --sh=*) | |
1097 | sharedstatedir=$ac_optarg ;; | |
1098 | ||
1099 | -site | --site | --sit) | |
1100 | ac_prev=site ;; | |
1101 | -site=* | --site=* | --sit=*) | |
1102 | site=$ac_optarg ;; | |
1103 | ||
1104 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1105 | ac_prev=srcdir ;; | |
1106 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1107 | srcdir=$ac_optarg ;; | |
1108 | ||
1109 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1110 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1111 | ac_prev=sysconfdir ;; | |
1112 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1113 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1114 | sysconfdir=$ac_optarg ;; | |
1115 | ||
1116 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1117 | ac_prev=target_alias ;; | |
1118 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1119 | target_alias=$ac_optarg ;; | |
1120 | ||
1121 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1122 | verbose=yes ;; | |
1123 | ||
1124 | -version | --version | --versio | --versi | --vers | -V) | |
1125 | ac_init_version=: ;; | |
1126 | ||
1127 | -with-* | --with-*) | |
47dc80f6 | 1128 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b9668ba4 | 1129 | # Reject names that are not valid shell variable names. |
47dc80f6 | 1130 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
0fbeb4dc | 1131 | as_fn_error $? "invalid package name: $ac_useropt" |
47dc80f6 AK |
1132 | ac_useropt_orig=$ac_useropt |
1133 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1134 | case $ac_user_opts in | |
1135 | *" | |
1136 | "with_$ac_useropt" | |
1137 | "*) ;; | |
1138 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1139 | ac_unrecognized_sep=', ';; | |
1140 | esac | |
1141 | eval with_$ac_useropt=\$ac_optarg ;; | |
b9668ba4 AK |
1142 | |
1143 | -without-* | --without-*) | |
47dc80f6 | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b9668ba4 | 1145 | # Reject names that are not valid shell variable names. |
47dc80f6 | 1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
0fbeb4dc | 1147 | as_fn_error $? "invalid package name: $ac_useropt" |
47dc80f6 AK |
1148 | ac_useropt_orig=$ac_useropt |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
1156 | esac | |
1157 | eval with_$ac_useropt=no ;; | |
b9668ba4 AK |
1158 | |
1159 | --x) | |
1160 | # Obsolete; use --with-x. | |
1161 | with_x=yes ;; | |
1162 | ||
1163 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1164 | | --x-incl | --x-inc | --x-in | --x-i) | |
1165 | ac_prev=x_includes ;; | |
1166 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1167 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1168 | x_includes=$ac_optarg ;; | |
1169 | ||
1170 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1171 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1172 | ac_prev=x_libraries ;; | |
1173 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1174 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1175 | x_libraries=$ac_optarg ;; | |
1176 | ||
0fbeb4dc AK |
1177 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1178 | Try \`$0 --help' for more information" | |
b9668ba4 AK |
1179 | ;; |
1180 | ||
1181 | *=*) | |
1182 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1183 | # Reject names that are not valid shell variable names. | |
0fbeb4dc AK |
1184 | case $ac_envvar in #( |
1185 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1186 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1187 | esac | |
b9668ba4 AK |
1188 | eval $ac_envvar=\$ac_optarg |
1189 | export $ac_envvar ;; | |
1190 | ||
1191 | *) | |
1192 | # FIXME: should be removed in autoconf 3.0. | |
47dc80f6 | 1193 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b9668ba4 | 1194 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
47dc80f6 | 1195 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
059850b5 | 1196 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
b9668ba4 AK |
1197 | ;; |
1198 | ||
1199 | esac | |
1200 | done | |
1201 | ||
1202 | if test -n "$ac_prev"; then | |
1203 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
0fbeb4dc | 1204 | as_fn_error $? "missing argument to $ac_option" |
b9668ba4 AK |
1205 | fi |
1206 | ||
47dc80f6 AK |
1207 | if test -n "$ac_unrecognized_opts"; then |
1208 | case $enable_option_checking in | |
1209 | no) ;; | |
0fbeb4dc | 1210 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
47dc80f6 AK |
1211 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1212 | esac | |
1213 | fi | |
1214 | ||
1215 | # Check all directory arguments for consistency. | |
b9668ba4 AK |
1216 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1217 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1218 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
5070705b | 1219 | libdir localedir mandir runstatedir |
b9668ba4 AK |
1220 | do |
1221 | eval ac_val=\$$ac_var | |
47dc80f6 AK |
1222 | # Remove trailing slashes. |
1223 | case $ac_val in | |
1224 | */ ) | |
1225 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1226 | eval $ac_var=\$ac_val;; | |
1227 | esac | |
1228 | # Be sure to have absolute directory names. | |
b9668ba4 AK |
1229 | case $ac_val in |
1230 | [\\/$]* | ?:[\\/]* ) continue;; | |
1231 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1232 | esac | |
0fbeb4dc | 1233 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
b9668ba4 AK |
1234 | done |
1235 | ||
1236 | # There might be people who depend on the old broken behavior: `$host' | |
1237 | # used to hold the argument of --host etc. | |
1238 | # FIXME: To remove some day. | |
1239 | build=$build_alias | |
1240 | host=$host_alias | |
1241 | target=$target_alias | |
1242 | ||
1243 | # FIXME: To remove some day. | |
1244 | if test "x$host_alias" != x; then | |
1245 | if test "x$build_alias" = x; then | |
1246 | cross_compiling=maybe | |
b9668ba4 AK |
1247 | elif test "x$build_alias" != "x$host_alias"; then |
1248 | cross_compiling=yes | |
1249 | fi | |
1250 | fi | |
1251 | ||
1252 | ac_tool_prefix= | |
1253 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1254 | ||
1255 | test "$silent" = yes && exec 6>/dev/null | |
1256 | ||
1257 | ||
1258 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1259 | ac_ls_di=`ls -di .` && | |
1260 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
0fbeb4dc | 1261 | as_fn_error $? "working directory cannot be determined" |
b9668ba4 | 1262 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
0fbeb4dc | 1263 | as_fn_error $? "pwd does not report name of working directory" |
b9668ba4 AK |
1264 | |
1265 | ||
1266 | # Find the source files, if location was not specified. | |
1267 | if test -z "$srcdir"; then | |
1268 | ac_srcdir_defaulted=yes | |
1269 | # Try the directory containing this script, then the parent directory. | |
47dc80f6 AK |
1270 | ac_confdir=`$as_dirname -- "$as_myself" || |
1271 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1272 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1273 | X"$as_myself" : 'X\(//\)$' \| \ | |
1274 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1275 | $as_echo X"$as_myself" | | |
b9668ba4 AK |
1276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | /^X\(\/\/\)[^/].*/{ | |
1281 | s//\1/ | |
1282 | q | |
1283 | } | |
1284 | /^X\(\/\/\)$/{ | |
1285 | s//\1/ | |
1286 | q | |
1287 | } | |
1288 | /^X\(\/\).*/{ | |
1289 | s//\1/ | |
1290 | q | |
1291 | } | |
1292 | s/.*/./; q'` | |
1293 | srcdir=$ac_confdir | |
1294 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1295 | srcdir=.. | |
1296 | fi | |
1297 | else | |
1298 | ac_srcdir_defaulted=no | |
1299 | fi | |
1300 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1301 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
0fbeb4dc | 1302 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
b9668ba4 AK |
1303 | fi |
1304 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1305 | ac_abs_confdir=`( | |
0fbeb4dc | 1306 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
b9668ba4 AK |
1307 | pwd)` |
1308 | # When building in place, set srcdir=. | |
1309 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1310 | srcdir=. | |
1311 | fi | |
1312 | # Remove unnecessary trailing slashes from srcdir. | |
1313 | # Double slashes in file names in object file debugging info | |
1314 | # mess up M-x gdb in Emacs. | |
1315 | case $srcdir in | |
1316 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1317 | esac | |
1318 | for ac_var in $ac_precious_vars; do | |
1319 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1320 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1321 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1322 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1323 | done | |
1324 | ||
1325 | # | |
1326 | # Report the --help message. | |
1327 | # | |
1328 | if test "$ac_init_help" = "long"; then | |
1329 | # Omit some internal or obsolete options to make the list less imposing. | |
1330 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1331 | cat <<_ACEOF | |
5070705b | 1332 | \`configure' configures yaml 0.2.2 to adapt to many kinds of systems. |
b9668ba4 AK |
1333 | |
1334 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1335 | ||
1336 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1337 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1338 | ||
1339 | Defaults for the options are specified in brackets. | |
1340 | ||
1341 | Configuration: | |
1342 | -h, --help display this help and exit | |
1343 | --help=short display options specific to this package | |
1344 | --help=recursive display the short help of all the included packages | |
1345 | -V, --version display version information and exit | |
0fbeb4dc | 1346 | -q, --quiet, --silent do not print \`checking ...' messages |
b9668ba4 AK |
1347 | --cache-file=FILE cache test results in FILE [disabled] |
1348 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1349 | -n, --no-create do not create output files | |
1350 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1351 | ||
1352 | Installation directories: | |
1353 | --prefix=PREFIX install architecture-independent files in PREFIX | |
47dc80f6 | 1354 | [$ac_default_prefix] |
b9668ba4 | 1355 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
47dc80f6 | 1356 | [PREFIX] |
b9668ba4 AK |
1357 | |
1358 | By default, \`make install' will install all the files in | |
1359 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1360 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1361 | for instance \`--prefix=\$HOME'. | |
1362 | ||
1363 | For better control, use the options below. | |
1364 | ||
1365 | Fine tuning of the installation directories: | |
47dc80f6 AK |
1366 | --bindir=DIR user executables [EPREFIX/bin] |
1367 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1368 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1369 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1370 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1371 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
5070705b | 1372 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
47dc80f6 AK |
1373 | --libdir=DIR object code libraries [EPREFIX/lib] |
1374 | --includedir=DIR C header files [PREFIX/include] | |
1375 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1376 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1377 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1378 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1379 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1380 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1381 | --docdir=DIR documentation root [DATAROOTDIR/doc/yaml] | |
1382 | --htmldir=DIR html documentation [DOCDIR] | |
1383 | --dvidir=DIR dvi documentation [DOCDIR] | |
1384 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1385 | --psdir=DIR ps documentation [DOCDIR] | |
b9668ba4 AK |
1386 | _ACEOF |
1387 | ||
1388 | cat <<\_ACEOF | |
1389 | ||
1390 | Program names: | |
1391 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1392 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1393 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1394 | ||
1395 | System types: | |
1396 | --build=BUILD configure for building on BUILD [guessed] | |
1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1398 | _ACEOF | |
1399 | fi | |
1400 | ||
1401 | if test -n "$ac_init_help"; then | |
1402 | case $ac_init_help in | |
5070705b | 1403 | short | recursive ) echo "Configuration of yaml 0.2.2:";; |
b9668ba4 AK |
1404 | esac |
1405 | cat <<\_ACEOF | |
1406 | ||
1407 | Optional Features: | |
47dc80f6 | 1408 | --disable-option-checking ignore unrecognized --enable/--with options |
b9668ba4 AK |
1409 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1410 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
0044e680 AK |
1411 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1412 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1413 | --enable-dependency-tracking | |
1414 | do not reject slow dependency extractors | |
1415 | --disable-dependency-tracking | |
1416 | speeds up one-time build | |
b9668ba4 AK |
1417 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1418 | --enable-static[=PKGS] build static libraries [default=yes] | |
1419 | --enable-fast-install[=PKGS] | |
1420 | optimize for fast installation [default=yes] | |
1421 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1422 | ||
1423 | Optional Packages: | |
1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
059850b5 | 1426 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
b9668ba4 | 1427 | both] |
c45550e5 AK |
1428 | --with-aix-soname=aix|svr4|both |
1429 | shared library versioning (aka "SONAME") variant to | |
1430 | provide on AIX, [default=aix]. | |
5c706339 | 1431 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
c45550e5 AK |
1432 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1433 | compiler's sysroot if not specified). | |
b9668ba4 AK |
1434 | |
1435 | Some influential environment variables: | |
1436 | CC C compiler command | |
1437 | CFLAGS C compiler flags | |
1438 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1439 | nonstandard directory <lib dir> | |
1440 | LIBS libraries to pass to the linker, e.g. -l<library> | |
0fbeb4dc | 1441 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
b9668ba4 AK |
1442 | you have headers in a nonstandard directory <include dir> |
1443 | CPP C preprocessor | |
c45550e5 AK |
1444 | LT_SYS_LIBRARY_PATH |
1445 | User-defined run-time library search path. | |
b9668ba4 AK |
1446 | |
1447 | Use these variables to override the choices made by `configure' or to help | |
1448 | it to find libraries and programs with nonstandard names/locations. | |
1449 | ||
c45550e5 | 1450 | Report bugs to <https://github.com/yaml/libyaml/issues/new>. |
0fbeb4dc AK |
1451 | _ACEOF |
1452 | ac_status=$? | |
1453 | fi | |
1454 | ||
1455 | if test "$ac_init_help" = "recursive"; then | |
1456 | # If there are subdirs, report their specific --help. | |
1457 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1458 | test -d "$ac_dir" || | |
1459 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1460 | continue | |
1461 | ac_builddir=. | |
1462 | ||
1463 | case "$ac_dir" in | |
1464 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1465 | *) | |
1466 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1467 | # A ".." for each directory in $ac_dir_suffix. | |
1468 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1469 | case $ac_top_builddir_sub in | |
1470 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1471 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1472 | esac ;; | |
1473 | esac | |
1474 | ac_abs_top_builddir=$ac_pwd | |
1475 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1476 | # for backward compatibility: | |
1477 | ac_top_builddir=$ac_top_build_prefix | |
1478 | ||
1479 | case $srcdir in | |
1480 | .) # We are building in place. | |
1481 | ac_srcdir=. | |
1482 | ac_top_srcdir=$ac_top_builddir_sub | |
1483 | ac_abs_top_srcdir=$ac_pwd ;; | |
1484 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1485 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1486 | ac_top_srcdir=$srcdir | |
1487 | ac_abs_top_srcdir=$srcdir ;; | |
1488 | *) # Relative name. | |
1489 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1490 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1491 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1492 | esac | |
1493 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1494 | ||
1495 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1496 | # Check for guested configure. | |
1497 | if test -f "$ac_srcdir/configure.gnu"; then | |
1498 | echo && | |
1499 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1500 | elif test -f "$ac_srcdir/configure"; then | |
1501 | echo && | |
1502 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1503 | else | |
1504 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1505 | fi || ac_status=$? | |
1506 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1507 | done | |
1508 | fi | |
1509 | ||
1510 | test -n "$ac_init_help" && exit $ac_status | |
1511 | if $ac_init_version; then | |
1512 | cat <<\_ACEOF | |
5070705b | 1513 | yaml configure 0.2.2 |
0044e680 | 1514 | generated by GNU Autoconf 2.69 |
0fbeb4dc | 1515 | |
0044e680 | 1516 | Copyright (C) 2012 Free Software Foundation, Inc. |
0fbeb4dc AK |
1517 | This configure script is free software; the Free Software Foundation |
1518 | gives unlimited permission to copy, distribute and modify it. | |
1519 | _ACEOF | |
1520 | exit | |
1521 | fi | |
1522 | ||
1523 | ## ------------------------ ## | |
1524 | ## Autoconf initialization. ## | |
1525 | ## ------------------------ ## | |
1526 | ||
1527 | # ac_fn_c_try_compile LINENO | |
1528 | # -------------------------- | |
1529 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1530 | ac_fn_c_try_compile () | |
1531 | { | |
1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1533 | rm -f conftest.$ac_objext | |
1534 | if { { ac_try="$ac_compile" | |
1535 | case "(($ac_try" in | |
1536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1537 | *) ac_try_echo=$ac_try;; | |
1538 | esac | |
1539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1540 | $as_echo "$ac_try_echo"; } >&5 | |
1541 | (eval "$ac_compile") 2>conftest.err | |
1542 | ac_status=$? | |
1543 | if test -s conftest.err; then | |
1544 | grep -v '^ *+' conftest.err >conftest.er1 | |
1545 | cat conftest.er1 >&5 | |
1546 | mv -f conftest.er1 conftest.err | |
1547 | fi | |
1548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1549 | test $ac_status = 0; } && { | |
1550 | test -z "$ac_c_werror_flag" || | |
1551 | test ! -s conftest.err | |
1552 | } && test -s conftest.$ac_objext; then : | |
1553 | ac_retval=0 | |
1554 | else | |
1555 | $as_echo "$as_me: failed program was:" >&5 | |
1556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1557 | ||
1558 | ac_retval=1 | |
1559 | fi | |
059850b5 | 1560 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1561 | as_fn_set_status $ac_retval |
1562 | ||
1563 | } # ac_fn_c_try_compile | |
1564 | ||
1565 | # ac_fn_c_try_cpp LINENO | |
1566 | # ---------------------- | |
1567 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1568 | ac_fn_c_try_cpp () | |
1569 | { | |
1570 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1571 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1572 | case "(($ac_try" in | |
1573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1574 | *) ac_try_echo=$ac_try;; | |
1575 | esac | |
1576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1577 | $as_echo "$ac_try_echo"; } >&5 | |
1578 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1579 | ac_status=$? | |
1580 | if test -s conftest.err; then | |
1581 | grep -v '^ *+' conftest.err >conftest.er1 | |
1582 | cat conftest.er1 >&5 | |
1583 | mv -f conftest.er1 conftest.err | |
1584 | fi | |
1585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1586 | test $ac_status = 0; } > conftest.i && { | |
1587 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1588 | test ! -s conftest.err | |
1589 | }; then : | |
1590 | ac_retval=0 | |
1591 | else | |
1592 | $as_echo "$as_me: failed program was:" >&5 | |
1593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1594 | ||
1595 | ac_retval=1 | |
1596 | fi | |
059850b5 | 1597 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1598 | as_fn_set_status $ac_retval |
1599 | ||
1600 | } # ac_fn_c_try_cpp | |
1601 | ||
1602 | # ac_fn_c_try_link LINENO | |
1603 | # ----------------------- | |
1604 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1605 | ac_fn_c_try_link () | |
1606 | { | |
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1609 | if { { ac_try="$ac_link" | |
1610 | case "(($ac_try" in | |
1611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1612 | *) ac_try_echo=$ac_try;; | |
1613 | esac | |
1614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1615 | $as_echo "$ac_try_echo"; } >&5 | |
1616 | (eval "$ac_link") 2>conftest.err | |
1617 | ac_status=$? | |
1618 | if test -s conftest.err; then | |
1619 | grep -v '^ *+' conftest.err >conftest.er1 | |
1620 | cat conftest.er1 >&5 | |
1621 | mv -f conftest.er1 conftest.err | |
1622 | fi | |
1623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1624 | test $ac_status = 0; } && { | |
1625 | test -z "$ac_c_werror_flag" || | |
1626 | test ! -s conftest.err | |
1627 | } && test -s conftest$ac_exeext && { | |
1628 | test "$cross_compiling" = yes || | |
0044e680 | 1629 | test -x conftest$ac_exeext |
0fbeb4dc AK |
1630 | }; then : |
1631 | ac_retval=0 | |
1632 | else | |
1633 | $as_echo "$as_me: failed program was:" >&5 | |
1634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1635 | ||
1636 | ac_retval=1 | |
1637 | fi | |
1638 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1639 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1640 | # interfere with the next link command; also delete a directory that is | |
1641 | # left behind by Apple's compiler. We do this before executing the actions. | |
1642 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
059850b5 | 1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1644 | as_fn_set_status $ac_retval |
1645 | ||
1646 | } # ac_fn_c_try_link | |
1647 | ||
1648 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1649 | # ------------------------------------------------------- | |
1650 | # Tests whether HEADER exists and can be compiled using the include files in | |
1651 | # INCLUDES, setting the cache variable VAR accordingly. | |
1652 | ac_fn_c_check_header_compile () | |
1653 | { | |
1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1656 | $as_echo_n "checking for $2... " >&6; } | |
059850b5 | 1657 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1658 | $as_echo_n "(cached) " >&6 |
1659 | else | |
1660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1661 | /* end confdefs.h. */ | |
1662 | $4 | |
1663 | #include <$2> | |
1664 | _ACEOF | |
1665 | if ac_fn_c_try_compile "$LINENO"; then : | |
1666 | eval "$3=yes" | |
1667 | else | |
1668 | eval "$3=no" | |
1669 | fi | |
1670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1671 | fi | |
1672 | eval ac_res=\$$3 | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1674 | $as_echo "$ac_res" >&6; } | |
059850b5 | 1675 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1676 | |
1677 | } # ac_fn_c_check_header_compile | |
1678 | ||
1679 | # ac_fn_c_try_run LINENO | |
1680 | # ---------------------- | |
1681 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1682 | # that executables *can* be run. | |
1683 | ac_fn_c_try_run () | |
1684 | { | |
1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1686 | if { { ac_try="$ac_link" | |
1687 | case "(($ac_try" in | |
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1689 | *) ac_try_echo=$ac_try;; | |
1690 | esac | |
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1692 | $as_echo "$ac_try_echo"; } >&5 | |
1693 | (eval "$ac_link") 2>&5 | |
1694 | ac_status=$? | |
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1696 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1697 | { { case "(($ac_try" in | |
1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1699 | *) ac_try_echo=$ac_try;; | |
1700 | esac | |
1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1702 | $as_echo "$ac_try_echo"; } >&5 | |
1703 | (eval "$ac_try") 2>&5 | |
1704 | ac_status=$? | |
1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1706 | test $ac_status = 0; }; }; then : | |
1707 | ac_retval=0 | |
1708 | else | |
1709 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1710 | $as_echo "$as_me: failed program was:" >&5 | |
1711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1712 | ||
1713 | ac_retval=$ac_status | |
1714 | fi | |
1715 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
059850b5 | 1716 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1717 | as_fn_set_status $ac_retval |
1718 | ||
1719 | } # ac_fn_c_try_run | |
1720 | ||
1721 | # ac_fn_c_check_func LINENO FUNC VAR | |
1722 | # ---------------------------------- | |
1723 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1724 | ac_fn_c_check_func () | |
1725 | { | |
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1728 | $as_echo_n "checking for $2... " >&6; } | |
059850b5 | 1729 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1730 | $as_echo_n "(cached) " >&6 |
1731 | else | |
1732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1733 | /* end confdefs.h. */ | |
1734 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1736 | #define $2 innocuous_$2 | |
1737 | ||
1738 | /* System header to define __stub macros and hopefully few prototypes, | |
1739 | which can conflict with char $2 (); below. | |
1740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1741 | <limits.h> exists even on freestanding compilers. */ | |
1742 | ||
1743 | #ifdef __STDC__ | |
1744 | # include <limits.h> | |
1745 | #else | |
1746 | # include <assert.h> | |
1747 | #endif | |
1748 | ||
1749 | #undef $2 | |
1750 | ||
1751 | /* Override any GCC internal prototype to avoid an error. | |
1752 | Use char because int might match the return type of a GCC | |
1753 | builtin and then its argument prototype would still apply. */ | |
1754 | #ifdef __cplusplus | |
1755 | extern "C" | |
1756 | #endif | |
1757 | char $2 (); | |
1758 | /* The GNU C library defines this for functions which it implements | |
1759 | to always fail with ENOSYS. Some functions are actually named | |
1760 | something starting with __ and the normal name is an alias. */ | |
1761 | #if defined __stub_$2 || defined __stub___$2 | |
1762 | choke me | |
1763 | #endif | |
1764 | ||
1765 | int | |
1766 | main () | |
1767 | { | |
1768 | return $2 (); | |
1769 | ; | |
1770 | return 0; | |
1771 | } | |
1772 | _ACEOF | |
1773 | if ac_fn_c_try_link "$LINENO"; then : | |
1774 | eval "$3=yes" | |
1775 | else | |
1776 | eval "$3=no" | |
1777 | fi | |
1778 | rm -f core conftest.err conftest.$ac_objext \ | |
1779 | conftest$ac_exeext conftest.$ac_ext | |
1780 | fi | |
1781 | eval ac_res=\$$3 | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1783 | $as_echo "$ac_res" >&6; } | |
059850b5 | 1784 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1785 | |
1786 | } # ac_fn_c_check_func | |
1787 | ||
1788 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1789 | # ------------------------------------------------------- | |
1790 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1791 | # the include files in INCLUDES and setting the cache variable VAR | |
1792 | # accordingly. | |
1793 | ac_fn_c_check_header_mongrel () | |
1794 | { | |
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
059850b5 | 1796 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1798 | $as_echo_n "checking for $2... " >&6; } | |
059850b5 | 1799 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1800 | $as_echo_n "(cached) " >&6 |
1801 | fi | |
1802 | eval ac_res=\$$3 | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1804 | $as_echo "$ac_res" >&6; } | |
1805 | else | |
1806 | # Is the header compilable? | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1808 | $as_echo_n "checking $2 usability... " >&6; } | |
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1810 | /* end confdefs.h. */ | |
1811 | $4 | |
1812 | #include <$2> | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | ac_header_compiler=yes | |
1816 | else | |
1817 | ac_header_compiler=no | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1821 | $as_echo "$ac_header_compiler" >&6; } | |
1822 | ||
1823 | # Is the header present? | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1825 | $as_echo_n "checking $2 presence... " >&6; } | |
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1827 | /* end confdefs.h. */ | |
1828 | #include <$2> | |
b9668ba4 | 1829 | _ACEOF |
0fbeb4dc AK |
1830 | if ac_fn_c_try_cpp "$LINENO"; then : |
1831 | ac_header_preproc=yes | |
1832 | else | |
1833 | ac_header_preproc=no | |
b9668ba4 | 1834 | fi |
0fbeb4dc AK |
1835 | rm -f conftest.err conftest.i conftest.$ac_ext |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1837 | $as_echo "$ac_header_preproc" >&6; } | |
b9668ba4 | 1838 | |
0fbeb4dc AK |
1839 | # So? What about this header? |
1840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1841 | yes:no: ) | |
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1843 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1846 | ;; | |
1847 | no:yes:* ) | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1849 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1855 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1857 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
c45550e5 AK |
1858 | ( $as_echo "## --------------------------------------------------------- ## |
1859 | ## Report this to https://github.com/yaml/libyaml/issues/new ## | |
1860 | ## --------------------------------------------------------- ##" | |
0fbeb4dc AK |
1861 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1862 | ;; | |
b9668ba4 | 1863 | esac |
0fbeb4dc AK |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1865 | $as_echo_n "checking for $2... " >&6; } | |
059850b5 | 1866 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1867 | $as_echo_n "(cached) " >&6 |
1868 | else | |
1869 | eval "$3=\$ac_header_compiler" | |
b9668ba4 | 1870 | fi |
0fbeb4dc AK |
1871 | eval ac_res=\$$3 |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1873 | $as_echo "$ac_res" >&6; } | |
1874 | fi | |
059850b5 | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b9668ba4 | 1876 | |
0fbeb4dc | 1877 | } # ac_fn_c_check_header_mongrel |
b9668ba4 | 1878 | |
0fbeb4dc AK |
1879 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1880 | # ------------------------------------------- | |
1881 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1882 | # variable VAR accordingly. | |
1883 | ac_fn_c_check_type () | |
1884 | { | |
1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1887 | $as_echo_n "checking for $2... " >&6; } | |
059850b5 | 1888 | if eval \${$3+:} false; then : |
0fbeb4dc AK |
1889 | $as_echo_n "(cached) " >&6 |
1890 | else | |
1891 | eval "$3=no" | |
1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1893 | /* end confdefs.h. */ | |
1894 | $4 | |
1895 | int | |
1896 | main () | |
1897 | { | |
1898 | if (sizeof ($2)) | |
1899 | return 0; | |
1900 | ; | |
1901 | return 0; | |
1902 | } | |
b9668ba4 | 1903 | _ACEOF |
0fbeb4dc AK |
1904 | if ac_fn_c_try_compile "$LINENO"; then : |
1905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1906 | /* end confdefs.h. */ | |
1907 | $4 | |
1908 | int | |
1909 | main () | |
1910 | { | |
1911 | if (sizeof (($2))) | |
1912 | return 0; | |
1913 | ; | |
1914 | return 0; | |
1915 | } | |
1916 | _ACEOF | |
1917 | if ac_fn_c_try_compile "$LINENO"; then : | |
1918 | ||
1919 | else | |
1920 | eval "$3=yes" | |
1921 | fi | |
1922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1923 | fi | |
1924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b9668ba4 | 1925 | fi |
0fbeb4dc AK |
1926 | eval ac_res=\$$3 |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1928 | $as_echo "$ac_res" >&6; } | |
059850b5 | 1929 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0fbeb4dc AK |
1930 | |
1931 | } # ac_fn_c_check_type | |
b9668ba4 AK |
1932 | cat >config.log <<_ACEOF |
1933 | This file contains any messages produced by compilers while | |
1934 | running configure, to aid debugging if configure makes a mistake. | |
1935 | ||
5070705b | 1936 | It was created by yaml $as_me 0.2.2, which was |
0044e680 | 1937 | generated by GNU Autoconf 2.69. Invocation command line was |
b9668ba4 AK |
1938 | |
1939 | $ $0 $@ | |
1940 | ||
1941 | _ACEOF | |
1942 | exec 5>>config.log | |
1943 | { | |
1944 | cat <<_ASUNAME | |
1945 | ## --------- ## | |
1946 | ## Platform. ## | |
1947 | ## --------- ## | |
1948 | ||
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1965 | ||
1966 | _ASUNAME | |
1967 | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1969 | for as_dir in $PATH | |
1970 | do | |
1971 | IFS=$as_save_IFS | |
1972 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc AK |
1973 | $as_echo "PATH: $as_dir" |
1974 | done | |
b9668ba4 AK |
1975 | IFS=$as_save_IFS |
1976 | ||
1977 | } >&5 | |
1978 | ||
1979 | cat >&5 <<_ACEOF | |
1980 | ||
1981 | ||
1982 | ## ----------- ## | |
1983 | ## Core tests. ## | |
1984 | ## ----------- ## | |
1985 | ||
1986 | _ACEOF | |
1987 | ||
1988 | ||
1989 | # Keep a trace of the command line. | |
1990 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1991 | # Strip out --silent because we don't want to record it for future runs. | |
1992 | # Also quote any args containing shell meta-characters. | |
1993 | # Make two passes to allow for proper duplicate-argument suppression. | |
1994 | ac_configure_args= | |
1995 | ac_configure_args0= | |
1996 | ac_configure_args1= | |
1997 | ac_must_keep_next=false | |
1998 | for ac_pass in 1 2 | |
1999 | do | |
2000 | for ac_arg | |
2001 | do | |
2002 | case $ac_arg in | |
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2005 | | -silent | --silent | --silen | --sile | --sil) | |
2006 | continue ;; | |
2007 | *\'*) | |
47dc80f6 | 2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b9668ba4 AK |
2009 | esac |
2010 | case $ac_pass in | |
0fbeb4dc | 2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b9668ba4 | 2012 | 2) |
0fbeb4dc | 2013 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b9668ba4 AK |
2014 | if test $ac_must_keep_next = true; then |
2015 | ac_must_keep_next=false # Got value, back to normal. | |
2016 | else | |
2017 | case $ac_arg in | |
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2022 | case "$ac_configure_args0 " in | |
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2024 | esac | |
2025 | ;; | |
2026 | -* ) ac_must_keep_next=true ;; | |
2027 | esac | |
2028 | fi | |
0fbeb4dc | 2029 | as_fn_append ac_configure_args " '$ac_arg'" |
b9668ba4 AK |
2030 | ;; |
2031 | esac | |
2032 | done | |
2033 | done | |
0fbeb4dc AK |
2034 | { ac_configure_args0=; unset ac_configure_args0;} |
2035 | { ac_configure_args1=; unset ac_configure_args1;} | |
b9668ba4 AK |
2036 | |
2037 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2038 | # config.log. We remove comments because anyway the quotes in there | |
2039 | # would cause problems or look ugly. | |
2040 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2042 | trap 'exit_status=$? | |
2043 | # Save into config.log some information that might help in debugging. | |
2044 | { | |
2045 | echo | |
2046 | ||
0fbeb4dc | 2047 | $as_echo "## ---------------- ## |
b9668ba4 | 2048 | ## Cache variables. ## |
0fbeb4dc | 2049 | ## ---------------- ##" |
b9668ba4 AK |
2050 | echo |
2051 | # The following way of writing the cache mishandles newlines in values, | |
2052 | ( | |
2053 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2054 | eval ac_val=\$$ac_var | |
2055 | case $ac_val in #( | |
2056 | *${as_nl}*) | |
2057 | case $ac_var in #( | |
0fbeb4dc | 2058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
47dc80f6 | 2059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
b9668ba4 AK |
2060 | esac |
2061 | case $ac_var in #( | |
2062 | _ | IFS | as_nl) ;; #( | |
47dc80f6 | 2063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
0fbeb4dc | 2064 | *) { eval $ac_var=; unset $ac_var;} ;; |
b9668ba4 AK |
2065 | esac ;; |
2066 | esac | |
2067 | done | |
2068 | (set) 2>&1 | | |
2069 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2070 | *${as_nl}ac_space=\ *) | |
2071 | sed -n \ | |
2072 | "s/'\''/'\''\\\\'\'''\''/g; | |
2073 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2074 | ;; #( | |
2075 | *) | |
2076 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2077 | ;; | |
2078 | esac | | |
2079 | sort | |
2080 | ) | |
2081 | echo | |
2082 | ||
0fbeb4dc | 2083 | $as_echo "## ----------------- ## |
b9668ba4 | 2084 | ## Output variables. ## |
0fbeb4dc | 2085 | ## ----------------- ##" |
b9668ba4 AK |
2086 | echo |
2087 | for ac_var in $ac_subst_vars | |
2088 | do | |
2089 | eval ac_val=\$$ac_var | |
2090 | case $ac_val in | |
47dc80f6 | 2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
b9668ba4 | 2092 | esac |
47dc80f6 | 2093 | $as_echo "$ac_var='\''$ac_val'\''" |
b9668ba4 AK |
2094 | done | sort |
2095 | echo | |
2096 | ||
2097 | if test -n "$ac_subst_files"; then | |
0fbeb4dc | 2098 | $as_echo "## ------------------- ## |
b9668ba4 | 2099 | ## File substitutions. ## |
0fbeb4dc | 2100 | ## ------------------- ##" |
b9668ba4 AK |
2101 | echo |
2102 | for ac_var in $ac_subst_files | |
2103 | do | |
2104 | eval ac_val=\$$ac_var | |
2105 | case $ac_val in | |
47dc80f6 | 2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
b9668ba4 | 2107 | esac |
47dc80f6 | 2108 | $as_echo "$ac_var='\''$ac_val'\''" |
b9668ba4 AK |
2109 | done | sort |
2110 | echo | |
2111 | fi | |
2112 | ||
2113 | if test -s confdefs.h; then | |
0fbeb4dc | 2114 | $as_echo "## ----------- ## |
b9668ba4 | 2115 | ## confdefs.h. ## |
0fbeb4dc | 2116 | ## ----------- ##" |
b9668ba4 AK |
2117 | echo |
2118 | cat confdefs.h | |
2119 | echo | |
2120 | fi | |
2121 | test "$ac_signal" != 0 && | |
47dc80f6 AK |
2122 | $as_echo "$as_me: caught signal $ac_signal" |
2123 | $as_echo "$as_me: exit $exit_status" | |
b9668ba4 AK |
2124 | } >&5 |
2125 | rm -f core *.core core.conftest.* && | |
2126 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2127 | exit $exit_status | |
2128 | ' 0 | |
2129 | for ac_signal in 1 2 13 15; do | |
0fbeb4dc | 2130 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b9668ba4 AK |
2131 | done |
2132 | ac_signal=0 | |
2133 | ||
2134 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2135 | rm -f -r conftest* confdefs.h | |
2136 | ||
0fbeb4dc AK |
2137 | $as_echo "/* confdefs.h */" > confdefs.h |
2138 | ||
b9668ba4 AK |
2139 | # Predefined preprocessor variables. |
2140 | ||
2141 | cat >>confdefs.h <<_ACEOF | |
2142 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2143 | _ACEOF | |
2144 | ||
b9668ba4 AK |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2147 | _ACEOF | |
2148 | ||
b9668ba4 AK |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2151 | _ACEOF | |
2152 | ||
b9668ba4 AK |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2155 | _ACEOF | |
2156 | ||
b9668ba4 AK |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2159 | _ACEOF | |
2160 | ||
0fbeb4dc AK |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_URL "$PACKAGE_URL" | |
2163 | _ACEOF | |
2164 | ||
b9668ba4 AK |
2165 | |
2166 | # Let the site file select an alternate cache file if it wants to. | |
47dc80f6 AK |
2167 | # Prefer an explicitly selected file to automatically selected ones. |
2168 | ac_site_file1=NONE | |
2169 | ac_site_file2=NONE | |
b9668ba4 | 2170 | if test -n "$CONFIG_SITE"; then |
0fbeb4dc AK |
2171 | # We do not want a PATH search for config.site. |
2172 | case $CONFIG_SITE in #(( | |
2173 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2174 | */*) ac_site_file1=$CONFIG_SITE;; | |
2175 | *) ac_site_file1=./$CONFIG_SITE;; | |
2176 | esac | |
b9668ba4 | 2177 | elif test "x$prefix" != xNONE; then |
47dc80f6 AK |
2178 | ac_site_file1=$prefix/share/config.site |
2179 | ac_site_file2=$prefix/etc/config.site | |
b9668ba4 | 2180 | else |
47dc80f6 AK |
2181 | ac_site_file1=$ac_default_prefix/share/config.site |
2182 | ac_site_file2=$ac_default_prefix/etc/config.site | |
b9668ba4 | 2183 | fi |
47dc80f6 | 2184 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
b9668ba4 | 2185 | do |
47dc80f6 | 2186 | test "x$ac_site_file" = xNONE && continue |
0fbeb4dc AK |
2187 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
47dc80f6 | 2189 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
b9668ba4 | 2190 | sed 's/^/| /' "$ac_site_file" >&5 |
0fbeb4dc AK |
2191 | . "$ac_site_file" \ |
2192 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2194 | as_fn_error $? "failed to load site script $ac_site_file | |
059850b5 | 2195 | See \`config.log' for more details" "$LINENO" 5; } |
b9668ba4 AK |
2196 | fi |
2197 | done | |
2198 | ||
2199 | if test -r "$cache_file"; then | |
0fbeb4dc AK |
2200 | # Some versions of bash will fail to source /dev/null (special files |
2201 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2202 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
47dc80f6 | 2204 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
b9668ba4 AK |
2205 | case $cache_file in |
2206 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2207 | *) . "./$cache_file";; | |
2208 | esac | |
2209 | fi | |
2210 | else | |
0fbeb4dc | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
47dc80f6 | 2212 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
b9668ba4 AK |
2213 | >$cache_file |
2214 | fi | |
2215 | ||
2216 | # Check that the precious variables saved in the cache have kept the same | |
2217 | # value. | |
2218 | ac_cache_corrupted=false | |
2219 | for ac_var in $ac_precious_vars; do | |
2220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2221 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2222 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2223 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2224 | case $ac_old_set,$ac_new_set in | |
2225 | set,) | |
0fbeb4dc | 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
47dc80f6 | 2227 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
b9668ba4 AK |
2228 | ac_cache_corrupted=: ;; |
2229 | ,set) | |
0fbeb4dc | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
47dc80f6 | 2231 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
b9668ba4 AK |
2232 | ac_cache_corrupted=: ;; |
2233 | ,);; | |
2234 | *) | |
2235 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
47dc80f6 AK |
2236 | # differences in whitespace do not lead to failure. |
2237 | ac_old_val_w=`echo x $ac_old_val` | |
2238 | ac_new_val_w=`echo x $ac_new_val` | |
2239 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
0fbeb4dc | 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
47dc80f6 AK |
2241 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2242 | ac_cache_corrupted=: | |
2243 | else | |
0fbeb4dc | 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
47dc80f6 AK |
2245 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2246 | eval $ac_var=\$ac_old_val | |
2247 | fi | |
0fbeb4dc | 2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
47dc80f6 | 2249 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
0fbeb4dc | 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
47dc80f6 | 2251 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
b9668ba4 AK |
2252 | fi;; |
2253 | esac | |
2254 | # Pass precious variables to config.status. | |
2255 | if test "$ac_new_set" = set; then | |
2256 | case $ac_new_val in | |
47dc80f6 | 2257 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b9668ba4 AK |
2258 | *) ac_arg=$ac_var=$ac_new_val ;; |
2259 | esac | |
2260 | case " $ac_configure_args " in | |
2261 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
0fbeb4dc | 2262 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b9668ba4 AK |
2263 | esac |
2264 | fi | |
2265 | done | |
2266 | if $ac_cache_corrupted; then | |
0fbeb4dc | 2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
47dc80f6 | 2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
0fbeb4dc | 2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
47dc80f6 | 2270 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
0fbeb4dc | 2271 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b9668ba4 | 2272 | fi |
0fbeb4dc AK |
2273 | ## -------------------- ## |
2274 | ## Main body of script. ## | |
2275 | ## -------------------- ## | |
b9668ba4 AK |
2276 | |
2277 | ac_ext=c | |
2278 | ac_cpp='$CPP $CPPFLAGS' | |
2279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2282 | ||
2283 | ||
2284 | ac_aux_dir= | |
2285 | for ac_dir in config "$srcdir"/config; do | |
2286 | if test -f "$ac_dir/install-sh"; then | |
2287 | ac_aux_dir=$ac_dir | |
2288 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2289 | break | |
2290 | elif test -f "$ac_dir/install.sh"; then | |
2291 | ac_aux_dir=$ac_dir | |
2292 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2293 | break | |
2294 | elif test -f "$ac_dir/shtool"; then | |
2295 | ac_aux_dir=$ac_dir | |
2296 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2297 | break | |
2298 | fi | |
2299 | done | |
2300 | if test -z "$ac_aux_dir"; then | |
0fbeb4dc | 2301 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
b9668ba4 AK |
2302 | fi |
2303 | ||
2304 | # These three variables are undocumented and unsupported, | |
2305 | # and are intended to be withdrawn in a future Autoconf release. | |
2306 | # They can cause serious problems if a builder's source tree is in a directory | |
2307 | # whose full name contains unusual characters. | |
2308 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2309 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2310 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2311 | ||
2312 | ||
5070705b | 2313 | ac_config_headers="$ac_config_headers include/config.h" |
b9668ba4 | 2314 | |
c45550e5 | 2315 | am__api_version='1.15' |
5c706339 | 2316 | |
b9668ba4 AK |
2317 | # Find a good install program. We prefer a C program (faster), |
2318 | # so one script is as good as another. But avoid the broken or | |
2319 | # incompatible versions: | |
2320 | # SysV /etc/install, /usr/sbin/install | |
2321 | # SunOS /usr/etc/install | |
2322 | # IRIX /sbin/install | |
2323 | # AIX /bin/install | |
2324 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2325 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2326 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2327 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2328 | # OS/2's system install, which has a completely different semantic | |
2329 | # ./install, which can be erroneously created by make from ./install.sh. | |
47dc80f6 | 2330 | # Reject install programs that cannot install multiple files. |
0fbeb4dc | 2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
47dc80f6 | 2332 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
b9668ba4 | 2333 | if test -z "$INSTALL"; then |
059850b5 | 2334 | if ${ac_cv_path_install+:} false; then : |
47dc80f6 | 2335 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
2336 | else |
2337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2338 | for as_dir in $PATH | |
2339 | do | |
2340 | IFS=$as_save_IFS | |
2341 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc AK |
2342 | # Account for people who put trailing slashes in PATH elements. |
2343 | case $as_dir/ in #(( | |
2344 | ./ | .// | /[cC]/* | \ | |
b9668ba4 | 2345 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
0fbeb4dc | 2346 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b9668ba4 AK |
2347 | /usr/ucb/* ) ;; |
2348 | *) | |
2349 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2350 | # Don't use installbsd from OSF since it installs stuff as root | |
2351 | # by default. | |
2352 | for ac_prog in ginstall scoinst install; do | |
2353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 2354 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
b9668ba4 AK |
2355 | if test $ac_prog = install && |
2356 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2357 | # AIX install. It has an incompatible calling convention. | |
2358 | : | |
2359 | elif test $ac_prog = install && | |
2360 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2361 | # program-specific install script used by HP pwplus--don't use. | |
2362 | : | |
2363 | else | |
47dc80f6 AK |
2364 | rm -rf conftest.one conftest.two conftest.dir |
2365 | echo one > conftest.one | |
2366 | echo two > conftest.two | |
2367 | mkdir conftest.dir | |
2368 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2369 | test -s conftest.one && test -s conftest.two && | |
2370 | test -s conftest.dir/conftest.one && | |
2371 | test -s conftest.dir/conftest.two | |
2372 | then | |
2373 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2374 | break 3 | |
2375 | fi | |
b9668ba4 AK |
2376 | fi |
2377 | fi | |
2378 | done | |
2379 | done | |
2380 | ;; | |
2381 | esac | |
47dc80f6 | 2382 | |
0fbeb4dc | 2383 | done |
b9668ba4 AK |
2384 | IFS=$as_save_IFS |
2385 | ||
47dc80f6 | 2386 | rm -rf conftest.one conftest.two conftest.dir |
b9668ba4 AK |
2387 | |
2388 | fi | |
2389 | if test "${ac_cv_path_install+set}" = set; then | |
2390 | INSTALL=$ac_cv_path_install | |
2391 | else | |
2392 | # As a last resort, use the slow shell script. Don't cache a | |
2393 | # value for INSTALL within a source directory, because that will | |
2394 | # break other packages using the cache if that directory is | |
2395 | # removed, or if the value is a relative name. | |
2396 | INSTALL=$ac_install_sh | |
2397 | fi | |
2398 | fi | |
0fbeb4dc | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
47dc80f6 | 2400 | $as_echo "$INSTALL" >&6; } |
b9668ba4 AK |
2401 | |
2402 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2403 | # It thinks the first close brace ends the variable substitution. | |
2404 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2405 | ||
2406 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2407 | ||
2408 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2409 | ||
0fbeb4dc | 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
47dc80f6 | 2411 | $as_echo_n "checking whether build environment is sane... " >&6; } |
0fbeb4dc AK |
2412 | # Reject unsafe characters in $srcdir or the absolute working directory |
2413 | # name. Accept space and tab only in the latter. | |
2414 | am_lf=' | |
2415 | ' | |
2416 | case `pwd` in | |
2417 | *[\\\"\#\$\&\'\`$am_lf]*) | |
059850b5 | 2418 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0fbeb4dc AK |
2419 | esac |
2420 | case $srcdir in | |
2421 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
0044e680 | 2422 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
0fbeb4dc AK |
2423 | esac |
2424 | ||
0044e680 | 2425 | # Do 'set' in a subshell so we don't clobber the current shell's |
b9668ba4 AK |
2426 | # arguments. Must try -L first in case configure is actually a |
2427 | # symlink; some systems play weird games with the mod time of symlinks | |
2428 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2429 | # directory). | |
2430 | if ( | |
0044e680 AK |
2431 | am_has_slept=no |
2432 | for am_try in 1 2; do | |
2433 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2434 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2435 | if test "$*" = "X"; then | |
2436 | # -L didn't work. | |
2437 | set X `ls -t "$srcdir/configure" conftest.file` | |
2438 | fi | |
2439 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2440 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2441 | ||
2442 | # If neither matched, then we have a broken ls. This can happen | |
2443 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2444 | # broken ls alias from the environment. This has actually | |
2445 | # happened. Such a system could not be considered "sane". | |
2446 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2447 | alias in your environment" "$LINENO" 5 | |
2448 | fi | |
2449 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2450 | break | |
2451 | fi | |
2452 | # Just in case. | |
2453 | sleep 1 | |
2454 | am_has_slept=yes | |
2455 | done | |
b9668ba4 AK |
2456 | test "$2" = conftest.file |
2457 | ) | |
2458 | then | |
2459 | # Ok. | |
2460 | : | |
2461 | else | |
0fbeb4dc AK |
2462 | as_fn_error $? "newly created file is older than distributed files! |
2463 | Check your system clock" "$LINENO" 5 | |
2464 | fi | |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2466 | $as_echo "yes" >&6; } | |
0044e680 AK |
2467 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2468 | # generated files are strictly newer. | |
2469 | am_sleep_pid= | |
2470 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2471 | ( sleep 1 ) & | |
2472 | am_sleep_pid=$! | |
2473 | fi | |
2474 | ||
2475 | rm -f conftest.file | |
2476 | ||
0fbeb4dc AK |
2477 | test "$program_prefix" != NONE && |
2478 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2479 | # Use a double $ so make ignores it. | |
2480 | test "$program_suffix" != NONE && | |
2481 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2482 | # Double any \ or $. | |
2483 | # By default was `s,x,x', remove it if useless. | |
2484 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2485 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2486 | ||
c45550e5 AK |
2487 | # Expand $ac_aux_dir to an absolute path. |
2488 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
0fbeb4dc AK |
2489 | |
2490 | if test x"${MISSING+set}" != xset; then | |
2491 | case $am_aux_dir in | |
2492 | *\ * | *\ *) | |
2493 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2494 | *) | |
2495 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2496 | esac | |
2497 | fi | |
2498 | # Use eval to expand $SHELL | |
0044e680 AK |
2499 | if eval "$MISSING --is-lightweight"; then |
2500 | am_missing_run="$MISSING " | |
0fbeb4dc AK |
2501 | else |
2502 | am_missing_run= | |
0044e680 AK |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2504 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
0fbeb4dc AK |
2505 | fi |
2506 | ||
c45550e5 | 2507 | if test x"${install_sh+set}" != xset; then |
0fbeb4dc AK |
2508 | case $am_aux_dir in |
2509 | *\ * | *\ *) | |
2510 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2511 | *) | |
2512 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2513 | esac | |
2514 | fi | |
2515 | ||
0044e680 AK |
2516 | # Installed binaries are usually stripped using 'strip' when the user |
2517 | # run "make install-strip". However 'strip' might not be the right | |
0fbeb4dc | 2518 | # tool to use in cross-compilation environments, therefore Automake |
0044e680 | 2519 | # will honor the 'STRIP' environment variable to overrule this program. |
0fbeb4dc AK |
2520 | if test "$cross_compiling" != no; then |
2521 | if test -n "$ac_tool_prefix"; then | |
2522 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2523 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2525 | $as_echo_n "checking for $ac_word... " >&6; } | |
059850b5 | 2526 | if ${ac_cv_prog_STRIP+:} false; then : |
0fbeb4dc AK |
2527 | $as_echo_n "(cached) " >&6 |
2528 | else | |
2529 | if test -n "$STRIP"; then | |
2530 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2531 | else | |
2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2533 | for as_dir in $PATH | |
2534 | do | |
2535 | IFS=$as_save_IFS | |
2536 | test -z "$as_dir" && as_dir=. | |
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 2538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0fbeb4dc AK |
2539 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2541 | break 2 | |
2542 | fi | |
2543 | done | |
2544 | done | |
2545 | IFS=$as_save_IFS | |
2546 | ||
2547 | fi | |
2548 | fi | |
2549 | STRIP=$ac_cv_prog_STRIP | |
2550 | if test -n "$STRIP"; then | |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2552 | $as_echo "$STRIP" >&6; } | |
2553 | else | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2555 | $as_echo "no" >&6; } | |
2556 | fi | |
2557 | ||
2558 | ||
2559 | fi | |
2560 | if test -z "$ac_cv_prog_STRIP"; then | |
2561 | ac_ct_STRIP=$STRIP | |
2562 | # Extract the first word of "strip", so it can be a program name with args. | |
2563 | set dummy strip; ac_word=$2 | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2565 | $as_echo_n "checking for $ac_word... " >&6; } | |
059850b5 | 2566 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0fbeb4dc AK |
2567 | $as_echo_n "(cached) " >&6 |
2568 | else | |
2569 | if test -n "$ac_ct_STRIP"; then | |
2570 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2571 | else | |
2572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2573 | for as_dir in $PATH | |
2574 | do | |
2575 | IFS=$as_save_IFS | |
2576 | test -z "$as_dir" && as_dir=. | |
2577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 2578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0fbeb4dc AK |
2579 | ac_cv_prog_ac_ct_STRIP="strip" |
2580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2581 | break 2 | |
2582 | fi | |
2583 | done | |
2584 | done | |
2585 | IFS=$as_save_IFS | |
2586 | ||
2587 | fi | |
2588 | fi | |
2589 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2590 | if test -n "$ac_ct_STRIP"; then | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2592 | $as_echo "$ac_ct_STRIP" >&6; } | |
2593 | else | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2595 | $as_echo "no" >&6; } | |
b9668ba4 | 2596 | fi |
b9668ba4 | 2597 | |
0fbeb4dc AK |
2598 | if test "x$ac_ct_STRIP" = x; then |
2599 | STRIP=":" | |
2600 | else | |
2601 | case $cross_compiling:$ac_tool_warned in | |
2602 | yes:) | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2604 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2605 | ac_tool_warned=yes ;; | |
2606 | esac | |
2607 | STRIP=$ac_ct_STRIP | |
2608 | fi | |
b9668ba4 | 2609 | else |
0fbeb4dc AK |
2610 | STRIP="$ac_cv_prog_STRIP" |
2611 | fi | |
2612 | ||
b9668ba4 | 2613 | fi |
0fbeb4dc | 2614 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b9668ba4 | 2615 | |
0fbeb4dc | 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
47dc80f6 | 2617 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
5c706339 | 2618 | if test -z "$MKDIR_P"; then |
059850b5 | 2619 | if ${ac_cv_path_mkdir+:} false; then : |
47dc80f6 | 2620 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
2621 | else |
2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2623 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2624 | do | |
2625 | IFS=$as_save_IFS | |
2626 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 2627 | for ac_prog in mkdir gmkdir; do |
5c706339 | 2628 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 2629 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5c706339 AK |
2630 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2631 | 'mkdir (GNU coreutils) '* | \ | |
2632 | 'mkdir (coreutils) '* | \ | |
2633 | 'mkdir (fileutils) '4.1*) | |
2634 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2635 | break 3;; | |
2636 | esac | |
2637 | done | |
2638 | done | |
0fbeb4dc | 2639 | done |
5c706339 AK |
2640 | IFS=$as_save_IFS |
2641 | ||
2642 | fi | |
2643 | ||
0fbeb4dc | 2644 | test -d ./--version && rmdir ./--version |
5c706339 AK |
2645 | if test "${ac_cv_path_mkdir+set}" = set; then |
2646 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b9668ba4 | 2647 | else |
5c706339 AK |
2648 | # As a last resort, use the slow shell script. Don't cache a |
2649 | # value for MKDIR_P within a source directory, because that will | |
2650 | # break other packages using the cache if that directory is | |
2651 | # removed, or if the value is a relative name. | |
5c706339 | 2652 | MKDIR_P="$ac_install_sh -d" |
b9668ba4 AK |
2653 | fi |
2654 | fi | |
0fbeb4dc | 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
47dc80f6 | 2656 | $as_echo "$MKDIR_P" >&6; } |
5c706339 | 2657 | |
b9668ba4 AK |
2658 | for ac_prog in gawk mawk nawk awk |
2659 | do | |
2660 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2661 | set dummy $ac_prog; ac_word=$2 | |
0fbeb4dc | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 2663 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 2664 | if ${ac_cv_prog_AWK+:} false; then : |
47dc80f6 | 2665 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
2666 | else |
2667 | if test -n "$AWK"; then | |
2668 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2669 | else | |
2670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2671 | for as_dir in $PATH | |
2672 | do | |
2673 | IFS=$as_save_IFS | |
2674 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 2675 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 2676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 2677 | ac_cv_prog_AWK="$ac_prog" |
0fbeb4dc | 2678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
2679 | break 2 |
2680 | fi | |
2681 | done | |
0fbeb4dc | 2682 | done |
b9668ba4 AK |
2683 | IFS=$as_save_IFS |
2684 | ||
2685 | fi | |
2686 | fi | |
2687 | AWK=$ac_cv_prog_AWK | |
2688 | if test -n "$AWK"; then | |
0fbeb4dc | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
47dc80f6 | 2690 | $as_echo "$AWK" >&6; } |
b9668ba4 | 2691 | else |
0fbeb4dc | 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 2693 | $as_echo "no" >&6; } |
b9668ba4 AK |
2694 | fi |
2695 | ||
2696 | ||
2697 | test -n "$AWK" && break | |
2698 | done | |
2699 | ||
0fbeb4dc | 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
47dc80f6 AK |
2701 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2702 | set x ${MAKE-make} | |
2703 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
059850b5 | 2704 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
47dc80f6 | 2705 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
2706 | else |
2707 | cat >conftest.make <<\_ACEOF | |
2708 | SHELL = /bin/sh | |
2709 | all: | |
2710 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2711 | _ACEOF | |
0fbeb4dc | 2712 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
b9668ba4 AK |
2713 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2714 | *@@@%%%=?*=@@@%%%*) | |
2715 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2716 | *) | |
2717 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2718 | esac | |
2719 | rm -f conftest.make | |
2720 | fi | |
2721 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
0fbeb4dc | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
47dc80f6 | 2723 | $as_echo "yes" >&6; } |
b9668ba4 AK |
2724 | SET_MAKE= |
2725 | else | |
0fbeb4dc | 2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 2727 | $as_echo "no" >&6; } |
b9668ba4 AK |
2728 | SET_MAKE="MAKE=${MAKE-make}" |
2729 | fi | |
2730 | ||
2731 | rm -rf .tst 2>/dev/null | |
2732 | mkdir .tst 2>/dev/null | |
2733 | if test -d .tst; then | |
2734 | am__leading_dot=. | |
2735 | else | |
2736 | am__leading_dot=_ | |
2737 | fi | |
2738 | rmdir .tst 2>/dev/null | |
2739 | ||
0044e680 AK |
2740 | # Check whether --enable-silent-rules was given. |
2741 | if test "${enable_silent_rules+set}" = set; then : | |
2742 | enableval=$enable_silent_rules; | |
2743 | fi | |
2744 | ||
2745 | case $enable_silent_rules in # ((( | |
2746 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2747 | no) AM_DEFAULT_VERBOSITY=1;; | |
2748 | *) AM_DEFAULT_VERBOSITY=1;; | |
2749 | esac | |
2750 | am_make=${MAKE-make} | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2752 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2753 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2754 | $as_echo_n "(cached) " >&6 | |
2755 | else | |
2756 | if $as_echo 'TRUE=$(BAR$(V)) | |
2757 | BAR0=false | |
2758 | BAR1=true | |
2759 | V=1 | |
2760 | am__doit: | |
2761 | @$(TRUE) | |
2762 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2763 | am_cv_make_support_nested_variables=yes | |
2764 | else | |
2765 | am_cv_make_support_nested_variables=no | |
2766 | fi | |
2767 | fi | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2769 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2770 | if test $am_cv_make_support_nested_variables = yes; then | |
2771 | AM_V='$(V)' | |
2772 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2773 | else | |
2774 | AM_V=$AM_DEFAULT_VERBOSITY | |
2775 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2776 | fi | |
2777 | AM_BACKSLASH='\' | |
2778 | ||
5c706339 AK |
2779 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2780 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2781 | # is not polluted with repeated "-I." | |
2782 | am__isrc=' -I$(srcdir)' | |
2783 | # test to see if srcdir already configured | |
2784 | if test -f $srcdir/config.status; then | |
0fbeb4dc | 2785 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5c706339 | 2786 | fi |
b9668ba4 AK |
2787 | fi |
2788 | ||
2789 | # test whether we have cygpath | |
2790 | if test -z "$CYGPATH_W"; then | |
2791 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2792 | CYGPATH_W='cygpath -w' | |
2793 | else | |
2794 | CYGPATH_W=echo | |
2795 | fi | |
2796 | fi | |
2797 | ||
2798 | ||
2799 | # Define the identity of the package. | |
2800 | PACKAGE='yaml' | |
5070705b | 2801 | VERSION='0.2.2' |
b9668ba4 AK |
2802 | |
2803 | ||
2804 | cat >>confdefs.h <<_ACEOF | |
2805 | #define PACKAGE "$PACKAGE" | |
2806 | _ACEOF | |
2807 | ||
2808 | ||
2809 | cat >>confdefs.h <<_ACEOF | |
2810 | #define VERSION "$VERSION" | |
2811 | _ACEOF | |
2812 | ||
2813 | # Some tools Automake needs. | |
2814 | ||
2815 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2816 | ||
2817 | ||
2818 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2819 | ||
2820 | ||
2821 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2822 | ||
2823 | ||
2824 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2825 | ||
2826 | ||
2827 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2828 | ||
0044e680 AK |
2829 | # For better backward compatibility. To be removed once Automake 1.9.x |
2830 | # dies out for good. For more background, see: | |
2831 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2832 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2833 | mkdir_p='$(MKDIR_P)' | |
2834 | ||
c45550e5 AK |
2835 | # We need awk for the "check" target (and possibly the TAP driver). The |
2836 | # system "awk" is bad on some platforms. | |
059850b5 AK |
2837 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2838 | # in the wild :-( We should find a proper way to deprecate it ... | |
2839 | AMTAR='$${TAR-tar}' | |
b9668ba4 | 2840 | |
0044e680 AK |
2841 | |
2842 | # We'll loop over all known methods to create a tar archive until one works. | |
2843 | _am_tools='gnutar pax cpio none' | |
2844 | ||
059850b5 | 2845 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
b9668ba4 AK |
2846 | |
2847 | ||
2848 | ||
2849 | ||
2850 | ||
2851 | ||
0044e680 AK |
2852 | # POSIX will say in a future version that running "rm -f" with no argument |
2853 | # is OK; and we want to be able to make that assumption in our Makefile | |
2854 | # recipes. So use an aggressive probe to check that the usage we want is | |
2855 | # actually supported "in the wild" to an acceptable degree. | |
2856 | # See automake bug#10828. | |
2857 | # To make any issue more visible, cause the running configure to be aborted | |
2858 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2859 | # user can still override this though. | |
2860 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2861 | cat >&2 <<'END' | |
2862 | Oops! | |
2863 | ||
2864 | Your 'rm' program seems unable to run without file operands specified | |
2865 | on the command line, even when the '-f' option is present. This is contrary | |
2866 | to the behaviour of most rm programs out there, and not conforming with | |
2867 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2868 | ||
2869 | Please tell bug-automake@gnu.org about your system, including the value | |
2870 | of your $PATH and any error possibly output before this message. This | |
2871 | can help us improve future automake versions. | |
2872 | ||
2873 | END | |
2874 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2875 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2876 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2877 | echo >&2 | |
2878 | else | |
2879 | cat >&2 <<'END' | |
2880 | Aborting the configuration process, to ensure you take notice of the issue. | |
2881 | ||
2882 | You can download and install GNU coreutils to get an 'rm' implementation | |
2883 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2884 | ||
2885 | If you want to complete the configuration process using your problematic | |
2886 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2887 | to "yes", and re-run configure. | |
2888 | ||
2889 | END | |
2890 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2891 | fi | |
2892 | fi | |
2893 | ||
c45550e5 | 2894 | |
b9668ba4 AK |
2895 | # Define macro variables for the package version numbers. |
2896 | ||
0fbeb4dc | 2897 | $as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h |
b9668ba4 AK |
2898 | |
2899 | ||
c45550e5 | 2900 | $as_echo "#define YAML_VERSION_MINOR 2" >>confdefs.h |
b9668ba4 AK |
2901 | |
2902 | ||
5070705b | 2903 | $as_echo "#define YAML_VERSION_PATCH 2" >>confdefs.h |
b9668ba4 AK |
2904 | |
2905 | ||
5070705b | 2906 | $as_echo "#define YAML_VERSION_STRING \"0.2.2\"" >>confdefs.h |
b9668ba4 AK |
2907 | |
2908 | ||
2909 | # Define substitutions for the libtool version numbers. | |
2910 | YAML_LT_RELEASE=0 | |
5c706339 | 2911 | YAML_LT_CURRENT=2 |
5070705b | 2912 | YAML_LT_REVISION=6 |
47dc80f6 | 2913 | YAML_LT_AGE=0 |
b9668ba4 AK |
2914 | |
2915 | ||
2916 | ||
2917 | ||
2918 | ||
2919 | # Note: in order to update checks, run `autoscan` and look through "configure.scan". | |
2920 | ||
2921 | # Checks for programs. | |
2922 | ac_ext=c | |
2923 | ac_cpp='$CPP $CPPFLAGS' | |
2924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2927 | if test -n "$ac_tool_prefix"; then | |
2928 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2929 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
0fbeb4dc | 2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 2931 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 2932 | if ${ac_cv_prog_CC+:} false; then : |
47dc80f6 | 2933 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
2934 | else |
2935 | if test -n "$CC"; then | |
2936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2937 | else | |
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2939 | for as_dir in $PATH | |
2940 | do | |
2941 | IFS=$as_save_IFS | |
2942 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 2943 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 2944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 2945 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
0fbeb4dc | 2946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
2947 | break 2 |
2948 | fi | |
2949 | done | |
0fbeb4dc | 2950 | done |
b9668ba4 AK |
2951 | IFS=$as_save_IFS |
2952 | ||
2953 | fi | |
2954 | fi | |
2955 | CC=$ac_cv_prog_CC | |
2956 | if test -n "$CC"; then | |
0fbeb4dc | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
47dc80f6 | 2958 | $as_echo "$CC" >&6; } |
b9668ba4 | 2959 | else |
0fbeb4dc | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 2961 | $as_echo "no" >&6; } |
b9668ba4 AK |
2962 | fi |
2963 | ||
2964 | ||
2965 | fi | |
2966 | if test -z "$ac_cv_prog_CC"; then | |
2967 | ac_ct_CC=$CC | |
2968 | # Extract the first word of "gcc", so it can be a program name with args. | |
2969 | set dummy gcc; ac_word=$2 | |
0fbeb4dc | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 2971 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 2972 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
47dc80f6 | 2973 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
2974 | else |
2975 | if test -n "$ac_ct_CC"; then | |
2976 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2977 | else | |
2978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2979 | for as_dir in $PATH | |
2980 | do | |
2981 | IFS=$as_save_IFS | |
2982 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 2983 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 2984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 2985 | ac_cv_prog_ac_ct_CC="gcc" |
0fbeb4dc | 2986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
2987 | break 2 |
2988 | fi | |
2989 | done | |
0fbeb4dc | 2990 | done |
b9668ba4 AK |
2991 | IFS=$as_save_IFS |
2992 | ||
2993 | fi | |
2994 | fi | |
2995 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2996 | if test -n "$ac_ct_CC"; then | |
0fbeb4dc | 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
47dc80f6 | 2998 | $as_echo "$ac_ct_CC" >&6; } |
b9668ba4 | 2999 | else |
0fbeb4dc | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 3001 | $as_echo "no" >&6; } |
b9668ba4 AK |
3002 | fi |
3003 | ||
3004 | if test "x$ac_ct_CC" = x; then | |
3005 | CC="" | |
3006 | else | |
3007 | case $cross_compiling:$ac_tool_warned in | |
3008 | yes:) | |
0fbeb4dc | 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 3010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
3011 | ac_tool_warned=yes ;; |
3012 | esac | |
3013 | CC=$ac_ct_CC | |
3014 | fi | |
3015 | else | |
3016 | CC="$ac_cv_prog_CC" | |
3017 | fi | |
3018 | ||
3019 | if test -z "$CC"; then | |
3020 | if test -n "$ac_tool_prefix"; then | |
3021 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3022 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
0fbeb4dc | 3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 3024 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 3025 | if ${ac_cv_prog_CC+:} false; then : |
47dc80f6 | 3026 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3027 | else |
3028 | if test -n "$CC"; then | |
3029 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3030 | else | |
3031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3032 | for as_dir in $PATH | |
3033 | do | |
3034 | IFS=$as_save_IFS | |
3035 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 3036 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 3037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 3038 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
0fbeb4dc | 3039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
3040 | break 2 |
3041 | fi | |
3042 | done | |
0fbeb4dc | 3043 | done |
b9668ba4 AK |
3044 | IFS=$as_save_IFS |
3045 | ||
3046 | fi | |
3047 | fi | |
3048 | CC=$ac_cv_prog_CC | |
3049 | if test -n "$CC"; then | |
0fbeb4dc | 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
47dc80f6 | 3051 | $as_echo "$CC" >&6; } |
b9668ba4 | 3052 | else |
0fbeb4dc | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 3054 | $as_echo "no" >&6; } |
b9668ba4 AK |
3055 | fi |
3056 | ||
3057 | ||
3058 | fi | |
3059 | fi | |
3060 | if test -z "$CC"; then | |
3061 | # Extract the first word of "cc", so it can be a program name with args. | |
3062 | set dummy cc; ac_word=$2 | |
0fbeb4dc | 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 3064 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 3065 | if ${ac_cv_prog_CC+:} false; then : |
47dc80f6 | 3066 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3067 | else |
3068 | if test -n "$CC"; then | |
3069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3070 | else | |
3071 | ac_prog_rejected=no | |
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3073 | for as_dir in $PATH | |
3074 | do | |
3075 | IFS=$as_save_IFS | |
3076 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 3077 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 3078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 AK |
3079 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3080 | ac_prog_rejected=yes | |
3081 | continue | |
3082 | fi | |
3083 | ac_cv_prog_CC="cc" | |
0fbeb4dc | 3084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
3085 | break 2 |
3086 | fi | |
3087 | done | |
0fbeb4dc | 3088 | done |
b9668ba4 AK |
3089 | IFS=$as_save_IFS |
3090 | ||
3091 | if test $ac_prog_rejected = yes; then | |
3092 | # We found a bogon in the path, so make sure we never use it. | |
3093 | set dummy $ac_cv_prog_CC | |
3094 | shift | |
3095 | if test $# != 0; then | |
3096 | # We chose a different compiler from the bogus one. | |
3097 | # However, it has the same basename, so the bogon will be chosen | |
3098 | # first if we set CC to just the basename; use the full file name. | |
3099 | shift | |
3100 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3101 | fi | |
3102 | fi | |
3103 | fi | |
3104 | fi | |
3105 | CC=$ac_cv_prog_CC | |
3106 | if test -n "$CC"; then | |
0fbeb4dc | 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
47dc80f6 | 3108 | $as_echo "$CC" >&6; } |
b9668ba4 | 3109 | else |
0fbeb4dc | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 3111 | $as_echo "no" >&6; } |
b9668ba4 AK |
3112 | fi |
3113 | ||
3114 | ||
3115 | fi | |
3116 | if test -z "$CC"; then | |
3117 | if test -n "$ac_tool_prefix"; then | |
3118 | for ac_prog in cl.exe | |
3119 | do | |
3120 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3121 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0fbeb4dc | 3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 3123 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 3124 | if ${ac_cv_prog_CC+:} false; then : |
47dc80f6 | 3125 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3126 | else |
3127 | if test -n "$CC"; then | |
3128 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3129 | else | |
3130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3131 | for as_dir in $PATH | |
3132 | do | |
3133 | IFS=$as_save_IFS | |
3134 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 3135 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 3136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 3137 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
0fbeb4dc | 3138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
3139 | break 2 |
3140 | fi | |
3141 | done | |
0fbeb4dc | 3142 | done |
b9668ba4 AK |
3143 | IFS=$as_save_IFS |
3144 | ||
3145 | fi | |
3146 | fi | |
3147 | CC=$ac_cv_prog_CC | |
3148 | if test -n "$CC"; then | |
0fbeb4dc | 3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
47dc80f6 | 3150 | $as_echo "$CC" >&6; } |
b9668ba4 | 3151 | else |
0fbeb4dc | 3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 3153 | $as_echo "no" >&6; } |
b9668ba4 AK |
3154 | fi |
3155 | ||
3156 | ||
3157 | test -n "$CC" && break | |
3158 | done | |
3159 | fi | |
3160 | if test -z "$CC"; then | |
3161 | ac_ct_CC=$CC | |
3162 | for ac_prog in cl.exe | |
3163 | do | |
3164 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3165 | set dummy $ac_prog; ac_word=$2 | |
0fbeb4dc | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 3167 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 3168 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
47dc80f6 | 3169 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3170 | else |
3171 | if test -n "$ac_ct_CC"; then | |
3172 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3173 | else | |
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3175 | for as_dir in $PATH | |
3176 | do | |
3177 | IFS=$as_save_IFS | |
3178 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 3179 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 3180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b9668ba4 | 3181 | ac_cv_prog_ac_ct_CC="$ac_prog" |
0fbeb4dc | 3182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
3183 | break 2 |
3184 | fi | |
3185 | done | |
0fbeb4dc | 3186 | done |
b9668ba4 AK |
3187 | IFS=$as_save_IFS |
3188 | ||
3189 | fi | |
3190 | fi | |
3191 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3192 | if test -n "$ac_ct_CC"; then | |
0fbeb4dc | 3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
47dc80f6 | 3194 | $as_echo "$ac_ct_CC" >&6; } |
b9668ba4 | 3195 | else |
0fbeb4dc | 3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 3197 | $as_echo "no" >&6; } |
b9668ba4 AK |
3198 | fi |
3199 | ||
3200 | ||
3201 | test -n "$ac_ct_CC" && break | |
3202 | done | |
3203 | ||
3204 | if test "x$ac_ct_CC" = x; then | |
3205 | CC="" | |
3206 | else | |
3207 | case $cross_compiling:$ac_tool_warned in | |
3208 | yes:) | |
0fbeb4dc | 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 3210 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
3211 | ac_tool_warned=yes ;; |
3212 | esac | |
3213 | CC=$ac_ct_CC | |
3214 | fi | |
3215 | fi | |
3216 | ||
3217 | fi | |
3218 | ||
3219 | ||
0fbeb4dc | 3220 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
47dc80f6 | 3221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
0fbeb4dc | 3222 | as_fn_error $? "no acceptable C compiler found in \$PATH |
059850b5 | 3223 | See \`config.log' for more details" "$LINENO" 5; } |
b9668ba4 AK |
3224 | |
3225 | # Provide some information about the compiler. | |
0fbeb4dc | 3226 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
47dc80f6 AK |
3227 | set X $ac_compile |
3228 | ac_compiler=$2 | |
0fbeb4dc AK |
3229 | for ac_option in --version -v -V -qversion; do |
3230 | { { ac_try="$ac_compiler $ac_option >&5" | |
b9668ba4 AK |
3231 | case "(($ac_try" in |
3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3233 | *) ac_try_echo=$ac_try;; | |
3234 | esac | |
0fbeb4dc AK |
3235 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3236 | $as_echo "$ac_try_echo"; } >&5 | |
3237 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b9668ba4 | 3238 | ac_status=$? |
0fbeb4dc AK |
3239 | if test -s conftest.err; then |
3240 | sed '10a\ | |
3241 | ... rest of stderr output deleted ... | |
3242 | 10q' conftest.err >conftest.er1 | |
3243 | cat conftest.er1 >&5 | |
3244 | fi | |
3245 | rm -f conftest.er1 conftest.err | |
3246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3247 | test $ac_status = 0; } | |
3248 | done | |
b9668ba4 | 3249 | |
0fbeb4dc | 3250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3251 | /* end confdefs.h. */ |
3252 | ||
3253 | int | |
3254 | main () | |
3255 | { | |
3256 | ||
3257 | ; | |
3258 | return 0; | |
3259 | } | |
3260 | _ACEOF | |
3261 | ac_clean_files_save=$ac_clean_files | |
47dc80f6 | 3262 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b9668ba4 AK |
3263 | # Try to create an executable without -o first, disregard a.out. |
3264 | # It will help us diagnose broken compilers, and finding out an intuition | |
3265 | # of exeext. | |
0fbeb4dc AK |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3267 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
47dc80f6 AK |
3268 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3269 | ||
3270 | # The possible output files: | |
3271 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3272 | ||
b9668ba4 AK |
3273 | ac_rmfiles= |
3274 | for ac_file in $ac_files | |
3275 | do | |
3276 | case $ac_file in | |
47dc80f6 | 3277 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b9668ba4 AK |
3278 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3279 | esac | |
3280 | done | |
3281 | rm -f $ac_rmfiles | |
3282 | ||
0fbeb4dc | 3283 | if { { ac_try="$ac_link_default" |
b9668ba4 AK |
3284 | case "(($ac_try" in |
3285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3286 | *) ac_try_echo=$ac_try;; | |
3287 | esac | |
0fbeb4dc AK |
3288 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3289 | $as_echo "$ac_try_echo"; } >&5 | |
b9668ba4 AK |
3290 | (eval "$ac_link_default") 2>&5 |
3291 | ac_status=$? | |
0fbeb4dc AK |
3292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3293 | test $ac_status = 0; }; then : | |
b9668ba4 AK |
3294 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3295 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3296 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3297 | # so that the user can short-circuit this test for compilers unknown to | |
3298 | # Autoconf. | |
3299 | for ac_file in $ac_files '' | |
3300 | do | |
3301 | test -f "$ac_file" || continue | |
3302 | case $ac_file in | |
47dc80f6 | 3303 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b9668ba4 AK |
3304 | ;; |
3305 | [ab].out ) | |
3306 | # We found the default executable, but exeext='' is most | |
3307 | # certainly right. | |
3308 | break;; | |
3309 | *.* ) | |
0fbeb4dc | 3310 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
b9668ba4 AK |
3311 | then :; else |
3312 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3313 | fi | |
3314 | # We set ac_cv_exeext here because the later test for it is not | |
3315 | # safe: cross compilers may not add the suffix if given an `-o' | |
3316 | # argument, so we may need to know it at that point already. | |
3317 | # Even if this section looks crufty: it has the advantage of | |
3318 | # actually working. | |
3319 | break;; | |
3320 | * ) | |
3321 | break;; | |
3322 | esac | |
3323 | done | |
3324 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3325 | ||
3326 | else | |
3327 | ac_file='' | |
3328 | fi | |
0fbeb4dc AK |
3329 | if test -z "$ac_file"; then : |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3331 | $as_echo "no" >&6; } | |
3332 | $as_echo "$as_me: failed program was:" >&5 | |
b9668ba4 AK |
3333 | sed 's/^/| /' conftest.$ac_ext >&5 |
3334 | ||
0fbeb4dc | 3335 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
47dc80f6 | 3336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
0fbeb4dc | 3337 | as_fn_error 77 "C compiler cannot create executables |
059850b5 | 3338 | See \`config.log' for more details" "$LINENO" 5; } |
0fbeb4dc AK |
3339 | else |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3341 | $as_echo "yes" >&6; } | |
b9668ba4 | 3342 | fi |
0fbeb4dc AK |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3344 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3346 | $as_echo "$ac_file" >&6; } | |
b9668ba4 AK |
3347 | ac_exeext=$ac_cv_exeext |
3348 | ||
47dc80f6 | 3349 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b9668ba4 | 3350 | ac_clean_files=$ac_clean_files_save |
0fbeb4dc | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
47dc80f6 | 3352 | $as_echo_n "checking for suffix of executables... " >&6; } |
0fbeb4dc | 3353 | if { { ac_try="$ac_link" |
b9668ba4 AK |
3354 | case "(($ac_try" in |
3355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3356 | *) ac_try_echo=$ac_try;; | |
3357 | esac | |
0fbeb4dc AK |
3358 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3359 | $as_echo "$ac_try_echo"; } >&5 | |
b9668ba4 AK |
3360 | (eval "$ac_link") 2>&5 |
3361 | ac_status=$? | |
0fbeb4dc AK |
3362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3363 | test $ac_status = 0; }; then : | |
b9668ba4 AK |
3364 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3365 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3366 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3367 | # `rm'. | |
3368 | for ac_file in conftest.exe conftest conftest.*; do | |
3369 | test -f "$ac_file" || continue | |
3370 | case $ac_file in | |
47dc80f6 | 3371 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b9668ba4 AK |
3372 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3373 | break;; | |
3374 | * ) break;; | |
3375 | esac | |
3376 | done | |
3377 | else | |
0fbeb4dc | 3378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
47dc80f6 | 3379 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
0fbeb4dc | 3380 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
059850b5 | 3381 | See \`config.log' for more details" "$LINENO" 5; } |
b9668ba4 | 3382 | fi |
0fbeb4dc AK |
3383 | rm -f conftest conftest$ac_cv_exeext |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
47dc80f6 | 3385 | $as_echo "$ac_cv_exeext" >&6; } |
b9668ba4 AK |
3386 | |
3387 | rm -f conftest.$ac_ext | |
3388 | EXEEXT=$ac_cv_exeext | |
3389 | ac_exeext=$EXEEXT | |
0fbeb4dc AK |
3390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3391 | /* end confdefs.h. */ | |
3392 | #include <stdio.h> | |
3393 | int | |
3394 | main () | |
3395 | { | |
3396 | FILE *f = fopen ("conftest.out", "w"); | |
3397 | return ferror (f) || fclose (f) != 0; | |
3398 | ||
3399 | ; | |
3400 | return 0; | |
3401 | } | |
3402 | _ACEOF | |
3403 | ac_clean_files="$ac_clean_files conftest.out" | |
3404 | # Check that the compiler produces executables we can run. If not, either | |
3405 | # the compiler is broken, or we cross compile. | |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3407 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3408 | if test "$cross_compiling" != yes; then | |
3409 | { { ac_try="$ac_link" | |
3410 | case "(($ac_try" in | |
3411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3412 | *) ac_try_echo=$ac_try;; | |
3413 | esac | |
3414 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3415 | $as_echo "$ac_try_echo"; } >&5 | |
3416 | (eval "$ac_link") 2>&5 | |
3417 | ac_status=$? | |
3418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3419 | test $ac_status = 0; } | |
3420 | if { ac_try='./conftest$ac_cv_exeext' | |
3421 | { { case "(($ac_try" in | |
3422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3423 | *) ac_try_echo=$ac_try;; | |
3424 | esac | |
3425 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3426 | $as_echo "$ac_try_echo"; } >&5 | |
3427 | (eval "$ac_try") 2>&5 | |
3428 | ac_status=$? | |
3429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3430 | test $ac_status = 0; }; }; then | |
3431 | cross_compiling=no | |
3432 | else | |
3433 | if test "$cross_compiling" = maybe; then | |
3434 | cross_compiling=yes | |
3435 | else | |
3436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3438 | as_fn_error $? "cannot run C compiled programs. | |
3439 | If you meant to cross compile, use \`--host'. | |
059850b5 | 3440 | See \`config.log' for more details" "$LINENO" 5; } |
0fbeb4dc AK |
3441 | fi |
3442 | fi | |
3443 | fi | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3445 | $as_echo "$cross_compiling" >&6; } | |
3446 | ||
3447 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3448 | ac_clean_files=$ac_clean_files_save | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
47dc80f6 | 3450 | $as_echo_n "checking for suffix of object files... " >&6; } |
059850b5 | 3451 | if ${ac_cv_objext+:} false; then : |
47dc80f6 | 3452 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 3453 | else |
0fbeb4dc | 3454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3455 | /* end confdefs.h. */ |
3456 | ||
3457 | int | |
3458 | main () | |
3459 | { | |
3460 | ||
3461 | ; | |
3462 | return 0; | |
3463 | } | |
3464 | _ACEOF | |
3465 | rm -f conftest.o conftest.obj | |
0fbeb4dc | 3466 | if { { ac_try="$ac_compile" |
b9668ba4 AK |
3467 | case "(($ac_try" in |
3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3469 | *) ac_try_echo=$ac_try;; | |
3470 | esac | |
0fbeb4dc AK |
3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3472 | $as_echo "$ac_try_echo"; } >&5 | |
b9668ba4 AK |
3473 | (eval "$ac_compile") 2>&5 |
3474 | ac_status=$? | |
0fbeb4dc AK |
3475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3476 | test $ac_status = 0; }; then : | |
b9668ba4 AK |
3477 | for ac_file in conftest.o conftest.obj conftest.*; do |
3478 | test -f "$ac_file" || continue; | |
3479 | case $ac_file in | |
47dc80f6 | 3480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b9668ba4 AK |
3481 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3482 | break;; | |
3483 | esac | |
3484 | done | |
3485 | else | |
47dc80f6 | 3486 | $as_echo "$as_me: failed program was:" >&5 |
b9668ba4 AK |
3487 | sed 's/^/| /' conftest.$ac_ext >&5 |
3488 | ||
0fbeb4dc | 3489 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
47dc80f6 | 3490 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
0fbeb4dc | 3491 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
059850b5 | 3492 | See \`config.log' for more details" "$LINENO" 5; } |
b9668ba4 | 3493 | fi |
b9668ba4 AK |
3494 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3495 | fi | |
0fbeb4dc | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
47dc80f6 | 3497 | $as_echo "$ac_cv_objext" >&6; } |
b9668ba4 AK |
3498 | OBJEXT=$ac_cv_objext |
3499 | ac_objext=$OBJEXT | |
0fbeb4dc | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
47dc80f6 | 3501 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
059850b5 | 3502 | if ${ac_cv_c_compiler_gnu+:} false; then : |
47dc80f6 | 3503 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 3504 | else |
0fbeb4dc | 3505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3506 | /* end confdefs.h. */ |
3507 | ||
3508 | int | |
3509 | main () | |
3510 | { | |
3511 | #ifndef __GNUC__ | |
3512 | choke me | |
3513 | #endif | |
3514 | ||
3515 | ; | |
3516 | return 0; | |
3517 | } | |
3518 | _ACEOF | |
0fbeb4dc | 3519 | if ac_fn_c_try_compile "$LINENO"; then : |
b9668ba4 | 3520 | ac_compiler_gnu=yes |
0fbeb4dc AK |
3521 | else |
3522 | ac_compiler_gnu=no | |
b9668ba4 | 3523 | fi |
b9668ba4 AK |
3524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3525 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3526 | ||
3527 | fi | |
0fbeb4dc | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
47dc80f6 AK |
3529 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3530 | if test $ac_compiler_gnu = yes; then | |
3531 | GCC=yes | |
3532 | else | |
3533 | GCC= | |
3534 | fi | |
b9668ba4 AK |
3535 | ac_test_CFLAGS=${CFLAGS+set} |
3536 | ac_save_CFLAGS=$CFLAGS | |
0fbeb4dc | 3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
47dc80f6 | 3538 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
059850b5 | 3539 | if ${ac_cv_prog_cc_g+:} false; then : |
47dc80f6 | 3540 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3541 | else |
3542 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3543 | ac_c_werror_flag=yes | |
3544 | ac_cv_prog_cc_g=no | |
3545 | CFLAGS="-g" | |
0fbeb4dc | 3546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3547 | /* end confdefs.h. */ |
3548 | ||
3549 | int | |
3550 | main () | |
3551 | { | |
3552 | ||
3553 | ; | |
3554 | return 0; | |
3555 | } | |
3556 | _ACEOF | |
0fbeb4dc | 3557 | if ac_fn_c_try_compile "$LINENO"; then : |
b9668ba4 AK |
3558 | ac_cv_prog_cc_g=yes |
3559 | else | |
0fbeb4dc AK |
3560 | CFLAGS="" |
3561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b9668ba4 AK |
3562 | /* end confdefs.h. */ |
3563 | ||
3564 | int | |
3565 | main () | |
3566 | { | |
3567 | ||
3568 | ; | |
3569 | return 0; | |
3570 | } | |
3571 | _ACEOF | |
0fbeb4dc | 3572 | if ac_fn_c_try_compile "$LINENO"; then : |
b9668ba4 | 3573 | |
0fbeb4dc AK |
3574 | else |
3575 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b9668ba4 | 3576 | CFLAGS="-g" |
0fbeb4dc | 3577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3578 | /* end confdefs.h. */ |
3579 | ||
3580 | int | |
3581 | main () | |
3582 | { | |
3583 | ||
3584 | ; | |
3585 | return 0; | |
3586 | } | |
3587 | _ACEOF | |
0fbeb4dc | 3588 | if ac_fn_c_try_compile "$LINENO"; then : |
b9668ba4 | 3589 | ac_cv_prog_cc_g=yes |
b9668ba4 | 3590 | fi |
b9668ba4 AK |
3591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3592 | fi | |
b9668ba4 AK |
3593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3594 | fi | |
b9668ba4 AK |
3595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3596 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3597 | fi | |
0fbeb4dc | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
47dc80f6 | 3599 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
b9668ba4 AK |
3600 | if test "$ac_test_CFLAGS" = set; then |
3601 | CFLAGS=$ac_save_CFLAGS | |
3602 | elif test $ac_cv_prog_cc_g = yes; then | |
3603 | if test "$GCC" = yes; then | |
3604 | CFLAGS="-g -O2" | |
3605 | else | |
3606 | CFLAGS="-g" | |
3607 | fi | |
3608 | else | |
3609 | if test "$GCC" = yes; then | |
3610 | CFLAGS="-O2" | |
3611 | else | |
3612 | CFLAGS= | |
3613 | fi | |
3614 | fi | |
0fbeb4dc | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
47dc80f6 | 3616 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
059850b5 | 3617 | if ${ac_cv_prog_cc_c89+:} false; then : |
47dc80f6 | 3618 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3619 | else |
3620 | ac_cv_prog_cc_c89=no | |
3621 | ac_save_CC=$CC | |
0fbeb4dc | 3622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3623 | /* end confdefs.h. */ |
3624 | #include <stdarg.h> | |
3625 | #include <stdio.h> | |
0044e680 | 3626 | struct stat; |
b9668ba4 AK |
3627 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3628 | struct buf { int x; }; | |
3629 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3630 | static char *e (p, i) | |
3631 | char **p; | |
3632 | int i; | |
3633 | { | |
3634 | return p[i]; | |
3635 | } | |
3636 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3637 | { | |
3638 | char *s; | |
3639 | va_list v; | |
3640 | va_start (v,p); | |
3641 | s = g (p, va_arg (v,int)); | |
3642 | va_end (v); | |
3643 | return s; | |
3644 | } | |
3645 | ||
3646 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3647 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3648 | These don't provoke an error unfortunately, instead are silently treated | |
3649 | as 'x'. The following induces an error, until -std is added to get | |
3650 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3651 | array size at least. It's necessary to write '\x00'==0 to get something | |
3652 | that's true only with -std. */ | |
3653 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3654 | ||
3655 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3656 | inside strings and character constants. */ | |
3657 | #define FOO(x) 'x' | |
3658 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3659 | ||
3660 | int test (int i, double x); | |
3661 | struct s1 {int (*f) (int a);}; | |
3662 | struct s2 {int (*f) (double a);}; | |
3663 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3664 | int argc; | |
3665 | char **argv; | |
3666 | int | |
3667 | main () | |
3668 | { | |
3669 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3670 | ; | |
3671 | return 0; | |
3672 | } | |
3673 | _ACEOF | |
3674 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3675 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3676 | do | |
3677 | CC="$ac_save_CC $ac_arg" | |
0fbeb4dc | 3678 | if ac_fn_c_try_compile "$LINENO"; then : |
b9668ba4 | 3679 | ac_cv_prog_cc_c89=$ac_arg |
b9668ba4 | 3680 | fi |
b9668ba4 AK |
3681 | rm -f core conftest.err conftest.$ac_objext |
3682 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3683 | done | |
3684 | rm -f conftest.$ac_ext | |
3685 | CC=$ac_save_CC | |
3686 | ||
3687 | fi | |
3688 | # AC_CACHE_VAL | |
3689 | case "x$ac_cv_prog_cc_c89" in | |
3690 | x) | |
0fbeb4dc | 3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
47dc80f6 | 3692 | $as_echo "none needed" >&6; } ;; |
b9668ba4 | 3693 | xno) |
0fbeb4dc | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
47dc80f6 | 3695 | $as_echo "unsupported" >&6; } ;; |
b9668ba4 AK |
3696 | *) |
3697 | CC="$CC $ac_cv_prog_cc_c89" | |
0fbeb4dc | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
47dc80f6 | 3699 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
b9668ba4 | 3700 | esac |
0fbeb4dc | 3701 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b9668ba4 | 3702 | |
0fbeb4dc | 3703 | fi |
b9668ba4 AK |
3704 | |
3705 | ac_ext=c | |
3706 | ac_cpp='$CPP $CPPFLAGS' | |
3707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0044e680 AK |
3710 | |
3711 | ac_ext=c | |
3712 | ac_cpp='$CPP $CPPFLAGS' | |
3713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3717 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3718 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3719 | $as_echo_n "(cached) " >&6 | |
3720 | else | |
3721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3722 | /* end confdefs.h. */ | |
3723 | ||
3724 | int | |
3725 | main () | |
3726 | { | |
3727 | ||
3728 | ; | |
3729 | return 0; | |
3730 | } | |
3731 | _ACEOF | |
3732 | # Make sure it works both with $CC and with simple cc. | |
3733 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3734 | # compilers refuse to overwrite an existing .o file with -o, | |
3735 | # though they will create one. | |
3736 | am_cv_prog_cc_c_o=yes | |
3737 | for am_i in 1 2; do | |
3738 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3739 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3740 | ac_status=$? | |
3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3742 | (exit $ac_status); } \ | |
3743 | && test -f conftest2.$ac_objext; then | |
3744 | : OK | |
3745 | else | |
3746 | am_cv_prog_cc_c_o=no | |
3747 | break | |
3748 | fi | |
3749 | done | |
3750 | rm -f core conftest* | |
3751 | unset am_i | |
3752 | fi | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3754 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3755 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3756 | # Losing compiler, so override with the script. | |
3757 | # FIXME: It is wrong to rewrite CC. | |
3758 | # But if we don't then we get into trouble of one sort or another. | |
3759 | # A longer-term fix would be to have automake use am__CC in this case, | |
3760 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3761 | CC="$am_aux_dir/compile $CC" | |
3762 | fi | |
3763 | ac_ext=c | |
3764 | ac_cpp='$CPP $CPPFLAGS' | |
3765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3768 | ||
b9668ba4 AK |
3769 | DEPDIR="${am__leading_dot}deps" |
3770 | ||
3771 | ac_config_commands="$ac_config_commands depfiles" | |
3772 | ||
3773 | ||
3774 | am_make=${MAKE-make} | |
3775 | cat > confinc << 'END' | |
3776 | am__doit: | |
0fbeb4dc | 3777 | @echo this is the am__doit target |
b9668ba4 AK |
3778 | .PHONY: am__doit |
3779 | END | |
3780 | # If we don't find an include directive, just comment out the code. | |
0fbeb4dc | 3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
47dc80f6 | 3782 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
b9668ba4 AK |
3783 | am__include="#" |
3784 | am__quote= | |
3785 | _am_result=none | |
3786 | # First try GNU make style include. | |
3787 | echo "include confinc" > confmf | |
0044e680 | 3788 | # Ignore all kinds of additional output from 'make'. |
0fbeb4dc AK |
3789 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3790 | *the\ am__doit\ target*) | |
3791 | am__include=include | |
3792 | am__quote= | |
3793 | _am_result=GNU | |
3794 | ;; | |
3795 | esac | |
b9668ba4 AK |
3796 | # Now try BSD make style include. |
3797 | if test "$am__include" = "#"; then | |
3798 | echo '.include "confinc"' > confmf | |
0fbeb4dc AK |
3799 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3800 | *the\ am__doit\ target*) | |
3801 | am__include=.include | |
3802 | am__quote="\"" | |
3803 | _am_result=BSD | |
3804 | ;; | |
3805 | esac | |
b9668ba4 AK |
3806 | fi |
3807 | ||
3808 | ||
0fbeb4dc | 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
47dc80f6 | 3810 | $as_echo "$_am_result" >&6; } |
b9668ba4 AK |
3811 | rm -f confinc confmf |
3812 | ||
3813 | # Check whether --enable-dependency-tracking was given. | |
0fbeb4dc | 3814 | if test "${enable_dependency_tracking+set}" = set; then : |
b9668ba4 AK |
3815 | enableval=$enable_dependency_tracking; |
3816 | fi | |
3817 | ||
3818 | if test "x$enable_dependency_tracking" != xno; then | |
3819 | am_depcomp="$ac_aux_dir/depcomp" | |
3820 | AMDEPBACKSLASH='\' | |
059850b5 | 3821 | am__nodep='_no' |
b9668ba4 | 3822 | fi |
5c706339 | 3823 | if test "x$enable_dependency_tracking" != xno; then |
b9668ba4 AK |
3824 | AMDEP_TRUE= |
3825 | AMDEP_FALSE='#' | |
3826 | else | |
3827 | AMDEP_TRUE='#' | |
3828 | AMDEP_FALSE= | |
3829 | fi | |
3830 | ||
3831 | ||
3832 | ||
b9668ba4 AK |
3833 | depcc="$CC" am_compiler_list= |
3834 | ||
0fbeb4dc | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
47dc80f6 | 3836 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
059850b5 | 3837 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
47dc80f6 | 3838 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3839 | else |
3840 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3841 | # We make a subdir and do the tests there. Otherwise we can end up | |
3842 | # making bogus files that we don't know about and never remove. For | |
3843 | # instance it was reported that on HP-UX the gcc test will end up | |
0044e680 AK |
3844 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3845 | # in D". | |
059850b5 | 3846 | rm -rf conftest.dir |
b9668ba4 AK |
3847 | mkdir conftest.dir |
3848 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3849 | # using a relative directory. | |
3850 | cp "$am_depcomp" conftest.dir | |
3851 | cd conftest.dir | |
3852 | # We will build objects and dependencies in a subdirectory because | |
3853 | # it helps to detect inapplicable dependency modes. For instance | |
3854 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3855 | # side effect of compilation, but ICC will put the dependencies in | |
3856 | # the current directory while Tru64 will put them in the object | |
3857 | # directory. | |
3858 | mkdir sub | |
3859 | ||
3860 | am_cv_CC_dependencies_compiler_type=none | |
3861 | if test "$am_compiler_list" = ""; then | |
3862 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3863 | fi | |
0fbeb4dc AK |
3864 | am__universal=false |
3865 | case " $depcc " in #( | |
3866 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3867 | esac | |
3868 | ||
b9668ba4 AK |
3869 | for depmode in $am_compiler_list; do |
3870 | # Setup a source with many dependencies, because some compilers | |
3871 | # like to wrap large dependency lists on column 80 (with \), and | |
3872 | # we should not choose a depcomp mode which is confused by this. | |
3873 | # | |
3874 | # We need to recreate these files for each test, as the compiler may | |
3875 | # overwrite some of them when testing with obscure command lines. | |
3876 | # This happens at least with the AIX C compiler. | |
3877 | : > sub/conftest.c | |
3878 | for i in 1 2 3 4 5 6; do | |
3879 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
0044e680 AK |
3880 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3881 | # Solaris 10 /bin/sh. | |
3882 | echo '/* dummy */' > sub/conftst$i.h | |
b9668ba4 AK |
3883 | done |
3884 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3885 | ||
0044e680 | 3886 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0fbeb4dc | 3887 | # mode. It turns out that the SunPro C++ compiler does not properly |
0044e680 AK |
3888 | # handle '-M -o', and we need to detect this. Also, some Intel |
3889 | # versions had trouble with output in subdirs. | |
0fbeb4dc AK |
3890 | am__obj=sub/conftest.${OBJEXT-o} |
3891 | am__minus_obj="-o $am__obj" | |
b9668ba4 | 3892 | case $depmode in |
0fbeb4dc AK |
3893 | gcc) |
3894 | # This depmode causes a compiler race in universal mode. | |
3895 | test "$am__universal" = false || continue | |
3896 | ;; | |
b9668ba4 | 3897 | nosideeffect) |
0044e680 AK |
3898 | # After this tag, mechanisms are not by side-effect, so they'll |
3899 | # only be used when explicitly requested. | |
b9668ba4 AK |
3900 | if test "x$enable_dependency_tracking" = xyes; then |
3901 | continue | |
3902 | else | |
3903 | break | |
3904 | fi | |
3905 | ;; | |
059850b5 | 3906 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
0044e680 | 3907 | # This compiler won't grok '-c -o', but also, the minuso test has |
0fbeb4dc AK |
3908 | # not run yet. These depmodes are late enough in the game, and |
3909 | # so weak that their functioning should not be impacted. | |
3910 | am__obj=conftest.${OBJEXT-o} | |
3911 | am__minus_obj= | |
3912 | ;; | |
b9668ba4 AK |
3913 | none) break ;; |
3914 | esac | |
b9668ba4 | 3915 | if depmode=$depmode \ |
0fbeb4dc | 3916 | source=sub/conftest.c object=$am__obj \ |
b9668ba4 | 3917 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0fbeb4dc | 3918 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
b9668ba4 | 3919 | >/dev/null 2>conftest.err && |
5c706339 | 3920 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
b9668ba4 | 3921 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0fbeb4dc | 3922 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
b9668ba4 AK |
3923 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3924 | # icc doesn't choke on unknown options, it will just issue warnings | |
3925 | # or remarks (even with -Werror). So we grep stderr for any message | |
3926 | # that says an option was ignored or not supported. | |
3927 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3928 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3929 | # The diagnosis changed in icc 8.0: | |
3930 | # icc: Command line remark: option '-MP' not supported | |
3931 | if (grep 'ignoring option' conftest.err || | |
3932 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3933 | am_cv_CC_dependencies_compiler_type=$depmode | |
3934 | break | |
3935 | fi | |
3936 | fi | |
3937 | done | |
3938 | ||
3939 | cd .. | |
3940 | rm -rf conftest.dir | |
3941 | else | |
3942 | am_cv_CC_dependencies_compiler_type=none | |
3943 | fi | |
3944 | ||
3945 | fi | |
0fbeb4dc | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
47dc80f6 | 3947 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
b9668ba4 AK |
3948 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3949 | ||
5c706339 | 3950 | if |
b9668ba4 AK |
3951 | test "x$enable_dependency_tracking" != xno \ |
3952 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3953 | am__fastdepCC_TRUE= | |
3954 | am__fastdepCC_FALSE='#' | |
3955 | else | |
3956 | am__fastdepCC_TRUE='#' | |
3957 | am__fastdepCC_FALSE= | |
3958 | fi | |
3959 | ||
3960 | ||
3961 | ac_ext=c | |
3962 | ac_cpp='$CPP $CPPFLAGS' | |
3963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0fbeb4dc | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
47dc80f6 | 3967 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
b9668ba4 AK |
3968 | # On Suns, sometimes $CPP names a directory. |
3969 | if test -n "$CPP" && test -d "$CPP"; then | |
3970 | CPP= | |
3971 | fi | |
3972 | if test -z "$CPP"; then | |
059850b5 | 3973 | if ${ac_cv_prog_CPP+:} false; then : |
47dc80f6 | 3974 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
3975 | else |
3976 | # Double quotes because CPP needs to be expanded | |
3977 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3978 | do | |
3979 | ac_preproc_ok=false | |
3980 | for ac_c_preproc_warn_flag in '' yes | |
3981 | do | |
3982 | # Use a header file that comes with gcc, so configuring glibc | |
3983 | # with a fresh cross-compiler works. | |
3984 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3985 | # <limits.h> exists even on freestanding compilers. | |
3986 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3987 | # not just through cpp. "Syntax error" is here to catch this case. | |
0fbeb4dc | 3988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
3989 | /* end confdefs.h. */ |
3990 | #ifdef __STDC__ | |
3991 | # include <limits.h> | |
3992 | #else | |
3993 | # include <assert.h> | |
3994 | #endif | |
3995 | Syntax error | |
3996 | _ACEOF | |
0fbeb4dc | 3997 | if ac_fn_c_try_cpp "$LINENO"; then : |
b9668ba4 | 3998 | |
b9668ba4 | 3999 | else |
b9668ba4 AK |
4000 | # Broken: fails on valid input. |
4001 | continue | |
4002 | fi | |
0fbeb4dc | 4003 | rm -f conftest.err conftest.i conftest.$ac_ext |
b9668ba4 AK |
4004 | |
4005 | # OK, works on sane cases. Now check whether nonexistent headers | |
4006 | # can be detected and how. | |
0fbeb4dc | 4007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b9668ba4 AK |
4008 | /* end confdefs.h. */ |
4009 | #include <ac_nonexistent.h> | |
4010 | _ACEOF | |
0fbeb4dc | 4011 | if ac_fn_c_try_cpp "$LINENO"; then : |
b9668ba4 AK |
4012 | # Broken: success on invalid input. |
4013 | continue | |
0fbeb4dc AK |
4014 | else |
4015 | # Passes both tests. | |
4016 | ac_preproc_ok=: | |
4017 | break | |
4018 | fi | |
4019 | rm -f conftest.err conftest.i conftest.$ac_ext | |
47dc80f6 | 4020 | |
b9668ba4 | 4021 | done |
0fbeb4dc AK |
4022 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4023 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4024 | if $ac_preproc_ok; then : | |
4025 | break | |
4026 | fi | |
b9668ba4 | 4027 | |
0fbeb4dc AK |
4028 | done |
4029 | ac_cv_prog_CPP=$CPP | |
b9668ba4 AK |
4030 | |
4031 | fi | |
0fbeb4dc AK |
4032 | CPP=$ac_cv_prog_CPP |
4033 | else | |
4034 | ac_cv_prog_CPP=$CPP | |
b9668ba4 | 4035 | fi |
0fbeb4dc AK |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4037 | $as_echo "$CPP" >&6; } | |
4038 | ac_preproc_ok=false | |
4039 | for ac_c_preproc_warn_flag in '' yes | |
4040 | do | |
4041 | # Use a header file that comes with gcc, so configuring glibc | |
4042 | # with a fresh cross-compiler works. | |
4043 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4044 | # <limits.h> exists even on freestanding compilers. | |
4045 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4046 | # not just through cpp. "Syntax error" is here to catch this case. | |
4047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4048 | /* end confdefs.h. */ | |
4049 | #ifdef __STDC__ | |
4050 | # include <limits.h> | |
4051 | #else | |
4052 | # include <assert.h> | |
4053 | #endif | |
4054 | Syntax error | |
4055 | _ACEOF | |
4056 | if ac_fn_c_try_cpp "$LINENO"; then : | |
b9668ba4 | 4057 | |
0fbeb4dc AK |
4058 | else |
4059 | # Broken: fails on valid input. | |
4060 | continue | |
4061 | fi | |
4062 | rm -f conftest.err conftest.i conftest.$ac_ext | |
b9668ba4 | 4063 | |
0fbeb4dc AK |
4064 | # OK, works on sane cases. Now check whether nonexistent headers |
4065 | # can be detected and how. | |
4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4067 | /* end confdefs.h. */ | |
4068 | #include <ac_nonexistent.h> | |
4069 | _ACEOF | |
4070 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4071 | # Broken: success on invalid input. | |
4072 | continue | |
4073 | else | |
4074 | # Passes both tests. | |
4075 | ac_preproc_ok=: | |
4076 | break | |
4077 | fi | |
4078 | rm -f conftest.err conftest.i conftest.$ac_ext | |
b9668ba4 | 4079 | |
0fbeb4dc AK |
4080 | done |
4081 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4082 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4083 | if $ac_preproc_ok; then : | |
4084 | ||
4085 | else | |
4086 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4088 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
059850b5 | 4089 | See \`config.log' for more details" "$LINENO" 5; } |
0fbeb4dc AK |
4090 | fi |
4091 | ||
4092 | ac_ext=c | |
4093 | ac_cpp='$CPP $CPPFLAGS' | |
4094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b9668ba4 | 4097 | |
0fbeb4dc AK |
4098 | |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
47dc80f6 | 4100 | $as_echo_n "checking whether ln -s works... " >&6; } |
b9668ba4 AK |
4101 | LN_S=$as_ln_s |
4102 | if test "$LN_S" = "ln -s"; then | |
0fbeb4dc | 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
47dc80f6 | 4104 | $as_echo "yes" >&6; } |
b9668ba4 | 4105 | else |
0fbeb4dc | 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
47dc80f6 | 4107 | $as_echo "no, using $LN_S" >&6; } |
b9668ba4 AK |
4108 | fi |
4109 | ||
0fbeb4dc | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
47dc80f6 AK |
4111 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
4112 | set x ${MAKE-make} | |
4113 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
059850b5 | 4114 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
47dc80f6 | 4115 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4116 | else |
4117 | cat >conftest.make <<\_ACEOF | |
4118 | SHELL = /bin/sh | |
4119 | all: | |
4120 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4121 | _ACEOF | |
0fbeb4dc | 4122 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
b9668ba4 AK |
4123 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4124 | *@@@%%%=?*=@@@%%%*) | |
4125 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4126 | *) | |
4127 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4128 | esac | |
4129 | rm -f conftest.make | |
4130 | fi | |
4131 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
0fbeb4dc | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
47dc80f6 | 4133 | $as_echo "yes" >&6; } |
b9668ba4 AK |
4134 | SET_MAKE= |
4135 | else | |
0fbeb4dc | 4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 4137 | $as_echo "no" >&6; } |
b9668ba4 AK |
4138 | SET_MAKE="MAKE=${MAKE-make}" |
4139 | fi | |
4140 | ||
5c706339 AK |
4141 | case `pwd` in |
4142 | *\ * | *\ *) | |
0fbeb4dc | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
47dc80f6 | 4144 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
5c706339 AK |
4145 | esac |
4146 | ||
4147 | ||
4148 | ||
c45550e5 AK |
4149 | macro_version='2.4.6' |
4150 | macro_revision='2.4.6' | |
5c706339 | 4151 | |
b9668ba4 AK |
4152 | |
4153 | ||
b9668ba4 AK |
4154 | |
4155 | ||
b9668ba4 AK |
4156 | |
4157 | ||
5c706339 AK |
4158 | |
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | ||
c45550e5 | 4164 | ltmain=$ac_aux_dir/ltmain.sh |
5c706339 | 4165 | |
b9668ba4 AK |
4166 | # Make sure we can run config.sub. |
4167 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
0fbeb4dc | 4168 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
b9668ba4 | 4169 | |
0fbeb4dc | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
47dc80f6 | 4171 | $as_echo_n "checking build system type... " >&6; } |
059850b5 | 4172 | if ${ac_cv_build+:} false; then : |
47dc80f6 | 4173 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4174 | else |
4175 | ac_build_alias=$build_alias | |
4176 | test "x$ac_build_alias" = x && | |
4177 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4178 | test "x$ac_build_alias" = x && | |
0fbeb4dc | 4179 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
b9668ba4 | 4180 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
0fbeb4dc | 4181 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
b9668ba4 AK |
4182 | |
4183 | fi | |
0fbeb4dc | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
47dc80f6 | 4185 | $as_echo "$ac_cv_build" >&6; } |
b9668ba4 AK |
4186 | case $ac_cv_build in |
4187 | *-*-*) ;; | |
059850b5 | 4188 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
b9668ba4 AK |
4189 | esac |
4190 | build=$ac_cv_build | |
4191 | ac_save_IFS=$IFS; IFS='-' | |
4192 | set x $ac_cv_build | |
4193 | shift | |
4194 | build_cpu=$1 | |
4195 | build_vendor=$2 | |
4196 | shift; shift | |
4197 | # Remember, the first character of IFS is used to create $*, | |
4198 | # except with old shells: | |
4199 | build_os=$* | |
4200 | IFS=$ac_save_IFS | |
4201 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4202 | ||
4203 | ||
0fbeb4dc | 4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
47dc80f6 | 4205 | $as_echo_n "checking host system type... " >&6; } |
059850b5 | 4206 | if ${ac_cv_host+:} false; then : |
47dc80f6 | 4207 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4208 | else |
4209 | if test "x$host_alias" = x; then | |
4210 | ac_cv_host=$ac_cv_build | |
4211 | else | |
4212 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
0fbeb4dc | 4213 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
b9668ba4 AK |
4214 | fi |
4215 | ||
4216 | fi | |
0fbeb4dc | 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
47dc80f6 | 4218 | $as_echo "$ac_cv_host" >&6; } |
b9668ba4 AK |
4219 | case $ac_cv_host in |
4220 | *-*-*) ;; | |
059850b5 | 4221 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
b9668ba4 AK |
4222 | esac |
4223 | host=$ac_cv_host | |
4224 | ac_save_IFS=$IFS; IFS='-' | |
4225 | set x $ac_cv_host | |
4226 | shift | |
4227 | host_cpu=$1 | |
4228 | host_vendor=$2 | |
4229 | shift; shift | |
4230 | # Remember, the first character of IFS is used to create $*, | |
4231 | # except with old shells: | |
4232 | host_os=$* | |
4233 | IFS=$ac_save_IFS | |
4234 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4235 | ||
4236 | ||
059850b5 AK |
4237 | # Backslashify metacharacters that are still active within |
4238 | # double-quoted strings. | |
4239 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4240 | ||
4241 | # Same as above, but do not quote variable references. | |
4242 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4243 | ||
4244 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4245 | # double_quote_subst'ed string. | |
4246 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4247 | ||
4248 | # Sed substitution to delay expansion of an escaped single quote. | |
4249 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4250 | ||
4251 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4252 | no_glob_subst='s/\*/\\\*/g' | |
4253 | ||
4254 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4255 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4256 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4257 | ||
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4259 | $as_echo_n "checking how to print strings... " >&6; } | |
4260 | # Test print first, because it will be a builtin if present. | |
4261 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4262 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4263 | ECHO='print -r --' | |
4264 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4265 | ECHO='printf %s\n' | |
4266 | else | |
4267 | # Use this function as a fallback that always works. | |
4268 | func_fallback_echo () | |
4269 | { | |
4270 | eval 'cat <<_LTECHO_EOF | |
4271 | $1 | |
4272 | _LTECHO_EOF' | |
4273 | } | |
4274 | ECHO='func_fallback_echo' | |
4275 | fi | |
4276 | ||
4277 | # func_echo_all arg... | |
4278 | # Invoke $ECHO with all args, space-separated. | |
4279 | func_echo_all () | |
4280 | { | |
4281 | $ECHO "" | |
4282 | } | |
4283 | ||
c45550e5 | 4284 | case $ECHO in |
059850b5 AK |
4285 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4286 | $as_echo "printf" >&6; } ;; | |
4287 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4288 | $as_echo "print -r" >&6; } ;; | |
4289 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4290 | $as_echo "cat" >&6; } ;; | |
4291 | esac | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | ||
4299 | ||
4300 | ||
4301 | ||
4302 | ||
4303 | ||
4304 | ||
4305 | ||
0fbeb4dc | 4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
47dc80f6 | 4307 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
059850b5 | 4308 | if ${ac_cv_path_SED+:} false; then : |
47dc80f6 | 4309 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 4310 | else |
5c706339 AK |
4311 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4312 | for ac_i in 1 2 3 4 5 6 7; do | |
4313 | ac_script="$ac_script$as_nl$ac_script" | |
4314 | done | |
47dc80f6 | 4315 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
0fbeb4dc | 4316 | { ac_script=; unset ac_script;} |
47dc80f6 | 4317 | if test -z "$SED"; then |
5c706339 | 4318 | ac_path_SED_found=false |
47dc80f6 AK |
4319 | # Loop through the user's path and test for each of PROGNAME-LIST |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b9668ba4 AK |
4321 | for as_dir in $PATH |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4325 | for ac_prog in sed gsed; do |
47dc80f6 AK |
4326 | for ac_exec_ext in '' $ac_executable_extensions; do |
4327 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
0044e680 | 4328 | as_fn_executable_p "$ac_path_SED" || continue |
47dc80f6 | 4329 | # Check for GNU ac_path_SED and select it if it is found. |
5c706339 AK |
4330 | # Check for GNU $ac_path_SED |
4331 | case `"$ac_path_SED" --version 2>&1` in | |
4332 | *GNU*) | |
4333 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4334 | *) | |
4335 | ac_count=0 | |
47dc80f6 | 4336 | $as_echo_n 0123456789 >"conftest.in" |
5c706339 AK |
4337 | while : |
4338 | do | |
4339 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4340 | mv "conftest.tmp" "conftest.in" | |
4341 | cp "conftest.in" "conftest.nl" | |
47dc80f6 | 4342 | $as_echo '' >> "conftest.nl" |
5c706339 AK |
4343 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4344 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
0fbeb4dc | 4345 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
5c706339 AK |
4346 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4347 | # Best one so far, save it but keep looking for a better one | |
4348 | ac_cv_path_SED="$ac_path_SED" | |
4349 | ac_path_SED_max=$ac_count | |
b9668ba4 | 4350 | fi |
5c706339 AK |
4351 | # 10*(2^10) chars as input seems more than enough |
4352 | test $ac_count -gt 10 && break | |
b9668ba4 | 4353 | done |
5c706339 AK |
4354 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4355 | esac | |
4356 | ||
47dc80f6 AK |
4357 | $ac_path_SED_found && break 3 |
4358 | done | |
5c706339 | 4359 | done |
0fbeb4dc | 4360 | done |
5c706339 | 4361 | IFS=$as_save_IFS |
47dc80f6 | 4362 | if test -z "$ac_cv_path_SED"; then |
0fbeb4dc | 4363 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
47dc80f6 | 4364 | fi |
5c706339 AK |
4365 | else |
4366 | ac_cv_path_SED=$SED | |
4367 | fi | |
b9668ba4 AK |
4368 | |
4369 | fi | |
0fbeb4dc | 4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
47dc80f6 | 4371 | $as_echo "$ac_cv_path_SED" >&6; } |
5c706339 AK |
4372 | SED="$ac_cv_path_SED" |
4373 | rm -f conftest.sed | |
4374 | ||
4375 | test -z "$SED" && SED=sed | |
4376 | Xsed="$SED -e 1s/^X//" | |
4377 | ||
4378 | ||
4379 | ||
4380 | ||
4381 | ||
4382 | ||
4383 | ||
4384 | ||
4385 | ||
b9668ba4 | 4386 | |
b9668ba4 | 4387 | |
0fbeb4dc | 4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
47dc80f6 | 4389 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
059850b5 | 4390 | if ${ac_cv_path_GREP+:} false; then : |
47dc80f6 | 4391 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 4392 | else |
47dc80f6 | 4393 | if test -z "$GREP"; then |
b9668ba4 | 4394 | ac_path_GREP_found=false |
47dc80f6 AK |
4395 | # Loop through the user's path and test for each of PROGNAME-LIST |
4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b9668ba4 AK |
4397 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4398 | do | |
4399 | IFS=$as_save_IFS | |
4400 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4401 | for ac_prog in grep ggrep; do |
47dc80f6 AK |
4402 | for ac_exec_ext in '' $ac_executable_extensions; do |
4403 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
0044e680 | 4404 | as_fn_executable_p "$ac_path_GREP" || continue |
47dc80f6 | 4405 | # Check for GNU ac_path_GREP and select it if it is found. |
b9668ba4 AK |
4406 | # Check for GNU $ac_path_GREP |
4407 | case `"$ac_path_GREP" --version 2>&1` in | |
4408 | *GNU*) | |
4409 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4410 | *) | |
4411 | ac_count=0 | |
47dc80f6 | 4412 | $as_echo_n 0123456789 >"conftest.in" |
b9668ba4 AK |
4413 | while : |
4414 | do | |
4415 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4416 | mv "conftest.tmp" "conftest.in" | |
4417 | cp "conftest.in" "conftest.nl" | |
47dc80f6 | 4418 | $as_echo 'GREP' >> "conftest.nl" |
b9668ba4 AK |
4419 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4420 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
0fbeb4dc | 4421 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
b9668ba4 AK |
4422 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4423 | # Best one so far, save it but keep looking for a better one | |
4424 | ac_cv_path_GREP="$ac_path_GREP" | |
4425 | ac_path_GREP_max=$ac_count | |
4426 | fi | |
4427 | # 10*(2^10) chars as input seems more than enough | |
4428 | test $ac_count -gt 10 && break | |
4429 | done | |
4430 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4431 | esac | |
4432 | ||
47dc80f6 AK |
4433 | $ac_path_GREP_found && break 3 |
4434 | done | |
b9668ba4 | 4435 | done |
0fbeb4dc | 4436 | done |
b9668ba4 | 4437 | IFS=$as_save_IFS |
47dc80f6 | 4438 | if test -z "$ac_cv_path_GREP"; then |
0fbeb4dc | 4439 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
47dc80f6 | 4440 | fi |
b9668ba4 AK |
4441 | else |
4442 | ac_cv_path_GREP=$GREP | |
4443 | fi | |
4444 | ||
b9668ba4 | 4445 | fi |
0fbeb4dc | 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
47dc80f6 | 4447 | $as_echo "$ac_cv_path_GREP" >&6; } |
b9668ba4 AK |
4448 | GREP="$ac_cv_path_GREP" |
4449 | ||
4450 | ||
0fbeb4dc | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
47dc80f6 | 4452 | $as_echo_n "checking for egrep... " >&6; } |
059850b5 | 4453 | if ${ac_cv_path_EGREP+:} false; then : |
47dc80f6 | 4454 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4455 | else |
4456 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4457 | then ac_cv_path_EGREP="$GREP -E" | |
4458 | else | |
47dc80f6 | 4459 | if test -z "$EGREP"; then |
b9668ba4 | 4460 | ac_path_EGREP_found=false |
47dc80f6 AK |
4461 | # Loop through the user's path and test for each of PROGNAME-LIST |
4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b9668ba4 AK |
4463 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4464 | do | |
4465 | IFS=$as_save_IFS | |
4466 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4467 | for ac_prog in egrep; do |
47dc80f6 AK |
4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
4469 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
0044e680 | 4470 | as_fn_executable_p "$ac_path_EGREP" || continue |
47dc80f6 | 4471 | # Check for GNU ac_path_EGREP and select it if it is found. |
b9668ba4 AK |
4472 | # Check for GNU $ac_path_EGREP |
4473 | case `"$ac_path_EGREP" --version 2>&1` in | |
4474 | *GNU*) | |
4475 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4476 | *) | |
4477 | ac_count=0 | |
47dc80f6 | 4478 | $as_echo_n 0123456789 >"conftest.in" |
b9668ba4 AK |
4479 | while : |
4480 | do | |
4481 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4482 | mv "conftest.tmp" "conftest.in" | |
4483 | cp "conftest.in" "conftest.nl" | |
47dc80f6 | 4484 | $as_echo 'EGREP' >> "conftest.nl" |
b9668ba4 AK |
4485 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4486 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
0fbeb4dc | 4487 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
b9668ba4 AK |
4488 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4489 | # Best one so far, save it but keep looking for a better one | |
4490 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4491 | ac_path_EGREP_max=$ac_count | |
4492 | fi | |
4493 | # 10*(2^10) chars as input seems more than enough | |
4494 | test $ac_count -gt 10 && break | |
4495 | done | |
4496 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4497 | esac | |
4498 | ||
47dc80f6 AK |
4499 | $ac_path_EGREP_found && break 3 |
4500 | done | |
b9668ba4 | 4501 | done |
0fbeb4dc | 4502 | done |
b9668ba4 | 4503 | IFS=$as_save_IFS |
47dc80f6 | 4504 | if test -z "$ac_cv_path_EGREP"; then |
0fbeb4dc | 4505 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
47dc80f6 | 4506 | fi |
b9668ba4 AK |
4507 | else |
4508 | ac_cv_path_EGREP=$EGREP | |
4509 | fi | |
4510 | ||
b9668ba4 AK |
4511 | fi |
4512 | fi | |
0fbeb4dc | 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
47dc80f6 | 4514 | $as_echo "$ac_cv_path_EGREP" >&6; } |
b9668ba4 AK |
4515 | EGREP="$ac_cv_path_EGREP" |
4516 | ||
4517 | ||
0fbeb4dc | 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
47dc80f6 | 4519 | $as_echo_n "checking for fgrep... " >&6; } |
059850b5 | 4520 | if ${ac_cv_path_FGREP+:} false; then : |
47dc80f6 | 4521 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
4522 | else |
4523 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4524 | then ac_cv_path_FGREP="$GREP -F" | |
4525 | else | |
47dc80f6 | 4526 | if test -z "$FGREP"; then |
5c706339 | 4527 | ac_path_FGREP_found=false |
47dc80f6 AK |
4528 | # Loop through the user's path and test for each of PROGNAME-LIST |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5c706339 AK |
4530 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4534 | for ac_prog in fgrep; do |
47dc80f6 AK |
4535 | for ac_exec_ext in '' $ac_executable_extensions; do |
4536 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
0044e680 | 4537 | as_fn_executable_p "$ac_path_FGREP" || continue |
47dc80f6 | 4538 | # Check for GNU ac_path_FGREP and select it if it is found. |
5c706339 AK |
4539 | # Check for GNU $ac_path_FGREP |
4540 | case `"$ac_path_FGREP" --version 2>&1` in | |
4541 | *GNU*) | |
4542 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4543 | *) | |
4544 | ac_count=0 | |
47dc80f6 | 4545 | $as_echo_n 0123456789 >"conftest.in" |
5c706339 AK |
4546 | while : |
4547 | do | |
4548 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4549 | mv "conftest.tmp" "conftest.in" | |
4550 | cp "conftest.in" "conftest.nl" | |
47dc80f6 | 4551 | $as_echo 'FGREP' >> "conftest.nl" |
5c706339 AK |
4552 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4553 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
0fbeb4dc | 4554 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
5c706339 AK |
4555 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4556 | # Best one so far, save it but keep looking for a better one | |
4557 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4558 | ac_path_FGREP_max=$ac_count | |
4559 | fi | |
4560 | # 10*(2^10) chars as input seems more than enough | |
4561 | test $ac_count -gt 10 && break | |
4562 | done | |
4563 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4564 | esac | |
4565 | ||
47dc80f6 AK |
4566 | $ac_path_FGREP_found && break 3 |
4567 | done | |
5c706339 | 4568 | done |
0fbeb4dc | 4569 | done |
5c706339 | 4570 | IFS=$as_save_IFS |
47dc80f6 | 4571 | if test -z "$ac_cv_path_FGREP"; then |
0fbeb4dc | 4572 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
47dc80f6 | 4573 | fi |
b9668ba4 | 4574 | else |
5c706339 | 4575 | ac_cv_path_FGREP=$FGREP |
b9668ba4 AK |
4576 | fi |
4577 | ||
5c706339 AK |
4578 | fi |
4579 | fi | |
0fbeb4dc | 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
47dc80f6 | 4581 | $as_echo "$ac_cv_path_FGREP" >&6; } |
5c706339 AK |
4582 | FGREP="$ac_cv_path_FGREP" |
4583 | ||
4584 | ||
4585 | test -z "$GREP" && GREP=grep | |
4586 | ||
4587 | ||
4588 | ||
4589 | ||
4590 | ||
4591 | ||
4592 | ||
4593 | ||
4594 | ||
4595 | ||
4596 | ||
4597 | ||
4598 | ||
4599 | ||
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | # Check whether --with-gnu-ld was given. | |
0fbeb4dc | 4606 | if test "${with_gnu_ld+set}" = set; then : |
c45550e5 | 4607 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
5c706339 AK |
4608 | else |
4609 | with_gnu_ld=no | |
4610 | fi | |
4611 | ||
4612 | ac_prog=ld | |
c45550e5 | 4613 | if test yes = "$GCC"; then |
b9668ba4 | 4614 | # Check if gcc -print-prog-name=ld gives a path. |
0fbeb4dc | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
47dc80f6 | 4616 | $as_echo_n "checking for ld used by $CC... " >&6; } |
b9668ba4 AK |
4617 | case $host in |
4618 | *-*-mingw*) | |
c45550e5 | 4619 | # gcc leaves a trailing carriage return, which upsets mingw |
b9668ba4 AK |
4620 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4621 | *) | |
4622 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4623 | esac | |
4624 | case $ac_prog in | |
4625 | # Accept absolute paths. | |
4626 | [\\/]* | ?:[\\/]*) | |
4627 | re_direlt='/[^/][^/]*/\.\./' | |
4628 | # Canonicalize the pathname of ld | |
5c706339 AK |
4629 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4630 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4631 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
b9668ba4 | 4632 | done |
c45550e5 | 4633 | test -z "$LD" && LD=$ac_prog |
b9668ba4 AK |
4634 | ;; |
4635 | "") | |
4636 | # If it fails, then pretend we aren't using GCC. | |
4637 | ac_prog=ld | |
4638 | ;; | |
4639 | *) | |
4640 | # If it is relative, then search for the first ld in PATH. | |
4641 | with_gnu_ld=unknown | |
4642 | ;; | |
4643 | esac | |
c45550e5 | 4644 | elif test yes = "$with_gnu_ld"; then |
0fbeb4dc | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
47dc80f6 | 4646 | $as_echo_n "checking for GNU ld... " >&6; } |
b9668ba4 | 4647 | else |
0fbeb4dc | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
47dc80f6 | 4649 | $as_echo_n "checking for non-GNU ld... " >&6; } |
b9668ba4 | 4650 | fi |
059850b5 | 4651 | if ${lt_cv_path_LD+:} false; then : |
47dc80f6 | 4652 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4653 | else |
4654 | if test -z "$LD"; then | |
c45550e5 | 4655 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
b9668ba4 | 4656 | for ac_dir in $PATH; do |
c45550e5 | 4657 | IFS=$lt_save_ifs |
b9668ba4 AK |
4658 | test -z "$ac_dir" && ac_dir=. |
4659 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
c45550e5 | 4660 | lt_cv_path_LD=$ac_dir/$ac_prog |
b9668ba4 AK |
4661 | # Check to see if the program is GNU ld. I'd rather use --version, |
4662 | # but apparently some variants of GNU ld only accept -v. | |
4663 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4664 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4665 | *GNU* | *'with BFD'*) | |
c45550e5 | 4666 | test no != "$with_gnu_ld" && break |
b9668ba4 AK |
4667 | ;; |
4668 | *) | |
c45550e5 | 4669 | test yes != "$with_gnu_ld" && break |
b9668ba4 AK |
4670 | ;; |
4671 | esac | |
4672 | fi | |
4673 | done | |
c45550e5 | 4674 | IFS=$lt_save_ifs |
b9668ba4 | 4675 | else |
c45550e5 | 4676 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
b9668ba4 AK |
4677 | fi |
4678 | fi | |
4679 | ||
c45550e5 | 4680 | LD=$lt_cv_path_LD |
b9668ba4 | 4681 | if test -n "$LD"; then |
0fbeb4dc | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
47dc80f6 | 4683 | $as_echo "$LD" >&6; } |
b9668ba4 | 4684 | else |
0fbeb4dc | 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 4686 | $as_echo "no" >&6; } |
b9668ba4 | 4687 | fi |
0fbeb4dc AK |
4688 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
47dc80f6 | 4690 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
059850b5 | 4691 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47dc80f6 | 4692 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4693 | else |
4694 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4695 | case `$LD -v 2>&1 </dev/null` in | |
4696 | *GNU* | *'with BFD'*) | |
4697 | lt_cv_prog_gnu_ld=yes | |
4698 | ;; | |
4699 | *) | |
4700 | lt_cv_prog_gnu_ld=no | |
4701 | ;; | |
4702 | esac | |
4703 | fi | |
0fbeb4dc | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
47dc80f6 | 4705 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
b9668ba4 AK |
4706 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4707 | ||
4708 | ||
b9668ba4 | 4709 | |
5c706339 AK |
4710 | |
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
0fbeb4dc | 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
47dc80f6 | 4717 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
059850b5 | 4718 | if ${lt_cv_path_NM+:} false; then : |
47dc80f6 | 4719 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
4720 | else |
4721 | if test -n "$NM"; then | |
4722 | # Let the user override the test. | |
c45550e5 | 4723 | lt_cv_path_NM=$NM |
b9668ba4 | 4724 | else |
c45550e5 | 4725 | lt_nm_to_check=${ac_tool_prefix}nm |
b9668ba4 AK |
4726 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4727 | lt_nm_to_check="$lt_nm_to_check nm" | |
4728 | fi | |
4729 | for lt_tmp_nm in $lt_nm_to_check; do | |
c45550e5 | 4730 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
b9668ba4 | 4731 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
c45550e5 | 4732 | IFS=$lt_save_ifs |
b9668ba4 | 4733 | test -z "$ac_dir" && ac_dir=. |
c45550e5 AK |
4734 | tmp_nm=$ac_dir/$lt_tmp_nm |
4735 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
b9668ba4 | 4736 | # Check to see if the nm accepts a BSD-compat flag. |
c45550e5 | 4737 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
b9668ba4 AK |
4738 | # nm: unknown option "B" ignored |
4739 | # Tru64's nm complains that /dev/null is an invalid object file | |
c45550e5 AK |
4740 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4741 | case $build_os in | |
4742 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4743 | *) lt_bad_file=/dev/null ;; | |
4744 | esac | |
4745 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4746 | *$lt_bad_file* | *'Invalid file or object type'*) | |
b9668ba4 | 4747 | lt_cv_path_NM="$tmp_nm -B" |
c45550e5 | 4748 | break 2 |
b9668ba4 AK |
4749 | ;; |
4750 | *) | |
4751 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4752 | */dev/null*) | |
4753 | lt_cv_path_NM="$tmp_nm -p" | |
c45550e5 | 4754 | break 2 |
b9668ba4 AK |
4755 | ;; |
4756 | *) | |
4757 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4758 | continue # so that we can try to find one that supports BSD flags | |
4759 | ;; | |
4760 | esac | |
4761 | ;; | |
4762 | esac | |
4763 | fi | |
4764 | done | |
c45550e5 | 4765 | IFS=$lt_save_ifs |
b9668ba4 | 4766 | done |
5c706339 | 4767 | : ${lt_cv_path_NM=no} |
b9668ba4 AK |
4768 | fi |
4769 | fi | |
0fbeb4dc | 4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
47dc80f6 | 4771 | $as_echo "$lt_cv_path_NM" >&6; } |
c45550e5 AK |
4772 | if test no != "$lt_cv_path_NM"; then |
4773 | NM=$lt_cv_path_NM | |
5c706339 AK |
4774 | else |
4775 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
059850b5 AK |
4776 | if test -n "$DUMPBIN"; then : |
4777 | # Let the user override the test. | |
4778 | else | |
4779 | if test -n "$ac_tool_prefix"; then | |
4780 | for ac_prog in dumpbin "link -dump" | |
5c706339 AK |
4781 | do |
4782 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4783 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0fbeb4dc | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 4785 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 4786 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
47dc80f6 | 4787 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 4788 | else |
5c706339 AK |
4789 | if test -n "$DUMPBIN"; then |
4790 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4791 | else | |
4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4793 | for as_dir in $PATH | |
4794 | do | |
4795 | IFS=$as_save_IFS | |
4796 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4797 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 4798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 4799 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
0fbeb4dc | 4800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
4801 | break 2 |
4802 | fi | |
4803 | done | |
0fbeb4dc | 4804 | done |
5c706339 | 4805 | IFS=$as_save_IFS |
b9668ba4 | 4806 | |
5c706339 AK |
4807 | fi |
4808 | fi | |
4809 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4810 | if test -n "$DUMPBIN"; then | |
0fbeb4dc | 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
47dc80f6 | 4812 | $as_echo "$DUMPBIN" >&6; } |
5c706339 | 4813 | else |
0fbeb4dc | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 4815 | $as_echo "no" >&6; } |
5c706339 | 4816 | fi |
b9668ba4 | 4817 | |
b9668ba4 | 4818 | |
5c706339 AK |
4819 | test -n "$DUMPBIN" && break |
4820 | done | |
4821 | fi | |
4822 | if test -z "$DUMPBIN"; then | |
4823 | ac_ct_DUMPBIN=$DUMPBIN | |
059850b5 | 4824 | for ac_prog in dumpbin "link -dump" |
5c706339 AK |
4825 | do |
4826 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4827 | set dummy $ac_prog; ac_word=$2 | |
0fbeb4dc | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 4829 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 4830 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
47dc80f6 | 4831 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
4832 | else |
4833 | if test -n "$ac_ct_DUMPBIN"; then | |
4834 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4835 | else | |
4836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4837 | for as_dir in $PATH | |
4838 | do | |
4839 | IFS=$as_save_IFS | |
4840 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 4841 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 4842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 4843 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
0fbeb4dc | 4844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
4845 | break 2 |
4846 | fi | |
4847 | done | |
0fbeb4dc | 4848 | done |
5c706339 | 4849 | IFS=$as_save_IFS |
b9668ba4 | 4850 | |
5c706339 AK |
4851 | fi |
4852 | fi | |
4853 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4854 | if test -n "$ac_ct_DUMPBIN"; then | |
0fbeb4dc | 4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
47dc80f6 | 4856 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5c706339 | 4857 | else |
0fbeb4dc | 4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 4859 | $as_echo "no" >&6; } |
5c706339 | 4860 | fi |
b9668ba4 | 4861 | |
b9668ba4 | 4862 | |
5c706339 AK |
4863 | test -n "$ac_ct_DUMPBIN" && break |
4864 | done | |
b9668ba4 | 4865 | |
5c706339 AK |
4866 | if test "x$ac_ct_DUMPBIN" = x; then |
4867 | DUMPBIN=":" | |
b9668ba4 | 4868 | else |
5c706339 AK |
4869 | case $cross_compiling:$ac_tool_warned in |
4870 | yes:) | |
0fbeb4dc | 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 4872 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5c706339 AK |
4873 | ac_tool_warned=yes ;; |
4874 | esac | |
4875 | DUMPBIN=$ac_ct_DUMPBIN | |
b9668ba4 | 4876 | fi |
5c706339 | 4877 | fi |
b9668ba4 | 4878 | |
c45550e5 | 4879 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
059850b5 | 4880 | *COFF*) |
c45550e5 | 4881 | DUMPBIN="$DUMPBIN -symbols -headers" |
059850b5 AK |
4882 | ;; |
4883 | *) | |
4884 | DUMPBIN=: | |
4885 | ;; | |
4886 | esac | |
4887 | fi | |
b9668ba4 | 4888 | |
c45550e5 AK |
4889 | if test : != "$DUMPBIN"; then |
4890 | NM=$DUMPBIN | |
5c706339 AK |
4891 | fi |
4892 | fi | |
4893 | test -z "$NM" && NM=nm | |
b9668ba4 | 4894 | |
b9668ba4 | 4895 | |
b9668ba4 | 4896 | |
b9668ba4 | 4897 | |
b9668ba4 | 4898 | |
b9668ba4 | 4899 | |
0fbeb4dc | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
47dc80f6 | 4901 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
059850b5 | 4902 | if ${lt_cv_nm_interface+:} false; then : |
47dc80f6 | 4903 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
4904 | else |
4905 | lt_cv_nm_interface="BSD nm" | |
4906 | echo "int some_variable = 0;" > conftest.$ac_ext | |
059850b5 | 4907 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
5c706339 AK |
4908 | (eval "$ac_compile" 2>conftest.err) |
4909 | cat conftest.err >&5 | |
059850b5 | 4910 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5c706339 AK |
4911 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4912 | cat conftest.err >&5 | |
059850b5 | 4913 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
5c706339 AK |
4914 | cat conftest.out >&5 |
4915 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4916 | lt_cv_nm_interface="MS dumpbin" | |
b9668ba4 | 4917 | fi |
5c706339 AK |
4918 | rm -f conftest* |
4919 | fi | |
0fbeb4dc | 4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
47dc80f6 | 4921 | $as_echo "$lt_cv_nm_interface" >&6; } |
b9668ba4 | 4922 | |
5c706339 | 4923 | # find the maximum length of command line arguments |
0fbeb4dc | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
47dc80f6 | 4925 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
059850b5 | 4926 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
47dc80f6 | 4927 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
4928 | else |
4929 | i=0 | |
c45550e5 | 4930 | teststring=ABCD |
b9668ba4 | 4931 | |
5c706339 AK |
4932 | case $build_os in |
4933 | msdosdjgpp*) | |
4934 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4935 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4936 | # during glob expansion). Even if it were fixed, the result of this | |
4937 | # check would be larger than it should be. | |
4938 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4939 | ;; | |
b9668ba4 | 4940 | |
5c706339 AK |
4941 | gnu*) |
4942 | # Under GNU Hurd, this test is not required because there is | |
4943 | # no limit to the length of command line arguments. | |
4944 | # Libtool will interpret -1 as no limit whatsoever | |
4945 | lt_cv_sys_max_cmd_len=-1; | |
b9668ba4 | 4946 | ;; |
5c706339 | 4947 | |
47dc80f6 | 4948 | cygwin* | mingw* | cegcc*) |
5c706339 AK |
4949 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
4950 | # about 5 minutes as the teststring grows exponentially. | |
4951 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4952 | # you end up with a "frozen" computer, even though with patience | |
4953 | # the test eventually succeeds (with a max line length of 256k). | |
4954 | # Instead, let's just punt: use the minimum linelength reported by | |
4955 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4956 | lt_cv_sys_max_cmd_len=8192; | |
b9668ba4 | 4957 | ;; |
5c706339 | 4958 | |
059850b5 AK |
4959 | mint*) |
4960 | # On MiNT this can take a long time and run out of memory. | |
4961 | lt_cv_sys_max_cmd_len=8192; | |
4962 | ;; | |
4963 | ||
5c706339 AK |
4964 | amigaos*) |
4965 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4966 | # So we just punt and use a minimum line length of 8192. | |
4967 | lt_cv_sys_max_cmd_len=8192; | |
b9668ba4 | 4968 | ;; |
5c706339 | 4969 | |
c45550e5 | 4970 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
5c706339 AK |
4971 | # This has been around since 386BSD, at least. Likely further. |
4972 | if test -x /sbin/sysctl; then | |
4973 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4974 | elif test -x /usr/sbin/sysctl; then | |
4975 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4976 | else | |
4977 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4978 | fi | |
4979 | # And add a safety zone | |
4980 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4981 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
b9668ba4 | 4982 | ;; |
5c706339 AK |
4983 | |
4984 | interix*) | |
4985 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4986 | lt_cv_sys_max_cmd_len=196608 | |
b9668ba4 | 4987 | ;; |
5c706339 | 4988 | |
059850b5 AK |
4989 | os2*) |
4990 | # The test takes a long time on OS/2. | |
4991 | lt_cv_sys_max_cmd_len=8192 | |
4992 | ;; | |
4993 | ||
5c706339 AK |
4994 | osf*) |
4995 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4996 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4997 | # nice to cause kernel panics so lets avoid the loop below. | |
4998 | # First set a reasonable default. | |
4999 | lt_cv_sys_max_cmd_len=16384 | |
5000 | # | |
5001 | if test -x /sbin/sysconfig; then | |
5002 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5003 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5004 | esac | |
5005 | fi | |
5006 | ;; | |
5007 | sco3.2v5*) | |
5008 | lt_cv_sys_max_cmd_len=102400 | |
5009 | ;; | |
5010 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5011 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5012 | if test -n "$kargmax"; then | |
5013 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5014 | else | |
5015 | lt_cv_sys_max_cmd_len=32768 | |
5016 | fi | |
5017 | ;; | |
5018 | *) | |
5019 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
0044e680 | 5020 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
c45550e5 | 5021 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
5c706339 AK |
5022 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5023 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5024 | else | |
5025 | # Make teststring a little bigger before we do anything with it. | |
5026 | # a 1K string should be a reasonable start. | |
c45550e5 | 5027 | for i in 1 2 3 4 5 6 7 8; do |
5c706339 AK |
5028 | teststring=$teststring$teststring |
5029 | done | |
5030 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5031 | # If test is not a shell built-in, we'll probably end up computing a | |
5032 | # maximum length that is only half of the actual maximum length, but | |
5033 | # we can't tell. | |
c45550e5 | 5034 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
059850b5 | 5035 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
c45550e5 | 5036 | test 17 != "$i" # 1/2 MB should be enough |
5c706339 AK |
5037 | do |
5038 | i=`expr $i + 1` | |
5039 | teststring=$teststring$teststring | |
5040 | done | |
5041 | # Only check the string length outside the loop. | |
5042 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5043 | teststring= | |
5044 | # Add a significant safety factor because C++ compilers can tack on | |
5045 | # massive amounts of additional arguments before passing them to the | |
5046 | # linker. It appears as though 1/2 is a usable value. | |
5047 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5048 | fi | |
b9668ba4 AK |
5049 | ;; |
5050 | esac | |
b9668ba4 | 5051 | |
5c706339 | 5052 | fi |
b9668ba4 | 5053 | |
c45550e5 | 5054 | if test -n "$lt_cv_sys_max_cmd_len"; then |
0fbeb4dc | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
47dc80f6 | 5056 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5c706339 | 5057 | else |
0fbeb4dc | 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
47dc80f6 | 5059 | $as_echo "none" >&6; } |
b9668ba4 | 5060 | fi |
5c706339 | 5061 | max_cmd_len=$lt_cv_sys_max_cmd_len |
b9668ba4 AK |
5062 | |
5063 | ||
5064 | ||
5065 | ||
b9668ba4 | 5066 | |
b9668ba4 | 5067 | |
5c706339 AK |
5068 | : ${CP="cp -f"} |
5069 | : ${MV="mv -f"} | |
5070 | : ${RM="rm -f"} | |
b9668ba4 | 5071 | |
5c706339 AK |
5072 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5073 | lt_unset=unset | |
5074 | else | |
5075 | lt_unset=false | |
b9668ba4 AK |
5076 | fi |
5077 | ||
b9668ba4 | 5078 | |
5c706339 AK |
5079 | |
5080 | ||
5081 | ||
5082 | # test EBCDIC or ASCII | |
5083 | case `echo X|tr X '\101'` in | |
5084 | A) # ASCII based system | |
5085 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5086 | lt_SP2NL='tr \040 \012' | |
5087 | lt_NL2SP='tr \015\012 \040\040' | |
b9668ba4 | 5088 | ;; |
5c706339 AK |
5089 | *) # EBCDIC based system |
5090 | lt_SP2NL='tr \100 \n' | |
5091 | lt_NL2SP='tr \r\n \100\100' | |
b9668ba4 | 5092 | ;; |
5c706339 | 5093 | esac |
b9668ba4 | 5094 | |
b9668ba4 | 5095 | |
b9668ba4 | 5096 | |
b9668ba4 | 5097 | |
b9668ba4 | 5098 | |
b9668ba4 | 5099 | |
b9668ba4 | 5100 | |
b9668ba4 | 5101 | |
5c706339 | 5102 | |
059850b5 AK |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5104 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5105 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5106 | $as_echo_n "(cached) " >&6 | |
5107 | else | |
5108 | case $host in | |
5109 | *-*-mingw* ) | |
5110 | case $build in | |
5111 | *-*-mingw* ) # actually msys | |
5112 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5113 | ;; | |
5114 | *-*-cygwin* ) | |
5115 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5116 | ;; | |
5117 | * ) # otherwise, assume *nix | |
5118 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5119 | ;; | |
5120 | esac | |
5121 | ;; | |
5122 | *-*-cygwin* ) | |
5123 | case $build in | |
5124 | *-*-mingw* ) # actually msys | |
5125 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5126 | ;; | |
5127 | *-*-cygwin* ) | |
5128 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5129 | ;; | |
5130 | * ) # otherwise, assume *nix | |
5131 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5132 | ;; | |
5133 | esac | |
5134 | ;; | |
5135 | * ) # unhandled hosts (and "normal" native builds) | |
5136 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5137 | ;; | |
5138 | esac | |
5139 | ||
5140 | fi | |
5141 | ||
5142 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5144 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5151 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5152 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5153 | $as_echo_n "(cached) " >&6 | |
5154 | else | |
5155 | #assume ordinary cross tools, or native build. | |
5156 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5157 | case $host in | |
5158 | *-*-mingw* ) | |
5159 | case $build in | |
5160 | *-*-mingw* ) # actually msys | |
5161 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5162 | ;; | |
5163 | esac | |
5164 | ;; | |
5165 | esac | |
5166 | ||
5167 | fi | |
5168 | ||
5169 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5171 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
0fbeb4dc | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
47dc80f6 | 5178 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
059850b5 | 5179 | if ${lt_cv_ld_reload_flag+:} false; then : |
47dc80f6 | 5180 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
5181 | else |
5182 | lt_cv_ld_reload_flag='-r' | |
b9668ba4 | 5183 | fi |
0fbeb4dc | 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
47dc80f6 | 5185 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5c706339 AK |
5186 | reload_flag=$lt_cv_ld_reload_flag |
5187 | case $reload_flag in | |
5188 | "" | " "*) ;; | |
5189 | *) reload_flag=" $reload_flag" ;; | |
b9668ba4 | 5190 | esac |
5c706339 AK |
5191 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5192 | case $host_os in | |
059850b5 | 5193 | cygwin* | mingw* | pw32* | cegcc*) |
c45550e5 | 5194 | if test yes != "$GCC"; then |
059850b5 AK |
5195 | reload_cmds=false |
5196 | fi | |
5197 | ;; | |
5c706339 | 5198 | darwin*) |
c45550e5 AK |
5199 | if test yes = "$GCC"; then |
5200 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5c706339 AK |
5201 | else |
5202 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5203 | fi | |
5204 | ;; | |
b9668ba4 | 5205 | esac |
b9668ba4 | 5206 | |
b9668ba4 | 5207 | |
b9668ba4 | 5208 | |
b9668ba4 | 5209 | |
b9668ba4 | 5210 | |
b9668ba4 | 5211 | |
b9668ba4 | 5212 | |
b9668ba4 | 5213 | |
b9668ba4 | 5214 | |
47dc80f6 AK |
5215 | if test -n "$ac_tool_prefix"; then |
5216 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5217 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
0fbeb4dc | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5219 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5220 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
47dc80f6 AK |
5221 | $as_echo_n "(cached) " >&6 |
5222 | else | |
5223 | if test -n "$OBJDUMP"; then | |
5224 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5225 | else | |
5226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5227 | for as_dir in $PATH | |
5228 | do | |
5229 | IFS=$as_save_IFS | |
5230 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
47dc80f6 | 5233 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
0fbeb4dc | 5234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47dc80f6 AK |
5235 | break 2 |
5236 | fi | |
5237 | done | |
0fbeb4dc | 5238 | done |
47dc80f6 AK |
5239 | IFS=$as_save_IFS |
5240 | ||
5241 | fi | |
5242 | fi | |
5243 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5244 | if test -n "$OBJDUMP"; then | |
0fbeb4dc | 5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
47dc80f6 AK |
5246 | $as_echo "$OBJDUMP" >&6; } |
5247 | else | |
0fbeb4dc | 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 AK |
5249 | $as_echo "no" >&6; } |
5250 | fi | |
5251 | ||
5252 | ||
5253 | fi | |
5254 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5255 | ac_ct_OBJDUMP=$OBJDUMP | |
5256 | # Extract the first word of "objdump", so it can be a program name with args. | |
5257 | set dummy objdump; ac_word=$2 | |
0fbeb4dc | 5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5259 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5260 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
47dc80f6 AK |
5261 | $as_echo_n "(cached) " >&6 |
5262 | else | |
5263 | if test -n "$ac_ct_OBJDUMP"; then | |
5264 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5265 | else | |
5266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5267 | for as_dir in $PATH | |
5268 | do | |
5269 | IFS=$as_save_IFS | |
5270 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5271 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
47dc80f6 | 5273 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
0fbeb4dc | 5274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47dc80f6 AK |
5275 | break 2 |
5276 | fi | |
5277 | done | |
0fbeb4dc | 5278 | done |
47dc80f6 AK |
5279 | IFS=$as_save_IFS |
5280 | ||
5281 | fi | |
5282 | fi | |
5283 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5284 | if test -n "$ac_ct_OBJDUMP"; then | |
0fbeb4dc | 5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
47dc80f6 AK |
5286 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5287 | else | |
0fbeb4dc | 5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 AK |
5289 | $as_echo "no" >&6; } |
5290 | fi | |
5291 | ||
5292 | if test "x$ac_ct_OBJDUMP" = x; then | |
5293 | OBJDUMP="false" | |
5294 | else | |
5295 | case $cross_compiling:$ac_tool_warned in | |
5296 | yes:) | |
0fbeb4dc | 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 AK |
5298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5299 | ac_tool_warned=yes ;; | |
5300 | esac | |
5301 | OBJDUMP=$ac_ct_OBJDUMP | |
5302 | fi | |
5303 | else | |
5304 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5305 | fi | |
5306 | ||
5307 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5308 | ||
5309 | ||
5310 | ||
5311 | ||
5312 | ||
5313 | ||
5314 | ||
5315 | ||
b9668ba4 | 5316 | |
0fbeb4dc | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
47dc80f6 | 5318 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
059850b5 | 5319 | if ${lt_cv_deplibs_check_method+:} false; then : |
47dc80f6 | 5320 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5321 | else |
5c706339 AK |
5322 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5323 | lt_cv_file_magic_test_file= | |
5324 | lt_cv_deplibs_check_method='unknown' | |
5325 | # Need to set the preceding variable on all platforms that support | |
5326 | # interlibrary dependencies. | |
5327 | # 'none' -- dependencies not supported. | |
c45550e5 | 5328 | # 'unknown' -- same as none, but documents that we really don't know. |
5c706339 AK |
5329 | # 'pass_all' -- all dependencies passed with no checks. |
5330 | # 'test_compile' -- check by making test program. | |
5331 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
c45550e5 AK |
5332 | # that responds to the $file_magic_cmd with a given extended regex. |
5333 | # If you have 'file' or equivalent on your system and you're not sure | |
5334 | # whether 'pass_all' will *always* work, you probably want this one. | |
b9668ba4 | 5335 | |
5c706339 AK |
5336 | case $host_os in |
5337 | aix[4-9]*) | |
5338 | lt_cv_deplibs_check_method=pass_all | |
5339 | ;; | |
b9668ba4 | 5340 | |
5c706339 AK |
5341 | beos*) |
5342 | lt_cv_deplibs_check_method=pass_all | |
5343 | ;; | |
b9668ba4 | 5344 | |
5c706339 AK |
5345 | bsdi[45]*) |
5346 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5347 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5348 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5349 | ;; | |
b9668ba4 | 5350 | |
5c706339 AK |
5351 | cygwin*) |
5352 | # func_win32_libid is a shell function defined in ltmain.sh | |
5353 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5354 | lt_cv_file_magic_cmd='func_win32_libid' | |
5355 | ;; | |
b9668ba4 | 5356 | |
5c706339 AK |
5357 | mingw* | pw32*) |
5358 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5359 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5360 | # unless we find 'file', for example because we are cross-compiling. | |
c45550e5 | 5361 | if ( file / ) >/dev/null 2>&1; then |
5c706339 AK |
5362 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5363 | lt_cv_file_magic_cmd='func_win32_libid' | |
5364 | else | |
059850b5 AK |
5365 | # Keep this pattern in sync with the one in func_win32_libid. |
5366 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5c706339 AK |
5367 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5368 | fi | |
5369 | ;; | |
b9668ba4 | 5370 | |
059850b5 | 5371 | cegcc*) |
47dc80f6 AK |
5372 | # use the weaker test based on 'objdump'. See mingw*. |
5373 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5374 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5375 | ;; | |
5376 | ||
5c706339 AK |
5377 | darwin* | rhapsody*) |
5378 | lt_cv_deplibs_check_method=pass_all | |
5379 | ;; | |
b9668ba4 | 5380 | |
5c706339 AK |
5381 | freebsd* | dragonfly*) |
5382 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5383 | case $host_cpu in | |
5384 | i*86 ) | |
5385 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5386 | # Let's accept both of them until this is cleared up. | |
5387 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5388 | lt_cv_file_magic_cmd=/usr/bin/file | |
5389 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5390 | ;; | |
5391 | esac | |
5392 | else | |
5393 | lt_cv_deplibs_check_method=pass_all | |
5394 | fi | |
5395 | ;; | |
b9668ba4 | 5396 | |
059850b5 AK |
5397 | haiku*) |
5398 | lt_cv_deplibs_check_method=pass_all | |
5399 | ;; | |
5400 | ||
5c706339 AK |
5401 | hpux10.20* | hpux11*) |
5402 | lt_cv_file_magic_cmd=/usr/bin/file | |
5403 | case $host_cpu in | |
5404 | ia64*) | |
5405 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5406 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5407 | ;; | |
5408 | hppa*64*) | |
059850b5 | 5409 | 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]' |
5c706339 AK |
5410 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5411 | ;; | |
5412 | *) | |
059850b5 | 5413 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5c706339 AK |
5414 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5415 | ;; | |
5416 | esac | |
5417 | ;; | |
b9668ba4 | 5418 | |
5c706339 AK |
5419 | interix[3-9]*) |
5420 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5421 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5422 | ;; | |
b9668ba4 | 5423 | |
5c706339 AK |
5424 | irix5* | irix6* | nonstopux*) |
5425 | case $LD in | |
5426 | *-32|*"-32 ") libmagic=32-bit;; | |
5427 | *-n32|*"-n32 ") libmagic=N32;; | |
5428 | *-64|*"-64 ") libmagic=64-bit;; | |
5429 | *) libmagic=never-match;; | |
5430 | esac | |
5431 | lt_cv_deplibs_check_method=pass_all | |
5432 | ;; | |
b9668ba4 | 5433 | |
059850b5 | 5434 | # This must be glibc/ELF. |
0044e680 | 5435 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5c706339 AK |
5436 | lt_cv_deplibs_check_method=pass_all |
5437 | ;; | |
b9668ba4 | 5438 | |
5070705b | 5439 | netbsd* | netbsdelf*-gnu) |
5c706339 AK |
5440 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5441 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5442 | else | |
5443 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5444 | fi | |
5445 | ;; | |
b9668ba4 | 5446 | |
5c706339 AK |
5447 | newos6*) |
5448 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5449 | lt_cv_file_magic_cmd=/usr/bin/file | |
5450 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5451 | ;; | |
b9668ba4 | 5452 | |
5c706339 AK |
5453 | *nto* | *qnx*) |
5454 | lt_cv_deplibs_check_method=pass_all | |
5455 | ;; | |
b9668ba4 | 5456 | |
c45550e5 AK |
5457 | openbsd* | bitrig*) |
5458 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5c706339 AK |
5459 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5460 | else | |
5461 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5462 | fi | |
5463 | ;; | |
5464 | ||
5465 | osf3* | osf4* | osf5*) | |
5466 | lt_cv_deplibs_check_method=pass_all | |
5467 | ;; | |
5468 | ||
5469 | rdos*) | |
5470 | lt_cv_deplibs_check_method=pass_all | |
5471 | ;; | |
5472 | ||
5473 | solaris*) | |
5474 | lt_cv_deplibs_check_method=pass_all | |
5475 | ;; | |
5476 | ||
5477 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5478 | lt_cv_deplibs_check_method=pass_all | |
5479 | ;; | |
5480 | ||
5481 | sysv4 | sysv4.3*) | |
5482 | case $host_vendor in | |
5483 | motorola) | |
5484 | 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]' | |
5485 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5486 | ;; | |
5487 | ncr) | |
5488 | lt_cv_deplibs_check_method=pass_all | |
5489 | ;; | |
5490 | sequent) | |
5491 | lt_cv_file_magic_cmd='/bin/file' | |
5492 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5493 | ;; | |
5494 | sni) | |
5495 | lt_cv_file_magic_cmd='/bin/file' | |
5496 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5497 | lt_cv_file_magic_test_file=/lib/libc.so | |
5498 | ;; | |
5499 | siemens) | |
5500 | lt_cv_deplibs_check_method=pass_all | |
5501 | ;; | |
5502 | pc) | |
5503 | lt_cv_deplibs_check_method=pass_all | |
5504 | ;; | |
5505 | esac | |
5506 | ;; | |
5507 | ||
5508 | tpf*) | |
5509 | lt_cv_deplibs_check_method=pass_all | |
5510 | ;; | |
c45550e5 AK |
5511 | os2*) |
5512 | lt_cv_deplibs_check_method=pass_all | |
5513 | ;; | |
b9668ba4 | 5514 | esac |
b9668ba4 | 5515 | |
b9668ba4 | 5516 | fi |
0fbeb4dc | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
47dc80f6 | 5518 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
059850b5 AK |
5519 | |
5520 | file_magic_glob= | |
5521 | want_nocaseglob=no | |
5522 | if test "$build" = "$host"; then | |
5523 | case $host_os in | |
5524 | mingw* | pw32*) | |
5525 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5526 | want_nocaseglob=yes | |
5527 | else | |
5528 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5529 | fi | |
5530 | ;; | |
5531 | esac | |
5532 | fi | |
5533 | ||
5c706339 AK |
5534 | file_magic_cmd=$lt_cv_file_magic_cmd |
5535 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5536 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
b9668ba4 | 5537 | |
b9668ba4 | 5538 | |
b9668ba4 | 5539 | |
b9668ba4 AK |
5540 | |
5541 | ||
5542 | ||
5c706339 AK |
5543 | |
5544 | ||
5545 | ||
5546 | ||
059850b5 AK |
5547 | |
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5c706339 AK |
5557 | |
5558 | ||
5559 | if test -n "$ac_tool_prefix"; then | |
059850b5 AK |
5560 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5561 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
0fbeb4dc | 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5563 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5564 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
47dc80f6 | 5565 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5566 | else |
059850b5 AK |
5567 | if test -n "$DLLTOOL"; then |
5568 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
b9668ba4 | 5569 | else |
5c706339 AK |
5570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5571 | for as_dir in $PATH | |
5572 | do | |
5573 | IFS=$as_save_IFS | |
5574 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5575 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 | 5577 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
0fbeb4dc | 5578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
5579 | break 2 |
5580 | fi | |
5581 | done | |
0fbeb4dc | 5582 | done |
5c706339 | 5583 | IFS=$as_save_IFS |
b9668ba4 | 5584 | |
5c706339 AK |
5585 | fi |
5586 | fi | |
059850b5 AK |
5587 | DLLTOOL=$ac_cv_prog_DLLTOOL |
5588 | if test -n "$DLLTOOL"; then | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5590 | $as_echo "$DLLTOOL" >&6; } | |
5c706339 | 5591 | else |
0fbeb4dc | 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 5593 | $as_echo "no" >&6; } |
b9668ba4 AK |
5594 | fi |
5595 | ||
b9668ba4 | 5596 | |
5c706339 | 5597 | fi |
059850b5 AK |
5598 | if test -z "$ac_cv_prog_DLLTOOL"; then |
5599 | ac_ct_DLLTOOL=$DLLTOOL | |
5600 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5601 | set dummy dlltool; ac_word=$2 | |
0fbeb4dc | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5603 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5604 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
47dc80f6 | 5605 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5606 | else |
059850b5 AK |
5607 | if test -n "$ac_ct_DLLTOOL"; then |
5608 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5c706339 AK |
5609 | else |
5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5611 | for as_dir in $PATH | |
5612 | do | |
5613 | IFS=$as_save_IFS | |
5614 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5615 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 | 5617 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
0fbeb4dc | 5618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
5619 | break 2 |
5620 | fi | |
5621 | done | |
0fbeb4dc | 5622 | done |
5c706339 | 5623 | IFS=$as_save_IFS |
b9668ba4 | 5624 | |
5c706339 AK |
5625 | fi |
5626 | fi | |
059850b5 AK |
5627 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5628 | if test -n "$ac_ct_DLLTOOL"; then | |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5630 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5c706339 | 5631 | else |
0fbeb4dc | 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 5633 | $as_echo "no" >&6; } |
b9668ba4 AK |
5634 | fi |
5635 | ||
059850b5 AK |
5636 | if test "x$ac_ct_DLLTOOL" = x; then |
5637 | DLLTOOL="false" | |
5c706339 AK |
5638 | else |
5639 | case $cross_compiling:$ac_tool_warned in | |
5640 | yes:) | |
0fbeb4dc | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 5642 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5c706339 | 5643 | ac_tool_warned=yes ;; |
b9668ba4 | 5644 | esac |
059850b5 | 5645 | DLLTOOL=$ac_ct_DLLTOOL |
5c706339 | 5646 | fi |
b9668ba4 | 5647 | else |
059850b5 | 5648 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
b9668ba4 | 5649 | fi |
b9668ba4 | 5650 | |
059850b5 AK |
5651 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
b9668ba4 | 5657 | |
b9668ba4 | 5658 | |
b9668ba4 | 5659 | |
5c706339 AK |
5660 | |
5661 | ||
059850b5 AK |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5663 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5664 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5665 | $as_echo_n "(cached) " >&6 | |
5666 | else | |
5667 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5668 | ||
5669 | case $host_os in | |
5670 | cygwin* | mingw* | pw32* | cegcc*) | |
c45550e5 AK |
5671 | # two different shell functions defined in ltmain.sh; |
5672 | # decide which one to use based on capabilities of $DLLTOOL | |
059850b5 AK |
5673 | case `$DLLTOOL --help 2>&1` in |
5674 | *--identify-strict*) | |
5675 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5676 | ;; | |
5677 | *) | |
5678 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5679 | ;; | |
5680 | esac | |
5681 | ;; | |
5682 | *) | |
5683 | # fallback: assume linklib IS sharedlib | |
c45550e5 | 5684 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
059850b5 AK |
5685 | ;; |
5686 | esac | |
5687 | ||
5688 | fi | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5690 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5691 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5692 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5693 | ||
5694 | ||
5c706339 AK |
5695 | |
5696 | ||
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5701 | if test -n "$ac_tool_prefix"; then | |
059850b5 AK |
5702 | for ac_prog in ar |
5703 | do | |
5704 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5705 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
0fbeb4dc | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5707 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5708 | if ${ac_cv_prog_AR+:} false; then : |
47dc80f6 | 5709 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5710 | else |
059850b5 AK |
5711 | if test -n "$AR"; then |
5712 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
b9668ba4 AK |
5713 | else |
5714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5715 | for as_dir in $PATH | |
5716 | do | |
5717 | IFS=$as_save_IFS | |
5718 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5719 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 | 5721 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
0fbeb4dc | 5722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
5723 | break 2 |
5724 | fi | |
5725 | done | |
0fbeb4dc | 5726 | done |
b9668ba4 AK |
5727 | IFS=$as_save_IFS |
5728 | ||
5729 | fi | |
5730 | fi | |
059850b5 AK |
5731 | AR=$ac_cv_prog_AR |
5732 | if test -n "$AR"; then | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5734 | $as_echo "$AR" >&6; } | |
b9668ba4 | 5735 | else |
0fbeb4dc | 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 5737 | $as_echo "no" >&6; } |
b9668ba4 AK |
5738 | fi |
5739 | ||
5740 | ||
059850b5 AK |
5741 | test -n "$AR" && break |
5742 | done | |
b9668ba4 | 5743 | fi |
059850b5 AK |
5744 | if test -z "$AR"; then |
5745 | ac_ct_AR=$AR | |
5746 | for ac_prog in ar | |
5747 | do | |
5748 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5749 | set dummy $ac_prog; ac_word=$2 | |
0fbeb4dc | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5751 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5752 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
47dc80f6 | 5753 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5754 | else |
059850b5 AK |
5755 | if test -n "$ac_ct_AR"; then |
5756 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b9668ba4 AK |
5757 | else |
5758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5759 | for as_dir in $PATH | |
5760 | do | |
5761 | IFS=$as_save_IFS | |
5762 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5763 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 | 5765 | ac_cv_prog_ac_ct_AR="$ac_prog" |
0fbeb4dc | 5766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
5767 | break 2 |
5768 | fi | |
5769 | done | |
0fbeb4dc | 5770 | done |
b9668ba4 AK |
5771 | IFS=$as_save_IFS |
5772 | ||
5773 | fi | |
5774 | fi | |
059850b5 AK |
5775 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5776 | if test -n "$ac_ct_AR"; then | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5778 | $as_echo "$ac_ct_AR" >&6; } | |
b9668ba4 | 5779 | else |
0fbeb4dc | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 5781 | $as_echo "no" >&6; } |
b9668ba4 AK |
5782 | fi |
5783 | ||
059850b5 AK |
5784 | |
5785 | test -n "$ac_ct_AR" && break | |
5786 | done | |
5787 | ||
5788 | if test "x$ac_ct_AR" = x; then | |
5789 | AR="false" | |
5790 | else | |
5791 | case $cross_compiling:$ac_tool_warned in | |
5792 | yes:) | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5794 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5795 | ac_tool_warned=yes ;; | |
5796 | esac | |
5797 | AR=$ac_ct_AR | |
5798 | fi | |
5799 | fi | |
5800 | ||
5801 | : ${AR=ar} | |
5802 | : ${AR_FLAGS=cru} | |
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5815 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5816 | if ${lt_cv_ar_at_file+:} false; then : | |
5817 | $as_echo_n "(cached) " >&6 | |
5818 | else | |
5819 | lt_cv_ar_at_file=no | |
5820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5821 | /* end confdefs.h. */ | |
5822 | ||
5823 | int | |
5824 | main () | |
5825 | { | |
5826 | ||
5827 | ; | |
5828 | return 0; | |
5829 | } | |
5830 | _ACEOF | |
5831 | if ac_fn_c_try_compile "$LINENO"; then : | |
5832 | echo conftest.$ac_objext > conftest.lst | |
5833 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5834 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5835 | (eval $lt_ar_try) 2>&5 | |
5836 | ac_status=$? | |
5837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5838 | test $ac_status = 0; } | |
c45550e5 | 5839 | if test 0 -eq "$ac_status"; then |
059850b5 AK |
5840 | # Ensure the archiver fails upon bogus file names. |
5841 | rm -f conftest.$ac_objext libconftest.a | |
5842 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5843 | (eval $lt_ar_try) 2>&5 | |
5844 | ac_status=$? | |
5845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5846 | test $ac_status = 0; } | |
c45550e5 | 5847 | if test 0 -ne "$ac_status"; then |
059850b5 AK |
5848 | lt_cv_ar_at_file=@ |
5849 | fi | |
5850 | fi | |
5851 | rm -f conftest.* libconftest.a | |
5852 | ||
5853 | fi | |
5854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5855 | ||
5856 | fi | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5858 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5859 | ||
c45550e5 | 5860 | if test no = "$lt_cv_ar_at_file"; then |
059850b5 AK |
5861 | archiver_list_spec= |
5862 | else | |
5863 | archiver_list_spec=$lt_cv_ar_at_file | |
5864 | fi | |
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | if test -n "$ac_tool_prefix"; then | |
5873 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5874 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5876 | $as_echo_n "checking for $ac_word... " >&6; } | |
5877 | if ${ac_cv_prog_STRIP+:} false; then : | |
5878 | $as_echo_n "(cached) " >&6 | |
5879 | else | |
5880 | if test -n "$STRIP"; then | |
5881 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5882 | else | |
5883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5884 | for as_dir in $PATH | |
5885 | do | |
5886 | IFS=$as_save_IFS | |
5887 | test -z "$as_dir" && as_dir=. | |
5888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 5889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 AK |
5890 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5892 | break 2 | |
5893 | fi | |
5894 | done | |
5895 | done | |
5896 | IFS=$as_save_IFS | |
5897 | ||
5898 | fi | |
5899 | fi | |
5900 | STRIP=$ac_cv_prog_STRIP | |
5901 | if test -n "$STRIP"; then | |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5903 | $as_echo "$STRIP" >&6; } | |
5904 | else | |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5906 | $as_echo "no" >&6; } | |
5907 | fi | |
5908 | ||
5909 | ||
5910 | fi | |
5911 | if test -z "$ac_cv_prog_STRIP"; then | |
5912 | ac_ct_STRIP=$STRIP | |
5913 | # Extract the first word of "strip", so it can be a program name with args. | |
5914 | set dummy strip; ac_word=$2 | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5916 | $as_echo_n "checking for $ac_word... " >&6; } | |
5917 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5918 | $as_echo_n "(cached) " >&6 | |
5919 | else | |
5920 | if test -n "$ac_ct_STRIP"; then | |
5921 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5922 | else | |
5923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5924 | for as_dir in $PATH | |
5925 | do | |
5926 | IFS=$as_save_IFS | |
5927 | test -z "$as_dir" && as_dir=. | |
5928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 5929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 AK |
5930 | ac_cv_prog_ac_ct_STRIP="strip" |
5931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5932 | break 2 | |
5933 | fi | |
5934 | done | |
5935 | done | |
5936 | IFS=$as_save_IFS | |
5937 | ||
5938 | fi | |
5939 | fi | |
5940 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5941 | if test -n "$ac_ct_STRIP"; then | |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5943 | $as_echo "$ac_ct_STRIP" >&6; } | |
5944 | else | |
5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5946 | $as_echo "no" >&6; } | |
5947 | fi | |
5948 | ||
5949 | if test "x$ac_ct_STRIP" = x; then | |
5950 | STRIP=":" | |
b9668ba4 AK |
5951 | else |
5952 | case $cross_compiling:$ac_tool_warned in | |
5953 | yes:) | |
0fbeb4dc | 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 5955 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
5956 | ac_tool_warned=yes ;; |
5957 | esac | |
5c706339 | 5958 | STRIP=$ac_ct_STRIP |
b9668ba4 | 5959 | fi |
5c706339 AK |
5960 | else |
5961 | STRIP="$ac_cv_prog_STRIP" | |
b9668ba4 AK |
5962 | fi |
5963 | ||
5c706339 | 5964 | test -z "$STRIP" && STRIP=: |
b9668ba4 | 5965 | |
b9668ba4 | 5966 | |
b9668ba4 | 5967 | |
b9668ba4 | 5968 | |
b9668ba4 | 5969 | |
b9668ba4 | 5970 | |
5c706339 AK |
5971 | if test -n "$ac_tool_prefix"; then |
5972 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5973 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
0fbeb4dc | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 5975 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 5976 | if ${ac_cv_prog_RANLIB+:} false; then : |
47dc80f6 | 5977 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 5978 | else |
5c706339 AK |
5979 | if test -n "$RANLIB"; then |
5980 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
b9668ba4 | 5981 | else |
5c706339 AK |
5982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5983 | for as_dir in $PATH | |
5984 | do | |
5985 | IFS=$as_save_IFS | |
5986 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 5987 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 5988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 5989 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
0fbeb4dc | 5990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
5991 | break 2 |
5992 | fi | |
5993 | done | |
0fbeb4dc | 5994 | done |
5c706339 | 5995 | IFS=$as_save_IFS |
b9668ba4 | 5996 | |
5c706339 AK |
5997 | fi |
5998 | fi | |
5999 | RANLIB=$ac_cv_prog_RANLIB | |
6000 | if test -n "$RANLIB"; then | |
0fbeb4dc | 6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
47dc80f6 | 6002 | $as_echo "$RANLIB" >&6; } |
b9668ba4 | 6003 | else |
0fbeb4dc | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 6005 | $as_echo "no" >&6; } |
5c706339 | 6006 | fi |
b9668ba4 | 6007 | |
b9668ba4 | 6008 | |
5c706339 AK |
6009 | fi |
6010 | if test -z "$ac_cv_prog_RANLIB"; then | |
6011 | ac_ct_RANLIB=$RANLIB | |
6012 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6013 | set dummy ranlib; ac_word=$2 | |
0fbeb4dc | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 6015 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 6016 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
47dc80f6 | 6017 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 6018 | else |
5c706339 AK |
6019 | if test -n "$ac_ct_RANLIB"; then |
6020 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6021 | else | |
6022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6023 | for as_dir in $PATH | |
6024 | do | |
6025 | IFS=$as_save_IFS | |
6026 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 6027 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 6028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 6029 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
0fbeb4dc | 6030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
6031 | break 2 |
6032 | fi | |
6033 | done | |
0fbeb4dc | 6034 | done |
5c706339 | 6035 | IFS=$as_save_IFS |
b9668ba4 AK |
6036 | |
6037 | fi | |
b9668ba4 | 6038 | fi |
5c706339 AK |
6039 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6040 | if test -n "$ac_ct_RANLIB"; then | |
0fbeb4dc | 6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
47dc80f6 | 6042 | $as_echo "$ac_ct_RANLIB" >&6; } |
5c706339 | 6043 | else |
0fbeb4dc | 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 6045 | $as_echo "no" >&6; } |
b9668ba4 AK |
6046 | fi |
6047 | ||
5c706339 AK |
6048 | if test "x$ac_ct_RANLIB" = x; then |
6049 | RANLIB=":" | |
b9668ba4 | 6050 | else |
5c706339 AK |
6051 | case $cross_compiling:$ac_tool_warned in |
6052 | yes:) | |
0fbeb4dc | 6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 6054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5c706339 AK |
6055 | ac_tool_warned=yes ;; |
6056 | esac | |
6057 | RANLIB=$ac_ct_RANLIB | |
b9668ba4 AK |
6058 | fi |
6059 | else | |
5c706339 | 6060 | RANLIB="$ac_cv_prog_RANLIB" |
b9668ba4 | 6061 | fi |
b9668ba4 | 6062 | |
5c706339 | 6063 | test -z "$RANLIB" && RANLIB=: |
b9668ba4 | 6064 | |
b9668ba4 | 6065 | |
b9668ba4 | 6066 | |
b9668ba4 | 6067 | |
b9668ba4 AK |
6068 | |
6069 | ||
5c706339 AK |
6070 | # Determine commands to create old-style static archives. |
6071 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6072 | old_postinstall_cmds='chmod 644 $oldlib' | |
6073 | old_postuninstall_cmds= | |
b9668ba4 | 6074 | |
5c706339 AK |
6075 | if test -n "$RANLIB"; then |
6076 | case $host_os in | |
c45550e5 | 6077 | bitrig* | openbsd*) |
059850b5 | 6078 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
5c706339 AK |
6079 | ;; |
6080 | *) | |
059850b5 | 6081 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
5c706339 AK |
6082 | ;; |
6083 | esac | |
059850b5 | 6084 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
b9668ba4 AK |
6085 | fi |
6086 | ||
059850b5 AK |
6087 | case $host_os in |
6088 | darwin*) | |
6089 | lock_old_archive_extraction=yes ;; | |
6090 | *) | |
6091 | lock_old_archive_extraction=no ;; | |
6092 | esac | |
6093 | ||
6094 | ||
6095 | ||
6096 | ||
6097 | ||
6098 | ||
b9668ba4 AK |
6099 | |
6100 | ||
6101 | ||
b9668ba4 | 6102 | |
b9668ba4 | 6103 | |
b9668ba4 | 6104 | |
b9668ba4 | 6105 | |
b9668ba4 | 6106 | |
b9668ba4 | 6107 | |
b9668ba4 | 6108 | |
b9668ba4 | 6109 | |
b9668ba4 | 6110 | |
b9668ba4 | 6111 | |
b9668ba4 | 6112 | |
b9668ba4 | 6113 | |
b9668ba4 | 6114 | |
b9668ba4 | 6115 | |
b9668ba4 | 6116 | |
b9668ba4 | 6117 | |
b9668ba4 AK |
6118 | |
6119 | ||
b9668ba4 | 6120 | |
b9668ba4 AK |
6121 | |
6122 | ||
b9668ba4 | 6123 | |
b9668ba4 AK |
6124 | |
6125 | ||
b9668ba4 | 6126 | |
b9668ba4 | 6127 | |
b9668ba4 | 6128 | |
b9668ba4 | 6129 | |
b9668ba4 | 6130 | |
b9668ba4 | 6131 | |
5c706339 AK |
6132 | # If no C compiler was specified, use CC. |
6133 | LTCC=${LTCC-"$CC"} | |
b9668ba4 | 6134 | |
5c706339 AK |
6135 | # If no C compiler flags were specified, use CFLAGS. |
6136 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
b9668ba4 | 6137 | |
5c706339 AK |
6138 | # Allow CC to be a program name with arguments. |
6139 | compiler=$CC | |
b9668ba4 AK |
6140 | |
6141 | ||
6142 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
0fbeb4dc | 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
47dc80f6 | 6144 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
059850b5 | 6145 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
47dc80f6 | 6146 | $as_echo_n "(cached) " >&6 |
b9668ba4 AK |
6147 | else |
6148 | ||
6149 | # These are sane defaults that work on at least a few old systems. | |
6150 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6151 | ||
6152 | # Character class describing NM global symbol codes. | |
6153 | symcode='[BCDEGRST]' | |
6154 | ||
6155 | # Regexp to match symbols that can be accessed directly from C. | |
6156 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6157 | ||
b9668ba4 AK |
6158 | # Define system-specific variables. |
6159 | case $host_os in | |
6160 | aix*) | |
6161 | symcode='[BCDT]' | |
6162 | ;; | |
47dc80f6 | 6163 | cygwin* | mingw* | pw32* | cegcc*) |
b9668ba4 AK |
6164 | symcode='[ABCDGISTW]' |
6165 | ;; | |
5c706339 | 6166 | hpux*) |
c45550e5 | 6167 | if test ia64 = "$host_cpu"; then |
b9668ba4 AK |
6168 | symcode='[ABCDEGRST]' |
6169 | fi | |
b9668ba4 AK |
6170 | ;; |
6171 | irix* | nonstopux*) | |
6172 | symcode='[BCDEGRST]' | |
6173 | ;; | |
6174 | osf*) | |
6175 | symcode='[BCDEGQRST]' | |
6176 | ;; | |
6177 | solaris*) | |
6178 | symcode='[BDRT]' | |
6179 | ;; | |
6180 | sco3.2v5*) | |
6181 | symcode='[DT]' | |
6182 | ;; | |
6183 | sysv4.2uw2*) | |
6184 | symcode='[DT]' | |
6185 | ;; | |
6186 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6187 | symcode='[ABDT]' | |
6188 | ;; | |
6189 | sysv4) | |
6190 | symcode='[DFNSTU]' | |
6191 | ;; | |
6192 | esac | |
6193 | ||
5c706339 AK |
6194 | # If we're using GNU nm, then use its standard symbol codes. |
6195 | case `$NM -V 2>&1` in | |
6196 | *GNU* | *'with BFD'*) | |
6197 | symcode='[ABCDGIRSTW]' ;; | |
6198 | esac | |
6199 | ||
c45550e5 AK |
6200 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6201 | # Gets list of data symbols to import. | |
6202 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6203 | # Adjust the below global symbol transforms to fixup imported variables. | |
6204 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6205 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6206 | lt_c_name_lib_hook="\ | |
6207 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6208 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6209 | else | |
6210 | # Disable hooks by default. | |
6211 | lt_cv_sys_global_symbol_to_import= | |
6212 | lt_cdecl_hook= | |
6213 | lt_c_name_hook= | |
6214 | lt_c_name_lib_hook= | |
6215 | fi | |
6216 | ||
5c706339 AK |
6217 | # Transform an extracted symbol line into a proper C declaration. |
6218 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6219 | # so use this general approach. | |
c45550e5 AK |
6220 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6221 | $lt_cdecl_hook\ | |
6222 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6223 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
5c706339 AK |
6224 | |
6225 | # Transform an extracted symbol line into symbol name and symbol address | |
c45550e5 AK |
6226 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6227 | $lt_c_name_hook\ | |
6228 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6229 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6230 | ||
6231 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6232 | # symbol address. | |
6233 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6234 | $lt_c_name_lib_hook\ | |
6235 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6236 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6237 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
5c706339 | 6238 | |
b9668ba4 AK |
6239 | # Handle CRLF in mingw tool chain |
6240 | opt_cr= | |
6241 | case $build_os in | |
6242 | mingw*) | |
5c706339 | 6243 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
b9668ba4 AK |
6244 | ;; |
6245 | esac | |
6246 | ||
5c706339 | 6247 | # Try without a prefix underscore, then with it. |
b9668ba4 AK |
6248 | for ac_symprfx in "" "_"; do |
6249 | ||
6250 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6251 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6252 | ||
6253 | # Write the raw and C identifiers. | |
5c706339 | 6254 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
c45550e5 AK |
6255 | # Fake it for dumpbin and say T for any non-static function, |
6256 | # D for any global variable and I for any imported variable. | |
5c706339 AK |
6257 | # Also find C++ and __fastcall symbols from MSVC++, |
6258 | # which start with @ or ?. | |
6259 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6260 | " {last_section=section; section=\$ 3};"\ | |
059850b5 | 6261 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
5c706339 | 6262 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
c45550e5 AK |
6263 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6264 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6265 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
5c706339 AK |
6266 | " \$ 0!~/External *\|/{next};"\ |
6267 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6268 | " {if(hide[section]) next};"\ | |
c45550e5 AK |
6269 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6270 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6271 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6272 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
5c706339 AK |
6273 | " ' prfx=^$ac_symprfx" |
6274 | else | |
6275 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6276 | fi | |
059850b5 | 6277 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
b9668ba4 AK |
6278 | |
6279 | # Check to see that the pipe works correctly. | |
6280 | pipe_works=no | |
6281 | ||
6282 | rm -f conftest* | |
5c706339 | 6283 | cat > conftest.$ac_ext <<_LT_EOF |
b9668ba4 AK |
6284 | #ifdef __cplusplus |
6285 | extern "C" { | |
6286 | #endif | |
6287 | char nm_test_var; | |
5c706339 AK |
6288 | void nm_test_func(void); |
6289 | void nm_test_func(void){} | |
b9668ba4 AK |
6290 | #ifdef __cplusplus |
6291 | } | |
6292 | #endif | |
6293 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5c706339 | 6294 | _LT_EOF |
b9668ba4 | 6295 | |
0fbeb4dc | 6296 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b9668ba4 AK |
6297 | (eval $ac_compile) 2>&5 |
6298 | ac_status=$? | |
0fbeb4dc AK |
6299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6300 | test $ac_status = 0; }; then | |
b9668ba4 AK |
6301 | # Now try to grab the symbols. |
6302 | nlist=conftest.nm | |
059850b5 AK |
6303 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6304 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
b9668ba4 | 6305 | ac_status=$? |
0fbeb4dc AK |
6306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6307 | test $ac_status = 0; } && test -s "$nlist"; then | |
b9668ba4 AK |
6308 | # Try sorting and uniquifying the output. |
6309 | if sort "$nlist" | uniq > "$nlist"T; then | |
6310 | mv -f "$nlist"T "$nlist" | |
6311 | else | |
6312 | rm -f "$nlist"T | |
6313 | fi | |
6314 | ||
6315 | # Make sure that we snagged all the symbols we need. | |
5c706339 AK |
6316 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6317 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6318 | cat <<_LT_EOF > conftest.$ac_ext | |
059850b5 | 6319 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
c45550e5 AK |
6320 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6321 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
059850b5 AK |
6322 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6323 | # define LT_DLSYM_CONST | |
c45550e5 | 6324 | #elif defined __osf__ |
059850b5 AK |
6325 | /* This system does not cope well with relocations in const data. */ |
6326 | # define LT_DLSYM_CONST | |
6327 | #else | |
6328 | # define LT_DLSYM_CONST const | |
6329 | #endif | |
6330 | ||
b9668ba4 AK |
6331 | #ifdef __cplusplus |
6332 | extern "C" { | |
6333 | #endif | |
6334 | ||
5c706339 | 6335 | _LT_EOF |
b9668ba4 | 6336 | # Now generate the symbol file. |
5c706339 | 6337 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
b9668ba4 | 6338 | |
5c706339 | 6339 | cat <<_LT_EOF >> conftest.$ac_ext |
b9668ba4 | 6340 | |
5c706339 | 6341 | /* The mapping between symbol names and symbols. */ |
059850b5 | 6342 | LT_DLSYM_CONST struct { |
b9668ba4 | 6343 | const char *name; |
5c706339 | 6344 | void *address; |
b9668ba4 | 6345 | } |
5c706339 | 6346 | lt__PROGRAM__LTX_preloaded_symbols[] = |
b9668ba4 | 6347 | { |
5c706339 AK |
6348 | { "@PROGRAM@", (void *) 0 }, |
6349 | _LT_EOF | |
c45550e5 | 6350 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
5c706339 AK |
6351 | cat <<\_LT_EOF >> conftest.$ac_ext |
6352 | {0, (void *) 0} | |
b9668ba4 AK |
6353 | }; |
6354 | ||
5c706339 AK |
6355 | /* This works around a problem in FreeBSD linker */ |
6356 | #ifdef FREEBSD_WORKAROUND | |
6357 | static const void *lt_preloaded_setup() { | |
6358 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6359 | } | |
6360 | #endif | |
6361 | ||
b9668ba4 AK |
6362 | #ifdef __cplusplus |
6363 | } | |
6364 | #endif | |
5c706339 | 6365 | _LT_EOF |
b9668ba4 AK |
6366 | # Now try linking the two files. |
6367 | mv conftest.$ac_objext conftstm.$ac_objext | |
059850b5 AK |
6368 | lt_globsym_save_LIBS=$LIBS |
6369 | lt_globsym_save_CFLAGS=$CFLAGS | |
c45550e5 | 6370 | LIBS=conftstm.$ac_objext |
b9668ba4 | 6371 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
0fbeb4dc | 6372 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b9668ba4 AK |
6373 | (eval $ac_link) 2>&5 |
6374 | ac_status=$? | |
0fbeb4dc | 6375 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c45550e5 | 6376 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
b9668ba4 AK |
6377 | pipe_works=yes |
6378 | fi | |
059850b5 AK |
6379 | LIBS=$lt_globsym_save_LIBS |
6380 | CFLAGS=$lt_globsym_save_CFLAGS | |
b9668ba4 AK |
6381 | else |
6382 | echo "cannot find nm_test_func in $nlist" >&5 | |
6383 | fi | |
6384 | else | |
6385 | echo "cannot find nm_test_var in $nlist" >&5 | |
6386 | fi | |
6387 | else | |
6388 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6389 | fi | |
6390 | else | |
6391 | echo "$progname: failed program was:" >&5 | |
6392 | cat conftest.$ac_ext >&5 | |
6393 | fi | |
5c706339 | 6394 | rm -rf conftest* conftst* |
b9668ba4 AK |
6395 | |
6396 | # Do not use the global_symbol_pipe unless it works. | |
c45550e5 | 6397 | if test yes = "$pipe_works"; then |
b9668ba4 AK |
6398 | break |
6399 | else | |
6400 | lt_cv_sys_global_symbol_pipe= | |
6401 | fi | |
6402 | done | |
6403 | ||
6404 | fi | |
6405 | ||
6406 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6407 | lt_cv_sys_global_symbol_to_cdecl= | |
6408 | fi | |
6409 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
0fbeb4dc | 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
47dc80f6 | 6411 | $as_echo "failed" >&6; } |
b9668ba4 | 6412 | else |
0fbeb4dc | 6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
47dc80f6 | 6414 | $as_echo "ok" >&6; } |
b9668ba4 AK |
6415 | fi |
6416 | ||
059850b5 AK |
6417 | # Response file support. |
6418 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6419 | nm_file_list_spec='@' | |
6420 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6421 | nm_file_list_spec='@' | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
b9668ba4 AK |
6433 | |
6434 | ||
6435 | ||
6436 | ||
6437 | ||
5c706339 | 6438 | |
c45550e5 AK |
6439 | |
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
5c706339 AK |
6449 | |
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
059850b5 AK |
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6461 | $as_echo_n "checking for sysroot... " >&6; } | |
6462 | ||
6463 | # Check whether --with-sysroot was given. | |
6464 | if test "${with_sysroot+set}" = set; then : | |
6465 | withval=$with_sysroot; | |
6466 | else | |
6467 | with_sysroot=no | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | lt_sysroot= | |
c45550e5 | 6472 | case $with_sysroot in #( |
059850b5 | 6473 | yes) |
c45550e5 | 6474 | if test yes = "$GCC"; then |
059850b5 AK |
6475 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6476 | fi | |
6477 | ;; #( | |
6478 | /*) | |
6479 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6480 | ;; #( | |
6481 | no|'') | |
6482 | ;; #( | |
6483 | *) | |
c45550e5 AK |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6485 | $as_echo "$with_sysroot" >&6; } | |
059850b5 AK |
6486 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6487 | ;; | |
6488 | esac | |
6489 | ||
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6491 | $as_echo "${lt_sysroot:-no}" >&6; } | |
5c706339 AK |
6492 | |
6493 | ||
6494 | ||
6495 | ||
6496 | ||
c45550e5 AK |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6498 | $as_echo_n "checking for a working dd... " >&6; } | |
6499 | if ${ac_cv_path_lt_DD+:} false; then : | |
6500 | $as_echo_n "(cached) " >&6 | |
6501 | else | |
6502 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6503 | cat conftest.i conftest.i >conftest2.i | |
6504 | : ${lt_DD:=$DD} | |
6505 | if test -z "$lt_DD"; then | |
6506 | ac_path_lt_DD_found=false | |
6507 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6509 | for as_dir in $PATH | |
6510 | do | |
6511 | IFS=$as_save_IFS | |
6512 | test -z "$as_dir" && as_dir=. | |
6513 | for ac_prog in dd; do | |
6514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6515 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6516 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6517 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6518 | cmp -s conftest.i conftest.out \ | |
6519 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6520 | fi | |
6521 | $ac_path_lt_DD_found && break 3 | |
6522 | done | |
6523 | done | |
6524 | done | |
6525 | IFS=$as_save_IFS | |
6526 | if test -z "$ac_cv_path_lt_DD"; then | |
6527 | : | |
6528 | fi | |
6529 | else | |
6530 | ac_cv_path_lt_DD=$lt_DD | |
6531 | fi | |
6532 | ||
6533 | rm -f conftest.i conftest2.i conftest.out | |
6534 | fi | |
6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6536 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6537 | ||
6538 | ||
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6540 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6541 | if ${lt_cv_truncate_bin+:} false; then : | |
6542 | $as_echo_n "(cached) " >&6 | |
6543 | else | |
6544 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6545 | cat conftest.i conftest.i >conftest2.i | |
6546 | lt_cv_truncate_bin= | |
6547 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6548 | cmp -s conftest.i conftest.out \ | |
6549 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6550 | fi | |
6551 | rm -f conftest.i conftest2.i conftest.out | |
6552 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6553 | fi | |
6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6555 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6564 | func_cc_basename () | |
6565 | { | |
6566 | for cc_temp in $*""; do | |
6567 | case $cc_temp in | |
6568 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6569 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6570 | \-*) ;; | |
6571 | *) break;; | |
6572 | esac | |
6573 | done | |
6574 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6575 | } | |
6576 | ||
5c706339 | 6577 | # Check whether --enable-libtool-lock was given. |
0fbeb4dc | 6578 | if test "${enable_libtool_lock+set}" = set; then : |
5c706339 AK |
6579 | enableval=$enable_libtool_lock; |
6580 | fi | |
6581 | ||
c45550e5 | 6582 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
5c706339 AK |
6583 | |
6584 | # Some flags need to be propagated to the compiler or linker for good | |
6585 | # libtool support. | |
6586 | case $host in | |
6587 | ia64-*-hpux*) | |
c45550e5 AK |
6588 | # Find out what ABI is being produced by ac_compile, and set mode |
6589 | # options accordingly. | |
5c706339 | 6590 | echo 'int i;' > conftest.$ac_ext |
0fbeb4dc | 6591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5c706339 AK |
6592 | (eval $ac_compile) 2>&5 |
6593 | ac_status=$? | |
0fbeb4dc AK |
6594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6595 | test $ac_status = 0; }; then | |
5c706339 AK |
6596 | case `/usr/bin/file conftest.$ac_objext` in |
6597 | *ELF-32*) | |
c45550e5 | 6598 | HPUX_IA64_MODE=32 |
5c706339 AK |
6599 | ;; |
6600 | *ELF-64*) | |
c45550e5 | 6601 | HPUX_IA64_MODE=64 |
5c706339 AK |
6602 | ;; |
6603 | esac | |
6604 | fi | |
6605 | rm -rf conftest* | |
6606 | ;; | |
6607 | *-*-irix6*) | |
c45550e5 AK |
6608 | # Find out what ABI is being produced by ac_compile, and set linker |
6609 | # options accordingly. | |
059850b5 | 6610 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
0fbeb4dc | 6611 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5c706339 AK |
6612 | (eval $ac_compile) 2>&5 |
6613 | ac_status=$? | |
0fbeb4dc AK |
6614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6615 | test $ac_status = 0; }; then | |
c45550e5 | 6616 | if test yes = "$lt_cv_prog_gnu_ld"; then |
5c706339 AK |
6617 | case `/usr/bin/file conftest.$ac_objext` in |
6618 | *32-bit*) | |
6619 | LD="${LD-ld} -melf32bsmip" | |
6620 | ;; | |
6621 | *N32*) | |
6622 | LD="${LD-ld} -melf32bmipn32" | |
6623 | ;; | |
6624 | *64-bit*) | |
6625 | LD="${LD-ld} -melf64bmip" | |
6626 | ;; | |
6627 | esac | |
6628 | else | |
6629 | case `/usr/bin/file conftest.$ac_objext` in | |
6630 | *32-bit*) | |
6631 | LD="${LD-ld} -32" | |
6632 | ;; | |
6633 | *N32*) | |
6634 | LD="${LD-ld} -n32" | |
6635 | ;; | |
6636 | *64-bit*) | |
6637 | LD="${LD-ld} -64" | |
6638 | ;; | |
6639 | esac | |
6640 | fi | |
b9668ba4 | 6641 | fi |
5c706339 | 6642 | rm -rf conftest* |
b9668ba4 | 6643 | ;; |
b9668ba4 | 6644 | |
c45550e5 AK |
6645 | mips64*-*linux*) |
6646 | # Find out what ABI is being produced by ac_compile, and set linker | |
6647 | # options accordingly. | |
6648 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6649 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6650 | (eval $ac_compile) 2>&5 | |
6651 | ac_status=$? | |
6652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6653 | test $ac_status = 0; }; then | |
6654 | emul=elf | |
6655 | case `/usr/bin/file conftest.$ac_objext` in | |
6656 | *32-bit*) | |
6657 | emul="${emul}32" | |
6658 | ;; | |
6659 | *64-bit*) | |
6660 | emul="${emul}64" | |
6661 | ;; | |
6662 | esac | |
6663 | case `/usr/bin/file conftest.$ac_objext` in | |
6664 | *MSB*) | |
6665 | emul="${emul}btsmip" | |
6666 | ;; | |
6667 | *LSB*) | |
6668 | emul="${emul}ltsmip" | |
6669 | ;; | |
6670 | esac | |
6671 | case `/usr/bin/file conftest.$ac_objext` in | |
6672 | *N32*) | |
6673 | emul="${emul}n32" | |
6674 | ;; | |
6675 | esac | |
6676 | LD="${LD-ld} -m $emul" | |
6677 | fi | |
6678 | rm -rf conftest* | |
6679 | ;; | |
6680 | ||
0044e680 | 6681 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
5c706339 | 6682 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
c45550e5 AK |
6683 | # Find out what ABI is being produced by ac_compile, and set linker |
6684 | # options accordingly. Note that the listed cases only cover the | |
6685 | # situations where additional linker options are needed (such as when | |
6686 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6687 | # vice versa); the common cases where no linker options are needed do | |
6688 | # not appear in the list. | |
5c706339 | 6689 | echo 'int i;' > conftest.$ac_ext |
0fbeb4dc | 6690 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5c706339 AK |
6691 | (eval $ac_compile) 2>&5 |
6692 | ac_status=$? | |
0fbeb4dc AK |
6693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6694 | test $ac_status = 0; }; then | |
5c706339 AK |
6695 | case `/usr/bin/file conftest.o` in |
6696 | *32-bit*) | |
6697 | case $host in | |
6698 | x86_64-*kfreebsd*-gnu) | |
6699 | LD="${LD-ld} -m elf_i386_fbsd" | |
6700 | ;; | |
6701 | x86_64-*linux*) | |
0044e680 AK |
6702 | case `/usr/bin/file conftest.o` in |
6703 | *x86-64*) | |
6704 | LD="${LD-ld} -m elf32_x86_64" | |
6705 | ;; | |
6706 | *) | |
6707 | LD="${LD-ld} -m elf_i386" | |
6708 | ;; | |
6709 | esac | |
6710 | ;; | |
c45550e5 | 6711 | powerpc64le-*linux*) |
0044e680 | 6712 | LD="${LD-ld} -m elf32lppclinux" |
5c706339 | 6713 | ;; |
c45550e5 | 6714 | powerpc64-*linux*) |
5c706339 AK |
6715 | LD="${LD-ld} -m elf32ppclinux" |
6716 | ;; | |
6717 | s390x-*linux*) | |
6718 | LD="${LD-ld} -m elf_s390" | |
6719 | ;; | |
6720 | sparc64-*linux*) | |
6721 | LD="${LD-ld} -m elf32_sparc" | |
6722 | ;; | |
6723 | esac | |
6724 | ;; | |
6725 | *64-bit*) | |
6726 | case $host in | |
6727 | x86_64-*kfreebsd*-gnu) | |
6728 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6729 | ;; | |
6730 | x86_64-*linux*) | |
6731 | LD="${LD-ld} -m elf_x86_64" | |
6732 | ;; | |
c45550e5 | 6733 | powerpcle-*linux*) |
0044e680 AK |
6734 | LD="${LD-ld} -m elf64lppc" |
6735 | ;; | |
c45550e5 | 6736 | powerpc-*linux*) |
5c706339 AK |
6737 | LD="${LD-ld} -m elf64ppc" |
6738 | ;; | |
6739 | s390*-*linux*|s390*-*tpf*) | |
6740 | LD="${LD-ld} -m elf64_s390" | |
6741 | ;; | |
6742 | sparc*-*linux*) | |
6743 | LD="${LD-ld} -m elf64_sparc" | |
6744 | ;; | |
6745 | esac | |
6746 | ;; | |
6747 | esac | |
6748 | fi | |
6749 | rm -rf conftest* | |
6750 | ;; | |
b9668ba4 | 6751 | |
5c706339 AK |
6752 | *-*-sco3.2v5*) |
6753 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
c45550e5 | 6754 | SAVE_CFLAGS=$CFLAGS |
5c706339 | 6755 | CFLAGS="$CFLAGS -belf" |
0fbeb4dc | 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
47dc80f6 | 6757 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
059850b5 | 6758 | if ${lt_cv_cc_needs_belf+:} false; then : |
47dc80f6 | 6759 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
6760 | else |
6761 | ac_ext=c | |
6762 | ac_cpp='$CPP $CPPFLAGS' | |
6763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b9668ba4 | 6766 | |
0fbeb4dc | 6767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 6768 | /* end confdefs.h. */ |
b9668ba4 | 6769 | |
5c706339 AK |
6770 | int |
6771 | main () | |
6772 | { | |
b9668ba4 | 6773 | |
5c706339 AK |
6774 | ; |
6775 | return 0; | |
6776 | } | |
6777 | _ACEOF | |
0fbeb4dc | 6778 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 AK |
6779 | lt_cv_cc_needs_belf=yes |
6780 | else | |
0fbeb4dc | 6781 | lt_cv_cc_needs_belf=no |
5c706339 | 6782 | fi |
0fbeb4dc AK |
6783 | rm -f core conftest.err conftest.$ac_objext \ |
6784 | conftest$ac_exeext conftest.$ac_ext | |
5c706339 AK |
6785 | ac_ext=c |
6786 | ac_cpp='$CPP $CPPFLAGS' | |
6787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b9668ba4 | 6790 | |
5c706339 | 6791 | fi |
0fbeb4dc | 6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
47dc80f6 | 6793 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
c45550e5 | 6794 | if test yes != "$lt_cv_cc_needs_belf"; then |
5c706339 | 6795 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
c45550e5 | 6796 | CFLAGS=$SAVE_CFLAGS |
5c706339 AK |
6797 | fi |
6798 | ;; | |
059850b5 | 6799 | *-*solaris*) |
c45550e5 AK |
6800 | # Find out what ABI is being produced by ac_compile, and set linker |
6801 | # options accordingly. | |
5c706339 | 6802 | echo 'int i;' > conftest.$ac_ext |
0fbeb4dc | 6803 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5c706339 AK |
6804 | (eval $ac_compile) 2>&5 |
6805 | ac_status=$? | |
0fbeb4dc AK |
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6807 | test $ac_status = 0; }; then | |
5c706339 AK |
6808 | case `/usr/bin/file conftest.o` in |
6809 | *64-bit*) | |
6810 | case $lt_cv_prog_gnu_ld in | |
059850b5 AK |
6811 | yes*) |
6812 | case $host in | |
c45550e5 | 6813 | i?86-*-solaris*|x86_64-*-solaris*) |
059850b5 AK |
6814 | LD="${LD-ld} -m elf_x86_64" |
6815 | ;; | |
6816 | sparc*-*-solaris*) | |
6817 | LD="${LD-ld} -m elf64_sparc" | |
6818 | ;; | |
6819 | esac | |
6820 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6821 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
c45550e5 | 6822 | LD=${LD-ld}_sol2 |
059850b5 AK |
6823 | fi |
6824 | ;; | |
5c706339 AK |
6825 | *) |
6826 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6827 | LD="${LD-ld} -64" | |
6828 | fi | |
6829 | ;; | |
6830 | esac | |
6831 | ;; | |
6832 | esac | |
6833 | fi | |
6834 | rm -rf conftest* | |
6835 | ;; | |
6836 | esac | |
6837 | ||
c45550e5 | 6838 | need_locks=$enable_libtool_lock |
5c706339 | 6839 | |
059850b5 AK |
6840 | if test -n "$ac_tool_prefix"; then |
6841 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6842 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6844 | $as_echo_n "checking for $ac_word... " >&6; } | |
6845 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6846 | $as_echo_n "(cached) " >&6 | |
6847 | else | |
6848 | if test -n "$MANIFEST_TOOL"; then | |
6849 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6850 | else | |
6851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6852 | for as_dir in $PATH | |
6853 | do | |
6854 | IFS=$as_save_IFS | |
6855 | test -z "$as_dir" && as_dir=. | |
6856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 6857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 AK |
6858 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
6859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6860 | break 2 | |
6861 | fi | |
6862 | done | |
6863 | done | |
6864 | IFS=$as_save_IFS | |
6865 | ||
6866 | fi | |
6867 | fi | |
6868 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6869 | if test -n "$MANIFEST_TOOL"; then | |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6871 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6872 | else | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6874 | $as_echo "no" >&6; } | |
6875 | fi | |
6876 | ||
6877 | ||
6878 | fi | |
6879 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6880 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6881 | # Extract the first word of "mt", so it can be a program name with args. | |
6882 | set dummy mt; ac_word=$2 | |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6884 | $as_echo_n "checking for $ac_word... " >&6; } | |
6885 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6886 | $as_echo_n "(cached) " >&6 | |
6887 | else | |
6888 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6889 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6890 | else | |
6891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6892 | for as_dir in $PATH | |
6893 | do | |
6894 | IFS=$as_save_IFS | |
6895 | test -z "$as_dir" && as_dir=. | |
6896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
0044e680 | 6897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
059850b5 AK |
6898 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
6899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6900 | break 2 | |
6901 | fi | |
6902 | done | |
6903 | done | |
6904 | IFS=$as_save_IFS | |
6905 | ||
6906 | fi | |
6907 | fi | |
6908 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6909 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6911 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6912 | else | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6914 | $as_echo "no" >&6; } | |
6915 | fi | |
6916 | ||
6917 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6918 | MANIFEST_TOOL=":" | |
6919 | else | |
6920 | case $cross_compiling:$ac_tool_warned in | |
6921 | yes:) | |
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6923 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6924 | ac_tool_warned=yes ;; | |
6925 | esac | |
6926 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6927 | fi | |
6928 | else | |
6929 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6930 | fi | |
6931 | ||
6932 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6934 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6935 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6936 | $as_echo_n "(cached) " >&6 | |
6937 | else | |
6938 | lt_cv_path_mainfest_tool=no | |
6939 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6940 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6941 | cat conftest.err >&5 | |
6942 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6943 | lt_cv_path_mainfest_tool=yes | |
6944 | fi | |
6945 | rm -f conftest* | |
6946 | fi | |
6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6948 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
c45550e5 | 6949 | if test yes != "$lt_cv_path_mainfest_tool"; then |
059850b5 AK |
6950 | MANIFEST_TOOL=: |
6951 | fi | |
6952 | ||
6953 | ||
6954 | ||
6955 | ||
6956 | ||
5c706339 AK |
6957 | |
6958 | case $host_os in | |
6959 | rhapsody* | darwin*) | |
6960 | if test -n "$ac_tool_prefix"; then | |
6961 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6962 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
0fbeb4dc | 6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 6964 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 6965 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
47dc80f6 | 6966 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 6967 | else |
5c706339 AK |
6968 | if test -n "$DSYMUTIL"; then |
6969 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
b9668ba4 AK |
6970 | else |
6971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6972 | for as_dir in $PATH | |
6973 | do | |
6974 | IFS=$as_save_IFS | |
6975 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 6976 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 6977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 6978 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
0fbeb4dc | 6979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
6980 | break 2 |
6981 | fi | |
6982 | done | |
0fbeb4dc | 6983 | done |
b9668ba4 AK |
6984 | IFS=$as_save_IFS |
6985 | ||
6986 | fi | |
6987 | fi | |
5c706339 AK |
6988 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6989 | if test -n "$DSYMUTIL"; then | |
0fbeb4dc | 6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
47dc80f6 | 6991 | $as_echo "$DSYMUTIL" >&6; } |
b9668ba4 | 6992 | else |
0fbeb4dc | 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 6994 | $as_echo "no" >&6; } |
b9668ba4 AK |
6995 | fi |
6996 | ||
6997 | ||
6998 | fi | |
5c706339 AK |
6999 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7000 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7001 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7002 | set dummy dsymutil; ac_word=$2 | |
0fbeb4dc | 7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7004 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7005 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
47dc80f6 | 7006 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7007 | else |
5c706339 AK |
7008 | if test -n "$ac_ct_DSYMUTIL"; then |
7009 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
b9668ba4 AK |
7010 | else |
7011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7012 | for as_dir in $PATH | |
7013 | do | |
7014 | IFS=$as_save_IFS | |
7015 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7016 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7018 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
0fbeb4dc | 7019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
7020 | break 2 |
7021 | fi | |
7022 | done | |
0fbeb4dc | 7023 | done |
b9668ba4 AK |
7024 | IFS=$as_save_IFS |
7025 | ||
7026 | fi | |
7027 | fi | |
5c706339 AK |
7028 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7029 | if test -n "$ac_ct_DSYMUTIL"; then | |
0fbeb4dc | 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
47dc80f6 | 7031 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
b9668ba4 | 7032 | else |
0fbeb4dc | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7034 | $as_echo "no" >&6; } |
b9668ba4 AK |
7035 | fi |
7036 | ||
5c706339 AK |
7037 | if test "x$ac_ct_DSYMUTIL" = x; then |
7038 | DSYMUTIL=":" | |
b9668ba4 AK |
7039 | else |
7040 | case $cross_compiling:$ac_tool_warned in | |
7041 | yes:) | |
0fbeb4dc | 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 7043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
7044 | ac_tool_warned=yes ;; |
7045 | esac | |
5c706339 | 7046 | DSYMUTIL=$ac_ct_DSYMUTIL |
b9668ba4 AK |
7047 | fi |
7048 | else | |
5c706339 | 7049 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
b9668ba4 AK |
7050 | fi |
7051 | ||
5c706339 AK |
7052 | if test -n "$ac_tool_prefix"; then |
7053 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7054 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
0fbeb4dc | 7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7056 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7057 | if ${ac_cv_prog_NMEDIT+:} false; then : |
47dc80f6 | 7058 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7059 | else |
5c706339 AK |
7060 | if test -n "$NMEDIT"; then |
7061 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
b9668ba4 AK |
7062 | else |
7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7064 | for as_dir in $PATH | |
7065 | do | |
7066 | IFS=$as_save_IFS | |
7067 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7068 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7070 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
0fbeb4dc | 7071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
7072 | break 2 |
7073 | fi | |
7074 | done | |
0fbeb4dc | 7075 | done |
b9668ba4 AK |
7076 | IFS=$as_save_IFS |
7077 | ||
7078 | fi | |
7079 | fi | |
5c706339 AK |
7080 | NMEDIT=$ac_cv_prog_NMEDIT |
7081 | if test -n "$NMEDIT"; then | |
0fbeb4dc | 7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
47dc80f6 | 7083 | $as_echo "$NMEDIT" >&6; } |
b9668ba4 | 7084 | else |
0fbeb4dc | 7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7086 | $as_echo "no" >&6; } |
b9668ba4 AK |
7087 | fi |
7088 | ||
7089 | ||
7090 | fi | |
5c706339 AK |
7091 | if test -z "$ac_cv_prog_NMEDIT"; then |
7092 | ac_ct_NMEDIT=$NMEDIT | |
7093 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7094 | set dummy nmedit; ac_word=$2 | |
0fbeb4dc | 7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7096 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7097 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
47dc80f6 | 7098 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7099 | else |
5c706339 AK |
7100 | if test -n "$ac_ct_NMEDIT"; then |
7101 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
b9668ba4 AK |
7102 | else |
7103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7104 | for as_dir in $PATH | |
7105 | do | |
7106 | IFS=$as_save_IFS | |
7107 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7108 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7110 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
0fbeb4dc | 7111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
7112 | break 2 |
7113 | fi | |
7114 | done | |
0fbeb4dc | 7115 | done |
b9668ba4 AK |
7116 | IFS=$as_save_IFS |
7117 | ||
7118 | fi | |
7119 | fi | |
5c706339 AK |
7120 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7121 | if test -n "$ac_ct_NMEDIT"; then | |
0fbeb4dc | 7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
47dc80f6 | 7123 | $as_echo "$ac_ct_NMEDIT" >&6; } |
b9668ba4 | 7124 | else |
0fbeb4dc | 7125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7126 | $as_echo "no" >&6; } |
b9668ba4 AK |
7127 | fi |
7128 | ||
5c706339 AK |
7129 | if test "x$ac_ct_NMEDIT" = x; then |
7130 | NMEDIT=":" | |
b9668ba4 AK |
7131 | else |
7132 | case $cross_compiling:$ac_tool_warned in | |
7133 | yes:) | |
0fbeb4dc | 7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 7135 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
7136 | ac_tool_warned=yes ;; |
7137 | esac | |
5c706339 | 7138 | NMEDIT=$ac_ct_NMEDIT |
b9668ba4 AK |
7139 | fi |
7140 | else | |
5c706339 | 7141 | NMEDIT="$ac_cv_prog_NMEDIT" |
b9668ba4 AK |
7142 | fi |
7143 | ||
5c706339 AK |
7144 | if test -n "$ac_tool_prefix"; then |
7145 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7146 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
0fbeb4dc | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7148 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7149 | if ${ac_cv_prog_LIPO+:} false; then : |
47dc80f6 | 7150 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7151 | else |
5c706339 AK |
7152 | if test -n "$LIPO"; then |
7153 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
b9668ba4 AK |
7154 | else |
7155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7156 | for as_dir in $PATH | |
7157 | do | |
7158 | IFS=$as_save_IFS | |
7159 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7160 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7162 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
0fbeb4dc | 7163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
7164 | break 2 |
7165 | fi | |
7166 | done | |
0fbeb4dc | 7167 | done |
b9668ba4 AK |
7168 | IFS=$as_save_IFS |
7169 | ||
7170 | fi | |
7171 | fi | |
5c706339 AK |
7172 | LIPO=$ac_cv_prog_LIPO |
7173 | if test -n "$LIPO"; then | |
0fbeb4dc | 7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
47dc80f6 | 7175 | $as_echo "$LIPO" >&6; } |
b9668ba4 | 7176 | else |
0fbeb4dc | 7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7178 | $as_echo "no" >&6; } |
b9668ba4 AK |
7179 | fi |
7180 | ||
7181 | ||
7182 | fi | |
5c706339 AK |
7183 | if test -z "$ac_cv_prog_LIPO"; then |
7184 | ac_ct_LIPO=$LIPO | |
7185 | # Extract the first word of "lipo", so it can be a program name with args. | |
7186 | set dummy lipo; ac_word=$2 | |
0fbeb4dc | 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7188 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7189 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
47dc80f6 | 7190 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7191 | else |
5c706339 AK |
7192 | if test -n "$ac_ct_LIPO"; then |
7193 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
b9668ba4 AK |
7194 | else |
7195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7196 | for as_dir in $PATH | |
7197 | do | |
7198 | IFS=$as_save_IFS | |
7199 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7200 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7202 | ac_cv_prog_ac_ct_LIPO="lipo" |
0fbeb4dc | 7203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b9668ba4 AK |
7204 | break 2 |
7205 | fi | |
7206 | done | |
0fbeb4dc | 7207 | done |
b9668ba4 AK |
7208 | IFS=$as_save_IFS |
7209 | ||
7210 | fi | |
7211 | fi | |
5c706339 AK |
7212 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7213 | if test -n "$ac_ct_LIPO"; then | |
0fbeb4dc | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
47dc80f6 | 7215 | $as_echo "$ac_ct_LIPO" >&6; } |
b9668ba4 | 7216 | else |
0fbeb4dc | 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7218 | $as_echo "no" >&6; } |
b9668ba4 AK |
7219 | fi |
7220 | ||
5c706339 AK |
7221 | if test "x$ac_ct_LIPO" = x; then |
7222 | LIPO=":" | |
b9668ba4 AK |
7223 | else |
7224 | case $cross_compiling:$ac_tool_warned in | |
7225 | yes:) | |
0fbeb4dc | 7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 7227 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b9668ba4 AK |
7228 | ac_tool_warned=yes ;; |
7229 | esac | |
5c706339 | 7230 | LIPO=$ac_ct_LIPO |
b9668ba4 AK |
7231 | fi |
7232 | else | |
5c706339 | 7233 | LIPO="$ac_cv_prog_LIPO" |
b9668ba4 AK |
7234 | fi |
7235 | ||
5c706339 AK |
7236 | if test -n "$ac_tool_prefix"; then |
7237 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7238 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
0fbeb4dc | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7240 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7241 | if ${ac_cv_prog_OTOOL+:} false; then : |
47dc80f6 | 7242 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7243 | else |
5c706339 AK |
7244 | if test -n "$OTOOL"; then |
7245 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7246 | else | |
7247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7248 | for as_dir in $PATH | |
7249 | do | |
7250 | IFS=$as_save_IFS | |
7251 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7252 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7254 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
0fbeb4dc | 7255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
7256 | break 2 |
7257 | fi | |
7258 | done | |
0fbeb4dc | 7259 | done |
5c706339 | 7260 | IFS=$as_save_IFS |
b9668ba4 | 7261 | |
b9668ba4 | 7262 | fi |
5c706339 AK |
7263 | fi |
7264 | OTOOL=$ac_cv_prog_OTOOL | |
7265 | if test -n "$OTOOL"; then | |
0fbeb4dc | 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
47dc80f6 | 7267 | $as_echo "$OTOOL" >&6; } |
b9668ba4 | 7268 | else |
0fbeb4dc | 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7270 | $as_echo "no" >&6; } |
b9668ba4 AK |
7271 | fi |
7272 | ||
5c706339 AK |
7273 | |
7274 | fi | |
7275 | if test -z "$ac_cv_prog_OTOOL"; then | |
7276 | ac_ct_OTOOL=$OTOOL | |
7277 | # Extract the first word of "otool", so it can be a program name with args. | |
7278 | set dummy otool; ac_word=$2 | |
0fbeb4dc | 7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7280 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7281 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
47dc80f6 | 7282 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 7283 | else |
5c706339 AK |
7284 | if test -n "$ac_ct_OTOOL"; then |
7285 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7286 | else | |
7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7288 | for as_dir in $PATH | |
7289 | do | |
7290 | IFS=$as_save_IFS | |
7291 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7294 | ac_cv_prog_ac_ct_OTOOL="otool" |
0fbeb4dc | 7295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
7296 | break 2 |
7297 | fi | |
7298 | done | |
0fbeb4dc | 7299 | done |
5c706339 | 7300 | IFS=$as_save_IFS |
b9668ba4 | 7301 | |
b9668ba4 | 7302 | fi |
5c706339 AK |
7303 | fi |
7304 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7305 | if test -n "$ac_ct_OTOOL"; then | |
0fbeb4dc | 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
47dc80f6 | 7307 | $as_echo "$ac_ct_OTOOL" >&6; } |
b9668ba4 | 7308 | else |
0fbeb4dc | 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7310 | $as_echo "no" >&6; } |
b9668ba4 AK |
7311 | fi |
7312 | ||
5c706339 AK |
7313 | if test "x$ac_ct_OTOOL" = x; then |
7314 | OTOOL=":" | |
b9668ba4 | 7315 | else |
5c706339 AK |
7316 | case $cross_compiling:$ac_tool_warned in |
7317 | yes:) | |
0fbeb4dc | 7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 7319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5c706339 | 7320 | ac_tool_warned=yes ;; |
b9668ba4 | 7321 | esac |
5c706339 AK |
7322 | OTOOL=$ac_ct_OTOOL |
7323 | fi | |
7324 | else | |
7325 | OTOOL="$ac_cv_prog_OTOOL" | |
b9668ba4 AK |
7326 | fi |
7327 | ||
5c706339 AK |
7328 | if test -n "$ac_tool_prefix"; then |
7329 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7330 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
0fbeb4dc | 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7332 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7333 | if ${ac_cv_prog_OTOOL64+:} false; then : |
47dc80f6 | 7334 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
7335 | else |
7336 | if test -n "$OTOOL64"; then | |
7337 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7338 | else | |
7339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7340 | for as_dir in $PATH | |
7341 | do | |
7342 | IFS=$as_save_IFS | |
7343 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7344 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7346 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
0fbeb4dc | 7347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
7348 | break 2 |
7349 | fi | |
7350 | done | |
0fbeb4dc | 7351 | done |
5c706339 | 7352 | IFS=$as_save_IFS |
b9668ba4 | 7353 | |
5c706339 AK |
7354 | fi |
7355 | fi | |
7356 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7357 | if test -n "$OTOOL64"; then | |
0fbeb4dc | 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
47dc80f6 | 7359 | $as_echo "$OTOOL64" >&6; } |
b9668ba4 | 7360 | else |
0fbeb4dc | 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7362 | $as_echo "no" >&6; } |
b9668ba4 AK |
7363 | fi |
7364 | ||
b9668ba4 | 7365 | |
5c706339 AK |
7366 | fi |
7367 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7368 | ac_ct_OTOOL64=$OTOOL64 | |
7369 | # Extract the first word of "otool64", so it can be a program name with args. | |
7370 | set dummy otool64; ac_word=$2 | |
0fbeb4dc | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 7372 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 7373 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
47dc80f6 | 7374 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
7375 | else |
7376 | if test -n "$ac_ct_OTOOL64"; then | |
7377 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7378 | else | |
7379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7380 | for as_dir in $PATH | |
7381 | do | |
7382 | IFS=$as_save_IFS | |
7383 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 7384 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 7385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 7386 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
0fbeb4dc | 7387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
7388 | break 2 |
7389 | fi | |
7390 | done | |
0fbeb4dc | 7391 | done |
5c706339 | 7392 | IFS=$as_save_IFS |
b9668ba4 | 7393 | |
5c706339 AK |
7394 | fi |
7395 | fi | |
7396 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7397 | if test -n "$ac_ct_OTOOL64"; then | |
0fbeb4dc | 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
47dc80f6 | 7399 | $as_echo "$ac_ct_OTOOL64" >&6; } |
5c706339 | 7400 | else |
0fbeb4dc | 7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 7402 | $as_echo "no" >&6; } |
5c706339 | 7403 | fi |
b9668ba4 | 7404 | |
5c706339 AK |
7405 | if test "x$ac_ct_OTOOL64" = x; then |
7406 | OTOOL64=":" | |
7407 | else | |
7408 | case $cross_compiling:$ac_tool_warned in | |
7409 | yes:) | |
0fbeb4dc | 7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
47dc80f6 | 7411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5c706339 AK |
7412 | ac_tool_warned=yes ;; |
7413 | esac | |
7414 | OTOOL64=$ac_ct_OTOOL64 | |
7415 | fi | |
7416 | else | |
7417 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7418 | fi | |
b9668ba4 | 7419 | |
b9668ba4 | 7420 | |
b9668ba4 | 7421 | |
b9668ba4 AK |
7422 | |
7423 | ||
b9668ba4 | 7424 | |
b9668ba4 | 7425 | |
b9668ba4 AK |
7426 | |
7427 | ||
b9668ba4 | 7428 | |
b9668ba4 AK |
7429 | |
7430 | ||
7431 | ||
b9668ba4 | 7432 | |
b9668ba4 AK |
7433 | |
7434 | ||
b9668ba4 | 7435 | |
b9668ba4 | 7436 | |
b9668ba4 | 7437 | |
b9668ba4 | 7438 | |
b9668ba4 | 7439 | |
b9668ba4 | 7440 | |
b9668ba4 | 7441 | |
b9668ba4 | 7442 | |
b9668ba4 | 7443 | |
b9668ba4 | 7444 | |
b9668ba4 | 7445 | |
0fbeb4dc | 7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
47dc80f6 | 7447 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
059850b5 | 7448 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
47dc80f6 | 7449 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
7450 | else |
7451 | lt_cv_apple_cc_single_mod=no | |
c45550e5 | 7452 | if test -z "$LT_MULTI_MODULE"; then |
5c706339 AK |
7453 | # By default we will add the -single_module flag. You can override |
7454 | # by either setting the environment variable LT_MULTI_MODULE | |
7455 | # non-empty at configure time, or by adding -multi_module to the | |
7456 | # link flags. | |
7457 | rm -rf libconftest.dylib* | |
7458 | echo "int foo(void){return 1;}" > conftest.c | |
7459 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7460 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7461 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7462 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7463 | _lt_result=$? | |
059850b5 AK |
7464 | # If there is a non-empty error log, and "single_module" |
7465 | # appears in it, assume the flag caused a linker warning | |
7466 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7467 | cat conftest.err >&5 | |
7468 | # Otherwise, if the output was created with a 0 exit code from | |
7469 | # the compiler, it worked. | |
c45550e5 | 7470 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
5c706339 AK |
7471 | lt_cv_apple_cc_single_mod=yes |
7472 | else | |
7473 | cat conftest.err >&5 | |
7474 | fi | |
7475 | rm -rf libconftest.dylib* | |
7476 | rm -f conftest.* | |
7477 | fi | |
7478 | fi | |
0fbeb4dc | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
47dc80f6 | 7480 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
059850b5 | 7481 | |
0fbeb4dc | 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
47dc80f6 | 7483 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
059850b5 | 7484 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
47dc80f6 | 7485 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
7486 | else |
7487 | lt_cv_ld_exported_symbols_list=no | |
7488 | save_LDFLAGS=$LDFLAGS | |
7489 | echo "_main" > conftest.sym | |
7490 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
0fbeb4dc | 7491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 7492 | /* end confdefs.h. */ |
b9668ba4 | 7493 | |
5c706339 AK |
7494 | int |
7495 | main () | |
7496 | { | |
b9668ba4 | 7497 | |
5c706339 AK |
7498 | ; |
7499 | return 0; | |
7500 | } | |
7501 | _ACEOF | |
0fbeb4dc | 7502 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 AK |
7503 | lt_cv_ld_exported_symbols_list=yes |
7504 | else | |
0fbeb4dc | 7505 | lt_cv_ld_exported_symbols_list=no |
5c706339 | 7506 | fi |
0fbeb4dc AK |
7507 | rm -f core conftest.err conftest.$ac_objext \ |
7508 | conftest$ac_exeext conftest.$ac_ext | |
c45550e5 | 7509 | LDFLAGS=$save_LDFLAGS |
b9668ba4 | 7510 | |
5c706339 | 7511 | fi |
0fbeb4dc | 7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
47dc80f6 | 7513 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
059850b5 AK |
7514 | |
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7516 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7517 | if ${lt_cv_ld_force_load+:} false; then : | |
7518 | $as_echo_n "(cached) " >&6 | |
7519 | else | |
7520 | lt_cv_ld_force_load=no | |
7521 | cat > conftest.c << _LT_EOF | |
7522 | int forced_loaded() { return 2;} | |
7523 | _LT_EOF | |
7524 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7525 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7526 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7527 | $AR cru libconftest.a conftest.o 2>&5 | |
7528 | echo "$RANLIB libconftest.a" >&5 | |
7529 | $RANLIB libconftest.a 2>&5 | |
7530 | cat > conftest.c << _LT_EOF | |
7531 | int main() { return 0;} | |
7532 | _LT_EOF | |
7533 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7534 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7535 | _lt_result=$? | |
7536 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7537 | cat conftest.err >&5 | |
c45550e5 | 7538 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
059850b5 AK |
7539 | lt_cv_ld_force_load=yes |
7540 | else | |
7541 | cat conftest.err >&5 | |
7542 | fi | |
7543 | rm -f conftest.err libconftest.a conftest conftest.c | |
7544 | rm -rf conftest.dSYM | |
7545 | ||
7546 | fi | |
7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7548 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b9668ba4 | 7549 | case $host_os in |
5c706339 | 7550 | rhapsody* | darwin1.[012]) |
c45550e5 | 7551 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
5c706339 | 7552 | darwin1.*) |
c45550e5 | 7553 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
5c706339 AK |
7554 | darwin*) # darwin 5.x on |
7555 | # if running on 10.5 or later, the deployment target defaults | |
7556 | # to the OS version, if on x86, and 10.4, the deployment | |
7557 | # target defaults to 10.4. Don't you love it? | |
7558 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7559 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
c45550e5 AK |
7560 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7561 | 10.[012][,.]*) | |
7562 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
5c706339 | 7563 | 10.*) |
c45550e5 | 7564 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
b9668ba4 | 7565 | esac |
5c706339 AK |
7566 | ;; |
7567 | esac | |
c45550e5 | 7568 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
5c706339 AK |
7569 | _lt_dar_single_mod='$single_module' |
7570 | fi | |
c45550e5 AK |
7571 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7572 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
5c706339 | 7573 | else |
c45550e5 | 7574 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
5c706339 | 7575 | fi |
c45550e5 | 7576 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
5c706339 AK |
7577 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7578 | else | |
7579 | _lt_dsymutil= | |
7580 | fi | |
7581 | ;; | |
7582 | esac | |
b9668ba4 | 7583 | |
c45550e5 AK |
7584 | # func_munge_path_list VARIABLE PATH |
7585 | # ----------------------------------- | |
7586 | # VARIABLE is name of variable containing _space_ separated list of | |
7587 | # directories to be munged by the contents of PATH, which is string | |
7588 | # having a format: | |
7589 | # "DIR[:DIR]:" | |
7590 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7591 | # ":DIR[:DIR]" | |
7592 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7593 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7594 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7595 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7596 | # "DIR[:DIR]" | |
7597 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7598 | func_munge_path_list () | |
7599 | { | |
7600 | case x$2 in | |
7601 | x) | |
7602 | ;; | |
7603 | *:) | |
7604 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7605 | ;; | |
7606 | x:*) | |
7607 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7608 | ;; | |
7609 | *::*) | |
7610 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7611 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7612 | ;; | |
7613 | *) | |
7614 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7615 | ;; | |
7616 | esac | |
7617 | } | |
7618 | ||
b9668ba4 | 7619 | |
0fbeb4dc | 7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
47dc80f6 | 7621 | $as_echo_n "checking for ANSI C header files... " >&6; } |
059850b5 | 7622 | if ${ac_cv_header_stdc+:} false; then : |
47dc80f6 | 7623 | $as_echo_n "(cached) " >&6 |
5c706339 | 7624 | else |
0fbeb4dc | 7625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
7626 | /* end confdefs.h. */ |
7627 | #include <stdlib.h> | |
7628 | #include <stdarg.h> | |
7629 | #include <string.h> | |
7630 | #include <float.h> | |
b9668ba4 | 7631 | |
5c706339 AK |
7632 | int |
7633 | main () | |
7634 | { | |
b9668ba4 | 7635 | |
5c706339 AK |
7636 | ; |
7637 | return 0; | |
7638 | } | |
7639 | _ACEOF | |
0fbeb4dc | 7640 | if ac_fn_c_try_compile "$LINENO"; then : |
5c706339 AK |
7641 | ac_cv_header_stdc=yes |
7642 | else | |
0fbeb4dc | 7643 | ac_cv_header_stdc=no |
5c706339 | 7644 | fi |
5c706339 | 7645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b9668ba4 | 7646 | |
5c706339 AK |
7647 | if test $ac_cv_header_stdc = yes; then |
7648 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
0fbeb4dc | 7649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
7650 | /* end confdefs.h. */ |
7651 | #include <string.h> | |
b9668ba4 | 7652 | |
5c706339 AK |
7653 | _ACEOF |
7654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0fbeb4dc AK |
7655 | $EGREP "memchr" >/dev/null 2>&1; then : |
7656 | ||
b9668ba4 | 7657 | else |
5c706339 | 7658 | ac_cv_header_stdc=no |
b9668ba4 | 7659 | fi |
5c706339 | 7660 | rm -f conftest* |
b9668ba4 | 7661 | |
b9668ba4 AK |
7662 | fi |
7663 | ||
5c706339 AK |
7664 | if test $ac_cv_header_stdc = yes; then |
7665 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
0fbeb4dc | 7666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
7667 | /* end confdefs.h. */ |
7668 | #include <stdlib.h> | |
b9668ba4 | 7669 | |
5c706339 AK |
7670 | _ACEOF |
7671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0fbeb4dc AK |
7672 | $EGREP "free" >/dev/null 2>&1; then : |
7673 | ||
b9668ba4 | 7674 | else |
5c706339 | 7675 | ac_cv_header_stdc=no |
b9668ba4 | 7676 | fi |
5c706339 | 7677 | rm -f conftest* |
b9668ba4 | 7678 | |
b9668ba4 AK |
7679 | fi |
7680 | ||
5c706339 AK |
7681 | if test $ac_cv_header_stdc = yes; then |
7682 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
0fbeb4dc | 7683 | if test "$cross_compiling" = yes; then : |
5c706339 | 7684 | : |
b9668ba4 | 7685 | else |
0fbeb4dc | 7686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
7687 | /* end confdefs.h. */ |
7688 | #include <ctype.h> | |
7689 | #include <stdlib.h> | |
7690 | #if ((' ' & 0x0FF) == 0x020) | |
7691 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7692 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7693 | #else | |
7694 | # define ISLOWER(c) \ | |
7695 | (('a' <= (c) && (c) <= 'i') \ | |
7696 | || ('j' <= (c) && (c) <= 'r') \ | |
7697 | || ('s' <= (c) && (c) <= 'z')) | |
7698 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7699 | #endif | |
b9668ba4 | 7700 | |
5c706339 AK |
7701 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7702 | int | |
7703 | main () | |
7704 | { | |
7705 | int i; | |
7706 | for (i = 0; i < 256; i++) | |
7707 | if (XOR (islower (i), ISLOWER (i)) | |
7708 | || toupper (i) != TOUPPER (i)) | |
7709 | return 2; | |
7710 | return 0; | |
7711 | } | |
7712 | _ACEOF | |
0fbeb4dc AK |
7713 | if ac_fn_c_try_run "$LINENO"; then : |
7714 | ||
5c706339 | 7715 | else |
0fbeb4dc AK |
7716 | ac_cv_header_stdc=no |
7717 | fi | |
7718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7719 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7720 | fi | |
b9668ba4 | 7721 | |
5c706339 | 7722 | fi |
0fbeb4dc AK |
7723 | fi |
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7725 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7726 | if test $ac_cv_header_stdc = yes; then | |
7727 | ||
7728 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
b9668ba4 | 7729 | |
5c706339 | 7730 | fi |
0fbeb4dc AK |
7731 | |
7732 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7733 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7734 | inttypes.h stdint.h unistd.h | |
7735 | do : | |
7736 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7737 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7738 | " | |
7739 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5c706339 | 7740 | cat >>confdefs.h <<_ACEOF |
47dc80f6 | 7741 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5c706339 | 7742 | _ACEOF |
b9668ba4 | 7743 | |
5c706339 | 7744 | fi |
b9668ba4 | 7745 | |
5c706339 | 7746 | done |
b9668ba4 | 7747 | |
b9668ba4 | 7748 | |
5c706339 | 7749 | for ac_header in dlfcn.h |
0fbeb4dc AK |
7750 | do : |
7751 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7752 | " | |
059850b5 | 7753 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
5c706339 | 7754 | cat >>confdefs.h <<_ACEOF |
0fbeb4dc | 7755 | #define HAVE_DLFCN_H 1 |
5c706339 | 7756 | _ACEOF |
b9668ba4 | 7757 | |
5c706339 | 7758 | fi |
b9668ba4 | 7759 | |
5c706339 | 7760 | done |
b9668ba4 | 7761 | |
b9668ba4 | 7762 | |
b9668ba4 | 7763 | |
059850b5 AK |
7764 | |
7765 | ||
5c706339 | 7766 | # Set options |
b9668ba4 AK |
7767 | |
7768 | ||
b9668ba4 | 7769 | |
5c706339 | 7770 | enable_dlopen=no |
b9668ba4 | 7771 | |
5c706339 AK |
7772 | |
7773 | enable_win32_dll=no | |
7774 | ||
7775 | ||
7776 | # Check whether --enable-shared was given. | |
0fbeb4dc | 7777 | if test "${enable_shared+set}" = set; then : |
5c706339 AK |
7778 | enableval=$enable_shared; p=${PACKAGE-default} |
7779 | case $enableval in | |
7780 | yes) enable_shared=yes ;; | |
7781 | no) enable_shared=no ;; | |
7782 | *) | |
7783 | enable_shared=no | |
7784 | # Look at the argument we got. We use all the common list separators. | |
c45550e5 | 7785 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
5c706339 | 7786 | for pkg in $enableval; do |
c45550e5 | 7787 | IFS=$lt_save_ifs |
5c706339 AK |
7788 | if test "X$pkg" = "X$p"; then |
7789 | enable_shared=yes | |
b9668ba4 | 7790 | fi |
5c706339 | 7791 | done |
c45550e5 | 7792 | IFS=$lt_save_ifs |
b9668ba4 | 7793 | ;; |
5c706339 AK |
7794 | esac |
7795 | else | |
7796 | enable_shared=yes | |
7797 | fi | |
b9668ba4 | 7798 | |
b9668ba4 | 7799 | |
b9668ba4 | 7800 | |
b9668ba4 | 7801 | |
b9668ba4 | 7802 | |
b9668ba4 | 7803 | |
b9668ba4 | 7804 | |
b9668ba4 | 7805 | |
b9668ba4 | 7806 | |
5c706339 | 7807 | # Check whether --enable-static was given. |
0fbeb4dc | 7808 | if test "${enable_static+set}" = set; then : |
5c706339 AK |
7809 | enableval=$enable_static; p=${PACKAGE-default} |
7810 | case $enableval in | |
7811 | yes) enable_static=yes ;; | |
7812 | no) enable_static=no ;; | |
7813 | *) | |
7814 | enable_static=no | |
7815 | # Look at the argument we got. We use all the common list separators. | |
c45550e5 | 7816 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
5c706339 | 7817 | for pkg in $enableval; do |
c45550e5 | 7818 | IFS=$lt_save_ifs |
5c706339 AK |
7819 | if test "X$pkg" = "X$p"; then |
7820 | enable_static=yes | |
7821 | fi | |
7822 | done | |
c45550e5 | 7823 | IFS=$lt_save_ifs |
b9668ba4 | 7824 | ;; |
5c706339 AK |
7825 | esac |
7826 | else | |
7827 | enable_static=yes | |
7828 | fi | |
b9668ba4 | 7829 | |
b9668ba4 | 7830 | |
b9668ba4 | 7831 | |
b9668ba4 | 7832 | |
b9668ba4 | 7833 | |
b9668ba4 | 7834 | |
b9668ba4 | 7835 | |
b9668ba4 | 7836 | |
b9668ba4 | 7837 | |
b9668ba4 | 7838 | |
5c706339 | 7839 | # Check whether --with-pic was given. |
0fbeb4dc | 7840 | if test "${with_pic+set}" = set; then : |
059850b5 AK |
7841 | withval=$with_pic; lt_p=${PACKAGE-default} |
7842 | case $withval in | |
7843 | yes|no) pic_mode=$withval ;; | |
7844 | *) | |
7845 | pic_mode=default | |
7846 | # Look at the argument we got. We use all the common list separators. | |
c45550e5 | 7847 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
059850b5 | 7848 | for lt_pkg in $withval; do |
c45550e5 | 7849 | IFS=$lt_save_ifs |
059850b5 AK |
7850 | if test "X$lt_pkg" = "X$lt_p"; then |
7851 | pic_mode=yes | |
7852 | fi | |
7853 | done | |
c45550e5 | 7854 | IFS=$lt_save_ifs |
059850b5 AK |
7855 | ;; |
7856 | esac | |
5c706339 AK |
7857 | else |
7858 | pic_mode=default | |
7859 | fi | |
b9668ba4 | 7860 | |
b9668ba4 | 7861 | |
b9668ba4 | 7862 | |
b9668ba4 | 7863 | |
b9668ba4 | 7864 | |
b9668ba4 | 7865 | |
b9668ba4 | 7866 | |
b9668ba4 | 7867 | |
5c706339 | 7868 | # Check whether --enable-fast-install was given. |
0fbeb4dc | 7869 | if test "${enable_fast_install+set}" = set; then : |
5c706339 AK |
7870 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7871 | case $enableval in | |
7872 | yes) enable_fast_install=yes ;; | |
7873 | no) enable_fast_install=no ;; | |
7874 | *) | |
7875 | enable_fast_install=no | |
7876 | # Look at the argument we got. We use all the common list separators. | |
c45550e5 | 7877 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
5c706339 | 7878 | for pkg in $enableval; do |
c45550e5 | 7879 | IFS=$lt_save_ifs |
5c706339 AK |
7880 | if test "X$pkg" = "X$p"; then |
7881 | enable_fast_install=yes | |
7882 | fi | |
7883 | done | |
c45550e5 | 7884 | IFS=$lt_save_ifs |
b9668ba4 | 7885 | ;; |
5c706339 AK |
7886 | esac |
7887 | else | |
7888 | enable_fast_install=yes | |
7889 | fi | |
b9668ba4 | 7890 | |
b9668ba4 | 7891 | |
b9668ba4 | 7892 | |
b9668ba4 | 7893 | |
b9668ba4 | 7894 | |
b9668ba4 | 7895 | |
b9668ba4 | 7896 | |
b9668ba4 | 7897 | |
c45550e5 AK |
7898 | shared_archive_member_spec= |
7899 | case $host,$enable_shared in | |
7900 | power*-*-aix[5-9]*,yes) | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7902 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7903 | ||
7904 | # Check whether --with-aix-soname was given. | |
7905 | if test "${with_aix_soname+set}" = set; then : | |
7906 | withval=$with_aix_soname; case $withval in | |
7907 | aix|svr4|both) | |
7908 | ;; | |
7909 | *) | |
7910 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7911 | ;; | |
7912 | esac | |
7913 | lt_cv_with_aix_soname=$with_aix_soname | |
7914 | else | |
7915 | if ${lt_cv_with_aix_soname+:} false; then : | |
7916 | $as_echo_n "(cached) " >&6 | |
7917 | else | |
7918 | lt_cv_with_aix_soname=aix | |
7919 | fi | |
7920 | ||
7921 | with_aix_soname=$lt_cv_with_aix_soname | |
7922 | fi | |
7923 | ||
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7925 | $as_echo "$with_aix_soname" >&6; } | |
7926 | if test aix != "$with_aix_soname"; then | |
7927 | # For the AIX way of multilib, we name the shared archive member | |
7928 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7929 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7930 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7931 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7932 | if test 64 = "${OBJECT_MODE-32}"; then | |
7933 | shared_archive_member_spec=shr_64 | |
7934 | else | |
7935 | shared_archive_member_spec=shr | |
7936 | fi | |
7937 | fi | |
7938 | ;; | |
7939 | *) | |
7940 | with_aix_soname=aix | |
7941 | ;; | |
7942 | esac | |
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | ||
7949 | ||
b9668ba4 | 7950 | |
b9668ba4 | 7951 | |
b9668ba4 | 7952 | |
5c706339 | 7953 | # This can be used to rebuild libtool when needed |
c45550e5 | 7954 | LIBTOOL_DEPS=$ltmain |
b9668ba4 | 7955 | |
5c706339 AK |
7956 | # Always use our own libtool. |
7957 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
b9668ba4 | 7958 | |
5c706339 AK |
7959 | |
7960 | ||
7961 | ||
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | ||
7975 | ||
7976 | ||
059850b5 AK |
7977 | |
7978 | ||
7979 | ||
7980 | ||
7981 | ||
5c706339 AK |
7982 | |
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | test -z "$LN_S" && LN_S="ln -s" | |
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | ||
8001 | ||
8002 | ||
c45550e5 | 8003 | if test -n "${ZSH_VERSION+set}"; then |
5c706339 AK |
8004 | setopt NO_GLOB_SUBST |
8005 | fi | |
8006 | ||
0fbeb4dc | 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
47dc80f6 | 8008 | $as_echo_n "checking for objdir... " >&6; } |
059850b5 | 8009 | if ${lt_cv_objdir+:} false; then : |
47dc80f6 | 8010 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 8011 | else |
5c706339 AK |
8012 | rm -f .libs 2>/dev/null |
8013 | mkdir .libs 2>/dev/null | |
8014 | if test -d .libs; then | |
8015 | lt_cv_objdir=.libs | |
8016 | else | |
8017 | # MS-DOS does not allow filenames that begin with a dot. | |
8018 | lt_cv_objdir=_libs | |
b9668ba4 | 8019 | fi |
5c706339 AK |
8020 | rmdir .libs 2>/dev/null |
8021 | fi | |
0fbeb4dc | 8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
47dc80f6 | 8023 | $as_echo "$lt_cv_objdir" >&6; } |
5c706339 | 8024 | objdir=$lt_cv_objdir |
b9668ba4 | 8025 | |
b9668ba4 | 8026 | |
b9668ba4 | 8027 | |
b9668ba4 | 8028 | |
b9668ba4 | 8029 | |
5c706339 AK |
8030 | cat >>confdefs.h <<_ACEOF |
8031 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8032 | _ACEOF | |
b9668ba4 | 8033 | |
b9668ba4 | 8034 | |
b9668ba4 | 8035 | |
b9668ba4 | 8036 | |
5c706339 AK |
8037 | case $host_os in |
8038 | aix3*) | |
8039 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8040 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8041 | # vanish in a puff of smoke. | |
c45550e5 | 8042 | if test set != "${COLLECT_NAMES+set}"; then |
5c706339 AK |
8043 | COLLECT_NAMES= |
8044 | export COLLECT_NAMES | |
b9668ba4 | 8045 | fi |
b9668ba4 | 8046 | ;; |
5c706339 | 8047 | esac |
b9668ba4 | 8048 | |
5c706339 AK |
8049 | # Global variables: |
8050 | ofile=libtool | |
8051 | can_build_shared=yes | |
b9668ba4 | 8052 | |
c45550e5 | 8053 | # All known linkers require a '.a' archive for static linking (except MSVC, |
5c706339 AK |
8054 | # which needs '.lib'). |
8055 | libext=a | |
b9668ba4 | 8056 | |
c45550e5 | 8057 | with_gnu_ld=$lt_cv_prog_gnu_ld |
b9668ba4 | 8058 | |
c45550e5 AK |
8059 | old_CC=$CC |
8060 | old_CFLAGS=$CFLAGS | |
b9668ba4 | 8061 | |
5c706339 AK |
8062 | # Set sane defaults for various variables |
8063 | test -z "$CC" && CC=cc | |
8064 | test -z "$LTCC" && LTCC=$CC | |
8065 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8066 | test -z "$LD" && LD=ld | |
8067 | test -z "$ac_objext" && ac_objext=o | |
b9668ba4 | 8068 | |
c45550e5 AK |
8069 | func_cc_basename $compiler |
8070 | cc_basename=$func_cc_basename_result | |
b9668ba4 | 8071 | |
b9668ba4 | 8072 | |
5c706339 AK |
8073 | # Only perform the check for file, if the check method requires it |
8074 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8075 | case $deplibs_check_method in | |
8076 | file_magic*) | |
8077 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
0fbeb4dc | 8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
47dc80f6 | 8079 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
059850b5 | 8080 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
47dc80f6 | 8081 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8082 | else |
8083 | case $MAGIC_CMD in | |
8084 | [\\/*] | ?:[\\/]*) | |
c45550e5 | 8085 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
b9668ba4 | 8086 | ;; |
5c706339 | 8087 | *) |
c45550e5 AK |
8088 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8089 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5c706339 AK |
8090 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8091 | for ac_dir in $ac_dummy; do | |
c45550e5 | 8092 | IFS=$lt_save_ifs |
5c706339 | 8093 | test -z "$ac_dir" && ac_dir=. |
c45550e5 AK |
8094 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8095 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
5c706339 AK |
8096 | if test -n "$file_magic_test_file"; then |
8097 | case $deplibs_check_method in | |
8098 | "file_magic "*) | |
8099 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
c45550e5 | 8100 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
5c706339 AK |
8101 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8102 | $EGREP "$file_magic_regex" > /dev/null; then | |
8103 | : | |
8104 | else | |
8105 | cat <<_LT_EOF 1>&2 | |
b9668ba4 | 8106 | |
5c706339 AK |
8107 | *** Warning: the command libtool uses to detect shared libraries, |
8108 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8109 | *** The result is that libtool may fail to recognize shared libraries | |
8110 | *** as such. This will affect the creation of libtool libraries that | |
8111 | *** depend on shared libraries, but programs linked with such libtool | |
8112 | *** libraries will work regardless of this problem. Nevertheless, you | |
8113 | *** may want to report the problem to your system manager and/or to | |
8114 | *** bug-libtool@gnu.org | |
8115 | ||
8116 | _LT_EOF | |
8117 | fi ;; | |
8118 | esac | |
8119 | fi | |
8120 | break | |
8121 | fi | |
8122 | done | |
c45550e5 AK |
8123 | IFS=$lt_save_ifs |
8124 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
b9668ba4 | 8125 | ;; |
5c706339 AK |
8126 | esac |
8127 | fi | |
b9668ba4 | 8128 | |
c45550e5 | 8129 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
5c706339 | 8130 | if test -n "$MAGIC_CMD"; then |
0fbeb4dc | 8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
47dc80f6 | 8132 | $as_echo "$MAGIC_CMD" >&6; } |
5c706339 | 8133 | else |
0fbeb4dc | 8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 8135 | $as_echo "no" >&6; } |
5c706339 | 8136 | fi |
b9668ba4 | 8137 | |
b9668ba4 | 8138 | |
b9668ba4 | 8139 | |
b9668ba4 | 8140 | |
b9668ba4 | 8141 | |
5c706339 AK |
8142 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8143 | if test -n "$ac_tool_prefix"; then | |
0fbeb4dc | 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
47dc80f6 | 8145 | $as_echo_n "checking for file... " >&6; } |
059850b5 | 8146 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
47dc80f6 | 8147 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8148 | else |
8149 | case $MAGIC_CMD in | |
8150 | [\\/*] | ?:[\\/]*) | |
c45550e5 | 8151 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
b9668ba4 | 8152 | ;; |
5c706339 | 8153 | *) |
c45550e5 AK |
8154 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8155 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5c706339 AK |
8156 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8157 | for ac_dir in $ac_dummy; do | |
c45550e5 | 8158 | IFS=$lt_save_ifs |
5c706339 | 8159 | test -z "$ac_dir" && ac_dir=. |
c45550e5 AK |
8160 | if test -f "$ac_dir/file"; then |
8161 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
5c706339 AK |
8162 | if test -n "$file_magic_test_file"; then |
8163 | case $deplibs_check_method in | |
8164 | "file_magic "*) | |
8165 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
c45550e5 | 8166 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
5c706339 AK |
8167 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8168 | $EGREP "$file_magic_regex" > /dev/null; then | |
8169 | : | |
8170 | else | |
8171 | cat <<_LT_EOF 1>&2 | |
b9668ba4 | 8172 | |
5c706339 AK |
8173 | *** Warning: the command libtool uses to detect shared libraries, |
8174 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8175 | *** The result is that libtool may fail to recognize shared libraries | |
8176 | *** as such. This will affect the creation of libtool libraries that | |
8177 | *** depend on shared libraries, but programs linked with such libtool | |
8178 | *** libraries will work regardless of this problem. Nevertheless, you | |
8179 | *** may want to report the problem to your system manager and/or to | |
8180 | *** bug-libtool@gnu.org | |
b9668ba4 | 8181 | |
5c706339 AK |
8182 | _LT_EOF |
8183 | fi ;; | |
8184 | esac | |
8185 | fi | |
8186 | break | |
8187 | fi | |
8188 | done | |
c45550e5 AK |
8189 | IFS=$lt_save_ifs |
8190 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
b9668ba4 AK |
8191 | ;; |
8192 | esac | |
5c706339 | 8193 | fi |
b9668ba4 | 8194 | |
c45550e5 | 8195 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
5c706339 | 8196 | if test -n "$MAGIC_CMD"; then |
0fbeb4dc | 8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
47dc80f6 | 8198 | $as_echo "$MAGIC_CMD" >&6; } |
5c706339 | 8199 | else |
0fbeb4dc | 8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 8201 | $as_echo "no" >&6; } |
b9668ba4 AK |
8202 | fi |
8203 | ||
b9668ba4 | 8204 | |
b9668ba4 | 8205 | else |
5c706339 | 8206 | MAGIC_CMD=: |
b9668ba4 | 8207 | fi |
b9668ba4 AK |
8208 | fi |
8209 | ||
5c706339 AK |
8210 | fi |
8211 | ;; | |
8212 | esac | |
b9668ba4 | 8213 | |
5c706339 | 8214 | # Use C for the default configuration in the libtool script |
b9668ba4 | 8215 | |
c45550e5 | 8216 | lt_save_CC=$CC |
5c706339 AK |
8217 | ac_ext=c |
8218 | ac_cpp='$CPP $CPPFLAGS' | |
8219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b9668ba4 | 8222 | |
b9668ba4 | 8223 | |
5c706339 AK |
8224 | # Source file extension for C test sources. |
8225 | ac_ext=c | |
b9668ba4 | 8226 | |
5c706339 AK |
8227 | # Object file extension for compiled C test sources. |
8228 | objext=o | |
8229 | objext=$objext | |
b9668ba4 | 8230 | |
5c706339 AK |
8231 | # Code to be used in simple compile tests |
8232 | lt_simple_compile_test_code="int some_variable = 0;" | |
b9668ba4 | 8233 | |
5c706339 AK |
8234 | # Code to be used in simple link tests |
8235 | lt_simple_link_test_code='int main(){return(0);}' | |
b9668ba4 | 8236 | |
b9668ba4 | 8237 | |
b9668ba4 | 8238 | |
b9668ba4 | 8239 | |
b9668ba4 | 8240 | |
b9668ba4 | 8241 | |
b9668ba4 | 8242 | |
5c706339 AK |
8243 | # If no C compiler was specified, use CC. |
8244 | LTCC=${LTCC-"$CC"} | |
b9668ba4 | 8245 | |
5c706339 AK |
8246 | # If no C compiler flags were specified, use CFLAGS. |
8247 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
b9668ba4 | 8248 | |
5c706339 AK |
8249 | # Allow CC to be a program name with arguments. |
8250 | compiler=$CC | |
b9668ba4 | 8251 | |
5c706339 AK |
8252 | # Save the default compiler, since it gets overwritten when the other |
8253 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8254 | compiler_DEFAULT=$CC | |
b9668ba4 | 8255 | |
5c706339 AK |
8256 | # save warnings/boilerplate of simple test code |
8257 | ac_outfile=conftest.$ac_objext | |
8258 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8259 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8260 | _lt_compiler_boilerplate=`cat conftest.err` | |
8261 | $RM conftest* | |
b9668ba4 | 8262 | |
5c706339 AK |
8263 | ac_outfile=conftest.$ac_objext |
8264 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8265 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8266 | _lt_linker_boilerplate=`cat conftest.err` | |
8267 | $RM -r conftest* | |
b9668ba4 | 8268 | |
b9668ba4 | 8269 | |
5c706339 | 8270 | if test -n "$compiler"; then |
b9668ba4 | 8271 | |
5c706339 AK |
8272 | lt_prog_compiler_no_builtin_flag= |
8273 | ||
c45550e5 | 8274 | if test yes = "$GCC"; then |
059850b5 AK |
8275 | case $cc_basename in |
8276 | nvcc*) | |
8277 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8278 | *) | |
8279 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8280 | esac | |
5c706339 | 8281 | |
0fbeb4dc | 8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
47dc80f6 | 8283 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
059850b5 | 8284 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
47dc80f6 | 8285 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 8286 | else |
5c706339 AK |
8287 | lt_cv_prog_compiler_rtti_exceptions=no |
8288 | ac_outfile=conftest.$ac_objext | |
8289 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c45550e5 | 8290 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
5c706339 AK |
8291 | # Insert the option either (1) after the last *FLAGS variable, or |
8292 | # (2) before a word containing "conftest.", or (3) at the end. | |
8293 | # Note that $ac_compile itself does not contain backslashes and begins | |
8294 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8295 | # The option is referenced via a variable to avoid confusing sed. | |
8296 | lt_compile=`echo "$ac_compile" | $SED \ | |
8297 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8298 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8299 | -e 's:$: $lt_compiler_flag:'` | |
059850b5 | 8300 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
5c706339 AK |
8301 | (eval "$lt_compile" 2>conftest.err) |
8302 | ac_status=$? | |
8303 | cat conftest.err >&5 | |
059850b5 | 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5c706339 AK |
8305 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8306 | # The compiler can only warn and ignore the option if not recognized | |
8307 | # So say no if there are warnings other than the usual output. | |
059850b5 | 8308 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
5c706339 AK |
8309 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8310 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8311 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8312 | fi | |
8313 | fi | |
8314 | $RM conftest* | |
b9668ba4 | 8315 | |
5c706339 | 8316 | fi |
0fbeb4dc | 8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
47dc80f6 | 8318 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
b9668ba4 | 8319 | |
c45550e5 | 8320 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
5c706339 AK |
8321 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8322 | else | |
8323 | : | |
8324 | fi | |
b9668ba4 | 8325 | |
5c706339 | 8326 | fi |
b9668ba4 | 8327 | |
b9668ba4 | 8328 | |
b9668ba4 | 8329 | |
b9668ba4 | 8330 | |
b9668ba4 | 8331 | |
b9668ba4 | 8332 | |
5c706339 AK |
8333 | lt_prog_compiler_wl= |
8334 | lt_prog_compiler_pic= | |
8335 | lt_prog_compiler_static= | |
b9668ba4 | 8336 | |
b9668ba4 | 8337 | |
c45550e5 | 8338 | if test yes = "$GCC"; then |
5c706339 AK |
8339 | lt_prog_compiler_wl='-Wl,' |
8340 | lt_prog_compiler_static='-static' | |
b9668ba4 | 8341 | |
5c706339 AK |
8342 | case $host_os in |
8343 | aix*) | |
8344 | # All AIX code is PIC. | |
c45550e5 | 8345 | if test ia64 = "$host_cpu"; then |
5c706339 AK |
8346 | # AIX 5 now supports IA64 processor |
8347 | lt_prog_compiler_static='-Bstatic' | |
8348 | fi | |
c45550e5 | 8349 | lt_prog_compiler_pic='-fPIC' |
5c706339 | 8350 | ;; |
b9668ba4 | 8351 | |
5c706339 AK |
8352 | amigaos*) |
8353 | case $host_cpu in | |
8354 | powerpc) | |
8355 | # see comment about AmigaOS4 .so support | |
8356 | lt_prog_compiler_pic='-fPIC' | |
8357 | ;; | |
8358 | m68k) | |
8359 | # FIXME: we need at least 68020 code to build shared libraries, but | |
c45550e5 AK |
8360 | # adding the '-m68020' flag to GCC prevents building anything better, |
8361 | # like '-m68040'. | |
5c706339 AK |
8362 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8363 | ;; | |
8364 | esac | |
8365 | ;; | |
b9668ba4 | 8366 | |
5c706339 AK |
8367 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8368 | # PIC is the default for these OSes. | |
8369 | ;; | |
b9668ba4 | 8370 | |
47dc80f6 | 8371 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
5c706339 AK |
8372 | # This hack is so that the source file can tell whether it is being |
8373 | # built for inclusion in a dll (and should export symbols for example). | |
8374 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8375 | # (--disable-auto-import) libraries | |
8376 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
c45550e5 AK |
8377 | case $host_os in |
8378 | os2*) | |
8379 | lt_prog_compiler_static='$wl-static' | |
8380 | ;; | |
8381 | esac | |
5c706339 | 8382 | ;; |
b9668ba4 | 8383 | |
5c706339 AK |
8384 | darwin* | rhapsody*) |
8385 | # PIC is the default on this platform | |
8386 | # Common symbols not allowed in MH_DYLIB files | |
8387 | lt_prog_compiler_pic='-fno-common' | |
8388 | ;; | |
b9668ba4 | 8389 | |
059850b5 AK |
8390 | haiku*) |
8391 | # PIC is the default for Haiku. | |
8392 | # The "-static" flag exists, but is broken. | |
8393 | lt_prog_compiler_static= | |
8394 | ;; | |
8395 | ||
5c706339 | 8396 | hpux*) |
47dc80f6 AK |
8397 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8398 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8399 | # sets the default TLS model and affects inlining. | |
5c706339 | 8400 | case $host_cpu in |
47dc80f6 | 8401 | hppa*64*) |
5c706339 AK |
8402 | # +Z the default |
8403 | ;; | |
8404 | *) | |
8405 | lt_prog_compiler_pic='-fPIC' | |
8406 | ;; | |
8407 | esac | |
8408 | ;; | |
b9668ba4 | 8409 | |
5c706339 AK |
8410 | interix[3-9]*) |
8411 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8412 | # Instead, we relocate shared libraries at runtime. | |
8413 | ;; | |
b9668ba4 | 8414 | |
5c706339 AK |
8415 | msdosdjgpp*) |
8416 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8417 | # on systems that don't support them. | |
8418 | lt_prog_compiler_can_build_shared=no | |
8419 | enable_shared=no | |
8420 | ;; | |
b9668ba4 | 8421 | |
5c706339 AK |
8422 | *nto* | *qnx*) |
8423 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8424 | # it will coredump. | |
8425 | lt_prog_compiler_pic='-fPIC -shared' | |
8426 | ;; | |
b9668ba4 | 8427 | |
5c706339 AK |
8428 | sysv4*MP*) |
8429 | if test -d /usr/nec; then | |
8430 | lt_prog_compiler_pic=-Kconform_pic | |
8431 | fi | |
8432 | ;; | |
b9668ba4 | 8433 | |
5c706339 AK |
8434 | *) |
8435 | lt_prog_compiler_pic='-fPIC' | |
8436 | ;; | |
8437 | esac | |
059850b5 AK |
8438 | |
8439 | case $cc_basename in | |
8440 | nvcc*) # Cuda Compiler Driver 2.2 | |
8441 | lt_prog_compiler_wl='-Xlinker ' | |
8442 | if test -n "$lt_prog_compiler_pic"; then | |
8443 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8444 | fi | |
8445 | ;; | |
8446 | esac | |
5c706339 AK |
8447 | else |
8448 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8449 | case $host_os in | |
8450 | aix*) | |
8451 | lt_prog_compiler_wl='-Wl,' | |
c45550e5 | 8452 | if test ia64 = "$host_cpu"; then |
5c706339 AK |
8453 | # AIX 5 now supports IA64 processor |
8454 | lt_prog_compiler_static='-Bstatic' | |
8455 | else | |
8456 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8457 | fi | |
8458 | ;; | |
b9668ba4 | 8459 | |
c45550e5 AK |
8460 | darwin* | rhapsody*) |
8461 | # PIC is the default on this platform | |
8462 | # Common symbols not allowed in MH_DYLIB files | |
8463 | lt_prog_compiler_pic='-fno-common' | |
8464 | case $cc_basename in | |
8465 | nagfor*) | |
8466 | # NAG Fortran compiler | |
8467 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8468 | lt_prog_compiler_pic='-PIC' | |
8469 | lt_prog_compiler_static='-Bstatic' | |
8470 | ;; | |
8471 | esac | |
8472 | ;; | |
8473 | ||
47dc80f6 | 8474 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
5c706339 AK |
8475 | # This hack is so that the source file can tell whether it is being |
8476 | # built for inclusion in a dll (and should export symbols for example). | |
8477 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
c45550e5 AK |
8478 | case $host_os in |
8479 | os2*) | |
8480 | lt_prog_compiler_static='$wl-static' | |
8481 | ;; | |
8482 | esac | |
5c706339 | 8483 | ;; |
b9668ba4 | 8484 | |
5c706339 AK |
8485 | hpux9* | hpux10* | hpux11*) |
8486 | lt_prog_compiler_wl='-Wl,' | |
8487 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8488 | # not for PA HP-UX. | |
8489 | case $host_cpu in | |
8490 | hppa*64*|ia64*) | |
8491 | # +Z the default | |
8492 | ;; | |
8493 | *) | |
8494 | lt_prog_compiler_pic='+Z' | |
8495 | ;; | |
8496 | esac | |
8497 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
c45550e5 | 8498 | lt_prog_compiler_static='$wl-a ${wl}archive' |
5c706339 | 8499 | ;; |
b9668ba4 | 8500 | |
5c706339 AK |
8501 | irix5* | irix6* | nonstopux*) |
8502 | lt_prog_compiler_wl='-Wl,' | |
8503 | # PIC (with -KPIC) is the default. | |
8504 | lt_prog_compiler_static='-non_shared' | |
8505 | ;; | |
b9668ba4 | 8506 | |
0044e680 | 8507 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5c706339 | 8508 | case $cc_basename in |
c45550e5 | 8509 | # old Intel for x86_64, which still supported -KPIC. |
47dc80f6 | 8510 | ecc*) |
5c706339 AK |
8511 | lt_prog_compiler_wl='-Wl,' |
8512 | lt_prog_compiler_pic='-KPIC' | |
8513 | lt_prog_compiler_static='-static' | |
8514 | ;; | |
47dc80f6 AK |
8515 | # icc used to be incompatible with GCC. |
8516 | # ICC 10 doesn't accept -KPIC any more. | |
8517 | icc* | ifort*) | |
8518 | lt_prog_compiler_wl='-Wl,' | |
8519 | lt_prog_compiler_pic='-fPIC' | |
8520 | lt_prog_compiler_static='-static' | |
8521 | ;; | |
8522 | # Lahey Fortran 8.1. | |
8523 | lf95*) | |
8524 | lt_prog_compiler_wl='-Wl,' | |
8525 | lt_prog_compiler_pic='--shared' | |
8526 | lt_prog_compiler_static='--static' | |
8527 | ;; | |
059850b5 AK |
8528 | nagfor*) |
8529 | # NAG Fortran compiler | |
8530 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8531 | lt_prog_compiler_pic='-PIC' | |
8532 | lt_prog_compiler_static='-Bstatic' | |
8533 | ;; | |
c45550e5 AK |
8534 | tcc*) |
8535 | # Fabrice Bellard et al's Tiny C Compiler | |
8536 | lt_prog_compiler_wl='-Wl,' | |
8537 | lt_prog_compiler_pic='-fPIC' | |
8538 | lt_prog_compiler_static='-static' | |
8539 | ;; | |
059850b5 | 8540 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
5c706339 AK |
8541 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8542 | # which looks to be a dead project) | |
8543 | lt_prog_compiler_wl='-Wl,' | |
8544 | lt_prog_compiler_pic='-fpic' | |
8545 | lt_prog_compiler_static='-Bstatic' | |
8546 | ;; | |
8547 | ccc*) | |
8548 | lt_prog_compiler_wl='-Wl,' | |
8549 | # All Alpha code is PIC. | |
8550 | lt_prog_compiler_static='-non_shared' | |
8551 | ;; | |
059850b5 AK |
8552 | xl* | bgxl* | bgf* | mpixl*) |
8553 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
5c706339 AK |
8554 | lt_prog_compiler_wl='-Wl,' |
8555 | lt_prog_compiler_pic='-qpic' | |
8556 | lt_prog_compiler_static='-qstaticlink' | |
8557 | ;; | |
8558 | *) | |
8559 | case `$CC -V 2>&1 | sed 5q` in | |
059850b5 AK |
8560 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8561 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8562 | lt_prog_compiler_pic='-KPIC' | |
8563 | lt_prog_compiler_static='-Bstatic' | |
8564 | lt_prog_compiler_wl='' | |
8565 | ;; | |
8566 | *Sun\ F* | *Sun*Fortran*) | |
8567 | lt_prog_compiler_pic='-KPIC' | |
8568 | lt_prog_compiler_static='-Bstatic' | |
8569 | lt_prog_compiler_wl='-Qoption ld ' | |
8570 | ;; | |
5c706339 AK |
8571 | *Sun\ C*) |
8572 | # Sun C 5.9 | |
8573 | lt_prog_compiler_pic='-KPIC' | |
8574 | lt_prog_compiler_static='-Bstatic' | |
8575 | lt_prog_compiler_wl='-Wl,' | |
8576 | ;; | |
059850b5 AK |
8577 | *Intel*\ [CF]*Compiler*) |
8578 | lt_prog_compiler_wl='-Wl,' | |
8579 | lt_prog_compiler_pic='-fPIC' | |
8580 | lt_prog_compiler_static='-static' | |
8581 | ;; | |
8582 | *Portland\ Group*) | |
8583 | lt_prog_compiler_wl='-Wl,' | |
8584 | lt_prog_compiler_pic='-fpic' | |
5c706339 | 8585 | lt_prog_compiler_static='-Bstatic' |
5c706339 AK |
8586 | ;; |
8587 | esac | |
8588 | ;; | |
8589 | esac | |
8590 | ;; | |
b9668ba4 | 8591 | |
5c706339 AK |
8592 | newsos6) |
8593 | lt_prog_compiler_pic='-KPIC' | |
8594 | lt_prog_compiler_static='-Bstatic' | |
8595 | ;; | |
b9668ba4 | 8596 | |
5c706339 AK |
8597 | *nto* | *qnx*) |
8598 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8599 | # it will coredump. | |
8600 | lt_prog_compiler_pic='-fPIC -shared' | |
8601 | ;; | |
b9668ba4 | 8602 | |
5c706339 AK |
8603 | osf3* | osf4* | osf5*) |
8604 | lt_prog_compiler_wl='-Wl,' | |
8605 | # All OSF/1 code is PIC. | |
8606 | lt_prog_compiler_static='-non_shared' | |
8607 | ;; | |
b9668ba4 | 8608 | |
5c706339 AK |
8609 | rdos*) |
8610 | lt_prog_compiler_static='-non_shared' | |
8611 | ;; | |
b9668ba4 | 8612 | |
5c706339 AK |
8613 | solaris*) |
8614 | lt_prog_compiler_pic='-KPIC' | |
8615 | lt_prog_compiler_static='-Bstatic' | |
8616 | case $cc_basename in | |
059850b5 | 8617 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
5c706339 AK |
8618 | lt_prog_compiler_wl='-Qoption ld ';; |
8619 | *) | |
8620 | lt_prog_compiler_wl='-Wl,';; | |
8621 | esac | |
8622 | ;; | |
b9668ba4 | 8623 | |
5c706339 AK |
8624 | sunos4*) |
8625 | lt_prog_compiler_wl='-Qoption ld ' | |
8626 | lt_prog_compiler_pic='-PIC' | |
8627 | lt_prog_compiler_static='-Bstatic' | |
8628 | ;; | |
b9668ba4 | 8629 | |
5c706339 AK |
8630 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8631 | lt_prog_compiler_wl='-Wl,' | |
8632 | lt_prog_compiler_pic='-KPIC' | |
8633 | lt_prog_compiler_static='-Bstatic' | |
8634 | ;; | |
b9668ba4 | 8635 | |
5c706339 | 8636 | sysv4*MP*) |
c45550e5 | 8637 | if test -d /usr/nec; then |
5c706339 AK |
8638 | lt_prog_compiler_pic='-Kconform_pic' |
8639 | lt_prog_compiler_static='-Bstatic' | |
8640 | fi | |
8641 | ;; | |
b9668ba4 | 8642 | |
5c706339 AK |
8643 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8644 | lt_prog_compiler_wl='-Wl,' | |
8645 | lt_prog_compiler_pic='-KPIC' | |
8646 | lt_prog_compiler_static='-Bstatic' | |
8647 | ;; | |
b9668ba4 | 8648 | |
5c706339 AK |
8649 | unicos*) |
8650 | lt_prog_compiler_wl='-Wl,' | |
8651 | lt_prog_compiler_can_build_shared=no | |
8652 | ;; | |
b9668ba4 | 8653 | |
5c706339 AK |
8654 | uts4*) |
8655 | lt_prog_compiler_pic='-pic' | |
8656 | lt_prog_compiler_static='-Bstatic' | |
8657 | ;; | |
b9668ba4 | 8658 | |
5c706339 AK |
8659 | *) |
8660 | lt_prog_compiler_can_build_shared=no | |
8661 | ;; | |
b9668ba4 | 8662 | esac |
b9668ba4 | 8663 | fi |
b9668ba4 | 8664 | |
5c706339 | 8665 | case $host_os in |
c45550e5 | 8666 | # For platforms that do not support PIC, -DPIC is meaningless: |
5c706339 AK |
8667 | *djgpp*) |
8668 | lt_prog_compiler_pic= | |
8669 | ;; | |
8670 | *) | |
8671 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8672 | ;; | |
8673 | esac | |
b9668ba4 | 8674 | |
059850b5 AK |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8676 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8677 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8678 | $as_echo_n "(cached) " >&6 | |
8679 | else | |
8680 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8681 | fi | |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8683 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8684 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
b9668ba4 | 8685 | |
5c706339 AK |
8686 | # |
8687 | # Check to make sure the PIC flag actually works. | |
8688 | # | |
8689 | if test -n "$lt_prog_compiler_pic"; then | |
0fbeb4dc | 8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
47dc80f6 | 8691 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
059850b5 | 8692 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
47dc80f6 | 8693 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8694 | else |
8695 | lt_cv_prog_compiler_pic_works=no | |
8696 | ac_outfile=conftest.$ac_objext | |
8697 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c45550e5 | 8698 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
5c706339 AK |
8699 | # Insert the option either (1) after the last *FLAGS variable, or |
8700 | # (2) before a word containing "conftest.", or (3) at the end. | |
8701 | # Note that $ac_compile itself does not contain backslashes and begins | |
8702 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8703 | # The option is referenced via a variable to avoid confusing sed. | |
8704 | lt_compile=`echo "$ac_compile" | $SED \ | |
8705 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8706 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8707 | -e 's:$: $lt_compiler_flag:'` | |
059850b5 | 8708 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
5c706339 AK |
8709 | (eval "$lt_compile" 2>conftest.err) |
8710 | ac_status=$? | |
8711 | cat conftest.err >&5 | |
059850b5 | 8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5c706339 AK |
8713 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8714 | # The compiler can only warn and ignore the option if not recognized | |
8715 | # So say no if there are warnings other than the usual output. | |
059850b5 | 8716 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
5c706339 AK |
8717 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8718 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8719 | lt_cv_prog_compiler_pic_works=yes | |
8720 | fi | |
8721 | fi | |
8722 | $RM conftest* | |
b9668ba4 | 8723 | |
b9668ba4 | 8724 | fi |
0fbeb4dc | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
47dc80f6 | 8726 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
b9668ba4 | 8727 | |
c45550e5 | 8728 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
5c706339 AK |
8729 | case $lt_prog_compiler_pic in |
8730 | "" | " "*) ;; | |
8731 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8732 | esac | |
8733 | else | |
8734 | lt_prog_compiler_pic= | |
8735 | lt_prog_compiler_can_build_shared=no | |
8736 | fi | |
b9668ba4 AK |
8737 | |
8738 | fi | |
b9668ba4 | 8739 | |
b9668ba4 | 8740 | |
b9668ba4 | 8741 | |
b9668ba4 AK |
8742 | |
8743 | ||
b9668ba4 | 8744 | |
059850b5 AK |
8745 | |
8746 | ||
8747 | ||
8748 | ||
8749 | ||
5c706339 AK |
8750 | # |
8751 | # Check to make sure the static flag actually works. | |
8752 | # | |
8753 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
0fbeb4dc | 8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
47dc80f6 | 8755 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
059850b5 | 8756 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
47dc80f6 | 8757 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8758 | else |
8759 | lt_cv_prog_compiler_static_works=no | |
c45550e5 | 8760 | save_LDFLAGS=$LDFLAGS |
5c706339 AK |
8761 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8762 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8763 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8764 | # The linker can only warn and ignore the option if not recognized | |
8765 | # So say no if there are warnings | |
8766 | if test -s conftest.err; then | |
8767 | # Append any errors to the config.log. | |
8768 | cat conftest.err 1>&5 | |
059850b5 | 8769 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
5c706339 AK |
8770 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8771 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8772 | lt_cv_prog_compiler_static_works=yes | |
8773 | fi | |
8774 | else | |
8775 | lt_cv_prog_compiler_static_works=yes | |
8776 | fi | |
8777 | fi | |
8778 | $RM -r conftest* | |
c45550e5 | 8779 | LDFLAGS=$save_LDFLAGS |
b9668ba4 | 8780 | |
5c706339 | 8781 | fi |
0fbeb4dc | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
47dc80f6 | 8783 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
b9668ba4 | 8784 | |
c45550e5 | 8785 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
5c706339 AK |
8786 | : |
8787 | else | |
8788 | lt_prog_compiler_static= | |
8789 | fi | |
b9668ba4 | 8790 | |
b9668ba4 | 8791 | |
b9668ba4 | 8792 | |
b9668ba4 | 8793 | |
b9668ba4 | 8794 | |
b9668ba4 | 8795 | |
b9668ba4 | 8796 | |
0fbeb4dc | 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
47dc80f6 | 8798 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
059850b5 | 8799 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
47dc80f6 | 8800 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8801 | else |
8802 | lt_cv_prog_compiler_c_o=no | |
8803 | $RM -r conftest 2>/dev/null | |
8804 | mkdir conftest | |
8805 | cd conftest | |
8806 | mkdir out | |
8807 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
b9668ba4 | 8808 | |
5c706339 AK |
8809 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8810 | # Insert the option either (1) after the last *FLAGS variable, or | |
8811 | # (2) before a word containing "conftest.", or (3) at the end. | |
8812 | # Note that $ac_compile itself does not contain backslashes and begins | |
8813 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8814 | lt_compile=`echo "$ac_compile" | $SED \ | |
8815 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8816 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8817 | -e 's:$: $lt_compiler_flag:'` | |
059850b5 | 8818 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
5c706339 AK |
8819 | (eval "$lt_compile" 2>out/conftest.err) |
8820 | ac_status=$? | |
8821 | cat out/conftest.err >&5 | |
059850b5 | 8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5c706339 AK |
8823 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8824 | then | |
8825 | # The compiler can only warn and ignore the option if not recognized | |
8826 | # So say no if there are warnings | |
059850b5 | 8827 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
5c706339 AK |
8828 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8829 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8830 | lt_cv_prog_compiler_c_o=yes | |
8831 | fi | |
8832 | fi | |
8833 | chmod u+w . 2>&5 | |
8834 | $RM conftest* | |
8835 | # SGI C++ compiler will create directory out/ii_files/ for | |
8836 | # template instantiation | |
8837 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8838 | $RM out/* && rmdir out | |
8839 | cd .. | |
8840 | $RM -r conftest | |
8841 | $RM conftest* | |
b9668ba4 | 8842 | |
5c706339 | 8843 | fi |
0fbeb4dc | 8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
47dc80f6 | 8845 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
b9668ba4 | 8846 | |
b9668ba4 | 8847 | |
b9668ba4 | 8848 | |
b9668ba4 | 8849 | |
b9668ba4 | 8850 | |
b9668ba4 | 8851 | |
0fbeb4dc | 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
47dc80f6 | 8853 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
059850b5 | 8854 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
47dc80f6 | 8855 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
8856 | else |
8857 | lt_cv_prog_compiler_c_o=no | |
8858 | $RM -r conftest 2>/dev/null | |
8859 | mkdir conftest | |
8860 | cd conftest | |
8861 | mkdir out | |
8862 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
b9668ba4 | 8863 | |
5c706339 AK |
8864 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8865 | # Insert the option either (1) after the last *FLAGS variable, or | |
8866 | # (2) before a word containing "conftest.", or (3) at the end. | |
8867 | # Note that $ac_compile itself does not contain backslashes and begins | |
8868 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8869 | lt_compile=`echo "$ac_compile" | $SED \ | |
8870 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8871 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8872 | -e 's:$: $lt_compiler_flag:'` | |
059850b5 | 8873 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
5c706339 AK |
8874 | (eval "$lt_compile" 2>out/conftest.err) |
8875 | ac_status=$? | |
8876 | cat out/conftest.err >&5 | |
059850b5 | 8877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5c706339 AK |
8878 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8879 | then | |
8880 | # The compiler can only warn and ignore the option if not recognized | |
8881 | # So say no if there are warnings | |
059850b5 | 8882 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
5c706339 AK |
8883 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8884 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8885 | lt_cv_prog_compiler_c_o=yes | |
8886 | fi | |
8887 | fi | |
8888 | chmod u+w . 2>&5 | |
8889 | $RM conftest* | |
8890 | # SGI C++ compiler will create directory out/ii_files/ for | |
8891 | # template instantiation | |
8892 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8893 | $RM out/* && rmdir out | |
8894 | cd .. | |
8895 | $RM -r conftest | |
8896 | $RM conftest* | |
b9668ba4 | 8897 | |
5c706339 | 8898 | fi |
0fbeb4dc | 8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
47dc80f6 | 8900 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
b9668ba4 | 8901 | |
b9668ba4 | 8902 | |
b9668ba4 | 8903 | |
b9668ba4 | 8904 | |
c45550e5 AK |
8905 | hard_links=nottested |
8906 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
5c706339 | 8907 | # do not overwrite the value of need_locks provided by the user |
0fbeb4dc | 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
47dc80f6 | 8909 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
5c706339 AK |
8910 | hard_links=yes |
8911 | $RM conftest* | |
8912 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8913 | touch conftest.a | |
8914 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8915 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
0fbeb4dc | 8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
47dc80f6 | 8917 | $as_echo "$hard_links" >&6; } |
c45550e5 AK |
8918 | if test no = "$hard_links"; then |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8920 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
5c706339 AK |
8921 | need_locks=warn |
8922 | fi | |
8923 | else | |
8924 | need_locks=no | |
8925 | fi | |
b9668ba4 | 8926 | |
b9668ba4 | 8927 | |
b9668ba4 | 8928 | |
b9668ba4 | 8929 | |
b9668ba4 | 8930 | |
b9668ba4 | 8931 | |
0fbeb4dc | 8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
47dc80f6 | 8933 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
b9668ba4 | 8934 | |
5c706339 AK |
8935 | runpath_var= |
8936 | allow_undefined_flag= | |
8937 | always_export_symbols=no | |
8938 | archive_cmds= | |
8939 | archive_expsym_cmds= | |
8940 | compiler_needs_object=no | |
8941 | enable_shared_with_static_runtimes=no | |
8942 | export_dynamic_flag_spec= | |
8943 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8944 | hardcode_automatic=no | |
8945 | hardcode_direct=no | |
8946 | hardcode_direct_absolute=no | |
8947 | hardcode_libdir_flag_spec= | |
5c706339 AK |
8948 | hardcode_libdir_separator= |
8949 | hardcode_minus_L=no | |
8950 | hardcode_shlibpath_var=unsupported | |
8951 | inherit_rpath=no | |
8952 | link_all_deplibs=unknown | |
8953 | module_cmds= | |
8954 | module_expsym_cmds= | |
8955 | old_archive_from_new_cmds= | |
8956 | old_archive_from_expsyms_cmds= | |
8957 | thread_safe_flag_spec= | |
8958 | whole_archive_flag_spec= | |
8959 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8960 | # included in the symbol list | |
8961 | include_expsyms= | |
8962 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
c45550e5 AK |
8963 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8964 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8965 | # as well as any symbol that contains 'd'. | |
5c706339 AK |
8966 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8967 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8968 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8969 | # the symbol is explicitly referenced. Since portable code cannot | |
8970 | # rely on this symbol name, it's probably fine to never include it in | |
8971 | # preloaded symbol tables. | |
8972 | # Exclude shared library initialization/finalization symbols. | |
8973 | extract_expsyms_cmds= | |
b9668ba4 | 8974 | |
5c706339 | 8975 | case $host_os in |
47dc80f6 | 8976 | cygwin* | mingw* | pw32* | cegcc*) |
5c706339 AK |
8977 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8978 | # When not using gcc, we currently assume that we are using | |
8979 | # Microsoft Visual C++. | |
c45550e5 | 8980 | if test yes != "$GCC"; then |
5c706339 AK |
8981 | with_gnu_ld=no |
8982 | fi | |
8983 | ;; | |
8984 | interix*) | |
8985 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8986 | with_gnu_ld=yes | |
8987 | ;; | |
c45550e5 | 8988 | openbsd* | bitrig*) |
5c706339 AK |
8989 | with_gnu_ld=no |
8990 | ;; | |
5070705b AK |
8991 | linux* | k*bsd*-gnu | gnu*) |
8992 | link_all_deplibs=no | |
8993 | ;; | |
5c706339 | 8994 | esac |
b9668ba4 | 8995 | |
5c706339 | 8996 | ld_shlibs=yes |
059850b5 AK |
8997 | |
8998 | # On some targets, GNU ld is compatible enough with the native linker | |
8999 | # that we're better off using the native interface for both. | |
9000 | lt_use_gnu_ld_interface=no | |
c45550e5 | 9001 | if test yes = "$with_gnu_ld"; then |
059850b5 AK |
9002 | case $host_os in |
9003 | aix*) | |
9004 | # The AIX port of GNU ld has always aspired to compatibility | |
9005 | # with the native linker. However, as the warning in the GNU ld | |
9006 | # block says, versions before 2.19.5* couldn't really create working | |
9007 | # shared libraries, regardless of the interface used. | |
9008 | case `$LD -v 2>&1` in | |
9009 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9010 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9011 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9012 | *) | |
9013 | lt_use_gnu_ld_interface=yes | |
9014 | ;; | |
9015 | esac | |
9016 | ;; | |
9017 | *) | |
9018 | lt_use_gnu_ld_interface=yes | |
9019 | ;; | |
9020 | esac | |
9021 | fi | |
9022 | ||
c45550e5 | 9023 | if test yes = "$lt_use_gnu_ld_interface"; then |
5c706339 | 9024 | # If archive_cmds runs LD, not CC, wlarc should be empty |
c45550e5 | 9025 | wlarc='$wl' |
b9668ba4 | 9026 | |
5c706339 AK |
9027 | # Set some defaults for GNU ld with shared library support. These |
9028 | # are reset later if shared libraries are not supported. Putting them | |
9029 | # here allows them to be overridden if necessary. | |
9030 | runpath_var=LD_RUN_PATH | |
c45550e5 AK |
9031 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9032 | export_dynamic_flag_spec='$wl--export-dynamic' | |
5c706339 AK |
9033 | # ancient GNU ld didn't support --whole-archive et. al. |
9034 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
c45550e5 | 9035 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
5c706339 AK |
9036 | else |
9037 | whole_archive_flag_spec= | |
9038 | fi | |
9039 | supports_anon_versioning=no | |
c45550e5 | 9040 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
0fbeb4dc | 9041 | *GNU\ gold*) supports_anon_versioning=yes ;; |
5c706339 AK |
9042 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9043 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9044 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9045 | *\ 2.11.*) ;; # other 2.11 versions | |
9046 | *) supports_anon_versioning=yes ;; | |
9047 | esac | |
b9668ba4 | 9048 | |
5c706339 AK |
9049 | # See if GNU ld supports shared libraries. |
9050 | case $host_os in | |
9051 | aix[3-9]*) | |
9052 | # On AIX/PPC, the GNU linker is very broken | |
c45550e5 | 9053 | if test ia64 != "$host_cpu"; then |
5c706339 AK |
9054 | ld_shlibs=no |
9055 | cat <<_LT_EOF 1>&2 | |
b9668ba4 | 9056 | |
059850b5 | 9057 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
5c706339 AK |
9058 | *** to be unable to reliably create shared libraries on AIX. |
9059 | *** Therefore, libtool is disabling shared libraries support. If you | |
059850b5 AK |
9060 | *** really care for shared libraries, you may want to install binutils |
9061 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9062 | *** You will then need to restart the configuration process. | |
b9668ba4 | 9063 | |
5c706339 AK |
9064 | _LT_EOF |
9065 | fi | |
9066 | ;; | |
b9668ba4 | 9067 | |
5c706339 AK |
9068 | amigaos*) |
9069 | case $host_cpu in | |
9070 | powerpc) | |
9071 | # see comment about AmigaOS4 .so support | |
c45550e5 | 9072 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
5c706339 AK |
9073 | archive_expsym_cmds='' |
9074 | ;; | |
9075 | m68k) | |
9076 | 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)' | |
9077 | hardcode_libdir_flag_spec='-L$libdir' | |
9078 | hardcode_minus_L=yes | |
9079 | ;; | |
9080 | esac | |
9081 | ;; | |
b9668ba4 | 9082 | |
5c706339 AK |
9083 | beos*) |
9084 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9085 | allow_undefined_flag=unsupported | |
9086 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9087 | # support --undefined. This deserves some investigation. FIXME | |
c45550e5 | 9088 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
5c706339 AK |
9089 | else |
9090 | ld_shlibs=no | |
9091 | fi | |
9092 | ;; | |
b9668ba4 | 9093 | |
47dc80f6 | 9094 | cygwin* | mingw* | pw32* | cegcc*) |
5c706339 AK |
9095 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9096 | # as there is no search path for DLLs. | |
9097 | hardcode_libdir_flag_spec='-L$libdir' | |
c45550e5 | 9098 | export_dynamic_flag_spec='$wl--export-all-symbols' |
5c706339 AK |
9099 | allow_undefined_flag=unsupported |
9100 | always_export_symbols=no | |
9101 | enable_shared_with_static_runtimes=yes | |
059850b5 AK |
9102 | 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' |
9103 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
b9668ba4 | 9104 | |
5c706339 | 9105 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
c45550e5 AK |
9106 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9107 | # If the export-symbols file already is a .def file, use it as | |
9108 | # is; otherwise, prepend EXPORTS... | |
9109 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9110 | cp $export_symbols $output_objdir/$soname.def; | |
9111 | else | |
9112 | echo EXPORTS > $output_objdir/$soname.def; | |
9113 | cat $export_symbols >> $output_objdir/$soname.def; | |
9114 | fi~ | |
9115 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
5c706339 AK |
9116 | else |
9117 | ld_shlibs=no | |
9118 | fi | |
9119 | ;; | |
b9668ba4 | 9120 | |
059850b5 | 9121 | haiku*) |
c45550e5 | 9122 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
059850b5 AK |
9123 | link_all_deplibs=yes |
9124 | ;; | |
9125 | ||
c45550e5 AK |
9126 | os2*) |
9127 | hardcode_libdir_flag_spec='-L$libdir' | |
9128 | hardcode_minus_L=yes | |
9129 | allow_undefined_flag=unsupported | |
9130 | shrext_cmds=.dll | |
9131 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9132 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9133 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9134 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9135 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9136 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9137 | emximp -o $lib $output_objdir/$libname.def' | |
9138 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9139 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9140 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9141 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9142 | prefix_cmds="$SED"~ | |
9143 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9144 | prefix_cmds="$prefix_cmds -e 1d"; | |
9145 | fi~ | |
9146 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9147 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9148 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9149 | emximp -o $lib $output_objdir/$libname.def' | |
9150 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9151 | enable_shared_with_static_runtimes=yes | |
9152 | ;; | |
9153 | ||
5c706339 AK |
9154 | interix[3-9]*) |
9155 | hardcode_direct=no | |
9156 | hardcode_shlibpath_var=no | |
c45550e5 AK |
9157 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9158 | export_dynamic_flag_spec='$wl-E' | |
5c706339 AK |
9159 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9160 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9161 | # default) and relocated if they conflict, which is a slow very memory | |
9162 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9163 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9164 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
c45550e5 AK |
9165 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9166 | 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' | |
5c706339 | 9167 | ;; |
b9668ba4 | 9168 | |
0fbeb4dc | 9169 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
5c706339 | 9170 | tmp_diet=no |
c45550e5 | 9171 | if test linux-dietlibc = "$host_os"; then |
5c706339 AK |
9172 | case $cc_basename in |
9173 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9174 | esac | |
9175 | fi | |
9176 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
c45550e5 | 9177 | && test no = "$tmp_diet" |
5c706339 | 9178 | then |
059850b5 | 9179 | tmp_addflag=' $pic_flag' |
5c706339 AK |
9180 | tmp_sharedflag='-shared' |
9181 | case $cc_basename,$host_cpu in | |
9182 | pgcc*) # Portland Group C compiler | |
c45550e5 | 9183 | 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' |
5c706339 AK |
9184 | tmp_addflag=' $pic_flag' |
9185 | ;; | |
059850b5 AK |
9186 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9187 | # Portland Group f77 and f90 compilers | |
c45550e5 | 9188 | 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' |
5c706339 AK |
9189 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9190 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9191 | tmp_addflag=' -i_dynamic' ;; | |
9192 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9193 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9194 | ifc* | ifort*) # Intel Fortran compiler | |
9195 | tmp_addflag=' -nofor_main' ;; | |
47dc80f6 AK |
9196 | lf95*) # Lahey Fortran 8.1 |
9197 | whole_archive_flag_spec= | |
9198 | tmp_sharedflag='--shared' ;; | |
c45550e5 AK |
9199 | nagfor*) # NAGFOR 5.3 |
9200 | tmp_sharedflag='-Wl,-shared' ;; | |
059850b5 | 9201 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
5c706339 AK |
9202 | tmp_sharedflag='-qmkshrobj' |
9203 | tmp_addflag= ;; | |
059850b5 | 9204 | nvcc*) # Cuda Compiler Driver 2.2 |
c45550e5 | 9205 | 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' |
059850b5 AK |
9206 | compiler_needs_object=yes |
9207 | ;; | |
5c706339 AK |
9208 | esac |
9209 | case `$CC -V 2>&1 | sed 5q` in | |
9210 | *Sun\ C*) # Sun C 5.9 | |
c45550e5 | 9211 | 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' |
5c706339 AK |
9212 | compiler_needs_object=yes |
9213 | tmp_sharedflag='-G' ;; | |
9214 | *Sun\ F*) # Sun Fortran 8.3 | |
9215 | tmp_sharedflag='-G' ;; | |
9216 | esac | |
c45550e5 | 9217 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b9668ba4 | 9218 | |
c45550e5 | 9219 | if test yes = "$supports_anon_versioning"; then |
5c706339 | 9220 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
c45550e5 AK |
9221 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9222 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9223 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
5c706339 | 9224 | fi |
b9668ba4 | 9225 | |
5c706339 | 9226 | case $cc_basename in |
c45550e5 AK |
9227 | tcc*) |
9228 | export_dynamic_flag_spec='-rdynamic' | |
9229 | ;; | |
059850b5 | 9230 | xlf* | bgf* | bgxlf* | mpixlf*) |
5c706339 AK |
9231 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9232 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
c45550e5 | 9233 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
059850b5 | 9234 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
c45550e5 | 9235 | if test yes = "$supports_anon_versioning"; then |
5c706339 | 9236 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
c45550e5 AK |
9237 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9238 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9239 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
5c706339 AK |
9240 | fi |
9241 | ;; | |
9242 | esac | |
9243 | else | |
9244 | ld_shlibs=no | |
9245 | fi | |
9246 | ;; | |
b9668ba4 | 9247 | |
5070705b | 9248 | netbsd* | netbsdelf*-gnu) |
5c706339 AK |
9249 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9250 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9251 | wlarc= | |
9252 | else | |
c45550e5 AK |
9253 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9254 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
5c706339 AK |
9255 | fi |
9256 | ;; | |
b9668ba4 | 9257 | |
5c706339 AK |
9258 | solaris*) |
9259 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9260 | ld_shlibs=no | |
9261 | cat <<_LT_EOF 1>&2 | |
b9668ba4 | 9262 | |
5c706339 AK |
9263 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9264 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9265 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9266 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9267 | *** your PATH or compiler configuration so that the native linker is | |
9268 | *** used, and then restart. | |
b9668ba4 | 9269 | |
5c706339 AK |
9270 | _LT_EOF |
9271 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
c45550e5 AK |
9272 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9273 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
5c706339 AK |
9274 | else |
9275 | ld_shlibs=no | |
9276 | fi | |
9277 | ;; | |
b9668ba4 | 9278 | |
5c706339 AK |
9279 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9280 | case `$LD -v 2>&1` in | |
9281 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9282 | ld_shlibs=no | |
9283 | cat <<_LT_EOF 1>&2 | |
b9668ba4 | 9284 | |
c45550e5 | 9285 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
5c706339 AK |
9286 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9287 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9288 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9289 | *** your PATH or compiler configuration so that the native linker is | |
9290 | *** used, and then restart. | |
b9668ba4 | 9291 | |
5c706339 AK |
9292 | _LT_EOF |
9293 | ;; | |
9294 | *) | |
9295 | # For security reasons, it is highly recommended that you always | |
9296 | # use absolute paths for naming shared libraries, and exclude the | |
9297 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9298 | # requires that you compile everything twice, which is a pain. | |
9299 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
c45550e5 AK |
9300 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9301 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9302 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
5c706339 AK |
9303 | else |
9304 | ld_shlibs=no | |
9305 | fi | |
9306 | ;; | |
9307 | esac | |
9308 | ;; | |
b9668ba4 | 9309 | |
5c706339 AK |
9310 | sunos4*) |
9311 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9312 | wlarc= | |
9313 | hardcode_direct=yes | |
9314 | hardcode_shlibpath_var=no | |
9315 | ;; | |
b9668ba4 | 9316 | |
5c706339 AK |
9317 | *) |
9318 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
c45550e5 AK |
9319 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9320 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
5c706339 AK |
9321 | else |
9322 | ld_shlibs=no | |
9323 | fi | |
9324 | ;; | |
9325 | esac | |
b9668ba4 | 9326 | |
c45550e5 | 9327 | if test no = "$ld_shlibs"; then |
5c706339 AK |
9328 | runpath_var= |
9329 | hardcode_libdir_flag_spec= | |
9330 | export_dynamic_flag_spec= | |
9331 | whole_archive_flag_spec= | |
9332 | fi | |
9333 | else | |
9334 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9335 | case $host_os in | |
9336 | aix3*) | |
9337 | allow_undefined_flag=unsupported | |
9338 | always_export_symbols=yes | |
9339 | 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' | |
9340 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9341 | # are no directories specified by -L. | |
9342 | hardcode_minus_L=yes | |
c45550e5 | 9343 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
5c706339 AK |
9344 | # Neither direct hardcoding nor static linking is supported with a |
9345 | # broken collect2. | |
9346 | hardcode_direct=unsupported | |
9347 | fi | |
9348 | ;; | |
b9668ba4 | 9349 | |
5c706339 | 9350 | aix[4-9]*) |
c45550e5 | 9351 | if test ia64 = "$host_cpu"; then |
5c706339 AK |
9352 | # On IA64, the linker does run time linking by default, so we don't |
9353 | # have to do anything special. | |
9354 | aix_use_runtimelinking=no | |
9355 | exp_sym_flag='-Bexport' | |
c45550e5 | 9356 | no_entry_flag= |
5c706339 AK |
9357 | else |
9358 | # If we're using GNU nm, then we don't want the "-C" option. | |
c45550e5 AK |
9359 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9360 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9361 | # weak defined symbols like other global defined symbols, whereas | |
9362 | # GNU nm marks them as "W". | |
9363 | # While the 'weak' keyword is ignored in the Export File, we need | |
9364 | # it in the Import File for the 'aix-soname' feature, so we have | |
9365 | # to replace the "-B" option with "-P" for AIX nm. | |
5c706339 | 9366 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
c45550e5 | 9367 | 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' |
5c706339 | 9368 | else |
c45550e5 | 9369 | 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' |
5c706339 AK |
9370 | fi |
9371 | aix_use_runtimelinking=no | |
b9668ba4 | 9372 | |
5c706339 AK |
9373 | # Test if we are trying to use run time linking or normal |
9374 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
c45550e5 AK |
9375 | # have runtime linking enabled, and use it for executables. |
9376 | # For shared libraries, we enable/disable runtime linking | |
9377 | # depending on the kind of the shared library created - | |
9378 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9379 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9380 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9381 | # lib.a static archive | |
9382 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9383 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9384 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9385 | # lib.a(lib.so.V) shared, rtl:no | |
9386 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9387 | # lib.a static archive | |
5c706339 AK |
9388 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9389 | for ld_flag in $LDFLAGS; do | |
c45550e5 | 9390 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
5c706339 AK |
9391 | aix_use_runtimelinking=yes |
9392 | break | |
9393 | fi | |
9394 | done | |
c45550e5 AK |
9395 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9396 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9397 | # so we don't have lib.a shared libs to link our executables. | |
9398 | # We have to force runtime linking in this case. | |
9399 | aix_use_runtimelinking=yes | |
9400 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9401 | fi | |
5c706339 AK |
9402 | ;; |
9403 | esac | |
b9668ba4 | 9404 | |
5c706339 AK |
9405 | exp_sym_flag='-bexport' |
9406 | no_entry_flag='-bnoentry' | |
9407 | fi | |
b9668ba4 | 9408 | |
5c706339 AK |
9409 | # When large executables or shared objects are built, AIX ld can |
9410 | # have problems creating the table of contents. If linking a library | |
9411 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9412 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9413 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
b9668ba4 | 9414 | |
5c706339 AK |
9415 | archive_cmds='' |
9416 | hardcode_direct=yes | |
9417 | hardcode_direct_absolute=yes | |
9418 | hardcode_libdir_separator=':' | |
9419 | link_all_deplibs=yes | |
c45550e5 AK |
9420 | file_list_spec='$wl-f,' |
9421 | case $with_aix_soname,$aix_use_runtimelinking in | |
9422 | aix,*) ;; # traditional, no import file | |
9423 | svr4,* | *,yes) # use import file | |
9424 | # The Import File defines what to hardcode. | |
9425 | hardcode_direct=no | |
9426 | hardcode_direct_absolute=no | |
9427 | ;; | |
9428 | esac | |
b9668ba4 | 9429 | |
c45550e5 | 9430 | if test yes = "$GCC"; then |
5c706339 AK |
9431 | case $host_os in aix4.[012]|aix4.[012].*) |
9432 | # We only want to do this on AIX 4.2 and lower, the check | |
9433 | # below for broken collect2 doesn't work under 4.3+ | |
c45550e5 | 9434 | collect2name=`$CC -print-prog-name=collect2` |
5c706339 AK |
9435 | if test -f "$collect2name" && |
9436 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9437 | then | |
9438 | # We have reworked collect2 | |
9439 | : | |
9440 | else | |
9441 | # We have old collect2 | |
9442 | hardcode_direct=unsupported | |
9443 | # It fails to find uninstalled libraries when the uninstalled | |
9444 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9445 | # to unsupported forces relinking | |
9446 | hardcode_minus_L=yes | |
9447 | hardcode_libdir_flag_spec='-L$libdir' | |
9448 | hardcode_libdir_separator= | |
9449 | fi | |
9450 | ;; | |
9451 | esac | |
9452 | shared_flag='-shared' | |
c45550e5 AK |
9453 | if test yes = "$aix_use_runtimelinking"; then |
9454 | shared_flag="$shared_flag "'$wl-G' | |
5c706339 | 9455 | fi |
c45550e5 AK |
9456 | # Need to ensure runtime linking is disabled for the traditional |
9457 | # shared library, or the linker may eventually find shared libraries | |
9458 | # /with/ Import File - we do not want to mix them. | |
9459 | shared_flag_aix='-shared' | |
9460 | shared_flag_svr4='-shared $wl-G' | |
5c706339 AK |
9461 | else |
9462 | # not using gcc | |
c45550e5 | 9463 | if test ia64 = "$host_cpu"; then |
5c706339 AK |
9464 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9465 | # chokes on -Wl,-G. The following line is correct: | |
9466 | shared_flag='-G' | |
9467 | else | |
c45550e5 AK |
9468 | if test yes = "$aix_use_runtimelinking"; then |
9469 | shared_flag='$wl-G' | |
5c706339 | 9470 | else |
c45550e5 | 9471 | shared_flag='$wl-bM:SRE' |
5c706339 | 9472 | fi |
c45550e5 AK |
9473 | shared_flag_aix='$wl-bM:SRE' |
9474 | shared_flag_svr4='$wl-G' | |
5c706339 AK |
9475 | fi |
9476 | fi | |
b9668ba4 | 9477 | |
c45550e5 | 9478 | export_dynamic_flag_spec='$wl-bexpall' |
5c706339 AK |
9479 | # It seems that -bexpall does not export symbols beginning with |
9480 | # underscore (_), so it is better to generate a list of symbols to export. | |
9481 | always_export_symbols=yes | |
c45550e5 | 9482 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
5c706339 AK |
9483 | # Warning - without using the other runtime loading flags (-brtl), |
9484 | # -berok will link without error, but may produce a broken library. | |
9485 | allow_undefined_flag='-berok' | |
9486 | # Determine the default libpath from the value encoded in an | |
9487 | # empty executable. | |
c45550e5 | 9488 | if test set = "${lt_cv_aix_libpath+set}"; then |
059850b5 AK |
9489 | aix_libpath=$lt_cv_aix_libpath |
9490 | else | |
9491 | if ${lt_cv_aix_libpath_+:} false; then : | |
9492 | $as_echo_n "(cached) " >&6 | |
9493 | else | |
9494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5c706339 | 9495 | /* end confdefs.h. */ |
b9668ba4 | 9496 | |
5c706339 AK |
9497 | int |
9498 | main () | |
9499 | { | |
b9668ba4 | 9500 | |
5c706339 AK |
9501 | ; |
9502 | return 0; | |
9503 | } | |
9504 | _ACEOF | |
0fbeb4dc | 9505 | if ac_fn_c_try_link "$LINENO"; then : |
b9668ba4 | 9506 | |
059850b5 AK |
9507 | lt_aix_libpath_sed=' |
9508 | /Import File Strings/,/^$/ { | |
9509 | /^0/ { | |
9510 | s/^0 *\([^ ]*\) *$/\1/ | |
9511 | p | |
9512 | } | |
9513 | }' | |
9514 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9515 | # Check for a 64-bit object if we didn't find anything. | |
9516 | if test -z "$lt_cv_aix_libpath_"; then | |
9517 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9518 | fi | |
5c706339 | 9519 | fi |
0fbeb4dc AK |
9520 | rm -f core conftest.err conftest.$ac_objext \ |
9521 | conftest$ac_exeext conftest.$ac_ext | |
059850b5 | 9522 | if test -z "$lt_cv_aix_libpath_"; then |
c45550e5 | 9523 | lt_cv_aix_libpath_=/usr/lib:/lib |
059850b5 AK |
9524 | fi |
9525 | ||
9526 | fi | |
9527 | ||
9528 | aix_libpath=$lt_cv_aix_libpath_ | |
9529 | fi | |
b9668ba4 | 9530 | |
c45550e5 AK |
9531 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9532 | 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 | |
5c706339 | 9533 | else |
c45550e5 AK |
9534 | if test ia64 = "$host_cpu"; then |
9535 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
5c706339 | 9536 | allow_undefined_flag="-z nodefs" |
c45550e5 | 9537 | 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" |
5c706339 AK |
9538 | else |
9539 | # Determine the default libpath from the value encoded in an | |
9540 | # empty executable. | |
c45550e5 | 9541 | if test set = "${lt_cv_aix_libpath+set}"; then |
059850b5 AK |
9542 | aix_libpath=$lt_cv_aix_libpath |
9543 | else | |
9544 | if ${lt_cv_aix_libpath_+:} false; then : | |
9545 | $as_echo_n "(cached) " >&6 | |
9546 | else | |
9547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5c706339 | 9548 | /* end confdefs.h. */ |
b9668ba4 | 9549 | |
5c706339 AK |
9550 | int |
9551 | main () | |
9552 | { | |
b9668ba4 | 9553 | |
5c706339 AK |
9554 | ; |
9555 | return 0; | |
9556 | } | |
9557 | _ACEOF | |
0fbeb4dc | 9558 | if ac_fn_c_try_link "$LINENO"; then : |
b9668ba4 | 9559 | |
059850b5 AK |
9560 | lt_aix_libpath_sed=' |
9561 | /Import File Strings/,/^$/ { | |
9562 | /^0/ { | |
9563 | s/^0 *\([^ ]*\) *$/\1/ | |
9564 | p | |
9565 | } | |
9566 | }' | |
9567 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9568 | # Check for a 64-bit object if we didn't find anything. | |
9569 | if test -z "$lt_cv_aix_libpath_"; then | |
9570 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9571 | fi | |
5c706339 | 9572 | fi |
0fbeb4dc AK |
9573 | rm -f core conftest.err conftest.$ac_objext \ |
9574 | conftest$ac_exeext conftest.$ac_ext | |
059850b5 | 9575 | if test -z "$lt_cv_aix_libpath_"; then |
c45550e5 | 9576 | lt_cv_aix_libpath_=/usr/lib:/lib |
059850b5 AK |
9577 | fi |
9578 | ||
9579 | fi | |
9580 | ||
9581 | aix_libpath=$lt_cv_aix_libpath_ | |
9582 | fi | |
b9668ba4 | 9583 | |
c45550e5 | 9584 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
5c706339 AK |
9585 | # Warning - without using the other run time loading flags, |
9586 | # -berok will link without error, but may produce a broken library. | |
c45550e5 AK |
9587 | no_undefined_flag=' $wl-bernotok' |
9588 | allow_undefined_flag=' $wl-berok' | |
9589 | if test yes = "$with_gnu_ld"; then | |
059850b5 | 9590 | # We only use this code for GNU lds that support --whole-archive. |
c45550e5 | 9591 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
059850b5 AK |
9592 | else |
9593 | # Exported symbols can be pulled into shared objects from archives | |
9594 | whole_archive_flag_spec='$convenience' | |
9595 | fi | |
5c706339 | 9596 | archive_cmds_need_lc=yes |
c45550e5 AK |
9597 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9598 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9599 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9600 | if test svr4 != "$with_aix_soname"; then | |
9601 | # This is similar to how AIX traditionally builds its shared libraries. | |
9602 | 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' | |
9603 | fi | |
9604 | if test aix != "$with_aix_soname"; then | |
9605 | 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' | |
9606 | else | |
9607 | # used by -dlpreopen to get the symbols | |
9608 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9609 | fi | |
9610 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
5c706339 AK |
9611 | fi |
9612 | fi | |
9613 | ;; | |
b9668ba4 | 9614 | |
5c706339 AK |
9615 | amigaos*) |
9616 | case $host_cpu in | |
9617 | powerpc) | |
9618 | # see comment about AmigaOS4 .so support | |
c45550e5 | 9619 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
5c706339 AK |
9620 | archive_expsym_cmds='' |
9621 | ;; | |
9622 | m68k) | |
9623 | 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)' | |
9624 | hardcode_libdir_flag_spec='-L$libdir' | |
9625 | hardcode_minus_L=yes | |
9626 | ;; | |
9627 | esac | |
9628 | ;; | |
b9668ba4 | 9629 | |
5c706339 AK |
9630 | bsdi[45]*) |
9631 | export_dynamic_flag_spec=-rdynamic | |
9632 | ;; | |
b9668ba4 | 9633 | |
47dc80f6 | 9634 | cygwin* | mingw* | pw32* | cegcc*) |
5c706339 AK |
9635 | # When not using gcc, we currently assume that we are using |
9636 | # Microsoft Visual C++. | |
9637 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9638 | # no search path for DLLs. | |
059850b5 AK |
9639 | case $cc_basename in |
9640 | cl*) | |
9641 | # Native MSVC | |
9642 | hardcode_libdir_flag_spec=' ' | |
9643 | allow_undefined_flag=unsupported | |
9644 | always_export_symbols=yes | |
9645 | file_list_spec='@' | |
9646 | # Tell ltmain to make .lib files, not .a files. | |
9647 | libext=lib | |
9648 | # Tell ltmain to make .dll files, not .so files. | |
c45550e5 | 9649 | shrext_cmds=.dll |
059850b5 | 9650 | # FIXME: Setting linknames here is a bad hack. |
c45550e5 AK |
9651 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9652 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9653 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9654 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9655 | else | |
9656 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9657 | fi~ | |
9658 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9659 | linknames=' | |
059850b5 AK |
9660 | # The linker will not automatically build a static lib if we build a DLL. |
9661 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9662 | enable_shared_with_static_runtimes=yes | |
9663 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9664 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9665 | # Don't use ranlib | |
9666 | old_postinstall_cmds='chmod 644 $oldlib' | |
9667 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
c45550e5 AK |
9668 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9669 | case $lt_outputfile in | |
9670 | *.exe|*.EXE) ;; | |
9671 | *) | |
9672 | lt_outputfile=$lt_outputfile.exe | |
9673 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9674 | ;; | |
9675 | esac~ | |
9676 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9677 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9678 | $RM "$lt_outputfile.manifest"; | |
9679 | fi' | |
059850b5 AK |
9680 | ;; |
9681 | *) | |
9682 | # Assume MSVC wrapper | |
9683 | hardcode_libdir_flag_spec=' ' | |
9684 | allow_undefined_flag=unsupported | |
9685 | # Tell ltmain to make .lib files, not .a files. | |
9686 | libext=lib | |
9687 | # Tell ltmain to make .dll files, not .so files. | |
c45550e5 | 9688 | shrext_cmds=.dll |
059850b5 AK |
9689 | # FIXME: Setting linknames here is a bad hack. |
9690 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9691 | # The linker will automatically build a .lib file if we build a DLL. | |
9692 | old_archive_from_new_cmds='true' | |
9693 | # FIXME: Should let the user specify the lib program. | |
9694 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9695 | enable_shared_with_static_runtimes=yes | |
9696 | ;; | |
9697 | esac | |
5c706339 | 9698 | ;; |
b9668ba4 | 9699 | |
5c706339 | 9700 | darwin* | rhapsody*) |
b9668ba4 | 9701 | |
b9668ba4 | 9702 | |
5c706339 AK |
9703 | archive_cmds_need_lc=no |
9704 | hardcode_direct=no | |
9705 | hardcode_automatic=yes | |
9706 | hardcode_shlibpath_var=unsupported | |
c45550e5 AK |
9707 | if test yes = "$lt_cv_ld_force_load"; then |
9708 | 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\"`' | |
059850b5 AK |
9709 | |
9710 | else | |
9711 | whole_archive_flag_spec='' | |
9712 | fi | |
5c706339 | 9713 | link_all_deplibs=yes |
c45550e5 | 9714 | allow_undefined_flag=$_lt_dar_allow_undefined |
47dc80f6 | 9715 | case $cc_basename in |
c45550e5 | 9716 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
47dc80f6 AK |
9717 | *) _lt_dar_can_shared=$GCC ;; |
9718 | esac | |
c45550e5 | 9719 | if test yes = "$_lt_dar_can_shared"; then |
059850b5 | 9720 | output_verbose_link_cmd=func_echo_all |
c45550e5 AK |
9721 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9722 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9723 | 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" | |
9724 | 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" | |
b9668ba4 | 9725 | |
5c706339 AK |
9726 | else |
9727 | ld_shlibs=no | |
9728 | fi | |
b9668ba4 | 9729 | |
5c706339 | 9730 | ;; |
b9668ba4 | 9731 | |
5c706339 AK |
9732 | dgux*) |
9733 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9734 | hardcode_libdir_flag_spec='-L$libdir' | |
9735 | hardcode_shlibpath_var=no | |
9736 | ;; | |
b9668ba4 | 9737 | |
5c706339 AK |
9738 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9739 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9740 | # does not break anything, and helps significantly (at the cost of a little | |
9741 | # extra space). | |
9742 | freebsd2.2*) | |
9743 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9744 | hardcode_libdir_flag_spec='-R$libdir' | |
9745 | hardcode_direct=yes | |
9746 | hardcode_shlibpath_var=no | |
9747 | ;; | |
b9668ba4 | 9748 | |
5c706339 | 9749 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
059850b5 | 9750 | freebsd2.*) |
5c706339 AK |
9751 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9752 | hardcode_direct=yes | |
9753 | hardcode_minus_L=yes | |
9754 | hardcode_shlibpath_var=no | |
9755 | ;; | |
b9668ba4 | 9756 | |
5c706339 AK |
9757 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9758 | freebsd* | dragonfly*) | |
059850b5 | 9759 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9760 | hardcode_libdir_flag_spec='-R$libdir' |
9761 | hardcode_direct=yes | |
9762 | hardcode_shlibpath_var=no | |
9763 | ;; | |
b9668ba4 | 9764 | |
5c706339 | 9765 | hpux9*) |
c45550e5 AK |
9766 | if test yes = "$GCC"; then |
9767 | 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' | |
5c706339 | 9768 | else |
c45550e5 | 9769 | 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' |
5c706339 | 9770 | fi |
c45550e5 | 9771 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
5c706339 AK |
9772 | hardcode_libdir_separator=: |
9773 | hardcode_direct=yes | |
b9668ba4 | 9774 | |
5c706339 AK |
9775 | # hardcode_minus_L: Not really in the search PATH, |
9776 | # but as the default location of the library. | |
9777 | hardcode_minus_L=yes | |
c45550e5 | 9778 | export_dynamic_flag_spec='$wl-E' |
5c706339 | 9779 | ;; |
b9668ba4 | 9780 | |
5c706339 | 9781 | hpux10*) |
c45550e5 AK |
9782 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9783 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 AK |
9784 | else |
9785 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9786 | fi | |
c45550e5 AK |
9787 | if test no = "$with_gnu_ld"; then |
9788 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
5c706339 AK |
9789 | hardcode_libdir_separator=: |
9790 | hardcode_direct=yes | |
9791 | hardcode_direct_absolute=yes | |
c45550e5 | 9792 | export_dynamic_flag_spec='$wl-E' |
5c706339 AK |
9793 | # hardcode_minus_L: Not really in the search PATH, |
9794 | # but as the default location of the library. | |
9795 | hardcode_minus_L=yes | |
9796 | fi | |
9797 | ;; | |
b9668ba4 | 9798 | |
5c706339 | 9799 | hpux11*) |
c45550e5 | 9800 | if test yes,no = "$GCC,$with_gnu_ld"; then |
5c706339 AK |
9801 | case $host_cpu in |
9802 | hppa*64*) | |
c45550e5 | 9803 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9804 | ;; |
9805 | ia64*) | |
c45550e5 | 9806 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9807 | ;; |
9808 | *) | |
c45550e5 | 9809 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9810 | ;; |
9811 | esac | |
9812 | else | |
9813 | case $host_cpu in | |
9814 | hppa*64*) | |
c45550e5 | 9815 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9816 | ;; |
9817 | ia64*) | |
c45550e5 | 9818 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
9819 | ;; |
9820 | *) | |
059850b5 AK |
9821 | |
9822 | # Older versions of the 11.00 compiler do not understand -b yet | |
9823 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9825 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9826 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9827 | $as_echo_n "(cached) " >&6 | |
9828 | else | |
9829 | lt_cv_prog_compiler__b=no | |
c45550e5 | 9830 | save_LDFLAGS=$LDFLAGS |
059850b5 AK |
9831 | LDFLAGS="$LDFLAGS -b" |
9832 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9833 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9834 | # The linker can only warn and ignore the option if not recognized | |
9835 | # So say no if there are warnings | |
9836 | if test -s conftest.err; then | |
9837 | # Append any errors to the config.log. | |
9838 | cat conftest.err 1>&5 | |
9839 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9840 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9841 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9842 | lt_cv_prog_compiler__b=yes | |
9843 | fi | |
9844 | else | |
9845 | lt_cv_prog_compiler__b=yes | |
9846 | fi | |
9847 | fi | |
9848 | $RM -r conftest* | |
c45550e5 | 9849 | LDFLAGS=$save_LDFLAGS |
059850b5 AK |
9850 | |
9851 | fi | |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9853 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9854 | ||
c45550e5 AK |
9855 | if test yes = "$lt_cv_prog_compiler__b"; then |
9856 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
059850b5 AK |
9857 | else |
9858 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9859 | fi | |
9860 | ||
5c706339 AK |
9861 | ;; |
9862 | esac | |
9863 | fi | |
c45550e5 AK |
9864 | if test no = "$with_gnu_ld"; then |
9865 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
5c706339 | 9866 | hardcode_libdir_separator=: |
b9668ba4 | 9867 | |
5c706339 AK |
9868 | case $host_cpu in |
9869 | hppa*64*|ia64*) | |
9870 | hardcode_direct=no | |
9871 | hardcode_shlibpath_var=no | |
9872 | ;; | |
9873 | *) | |
9874 | hardcode_direct=yes | |
9875 | hardcode_direct_absolute=yes | |
c45550e5 | 9876 | export_dynamic_flag_spec='$wl-E' |
b9668ba4 | 9877 | |
5c706339 AK |
9878 | # hardcode_minus_L: Not really in the search PATH, |
9879 | # but as the default location of the library. | |
9880 | hardcode_minus_L=yes | |
9881 | ;; | |
9882 | esac | |
9883 | fi | |
9884 | ;; | |
b9668ba4 | 9885 | |
5c706339 | 9886 | irix5* | irix6* | nonstopux*) |
c45550e5 AK |
9887 | if test yes = "$GCC"; then |
9888 | 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' | |
5c706339 AK |
9889 | # Try to use the -exported_symbol ld option, if it does not |
9890 | # work, assume that -exports_file does not work either and | |
9891 | # implicitly export all symbols. | |
059850b5 AK |
9892 | # This should be the same for all languages, so no per-tag cache variable. |
9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9894 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9895 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9896 | $as_echo_n "(cached) " >&6 | |
9897 | else | |
c45550e5 AK |
9898 | save_LDFLAGS=$LDFLAGS |
9899 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
059850b5 | 9900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0fbeb4dc | 9901 | /* end confdefs.h. */ |
059850b5 | 9902 | int foo (void) { return 0; } |
5c706339 | 9903 | _ACEOF |
0fbeb4dc | 9904 | if ac_fn_c_try_link "$LINENO"; then : |
059850b5 AK |
9905 | lt_cv_irix_exported_symbol=yes |
9906 | else | |
9907 | lt_cv_irix_exported_symbol=no | |
5c706339 | 9908 | fi |
0fbeb4dc AK |
9909 | rm -f core conftest.err conftest.$ac_objext \ |
9910 | conftest$ac_exeext conftest.$ac_ext | |
c45550e5 | 9911 | LDFLAGS=$save_LDFLAGS |
059850b5 AK |
9912 | fi |
9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9914 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
c45550e5 AK |
9915 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9916 | 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' | |
059850b5 | 9917 | fi |
5070705b | 9918 | link_all_deplibs=no |
5c706339 | 9919 | else |
c45550e5 AK |
9920 | 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' |
9921 | 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' | |
5c706339 AK |
9922 | fi |
9923 | archive_cmds_need_lc='no' | |
c45550e5 | 9924 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
5c706339 AK |
9925 | hardcode_libdir_separator=: |
9926 | inherit_rpath=yes | |
9927 | link_all_deplibs=yes | |
9928 | ;; | |
b9668ba4 | 9929 | |
c45550e5 AK |
9930 | linux*) |
9931 | case $cc_basename in | |
9932 | tcc*) | |
9933 | # Fabrice Bellard et al's Tiny C Compiler | |
9934 | ld_shlibs=yes | |
9935 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9936 | ;; | |
9937 | esac | |
9938 | ;; | |
9939 | ||
5070705b | 9940 | netbsd* | netbsdelf*-gnu) |
5c706339 AK |
9941 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9942 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9943 | else | |
9944 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9945 | fi | |
9946 | hardcode_libdir_flag_spec='-R$libdir' | |
9947 | hardcode_direct=yes | |
9948 | hardcode_shlibpath_var=no | |
9949 | ;; | |
b9668ba4 | 9950 | |
5c706339 AK |
9951 | newsos6) |
9952 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9953 | hardcode_direct=yes | |
c45550e5 | 9954 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
5c706339 AK |
9955 | hardcode_libdir_separator=: |
9956 | hardcode_shlibpath_var=no | |
9957 | ;; | |
b9668ba4 | 9958 | |
5c706339 AK |
9959 | *nto* | *qnx*) |
9960 | ;; | |
b9668ba4 | 9961 | |
c45550e5 | 9962 | openbsd* | bitrig*) |
5c706339 AK |
9963 | if test -f /usr/libexec/ld.so; then |
9964 | hardcode_direct=yes | |
9965 | hardcode_shlibpath_var=no | |
9966 | hardcode_direct_absolute=yes | |
c45550e5 | 9967 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5c706339 | 9968 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
c45550e5 AK |
9969 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9970 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9971 | export_dynamic_flag_spec='$wl-E' | |
5c706339 | 9972 | else |
c45550e5 AK |
9973 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9974 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
5c706339 AK |
9975 | fi |
9976 | else | |
9977 | ld_shlibs=no | |
9978 | fi | |
9979 | ;; | |
b9668ba4 | 9980 | |
5c706339 AK |
9981 | os2*) |
9982 | hardcode_libdir_flag_spec='-L$libdir' | |
9983 | hardcode_minus_L=yes | |
9984 | allow_undefined_flag=unsupported | |
c45550e5 AK |
9985 | shrext_cmds=.dll |
9986 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9987 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9988 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9989 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9990 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9991 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9992 | emximp -o $lib $output_objdir/$libname.def' | |
9993 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9994 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9995 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9996 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9997 | prefix_cmds="$SED"~ | |
9998 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9999 | prefix_cmds="$prefix_cmds -e 1d"; | |
10000 | fi~ | |
10001 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10002 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10003 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10004 | emximp -o $lib $output_objdir/$libname.def' | |
10005 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10006 | enable_shared_with_static_runtimes=yes | |
5c706339 | 10007 | ;; |
b9668ba4 | 10008 | |
5c706339 | 10009 | osf3*) |
c45550e5 AK |
10010 | if test yes = "$GCC"; then |
10011 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10012 | 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' | |
5c706339 AK |
10013 | else |
10014 | allow_undefined_flag=' -expect_unresolved \*' | |
c45550e5 | 10015 | 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' |
5c706339 AK |
10016 | fi |
10017 | archive_cmds_need_lc='no' | |
c45550e5 | 10018 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
5c706339 AK |
10019 | hardcode_libdir_separator=: |
10020 | ;; | |
b9668ba4 | 10021 | |
5c706339 | 10022 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
c45550e5 AK |
10023 | if test yes = "$GCC"; then |
10024 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10025 | 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' | |
10026 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
5c706339 AK |
10027 | else |
10028 | allow_undefined_flag=' -expect_unresolved \*' | |
c45550e5 | 10029 | 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' |
5c706339 | 10030 | 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~ |
c45550e5 | 10031 | $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' |
b9668ba4 | 10032 | |
5c706339 AK |
10033 | # Both c and cxx compiler support -rpath directly |
10034 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10035 | fi | |
10036 | archive_cmds_need_lc='no' | |
10037 | hardcode_libdir_separator=: | |
10038 | ;; | |
b9668ba4 | 10039 | |
5c706339 AK |
10040 | solaris*) |
10041 | no_undefined_flag=' -z defs' | |
c45550e5 AK |
10042 | if test yes = "$GCC"; then |
10043 | wlarc='$wl' | |
10044 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 | 10045 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
c45550e5 | 10046 | $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' |
5c706339 AK |
10047 | else |
10048 | case `$CC -V 2>&1` in | |
10049 | *"Compilers 5.0"*) | |
10050 | wlarc='' | |
c45550e5 | 10051 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5c706339 | 10052 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
c45550e5 | 10053 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
5c706339 AK |
10054 | ;; |
10055 | *) | |
c45550e5 AK |
10056 | wlarc='$wl' |
10057 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 | 10058 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
c45550e5 | 10059 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
5c706339 AK |
10060 | ;; |
10061 | esac | |
10062 | fi | |
10063 | hardcode_libdir_flag_spec='-R$libdir' | |
10064 | hardcode_shlibpath_var=no | |
10065 | case $host_os in | |
10066 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10067 | *) | |
10068 | # The compiler driver will combine and reorder linker options, | |
c45550e5 | 10069 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
5c706339 AK |
10070 | # but is careful enough not to reorder. |
10071 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
c45550e5 AK |
10072 | if test yes = "$GCC"; then |
10073 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
5c706339 AK |
10074 | else |
10075 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10076 | fi | |
10077 | ;; | |
10078 | esac | |
10079 | link_all_deplibs=yes | |
10080 | ;; | |
b9668ba4 | 10081 | |
5c706339 | 10082 | sunos4*) |
c45550e5 | 10083 | if test sequent = "$host_vendor"; then |
5c706339 AK |
10084 | # Use $CC to link under sequent, because it throws in some extra .o |
10085 | # files that make .init and .fini sections work. | |
c45550e5 | 10086 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
5c706339 AK |
10087 | else |
10088 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10089 | fi | |
10090 | hardcode_libdir_flag_spec='-L$libdir' | |
10091 | hardcode_direct=yes | |
10092 | hardcode_minus_L=yes | |
10093 | hardcode_shlibpath_var=no | |
10094 | ;; | |
b9668ba4 | 10095 | |
5c706339 AK |
10096 | sysv4) |
10097 | case $host_vendor in | |
10098 | sni) | |
10099 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10100 | hardcode_direct=yes # is this really true??? | |
10101 | ;; | |
10102 | siemens) | |
10103 | ## LD is ld it makes a PLAMLIB | |
10104 | ## CC just makes a GrossModule. | |
10105 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10106 | reload_cmds='$CC -r -o $output$reload_objs' | |
10107 | hardcode_direct=no | |
10108 | ;; | |
10109 | motorola) | |
10110 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10111 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10112 | ;; | |
10113 | esac | |
10114 | runpath_var='LD_RUN_PATH' | |
10115 | hardcode_shlibpath_var=no | |
10116 | ;; | |
b9668ba4 | 10117 | |
5c706339 AK |
10118 | sysv4.3*) |
10119 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10120 | hardcode_shlibpath_var=no | |
10121 | export_dynamic_flag_spec='-Bexport' | |
10122 | ;; | |
b9668ba4 | 10123 | |
5c706339 AK |
10124 | sysv4*MP*) |
10125 | if test -d /usr/nec; then | |
10126 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10127 | hardcode_shlibpath_var=no | |
10128 | runpath_var=LD_RUN_PATH | |
10129 | hardcode_runpath_var=yes | |
10130 | ld_shlibs=yes | |
10131 | fi | |
10132 | ;; | |
b9668ba4 | 10133 | |
5c706339 | 10134 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
c45550e5 | 10135 | no_undefined_flag='$wl-z,text' |
5c706339 AK |
10136 | archive_cmds_need_lc=no |
10137 | hardcode_shlibpath_var=no | |
10138 | runpath_var='LD_RUN_PATH' | |
b9668ba4 | 10139 | |
c45550e5 AK |
10140 | if test yes = "$GCC"; then |
10141 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10142 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 | 10143 | else |
c45550e5 AK |
10144 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10145 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 AK |
10146 | fi |
10147 | ;; | |
b9668ba4 | 10148 | |
5c706339 | 10149 | sysv5* | sco3.2v5* | sco5v6*) |
c45550e5 | 10150 | # Note: We CANNOT use -z defs as we might desire, because we do not |
5c706339 AK |
10151 | # link with -lc, and that would cause any symbols used from libc to |
10152 | # always be unresolved, which means just about no library would | |
10153 | # ever link correctly. If we're not using GNU ld we use -z text | |
10154 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10155 | # as -z defs. | |
c45550e5 AK |
10156 | no_undefined_flag='$wl-z,text' |
10157 | allow_undefined_flag='$wl-z,nodefs' | |
5c706339 AK |
10158 | archive_cmds_need_lc=no |
10159 | hardcode_shlibpath_var=no | |
c45550e5 | 10160 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
5c706339 AK |
10161 | hardcode_libdir_separator=':' |
10162 | link_all_deplibs=yes | |
c45550e5 | 10163 | export_dynamic_flag_spec='$wl-Bexport' |
5c706339 | 10164 | runpath_var='LD_RUN_PATH' |
b9668ba4 | 10165 | |
c45550e5 AK |
10166 | if test yes = "$GCC"; then |
10167 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10168 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 | 10169 | else |
c45550e5 AK |
10170 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10171 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5c706339 AK |
10172 | fi |
10173 | ;; | |
b9668ba4 | 10174 | |
5c706339 AK |
10175 | uts4*) |
10176 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10177 | hardcode_libdir_flag_spec='-L$libdir' | |
10178 | hardcode_shlibpath_var=no | |
10179 | ;; | |
b9668ba4 | 10180 | |
5c706339 AK |
10181 | *) |
10182 | ld_shlibs=no | |
10183 | ;; | |
b9668ba4 AK |
10184 | esac |
10185 | ||
c45550e5 | 10186 | if test sni = "$host_vendor"; then |
5c706339 AK |
10187 | case $host in |
10188 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
c45550e5 | 10189 | export_dynamic_flag_spec='$wl-Blargedynsym' |
5c706339 AK |
10190 | ;; |
10191 | esac | |
b9668ba4 | 10192 | fi |
5c706339 | 10193 | fi |
b9668ba4 | 10194 | |
0fbeb4dc | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
47dc80f6 | 10196 | $as_echo "$ld_shlibs" >&6; } |
c45550e5 | 10197 | test no = "$ld_shlibs" && can_build_shared=no |
b9668ba4 | 10198 | |
5c706339 | 10199 | with_gnu_ld=$with_gnu_ld |
b9668ba4 | 10200 | |
b9668ba4 | 10201 | |
b9668ba4 | 10202 | |
b9668ba4 | 10203 | |
b9668ba4 | 10204 | |
b9668ba4 AK |
10205 | |
10206 | ||
b9668ba4 | 10207 | |
b9668ba4 AK |
10208 | |
10209 | ||
b9668ba4 AK |
10210 | |
10211 | ||
b9668ba4 | 10212 | |
b9668ba4 AK |
10213 | |
10214 | ||
5c706339 AK |
10215 | # |
10216 | # Do we need to explicitly link libc? | |
10217 | # | |
10218 | case "x$archive_cmds_need_lc" in | |
10219 | x|xyes) | |
10220 | # Assume -lc should be added | |
10221 | archive_cmds_need_lc=yes | |
b9668ba4 | 10222 | |
c45550e5 | 10223 | if test yes,yes = "$GCC,$enable_shared"; then |
5c706339 AK |
10224 | case $archive_cmds in |
10225 | *'~'*) | |
10226 | # FIXME: we may have to deal with multi-command sequences. | |
b9668ba4 | 10227 | ;; |
5c706339 AK |
10228 | '$CC '*) |
10229 | # Test whether the compiler implicitly links with -lc since on some | |
10230 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10231 | # to ld, don't add -lc before -lgcc. | |
0fbeb4dc | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
47dc80f6 | 10233 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
059850b5 AK |
10234 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10235 | $as_echo_n "(cached) " >&6 | |
10236 | else | |
10237 | $RM conftest* | |
10238 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
b9668ba4 | 10239 | |
059850b5 | 10240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5c706339 AK |
10241 | (eval $ac_compile) 2>&5 |
10242 | ac_status=$? | |
0fbeb4dc AK |
10243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10244 | test $ac_status = 0; } 2>conftest.err; then | |
059850b5 AK |
10245 | soname=conftest |
10246 | lib=conftest | |
10247 | libobjs=conftest.$ac_objext | |
10248 | deplibs= | |
10249 | wl=$lt_prog_compiler_wl | |
10250 | pic_flag=$lt_prog_compiler_pic | |
10251 | compiler_flags=-v | |
10252 | linker_flags=-v | |
10253 | verstring= | |
10254 | output_objdir=. | |
10255 | libname=conftest | |
10256 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10257 | allow_undefined_flag= | |
10258 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
5c706339 AK |
10259 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10260 | ac_status=$? | |
0fbeb4dc AK |
10261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10262 | test $ac_status = 0; } | |
059850b5 AK |
10263 | then |
10264 | lt_cv_archive_cmds_need_lc=no | |
10265 | else | |
10266 | lt_cv_archive_cmds_need_lc=yes | |
10267 | fi | |
10268 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10269 | else | |
10270 | cat conftest.err 1>&5 | |
10271 | fi | |
10272 | $RM conftest* | |
10273 | ||
10274 | fi | |
10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10276 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10277 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
5c706339 AK |
10278 | ;; |
10279 | esac | |
10280 | fi | |
b9668ba4 AK |
10281 | ;; |
10282 | esac | |
b9668ba4 AK |
10283 | |
10284 | ||
10285 | ||
b9668ba4 | 10286 | |
b9668ba4 | 10287 | |
b9668ba4 | 10288 | |
b9668ba4 | 10289 | |
b9668ba4 | 10290 | |
b9668ba4 | 10291 | |
b9668ba4 | 10292 | |
b9668ba4 | 10293 | |
b9668ba4 | 10294 | |
b9668ba4 | 10295 | |
b9668ba4 | 10296 | |
b9668ba4 | 10297 | |
b9668ba4 AK |
10298 | |
10299 | ||
b9668ba4 | 10300 | |
b9668ba4 | 10301 | |
b9668ba4 | 10302 | |
b9668ba4 | 10303 | |
b9668ba4 | 10304 | |
b9668ba4 | 10305 | |
b9668ba4 AK |
10306 | |
10307 | ||
b9668ba4 | 10308 | |
b9668ba4 | 10309 | |
b9668ba4 | 10310 | |
b9668ba4 | 10311 | |
b9668ba4 | 10312 | |
b9668ba4 | 10313 | |
b9668ba4 | 10314 | |
b9668ba4 | 10315 | |
b9668ba4 | 10316 | |
b9668ba4 | 10317 | |
b9668ba4 | 10318 | |
b9668ba4 | 10319 | |
b9668ba4 | 10320 | |
b9668ba4 | 10321 | |
b9668ba4 | 10322 | |
b9668ba4 | 10323 | |
b9668ba4 | 10324 | |
b9668ba4 | 10325 | |
b9668ba4 | 10326 | |
b9668ba4 | 10327 | |
b9668ba4 | 10328 | |
b9668ba4 | 10329 | |
b9668ba4 | 10330 | |
b9668ba4 | 10331 | |
b9668ba4 AK |
10332 | |
10333 | ||
b9668ba4 | 10334 | |
b9668ba4 | 10335 | |
b9668ba4 | 10336 | |
b9668ba4 | 10337 | |
b9668ba4 | 10338 | |
b9668ba4 | 10339 | |
b9668ba4 | 10340 | |
b9668ba4 | 10341 | |
b9668ba4 | 10342 | |
b9668ba4 AK |
10343 | |
10344 | ||
b9668ba4 | 10345 | |
b9668ba4 | 10346 | |
b9668ba4 | 10347 | |
b9668ba4 | 10348 | |
b9668ba4 | 10349 | |
b9668ba4 | 10350 | |
b9668ba4 | 10351 | |
b9668ba4 | 10352 | |
b9668ba4 | 10353 | |
b9668ba4 | 10354 | |
b9668ba4 | 10355 | |
b9668ba4 | 10356 | |
b9668ba4 | 10357 | |
b9668ba4 AK |
10358 | |
10359 | ||
b9668ba4 | 10360 | |
b9668ba4 | 10361 | |
b9668ba4 AK |
10362 | |
10363 | ||
b9668ba4 | 10364 | |
b9668ba4 | 10365 | |
b9668ba4 | 10366 | |
b9668ba4 | 10367 | |
b9668ba4 | 10368 | |
b9668ba4 | 10369 | |
b9668ba4 | 10370 | |
5c706339 AK |
10371 | |
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
5c706339 AK |
10429 | |
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
0fbeb4dc | 10435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
47dc80f6 | 10436 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
5c706339 | 10437 | |
c45550e5 | 10438 | if test yes = "$GCC"; then |
5c706339 | 10439 | case $host_os in |
c45550e5 AK |
10440 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10441 | *) lt_awk_arg='/^libraries:/' ;; | |
5c706339 | 10442 | esac |
059850b5 | 10443 | case $host_os in |
c45550e5 AK |
10444 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10445 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
059850b5 AK |
10446 | esac |
10447 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10448 | case $lt_search_path_spec in | |
10449 | *\;*) | |
5c706339 AK |
10450 | # if the path contains ";" then we assume it to be the separator |
10451 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10452 | # assumed that no part of a normal pathname contains ";" but that should | |
10453 | # okay in the real world where ";" in dirpaths is itself problematic. | |
059850b5 AK |
10454 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10455 | ;; | |
10456 | *) | |
10457 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10458 | ;; | |
10459 | esac | |
5c706339 | 10460 | # Ok, now we have the path, separated by spaces, we can step through it |
c45550e5 | 10461 | # and add multilib dir if necessary... |
5c706339 | 10462 | lt_tmp_lt_search_path_spec= |
c45550e5 AK |
10463 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10464 | # ...but if some path component already ends with the multilib dir we assume | |
10465 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10466 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10467 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10468 | lt_multi_os_dir= | |
10469 | ;; | |
10470 | esac | |
5c706339 | 10471 | for lt_sys_path in $lt_search_path_spec; do |
c45550e5 AK |
10472 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10473 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10474 | elif test -n "$lt_multi_os_dir"; then | |
5c706339 AK |
10475 | test -d "$lt_sys_path" && \ |
10476 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10477 | fi | |
10478 | done | |
059850b5 | 10479 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
c45550e5 AK |
10480 | BEGIN {RS = " "; FS = "/|\n";} { |
10481 | lt_foo = ""; | |
10482 | lt_count = 0; | |
5c706339 AK |
10483 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10484 | if ($lt_i != "" && $lt_i != ".") { | |
10485 | if ($lt_i == "..") { | |
10486 | lt_count++; | |
10487 | } else { | |
10488 | if (lt_count == 0) { | |
c45550e5 | 10489 | lt_foo = "/" $lt_i lt_foo; |
5c706339 AK |
10490 | } else { |
10491 | lt_count--; | |
10492 | } | |
10493 | } | |
10494 | } | |
10495 | } | |
10496 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10497 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10498 | }'` | |
059850b5 AK |
10499 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10500 | # for these hosts. | |
10501 | case $host_os in | |
10502 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
c45550e5 | 10503 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
059850b5 AK |
10504 | esac |
10505 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
5c706339 AK |
10506 | else |
10507 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10508 | fi | |
b9668ba4 AK |
10509 | library_names_spec= |
10510 | libname_spec='lib$name' | |
10511 | soname_spec= | |
c45550e5 | 10512 | shrext_cmds=.so |
b9668ba4 AK |
10513 | postinstall_cmds= |
10514 | postuninstall_cmds= | |
10515 | finish_cmds= | |
10516 | finish_eval= | |
10517 | shlibpath_var= | |
10518 | shlibpath_overrides_runpath=unknown | |
10519 | version_type=none | |
10520 | dynamic_linker="$host_os ld.so" | |
10521 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
b9668ba4 AK |
10522 | need_lib_prefix=unknown |
10523 | hardcode_into_libs=no | |
10524 | ||
10525 | # when you set need_version to no, make sure it does not cause -set_version | |
10526 | # flags to be left without arguments | |
10527 | need_version=unknown | |
10528 | ||
c45550e5 AK |
10529 | |
10530 | ||
b9668ba4 AK |
10531 | case $host_os in |
10532 | aix3*) | |
059850b5 | 10533 | version_type=linux # correct to gnu/linux during the next big refactor |
c45550e5 | 10534 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
b9668ba4 AK |
10535 | shlibpath_var=LIBPATH |
10536 | ||
10537 | # AIX 3 has no versioning support, so we append a major version to the name. | |
c45550e5 | 10538 | soname_spec='$libname$release$shared_ext$major' |
b9668ba4 AK |
10539 | ;; |
10540 | ||
5c706339 | 10541 | aix[4-9]*) |
059850b5 | 10542 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
10543 | need_lib_prefix=no |
10544 | need_version=no | |
10545 | hardcode_into_libs=yes | |
c45550e5 | 10546 | if test ia64 = "$host_cpu"; then |
b9668ba4 | 10547 | # AIX 5 supports IA64 |
c45550e5 | 10548 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
b9668ba4 AK |
10549 | shlibpath_var=LD_LIBRARY_PATH |
10550 | else | |
10551 | # With GCC up to 2.95.x, collect2 would create an import file | |
10552 | # for dependence libraries. The import file would start with | |
c45550e5 AK |
10553 | # the line '#! .'. This would cause the generated library to |
10554 | # depend on '.', always an invalid library. This was fixed in | |
b9668ba4 AK |
10555 | # development snapshots of GCC prior to 3.0. |
10556 | case $host_os in | |
10557 | aix4 | aix4.[01] | aix4.[01].*) | |
10558 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10559 | echo ' yes ' | |
c45550e5 | 10560 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
b9668ba4 AK |
10561 | : |
10562 | else | |
10563 | can_build_shared=no | |
10564 | fi | |
10565 | ;; | |
10566 | esac | |
c45550e5 AK |
10567 | # Using Import Files as archive members, it is possible to support |
10568 | # filename-based versioning of shared library archives on AIX. While | |
10569 | # this would work for both with and without runtime linking, it will | |
10570 | # prevent static linking of such archives. So we do filename-based | |
10571 | # shared library versioning with .so extension only, which is used | |
10572 | # when both runtime linking and shared linking is enabled. | |
10573 | # Unfortunately, runtime linking may impact performance, so we do | |
10574 | # not want this to be the default eventually. Also, we use the | |
10575 | # versioned .so libs for executables only if there is the -brtl | |
10576 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10577 | # To allow for filename-based versioning support, we need to create | |
10578 | # libNAME.so.V as an archive file, containing: | |
10579 | # *) an Import File, referring to the versioned filename of the | |
10580 | # archive as well as the shared archive member, telling the | |
10581 | # bitwidth (32 or 64) of that shared object, and providing the | |
10582 | # list of exported symbols of that shared object, eventually | |
10583 | # decorated with the 'weak' keyword | |
10584 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10585 | # it being seen by the linker. | |
10586 | # At run time we better use the real file rather than another symlink, | |
10587 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10588 | ||
10589 | case $with_aix_soname,$aix_use_runtimelinking in | |
10590 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
b9668ba4 AK |
10591 | # soname into executable. Probably we can add versioning support to |
10592 | # collect2, so additional links can be useful in future. | |
c45550e5 AK |
10593 | aix,yes) # traditional libtool |
10594 | dynamic_linker='AIX unversionable lib.so' | |
b9668ba4 AK |
10595 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10596 | # instead of lib<name>.a to let people know that these are not | |
10597 | # typical AIX shared libraries. | |
c45550e5 AK |
10598 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10599 | ;; | |
10600 | aix,no) # traditional AIX only | |
10601 | dynamic_linker='AIX lib.a(lib.so.V)' | |
b9668ba4 AK |
10602 | # We preserve .a as extension for shared libraries through AIX4.2 |
10603 | # and later when we are not doing run time linking. | |
c45550e5 AK |
10604 | library_names_spec='$libname$release.a $libname.a' |
10605 | soname_spec='$libname$release$shared_ext$major' | |
10606 | ;; | |
10607 | svr4,*) # full svr4 only | |
10608 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10609 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10610 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10611 | shlibpath_overrides_runpath=yes | |
10612 | ;; | |
10613 | *,yes) # both, prefer svr4 | |
10614 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10615 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10616 | # unpreferred sharedlib libNAME.a needs extra handling | |
10617 | 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"' | |
10618 | 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"' | |
10619 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10620 | shlibpath_overrides_runpath=yes | |
10621 | ;; | |
10622 | *,no) # both, prefer aix | |
10623 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10624 | library_names_spec='$libname$release.a $libname.a' | |
10625 | soname_spec='$libname$release$shared_ext$major' | |
10626 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10627 | 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)' | |
10628 | 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"' | |
10629 | ;; | |
10630 | esac | |
b9668ba4 AK |
10631 | shlibpath_var=LIBPATH |
10632 | fi | |
10633 | ;; | |
10634 | ||
10635 | amigaos*) | |
5c706339 AK |
10636 | case $host_cpu in |
10637 | powerpc) | |
10638 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10639 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
c45550e5 | 10640 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
5c706339 AK |
10641 | ;; |
10642 | m68k) | |
10643 | library_names_spec='$libname.ixlibrary $libname.a' | |
10644 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
c45550e5 | 10645 | 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' |
5c706339 AK |
10646 | ;; |
10647 | esac | |
b9668ba4 AK |
10648 | ;; |
10649 | ||
10650 | beos*) | |
c45550e5 | 10651 | library_names_spec='$libname$shared_ext' |
b9668ba4 AK |
10652 | dynamic_linker="$host_os ld.so" |
10653 | shlibpath_var=LIBRARY_PATH | |
10654 | ;; | |
10655 | ||
10656 | bsdi[45]*) | |
059850b5 | 10657 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 | 10658 | need_version=no |
c45550e5 AK |
10659 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10660 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10662 | shlibpath_var=LD_LIBRARY_PATH | |
10663 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10664 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10665 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10666 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10667 | # libtool to hard-code these into programs | |
10668 | ;; | |
10669 | ||
47dc80f6 | 10670 | cygwin* | mingw* | pw32* | cegcc*) |
b9668ba4 | 10671 | version_type=windows |
c45550e5 | 10672 | shrext_cmds=.dll |
b9668ba4 AK |
10673 | need_version=no |
10674 | need_lib_prefix=no | |
10675 | ||
059850b5 AK |
10676 | case $GCC,$cc_basename in |
10677 | yes,*) | |
10678 | # gcc | |
b9668ba4 AK |
10679 | library_names_spec='$libname.dll.a' |
10680 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
c45550e5 AK |
10681 | postinstall_cmds='base_file=`basename \$file`~ |
10682 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b9668ba4 AK |
10683 | dldir=$destdir/`dirname \$dlpath`~ |
10684 | test -d \$dldir || mkdir -p \$dldir~ | |
10685 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
5c706339 AK |
10686 | chmod a+x \$dldir/$dlname~ |
10687 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10688 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10689 | fi' | |
b9668ba4 AK |
10690 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10691 | dlpath=$dir/\$dldll~ | |
5c706339 | 10692 | $RM \$dlpath' |
b9668ba4 AK |
10693 | shlibpath_overrides_runpath=yes |
10694 | ||
10695 | case $host_os in | |
10696 | cygwin*) | |
10697 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
c45550e5 | 10698 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
059850b5 AK |
10699 | |
10700 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
b9668ba4 | 10701 | ;; |
47dc80f6 | 10702 | mingw* | cegcc*) |
b9668ba4 | 10703 | # MinGW DLLs use traditional 'lib' prefix |
c45550e5 | 10704 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b9668ba4 AK |
10705 | ;; |
10706 | pw32*) | |
10707 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
c45550e5 | 10708 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b9668ba4 AK |
10709 | ;; |
10710 | esac | |
059850b5 AK |
10711 | dynamic_linker='Win32 ld.exe' |
10712 | ;; | |
10713 | ||
10714 | *,cl*) | |
10715 | # Native MSVC | |
10716 | libname_spec='$name' | |
c45550e5 AK |
10717 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10718 | library_names_spec='$libname.dll.lib' | |
059850b5 AK |
10719 | |
10720 | case $build_os in | |
10721 | mingw*) | |
10722 | sys_lib_search_path_spec= | |
10723 | lt_save_ifs=$IFS | |
10724 | IFS=';' | |
10725 | for lt_path in $LIB | |
10726 | do | |
10727 | IFS=$lt_save_ifs | |
10728 | # Let DOS variable expansion print the short 8.3 style file name. | |
10729 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10730 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10731 | done | |
10732 | IFS=$lt_save_ifs | |
10733 | # Convert to MSYS style. | |
10734 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10735 | ;; | |
10736 | cygwin*) | |
10737 | # Convert to unix form, then to dos form, then back to unix form | |
10738 | # but this time dos style (no spaces!) so that the unix form looks | |
10739 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10740 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10741 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10742 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10743 | ;; | |
10744 | *) | |
c45550e5 | 10745 | sys_lib_search_path_spec=$LIB |
059850b5 AK |
10746 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10747 | # It is most probably a Windows format PATH. | |
10748 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10749 | else | |
10750 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10751 | fi | |
10752 | # FIXME: find the short name or the path components, as spaces are | |
10753 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10754 | ;; | |
10755 | esac | |
10756 | ||
10757 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
c45550e5 AK |
10758 | postinstall_cmds='base_file=`basename \$file`~ |
10759 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
059850b5 AK |
10760 | dldir=$destdir/`dirname \$dlpath`~ |
10761 | test -d \$dldir || mkdir -p \$dldir~ | |
10762 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10763 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10764 | dlpath=$dir/\$dldll~ | |
10765 | $RM \$dlpath' | |
10766 | shlibpath_overrides_runpath=yes | |
10767 | dynamic_linker='Win32 link.exe' | |
b9668ba4 AK |
10768 | ;; |
10769 | ||
10770 | *) | |
059850b5 | 10771 | # Assume MSVC wrapper |
c45550e5 | 10772 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
059850b5 | 10773 | dynamic_linker='Win32 ld.exe' |
b9668ba4 AK |
10774 | ;; |
10775 | esac | |
b9668ba4 AK |
10776 | # FIXME: first we should search . and the directory the executable is in |
10777 | shlibpath_var=PATH | |
10778 | ;; | |
10779 | ||
10780 | darwin* | rhapsody*) | |
10781 | dynamic_linker="$host_os dyld" | |
10782 | version_type=darwin | |
10783 | need_lib_prefix=no | |
10784 | need_version=no | |
c45550e5 AK |
10785 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10786 | soname_spec='$libname$release$major$shared_ext' | |
b9668ba4 AK |
10787 | shlibpath_overrides_runpath=yes |
10788 | shlibpath_var=DYLD_LIBRARY_PATH | |
10789 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
5c706339 AK |
10790 | |
10791 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
b9668ba4 AK |
10792 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10793 | ;; | |
10794 | ||
10795 | dgux*) | |
059850b5 | 10796 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
10797 | need_lib_prefix=no |
10798 | need_version=no | |
c45550e5 AK |
10799 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10800 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10801 | shlibpath_var=LD_LIBRARY_PATH |
10802 | ;; | |
10803 | ||
b9668ba4 AK |
10804 | freebsd* | dragonfly*) |
10805 | # DragonFly does not have aout. When/if they implement a new | |
10806 | # versioning mechanism, adjust this. | |
10807 | if test -x /usr/bin/objformat; then | |
10808 | objformat=`/usr/bin/objformat` | |
10809 | else | |
10810 | case $host_os in | |
059850b5 | 10811 | freebsd[23].*) objformat=aout ;; |
b9668ba4 AK |
10812 | *) objformat=elf ;; |
10813 | esac | |
10814 | fi | |
10815 | version_type=freebsd-$objformat | |
10816 | case $version_type in | |
10817 | freebsd-elf*) | |
c45550e5 AK |
10818 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10819 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10820 | need_version=no |
10821 | need_lib_prefix=no | |
10822 | ;; | |
10823 | freebsd-*) | |
c45550e5 | 10824 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
b9668ba4 AK |
10825 | need_version=yes |
10826 | ;; | |
10827 | esac | |
10828 | shlibpath_var=LD_LIBRARY_PATH | |
10829 | case $host_os in | |
059850b5 | 10830 | freebsd2.*) |
b9668ba4 AK |
10831 | shlibpath_overrides_runpath=yes |
10832 | ;; | |
10833 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10834 | shlibpath_overrides_runpath=yes | |
10835 | hardcode_into_libs=yes | |
10836 | ;; | |
10837 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10838 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10839 | shlibpath_overrides_runpath=no | |
10840 | hardcode_into_libs=yes | |
10841 | ;; | |
5c706339 | 10842 | *) # from 4.6 on, and DragonFly |
b9668ba4 AK |
10843 | shlibpath_overrides_runpath=yes |
10844 | hardcode_into_libs=yes | |
10845 | ;; | |
10846 | esac | |
10847 | ;; | |
10848 | ||
059850b5 AK |
10849 | haiku*) |
10850 | version_type=linux # correct to gnu/linux during the next big refactor | |
10851 | need_lib_prefix=no | |
10852 | need_version=no | |
10853 | dynamic_linker="$host_os runtime_loader" | |
c45550e5 AK |
10854 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10855 | soname_spec='$libname$release$shared_ext$major' | |
059850b5 | 10856 | shlibpath_var=LIBRARY_PATH |
c45550e5 | 10857 | shlibpath_overrides_runpath=no |
059850b5 | 10858 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
b9668ba4 AK |
10859 | hardcode_into_libs=yes |
10860 | ;; | |
10861 | ||
10862 | hpux9* | hpux10* | hpux11*) | |
10863 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10864 | # link against other versions. | |
10865 | version_type=sunos | |
10866 | need_lib_prefix=no | |
10867 | need_version=no | |
10868 | case $host_cpu in | |
10869 | ia64*) | |
10870 | shrext_cmds='.so' | |
10871 | hardcode_into_libs=yes | |
10872 | dynamic_linker="$host_os dld.so" | |
10873 | shlibpath_var=LD_LIBRARY_PATH | |
10874 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
c45550e5 AK |
10875 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10876 | soname_spec='$libname$release$shared_ext$major' | |
10877 | if test 32 = "$HPUX_IA64_MODE"; then | |
b9668ba4 | 10878 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
c45550e5 | 10879 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
b9668ba4 AK |
10880 | else |
10881 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
c45550e5 | 10882 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
b9668ba4 | 10883 | fi |
b9668ba4 | 10884 | ;; |
5c706339 AK |
10885 | hppa*64*) |
10886 | shrext_cmds='.sl' | |
10887 | hardcode_into_libs=yes | |
10888 | dynamic_linker="$host_os dld.sl" | |
10889 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10890 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
c45550e5 AK |
10891 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10892 | soname_spec='$libname$release$shared_ext$major' | |
5c706339 AK |
10893 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10894 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10895 | ;; | |
10896 | *) | |
b9668ba4 AK |
10897 | shrext_cmds='.sl' |
10898 | dynamic_linker="$host_os dld.sl" | |
10899 | shlibpath_var=SHLIB_PATH | |
10900 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
c45550e5 AK |
10901 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10902 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10903 | ;; |
10904 | esac | |
059850b5 | 10905 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
b9668ba4 | 10906 | postinstall_cmds='chmod 555 $lib' |
059850b5 AK |
10907 | # or fails outright, so override atomically: |
10908 | install_override_mode=555 | |
b9668ba4 AK |
10909 | ;; |
10910 | ||
5c706339 | 10911 | interix[3-9]*) |
059850b5 | 10912 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
10913 | need_lib_prefix=no |
10914 | need_version=no | |
c45550e5 AK |
10915 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10916 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10917 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10918 | shlibpath_var=LD_LIBRARY_PATH | |
10919 | shlibpath_overrides_runpath=no | |
10920 | hardcode_into_libs=yes | |
10921 | ;; | |
10922 | ||
10923 | irix5* | irix6* | nonstopux*) | |
10924 | case $host_os in | |
10925 | nonstopux*) version_type=nonstopux ;; | |
10926 | *) | |
c45550e5 | 10927 | if test yes = "$lt_cv_prog_gnu_ld"; then |
059850b5 | 10928 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
10929 | else |
10930 | version_type=irix | |
10931 | fi ;; | |
10932 | esac | |
10933 | need_lib_prefix=no | |
10934 | need_version=no | |
c45550e5 AK |
10935 | soname_spec='$libname$release$shared_ext$major' |
10936 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
b9668ba4 AK |
10937 | case $host_os in |
10938 | irix5* | nonstopux*) | |
10939 | libsuff= shlibsuff= | |
10940 | ;; | |
10941 | *) | |
10942 | case $LD in # libtool.m4 will add one of these switches to LD | |
10943 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10944 | libsuff= shlibsuff= libmagic=32-bit;; | |
10945 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10946 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10947 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10948 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10949 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10950 | esac | |
10951 | ;; | |
10952 | esac | |
10953 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10954 | shlibpath_overrides_runpath=no | |
c45550e5 AK |
10955 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10956 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
b9668ba4 AK |
10957 | hardcode_into_libs=yes |
10958 | ;; | |
10959 | ||
10960 | # No shared lib support for Linux oldld, aout, or coff. | |
10961 | linux*oldld* | linux*aout* | linux*coff*) | |
10962 | dynamic_linker=no | |
10963 | ;; | |
10964 | ||
c45550e5 AK |
10965 | linux*android*) |
10966 | version_type=none # Android doesn't support versioned libraries. | |
10967 | need_lib_prefix=no | |
10968 | need_version=no | |
10969 | library_names_spec='$libname$release$shared_ext' | |
10970 | soname_spec='$libname$release$shared_ext' | |
10971 | finish_cmds= | |
10972 | shlibpath_var=LD_LIBRARY_PATH | |
10973 | shlibpath_overrides_runpath=yes | |
10974 | ||
10975 | # This implies no fast_install, which is unacceptable. | |
10976 | # Some rework will be needed to allow for fast_install | |
10977 | # before this can be enabled. | |
10978 | hardcode_into_libs=yes | |
10979 | ||
10980 | dynamic_linker='Android linker' | |
10981 | # Don't embed -rpath directories since the linker doesn't support them. | |
10982 | hardcode_libdir_flag_spec='-L$libdir' | |
10983 | ;; | |
10984 | ||
059850b5 | 10985 | # This must be glibc/ELF. |
0044e680 | 10986 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
059850b5 | 10987 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
10988 | need_lib_prefix=no |
10989 | need_version=no | |
c45550e5 AK |
10990 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10991 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
10992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10993 | shlibpath_var=LD_LIBRARY_PATH | |
10994 | shlibpath_overrides_runpath=no | |
059850b5 | 10995 | |
5c706339 | 10996 | # Some binutils ld are patched to set DT_RUNPATH |
059850b5 AK |
10997 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10998 | $as_echo_n "(cached) " >&6 | |
10999 | else | |
11000 | lt_cv_shlibpath_overrides_runpath=no | |
11001 | save_LDFLAGS=$LDFLAGS | |
11002 | save_libdir=$libdir | |
11003 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11004 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5c706339 AK |
11006 | /* end confdefs.h. */ |
11007 | ||
11008 | int | |
11009 | main () | |
11010 | { | |
11011 | ||
11012 | ; | |
11013 | return 0; | |
11014 | } | |
11015 | _ACEOF | |
0fbeb4dc AK |
11016 | if ac_fn_c_try_link "$LINENO"; then : |
11017 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
059850b5 | 11018 | lt_cv_shlibpath_overrides_runpath=yes |
5c706339 | 11019 | fi |
5c706339 | 11020 | fi |
0fbeb4dc AK |
11021 | rm -f core conftest.err conftest.$ac_objext \ |
11022 | conftest$ac_exeext conftest.$ac_ext | |
059850b5 AK |
11023 | LDFLAGS=$save_LDFLAGS |
11024 | libdir=$save_libdir | |
11025 | ||
11026 | fi | |
11027 | ||
11028 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
5c706339 | 11029 | |
b9668ba4 AK |
11030 | # This implies no fast_install, which is unacceptable. |
11031 | # Some rework will be needed to allow for fast_install | |
11032 | # before this can be enabled. | |
11033 | hardcode_into_libs=yes | |
11034 | ||
c45550e5 AK |
11035 | # Ideally, we could use ldconfig to report *all* directores which are |
11036 | # searched for libraries, however this is still not possible. Aside from not | |
11037 | # being certain /sbin/ldconfig is available, command | |
11038 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11039 | # even though it is searched at run-time. Try to do the best guess by | |
11040 | # appending ld.so.conf contents (and includes) to the search path. | |
b9668ba4 | 11041 | if test -f /etc/ld.so.conf; then |
059850b5 | 11042 | 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' ' '` |
b9668ba4 AK |
11043 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11044 | fi | |
11045 | ||
11046 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11047 | # powerpc, because MkLinux only supported shared libraries with the | |
11048 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11049 | # most powerpc-linux boxes support dynamic linking these days and | |
11050 | # people can always --disable-shared, the test was removed, and we | |
11051 | # assume the GNU/Linux dynamic linker is in use. | |
11052 | dynamic_linker='GNU/Linux ld.so' | |
11053 | ;; | |
11054 | ||
5070705b AK |
11055 | netbsdelf*-gnu) |
11056 | version_type=linux | |
11057 | need_lib_prefix=no | |
11058 | need_version=no | |
11059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11060 | soname_spec='${libname}${release}${shared_ext}$major' | |
11061 | shlibpath_var=LD_LIBRARY_PATH | |
11062 | shlibpath_overrides_runpath=no | |
11063 | hardcode_into_libs=yes | |
11064 | dynamic_linker='NetBSD ld.elf_so' | |
11065 | ;; | |
11066 | ||
b9668ba4 AK |
11067 | netbsd*) |
11068 | version_type=sunos | |
11069 | need_lib_prefix=no | |
11070 | need_version=no | |
5c706339 | 11071 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
c45550e5 | 11072 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
b9668ba4 AK |
11073 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11074 | dynamic_linker='NetBSD (a.out) ld.so' | |
11075 | else | |
c45550e5 AK |
11076 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11077 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
11078 | dynamic_linker='NetBSD ld.elf_so' |
11079 | fi | |
11080 | shlibpath_var=LD_LIBRARY_PATH | |
11081 | shlibpath_overrides_runpath=yes | |
11082 | hardcode_into_libs=yes | |
11083 | ;; | |
11084 | ||
11085 | newsos6) | |
059850b5 | 11086 | version_type=linux # correct to gnu/linux during the next big refactor |
c45550e5 | 11087 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
b9668ba4 AK |
11088 | shlibpath_var=LD_LIBRARY_PATH |
11089 | shlibpath_overrides_runpath=yes | |
11090 | ;; | |
11091 | ||
5c706339 AK |
11092 | *nto* | *qnx*) |
11093 | version_type=qnx | |
b9668ba4 AK |
11094 | need_lib_prefix=no |
11095 | need_version=no | |
c45550e5 AK |
11096 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11097 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 | 11098 | shlibpath_var=LD_LIBRARY_PATH |
5c706339 AK |
11099 | shlibpath_overrides_runpath=no |
11100 | hardcode_into_libs=yes | |
11101 | dynamic_linker='ldqnx.so' | |
b9668ba4 AK |
11102 | ;; |
11103 | ||
c45550e5 | 11104 | openbsd* | bitrig*) |
b9668ba4 | 11105 | version_type=sunos |
c45550e5 | 11106 | sys_lib_dlsearch_path_spec=/usr/lib |
b9668ba4 | 11107 | need_lib_prefix=no |
c45550e5 AK |
11108 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11109 | need_version=no | |
b9668ba4 | 11110 | else |
c45550e5 | 11111 | need_version=yes |
b9668ba4 | 11112 | fi |
c45550e5 AK |
11113 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11114 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11115 | shlibpath_var=LD_LIBRARY_PATH | |
11116 | shlibpath_overrides_runpath=yes | |
b9668ba4 AK |
11117 | ;; |
11118 | ||
11119 | os2*) | |
11120 | libname_spec='$name' | |
c45550e5 AK |
11121 | version_type=windows |
11122 | shrext_cmds=.dll | |
11123 | need_version=no | |
b9668ba4 | 11124 | need_lib_prefix=no |
c45550e5 AK |
11125 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11126 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11127 | v=$($ECHO $release$versuffix | tr -d .-); | |
11128 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11129 | $ECHO $n$v`$shared_ext' | |
11130 | library_names_spec='${libname}_dll.$libext' | |
b9668ba4 | 11131 | dynamic_linker='OS/2 ld.exe' |
c45550e5 AK |
11132 | shlibpath_var=BEGINLIBPATH |
11133 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11134 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11135 | postinstall_cmds='base_file=`basename \$file`~ | |
11136 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11137 | dldir=$destdir/`dirname \$dlpath`~ | |
11138 | test -d \$dldir || mkdir -p \$dldir~ | |
11139 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11140 | chmod a+x \$dldir/$dlname~ | |
11141 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11142 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11143 | fi' | |
11144 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11145 | dlpath=$dir/\$dldll~ | |
11146 | $RM \$dlpath' | |
b9668ba4 AK |
11147 | ;; |
11148 | ||
11149 | osf3* | osf4* | osf5*) | |
11150 | version_type=osf | |
11151 | need_lib_prefix=no | |
11152 | need_version=no | |
c45550e5 AK |
11153 | soname_spec='$libname$release$shared_ext$major' |
11154 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
b9668ba4 AK |
11155 | shlibpath_var=LD_LIBRARY_PATH |
11156 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
c45550e5 | 11157 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
b9668ba4 AK |
11158 | ;; |
11159 | ||
5c706339 AK |
11160 | rdos*) |
11161 | dynamic_linker=no | |
11162 | ;; | |
11163 | ||
b9668ba4 | 11164 | solaris*) |
059850b5 | 11165 | version_type=linux # correct to gnu/linux during the next big refactor |
b9668ba4 AK |
11166 | need_lib_prefix=no |
11167 | need_version=no | |
c45550e5 AK |
11168 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11169 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
11170 | shlibpath_var=LD_LIBRARY_PATH |
11171 | shlibpath_overrides_runpath=yes | |
11172 | hardcode_into_libs=yes | |
11173 | # ldd complains unless libraries are executable | |
11174 | postinstall_cmds='chmod +x $lib' | |
11175 | ;; | |
11176 | ||
11177 | sunos4*) | |
11178 | version_type=sunos | |
c45550e5 | 11179 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
b9668ba4 AK |
11180 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11181 | shlibpath_var=LD_LIBRARY_PATH | |
11182 | shlibpath_overrides_runpath=yes | |
c45550e5 | 11183 | if test yes = "$with_gnu_ld"; then |
b9668ba4 AK |
11184 | need_lib_prefix=no |
11185 | fi | |
11186 | need_version=yes | |
11187 | ;; | |
11188 | ||
11189 | sysv4 | sysv4.3*) | |
059850b5 | 11190 | version_type=linux # correct to gnu/linux during the next big refactor |
c45550e5 AK |
11191 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11192 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
11193 | shlibpath_var=LD_LIBRARY_PATH |
11194 | case $host_vendor in | |
11195 | sni) | |
11196 | shlibpath_overrides_runpath=no | |
11197 | need_lib_prefix=no | |
b9668ba4 AK |
11198 | runpath_var=LD_RUN_PATH |
11199 | ;; | |
11200 | siemens) | |
11201 | need_lib_prefix=no | |
11202 | ;; | |
11203 | motorola) | |
11204 | need_lib_prefix=no | |
11205 | need_version=no | |
11206 | shlibpath_overrides_runpath=no | |
11207 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11208 | ;; | |
11209 | esac | |
11210 | ;; | |
11211 | ||
11212 | sysv4*MP*) | |
c45550e5 | 11213 | if test -d /usr/nec; then |
059850b5 | 11214 | version_type=linux # correct to gnu/linux during the next big refactor |
c45550e5 AK |
11215 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11216 | soname_spec='$libname$shared_ext.$major' | |
b9668ba4 AK |
11217 | shlibpath_var=LD_LIBRARY_PATH |
11218 | fi | |
11219 | ;; | |
11220 | ||
11221 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
c45550e5 | 11222 | version_type=sco |
b9668ba4 AK |
11223 | need_lib_prefix=no |
11224 | need_version=no | |
c45550e5 AK |
11225 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11226 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 | 11227 | shlibpath_var=LD_LIBRARY_PATH |
5c706339 | 11228 | shlibpath_overrides_runpath=yes |
b9668ba4 | 11229 | hardcode_into_libs=yes |
c45550e5 | 11230 | if test yes = "$with_gnu_ld"; then |
b9668ba4 | 11231 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
b9668ba4 AK |
11232 | else |
11233 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
b9668ba4 AK |
11234 | case $host_os in |
11235 | sco3.2v5*) | |
11236 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11237 | ;; | |
11238 | esac | |
11239 | fi | |
11240 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11241 | ;; | |
11242 | ||
5c706339 AK |
11243 | tpf*) |
11244 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
059850b5 | 11245 | version_type=linux # correct to gnu/linux during the next big refactor |
5c706339 AK |
11246 | need_lib_prefix=no |
11247 | need_version=no | |
c45550e5 | 11248 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
5c706339 AK |
11249 | shlibpath_var=LD_LIBRARY_PATH |
11250 | shlibpath_overrides_runpath=no | |
11251 | hardcode_into_libs=yes | |
11252 | ;; | |
11253 | ||
b9668ba4 | 11254 | uts4*) |
059850b5 | 11255 | version_type=linux # correct to gnu/linux during the next big refactor |
c45550e5 AK |
11256 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11257 | soname_spec='$libname$release$shared_ext$major' | |
b9668ba4 AK |
11258 | shlibpath_var=LD_LIBRARY_PATH |
11259 | ;; | |
11260 | ||
11261 | *) | |
11262 | dynamic_linker=no | |
11263 | ;; | |
11264 | esac | |
0fbeb4dc | 11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
47dc80f6 | 11266 | $as_echo "$dynamic_linker" >&6; } |
c45550e5 | 11267 | test no = "$dynamic_linker" && can_build_shared=no |
b9668ba4 AK |
11268 | |
11269 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
c45550e5 | 11270 | if test yes = "$GCC"; then |
b9668ba4 AK |
11271 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11272 | fi | |
11273 | ||
c45550e5 AK |
11274 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11275 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
b9668ba4 | 11276 | fi |
c45550e5 AK |
11277 | |
11278 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11279 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
b9668ba4 AK |
11280 | fi |
11281 | ||
c45550e5 AK |
11282 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11283 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11284 | ||
11285 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11286 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11287 | ||
11288 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11289 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
b9668ba4 | 11296 | |
b9668ba4 | 11297 | |
b9668ba4 | 11298 | |
b9668ba4 | 11299 | |
b9668ba4 | 11300 | |
b9668ba4 | 11301 | |
b9668ba4 | 11302 | |
b9668ba4 | 11303 | |
b9668ba4 | 11304 | |
b9668ba4 | 11305 | |
b9668ba4 | 11306 | |
b9668ba4 | 11307 | |
b9668ba4 | 11308 | |
b9668ba4 | 11309 | |
b9668ba4 | 11310 | |
b9668ba4 | 11311 | |
b9668ba4 | 11312 | |
b9668ba4 | 11313 | |
b9668ba4 | 11314 | |
b9668ba4 | 11315 | |
b9668ba4 | 11316 | |
b9668ba4 | 11317 | |
b9668ba4 | 11318 | |
b9668ba4 | 11319 | |
b9668ba4 | 11320 | |
b9668ba4 | 11321 | |
b9668ba4 | 11322 | |
b9668ba4 | 11323 | |
b9668ba4 | 11324 | |
b9668ba4 | 11325 | |
b9668ba4 | 11326 | |
b9668ba4 | 11327 | |
b9668ba4 | 11328 | |
b9668ba4 | 11329 | |
b9668ba4 | 11330 | |
b9668ba4 | 11331 | |
b9668ba4 | 11332 | |
b9668ba4 | 11333 | |
b9668ba4 | 11334 | |
b9668ba4 | 11335 | |
b9668ba4 | 11336 | |
b9668ba4 | 11337 | |
b9668ba4 | 11338 | |
b9668ba4 | 11339 | |
b9668ba4 | 11340 | |
b9668ba4 | 11341 | |
b9668ba4 | 11342 | |
b9668ba4 | 11343 | |
b9668ba4 | 11344 | |
b9668ba4 | 11345 | |
b9668ba4 | 11346 | |
b9668ba4 | 11347 | |
b9668ba4 | 11348 | |
b9668ba4 | 11349 | |
b9668ba4 | 11350 | |
b9668ba4 | 11351 | |
b9668ba4 | 11352 | |
b9668ba4 | 11353 | |
b9668ba4 | 11354 | |
b9668ba4 | 11355 | |
b9668ba4 | 11356 | |
b9668ba4 | 11357 | |
b9668ba4 | 11358 | |
b9668ba4 | 11359 | |
b9668ba4 | 11360 | |
b9668ba4 | 11361 | |
b9668ba4 | 11362 | |
b9668ba4 | 11363 | |
b9668ba4 | 11364 | |
b9668ba4 | 11365 | |
b9668ba4 | 11366 | |
b9668ba4 | 11367 | |
b9668ba4 | 11368 | |
b9668ba4 | 11369 | |
b9668ba4 | 11370 | |
b9668ba4 | 11371 | |
b9668ba4 | 11372 | |
b9668ba4 | 11373 | |
b9668ba4 | 11374 | |
b9668ba4 | 11375 | |
059850b5 AK |
11376 | |
11377 | ||
11378 | ||
11379 | ||
11380 | ||
b9668ba4 | 11381 | |
b9668ba4 | 11382 | |
b9668ba4 | 11383 | |
b9668ba4 | 11384 | |
b9668ba4 | 11385 | |
b9668ba4 | 11386 | |
0fbeb4dc | 11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
47dc80f6 | 11388 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
5c706339 AK |
11389 | hardcode_action= |
11390 | if test -n "$hardcode_libdir_flag_spec" || | |
11391 | test -n "$runpath_var" || | |
c45550e5 | 11392 | test yes = "$hardcode_automatic"; then |
b9668ba4 | 11393 | |
5c706339 | 11394 | # We can hardcode non-existent directories. |
c45550e5 | 11395 | if test no != "$hardcode_direct" && |
5c706339 AK |
11396 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11397 | # have to relink, otherwise we might link with an installed library | |
11398 | # when we should be linking with a yet-to-be-installed one | |
c45550e5 AK |
11399 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11400 | test no != "$hardcode_minus_L"; then | |
5c706339 AK |
11401 | # Linking always hardcodes the temporary library directory. |
11402 | hardcode_action=relink | |
11403 | else | |
11404 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11405 | hardcode_action=immediate | |
11406 | fi | |
11407 | else | |
11408 | # We cannot hardcode anything, or else we can only hardcode existing | |
11409 | # directories. | |
11410 | hardcode_action=unsupported | |
11411 | fi | |
0fbeb4dc | 11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
47dc80f6 | 11413 | $as_echo "$hardcode_action" >&6; } |
b9668ba4 | 11414 | |
c45550e5 AK |
11415 | if test relink = "$hardcode_action" || |
11416 | test yes = "$inherit_rpath"; then | |
5c706339 AK |
11417 | # Fast installation is not supported |
11418 | enable_fast_install=no | |
c45550e5 AK |
11419 | elif test yes = "$shlibpath_overrides_runpath" || |
11420 | test no = "$enable_shared"; then | |
5c706339 AK |
11421 | # Fast installation is not necessary |
11422 | enable_fast_install=needless | |
11423 | fi | |
b9668ba4 | 11424 | |
b9668ba4 | 11425 | |
b9668ba4 | 11426 | |
b9668ba4 | 11427 | |
b9668ba4 | 11428 | |
b9668ba4 | 11429 | |
c45550e5 | 11430 | if test yes != "$enable_dlopen"; then |
5c706339 AK |
11431 | enable_dlopen=unknown |
11432 | enable_dlopen_self=unknown | |
11433 | enable_dlopen_self_static=unknown | |
11434 | else | |
11435 | lt_cv_dlopen=no | |
11436 | lt_cv_dlopen_libs= | |
b9668ba4 | 11437 | |
5c706339 AK |
11438 | case $host_os in |
11439 | beos*) | |
c45550e5 | 11440 | lt_cv_dlopen=load_add_on |
5c706339 AK |
11441 | lt_cv_dlopen_libs= |
11442 | lt_cv_dlopen_self=yes | |
11443 | ;; | |
b9668ba4 | 11444 | |
47dc80f6 | 11445 | mingw* | pw32* | cegcc*) |
c45550e5 | 11446 | lt_cv_dlopen=LoadLibrary |
5c706339 AK |
11447 | lt_cv_dlopen_libs= |
11448 | ;; | |
b9668ba4 | 11449 | |
5c706339 | 11450 | cygwin*) |
c45550e5 | 11451 | lt_cv_dlopen=dlopen |
5c706339 AK |
11452 | lt_cv_dlopen_libs= |
11453 | ;; | |
b9668ba4 | 11454 | |
5c706339 | 11455 | darwin*) |
c45550e5 | 11456 | # if libdl is installed we need to link against it |
0fbeb4dc | 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
47dc80f6 | 11458 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
059850b5 | 11459 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
47dc80f6 | 11460 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
11461 | else |
11462 | ac_check_lib_save_LIBS=$LIBS | |
11463 | LIBS="-ldl $LIBS" | |
0fbeb4dc | 11464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 11465 | /* end confdefs.h. */ |
b9668ba4 | 11466 | |
5c706339 AK |
11467 | /* Override any GCC internal prototype to avoid an error. |
11468 | Use char because int might match the return type of a GCC | |
11469 | builtin and then its argument prototype would still apply. */ | |
11470 | #ifdef __cplusplus | |
11471 | extern "C" | |
11472 | #endif | |
11473 | char dlopen (); | |
11474 | int | |
11475 | main () | |
11476 | { | |
11477 | return dlopen (); | |
11478 | ; | |
11479 | return 0; | |
11480 | } | |
11481 | _ACEOF | |
0fbeb4dc | 11482 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 | 11483 | ac_cv_lib_dl_dlopen=yes |
b9668ba4 | 11484 | else |
0fbeb4dc | 11485 | ac_cv_lib_dl_dlopen=no |
b9668ba4 | 11486 | fi |
0fbeb4dc AK |
11487 | rm -f core conftest.err conftest.$ac_objext \ |
11488 | conftest$ac_exeext conftest.$ac_ext | |
5c706339 AK |
11489 | LIBS=$ac_check_lib_save_LIBS |
11490 | fi | |
0fbeb4dc | 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
47dc80f6 | 11492 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
059850b5 | 11493 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
c45550e5 | 11494 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
5c706339 | 11495 | else |
b9668ba4 | 11496 | |
c45550e5 | 11497 | lt_cv_dlopen=dyld |
5c706339 AK |
11498 | lt_cv_dlopen_libs= |
11499 | lt_cv_dlopen_self=yes | |
b9668ba4 | 11500 | |
5c706339 | 11501 | fi |
b9668ba4 | 11502 | |
0fbeb4dc | 11503 | ;; |
b9668ba4 | 11504 | |
c45550e5 AK |
11505 | tpf*) |
11506 | # Don't try to run any link tests for TPF. We know it's impossible | |
11507 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11508 | lt_cv_dlopen=dlopen | |
11509 | lt_cv_dlopen_libs= | |
11510 | lt_cv_dlopen_self=no | |
11511 | ;; | |
11512 | ||
0fbeb4dc AK |
11513 | *) |
11514 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
059850b5 | 11515 | if test "x$ac_cv_func_shl_load" = xyes; then : |
c45550e5 | 11516 | lt_cv_dlopen=shl_load |
0fbeb4dc AK |
11517 | else |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11519 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
059850b5 | 11520 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
0fbeb4dc AK |
11521 | $as_echo_n "(cached) " >&6 |
11522 | else | |
11523 | ac_check_lib_save_LIBS=$LIBS | |
11524 | LIBS="-ldld $LIBS" | |
11525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11526 | /* end confdefs.h. */ | |
b9668ba4 | 11527 | |
5c706339 AK |
11528 | /* Override any GCC internal prototype to avoid an error. |
11529 | Use char because int might match the return type of a GCC | |
11530 | builtin and then its argument prototype would still apply. */ | |
11531 | #ifdef __cplusplus | |
11532 | extern "C" | |
11533 | #endif | |
0fbeb4dc | 11534 | char shl_load (); |
5c706339 AK |
11535 | int |
11536 | main () | |
11537 | { | |
0fbeb4dc | 11538 | return shl_load (); |
5c706339 AK |
11539 | ; |
11540 | return 0; | |
11541 | } | |
11542 | _ACEOF | |
0fbeb4dc AK |
11543 | if ac_fn_c_try_link "$LINENO"; then : |
11544 | ac_cv_lib_dld_shl_load=yes | |
5c706339 | 11545 | else |
0fbeb4dc | 11546 | ac_cv_lib_dld_shl_load=no |
5c706339 | 11547 | fi |
0fbeb4dc AK |
11548 | rm -f core conftest.err conftest.$ac_objext \ |
11549 | conftest$ac_exeext conftest.$ac_ext | |
11550 | LIBS=$ac_check_lib_save_LIBS | |
5c706339 | 11551 | fi |
0fbeb4dc AK |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11553 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
059850b5 | 11554 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
c45550e5 | 11555 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
0fbeb4dc AK |
11556 | else |
11557 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
059850b5 | 11558 | if test "x$ac_cv_func_dlopen" = xyes; then : |
c45550e5 | 11559 | lt_cv_dlopen=dlopen |
5c706339 | 11560 | else |
0fbeb4dc | 11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
47dc80f6 | 11562 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
059850b5 | 11563 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
47dc80f6 | 11564 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
11565 | else |
11566 | ac_check_lib_save_LIBS=$LIBS | |
11567 | LIBS="-ldl $LIBS" | |
0fbeb4dc | 11568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 11569 | /* end confdefs.h. */ |
b9668ba4 | 11570 | |
5c706339 AK |
11571 | /* Override any GCC internal prototype to avoid an error. |
11572 | Use char because int might match the return type of a GCC | |
11573 | builtin and then its argument prototype would still apply. */ | |
11574 | #ifdef __cplusplus | |
11575 | extern "C" | |
11576 | #endif | |
11577 | char dlopen (); | |
11578 | int | |
11579 | main () | |
11580 | { | |
11581 | return dlopen (); | |
11582 | ; | |
11583 | return 0; | |
11584 | } | |
11585 | _ACEOF | |
0fbeb4dc | 11586 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 AK |
11587 | ac_cv_lib_dl_dlopen=yes |
11588 | else | |
0fbeb4dc | 11589 | ac_cv_lib_dl_dlopen=no |
5c706339 | 11590 | fi |
0fbeb4dc AK |
11591 | rm -f core conftest.err conftest.$ac_objext \ |
11592 | conftest$ac_exeext conftest.$ac_ext | |
5c706339 AK |
11593 | LIBS=$ac_check_lib_save_LIBS |
11594 | fi | |
0fbeb4dc | 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
47dc80f6 | 11596 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
059850b5 | 11597 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
c45550e5 | 11598 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
5c706339 | 11599 | else |
0fbeb4dc | 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
47dc80f6 | 11601 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
059850b5 | 11602 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
47dc80f6 | 11603 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
11604 | else |
11605 | ac_check_lib_save_LIBS=$LIBS | |
11606 | LIBS="-lsvld $LIBS" | |
0fbeb4dc | 11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 11608 | /* end confdefs.h. */ |
b9668ba4 | 11609 | |
5c706339 AK |
11610 | /* Override any GCC internal prototype to avoid an error. |
11611 | Use char because int might match the return type of a GCC | |
11612 | builtin and then its argument prototype would still apply. */ | |
11613 | #ifdef __cplusplus | |
11614 | extern "C" | |
11615 | #endif | |
11616 | char dlopen (); | |
11617 | int | |
11618 | main () | |
11619 | { | |
11620 | return dlopen (); | |
11621 | ; | |
11622 | return 0; | |
11623 | } | |
11624 | _ACEOF | |
0fbeb4dc | 11625 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 AK |
11626 | ac_cv_lib_svld_dlopen=yes |
11627 | else | |
0fbeb4dc | 11628 | ac_cv_lib_svld_dlopen=no |
5c706339 | 11629 | fi |
0fbeb4dc AK |
11630 | rm -f core conftest.err conftest.$ac_objext \ |
11631 | conftest$ac_exeext conftest.$ac_ext | |
5c706339 AK |
11632 | LIBS=$ac_check_lib_save_LIBS |
11633 | fi | |
0fbeb4dc | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
47dc80f6 | 11635 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
059850b5 | 11636 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
c45550e5 | 11637 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
5c706339 | 11638 | else |
0fbeb4dc | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
47dc80f6 | 11640 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
059850b5 | 11641 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
47dc80f6 | 11642 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
11643 | else |
11644 | ac_check_lib_save_LIBS=$LIBS | |
11645 | LIBS="-ldld $LIBS" | |
0fbeb4dc | 11646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 11647 | /* end confdefs.h. */ |
b9668ba4 | 11648 | |
5c706339 AK |
11649 | /* Override any GCC internal prototype to avoid an error. |
11650 | Use char because int might match the return type of a GCC | |
11651 | builtin and then its argument prototype would still apply. */ | |
11652 | #ifdef __cplusplus | |
11653 | extern "C" | |
11654 | #endif | |
11655 | char dld_link (); | |
11656 | int | |
11657 | main () | |
11658 | { | |
11659 | return dld_link (); | |
11660 | ; | |
11661 | return 0; | |
11662 | } | |
11663 | _ACEOF | |
0fbeb4dc | 11664 | if ac_fn_c_try_link "$LINENO"; then : |
5c706339 AK |
11665 | ac_cv_lib_dld_dld_link=yes |
11666 | else | |
0fbeb4dc | 11667 | ac_cv_lib_dld_dld_link=no |
5c706339 | 11668 | fi |
0fbeb4dc AK |
11669 | rm -f core conftest.err conftest.$ac_objext \ |
11670 | conftest$ac_exeext conftest.$ac_ext | |
5c706339 AK |
11671 | LIBS=$ac_check_lib_save_LIBS |
11672 | fi | |
0fbeb4dc | 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
47dc80f6 | 11674 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
059850b5 | 11675 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
c45550e5 | 11676 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
5c706339 | 11677 | fi |
b9668ba4 | 11678 | |
b9668ba4 | 11679 | |
5c706339 | 11680 | fi |
b9668ba4 | 11681 | |
b9668ba4 | 11682 | |
5c706339 | 11683 | fi |
b9668ba4 | 11684 | |
b9668ba4 | 11685 | |
5c706339 | 11686 | fi |
b9668ba4 | 11687 | |
b9668ba4 | 11688 | |
5c706339 | 11689 | fi |
b9668ba4 | 11690 | |
b9668ba4 | 11691 | |
5c706339 | 11692 | fi |
b9668ba4 | 11693 | |
5c706339 AK |
11694 | ;; |
11695 | esac | |
b9668ba4 | 11696 | |
c45550e5 | 11697 | if test no = "$lt_cv_dlopen"; then |
5c706339 | 11698 | enable_dlopen=no |
c45550e5 AK |
11699 | else |
11700 | enable_dlopen=yes | |
b9668ba4 AK |
11701 | fi |
11702 | ||
5c706339 AK |
11703 | case $lt_cv_dlopen in |
11704 | dlopen) | |
c45550e5 AK |
11705 | save_CPPFLAGS=$CPPFLAGS |
11706 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
5c706339 | 11707 | |
c45550e5 | 11708 | save_LDFLAGS=$LDFLAGS |
5c706339 | 11709 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
b9668ba4 | 11710 | |
c45550e5 | 11711 | save_LIBS=$LIBS |
5c706339 | 11712 | LIBS="$lt_cv_dlopen_libs $LIBS" |
b9668ba4 | 11713 | |
0fbeb4dc | 11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
47dc80f6 | 11715 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
059850b5 | 11716 | if ${lt_cv_dlopen_self+:} false; then : |
47dc80f6 | 11717 | $as_echo_n "(cached) " >&6 |
b9668ba4 | 11718 | else |
c45550e5 | 11719 | if test yes = "$cross_compiling"; then : |
5c706339 | 11720 | lt_cv_dlopen_self=cross |
b9668ba4 | 11721 | else |
5c706339 AK |
11722 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11723 | lt_status=$lt_dlunknown | |
11724 | cat > conftest.$ac_ext <<_LT_EOF | |
059850b5 | 11725 | #line $LINENO "configure" |
5c706339 | 11726 | #include "confdefs.h" |
b9668ba4 | 11727 | |
5c706339 AK |
11728 | #if HAVE_DLFCN_H |
11729 | #include <dlfcn.h> | |
11730 | #endif | |
b9668ba4 | 11731 | |
5c706339 | 11732 | #include <stdio.h> |
b9668ba4 | 11733 | |
5c706339 AK |
11734 | #ifdef RTLD_GLOBAL |
11735 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11736 | #else | |
11737 | # ifdef DL_GLOBAL | |
11738 | # define LT_DLGLOBAL DL_GLOBAL | |
11739 | # else | |
11740 | # define LT_DLGLOBAL 0 | |
11741 | # endif | |
11742 | #endif | |
b9668ba4 | 11743 | |
5c706339 AK |
11744 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11745 | find out it does not work in some platform. */ | |
11746 | #ifndef LT_DLLAZY_OR_NOW | |
11747 | # ifdef RTLD_LAZY | |
11748 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11749 | # else | |
11750 | # ifdef DL_LAZY | |
11751 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11752 | # else | |
11753 | # ifdef RTLD_NOW | |
11754 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11755 | # else | |
11756 | # ifdef DL_NOW | |
11757 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11758 | # else | |
11759 | # define LT_DLLAZY_OR_NOW 0 | |
11760 | # endif | |
11761 | # endif | |
11762 | # endif | |
11763 | # endif | |
11764 | #endif | |
b9668ba4 | 11765 | |
c45550e5 | 11766 | /* When -fvisibility=hidden is used, assume the code has been annotated |
059850b5 | 11767 | correspondingly for the symbols needed. */ |
c45550e5 | 11768 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
059850b5 AK |
11769 | int fnord () __attribute__((visibility("default"))); |
11770 | #endif | |
11771 | ||
11772 | int fnord () { return 42; } | |
5c706339 AK |
11773 | int main () |
11774 | { | |
11775 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11776 | int status = $lt_dlunknown; | |
b9668ba4 | 11777 | |
5c706339 AK |
11778 | if (self) |
11779 | { | |
11780 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
059850b5 AK |
11781 | else |
11782 | { | |
11783 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11784 | else puts (dlerror ()); | |
11785 | } | |
5c706339 AK |
11786 | /* dlclose (self); */ |
11787 | } | |
11788 | else | |
11789 | puts (dlerror ()); | |
b9668ba4 | 11790 | |
47dc80f6 | 11791 | return status; |
5c706339 AK |
11792 | } |
11793 | _LT_EOF | |
0fbeb4dc | 11794 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
5c706339 AK |
11795 | (eval $ac_link) 2>&5 |
11796 | ac_status=$? | |
0fbeb4dc | 11797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c45550e5 | 11798 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
5c706339 AK |
11799 | (./conftest; exit; ) >&5 2>/dev/null |
11800 | lt_status=$? | |
11801 | case x$lt_status in | |
11802 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11803 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11804 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11805 | esac | |
11806 | else : | |
11807 | # compilation failed | |
11808 | lt_cv_dlopen_self=no | |
11809 | fi | |
b9668ba4 | 11810 | fi |
5c706339 | 11811 | rm -fr conftest* |
b9668ba4 AK |
11812 | |
11813 | ||
b9668ba4 | 11814 | fi |
0fbeb4dc | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
47dc80f6 | 11816 | $as_echo "$lt_cv_dlopen_self" >&6; } |
b9668ba4 | 11817 | |
c45550e5 | 11818 | if test yes = "$lt_cv_dlopen_self"; then |
5c706339 | 11819 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
0fbeb4dc | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
47dc80f6 | 11821 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
059850b5 | 11822 | if ${lt_cv_dlopen_self_static+:} false; then : |
47dc80f6 | 11823 | $as_echo_n "(cached) " >&6 |
5c706339 | 11824 | else |
c45550e5 | 11825 | if test yes = "$cross_compiling"; then : |
5c706339 AK |
11826 | lt_cv_dlopen_self_static=cross |
11827 | else | |
11828 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11829 | lt_status=$lt_dlunknown | |
11830 | cat > conftest.$ac_ext <<_LT_EOF | |
059850b5 | 11831 | #line $LINENO "configure" |
5c706339 | 11832 | #include "confdefs.h" |
b9668ba4 | 11833 | |
5c706339 AK |
11834 | #if HAVE_DLFCN_H |
11835 | #include <dlfcn.h> | |
11836 | #endif | |
b9668ba4 | 11837 | |
5c706339 | 11838 | #include <stdio.h> |
b9668ba4 | 11839 | |
5c706339 AK |
11840 | #ifdef RTLD_GLOBAL |
11841 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11842 | #else | |
11843 | # ifdef DL_GLOBAL | |
11844 | # define LT_DLGLOBAL DL_GLOBAL | |
11845 | # else | |
11846 | # define LT_DLGLOBAL 0 | |
11847 | # endif | |
11848 | #endif | |
b9668ba4 | 11849 | |
5c706339 AK |
11850 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11851 | find out it does not work in some platform. */ | |
11852 | #ifndef LT_DLLAZY_OR_NOW | |
11853 | # ifdef RTLD_LAZY | |
11854 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11855 | # else | |
11856 | # ifdef DL_LAZY | |
11857 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11858 | # else | |
11859 | # ifdef RTLD_NOW | |
11860 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11861 | # else | |
11862 | # ifdef DL_NOW | |
11863 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11864 | # else | |
11865 | # define LT_DLLAZY_OR_NOW 0 | |
11866 | # endif | |
11867 | # endif | |
11868 | # endif | |
11869 | # endif | |
11870 | #endif | |
11871 | ||
c45550e5 | 11872 | /* When -fvisibility=hidden is used, assume the code has been annotated |
059850b5 | 11873 | correspondingly for the symbols needed. */ |
c45550e5 | 11874 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
059850b5 AK |
11875 | int fnord () __attribute__((visibility("default"))); |
11876 | #endif | |
11877 | ||
11878 | int fnord () { return 42; } | |
5c706339 AK |
11879 | int main () |
11880 | { | |
11881 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11882 | int status = $lt_dlunknown; | |
11883 | ||
11884 | if (self) | |
11885 | { | |
11886 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
059850b5 AK |
11887 | else |
11888 | { | |
11889 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11890 | else puts (dlerror ()); | |
11891 | } | |
5c706339 AK |
11892 | /* dlclose (self); */ |
11893 | } | |
11894 | else | |
11895 | puts (dlerror ()); | |
11896 | ||
47dc80f6 | 11897 | return status; |
5c706339 AK |
11898 | } |
11899 | _LT_EOF | |
0fbeb4dc | 11900 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
5c706339 AK |
11901 | (eval $ac_link) 2>&5 |
11902 | ac_status=$? | |
0fbeb4dc | 11903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c45550e5 | 11904 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
5c706339 AK |
11905 | (./conftest; exit; ) >&5 2>/dev/null |
11906 | lt_status=$? | |
11907 | case x$lt_status in | |
11908 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11909 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11910 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
b9668ba4 | 11911 | esac |
5c706339 AK |
11912 | else : |
11913 | # compilation failed | |
11914 | lt_cv_dlopen_self_static=no | |
11915 | fi | |
11916 | fi | |
11917 | rm -fr conftest* | |
b9668ba4 | 11918 | |
b9668ba4 | 11919 | |
5c706339 | 11920 | fi |
0fbeb4dc | 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
47dc80f6 | 11922 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
5c706339 | 11923 | fi |
b9668ba4 | 11924 | |
c45550e5 AK |
11925 | CPPFLAGS=$save_CPPFLAGS |
11926 | LDFLAGS=$save_LDFLAGS | |
11927 | LIBS=$save_LIBS | |
5c706339 AK |
11928 | ;; |
11929 | esac | |
b9668ba4 | 11930 | |
5c706339 AK |
11931 | case $lt_cv_dlopen_self in |
11932 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11933 | *) enable_dlopen_self=unknown ;; | |
11934 | esac | |
b9668ba4 | 11935 | |
5c706339 AK |
11936 | case $lt_cv_dlopen_self_static in |
11937 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11938 | *) enable_dlopen_self_static=unknown ;; | |
11939 | esac | |
11940 | fi | |
b9668ba4 | 11941 | |
b9668ba4 | 11942 | |
b9668ba4 | 11943 | |
b9668ba4 | 11944 | |
b9668ba4 | 11945 | |
b9668ba4 | 11946 | |
b9668ba4 | 11947 | |
b9668ba4 | 11948 | |
b9668ba4 | 11949 | |
b9668ba4 | 11950 | |
b9668ba4 | 11951 | |
b9668ba4 | 11952 | |
b9668ba4 | 11953 | |
b9668ba4 | 11954 | |
b9668ba4 | 11955 | |
b9668ba4 | 11956 | |
b9668ba4 | 11957 | |
5c706339 AK |
11958 | striplib= |
11959 | old_striplib= | |
0fbeb4dc | 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
47dc80f6 | 11961 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
5c706339 AK |
11962 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11963 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11964 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
0fbeb4dc | 11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
47dc80f6 | 11966 | $as_echo "yes" >&6; } |
5c706339 AK |
11967 | else |
11968 | # FIXME - insert some real tests, host_os isn't really good enough | |
11969 | case $host_os in | |
11970 | darwin*) | |
c45550e5 | 11971 | if test -n "$STRIP"; then |
5c706339 AK |
11972 | striplib="$STRIP -x" |
11973 | old_striplib="$STRIP -S" | |
0fbeb4dc | 11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
47dc80f6 | 11975 | $as_echo "yes" >&6; } |
5c706339 | 11976 | else |
0fbeb4dc | 11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 11978 | $as_echo "no" >&6; } |
5c706339 AK |
11979 | fi |
11980 | ;; | |
11981 | *) | |
0fbeb4dc | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 11983 | $as_echo "no" >&6; } |
5c706339 AK |
11984 | ;; |
11985 | esac | |
11986 | fi | |
b9668ba4 | 11987 | |
b9668ba4 | 11988 | |
b9668ba4 | 11989 | |
b9668ba4 | 11990 | |
b9668ba4 | 11991 | |
b9668ba4 | 11992 | |
b9668ba4 AK |
11993 | |
11994 | ||
b9668ba4 | 11995 | |
b9668ba4 | 11996 | |
b9668ba4 | 11997 | |
b9668ba4 | 11998 | |
c45550e5 | 11999 | # Report what library types will actually be built |
0fbeb4dc | 12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
47dc80f6 | 12001 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
0fbeb4dc | 12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
47dc80f6 | 12003 | $as_echo "$can_build_shared" >&6; } |
b9668ba4 | 12004 | |
0fbeb4dc | 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
47dc80f6 | 12006 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
c45550e5 | 12007 | test no = "$can_build_shared" && enable_shared=no |
b9668ba4 | 12008 | |
5c706339 AK |
12009 | # On AIX, shared libraries and static libraries use the same namespace, and |
12010 | # are all built from PIC. | |
12011 | case $host_os in | |
12012 | aix3*) | |
c45550e5 | 12013 | test yes = "$enable_shared" && enable_static=no |
5c706339 AK |
12014 | if test -n "$RANLIB"; then |
12015 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12016 | postinstall_cmds='$RANLIB $lib' | |
12017 | fi | |
12018 | ;; | |
b9668ba4 | 12019 | |
5c706339 | 12020 | aix[4-9]*) |
c45550e5 AK |
12021 | if test ia64 != "$host_cpu"; then |
12022 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12023 | yes,aix,yes) ;; # shared object as lib.so file only | |
12024 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12025 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12026 | esac | |
5c706339 AK |
12027 | fi |
12028 | ;; | |
12029 | esac | |
0fbeb4dc | 12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
47dc80f6 | 12031 | $as_echo "$enable_shared" >&6; } |
b9668ba4 | 12032 | |
0fbeb4dc | 12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
47dc80f6 | 12034 | $as_echo_n "checking whether to build static libraries... " >&6; } |
5c706339 | 12035 | # Make sure either enable_shared or enable_static is yes. |
c45550e5 | 12036 | test yes = "$enable_shared" || enable_static=yes |
0fbeb4dc | 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
47dc80f6 | 12038 | $as_echo "$enable_static" >&6; } |
b9668ba4 | 12039 | |
b9668ba4 | 12040 | |
b9668ba4 | 12041 | |
b9668ba4 | 12042 | |
5c706339 AK |
12043 | fi |
12044 | ac_ext=c | |
12045 | ac_cpp='$CPP $CPPFLAGS' | |
12046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b9668ba4 | 12049 | |
c45550e5 | 12050 | CC=$lt_save_CC |
b9668ba4 | 12051 | |
b9668ba4 | 12052 | |
b9668ba4 | 12053 | |
b9668ba4 | 12054 | |
b9668ba4 | 12055 | |
b9668ba4 | 12056 | |
b9668ba4 | 12057 | |
b9668ba4 | 12058 | |
b9668ba4 | 12059 | |
b9668ba4 | 12060 | |
b9668ba4 | 12061 | |
b9668ba4 | 12062 | |
b9668ba4 | 12063 | |
059850b5 AK |
12064 | |
12065 | ||
5c706339 | 12066 | ac_config_commands="$ac_config_commands libtool" |
b9668ba4 | 12067 | |
b9668ba4 | 12068 | |
b9668ba4 | 12069 | |
b9668ba4 | 12070 | |
5c706339 | 12071 | # Only expand once: |
b9668ba4 | 12072 | |
b9668ba4 | 12073 | |
b9668ba4 | 12074 | |
5c706339 AK |
12075 | # Extract the first word of "doxygen", so it can be a program name with args. |
12076 | set dummy doxygen; ac_word=$2 | |
0fbeb4dc | 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
47dc80f6 | 12078 | $as_echo_n "checking for $ac_word... " >&6; } |
059850b5 | 12079 | if ${ac_cv_prog_DOXYGEN+:} false; then : |
47dc80f6 | 12080 | $as_echo_n "(cached) " >&6 |
5c706339 AK |
12081 | else |
12082 | if test -n "$DOXYGEN"; then | |
12083 | ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | |
12084 | else | |
12085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12086 | for as_dir in $PATH | |
12087 | do | |
12088 | IFS=$as_save_IFS | |
12089 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc | 12090 | for ac_exec_ext in '' $ac_executable_extensions; do |
0044e680 | 12091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5c706339 | 12092 | ac_cv_prog_DOXYGEN="true" |
0fbeb4dc | 12093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5c706339 AK |
12094 | break 2 |
12095 | fi | |
12096 | done | |
0fbeb4dc | 12097 | done |
5c706339 | 12098 | IFS=$as_save_IFS |
b9668ba4 | 12099 | |
5c706339 AK |
12100 | test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false" |
12101 | fi | |
12102 | fi | |
12103 | DOXYGEN=$ac_cv_prog_DOXYGEN | |
12104 | if test -n "$DOXYGEN"; then | |
0fbeb4dc | 12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
47dc80f6 | 12106 | $as_echo "$DOXYGEN" >&6; } |
5c706339 | 12107 | else |
0fbeb4dc | 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
47dc80f6 | 12109 | $as_echo "no" >&6; } |
5c706339 | 12110 | fi |
b9668ba4 | 12111 | |
b9668ba4 | 12112 | |
5c706339 AK |
12113 | if test "$DOXYGEN" = true; then |
12114 | DOXYGEN_TRUE= | |
12115 | DOXYGEN_FALSE='#' | |
12116 | else | |
12117 | DOXYGEN_TRUE='#' | |
12118 | DOXYGEN_FALSE= | |
12119 | fi | |
b9668ba4 | 12120 | |
b9668ba4 | 12121 | |
5c706339 | 12122 | # Checks for header files. |
0fbeb4dc | 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
47dc80f6 | 12124 | $as_echo_n "checking for ANSI C header files... " >&6; } |
059850b5 | 12125 | if ${ac_cv_header_stdc+:} false; then : |
47dc80f6 | 12126 | $as_echo_n "(cached) " >&6 |
5c706339 | 12127 | else |
0fbeb4dc | 12128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
12129 | /* end confdefs.h. */ |
12130 | #include <stdlib.h> | |
12131 | #include <stdarg.h> | |
12132 | #include <string.h> | |
12133 | #include <float.h> | |
b9668ba4 | 12134 | |
5c706339 AK |
12135 | int |
12136 | main () | |
12137 | { | |
b9668ba4 | 12138 | |
5c706339 AK |
12139 | ; |
12140 | return 0; | |
12141 | } | |
12142 | _ACEOF | |
0fbeb4dc | 12143 | if ac_fn_c_try_compile "$LINENO"; then : |
5c706339 AK |
12144 | ac_cv_header_stdc=yes |
12145 | else | |
0fbeb4dc | 12146 | ac_cv_header_stdc=no |
5c706339 | 12147 | fi |
5c706339 | 12148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b9668ba4 | 12149 | |
5c706339 AK |
12150 | if test $ac_cv_header_stdc = yes; then |
12151 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
0fbeb4dc | 12152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
12153 | /* end confdefs.h. */ |
12154 | #include <string.h> | |
b9668ba4 | 12155 | |
5c706339 AK |
12156 | _ACEOF |
12157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0fbeb4dc AK |
12158 | $EGREP "memchr" >/dev/null 2>&1; then : |
12159 | ||
5c706339 AK |
12160 | else |
12161 | ac_cv_header_stdc=no | |
12162 | fi | |
12163 | rm -f conftest* | |
b9668ba4 | 12164 | |
5c706339 | 12165 | fi |
b9668ba4 | 12166 | |
5c706339 AK |
12167 | if test $ac_cv_header_stdc = yes; then |
12168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
0fbeb4dc | 12169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
12170 | /* end confdefs.h. */ |
12171 | #include <stdlib.h> | |
b9668ba4 | 12172 | |
5c706339 AK |
12173 | _ACEOF |
12174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0fbeb4dc AK |
12175 | $EGREP "free" >/dev/null 2>&1; then : |
12176 | ||
5c706339 AK |
12177 | else |
12178 | ac_cv_header_stdc=no | |
12179 | fi | |
12180 | rm -f conftest* | |
b9668ba4 | 12181 | |
5c706339 | 12182 | fi |
b9668ba4 | 12183 | |
5c706339 AK |
12184 | if test $ac_cv_header_stdc = yes; then |
12185 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
0fbeb4dc | 12186 | if test "$cross_compiling" = yes; then : |
5c706339 | 12187 | : |
b9668ba4 | 12188 | else |
0fbeb4dc | 12189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 AK |
12190 | /* end confdefs.h. */ |
12191 | #include <ctype.h> | |
12192 | #include <stdlib.h> | |
12193 | #if ((' ' & 0x0FF) == 0x020) | |
12194 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12195 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12196 | #else | |
12197 | # define ISLOWER(c) \ | |
12198 | (('a' <= (c) && (c) <= 'i') \ | |
12199 | || ('j' <= (c) && (c) <= 'r') \ | |
12200 | || ('s' <= (c) && (c) <= 'z')) | |
12201 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12202 | #endif | |
b9668ba4 | 12203 | |
5c706339 AK |
12204 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12205 | int | |
12206 | main () | |
12207 | { | |
12208 | int i; | |
12209 | for (i = 0; i < 256; i++) | |
12210 | if (XOR (islower (i), ISLOWER (i)) | |
12211 | || toupper (i) != TOUPPER (i)) | |
12212 | return 2; | |
12213 | return 0; | |
12214 | } | |
12215 | _ACEOF | |
0fbeb4dc | 12216 | if ac_fn_c_try_run "$LINENO"; then : |
b9668ba4 | 12217 | |
0fbeb4dc AK |
12218 | else |
12219 | ac_cv_header_stdc=no | |
5c706339 | 12220 | fi |
0fbeb4dc AK |
12221 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12222 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5c706339 | 12223 | fi |
b9668ba4 | 12224 | |
5c706339 AK |
12225 | fi |
12226 | fi | |
0fbeb4dc | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
47dc80f6 | 12228 | $as_echo "$ac_cv_header_stdc" >&6; } |
5c706339 | 12229 | if test $ac_cv_header_stdc = yes; then |
b9668ba4 | 12230 | |
0fbeb4dc | 12231 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b9668ba4 | 12232 | |
5c706339 | 12233 | fi |
b9668ba4 | 12234 | |
5c706339 | 12235 | for ac_header in stdlib.h |
0fbeb4dc AK |
12236 | do : |
12237 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
059850b5 | 12238 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
5c706339 | 12239 | cat >>confdefs.h <<_ACEOF |
0fbeb4dc | 12240 | #define HAVE_STDLIB_H 1 |
5c706339 | 12241 | _ACEOF |
b9668ba4 | 12242 | |
5c706339 | 12243 | fi |
b9668ba4 | 12244 | |
5c706339 | 12245 | done |
b9668ba4 | 12246 | |
b9668ba4 | 12247 | |
5c706339 | 12248 | # Checks for typedefs, structures, and compiler characteristics. |
0fbeb4dc | 12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
47dc80f6 | 12250 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
059850b5 | 12251 | if ${ac_cv_c_const+:} false; then : |
47dc80f6 | 12252 | $as_echo_n "(cached) " >&6 |
5c706339 | 12253 | else |
0fbeb4dc | 12254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5c706339 | 12255 | /* end confdefs.h. */ |
b9668ba4 | 12256 | |
5c706339 AK |
12257 | int |
12258 | main () | |
12259 | { | |
0044e680 | 12260 | |
5c706339 | 12261 | #ifndef __cplusplus |
0044e680 | 12262 | /* Ultrix mips cc rejects this sort of thing. */ |
5c706339 | 12263 | typedef int charset[2]; |
0044e680 | 12264 | const charset cs = { 0, 0 }; |
5c706339 AK |
12265 | /* SunOS 4.1.1 cc rejects this. */ |
12266 | char const *const *pcpcc; | |
12267 | char **ppc; | |
12268 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12269 | struct point {int x, y;}; | |
12270 | static struct point const zero = {0,0}; | |
12271 | /* AIX XL C 1.02.0.0 rejects this. | |
12272 | It does not let you subtract one const X* pointer from another in | |
12273 | an arm of an if-expression whose if-part is not a constant | |
12274 | expression */ | |
12275 | const char *g = "string"; | |
12276 | pcpcc = &g + (g ? g-g : 0); | |
12277 | /* HPUX 7.0 cc rejects these. */ | |
12278 | ++pcpcc; | |
12279 | ppc = (char**) pcpcc; | |
12280 | pcpcc = (char const *const *) ppc; | |
0044e680 AK |
12281 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
12282 | char tx; | |
12283 | char *t = &tx; | |
5c706339 | 12284 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
b9668ba4 | 12285 | |
5c706339 AK |
12286 | *t++ = 0; |
12287 | if (s) return 0; | |
12288 | } | |
12289 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12290 | int x[] = {25, 17}; | |
12291 | const int *foo = &x[0]; | |
12292 | ++foo; | |
12293 | } | |
12294 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12295 | typedef const int *iptr; | |
12296 | iptr p = 0; | |
12297 | ++p; | |
12298 | } | |
0044e680 | 12299 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
5c706339 | 12300 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
0044e680 AK |
12301 | struct s { int j; const int *ap[3]; } bx; |
12302 | struct s *b = &bx; b->j = 5; | |
5c706339 AK |
12303 | } |
12304 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12305 | const int foo = 10; | |
0fbeb4dc AK |
12306 | if (!foo) return 0; |
12307 | } | |
12308 | return !cs[0] && !zero.x; | |
12309 | #endif | |
12310 | ||
5c706339 AK |
12311 | ; |
12312 | return 0; | |
12313 | } | |
12314 | _ACEOF | |
0fbeb4dc AK |
12315 | if ac_fn_c_try_compile "$LINENO"; then : |
12316 | ac_cv_c_const=yes | |
47dc80f6 | 12317 | else |
0fbeb4dc | 12318 | ac_cv_c_const=no |
47dc80f6 | 12319 | fi |
47dc80f6 | 12320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0fbeb4dc AK |
12321 | fi |
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
12323 | $as_echo "$ac_cv_c_const" >&6; } | |
12324 | if test $ac_cv_c_const = no; then | |
b9668ba4 | 12325 | |
0fbeb4dc | 12326 | $as_echo "#define const /**/" >>confdefs.h |
47dc80f6 | 12327 | |
5c706339 | 12328 | fi |
b9668ba4 | 12329 | |
0fbeb4dc | 12330 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
059850b5 | 12331 | if test "x$ac_cv_type_size_t" = xyes; then : |
0fbeb4dc | 12332 | |
5c706339 | 12333 | else |
b9668ba4 | 12334 | |
5c706339 AK |
12335 | cat >>confdefs.h <<_ACEOF |
12336 | #define size_t unsigned int | |
12337 | _ACEOF | |
b9668ba4 | 12338 | |
5c706339 | 12339 | fi |
b9668ba4 | 12340 | |
b9668ba4 | 12341 | |
5c706339 | 12342 | # Define Makefiles. |
c45550e5 | 12343 | ac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile" |
b9668ba4 | 12344 | |
b9668ba4 | 12345 | |
5c706339 AK |
12346 | # Generate the "configure" script. |
12347 | cat >confcache <<\_ACEOF | |
12348 | # This file is a shell script that caches the results of configure | |
12349 | # tests run on this system so they can be shared between configure | |
12350 | # scripts and configure runs, see configure's option --config-cache. | |
12351 | # It is not useful on other systems. If it contains results you don't | |
12352 | # want to keep, you may remove or edit it. | |
12353 | # | |
12354 | # config.status only pays attention to the cache file if you give it | |
12355 | # the --recheck option to rerun configure. | |
12356 | # | |
12357 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12358 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12359 | # following values. | |
b9668ba4 | 12360 | |
5c706339 | 12361 | _ACEOF |
b9668ba4 | 12362 | |
5c706339 AK |
12363 | # The following way of writing the cache mishandles newlines in values, |
12364 | # but we know of no workaround that is simple, portable, and efficient. | |
12365 | # So, we kill variables containing newlines. | |
12366 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12367 | # and sets the high bit in the cache file unless we assign to the vars. | |
12368 | ( | |
12369 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12370 | eval ac_val=\$$ac_var | |
12371 | case $ac_val in #( | |
12372 | *${as_nl}*) | |
12373 | case $ac_var in #( | |
0fbeb4dc | 12374 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
47dc80f6 | 12375 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
5c706339 AK |
12376 | esac |
12377 | case $ac_var in #( | |
12378 | _ | IFS | as_nl) ;; #( | |
47dc80f6 | 12379 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
0fbeb4dc | 12380 | *) { eval $ac_var=; unset $ac_var;} ;; |
5c706339 AK |
12381 | esac ;; |
12382 | esac | |
12383 | done | |
b9668ba4 | 12384 | |
5c706339 AK |
12385 | (set) 2>&1 | |
12386 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12387 | *${as_nl}ac_space=\ *) | |
0fbeb4dc AK |
12388 | # `set' does not quote correctly, so add quotes: double-quote |
12389 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
5c706339 AK |
12390 | sed -n \ |
12391 | "s/'/'\\\\''/g; | |
12392 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12393 | ;; #( | |
12394 | *) | |
12395 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12396 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12397 | ;; | |
12398 | esac | | |
12399 | sort | |
12400 | ) | | |
12401 | sed ' | |
12402 | /^ac_cv_env_/b end | |
12403 | t clear | |
12404 | :clear | |
12405 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12406 | t end | |
12407 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12408 | :end' >>confcache | |
12409 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12410 | if test -w "$cache_file"; then | |
059850b5 | 12411 | if test "x$cache_file" != "x/dev/null"; then |
0fbeb4dc | 12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
47dc80f6 | 12413 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
059850b5 AK |
12414 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12415 | cat confcache >"$cache_file" | |
12416 | else | |
12417 | case $cache_file in #( | |
12418 | */* | ?:*) | |
12419 | mv -f confcache "$cache_file"$$ && | |
12420 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12421 | *) | |
12422 | mv -f confcache "$cache_file" ;; | |
12423 | esac | |
12424 | fi | |
12425 | fi | |
5c706339 | 12426 | else |
0fbeb4dc | 12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
47dc80f6 | 12428 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5c706339 AK |
12429 | fi |
12430 | fi | |
12431 | rm -f confcache | |
b9668ba4 | 12432 | |
5c706339 AK |
12433 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12434 | # Let make expand exec_prefix. | |
12435 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
b9668ba4 | 12436 | |
5c706339 | 12437 | DEFS=-DHAVE_CONFIG_H |
b9668ba4 | 12438 | |
5c706339 AK |
12439 | ac_libobjs= |
12440 | ac_ltlibobjs= | |
0fbeb4dc | 12441 | U= |
5c706339 AK |
12442 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12443 | # 1. Remove the extension, and $U if already installed. | |
12444 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
47dc80f6 | 12445 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
5c706339 AK |
12446 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12447 | # will be set to the directory where LIBOBJS objects are built. | |
0fbeb4dc AK |
12448 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12449 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
5c706339 AK |
12450 | done |
12451 | LIBOBJS=$ac_libobjs | |
b9668ba4 | 12452 | |
5c706339 | 12453 | LTLIBOBJS=$ac_ltlibobjs |
b9668ba4 | 12454 | |
b9668ba4 | 12455 | |
0044e680 AK |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12457 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12458 | if test -n "$am_sleep_pid"; then | |
12459 | # Hide warnings about reused PIDs. | |
12460 | wait $am_sleep_pid 2>/dev/null | |
12461 | fi | |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12463 | $as_echo "done" >&6; } | |
0fbeb4dc AK |
12464 | if test -n "$EXEEXT"; then |
12465 | am__EXEEXT_TRUE= | |
12466 | am__EXEEXT_FALSE='#' | |
12467 | else | |
12468 | am__EXEEXT_TRUE='#' | |
12469 | am__EXEEXT_FALSE= | |
12470 | fi | |
12471 | ||
5c706339 | 12472 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
0fbeb4dc AK |
12473 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12474 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5c706339 AK |
12475 | fi |
12476 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
0fbeb4dc AK |
12477 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12478 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5c706339 AK |
12479 | fi |
12480 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then | |
0fbeb4dc AK |
12481 | as_fn_error $? "conditional \"DOXYGEN\" was never defined. |
12482 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5c706339 | 12483 | fi |
b9668ba4 | 12484 | |
059850b5 | 12485 | : "${CONFIG_STATUS=./config.status}" |
47dc80f6 | 12486 | ac_write_fail=0 |
5c706339 AK |
12487 | ac_clean_files_save=$ac_clean_files |
12488 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
0fbeb4dc | 12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
47dc80f6 | 12490 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
0fbeb4dc AK |
12491 | as_write_fail=0 |
12492 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
5c706339 AK |
12493 | #! $SHELL |
12494 | # Generated by $as_me. | |
12495 | # Run this file to recreate the current configuration. | |
12496 | # Compiler output produced by configure, useful for debugging | |
12497 | # configure, is in config.log if it exists. | |
b9668ba4 | 12498 | |
5c706339 AK |
12499 | debug=false |
12500 | ac_cs_recheck=false | |
12501 | ac_cs_silent=false | |
b9668ba4 | 12502 | |
0fbeb4dc AK |
12503 | SHELL=\${CONFIG_SHELL-$SHELL} |
12504 | export SHELL | |
12505 | _ASEOF | |
12506 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12507 | ## -------------------- ## | |
12508 | ## M4sh Initialization. ## | |
12509 | ## -------------------- ## | |
b9668ba4 | 12510 | |
5c706339 AK |
12511 | # Be more Bourne compatible |
12512 | DUALCASE=1; export DUALCASE # for MKS sh | |
0fbeb4dc | 12513 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
5c706339 AK |
12514 | emulate sh |
12515 | NULLCMD=: | |
47dc80f6 | 12516 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5c706339 AK |
12517 | # is contrary to our usage. Disable this feature. |
12518 | alias -g '${1+"$@"}'='"$@"' | |
12519 | setopt NO_GLOB_SUBST | |
12520 | else | |
0fbeb4dc AK |
12521 | case `(set -o) 2>/dev/null` in #( |
12522 | *posix*) : | |
12523 | set -o posix ;; #( | |
12524 | *) : | |
12525 | ;; | |
5c706339 | 12526 | esac |
5c706339 | 12527 | fi |
b9668ba4 | 12528 | |
b9668ba4 | 12529 | |
47dc80f6 AK |
12530 | as_nl=' |
12531 | ' | |
12532 | export as_nl | |
12533 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12534 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12535 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12536 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
0fbeb4dc AK |
12537 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12538 | # but without wasting forks for bash or zsh. | |
12539 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12540 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12541 | as_echo='print -r --' | |
12542 | as_echo_n='print -rn --' | |
12543 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47dc80f6 AK |
12544 | as_echo='printf %s\n' |
12545 | as_echo_n='printf %s' | |
12546 | else | |
12547 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12548 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12549 | as_echo_n='/usr/ucb/echo -n' | |
5c706339 | 12550 | else |
47dc80f6 AK |
12551 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12552 | as_echo_n_body='eval | |
12553 | arg=$1; | |
0fbeb4dc | 12554 | case $arg in #( |
47dc80f6 AK |
12555 | *"$as_nl"*) |
12556 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12557 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12558 | esac; | |
12559 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12560 | ' | |
12561 | export as_echo_n_body | |
12562 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5c706339 | 12563 | fi |
47dc80f6 AK |
12564 | export as_echo_body |
12565 | as_echo='sh -c $as_echo_body as_echo' | |
12566 | fi | |
12567 | ||
12568 | # The user is always right. | |
12569 | if test "${PATH_SEPARATOR+set}" != set; then | |
12570 | PATH_SEPARATOR=: | |
12571 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12572 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12573 | PATH_SEPARATOR=';' | |
12574 | } | |
5c706339 | 12575 | fi |
b9668ba4 | 12576 | |
b9668ba4 | 12577 | |
5c706339 AK |
12578 | # IFS |
12579 | # We need space, tab and new line, in precisely that order. Quoting is | |
12580 | # there to prevent editors from complaining about space-tab. | |
12581 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12582 | # splitting by setting IFS to empty value.) | |
5c706339 | 12583 | IFS=" "" $as_nl" |
b9668ba4 | 12584 | |
5c706339 | 12585 | # Find who we are. Look in the path if we contain no directory separator. |
059850b5 | 12586 | as_myself= |
0fbeb4dc | 12587 | case $0 in #(( |
5c706339 AK |
12588 | *[\\/]* ) as_myself=$0 ;; |
12589 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12590 | for as_dir in $PATH | |
12591 | do | |
12592 | IFS=$as_save_IFS | |
12593 | test -z "$as_dir" && as_dir=. | |
0fbeb4dc AK |
12594 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12595 | done | |
5c706339 | 12596 | IFS=$as_save_IFS |
b9668ba4 | 12597 | |
5c706339 AK |
12598 | ;; |
12599 | esac | |
12600 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12601 | # in which case we are not to be found in the path. | |
12602 | if test "x$as_myself" = x; then | |
12603 | as_myself=$0 | |
12604 | fi | |
12605 | if test ! -f "$as_myself"; then | |
47dc80f6 | 12606 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
0fbeb4dc | 12607 | exit 1 |
5c706339 | 12608 | fi |
b9668ba4 | 12609 | |
0fbeb4dc AK |
12610 | # Unset variables that we do not need and which cause bugs (e.g. in |
12611 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12612 | # suppresses any "Segmentation fault" message there. '((' could | |
12613 | # trigger a bug in pdksh 5.2.14. | |
12614 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12615 | do eval test x\${$as_var+set} = xset \ | |
12616 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5c706339 AK |
12617 | done |
12618 | PS1='$ ' | |
12619 | PS2='> ' | |
12620 | PS4='+ ' | |
b9668ba4 | 12621 | |
5c706339 | 12622 | # NLS nuisances. |
47dc80f6 AK |
12623 | LC_ALL=C |
12624 | export LC_ALL | |
12625 | LANGUAGE=C | |
12626 | export LANGUAGE | |
b9668ba4 | 12627 | |
0fbeb4dc AK |
12628 | # CDPATH. |
12629 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12630 | ||
12631 | ||
12632 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12633 | # ---------------------------------------- | |
12634 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12635 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12636 | # script with STATUS, using 1 if that was 0. | |
12637 | as_fn_error () | |
12638 | { | |
12639 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12640 | if test "$4"; then | |
12641 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12642 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12643 | fi | |
12644 | $as_echo "$as_me: error: $2" >&2 | |
12645 | as_fn_exit $as_status | |
12646 | } # as_fn_error | |
12647 | ||
12648 | ||
12649 | # as_fn_set_status STATUS | |
12650 | # ----------------------- | |
12651 | # Set $? to STATUS, without forking. | |
12652 | as_fn_set_status () | |
12653 | { | |
12654 | return $1 | |
12655 | } # as_fn_set_status | |
12656 | ||
12657 | # as_fn_exit STATUS | |
12658 | # ----------------- | |
12659 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12660 | as_fn_exit () | |
12661 | { | |
12662 | set +e | |
12663 | as_fn_set_status $1 | |
12664 | exit $1 | |
12665 | } # as_fn_exit | |
12666 | ||
12667 | # as_fn_unset VAR | |
12668 | # --------------- | |
12669 | # Portably unset VAR. | |
12670 | as_fn_unset () | |
12671 | { | |
12672 | { eval $1=; unset $1;} | |
12673 | } | |
12674 | as_unset=as_fn_unset | |
12675 | # as_fn_append VAR VALUE | |
12676 | # ---------------------- | |
12677 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12678 | # advantage of any shell optimizations that allow amortized linear growth over | |
12679 | # repeated appends, instead of the typical quadratic growth present in naive | |
12680 | # implementations. | |
12681 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12682 | eval 'as_fn_append () | |
12683 | { | |
12684 | eval $1+=\$2 | |
12685 | }' | |
12686 | else | |
12687 | as_fn_append () | |
12688 | { | |
12689 | eval $1=\$$1\$2 | |
12690 | } | |
12691 | fi # as_fn_append | |
12692 | ||
12693 | # as_fn_arith ARG... | |
12694 | # ------------------ | |
12695 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12696 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12697 | # must be portable across $(()) and expr. | |
12698 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12699 | eval 'as_fn_arith () | |
12700 | { | |
12701 | as_val=$(( $* )) | |
12702 | }' | |
12703 | else | |
12704 | as_fn_arith () | |
12705 | { | |
12706 | as_val=`expr "$@" || test $? -eq 1` | |
12707 | } | |
12708 | fi # as_fn_arith | |
12709 | ||
12710 | ||
5c706339 AK |
12711 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12712 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12713 | as_expr=expr | |
12714 | else | |
12715 | as_expr=false | |
12716 | fi | |
b9668ba4 | 12717 | |
5c706339 AK |
12718 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12719 | as_basename=basename | |
12720 | else | |
12721 | as_basename=false | |
12722 | fi | |
b9668ba4 | 12723 | |
0fbeb4dc AK |
12724 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12725 | as_dirname=dirname | |
12726 | else | |
12727 | as_dirname=false | |
12728 | fi | |
b9668ba4 | 12729 | |
5c706339 AK |
12730 | as_me=`$as_basename -- "$0" || |
12731 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12732 | X"$0" : 'X\(//\)$' \| \ | |
12733 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
47dc80f6 | 12734 | $as_echo X/"$0" | |
5c706339 AK |
12735 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12736 | s//\1/ | |
12737 | q | |
12738 | } | |
12739 | /^X\/\(\/\/\)$/{ | |
12740 | s//\1/ | |
12741 | q | |
12742 | } | |
12743 | /^X\/\(\/\).*/{ | |
12744 | s//\1/ | |
12745 | q | |
12746 | } | |
12747 | s/.*/./; q'` | |
b9668ba4 | 12748 | |
0fbeb4dc AK |
12749 | # Avoid depending upon Character Ranges. |
12750 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12751 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12752 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12753 | as_cr_digits='0123456789' | |
12754 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b9668ba4 | 12755 | |
5c706339 | 12756 | ECHO_C= ECHO_N= ECHO_T= |
0fbeb4dc | 12757 | case `echo -n x` in #((((( |
5c706339 | 12758 | -n*) |
0fbeb4dc | 12759 | case `echo 'xy\c'` in |
5c706339 | 12760 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
0fbeb4dc AK |
12761 | xy) ECHO_C='\c';; |
12762 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12763 | ECHO_T=' ';; | |
5c706339 AK |
12764 | esac;; |
12765 | *) | |
12766 | ECHO_N='-n';; | |
12767 | esac | |
b9668ba4 | 12768 | |
5c706339 AK |
12769 | rm -f conf$$ conf$$.exe conf$$.file |
12770 | if test -d conf$$.dir; then | |
12771 | rm -f conf$$.dir/conf$$.file | |
12772 | else | |
12773 | rm -f conf$$.dir | |
47dc80f6 AK |
12774 | mkdir conf$$.dir 2>/dev/null |
12775 | fi | |
12776 | if (echo >conf$$.file) 2>/dev/null; then | |
12777 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12778 | as_ln_s='ln -s' | |
12779 | # ... but there are two gotchas: | |
12780 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12781 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
0044e680 | 12782 | # In both cases, we have to default to `cp -pR'. |
47dc80f6 | 12783 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
0044e680 | 12784 | as_ln_s='cp -pR' |
47dc80f6 AK |
12785 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12786 | as_ln_s=ln | |
12787 | else | |
0044e680 | 12788 | as_ln_s='cp -pR' |
47dc80f6 | 12789 | fi |
5c706339 | 12790 | else |
0044e680 | 12791 | as_ln_s='cp -pR' |
5c706339 AK |
12792 | fi |
12793 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12794 | rmdir conf$$.dir 2>/dev/null | |
b9668ba4 | 12795 | |
0fbeb4dc AK |
12796 | |
12797 | # as_fn_mkdir_p | |
12798 | # ------------- | |
12799 | # Create "$as_dir" as a directory, including parents if necessary. | |
12800 | as_fn_mkdir_p () | |
12801 | { | |
12802 | ||
12803 | case $as_dir in #( | |
12804 | -*) as_dir=./$as_dir;; | |
12805 | esac | |
12806 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12807 | as_dirs= | |
12808 | while :; do | |
12809 | case $as_dir in #( | |
12810 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12811 | *) as_qdir=$as_dir;; | |
12812 | esac | |
12813 | as_dirs="'$as_qdir' $as_dirs" | |
12814 | as_dir=`$as_dirname -- "$as_dir" || | |
12815 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12816 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12817 | X"$as_dir" : 'X\(//\)$' \| \ | |
12818 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12819 | $as_echo X"$as_dir" | | |
12820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12821 | s//\1/ | |
12822 | q | |
12823 | } | |
12824 | /^X\(\/\/\)[^/].*/{ | |
12825 | s//\1/ | |
12826 | q | |
12827 | } | |
12828 | /^X\(\/\/\)$/{ | |
12829 | s//\1/ | |
12830 | q | |
12831 | } | |
12832 | /^X\(\/\).*/{ | |
12833 | s//\1/ | |
12834 | q | |
12835 | } | |
12836 | s/.*/./; q'` | |
12837 | test -d "$as_dir" && break | |
12838 | done | |
12839 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12840 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
12841 | ||
12842 | ||
12843 | } # as_fn_mkdir_p | |
5c706339 | 12844 | if mkdir -p . 2>/dev/null; then |
0fbeb4dc | 12845 | as_mkdir_p='mkdir -p "$as_dir"' |
5c706339 AK |
12846 | else |
12847 | test -d ./-p && rmdir ./-p | |
12848 | as_mkdir_p=false | |
12849 | fi | |
b9668ba4 | 12850 | |
0044e680 AK |
12851 | |
12852 | # as_fn_executable_p FILE | |
12853 | # ----------------------- | |
12854 | # Test if FILE is an executable regular file. | |
12855 | as_fn_executable_p () | |
12856 | { | |
12857 | test -f "$1" && test -x "$1" | |
12858 | } # as_fn_executable_p | |
12859 | as_test_x='test -x' | |
12860 | as_executable_p=as_fn_executable_p | |
b9668ba4 | 12861 | |
5c706339 AK |
12862 | # Sed expression to map a string onto a valid CPP name. |
12863 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
b9668ba4 | 12864 | |
5c706339 AK |
12865 | # Sed expression to map a string onto a valid variable name. |
12866 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
b9668ba4 | 12867 | |
b9668ba4 | 12868 | |
5c706339 | 12869 | exec 6>&1 |
0fbeb4dc AK |
12870 | ## ----------------------------------- ## |
12871 | ## Main body of $CONFIG_STATUS script. ## | |
12872 | ## ----------------------------------- ## | |
12873 | _ASEOF | |
12874 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b9668ba4 | 12875 | |
0fbeb4dc AK |
12876 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12877 | # Save the log message, to keep $0 and so on meaningful, and to | |
5c706339 AK |
12878 | # report actual input values of CONFIG_FILES etc. instead of their |
12879 | # values after options handling. | |
12880 | ac_log=" | |
5070705b | 12881 | This file was extended by yaml $as_me 0.2.2, which was |
0044e680 | 12882 | generated by GNU Autoconf 2.69. Invocation command line was |
b9668ba4 | 12883 | |
5c706339 AK |
12884 | CONFIG_FILES = $CONFIG_FILES |
12885 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12886 | CONFIG_LINKS = $CONFIG_LINKS | |
12887 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12888 | $ $0 $@ | |
b9668ba4 | 12889 | |
5c706339 AK |
12890 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12891 | " | |
b9668ba4 | 12892 | |
5c706339 | 12893 | _ACEOF |
b9668ba4 | 12894 | |
47dc80f6 AK |
12895 | case $ac_config_files in *" |
12896 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12897 | esac | |
12898 | ||
12899 | case $ac_config_headers in *" | |
12900 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12901 | esac | |
12902 | ||
12903 | ||
12904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5c706339 AK |
12905 | # Files that config.status was made for. |
12906 | config_files="$ac_config_files" | |
12907 | config_headers="$ac_config_headers" | |
12908 | config_commands="$ac_config_commands" | |
b9668ba4 | 12909 | |
5c706339 | 12910 | _ACEOF |
b9668ba4 | 12911 | |
47dc80f6 | 12912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 | 12913 | ac_cs_usage="\ |
0fbeb4dc AK |
12914 | \`$as_me' instantiates files and other configuration actions |
12915 | from templates according to the current configuration. Unless the files | |
12916 | and actions are specified as TAGs, all are instantiated by default. | |
b9668ba4 | 12917 | |
0fbeb4dc | 12918 | Usage: $0 [OPTION]... [TAG]... |
b9668ba4 | 12919 | |
5c706339 AK |
12920 | -h, --help print this help, then exit |
12921 | -V, --version print version number and configuration settings, then exit | |
0fbeb4dc | 12922 | --config print configuration, then exit |
47dc80f6 AK |
12923 | -q, --quiet, --silent |
12924 | do not print progress messages | |
5c706339 AK |
12925 | -d, --debug don't remove temporary files |
12926 | --recheck update $as_me by reconfiguring in the same conditions | |
47dc80f6 AK |
12927 | --file=FILE[:TEMPLATE] |
12928 | instantiate the configuration file FILE | |
12929 | --header=FILE[:TEMPLATE] | |
12930 | instantiate the configuration header FILE | |
b9668ba4 | 12931 | |
5c706339 AK |
12932 | Configuration files: |
12933 | $config_files | |
b9668ba4 | 12934 | |
5c706339 AK |
12935 | Configuration headers: |
12936 | $config_headers | |
b9668ba4 | 12937 | |
5c706339 AK |
12938 | Configuration commands: |
12939 | $config_commands | |
b9668ba4 | 12940 | |
c45550e5 | 12941 | Report bugs to <https://github.com/yaml/libyaml/issues/new>." |
b9668ba4 | 12942 | |
5c706339 | 12943 | _ACEOF |
47dc80f6 | 12944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
0fbeb4dc | 12945 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5c706339 | 12946 | ac_cs_version="\\ |
5070705b | 12947 | yaml config.status 0.2.2 |
0044e680 | 12948 | configured by $0, generated by GNU Autoconf 2.69, |
0fbeb4dc | 12949 | with options \\"\$ac_cs_config\\" |
b9668ba4 | 12950 | |
0044e680 | 12951 | Copyright (C) 2012 Free Software Foundation, Inc. |
5c706339 AK |
12952 | This config.status script is free software; the Free Software Foundation |
12953 | gives unlimited permission to copy, distribute and modify it." | |
b9668ba4 | 12954 | |
5c706339 AK |
12955 | ac_pwd='$ac_pwd' |
12956 | srcdir='$srcdir' | |
12957 | INSTALL='$INSTALL' | |
12958 | MKDIR_P='$MKDIR_P' | |
47dc80f6 AK |
12959 | AWK='$AWK' |
12960 | test -n "\$AWK" || AWK=awk | |
5c706339 | 12961 | _ACEOF |
b9668ba4 | 12962 | |
47dc80f6 AK |
12963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12964 | # The default lists apply if the user does not specify any file. | |
5c706339 AK |
12965 | ac_need_defaults=: |
12966 | while test $# != 0 | |
12967 | do | |
12968 | case $1 in | |
0fbeb4dc | 12969 | --*=?*) |
5c706339 AK |
12970 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12971 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12972 | ac_shift=: | |
12973 | ;; | |
0fbeb4dc AK |
12974 | --*=) |
12975 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12976 | ac_optarg= | |
12977 | ac_shift=: | |
12978 | ;; | |
5c706339 AK |
12979 | *) |
12980 | ac_option=$1 | |
12981 | ac_optarg=$2 | |
12982 | ac_shift=shift | |
12983 | ;; | |
12984 | esac | |
b9668ba4 | 12985 | |
5c706339 AK |
12986 | case $ac_option in |
12987 | # Handling of the options. | |
12988 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12989 | ac_cs_recheck=: ;; | |
12990 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
47dc80f6 | 12991 | $as_echo "$ac_cs_version"; exit ;; |
0fbeb4dc AK |
12992 | --config | --confi | --conf | --con | --co | --c ) |
12993 | $as_echo "$ac_cs_config"; exit ;; | |
5c706339 AK |
12994 | --debug | --debu | --deb | --de | --d | -d ) |
12995 | debug=: ;; | |
12996 | --file | --fil | --fi | --f ) | |
12997 | $ac_shift | |
47dc80f6 AK |
12998 | case $ac_optarg in |
12999 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
0fbeb4dc | 13000 | '') as_fn_error $? "missing file argument" ;; |
47dc80f6 | 13001 | esac |
0fbeb4dc | 13002 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
5c706339 AK |
13003 | ac_need_defaults=false;; |
13004 | --header | --heade | --head | --hea ) | |
13005 | $ac_shift | |
47dc80f6 AK |
13006 | case $ac_optarg in |
13007 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13008 | esac | |
0fbeb4dc | 13009 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
5c706339 AK |
13010 | ac_need_defaults=false;; |
13011 | --he | --h) | |
13012 | # Conflict between --help and --header | |
0fbeb4dc AK |
13013 | as_fn_error $? "ambiguous option: \`$1' |
13014 | Try \`$0 --help' for more information.";; | |
5c706339 | 13015 | --help | --hel | -h ) |
47dc80f6 | 13016 | $as_echo "$ac_cs_usage"; exit ;; |
5c706339 AK |
13017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13018 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13019 | ac_cs_silent=: ;; | |
b9668ba4 | 13020 | |
5c706339 | 13021 | # This is an error. |
0fbeb4dc AK |
13022 | -*) as_fn_error $? "unrecognized option: \`$1' |
13023 | Try \`$0 --help' for more information." ;; | |
b9668ba4 | 13024 | |
0fbeb4dc | 13025 | *) as_fn_append ac_config_targets " $1" |
5c706339 | 13026 | ac_need_defaults=false ;; |
b9668ba4 | 13027 | |
5c706339 AK |
13028 | esac |
13029 | shift | |
b9668ba4 | 13030 | done |
b9668ba4 | 13031 | |
5c706339 | 13032 | ac_configure_extra_args= |
b9668ba4 | 13033 | |
5c706339 AK |
13034 | if $ac_cs_silent; then |
13035 | exec 6>/dev/null | |
13036 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
b9668ba4 AK |
13037 | fi |
13038 | ||
b9668ba4 | 13039 | _ACEOF |
47dc80f6 | 13040 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5c706339 | 13041 | if \$ac_cs_recheck; then |
0044e680 | 13042 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
47dc80f6 AK |
13043 | shift |
13044 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13045 | CONFIG_SHELL='$SHELL' | |
5c706339 | 13046 | export CONFIG_SHELL |
47dc80f6 | 13047 | exec "\$@" |
5c706339 | 13048 | fi |
b9668ba4 | 13049 | |
5c706339 | 13050 | _ACEOF |
47dc80f6 | 13051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 | 13052 | exec 5>>config.log |
b9668ba4 | 13053 | { |
5c706339 AK |
13054 | echo |
13055 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13056 | ## Running $as_me. ## | |
13057 | _ASBOX | |
47dc80f6 | 13058 | $as_echo "$ac_log" |
5c706339 | 13059 | } >&5 |
b9668ba4 | 13060 | |
b9668ba4 | 13061 | _ACEOF |
47dc80f6 | 13062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5c706339 AK |
13063 | # |
13064 | # INIT-COMMANDS | |
13065 | # | |
13066 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
b9668ba4 | 13067 | |
b9668ba4 | 13068 | |
5c706339 AK |
13069 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13070 | # if CDPATH is set. | |
13071 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
b9668ba4 | 13072 | |
5c706339 AK |
13073 | sed_quote_subst='$sed_quote_subst' |
13074 | double_quote_subst='$double_quote_subst' | |
13075 | delay_variable_subst='$delay_variable_subst' | |
059850b5 AK |
13076 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13077 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13078 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13079 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13080 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13081 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
c45550e5 | 13082 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
059850b5 AK |
13083 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13084 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13085 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13086 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13087 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13088 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13089 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13090 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13091 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13092 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13093 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13094 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13095 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13096 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13097 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13098 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13099 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13100 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13101 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13102 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13103 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13104 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13105 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13106 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13107 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13108 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13109 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13110 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13111 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13112 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13113 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13114 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13115 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13116 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13117 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13118 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13119 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13120 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13121 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13122 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13123 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13124 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13125 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13126 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13127 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13128 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13129 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13130 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13131 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
c45550e5 | 13132 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
059850b5 AK |
13133 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13134 | 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"`' | |
c45550e5 | 13135 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
059850b5 AK |
13136 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13137 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
c45550e5 | 13138 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
059850b5 AK |
13139 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13140 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13141 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13142 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13143 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13144 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13145 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13146 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13147 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13148 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13149 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13150 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13151 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13152 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13153 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13154 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13155 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13156 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13157 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13158 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13159 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13160 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13161 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13162 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13163 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13164 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13165 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13166 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13167 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13168 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13169 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13170 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13171 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13172 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13173 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13174 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13175 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13176 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13177 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13178 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13179 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13180 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13181 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13182 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13183 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13184 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13185 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13186 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13187 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13188 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13189 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13190 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13191 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13192 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13193 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13194 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13195 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13196 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13197 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13198 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13199 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13200 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13201 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13202 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
c45550e5 AK |
13203 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13204 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
059850b5 AK |
13205 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13206 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13207 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13208 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13209 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13210 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
5c706339 AK |
13211 | |
13212 | LTCC='$LTCC' | |
13213 | LTCFLAGS='$LTCFLAGS' | |
13214 | compiler='$compiler_DEFAULT' | |
13215 | ||
059850b5 AK |
13216 | # A function that is used when there is no print builtin or printf. |
13217 | func_fallback_echo () | |
13218 | { | |
13219 | eval 'cat <<_LTECHO_EOF | |
13220 | \$1 | |
13221 | _LTECHO_EOF' | |
13222 | } | |
13223 | ||
5c706339 | 13224 | # Quote evaled strings. |
059850b5 AK |
13225 | for var in SHELL \ |
13226 | ECHO \ | |
13227 | PATH_SEPARATOR \ | |
13228 | SED \ | |
5c706339 AK |
13229 | GREP \ |
13230 | EGREP \ | |
13231 | FGREP \ | |
13232 | LD \ | |
13233 | NM \ | |
13234 | LN_S \ | |
13235 | lt_SP2NL \ | |
13236 | lt_NL2SP \ | |
13237 | reload_flag \ | |
47dc80f6 | 13238 | OBJDUMP \ |
5c706339 AK |
13239 | deplibs_check_method \ |
13240 | file_magic_cmd \ | |
059850b5 AK |
13241 | file_magic_glob \ |
13242 | want_nocaseglob \ | |
13243 | DLLTOOL \ | |
13244 | sharedlib_from_linklib_cmd \ | |
5c706339 AK |
13245 | AR \ |
13246 | AR_FLAGS \ | |
059850b5 | 13247 | archiver_list_spec \ |
5c706339 AK |
13248 | STRIP \ |
13249 | RANLIB \ | |
13250 | CC \ | |
13251 | CFLAGS \ | |
13252 | compiler \ | |
13253 | lt_cv_sys_global_symbol_pipe \ | |
13254 | lt_cv_sys_global_symbol_to_cdecl \ | |
c45550e5 | 13255 | lt_cv_sys_global_symbol_to_import \ |
5c706339 AK |
13256 | lt_cv_sys_global_symbol_to_c_name_address \ |
13257 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
c45550e5 | 13258 | lt_cv_nm_interface \ |
059850b5 | 13259 | nm_file_list_spec \ |
c45550e5 | 13260 | lt_cv_truncate_bin \ |
5c706339 | 13261 | lt_prog_compiler_no_builtin_flag \ |
5c706339 | 13262 | lt_prog_compiler_pic \ |
059850b5 | 13263 | lt_prog_compiler_wl \ |
5c706339 AK |
13264 | lt_prog_compiler_static \ |
13265 | lt_cv_prog_compiler_c_o \ | |
13266 | need_locks \ | |
059850b5 | 13267 | MANIFEST_TOOL \ |
5c706339 AK |
13268 | DSYMUTIL \ |
13269 | NMEDIT \ | |
13270 | LIPO \ | |
13271 | OTOOL \ | |
13272 | OTOOL64 \ | |
13273 | shrext_cmds \ | |
13274 | export_dynamic_flag_spec \ | |
13275 | whole_archive_flag_spec \ | |
13276 | compiler_needs_object \ | |
13277 | with_gnu_ld \ | |
13278 | allow_undefined_flag \ | |
13279 | no_undefined_flag \ | |
13280 | hardcode_libdir_flag_spec \ | |
5c706339 | 13281 | hardcode_libdir_separator \ |
5c706339 AK |
13282 | exclude_expsyms \ |
13283 | include_expsyms \ | |
13284 | file_list_spec \ | |
13285 | variables_saved_for_relink \ | |
13286 | libname_spec \ | |
13287 | library_names_spec \ | |
13288 | soname_spec \ | |
059850b5 | 13289 | install_override_mode \ |
5c706339 AK |
13290 | finish_eval \ |
13291 | old_striplib \ | |
13292 | striplib; do | |
059850b5 | 13293 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
5c706339 | 13294 | *[\\\\\\\`\\"\\\$]*) |
c45550e5 | 13295 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
5c706339 AK |
13296 | ;; |
13297 | *) | |
13298 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13299 | ;; | |
13300 | esac | |
13301 | done | |
13302 | ||
13303 | # Double-quote double-evaled strings. | |
13304 | for var in reload_cmds \ | |
13305 | old_postinstall_cmds \ | |
13306 | old_postuninstall_cmds \ | |
13307 | old_archive_cmds \ | |
13308 | extract_expsyms_cmds \ | |
13309 | old_archive_from_new_cmds \ | |
13310 | old_archive_from_expsyms_cmds \ | |
13311 | archive_cmds \ | |
13312 | archive_expsym_cmds \ | |
13313 | module_cmds \ | |
13314 | module_expsym_cmds \ | |
13315 | export_symbols_cmds \ | |
13316 | prelink_cmds \ | |
059850b5 | 13317 | postlink_cmds \ |
5c706339 AK |
13318 | postinstall_cmds \ |
13319 | postuninstall_cmds \ | |
13320 | finish_cmds \ | |
13321 | sys_lib_search_path_spec \ | |
c45550e5 AK |
13322 | configure_time_dlsearch_path \ |
13323 | configure_time_lt_sys_library_path; do | |
059850b5 | 13324 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
5c706339 | 13325 | *[\\\\\\\`\\"\\\$]*) |
c45550e5 | 13326 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
5c706339 AK |
13327 | ;; |
13328 | *) | |
13329 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13330 | ;; | |
13331 | esac | |
13332 | done | |
13333 | ||
5c706339 | 13334 | ac_aux_dir='$ac_aux_dir' |
b9668ba4 | 13335 | |
c45550e5 | 13336 | # See if we are running on zsh, and set the options that allow our |
5c706339 | 13337 | # commands through without removal of \ escapes INIT. |
c45550e5 | 13338 | if test -n "\${ZSH_VERSION+set}"; then |
5c706339 | 13339 | setopt NO_GLOB_SUBST |
b9668ba4 AK |
13340 | fi |
13341 | ||
5c706339 AK |
13342 | |
13343 | PACKAGE='$PACKAGE' | |
13344 | VERSION='$VERSION' | |
5c706339 AK |
13345 | RM='$RM' |
13346 | ofile='$ofile' | |
13347 | ||
13348 | ||
13349 | ||
b9668ba4 AK |
13350 | |
13351 | _ACEOF | |
b9668ba4 | 13352 | |
47dc80f6 | 13353 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 AK |
13354 | |
13355 | # Handling of arguments. | |
13356 | for ac_config_target in $ac_config_targets | |
13357 | do | |
13358 | case $ac_config_target in | |
5070705b | 13359 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
5c706339 AK |
13360 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
13361 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
0fbeb4dc | 13362 | "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;; |
5c706339 AK |
13363 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13364 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
13365 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13366 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
5c706339 | 13367 | |
059850b5 | 13368 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5c706339 AK |
13369 | esac |
13370 | done | |
13371 | ||
13372 | ||
13373 | # If the user did not use the arguments to specify the items to instantiate, | |
13374 | # then the envvar interface is used. Set only those that are not. | |
13375 | # We use the long form for the default assignment because of an extremely | |
13376 | # bizarre bug on SunOS 4.1.3. | |
13377 | if $ac_need_defaults; then | |
13378 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13379 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13380 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
b9668ba4 AK |
13381 | fi |
13382 | ||
5c706339 AK |
13383 | # Have a temporary directory for convenience. Make it in the build tree |
13384 | # simply because there is no reason against having it here, and in addition, | |
13385 | # creating and moving files from /tmp can sometimes cause problems. | |
13386 | # Hook for its removal unless debugging. | |
13387 | # Note that there is a small window in which the directory will not be cleaned: | |
13388 | # after its creation but before its name has been assigned to `$tmp'. | |
13389 | $debug || | |
13390 | { | |
059850b5 | 13391 | tmp= ac_tmp= |
5c706339 | 13392 | trap 'exit_status=$? |
059850b5 AK |
13393 | : "${ac_tmp:=$tmp}" |
13394 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5c706339 | 13395 | ' 0 |
0fbeb4dc | 13396 | trap 'as_fn_exit 1' 1 2 13 15 |
5c706339 AK |
13397 | } |
13398 | # Create a (secure) tmp directory for tmp files. | |
b9668ba4 | 13399 | |
b9668ba4 | 13400 | { |
5c706339 | 13401 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
059850b5 | 13402 | test -d "$tmp" |
5c706339 AK |
13403 | } || |
13404 | { | |
13405 | tmp=./conf$$-$RANDOM | |
13406 | (umask 077 && mkdir "$tmp") | |
0fbeb4dc | 13407 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
059850b5 | 13408 | ac_tmp=$tmp |
5c706339 | 13409 | |
47dc80f6 AK |
13410 | # Set up the scripts for CONFIG_FILES section. |
13411 | # No need to generate them if there are no CONFIG_FILES. | |
13412 | # This happens for instance with `./config.status config.h'. | |
5c706339 AK |
13413 | if test -n "$CONFIG_FILES"; then |
13414 | ||
5c706339 | 13415 | |
0fbeb4dc AK |
13416 | ac_cr=`echo X | tr X '\015'` |
13417 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13418 | # But we know of no other shell where ac_cr would be empty at this | |
13419 | # point, so we can use a bashism as a fallback. | |
13420 | if test "x$ac_cr" = x; then | |
13421 | eval ac_cr=\$\'\\r\' | |
13422 | fi | |
47dc80f6 AK |
13423 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13424 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13425 | ac_cs_awk_cr='\\r' | |
13426 | else | |
13427 | ac_cs_awk_cr=$ac_cr | |
b9668ba4 AK |
13428 | fi |
13429 | ||
059850b5 | 13430 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5c706339 | 13431 | _ACEOF |
b9668ba4 | 13432 | |
b9668ba4 | 13433 | |
47dc80f6 AK |
13434 | { |
13435 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13436 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13437 | echo "_ACEOF" | |
13438 | } >conf$$subs.sh || | |
0fbeb4dc AK |
13439 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13440 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5c706339 AK |
13441 | ac_delim='%!_!# ' |
13442 | for ac_last_try in false false false false false :; do | |
47dc80f6 | 13443 | . ./conf$$subs.sh || |
0fbeb4dc | 13444 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
b9668ba4 | 13445 | |
47dc80f6 AK |
13446 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13447 | if test $ac_delim_n = $ac_delim_num; then | |
5c706339 AK |
13448 | break |
13449 | elif $ac_last_try; then | |
0fbeb4dc | 13450 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5c706339 AK |
13451 | else |
13452 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13453 | fi | |
13454 | done | |
47dc80f6 | 13455 | rm -f conf$$subs.sh |
b9668ba4 | 13456 | |
47dc80f6 | 13457 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
059850b5 | 13458 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
47dc80f6 AK |
13459 | _ACEOF |
13460 | sed -n ' | |
13461 | h | |
13462 | s/^/S["/; s/!.*/"]=/ | |
13463 | p | |
13464 | g | |
13465 | s/^[^!]*!// | |
13466 | :repl | |
13467 | t repl | |
13468 | s/'"$ac_delim"'$// | |
13469 | t delim | |
13470 | :nl | |
13471 | h | |
0fbeb4dc | 13472 | s/\(.\{148\}\)..*/\1/ |
47dc80f6 AK |
13473 | t more1 |
13474 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13475 | p | |
13476 | n | |
13477 | b repl | |
13478 | :more1 | |
13479 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13480 | p | |
13481 | g | |
13482 | s/.\{148\}// | |
13483 | t nl | |
13484 | :delim | |
13485 | h | |
0fbeb4dc | 13486 | s/\(.\{148\}\)..*/\1/ |
47dc80f6 AK |
13487 | t more2 |
13488 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13489 | p | |
13490 | b | |
13491 | :more2 | |
13492 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13493 | p | |
13494 | g | |
13495 | s/.\{148\}// | |
13496 | t delim | |
13497 | ' <conf$$subs.awk | sed ' | |
13498 | /^[^""]/{ | |
13499 | N | |
13500 | s/\n// | |
13501 | } | |
13502 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13503 | rm -f conf$$subs.awk | |
13504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13505 | _ACAWK | |
059850b5 | 13506 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
47dc80f6 AK |
13507 | for (key in S) S_is_set[key] = 1 |
13508 | FS = "\a" | |
13509 | ||
13510 | } | |
13511 | { | |
13512 | line = $ 0 | |
13513 | nfields = split(line, field, "@") | |
13514 | substed = 0 | |
13515 | len = length(field[1]) | |
13516 | for (i = 2; i < nfields; i++) { | |
13517 | key = field[i] | |
13518 | keylen = length(key) | |
13519 | if (S_is_set[key]) { | |
13520 | value = S[key] | |
13521 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13522 | len += length(value) + length(field[++i]) | |
13523 | substed = 1 | |
13524 | } else | |
13525 | len += 1 + keylen | |
13526 | } | |
5c706339 | 13527 | |
47dc80f6 AK |
13528 | print line |
13529 | } | |
13530 | ||
13531 | _ACAWK | |
b9668ba4 | 13532 | _ACEOF |
47dc80f6 AK |
13533 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13534 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13535 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13536 | else | |
13537 | cat | |
059850b5 | 13538 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
0fbeb4dc | 13539 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
b9668ba4 | 13540 | _ACEOF |
b9668ba4 | 13541 | |
0fbeb4dc AK |
13542 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13543 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5c706339 AK |
13544 | # trailing colons and then remove the whole line if VPATH becomes empty |
13545 | # (actually we leave an empty line to preserve line numbers). | |
13546 | if test "x$srcdir" = x.; then | |
0fbeb4dc AK |
13547 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13548 | h | |
13549 | s/// | |
13550 | s/^/:/ | |
13551 | s/[ ]*$/:/ | |
13552 | s/:\$(srcdir):/:/g | |
13553 | s/:\${srcdir}:/:/g | |
13554 | s/:@srcdir@:/:/g | |
13555 | s/^:*// | |
5c706339 | 13556 | s/:*$// |
0fbeb4dc AK |
13557 | x |
13558 | s/\(=[ ]*\).*/\1/ | |
13559 | G | |
13560 | s/\n// | |
5c706339 AK |
13561 | s/^[^=]*=[ ]*$// |
13562 | }' | |
b9668ba4 AK |
13563 | fi |
13564 | ||
47dc80f6 | 13565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 AK |
13566 | fi # test -n "$CONFIG_FILES" |
13567 | ||
47dc80f6 AK |
13568 | # Set up the scripts for CONFIG_HEADERS section. |
13569 | # No need to generate them if there are no CONFIG_HEADERS. | |
13570 | # This happens for instance with `./config.status Makefile'. | |
13571 | if test -n "$CONFIG_HEADERS"; then | |
059850b5 | 13572 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
47dc80f6 AK |
13573 | BEGIN { |
13574 | _ACEOF | |
13575 | ||
13576 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13577 | # here-document in config.status, that substitutes the proper values into | |
13578 | # config.h.in to produce config.h. | |
13579 | ||
13580 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13581 | # handling of long lines. | |
13582 | ac_delim='%!_!# ' | |
13583 | for ac_last_try in false false :; do | |
059850b5 AK |
13584 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13585 | if test -z "$ac_tt"; then | |
47dc80f6 AK |
13586 | break |
13587 | elif $ac_last_try; then | |
0fbeb4dc | 13588 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
47dc80f6 AK |
13589 | else |
13590 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13591 | fi | |
13592 | done | |
13593 | ||
13594 | # For the awk script, D is an array of macro values keyed by name, | |
13595 | # likewise P contains macro parameters if any. Preserve backslash | |
13596 | # newline sequences. | |
5c706339 | 13597 | |
47dc80f6 AK |
13598 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13599 | sed -n ' | |
13600 | s/.\{148\}/&'"$ac_delim"'/g | |
13601 | t rset | |
13602 | :rset | |
13603 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13604 | t def | |
13605 | d | |
13606 | :def | |
13607 | s/\\$// | |
13608 | t bsnl | |
13609 | s/["\\]/\\&/g | |
13610 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13611 | D["\1"]=" \3"/p | |
13612 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13613 | d | |
13614 | :bsnl | |
13615 | s/["\\]/\\&/g | |
13616 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13617 | D["\1"]=" \3\\\\\\n"\\/p | |
13618 | t cont | |
13619 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13620 | t cont | |
13621 | d | |
13622 | :cont | |
13623 | n | |
13624 | s/.\{148\}/&'"$ac_delim"'/g | |
13625 | t clear | |
13626 | :clear | |
13627 | s/\\$// | |
13628 | t bsnlc | |
13629 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13630 | d | |
13631 | :bsnlc | |
13632 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13633 | b cont | |
13634 | ' <confdefs.h | sed ' | |
13635 | s/'"$ac_delim"'/"\\\ | |
13636 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13637 | ||
13638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13639 | for (key in D) D_is_set[key] = 1 | |
13640 | FS = "\a" | |
13641 | } | |
13642 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13643 | line = \$ 0 | |
13644 | split(line, arg, " ") | |
13645 | if (arg[1] == "#") { | |
13646 | defundef = arg[2] | |
13647 | mac1 = arg[3] | |
13648 | } else { | |
13649 | defundef = substr(arg[1], 2) | |
13650 | mac1 = arg[2] | |
13651 | } | |
13652 | split(mac1, mac2, "(") #) | |
13653 | macro = mac2[1] | |
13654 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13655 | if (D_is_set[macro]) { | |
13656 | # Preserve the white space surrounding the "#". | |
13657 | print prefix "define", macro P[macro] D[macro] | |
13658 | next | |
13659 | } else { | |
13660 | # Replace #undef with comments. This is necessary, for example, | |
13661 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13662 | # on some systems where configure will not decide to define it. | |
13663 | if (defundef == "undef") { | |
13664 | print "/*", prefix defundef, macro, "*/" | |
13665 | next | |
13666 | } | |
13667 | } | |
13668 | } | |
13669 | { print } | |
13670 | _ACAWK | |
13671 | _ACEOF | |
13672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
0fbeb4dc | 13673 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
47dc80f6 AK |
13674 | fi # test -n "$CONFIG_HEADERS" |
13675 | ||
13676 | ||
13677 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13678 | shift | |
13679 | for ac_tag | |
5c706339 AK |
13680 | do |
13681 | case $ac_tag in | |
13682 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13683 | esac | |
13684 | case $ac_mode$ac_tag in | |
13685 | :[FHL]*:*);; | |
059850b5 | 13686 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5c706339 AK |
13687 | :[FH]-) ac_tag=-:-;; |
13688 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13689 | esac | |
13690 | ac_save_IFS=$IFS | |
13691 | IFS=: | |
13692 | set x $ac_tag | |
13693 | IFS=$ac_save_IFS | |
13694 | shift | |
13695 | ac_file=$1 | |
13696 | shift | |
13697 | ||
13698 | case $ac_mode in | |
13699 | :L) ac_source=$1;; | |
13700 | :[FH]) | |
13701 | ac_file_inputs= | |
13702 | for ac_f | |
13703 | do | |
13704 | case $ac_f in | |
059850b5 | 13705 | -) ac_f="$ac_tmp/stdin";; |
5c706339 AK |
13706 | *) # Look for the file first in the build tree, then in the source tree |
13707 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13708 | # because $ac_f cannot contain `:'. | |
13709 | test -f "$ac_f" || | |
13710 | case $ac_f in | |
13711 | [\\/$]*) false;; | |
13712 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13713 | esac || | |
059850b5 | 13714 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5c706339 | 13715 | esac |
47dc80f6 | 13716 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
0fbeb4dc | 13717 | as_fn_append ac_file_inputs " '$ac_f'" |
5c706339 AK |
13718 | done |
13719 | ||
13720 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13721 | # use $as_me), people would be surprised to read: | |
13722 | # /* config.h. Generated by config.status. */ | |
47dc80f6 AK |
13723 | configure_input='Generated from '` |
13724 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13725 | `' by configure.' | |
5c706339 AK |
13726 | if test x"$ac_file" != x-; then |
13727 | configure_input="$ac_file. $configure_input" | |
0fbeb4dc | 13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
47dc80f6 | 13729 | $as_echo "$as_me: creating $ac_file" >&6;} |
5c706339 | 13730 | fi |
47dc80f6 AK |
13731 | # Neutralize special characters interpreted by sed in replacement strings. |
13732 | case $configure_input in #( | |
13733 | *\&* | *\|* | *\\* ) | |
13734 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13735 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13736 | *) ac_sed_conf_input=$configure_input;; | |
13737 | esac | |
5c706339 AK |
13738 | |
13739 | case $ac_tag in | |
059850b5 AK |
13740 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13741 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5c706339 AK |
13742 | esac |
13743 | ;; | |
13744 | esac | |
13745 | ||
13746 | ac_dir=`$as_dirname -- "$ac_file" || | |
13747 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13748 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13749 | X"$ac_file" : 'X\(//\)$' \| \ | |
13750 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
47dc80f6 | 13751 | $as_echo X"$ac_file" | |
5c706339 AK |
13752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13753 | s//\1/ | |
13754 | q | |
13755 | } | |
13756 | /^X\(\/\/\)[^/].*/{ | |
13757 | s//\1/ | |
13758 | q | |
13759 | } | |
13760 | /^X\(\/\/\)$/{ | |
13761 | s//\1/ | |
13762 | q | |
13763 | } | |
13764 | /^X\(\/\).*/{ | |
13765 | s//\1/ | |
13766 | q | |
13767 | } | |
13768 | s/.*/./; q'` | |
0fbeb4dc | 13769 | as_dir="$ac_dir"; as_fn_mkdir_p |
5c706339 | 13770 | ac_builddir=. |
b9668ba4 | 13771 | |
5c706339 AK |
13772 | case "$ac_dir" in |
13773 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13774 | *) | |
47dc80f6 | 13775 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
5c706339 | 13776 | # A ".." for each directory in $ac_dir_suffix. |
47dc80f6 | 13777 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5c706339 AK |
13778 | case $ac_top_builddir_sub in |
13779 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13780 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13781 | esac ;; | |
b9668ba4 | 13782 | esac |
5c706339 AK |
13783 | ac_abs_top_builddir=$ac_pwd |
13784 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13785 | # for backward compatibility: | |
13786 | ac_top_builddir=$ac_top_build_prefix | |
b9668ba4 | 13787 | |
5c706339 AK |
13788 | case $srcdir in |
13789 | .) # We are building in place. | |
13790 | ac_srcdir=. | |
13791 | ac_top_srcdir=$ac_top_builddir_sub | |
13792 | ac_abs_top_srcdir=$ac_pwd ;; | |
13793 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13794 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13795 | ac_top_srcdir=$srcdir | |
13796 | ac_abs_top_srcdir=$srcdir ;; | |
13797 | *) # Relative name. | |
13798 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13799 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13800 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b9668ba4 | 13801 | esac |
5c706339 | 13802 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b9668ba4 | 13803 | |
b9668ba4 | 13804 | |
5c706339 AK |
13805 | case $ac_mode in |
13806 | :F) | |
13807 | # | |
13808 | # CONFIG_FILE | |
13809 | # | |
b9668ba4 | 13810 | |
5c706339 AK |
13811 | case $INSTALL in |
13812 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13813 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13814 | esac | |
13815 | ac_MKDIR_P=$MKDIR_P | |
13816 | case $MKDIR_P in | |
13817 | [\\/$]* | ?:[\\/]* ) ;; | |
13818 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13819 | esac | |
13820 | _ACEOF | |
b9668ba4 | 13821 | |
47dc80f6 | 13822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 AK |
13823 | # If the template does not know about datarootdir, expand it. |
13824 | # FIXME: This hack should be removed a few years after 2.60. | |
13825 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
47dc80f6 AK |
13826 | ac_sed_dataroot=' |
13827 | /datarootdir/ { | |
5c706339 AK |
13828 | p |
13829 | q | |
13830 | } | |
13831 | /@datadir@/p | |
13832 | /@docdir@/p | |
13833 | /@infodir@/p | |
13834 | /@localedir@/p | |
0fbeb4dc | 13835 | /@mandir@/p' |
47dc80f6 | 13836 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
5c706339 AK |
13837 | *datarootdir*) ac_datarootdir_seen=yes;; |
13838 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
0fbeb4dc | 13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
47dc80f6 | 13840 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
5c706339 | 13841 | _ACEOF |
47dc80f6 | 13842 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5c706339 AK |
13843 | ac_datarootdir_hack=' |
13844 | s&@datadir@&$datadir&g | |
13845 | s&@docdir@&$docdir&g | |
13846 | s&@infodir@&$infodir&g | |
13847 | s&@localedir@&$localedir&g | |
13848 | s&@mandir@&$mandir&g | |
0fbeb4dc | 13849 | s&\\\${datarootdir}&$datarootdir&g' ;; |
5c706339 | 13850 | esac |
b9668ba4 | 13851 | _ACEOF |
b9668ba4 | 13852 | |
5c706339 AK |
13853 | # Neutralize VPATH when `$srcdir' = `.'. |
13854 | # Shell code in configure.ac might set extrasub. | |
13855 | # FIXME: do we really want to maintain this feature? | |
47dc80f6 AK |
13856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13857 | ac_sed_extra="$ac_vpsub | |
5c706339 AK |
13858 | $extrasub |
13859 | _ACEOF | |
47dc80f6 | 13860 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5c706339 AK |
13861 | :t |
13862 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
47dc80f6 | 13863 | s|@configure_input@|$ac_sed_conf_input|;t t |
5c706339 | 13864 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
47dc80f6 | 13865 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
5c706339 AK |
13866 | s&@srcdir@&$ac_srcdir&;t t |
13867 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13868 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13869 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13870 | s&@builddir@&$ac_builddir&;t t | |
13871 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13872 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13873 | s&@INSTALL@&$ac_INSTALL&;t t | |
13874 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13875 | $ac_datarootdir_hack | |
47dc80f6 | 13876 | " |
059850b5 AK |
13877 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13878 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
b9668ba4 | 13879 | |
5c706339 | 13880 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
059850b5 AK |
13881 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13882 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13883 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
0fbeb4dc AK |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
13885 | which seems to be undefined. Please make sure it is defined" >&5 | |
47dc80f6 | 13886 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
0fbeb4dc | 13887 | which seems to be undefined. Please make sure it is defined" >&2;} |
b9668ba4 | 13888 | |
059850b5 | 13889 | rm -f "$ac_tmp/stdin" |
5c706339 | 13890 | case $ac_file in |
059850b5 AK |
13891 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13892 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
47dc80f6 | 13893 | esac \ |
0fbeb4dc | 13894 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5c706339 AK |
13895 | ;; |
13896 | :H) | |
13897 | # | |
13898 | # CONFIG_HEADER | |
13899 | # | |
5c706339 | 13900 | if test x"$ac_file" != x-; then |
47dc80f6 AK |
13901 | { |
13902 | $as_echo "/* $configure_input */" \ | |
059850b5 AK |
13903 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13904 | } >"$ac_tmp/config.h" \ | |
0fbeb4dc | 13905 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
059850b5 | 13906 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
0fbeb4dc | 13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
47dc80f6 | 13908 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
5c706339 | 13909 | else |
47dc80f6 | 13910 | rm -f "$ac_file" |
059850b5 | 13911 | mv "$ac_tmp/config.h" "$ac_file" \ |
0fbeb4dc | 13912 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5c706339 AK |
13913 | fi |
13914 | else | |
47dc80f6 | 13915 | $as_echo "/* $configure_input */" \ |
059850b5 | 13916 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
0fbeb4dc | 13917 | || as_fn_error $? "could not create -" "$LINENO" 5 |
5c706339 | 13918 | fi |
47dc80f6 AK |
13919 | # Compute "$ac_file"'s index in $config_headers. |
13920 | _am_arg="$ac_file" | |
5c706339 AK |
13921 | _am_stamp_count=1 |
13922 | for _am_header in $config_headers :; do | |
13923 | case $_am_header in | |
13924 | $_am_arg | $_am_arg:* ) | |
13925 | break ;; | |
13926 | * ) | |
13927 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13928 | esac | |
13929 | done | |
13930 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13931 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13932 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13933 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13934 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
47dc80f6 | 13935 | $as_echo X"$_am_arg" | |
5c706339 AK |
13936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13937 | s//\1/ | |
13938 | q | |
13939 | } | |
13940 | /^X\(\/\/\)[^/].*/{ | |
13941 | s//\1/ | |
13942 | q | |
13943 | } | |
13944 | /^X\(\/\/\)$/{ | |
13945 | s//\1/ | |
13946 | q | |
13947 | } | |
13948 | /^X\(\/\).*/{ | |
13949 | s//\1/ | |
13950 | q | |
13951 | } | |
13952 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13953 | ;; | |
b9668ba4 | 13954 | |
0fbeb4dc | 13955 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
47dc80f6 | 13956 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
5c706339 AK |
13957 | ;; |
13958 | esac | |
b9668ba4 | 13959 | |
b9668ba4 | 13960 | |
5c706339 | 13961 | case $ac_file$ac_mode in |
47dc80f6 | 13962 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
0044e680 | 13963 | # Older Autoconf quotes --file arguments for eval, but not when files |
47dc80f6 AK |
13964 | # are listed without --file. Let's play safe and only enable the eval |
13965 | # if we detect the quoting. | |
13966 | case $CONFIG_FILES in | |
13967 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13968 | *) set x $CONFIG_FILES ;; | |
13969 | esac | |
13970 | shift | |
13971 | for mf | |
13972 | do | |
13973 | # Strip MF so we end up with the name of the file. | |
13974 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13975 | # Check whether this is an Automake generated Makefile or not. | |
0044e680 | 13976 | # We used to match only the files named 'Makefile.in', but |
47dc80f6 AK |
13977 | # some people rename them; so instead we look at the file content. |
13978 | # Grep'ing the first line is not enough: some people post-process | |
13979 | # each Makefile.in and add a new line on top of each file to say so. | |
13980 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13981 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13982 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13983 | dirpart=`$as_dirname -- "$mf" || | |
5c706339 AK |
13984 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13985 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13986 | X"$mf" : 'X\(//\)$' \| \ | |
13987 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
47dc80f6 | 13988 | $as_echo X"$mf" | |
5c706339 AK |
13989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13990 | s//\1/ | |
13991 | q | |
13992 | } | |
13993 | /^X\(\/\/\)[^/].*/{ | |
13994 | s//\1/ | |
13995 | q | |
13996 | } | |
13997 | /^X\(\/\/\)$/{ | |
13998 | s//\1/ | |
13999 | q | |
14000 | } | |
14001 | /^X\(\/\).*/{ | |
14002 | s//\1/ | |
14003 | q | |
14004 | } | |
14005 | s/.*/./; q'` | |
47dc80f6 AK |
14006 | else |
14007 | continue | |
14008 | fi | |
14009 | # Extract the definition of DEPDIR, am__include, and am__quote | |
0044e680 | 14010 | # from the Makefile without running 'make'. |
47dc80f6 AK |
14011 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14012 | test -z "$DEPDIR" && continue | |
14013 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
0044e680 | 14014 | test -z "$am__include" && continue |
47dc80f6 | 14015 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
47dc80f6 AK |
14016 | # Find all dependency output files, they are included files with |
14017 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14018 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14019 | # expansion. | |
14020 | for file in `sed -n " | |
14021 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
0044e680 | 14022 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
47dc80f6 AK |
14023 | # Make sure the directory exists. |
14024 | test -f "$dirpart/$file" && continue | |
14025 | fdir=`$as_dirname -- "$file" || | |
5c706339 AK |
14026 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14027 | X"$file" : 'X\(//\)[^/]' \| \ | |
14028 | X"$file" : 'X\(//\)$' \| \ | |
14029 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
47dc80f6 | 14030 | $as_echo X"$file" | |
5c706339 AK |
14031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14032 | s//\1/ | |
14033 | q | |
14034 | } | |
14035 | /^X\(\/\/\)[^/].*/{ | |
14036 | s//\1/ | |
14037 | q | |
14038 | } | |
14039 | /^X\(\/\/\)$/{ | |
14040 | s//\1/ | |
14041 | q | |
14042 | } | |
14043 | /^X\(\/\).*/{ | |
14044 | s//\1/ | |
14045 | q | |
14046 | } | |
14047 | s/.*/./; q'` | |
0fbeb4dc | 14048 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
47dc80f6 AK |
14049 | # echo "creating $dirpart/$file" |
14050 | echo '# dummy' > "$dirpart/$file" | |
14051 | done | |
5c706339 | 14052 | done |
47dc80f6 | 14053 | } |
5c706339 AK |
14054 | ;; |
14055 | "libtool":C) | |
b9668ba4 | 14056 | |
c45550e5 | 14057 | # See if we are running on zsh, and set the options that allow our |
5c706339 | 14058 | # commands through without removal of \ escapes. |
c45550e5 | 14059 | if test -n "${ZSH_VERSION+set}"; then |
5c706339 AK |
14060 | setopt NO_GLOB_SUBST |
14061 | fi | |
b9668ba4 | 14062 | |
c45550e5 | 14063 | cfgfile=${ofile}T |
5c706339 AK |
14064 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14065 | $RM "$cfgfile" | |
b9668ba4 | 14066 | |
5c706339 AK |
14067 | cat <<_LT_EOF >> "$cfgfile" |
14068 | #! $SHELL | |
c45550e5 | 14069 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
5c706339 | 14070 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
c45550e5 AK |
14071 | |
14072 | # Provide generalized library-building support services. | |
14073 | # Written by Gordon Matzigkeit, 1996 | |
14074 | ||
14075 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14076 | # This is free software; see the source for copying conditions. There is NO | |
14077 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14078 | ||
14079 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14080 | # it under the terms of the GNU General Public License as published by | |
14081 | # the Free Software Foundation; either version 2 of of the License, or | |
14082 | # (at your option) any later version. | |
b9668ba4 | 14083 | # |
c45550e5 AK |
14084 | # As a special exception to the GNU General Public License, if you |
14085 | # distribute this file as part of a program or library that is built | |
14086 | # using GNU Libtool, you may include this file under the same | |
14087 | # distribution terms that you use for the rest of that program. | |
5c706339 | 14088 | # |
c45550e5 AK |
14089 | # GNU Libtool is distributed in the hope that it will be useful, but |
14090 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
5c706339 AK |
14091 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14092 | # GNU General Public License for more details. | |
14093 | # | |
14094 | # You should have received a copy of the GNU General Public License | |
c45550e5 | 14095 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
b9668ba4 | 14096 | |
b9668ba4 | 14097 | |
5c706339 | 14098 | # The names of the tagged configurations supported by this script. |
c45550e5 AK |
14099 | available_tags='' |
14100 | ||
14101 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14102 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
b9668ba4 | 14103 | |
5c706339 | 14104 | # ### BEGIN LIBTOOL CONFIG |
b9668ba4 | 14105 | |
5c706339 AK |
14106 | # Which release of libtool.m4 was used? |
14107 | macro_version=$macro_version | |
14108 | macro_revision=$macro_revision | |
b9668ba4 | 14109 | |
5c706339 AK |
14110 | # Whether or not to build shared libraries. |
14111 | build_libtool_libs=$enable_shared | |
b9668ba4 | 14112 | |
5c706339 AK |
14113 | # Whether or not to build static libraries. |
14114 | build_old_libs=$enable_static | |
b9668ba4 | 14115 | |
5c706339 AK |
14116 | # What type of objects to build. |
14117 | pic_mode=$pic_mode | |
b9668ba4 | 14118 | |
5c706339 AK |
14119 | # Whether or not to optimize for fast installation. |
14120 | fast_install=$enable_fast_install | |
b9668ba4 | 14121 | |
c45550e5 AK |
14122 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14123 | shared_archive_member_spec=$shared_archive_member_spec | |
14124 | ||
059850b5 AK |
14125 | # Shell to use when invoking shell scripts. |
14126 | SHELL=$lt_SHELL | |
14127 | ||
14128 | # An echo program that protects backslashes. | |
14129 | ECHO=$lt_ECHO | |
14130 | ||
14131 | # The PATH separator for the build system. | |
14132 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14133 | ||
5c706339 AK |
14134 | # The host system. |
14135 | host_alias=$host_alias | |
14136 | host=$host | |
14137 | host_os=$host_os | |
b9668ba4 | 14138 | |
5c706339 AK |
14139 | # The build system. |
14140 | build_alias=$build_alias | |
14141 | build=$build | |
14142 | build_os=$build_os | |
b9668ba4 | 14143 | |
5c706339 AK |
14144 | # A sed program that does not truncate output. |
14145 | SED=$lt_SED | |
b9668ba4 | 14146 | |
5c706339 AK |
14147 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14148 | Xsed="\$SED -e 1s/^X//" | |
b9668ba4 | 14149 | |
5c706339 AK |
14150 | # A grep program that handles long lines. |
14151 | GREP=$lt_GREP | |
14152 | ||
14153 | # An ERE matcher. | |
14154 | EGREP=$lt_EGREP | |
b9668ba4 | 14155 | |
5c706339 AK |
14156 | # A literal string matcher. |
14157 | FGREP=$lt_FGREP | |
b9668ba4 | 14158 | |
5c706339 AK |
14159 | # A BSD- or MS-compatible name lister. |
14160 | NM=$lt_NM | |
b9668ba4 | 14161 | |
5c706339 AK |
14162 | # Whether we need soft or hard links. |
14163 | LN_S=$lt_LN_S | |
b9668ba4 | 14164 | |
5c706339 AK |
14165 | # What is the maximum length of a command? |
14166 | max_cmd_len=$max_cmd_len | |
b9668ba4 | 14167 | |
5c706339 AK |
14168 | # Object file suffix (normally "o"). |
14169 | objext=$ac_objext | |
b9668ba4 | 14170 | |
5c706339 AK |
14171 | # Executable file suffix (normally ""). |
14172 | exeext=$exeext | |
b9668ba4 | 14173 | |
5c706339 AK |
14174 | # whether the shell understands "unset". |
14175 | lt_unset=$lt_unset | |
b9668ba4 | 14176 | |
5c706339 AK |
14177 | # turn spaces into newlines. |
14178 | SP2NL=$lt_lt_SP2NL | |
b9668ba4 | 14179 | |
5c706339 AK |
14180 | # turn newlines into spaces. |
14181 | NL2SP=$lt_lt_NL2SP | |
b9668ba4 | 14182 | |
059850b5 AK |
14183 | # convert \$build file names to \$host format. |
14184 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14185 | ||
14186 | # convert \$build files to toolchain format. | |
14187 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
b9668ba4 | 14188 | |
47dc80f6 AK |
14189 | # An object symbol dumper. |
14190 | OBJDUMP=$lt_OBJDUMP | |
14191 | ||
5c706339 AK |
14192 | # Method to check whether dependent libraries are shared objects. |
14193 | deplibs_check_method=$lt_deplibs_check_method | |
b9668ba4 | 14194 | |
059850b5 | 14195 | # Command to use when deplibs_check_method = "file_magic". |
5c706339 | 14196 | file_magic_cmd=$lt_file_magic_cmd |
b9668ba4 | 14197 | |
059850b5 AK |
14198 | # How to find potential files when deplibs_check_method = "file_magic". |
14199 | file_magic_glob=$lt_file_magic_glob | |
14200 | ||
14201 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14202 | want_nocaseglob=$lt_want_nocaseglob | |
14203 | ||
14204 | # DLL creation program. | |
14205 | DLLTOOL=$lt_DLLTOOL | |
14206 | ||
14207 | # Command to associate shared and link libraries. | |
14208 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14209 | ||
5c706339 AK |
14210 | # The archiver. |
14211 | AR=$lt_AR | |
059850b5 AK |
14212 | |
14213 | # Flags to create an archive. | |
5c706339 | 14214 | AR_FLAGS=$lt_AR_FLAGS |
b9668ba4 | 14215 | |
059850b5 AK |
14216 | # How to feed a file listing to the archiver. |
14217 | archiver_list_spec=$lt_archiver_list_spec | |
14218 | ||
5c706339 AK |
14219 | # A symbol stripping program. |
14220 | STRIP=$lt_STRIP | |
b9668ba4 | 14221 | |
5c706339 AK |
14222 | # Commands used to install an old-style archive. |
14223 | RANLIB=$lt_RANLIB | |
14224 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14225 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
b9668ba4 | 14226 | |
059850b5 AK |
14227 | # Whether to use a lock for old archive extraction. |
14228 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14229 | ||
5c706339 AK |
14230 | # A C compiler. |
14231 | LTCC=$lt_CC | |
b9668ba4 | 14232 | |
5c706339 AK |
14233 | # LTCC compiler flags. |
14234 | LTCFLAGS=$lt_CFLAGS | |
b9668ba4 | 14235 | |
5c706339 AK |
14236 | # Take the output of nm and produce a listing of raw symbols and C names. |
14237 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
b9668ba4 | 14238 | |
5c706339 AK |
14239 | # Transform the output of nm in a proper C declaration. |
14240 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
b9668ba4 | 14241 | |
c45550e5 AK |
14242 | # Transform the output of nm into a list of symbols to manually relocate. |
14243 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14244 | ||
5c706339 AK |
14245 | # Transform the output of nm in a C name address pair. |
14246 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
b9668ba4 | 14247 | |
5c706339 AK |
14248 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14249 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
b9668ba4 | 14250 | |
c45550e5 AK |
14251 | # The name lister interface. |
14252 | nm_interface=$lt_lt_cv_nm_interface | |
14253 | ||
059850b5 AK |
14254 | # Specify filename containing input files for \$NM. |
14255 | nm_file_list_spec=$lt_nm_file_list_spec | |
b9668ba4 | 14256 | |
c45550e5 | 14257 | # The root where to search for dependent libraries,and where our libraries should be installed. |
059850b5 | 14258 | lt_sysroot=$lt_sysroot |
b9668ba4 | 14259 | |
c45550e5 AK |
14260 | # Command to truncate a binary pipe. |
14261 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14262 | ||
059850b5 AK |
14263 | # The name of the directory that contains temporary libtool files. |
14264 | objdir=$objdir | |
b9668ba4 | 14265 | |
5c706339 AK |
14266 | # Used to examine libraries when file_magic_cmd begins with "file". |
14267 | MAGIC_CMD=$MAGIC_CMD | |
b9668ba4 | 14268 | |
5c706339 AK |
14269 | # Must we lock files when doing compilation? |
14270 | need_locks=$lt_need_locks | |
b9668ba4 | 14271 | |
059850b5 AK |
14272 | # Manifest tool. |
14273 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14274 | ||
5c706339 AK |
14275 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14276 | DSYMUTIL=$lt_DSYMUTIL | |
b9668ba4 | 14277 | |
5c706339 AK |
14278 | # Tool to change global to local symbols on Mac OS X. |
14279 | NMEDIT=$lt_NMEDIT | |
b9668ba4 | 14280 | |
5c706339 AK |
14281 | # Tool to manipulate fat objects and archives on Mac OS X. |
14282 | LIPO=$lt_LIPO | |
b9668ba4 | 14283 | |
5c706339 AK |
14284 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14285 | OTOOL=$lt_OTOOL | |
14286 | ||
14287 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14288 | OTOOL64=$lt_OTOOL64 | |
14289 | ||
14290 | # Old archive suffix (normally "a"). | |
14291 | libext=$libext | |
14292 | ||
14293 | # Shared library suffix (normally ".so"). | |
14294 | shrext_cmds=$lt_shrext_cmds | |
b9668ba4 | 14295 | |
5c706339 AK |
14296 | # The commands to extract the exported symbol list from a shared archive. |
14297 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
b9668ba4 | 14298 | |
5c706339 AK |
14299 | # Variables whose values should be saved in libtool wrapper scripts and |
14300 | # restored at link time. | |
14301 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
b9668ba4 | 14302 | |
5c706339 AK |
14303 | # Do we need the "lib" prefix for modules? |
14304 | need_lib_prefix=$need_lib_prefix | |
b9668ba4 | 14305 | |
5c706339 AK |
14306 | # Do we need a version for libraries? |
14307 | need_version=$need_version | |
b9668ba4 | 14308 | |
5c706339 AK |
14309 | # Library versioning type. |
14310 | version_type=$version_type | |
b9668ba4 | 14311 | |
5c706339 AK |
14312 | # Shared library runtime path variable. |
14313 | runpath_var=$runpath_var | |
b9668ba4 | 14314 | |
5c706339 AK |
14315 | # Shared library path variable. |
14316 | shlibpath_var=$shlibpath_var | |
b9668ba4 | 14317 | |
5c706339 AK |
14318 | # Is shlibpath searched before the hard-coded library search path? |
14319 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
b9668ba4 | 14320 | |
5c706339 AK |
14321 | # Format of library name prefix. |
14322 | libname_spec=$lt_libname_spec | |
b9668ba4 | 14323 | |
5c706339 AK |
14324 | # List of archive names. First name is the real one, the rest are links. |
14325 | # The last name is the one that the linker finds with -lNAME | |
14326 | library_names_spec=$lt_library_names_spec | |
b9668ba4 | 14327 | |
5c706339 AK |
14328 | # The coded name of the library, if different from the real name. |
14329 | soname_spec=$lt_soname_spec | |
b9668ba4 | 14330 | |
059850b5 AK |
14331 | # Permission mode override for installation of shared libraries. |
14332 | install_override_mode=$lt_install_override_mode | |
14333 | ||
5c706339 AK |
14334 | # Command to use after installation of a shared archive. |
14335 | postinstall_cmds=$lt_postinstall_cmds | |
b9668ba4 | 14336 | |
5c706339 AK |
14337 | # Command to use after uninstallation of a shared archive. |
14338 | postuninstall_cmds=$lt_postuninstall_cmds | |
b9668ba4 | 14339 | |
5c706339 AK |
14340 | # Commands used to finish a libtool library installation in a directory. |
14341 | finish_cmds=$lt_finish_cmds | |
b9668ba4 | 14342 | |
5c706339 AK |
14343 | # As "finish_cmds", except a single script fragment to be evaled but |
14344 | # not shown. | |
14345 | finish_eval=$lt_finish_eval | |
b9668ba4 | 14346 | |
5c706339 AK |
14347 | # Whether we should hardcode library paths into libraries. |
14348 | hardcode_into_libs=$hardcode_into_libs | |
b9668ba4 | 14349 | |
5c706339 AK |
14350 | # Compile-time system search path for libraries. |
14351 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
b9668ba4 | 14352 | |
c45550e5 AK |
14353 | # Detected run-time system search path for libraries. |
14354 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14355 | ||
14356 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14357 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
b9668ba4 | 14358 | |
5c706339 AK |
14359 | # Whether dlopen is supported. |
14360 | dlopen_support=$enable_dlopen | |
b9668ba4 | 14361 | |
5c706339 AK |
14362 | # Whether dlopen of programs is supported. |
14363 | dlopen_self=$enable_dlopen_self | |
b9668ba4 | 14364 | |
5c706339 AK |
14365 | # Whether dlopen of statically linked programs is supported. |
14366 | dlopen_self_static=$enable_dlopen_self_static | |
b9668ba4 | 14367 | |
5c706339 AK |
14368 | # Commands to strip libraries. |
14369 | old_striplib=$lt_old_striplib | |
14370 | striplib=$lt_striplib | |
b9668ba4 | 14371 | |
b9668ba4 | 14372 | |
5c706339 AK |
14373 | # The linker used to build libraries. |
14374 | LD=$lt_LD | |
b9668ba4 | 14375 | |
059850b5 AK |
14376 | # How to create reloadable object files. |
14377 | reload_flag=$lt_reload_flag | |
14378 | reload_cmds=$lt_reload_cmds | |
14379 | ||
5c706339 AK |
14380 | # Commands used to build an old-style archive. |
14381 | old_archive_cmds=$lt_old_archive_cmds | |
b9668ba4 | 14382 | |
5c706339 AK |
14383 | # A language specific compiler. |
14384 | CC=$lt_compiler | |
b9668ba4 | 14385 | |
5c706339 AK |
14386 | # Is the compiler the GNU compiler? |
14387 | with_gcc=$GCC | |
b9668ba4 | 14388 | |
5c706339 AK |
14389 | # Compiler flag to turn off builtin functions. |
14390 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
b9668ba4 | 14391 | |
5c706339 AK |
14392 | # Additional compiler flags for building library objects. |
14393 | pic_flag=$lt_lt_prog_compiler_pic | |
b9668ba4 | 14394 | |
059850b5 AK |
14395 | # How to pass a linker flag through the compiler. |
14396 | wl=$lt_lt_prog_compiler_wl | |
14397 | ||
5c706339 AK |
14398 | # Compiler flag to prevent dynamic linking. |
14399 | link_static_flag=$lt_lt_prog_compiler_static | |
b9668ba4 | 14400 | |
5c706339 AK |
14401 | # Does compiler simultaneously support -c and -o options? |
14402 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
b9668ba4 | 14403 | |
5c706339 AK |
14404 | # Whether or not to add -lc for building shared libraries. |
14405 | build_libtool_need_lc=$archive_cmds_need_lc | |
b9668ba4 | 14406 | |
5c706339 AK |
14407 | # Whether or not to disallow shared libs when runtime libs are static. |
14408 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
b9668ba4 | 14409 | |
5c706339 AK |
14410 | # Compiler flag to allow reflexive dlopens. |
14411 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
b9668ba4 | 14412 | |
5c706339 AK |
14413 | # Compiler flag to generate shared objects directly from archives. |
14414 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
b9668ba4 | 14415 | |
5c706339 AK |
14416 | # Whether the compiler copes with passing no objects directly. |
14417 | compiler_needs_object=$lt_compiler_needs_object | |
b9668ba4 | 14418 | |
5c706339 AK |
14419 | # Create an old-style archive from a shared archive. |
14420 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
b9668ba4 | 14421 | |
5c706339 AK |
14422 | # Create a temporary old-style archive to link instead of a shared archive. |
14423 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
b9668ba4 | 14424 | |
5c706339 AK |
14425 | # Commands used to build a shared archive. |
14426 | archive_cmds=$lt_archive_cmds | |
14427 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
b9668ba4 | 14428 | |
5c706339 AK |
14429 | # Commands used to build a loadable module if different from building |
14430 | # a shared archive. | |
14431 | module_cmds=$lt_module_cmds | |
14432 | module_expsym_cmds=$lt_module_expsym_cmds | |
b9668ba4 | 14433 | |
5c706339 AK |
14434 | # Whether we are building with GNU ld or not. |
14435 | with_gnu_ld=$lt_with_gnu_ld | |
b9668ba4 | 14436 | |
5c706339 AK |
14437 | # Flag that allows shared libraries with undefined symbols to be built. |
14438 | allow_undefined_flag=$lt_allow_undefined_flag | |
b9668ba4 | 14439 | |
5c706339 AK |
14440 | # Flag that enforces no undefined symbols. |
14441 | no_undefined_flag=$lt_no_undefined_flag | |
b9668ba4 | 14442 | |
5c706339 AK |
14443 | # Flag to hardcode \$libdir into a binary during linking. |
14444 | # This must work even if \$libdir does not exist | |
14445 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
b9668ba4 | 14446 | |
5c706339 AK |
14447 | # Whether we need a single "-rpath" flag with a separated argument. |
14448 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
b9668ba4 | 14449 | |
c45550e5 | 14450 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
5c706339 AK |
14451 | # DIR into the resulting binary. |
14452 | hardcode_direct=$hardcode_direct | |
b9668ba4 | 14453 | |
c45550e5 | 14454 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
5c706339 | 14455 | # DIR into the resulting binary and the resulting library dependency is |
c45550e5 | 14456 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
5c706339 AK |
14457 | # library is relocated. |
14458 | hardcode_direct_absolute=$hardcode_direct_absolute | |
b9668ba4 | 14459 | |
5c706339 AK |
14460 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14461 | # into the resulting binary. | |
14462 | hardcode_minus_L=$hardcode_minus_L | |
b9668ba4 | 14463 | |
5c706339 AK |
14464 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14465 | # into the resulting binary. | |
14466 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
b9668ba4 | 14467 | |
5c706339 AK |
14468 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14469 | # into the library and all subsequent libraries and executables linked | |
14470 | # against it. | |
14471 | hardcode_automatic=$hardcode_automatic | |
b9668ba4 | 14472 | |
5c706339 AK |
14473 | # Set to yes if linker adds runtime paths of dependent libraries |
14474 | # to runtime path list. | |
14475 | inherit_rpath=$inherit_rpath | |
b9668ba4 | 14476 | |
5c706339 AK |
14477 | # Whether libtool must link a program against all its dependency libraries. |
14478 | link_all_deplibs=$link_all_deplibs | |
b9668ba4 | 14479 | |
5c706339 AK |
14480 | # Set to "yes" if exported symbols are required. |
14481 | always_export_symbols=$always_export_symbols | |
b9668ba4 | 14482 | |
5c706339 AK |
14483 | # The commands to list exported symbols. |
14484 | export_symbols_cmds=$lt_export_symbols_cmds | |
b9668ba4 | 14485 | |
5c706339 AK |
14486 | # Symbols that should not be listed in the preloaded symbols. |
14487 | exclude_expsyms=$lt_exclude_expsyms | |
b9668ba4 | 14488 | |
5c706339 AK |
14489 | # Symbols that must always be exported. |
14490 | include_expsyms=$lt_include_expsyms | |
b9668ba4 | 14491 | |
5c706339 AK |
14492 | # Commands necessary for linking programs (against libraries) with templates. |
14493 | prelink_cmds=$lt_prelink_cmds | |
14494 | ||
059850b5 AK |
14495 | # Commands necessary for finishing linking programs. |
14496 | postlink_cmds=$lt_postlink_cmds | |
14497 | ||
5c706339 AK |
14498 | # Specify filename containing input files. |
14499 | file_list_spec=$lt_file_list_spec | |
14500 | ||
14501 | # How to hardcode a shared library path into an executable. | |
14502 | hardcode_action=$hardcode_action | |
14503 | ||
14504 | # ### END LIBTOOL CONFIG | |
14505 | ||
c45550e5 AK |
14506 | _LT_EOF |
14507 | ||
14508 | cat <<'_LT_EOF' >> "$cfgfile" | |
14509 | ||
14510 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
14511 | ||
14512 | # func_munge_path_list VARIABLE PATH | |
14513 | # ----------------------------------- | |
14514 | # VARIABLE is name of variable containing _space_ separated list of | |
14515 | # directories to be munged by the contents of PATH, which is string | |
14516 | # having a format: | |
14517 | # "DIR[:DIR]:" | |
14518 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
14519 | # ":DIR[:DIR]" | |
14520 | # string "DIR[ DIR]" will be appended to VARIABLE | |
14521 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
14522 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
14523 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
14524 | # "DIR[:DIR]" | |
14525 | # VARIABLE will be replaced by "DIR[ DIR]" | |
14526 | func_munge_path_list () | |
14527 | { | |
14528 | case x$2 in | |
14529 | x) | |
14530 | ;; | |
14531 | *:) | |
14532 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
14533 | ;; | |
14534 | x:*) | |
14535 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
14536 | ;; | |
14537 | *::*) | |
14538 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
14539 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
14540 | ;; | |
14541 | *) | |
14542 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
14543 | ;; | |
14544 | esac | |
14545 | } | |
14546 | ||
14547 | ||
14548 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
14549 | func_cc_basename () | |
14550 | { | |
14551 | for cc_temp in $*""; do | |
14552 | case $cc_temp in | |
14553 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14554 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14555 | \-*) ;; | |
14556 | *) break;; | |
14557 | esac | |
14558 | done | |
14559 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
14560 | } | |
14561 | ||
14562 | ||
14563 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
14564 | ||
5c706339 AK |
14565 | _LT_EOF |
14566 | ||
14567 | case $host_os in | |
14568 | aix3*) | |
14569 | cat <<\_LT_EOF >> "$cfgfile" | |
14570 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14571 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14572 | # vanish in a puff of smoke. | |
c45550e5 | 14573 | if test set != "${COLLECT_NAMES+set}"; then |
5c706339 AK |
14574 | COLLECT_NAMES= |
14575 | export COLLECT_NAMES | |
14576 | fi | |
14577 | _LT_EOF | |
b9668ba4 AK |
14578 | ;; |
14579 | esac | |
14580 | ||
b9668ba4 | 14581 | |
c45550e5 | 14582 | ltmain=$ac_aux_dir/ltmain.sh |
b9668ba4 | 14583 | |
b9668ba4 | 14584 | |
5c706339 AK |
14585 | # We use sed instead of cat because bash on DJGPP gets confused if |
14586 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14587 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14588 | # is reportedly fixed, but why not run on old versions too? | |
059850b5 AK |
14589 | sed '$q' "$ltmain" >> "$cfgfile" \ |
14590 | || (rm -f "$cfgfile"; exit 1) | |
14591 | ||
059850b5 | 14592 | mv -f "$cfgfile" "$ofile" || |
5c706339 AK |
14593 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14594 | chmod +x "$ofile" | |
14595 | ||
b9668ba4 AK |
14596 | ;; |
14597 | ||
14598 | esac | |
14599 | done # for ac_tag | |
14600 | ||
14601 | ||
0fbeb4dc | 14602 | as_fn_exit 0 |
b9668ba4 | 14603 | _ACEOF |
b9668ba4 AK |
14604 | ac_clean_files=$ac_clean_files_save |
14605 | ||
47dc80f6 | 14606 | test $ac_write_fail = 0 || |
0fbeb4dc | 14607 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
47dc80f6 | 14608 | |
b9668ba4 AK |
14609 | |
14610 | # configure is writing to config.log, and then calls config.status. | |
14611 | # config.status does its own redirection, appending to config.log. | |
14612 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14613 | # by configure, so config.status won't be able to write to it; its | |
14614 | # output is simply discarded. So we exec the FD to /dev/null, | |
14615 | # effectively closing config.log, so it can be properly (re)opened and | |
14616 | # appended to by config.status. When coming back to configure, we | |
14617 | # need to make the FD available again. | |
14618 | if test "$no_create" != yes; then | |
14619 | ac_cs_success=: | |
14620 | ac_config_status_args= | |
14621 | test "$silent" = yes && | |
14622 | ac_config_status_args="$ac_config_status_args --quiet" | |
14623 | exec 5>/dev/null | |
14624 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14625 | exec 5>>config.log | |
14626 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14627 | # would make configure fail if this is the last instruction. | |
0fbeb4dc | 14628 | $ac_cs_success || as_fn_exit 1 |
b9668ba4 | 14629 | fi |
47dc80f6 | 14630 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
0fbeb4dc | 14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
47dc80f6 AK |
14632 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14633 | fi | |
b9668ba4 | 14634 |