]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
53ba6704 | 3 | # Generated by GNU Autoconf 2.69 for Cycript 0.9. |
c7aa54aa DWT |
4 | # |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
9c60689e | 7 | # |
53ba6704 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
9c60689e | 9 | # |
c7aa54aa DWT |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 13 | # |
c1d3e52e | 14 | # Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 94 | as_myself= |
c7aa54aa DWT |
95 | case $0 in #(( |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
53ba6704 JF |
139 | # Use a proper internal environment variable to ensure we don't fall |
140 | # into an infinite loop, continuously re-executing ourselves. | |
141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
142 | _as_can_reexec=no; export _as_can_reexec; | |
143 | # We cannot yet assume a decent shell, so we have to provide a | |
144 | # neutralization value for shells without unset; and this also | |
145 | # works around shells that cannot unset nonexistent variables. | |
146 | # Preserve -v and -x to the replacement shell. | |
147 | BASH_ENV=/dev/null | |
148 | ENV=/dev/null | |
149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
150 | case $- in # (((( | |
151 | *v*x* | *x*v* ) as_opts=-vx ;; | |
152 | *v* ) as_opts=-v ;; | |
153 | *x* ) as_opts=-x ;; | |
154 | * ) as_opts= ;; | |
155 | esac | |
156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
157 | # Admittedly, this is quite paranoid, since all the known shells bail | |
158 | # out after a failed `exec'. | |
159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
160 | as_fn_exit 255 | |
161 | fi | |
162 | # We don't want this to propagate to other subprocesses. | |
163 | { _as_can_reexec=; unset _as_can_reexec;} | |
c7aa54aa DWT |
164 | if test "x$CONFIG_SHELL" = x; then |
165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
166 | emulate sh | |
167 | NULLCMD=: | |
168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
169 | # is contrary to our usage. Disable this feature. | |
170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
171 | setopt NO_GLOB_SUBST | |
172 | else | |
173 | case \`(set -o) 2>/dev/null\` in #( | |
174 | *posix*) : | |
175 | set -o posix ;; #( | |
176 | *) : | |
177 | ;; | |
178 | esac | |
179 | fi | |
180 | " | |
181 | as_required="as_fn_return () { (exit \$1); } | |
182 | as_fn_success () { as_fn_return 0; } | |
183 | as_fn_failure () { as_fn_return 1; } | |
184 | as_fn_ret_success () { return 0; } | |
185 | as_fn_ret_failure () { return 1; } | |
186 | ||
187 | exitcode=0 | |
188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
193 | ||
194 | else | |
195 | exitcode=1; echo positional parameters were not saved. | |
196 | fi | |
53ba6704 JF |
197 | test x\$exitcode = x0 || exit 1 |
198 | test -x / || exit 1" | |
c7aa54aa DWT |
199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 | 202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
ee134472 JF |
203 | |
204 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
205 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
208 | PATH=/empty FPATH=/empty; export PATH FPATH | |
209 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
210 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
35fa52c0 | 211 | test \$(( 1 + 1 )) = 2 || exit 1" |
c7aa54aa DWT |
212 | if (eval "$as_required") 2>/dev/null; then : |
213 | as_have_required=yes | |
214 | else | |
215 | as_have_required=no | |
216 | fi | |
217 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
218 | ||
219 | else | |
220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
221 | as_found=false | |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
226 | as_found=: | |
227 | case $as_dir in #( | |
228 | /*) | |
229 | for as_base in sh bash ksh sh5; do | |
230 | # Try only shells that exist, to save several forks. | |
231 | as_shell=$as_dir/$as_base | |
232 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$as_shell as_have_required=yes | |
235 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
236 | break 2 | |
237 | fi | |
238 | fi | |
239 | done;; | |
240 | esac | |
241 | as_found=false | |
242 | done | |
243 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
244 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
245 | CONFIG_SHELL=$SHELL as_have_required=yes | |
246 | fi; } | |
247 | IFS=$as_save_IFS | |
248 | ||
249 | ||
250 | if test "x$CONFIG_SHELL" != x; then : | |
53ba6704 JF |
251 | export CONFIG_SHELL |
252 | # We cannot yet assume a decent shell, so we have to provide a | |
253 | # neutralization value for shells without unset; and this also | |
254 | # works around shells that cannot unset nonexistent variables. | |
255 | # Preserve -v and -x to the replacement shell. | |
256 | BASH_ENV=/dev/null | |
257 | ENV=/dev/null | |
258 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
259 | case $- in # (((( | |
260 | *v*x* | *x*v* ) as_opts=-vx ;; | |
261 | *v* ) as_opts=-v ;; | |
262 | *x* ) as_opts=-x ;; | |
263 | * ) as_opts= ;; | |
264 | esac | |
265 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
266 | # Admittedly, this is quite paranoid, since all the known shells bail | |
267 | # out after a failed `exec'. | |
268 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
269 | exit 255 | |
c7aa54aa DWT |
270 | fi |
271 | ||
272 | if test x$as_have_required = xno; then : | |
273 | $as_echo "$0: This script requires a shell more modern than all" | |
274 | $as_echo "$0: the shells that I found on your system." | |
275 | if test x${ZSH_VERSION+set} = xset ; then | |
276 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
277 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
278 | else | |
279 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
280 | $0: about your system, including any error possibly output | |
281 | $0: before this message. Then install a modern shell, or | |
282 | $0: manually run the script under such a shell if you do | |
283 | $0: have one." | |
284 | fi | |
285 | exit 1 | |
286 | fi | |
287 | fi | |
288 | fi | |
289 | SHELL=${CONFIG_SHELL-/bin/sh} | |
290 | export SHELL | |
291 | # Unset more variables known to interfere with behavior of common tools. | |
292 | CLICOLOR_FORCE= GREP_OPTIONS= | |
293 | unset CLICOLOR_FORCE GREP_OPTIONS | |
294 | ||
295 | ## --------------------- ## | |
296 | ## M4sh Shell Functions. ## | |
297 | ## --------------------- ## | |
298 | # as_fn_unset VAR | |
299 | # --------------- | |
300 | # Portably unset VAR. | |
301 | as_fn_unset () | |
302 | { | |
303 | { eval $1=; unset $1;} | |
304 | } | |
305 | as_unset=as_fn_unset | |
306 | ||
307 | # as_fn_set_status STATUS | |
308 | # ----------------------- | |
309 | # Set $? to STATUS, without forking. | |
310 | as_fn_set_status () | |
311 | { | |
312 | return $1 | |
313 | } # as_fn_set_status | |
314 | ||
315 | # as_fn_exit STATUS | |
316 | # ----------------- | |
317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
318 | as_fn_exit () | |
319 | { | |
320 | set +e | |
321 | as_fn_set_status $1 | |
322 | exit $1 | |
323 | } # as_fn_exit | |
324 | ||
325 | # as_fn_mkdir_p | |
326 | # ------------- | |
327 | # Create "$as_dir" as a directory, including parents if necessary. | |
328 | as_fn_mkdir_p () | |
329 | { | |
330 | ||
331 | case $as_dir in #( | |
332 | -*) as_dir=./$as_dir;; | |
333 | esac | |
334 | test -d "$as_dir" || eval $as_mkdir_p || { | |
335 | as_dirs= | |
336 | while :; do | |
337 | case $as_dir in #( | |
338 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
339 | *) as_qdir=$as_dir;; | |
340 | esac | |
341 | as_dirs="'$as_qdir' $as_dirs" | |
342 | as_dir=`$as_dirname -- "$as_dir" || | |
343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
344 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
345 | X"$as_dir" : 'X\(//\)$' \| \ | |
346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
347 | $as_echo X"$as_dir" | | |
348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\/\)[^/].*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | /^X\(\/\/\)$/{ | |
357 | s//\1/ | |
358 | q | |
359 | } | |
360 | /^X\(\/\).*/{ | |
361 | s//\1/ | |
362 | q | |
363 | } | |
364 | s/.*/./; q'` | |
365 | test -d "$as_dir" && break | |
366 | done | |
367 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
c7aa54aa DWT |
369 | |
370 | ||
371 | } # as_fn_mkdir_p | |
53ba6704 JF |
372 | |
373 | # as_fn_executable_p FILE | |
374 | # ----------------------- | |
375 | # Test if FILE is an executable regular file. | |
376 | as_fn_executable_p () | |
377 | { | |
378 | test -f "$1" && test -x "$1" | |
379 | } # as_fn_executable_p | |
c7aa54aa DWT |
380 | # as_fn_append VAR VALUE |
381 | # ---------------------- | |
382 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
383 | # advantage of any shell optimizations that allow amortized linear growth over | |
384 | # repeated appends, instead of the typical quadratic growth present in naive | |
385 | # implementations. | |
386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
387 | eval 'as_fn_append () | |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
391 | else | |
392 | as_fn_append () | |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
404 | eval 'as_fn_arith () | |
405 | { | |
406 | as_val=$(( $* )) | |
407 | }' | |
408 | else | |
409 | as_fn_arith () | |
410 | { | |
411 | as_val=`expr "$@" || test $? -eq 1` | |
412 | } | |
413 | fi # as_fn_arith | |
414 | ||
415 | ||
12833ad8 JF |
416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
417 | # ---------------------------------------- | |
c7aa54aa DWT |
418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 420 | # script with STATUS, using 1 if that was 0. |
c7aa54aa DWT |
421 | as_fn_error () |
422 | { | |
12833ad8 JF |
423 | as_status=$1; test $as_status -eq 0 && as_status=1 |
424 | if test "$4"; then | |
425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c7aa54aa | 427 | fi |
12833ad8 | 428 | $as_echo "$as_me: error: $2" >&2 |
c7aa54aa DWT |
429 | as_fn_exit $as_status |
430 | } # as_fn_error | |
431 | ||
432 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
433 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
434 | as_expr=expr | |
435 | else | |
436 | as_expr=false | |
437 | fi | |
438 | ||
439 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
440 | as_basename=basename | |
441 | else | |
442 | as_basename=false | |
443 | fi | |
444 | ||
445 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
446 | as_dirname=dirname | |
447 | else | |
448 | as_dirname=false | |
449 | fi | |
450 | ||
451 | as_me=`$as_basename -- "$0" || | |
452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
453 | X"$0" : 'X\(//\)$' \| \ | |
454 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
455 | $as_echo X/"$0" | | |
456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
457 | s//\1/ | |
458 | q | |
459 | } | |
460 | /^X\/\(\/\/\)$/{ | |
461 | s//\1/ | |
462 | q | |
463 | } | |
464 | /^X\/\(\/\).*/{ | |
465 | s//\1/ | |
466 | q | |
467 | } | |
468 | s/.*/./; q'` | |
469 | ||
470 | # Avoid depending upon Character Ranges. | |
471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
474 | as_cr_digits='0123456789' | |
475 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
476 | ||
477 | ||
478 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
479 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
480 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
481 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
482 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
483 | sed -n ' | |
484 | p | |
485 | /[$]LINENO/= | |
486 | ' <$as_myself | | |
487 | sed ' | |
488 | s/[$]LINENO.*/&-/ | |
489 | t lineno | |
490 | b | |
491 | :lineno | |
492 | N | |
493 | :loop | |
494 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
495 | t loop | |
496 | s/-\n.*// | |
497 | ' >$as_me.lineno && | |
498 | chmod +x "$as_me.lineno" || | |
499 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
500 | ||
53ba6704 JF |
501 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
502 | # already done that, so ensure we don't try to do so again and fall | |
503 | # in an infinite loop. This has already happened in practice. | |
504 | _as_can_reexec=no; export _as_can_reexec | |
c7aa54aa DWT |
505 | # Don't try to exec as it changes $[0], causing all sort of problems |
506 | # (the dirname of $[0] is not the place where we might find the | |
507 | # original and so on. Autoconf is especially sensitive to this). | |
508 | . "./$as_me.lineno" | |
509 | # Exit status is that of the last command. | |
510 | exit | |
511 | } | |
512 | ||
513 | ECHO_C= ECHO_N= ECHO_T= | |
514 | case `echo -n x` in #((((( | |
515 | -n*) | |
516 | case `echo 'xy\c'` in | |
517 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
518 | xy) ECHO_C='\c';; | |
519 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
520 | ECHO_T=' ';; | |
521 | esac;; | |
522 | *) | |
523 | ECHO_N='-n';; | |
524 | esac | |
525 | ||
526 | rm -f conf$$ conf$$.exe conf$$.file | |
527 | if test -d conf$$.dir; then | |
528 | rm -f conf$$.dir/conf$$.file | |
529 | else | |
530 | rm -f conf$$.dir | |
531 | mkdir conf$$.dir 2>/dev/null | |
532 | fi | |
533 | if (echo >conf$$.file) 2>/dev/null; then | |
534 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
535 | as_ln_s='ln -s' | |
536 | # ... but there are two gotchas: | |
537 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
538 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 539 | # In both cases, we have to default to `cp -pR'. |
c7aa54aa | 540 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 541 | as_ln_s='cp -pR' |
c7aa54aa DWT |
542 | elif ln conf$$.file conf$$ 2>/dev/null; then |
543 | as_ln_s=ln | |
544 | else | |
53ba6704 | 545 | as_ln_s='cp -pR' |
c7aa54aa DWT |
546 | fi |
547 | else | |
53ba6704 | 548 | as_ln_s='cp -pR' |
c7aa54aa DWT |
549 | fi |
550 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
551 | rmdir conf$$.dir 2>/dev/null | |
552 | ||
553 | if mkdir -p . 2>/dev/null; then | |
554 | as_mkdir_p='mkdir -p "$as_dir"' | |
555 | else | |
556 | test -d ./-p && rmdir ./-p | |
557 | as_mkdir_p=false | |
558 | fi | |
559 | ||
53ba6704 JF |
560 | as_test_x='test -x' |
561 | as_executable_p=as_fn_executable_p | |
c7aa54aa DWT |
562 | |
563 | # Sed expression to map a string onto a valid CPP name. | |
564 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
566 | # Sed expression to map a string onto a valid variable name. | |
567 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
9c60689e DWT |
569 | SHELL=${CONFIG_SHELL-/bin/sh} |
570 | ||
c7aa54aa | 571 | |
9c60689e DWT |
572 | test -n "$DJDIR" || exec 7<&0 </dev/null |
573 | exec 6>&1 | |
c7aa54aa DWT |
574 | |
575 | # Name of the host. | |
12833ad8 | 576 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c7aa54aa DWT |
577 | # so uname gets run too. |
578 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
579 | ||
580 | # | |
581 | # Initializations. | |
582 | # | |
583 | ac_default_prefix=/usr/local | |
584 | ac_clean_files= | |
585 | ac_config_libobj_dir=. | |
586 | LIBOBJS= | |
587 | cross_compiling=no | |
588 | subdirs= | |
589 | MFLAGS= | |
590 | MAKEFLAGS= | |
591 | ||
592 | # Identity of this package. | |
593 | PACKAGE_NAME='Cycript' | |
594 | PACKAGE_TARNAME='cycript' | |
595 | PACKAGE_VERSION='0.9' | |
596 | PACKAGE_STRING='Cycript 0.9' | |
597 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
598 | PACKAGE_URL='http://www.cycript.org/' | |
599 | ||
35fa52c0 | 600 | ac_unique_file="Console.cpp" |
6b66678a DWT |
601 | # Factoring default headers for most tests. |
602 | ac_includes_default="\ | |
603 | #include <stdio.h> | |
604 | #ifdef HAVE_SYS_TYPES_H | |
605 | # include <sys/types.h> | |
606 | #endif | |
607 | #ifdef HAVE_SYS_STAT_H | |
608 | # include <sys/stat.h> | |
609 | #endif | |
610 | #ifdef STDC_HEADERS | |
611 | # include <stdlib.h> | |
612 | # include <stddef.h> | |
613 | #else | |
614 | # ifdef HAVE_STDLIB_H | |
615 | # include <stdlib.h> | |
616 | # endif | |
617 | #endif | |
618 | #ifdef HAVE_STRING_H | |
619 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
620 | # include <memory.h> | |
621 | # endif | |
622 | # include <string.h> | |
623 | #endif | |
624 | #ifdef HAVE_STRINGS_H | |
625 | # include <strings.h> | |
626 | #endif | |
627 | #ifdef HAVE_INTTYPES_H | |
628 | # include <inttypes.h> | |
629 | #endif | |
630 | #ifdef HAVE_STDINT_H | |
631 | # include <stdint.h> | |
632 | #endif | |
633 | #ifdef HAVE_UNISTD_H | |
634 | # include <unistd.h> | |
635 | #endif" | |
636 | ||
66170b30 JF |
637 | ac_subst_vars='am__EXEEXT_FALSE |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
9c60689e | 640 | LIBOBJS |
9777bd50 | 641 | SO |
66170b30 | 642 | LTFLAGS |
3615a2f7 | 643 | LTLIBGCC |
6f9aea2b JF |
644 | LTLIBTERMCAP |
645 | LTLIBREADLINE | |
a243b558 JF |
646 | CY_OBJECTIVEC_FALSE |
647 | CY_OBJECTIVEC_TRUE | |
39ed1631 JF |
648 | CY_JAVA_FALSE |
649 | CY_JAVA_TRUE | |
babf7fe8 | 650 | LTOBJECTIVEC |
47aaa820 | 651 | GNUSTEP_CONFIG |
c823f118 | 652 | CY_OBJECTIVEC |
39ed1631 JF |
653 | LTJAVA |
654 | CY_JAVA | |
296ee9a6 | 655 | LTLIBFFI |
309b0535 | 656 | LIBFFI_LIBS |
35fa52c0 | 657 | LIBFFI_CFLAGS |
a243b558 JF |
658 | CY_EXECUTE_FALSE |
659 | CY_EXECUTE_TRUE | |
a4287117 JF |
660 | CY_ATTACH_FALSE |
661 | CY_ATTACH_TRUE | |
a93f15c0 JF |
662 | CY_CONSOLE_FALSE |
663 | CY_CONSOLE_TRUE | |
babf7fe8 | 664 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
665 | WEBKIT_LIBS |
666 | WEBKIT_CFLAGS | |
7eda51e0 | 667 | CY_EXECUTE |
be2fde87 JF |
668 | PTHREAD_CFLAGS |
669 | PTHREAD_LIBS | |
670 | PTHREAD_CC | |
671 | ax_pthread_config | |
e9c9a47c | 672 | GNUTAR |
e9c9a47c DWT |
673 | GPERF |
674 | FLEX | |
675 | BISON | |
676 | TIME | |
66170b30 | 677 | GIT |
12833ad8 JF |
678 | PKG_CONFIG_LIBDIR |
679 | PKG_CONFIG_PATH | |
3fd51f51 | 680 | PKG_CONFIG |
1771224f | 681 | HAVE_CXX11 |
a243b558 | 682 | CXXCPP |
9c60689e | 683 | CPP |
9d54db95 | 684 | LT_SYS_LIBRARY_PATH |
9c60689e DWT |
685 | OTOOL64 |
686 | OTOOL | |
687 | LIPO | |
688 | NMEDIT | |
689 | DSYMUTIL | |
ee134472 | 690 | MANIFEST_TOOL |
9c60689e | 691 | RANLIB |
ee134472 | 692 | DLLTOOL |
9c60689e DWT |
693 | OBJDUMP |
694 | LN_S | |
695 | NM | |
696 | ac_ct_DUMPBIN | |
697 | DUMPBIN | |
698 | LD | |
699 | FGREP | |
700 | EGREP | |
701 | GREP | |
702 | SED | |
a243b558 JF |
703 | host_os |
704 | host_vendor | |
705 | host_cpu | |
706 | host | |
707 | build_os | |
708 | build_vendor | |
709 | build_cpu | |
710 | build | |
711 | LIBTOOL | |
a243b558 JF |
712 | ac_ct_AR |
713 | AR | |
714 | am__fastdepOBJCXX_FALSE | |
715 | am__fastdepOBJCXX_TRUE | |
716 | OBJCXXDEPMODE | |
717 | ac_ct_OBJCXX | |
718 | OBJCXXFLAGS | |
719 | OBJCXX | |
720 | am__fastdepCXX_FALSE | |
721 | am__fastdepCXX_TRUE | |
722 | CXXDEPMODE | |
a93f15c0 JF |
723 | ac_ct_CXX |
724 | CXXFLAGS | |
725 | CXX | |
726 | am__fastdepCC_FALSE | |
727 | am__fastdepCC_TRUE | |
728 | CCDEPMODE | |
66170b30 JF |
729 | am__nodep |
730 | AMDEPBACKSLASH | |
731 | AMDEP_FALSE | |
732 | AMDEP_TRUE | |
733 | am__quote | |
734 | am__include | |
735 | DEPDIR | |
35fa52c0 DWT |
736 | OBJEXT |
737 | EXEEXT | |
a93f15c0 | 738 | ac_ct_CC |
35fa52c0 DWT |
739 | CPPFLAGS |
740 | LDFLAGS | |
a93f15c0 JF |
741 | CFLAGS |
742 | CC | |
babf7fe8 JF |
743 | MAINT |
744 | MAINTAINER_MODE_FALSE | |
745 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
746 | AM_BACKSLASH |
747 | AM_DEFAULT_VERBOSITY | |
748 | AM_DEFAULT_V | |
749 | AM_V | |
750 | am__untar | |
751 | am__tar | |
752 | AMTAR | |
753 | am__leading_dot | |
754 | SET_MAKE | |
755 | AWK | |
756 | mkdir_p | |
757 | MKDIR_P | |
758 | INSTALL_STRIP_PROGRAM | |
759 | STRIP | |
760 | install_sh | |
761 | MAKEINFO | |
762 | AUTOHEADER | |
763 | AUTOMAKE | |
764 | AUTOCONF | |
765 | ACLOCAL | |
766 | VERSION | |
767 | PACKAGE | |
768 | CYGPATH_W | |
769 | am__isrc | |
770 | INSTALL_DATA | |
771 | INSTALL_SCRIPT | |
772 | INSTALL_PROGRAM | |
dbadc56a | 773 | target_alias |
c7aa54aa DWT |
774 | host_alias |
775 | build_alias | |
776 | LIBS | |
777 | ECHO_T | |
778 | ECHO_N | |
779 | ECHO_C | |
780 | DEFS | |
781 | mandir | |
782 | localedir | |
783 | libdir | |
784 | psdir | |
785 | pdfdir | |
786 | dvidir | |
787 | htmldir | |
788 | infodir | |
789 | docdir | |
790 | oldincludedir | |
791 | includedir | |
792 | localstatedir | |
793 | sharedstatedir | |
794 | sysconfdir | |
795 | datadir | |
796 | datarootdir | |
797 | libexecdir | |
798 | sbindir | |
799 | bindir | |
800 | program_transform_name | |
801 | prefix | |
802 | exec_prefix | |
803 | PACKAGE_URL | |
804 | PACKAGE_BUGREPORT | |
805 | PACKAGE_STRING | |
806 | PACKAGE_VERSION | |
807 | PACKAGE_TARNAME | |
808 | PACKAGE_NAME | |
809 | PATH_SEPARATOR | |
810 | SHELL' | |
811 | ac_subst_files='' | |
812 | ac_user_opts=' | |
813 | enable_option_checking | |
66170b30 | 814 | enable_silent_rules |
babf7fe8 | 815 | enable_maintainer_mode |
a243b558 | 816 | enable_dependency_tracking |
9c60689e | 817 | enable_static |
549f29b5 | 818 | enable_shared |
9c60689e DWT |
819 | with_pic |
820 | enable_fast_install | |
9d54db95 | 821 | with_aix_soname |
35fa52c0 | 822 | with_gnu_ld |
ee134472 | 823 | with_sysroot |
9c60689e | 824 | enable_libtool_lock |
5053a6d1 | 825 | enable_javascript |
a93f15c0 | 826 | enable_console |
a4287117 | 827 | enable_attach |
c7aa54aa DWT |
828 | ' |
829 | ac_precious_vars='build_alias | |
830 | host_alias | |
dbadc56a | 831 | target_alias |
a93f15c0 JF |
832 | CC |
833 | CFLAGS | |
dbadc56a DWT |
834 | LDFLAGS |
835 | LIBS | |
836 | CPPFLAGS | |
a93f15c0 JF |
837 | CXX |
838 | CXXFLAGS | |
a243b558 JF |
839 | CCC |
840 | OBJCXX | |
841 | OBJCXXFLAGS | |
9d54db95 | 842 | LT_SYS_LIBRARY_PATH |
9c60689e | 843 | CPP |
a243b558 | 844 | CXXCPP |
3fd51f51 | 845 | PKG_CONFIG |
12833ad8 JF |
846 | PKG_CONFIG_PATH |
847 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
848 | BISON |
849 | FLEX | |
850 | GPERF | |
66170b30 | 851 | GNUTAR |
35fa52c0 DWT |
852 | WEBKIT_CFLAGS |
853 | WEBKIT_LIBS | |
a667869d | 854 | LIBFFI_CFLAGS |
790e5246 DWT |
855 | LIBFFI_LIBS |
856 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
857 | |
858 | ||
859 | # Initialize some variables set by options. | |
860 | ac_init_help= | |
861 | ac_init_version=false | |
862 | ac_unrecognized_opts= | |
863 | ac_unrecognized_sep= | |
864 | # The variables have the same names as the options, with | |
865 | # dashes changed to underlines. | |
866 | cache_file=/dev/null | |
867 | exec_prefix=NONE | |
868 | no_create= | |
869 | no_recursion= | |
870 | prefix=NONE | |
871 | program_prefix=NONE | |
872 | program_suffix=NONE | |
873 | program_transform_name=s,x,x, | |
874 | silent= | |
875 | site= | |
876 | srcdir= | |
877 | verbose= | |
878 | x_includes=NONE | |
879 | x_libraries=NONE | |
880 | ||
881 | # Installation directory options. | |
882 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
883 | # and all the variables that are supposed to be based on exec_prefix | |
884 | # by default will actually change. | |
885 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
886 | # (The list follows the same order as the GNU Coding Standards.) | |
887 | bindir='${exec_prefix}/bin' | |
888 | sbindir='${exec_prefix}/sbin' | |
889 | libexecdir='${exec_prefix}/libexec' | |
890 | datarootdir='${prefix}/share' | |
891 | datadir='${datarootdir}' | |
892 | sysconfdir='${prefix}/etc' | |
893 | sharedstatedir='${prefix}/com' | |
894 | localstatedir='${prefix}/var' | |
895 | includedir='${prefix}/include' | |
896 | oldincludedir='/usr/include' | |
897 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
898 | infodir='${datarootdir}/info' | |
899 | htmldir='${docdir}' | |
900 | dvidir='${docdir}' | |
901 | pdfdir='${docdir}' | |
902 | psdir='${docdir}' | |
903 | libdir='${exec_prefix}/lib' | |
904 | localedir='${datarootdir}/locale' | |
905 | mandir='${datarootdir}/man' | |
906 | ||
907 | ac_prev= | |
908 | ac_dashdash= | |
909 | for ac_option | |
910 | do | |
911 | # If the previous option needs an argument, assign it. | |
912 | if test -n "$ac_prev"; then | |
913 | eval $ac_prev=\$ac_option | |
914 | ac_prev= | |
915 | continue | |
916 | fi | |
917 | ||
918 | case $ac_option in | |
12833ad8 JF |
919 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
920 | *=) ac_optarg= ;; | |
921 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
922 | esac |
923 | ||
924 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
925 | ||
926 | case $ac_dashdash$ac_option in | |
927 | --) | |
928 | ac_dashdash=yes ;; | |
929 | ||
930 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
931 | ac_prev=bindir ;; | |
932 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
933 | bindir=$ac_optarg ;; | |
934 | ||
935 | -build | --build | --buil | --bui | --bu) | |
936 | ac_prev=build_alias ;; | |
937 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
938 | build_alias=$ac_optarg ;; | |
939 | ||
940 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
941 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
942 | ac_prev=cache_file ;; | |
943 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
944 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
945 | cache_file=$ac_optarg ;; | |
946 | ||
947 | --config-cache | -C) | |
948 | cache_file=config.cache ;; | |
949 | ||
950 | -datadir | --datadir | --datadi | --datad) | |
951 | ac_prev=datadir ;; | |
952 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
953 | datadir=$ac_optarg ;; | |
954 | ||
955 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
956 | | --dataroo | --dataro | --datar) | |
957 | ac_prev=datarootdir ;; | |
958 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
959 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
960 | datarootdir=$ac_optarg ;; | |
961 | ||
962 | -disable-* | --disable-*) | |
963 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
964 | # Reject names that are not valid shell variable names. | |
965 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 966 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
967 | ac_useropt_orig=$ac_useropt |
968 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
969 | case $ac_user_opts in | |
970 | *" | |
971 | "enable_$ac_useropt" | |
972 | "*) ;; | |
973 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
974 | ac_unrecognized_sep=', ';; | |
975 | esac | |
976 | eval enable_$ac_useropt=no ;; | |
977 | ||
978 | -docdir | --docdir | --docdi | --doc | --do) | |
979 | ac_prev=docdir ;; | |
980 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
981 | docdir=$ac_optarg ;; | |
982 | ||
983 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
984 | ac_prev=dvidir ;; | |
985 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
986 | dvidir=$ac_optarg ;; | |
987 | ||
988 | -enable-* | --enable-*) | |
989 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
990 | # Reject names that are not valid shell variable names. | |
991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 992 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
993 | ac_useropt_orig=$ac_useropt |
994 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
995 | case $ac_user_opts in | |
996 | *" | |
997 | "enable_$ac_useropt" | |
998 | "*) ;; | |
999 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1003 | ||
1004 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1005 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1006 | | --exec | --exe | --ex) | |
1007 | ac_prev=exec_prefix ;; | |
1008 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1009 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1010 | | --exec=* | --exe=* | --ex=*) | |
1011 | exec_prefix=$ac_optarg ;; | |
1012 | ||
1013 | -gas | --gas | --ga | --g) | |
1014 | # Obsolete; use --with-gas. | |
1015 | with_gas=yes ;; | |
1016 | ||
1017 | -help | --help | --hel | --he | -h) | |
1018 | ac_init_help=long ;; | |
1019 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1020 | ac_init_help=recursive ;; | |
1021 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1022 | ac_init_help=short ;; | |
1023 | ||
1024 | -host | --host | --hos | --ho) | |
1025 | ac_prev=host_alias ;; | |
1026 | -host=* | --host=* | --hos=* | --ho=*) | |
1027 | host_alias=$ac_optarg ;; | |
1028 | ||
1029 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1030 | ac_prev=htmldir ;; | |
1031 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1032 | | --ht=*) | |
1033 | htmldir=$ac_optarg ;; | |
1034 | ||
1035 | -includedir | --includedir | --includedi | --included | --include \ | |
1036 | | --includ | --inclu | --incl | --inc) | |
1037 | ac_prev=includedir ;; | |
1038 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1039 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1040 | includedir=$ac_optarg ;; | |
1041 | ||
1042 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1043 | ac_prev=infodir ;; | |
1044 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1045 | infodir=$ac_optarg ;; | |
1046 | ||
1047 | -libdir | --libdir | --libdi | --libd) | |
1048 | ac_prev=libdir ;; | |
1049 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1050 | libdir=$ac_optarg ;; | |
1051 | ||
1052 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1053 | | --libexe | --libex | --libe) | |
1054 | ac_prev=libexecdir ;; | |
1055 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1056 | | --libexe=* | --libex=* | --libe=*) | |
1057 | libexecdir=$ac_optarg ;; | |
1058 | ||
1059 | -localedir | --localedir | --localedi | --localed | --locale) | |
1060 | ac_prev=localedir ;; | |
1061 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1062 | localedir=$ac_optarg ;; | |
1063 | ||
1064 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1065 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1066 | ac_prev=localstatedir ;; | |
1067 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1068 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1069 | localstatedir=$ac_optarg ;; | |
1070 | ||
1071 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1072 | ac_prev=mandir ;; | |
1073 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1074 | mandir=$ac_optarg ;; | |
1075 | ||
1076 | -nfp | --nfp | --nf) | |
1077 | # Obsolete; use --without-fp. | |
1078 | with_fp=no ;; | |
1079 | ||
1080 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1081 | | --no-cr | --no-c | -n) | |
1082 | no_create=yes ;; | |
1083 | ||
1084 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1085 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1086 | no_recursion=yes ;; | |
1087 | ||
1088 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1089 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1090 | | --oldin | --oldi | --old | --ol | --o) | |
1091 | ac_prev=oldincludedir ;; | |
1092 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1093 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1094 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1095 | oldincludedir=$ac_optarg ;; | |
1096 | ||
1097 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1098 | ac_prev=prefix ;; | |
1099 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1100 | prefix=$ac_optarg ;; | |
1101 | ||
1102 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1103 | | --program-pre | --program-pr | --program-p) | |
1104 | ac_prev=program_prefix ;; | |
1105 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1106 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1107 | program_prefix=$ac_optarg ;; | |
1108 | ||
1109 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1110 | | --program-suf | --program-su | --program-s) | |
1111 | ac_prev=program_suffix ;; | |
1112 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1113 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1114 | program_suffix=$ac_optarg ;; | |
1115 | ||
1116 | -program-transform-name | --program-transform-name \ | |
1117 | | --program-transform-nam | --program-transform-na \ | |
1118 | | --program-transform-n | --program-transform- \ | |
1119 | | --program-transform | --program-transfor \ | |
1120 | | --program-transfo | --program-transf \ | |
1121 | | --program-trans | --program-tran \ | |
1122 | | --progr-tra | --program-tr | --program-t) | |
1123 | ac_prev=program_transform_name ;; | |
1124 | -program-transform-name=* | --program-transform-name=* \ | |
1125 | | --program-transform-nam=* | --program-transform-na=* \ | |
1126 | | --program-transform-n=* | --program-transform-=* \ | |
1127 | | --program-transform=* | --program-transfor=* \ | |
1128 | | --program-transfo=* | --program-transf=* \ | |
1129 | | --program-trans=* | --program-tran=* \ | |
1130 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1131 | program_transform_name=$ac_optarg ;; | |
1132 | ||
1133 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1134 | ac_prev=pdfdir ;; | |
1135 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1136 | pdfdir=$ac_optarg ;; | |
1137 | ||
1138 | -psdir | --psdir | --psdi | --psd | --ps) | |
1139 | ac_prev=psdir ;; | |
1140 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1141 | psdir=$ac_optarg ;; | |
1142 | ||
1143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1144 | | -silent | --silent | --silen | --sile | --sil) | |
1145 | silent=yes ;; | |
1146 | ||
1147 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1148 | ac_prev=sbindir ;; | |
1149 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1150 | | --sbi=* | --sb=*) | |
1151 | sbindir=$ac_optarg ;; | |
1152 | ||
1153 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1154 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1155 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1156 | | --sha | --sh) | |
1157 | ac_prev=sharedstatedir ;; | |
1158 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1159 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1160 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1161 | | --sha=* | --sh=*) | |
1162 | sharedstatedir=$ac_optarg ;; | |
1163 | ||
1164 | -site | --site | --sit) | |
1165 | ac_prev=site ;; | |
1166 | -site=* | --site=* | --sit=*) | |
1167 | site=$ac_optarg ;; | |
1168 | ||
1169 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1170 | ac_prev=srcdir ;; | |
1171 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1172 | srcdir=$ac_optarg ;; | |
1173 | ||
1174 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1175 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1176 | ac_prev=sysconfdir ;; | |
1177 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1178 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1179 | sysconfdir=$ac_optarg ;; | |
1180 | ||
1181 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1182 | ac_prev=target_alias ;; | |
1183 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1184 | target_alias=$ac_optarg ;; | |
1185 | ||
1186 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1187 | verbose=yes ;; | |
1188 | ||
1189 | -version | --version | --versio | --versi | --vers | -V) | |
1190 | ac_init_version=: ;; | |
1191 | ||
1192 | -with-* | --with-*) | |
1193 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1194 | # Reject names that are not valid shell variable names. | |
1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1196 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1197 | ac_useropt_orig=$ac_useropt |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=\$ac_optarg ;; | |
1207 | ||
1208 | -without-* | --without-*) | |
1209 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1210 | # Reject names that are not valid shell variable names. | |
1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1212 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1213 | ac_useropt_orig=$ac_useropt |
1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1215 | case $ac_user_opts in | |
1216 | *" | |
1217 | "with_$ac_useropt" | |
1218 | "*) ;; | |
1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1220 | ac_unrecognized_sep=', ';; | |
1221 | esac | |
1222 | eval with_$ac_useropt=no ;; | |
1223 | ||
1224 | --x) | |
1225 | # Obsolete; use --with-x. | |
1226 | with_x=yes ;; | |
1227 | ||
1228 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1229 | | --x-incl | --x-inc | --x-in | --x-i) | |
1230 | ac_prev=x_includes ;; | |
1231 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1232 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1233 | x_includes=$ac_optarg ;; | |
1234 | ||
1235 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1236 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1237 | ac_prev=x_libraries ;; | |
1238 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1239 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1240 | x_libraries=$ac_optarg ;; | |
1241 | ||
12833ad8 JF |
1242 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1243 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1244 | ;; |
1245 | ||
1246 | *=*) | |
1247 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1248 | # Reject names that are not valid shell variable names. | |
1249 | case $ac_envvar in #( | |
1250 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1251 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1252 | esac |
1253 | eval $ac_envvar=\$ac_optarg | |
1254 | export $ac_envvar ;; | |
1255 | ||
1256 | *) | |
1257 | # FIXME: should be removed in autoconf 3.0. | |
1258 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1259 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1260 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1261 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1262 | ;; |
1263 | ||
1264 | esac | |
1265 | done | |
1266 | ||
1267 | if test -n "$ac_prev"; then | |
1268 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1269 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1270 | fi |
1271 | ||
1272 | if test -n "$ac_unrecognized_opts"; then | |
1273 | case $enable_option_checking in | |
1274 | no) ;; | |
12833ad8 | 1275 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1276 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1277 | esac | |
1278 | fi | |
1279 | ||
1280 | # Check all directory arguments for consistency. | |
1281 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1282 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1283 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1284 | libdir localedir mandir | |
1285 | do | |
1286 | eval ac_val=\$$ac_var | |
1287 | # Remove trailing slashes. | |
1288 | case $ac_val in | |
1289 | */ ) | |
1290 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1291 | eval $ac_var=\$ac_val;; | |
1292 | esac | |
1293 | # Be sure to have absolute directory names. | |
1294 | case $ac_val in | |
1295 | [\\/$]* | ?:[\\/]* ) continue;; | |
1296 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1297 | esac | |
12833ad8 | 1298 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1299 | done |
1300 | ||
1301 | # There might be people who depend on the old broken behavior: `$host' | |
1302 | # used to hold the argument of --host etc. | |
1303 | # FIXME: To remove some day. | |
1304 | build=$build_alias | |
1305 | host=$host_alias | |
1306 | target=$target_alias | |
1307 | ||
1308 | # FIXME: To remove some day. | |
1309 | if test "x$host_alias" != x; then | |
1310 | if test "x$build_alias" = x; then | |
1311 | cross_compiling=maybe | |
c7aa54aa DWT |
1312 | elif test "x$build_alias" != "x$host_alias"; then |
1313 | cross_compiling=yes | |
1314 | fi | |
1315 | fi | |
1316 | ||
1317 | ac_tool_prefix= | |
1318 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1319 | ||
1320 | test "$silent" = yes && exec 6>/dev/null | |
1321 | ||
1322 | ||
1323 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1324 | ac_ls_di=`ls -di .` && | |
1325 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1326 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1327 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1328 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1329 | |
1330 | ||
1331 | # Find the source files, if location was not specified. | |
1332 | if test -z "$srcdir"; then | |
1333 | ac_srcdir_defaulted=yes | |
1334 | # Try the directory containing this script, then the parent directory. | |
1335 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1336 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1337 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1338 | X"$as_myself" : 'X\(//\)$' \| \ | |
1339 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1340 | $as_echo X"$as_myself" | | |
1341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1342 | s//\1/ | |
1343 | q | |
1344 | } | |
1345 | /^X\(\/\/\)[^/].*/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | /^X\(\/\/\)$/{ | |
1350 | s//\1/ | |
1351 | q | |
1352 | } | |
1353 | /^X\(\/\).*/{ | |
1354 | s//\1/ | |
1355 | q | |
1356 | } | |
1357 | s/.*/./; q'` | |
1358 | srcdir=$ac_confdir | |
1359 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1360 | srcdir=.. | |
1361 | fi | |
1362 | else | |
1363 | ac_srcdir_defaulted=no | |
1364 | fi | |
1365 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1366 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1367 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1368 | fi |
1369 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1370 | ac_abs_confdir=`( | |
12833ad8 | 1371 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1372 | pwd)` |
1373 | # When building in place, set srcdir=. | |
1374 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1375 | srcdir=. | |
1376 | fi | |
1377 | # Remove unnecessary trailing slashes from srcdir. | |
1378 | # Double slashes in file names in object file debugging info | |
1379 | # mess up M-x gdb in Emacs. | |
1380 | case $srcdir in | |
1381 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1382 | esac | |
1383 | for ac_var in $ac_precious_vars; do | |
1384 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1386 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1387 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1388 | done | |
1389 | ||
1390 | # | |
1391 | # Report the --help message. | |
1392 | # | |
1393 | if test "$ac_init_help" = "long"; then | |
1394 | # Omit some internal or obsolete options to make the list less imposing. | |
1395 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1396 | cat <<_ACEOF | |
1397 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1398 | ||
1399 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1400 | ||
1401 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1402 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1403 | ||
1404 | Defaults for the options are specified in brackets. | |
1405 | ||
1406 | Configuration: | |
1407 | -h, --help display this help and exit | |
1408 | --help=short display options specific to this package | |
1409 | --help=recursive display the short help of all the included packages | |
1410 | -V, --version display version information and exit | |
12833ad8 | 1411 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1412 | --cache-file=FILE cache test results in FILE [disabled] |
1413 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1414 | -n, --no-create do not create output files | |
1415 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1416 | ||
1417 | Installation directories: | |
1418 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1419 | [$ac_default_prefix] | |
1420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1421 | [PREFIX] | |
1422 | ||
1423 | By default, \`make install' will install all the files in | |
1424 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1425 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1426 | for instance \`--prefix=\$HOME'. | |
1427 | ||
1428 | For better control, use the options below. | |
1429 | ||
1430 | Fine tuning of the installation directories: | |
1431 | --bindir=DIR user executables [EPREFIX/bin] | |
1432 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1433 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1434 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1435 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1436 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1437 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1438 | --includedir=DIR C header files [PREFIX/include] | |
1439 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1440 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1441 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1442 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1443 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1444 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1445 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1446 | --htmldir=DIR html documentation [DOCDIR] | |
1447 | --dvidir=DIR dvi documentation [DOCDIR] | |
1448 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1449 | --psdir=DIR ps documentation [DOCDIR] | |
1450 | _ACEOF | |
1451 | ||
1452 | cat <<\_ACEOF | |
35fa52c0 | 1453 | |
66170b30 JF |
1454 | Program names: |
1455 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1456 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1457 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1458 | ||
35fa52c0 DWT |
1459 | System types: |
1460 | --build=BUILD configure for building on BUILD [guessed] | |
1461 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1462 | _ACEOF |
1463 | fi | |
1464 | ||
1465 | if test -n "$ac_init_help"; then | |
1466 | case $ac_init_help in | |
1467 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1468 | esac | |
1469 | cat <<\_ACEOF | |
1470 | ||
35fa52c0 DWT |
1471 | Optional Features: |
1472 | --disable-option-checking ignore unrecognized --enable/--with options | |
1473 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1474 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1475 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1476 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1477 | --enable-maintainer-mode |
1478 | enable make rules and dependencies not useful (and | |
1479 | sometimes confusing) to the casual installer | |
66170b30 JF |
1480 | --enable-dependency-tracking |
1481 | do not reject slow dependency extractors | |
1482 | --disable-dependency-tracking | |
1483 | speeds up one-time build | |
a243b558 JF |
1484 | --enable-static[=PKGS] build static libraries [default=no] |
1485 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1486 | --enable-fast-install[=PKGS] | |
1487 | optimize for fast installation [default=yes] | |
9c60689e | 1488 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1489 | --enable-javascript[=ENGINE] |
790e5246 | 1490 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1491 | available option for ENGINE is JavaScriptCore) |
1492 | [default=yes] | |
a93f15c0 | 1493 | --disable-console disable console |
a4287117 | 1494 | --disable-attach disable attach |
35fa52c0 DWT |
1495 | |
1496 | Optional Packages: | |
1497 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1498 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1499 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e | 1500 | both] |
9d54db95 JF |
1501 | --with-aix-soname=aix|svr4|both |
1502 | shared library versioning (aka "SONAME") variant to | |
1503 | provide on AIX, [default=aix]. | |
9c60689e | 1504 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
9d54db95 JF |
1505 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1506 | compiler's sysroot if not specified). | |
35fa52c0 | 1507 | |
dbadc56a | 1508 | Some influential environment variables: |
a93f15c0 JF |
1509 | CC C compiler command |
1510 | CFLAGS C compiler flags | |
dbadc56a DWT |
1511 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1512 | nonstandard directory <lib dir> | |
1513 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1514 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1515 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1516 | CXX C++ compiler command |
1517 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1518 | OBJCXX Objective C++ compiler command |
1519 | OBJCXXFLAGS Objective C++ compiler flags | |
9d54db95 JF |
1520 | LT_SYS_LIBRARY_PATH |
1521 | User-defined run-time library search path. | |
9c60689e | 1522 | CPP C preprocessor |
a243b558 | 1523 | CXXCPP C++ preprocessor |
3fd51f51 | 1524 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1525 | PKG_CONFIG_PATH |
1526 | directories to add to pkg-config's search path | |
1527 | PKG_CONFIG_LIBDIR | |
1528 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1529 | BISON GNU Project parser generator (yacc replacement) |
1530 | FLEX the fast lexical analyser generator | |
1531 | GPERF perfect hash function generator | |
66170b30 | 1532 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1533 | WEBKIT_CFLAGS |
1534 | C compiler flags for WEBKIT, overriding pkg-config | |
1535 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1536 | GNUSTEP_CONFIG |
1537 | prints information about the current gnustep installation | |
dbadc56a DWT |
1538 | |
1539 | Use these variables to override the choices made by `configure' or to help | |
1540 | it to find libraries and programs with nonstandard names/locations. | |
1541 | ||
c7aa54aa DWT |
1542 | Report bugs to <saurik@saurik.com>. |
1543 | Cycript home page: <http://www.cycript.org/>. | |
1544 | _ACEOF | |
1545 | ac_status=$? | |
1546 | fi | |
1547 | ||
1548 | if test "$ac_init_help" = "recursive"; then | |
1549 | # If there are subdirs, report their specific --help. | |
1550 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1551 | test -d "$ac_dir" || | |
1552 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1553 | continue | |
1554 | ac_builddir=. | |
1555 | ||
1556 | case "$ac_dir" in | |
1557 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1558 | *) | |
1559 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1560 | # A ".." for each directory in $ac_dir_suffix. | |
1561 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1562 | case $ac_top_builddir_sub in | |
1563 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1564 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1565 | esac ;; | |
1566 | esac | |
1567 | ac_abs_top_builddir=$ac_pwd | |
1568 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1569 | # for backward compatibility: | |
1570 | ac_top_builddir=$ac_top_build_prefix | |
1571 | ||
1572 | case $srcdir in | |
1573 | .) # We are building in place. | |
1574 | ac_srcdir=. | |
1575 | ac_top_srcdir=$ac_top_builddir_sub | |
1576 | ac_abs_top_srcdir=$ac_pwd ;; | |
1577 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1578 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1579 | ac_top_srcdir=$srcdir | |
1580 | ac_abs_top_srcdir=$srcdir ;; | |
1581 | *) # Relative name. | |
1582 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1583 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1584 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1585 | esac | |
1586 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1587 | ||
1588 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1589 | # Check for guested configure. | |
1590 | if test -f "$ac_srcdir/configure.gnu"; then | |
1591 | echo && | |
1592 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1593 | elif test -f "$ac_srcdir/configure"; then | |
1594 | echo && | |
1595 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1596 | else | |
1597 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1598 | fi || ac_status=$? | |
1599 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1600 | done | |
1601 | fi | |
1602 | ||
1603 | test -n "$ac_init_help" && exit $ac_status | |
1604 | if $ac_init_version; then | |
1605 | cat <<\_ACEOF | |
1606 | Cycript configure 0.9 | |
53ba6704 | 1607 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1608 | |
53ba6704 | 1609 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1610 | This configure script is free software; the Free Software Foundation |
1611 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 1612 | |
c1d3e52e | 1613 | Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
1614 | _ACEOF |
1615 | exit | |
1616 | fi | |
1617 | ||
1618 | ## ------------------------ ## | |
1619 | ## Autoconf initialization. ## | |
1620 | ## ------------------------ ## | |
dbadc56a | 1621 | |
a93f15c0 JF |
1622 | # ac_fn_c_try_compile LINENO |
1623 | # -------------------------- | |
a243b558 | 1624 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1625 | ac_fn_c_try_compile () |
a243b558 JF |
1626 | { |
1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1628 | rm -f conftest.$ac_objext | |
1629 | if { { ac_try="$ac_compile" | |
1630 | case "(($ac_try" in | |
1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1632 | *) ac_try_echo=$ac_try;; | |
1633 | esac | |
1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1635 | $as_echo "$ac_try_echo"; } >&5 | |
1636 | (eval "$ac_compile") 2>conftest.err | |
1637 | ac_status=$? | |
1638 | if test -s conftest.err; then | |
1639 | grep -v '^ *+' conftest.err >conftest.er1 | |
1640 | cat conftest.er1 >&5 | |
1641 | mv -f conftest.er1 conftest.err | |
1642 | fi | |
1643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1644 | test $ac_status = 0; } && { | |
a93f15c0 | 1645 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1646 | test ! -s conftest.err |
1647 | } && test -s conftest.$ac_objext; then : | |
1648 | ac_retval=0 | |
1649 | else | |
1650 | $as_echo "$as_me: failed program was:" >&5 | |
1651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1652 | ||
1653 | ac_retval=1 | |
1654 | fi | |
1655 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1656 | as_fn_set_status $ac_retval | |
1657 | ||
a93f15c0 | 1658 | } # ac_fn_c_try_compile |
a243b558 | 1659 | |
a93f15c0 JF |
1660 | # ac_fn_cxx_try_compile LINENO |
1661 | # ---------------------------- | |
a243b558 | 1662 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1663 | ac_fn_cxx_try_compile () |
a243b558 JF |
1664 | { |
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1666 | rm -f conftest.$ac_objext | |
1667 | if { { ac_try="$ac_compile" | |
1668 | case "(($ac_try" in | |
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1670 | *) ac_try_echo=$ac_try;; | |
1671 | esac | |
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1673 | $as_echo "$ac_try_echo"; } >&5 | |
1674 | (eval "$ac_compile") 2>conftest.err | |
1675 | ac_status=$? | |
1676 | if test -s conftest.err; then | |
1677 | grep -v '^ *+' conftest.err >conftest.er1 | |
1678 | cat conftest.er1 >&5 | |
1679 | mv -f conftest.er1 conftest.err | |
1680 | fi | |
1681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1682 | test $ac_status = 0; } && { | |
a93f15c0 | 1683 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1684 | test ! -s conftest.err |
1685 | } && test -s conftest.$ac_objext; then : | |
1686 | ac_retval=0 | |
1687 | else | |
1688 | $as_echo "$as_me: failed program was:" >&5 | |
1689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1690 | ||
1691 | ac_retval=1 | |
1692 | fi | |
1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1694 | as_fn_set_status $ac_retval | |
1695 | ||
a93f15c0 | 1696 | } # ac_fn_cxx_try_compile |
a243b558 | 1697 | |
a93f15c0 JF |
1698 | # ac_fn_objcxx_try_compile LINENO |
1699 | # ------------------------------- | |
35fa52c0 | 1700 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1701 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1702 | { |
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1704 | rm -f conftest.$ac_objext | |
1705 | if { { ac_try="$ac_compile" | |
1706 | case "(($ac_try" in | |
1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1708 | *) ac_try_echo=$ac_try;; | |
1709 | esac | |
1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1711 | $as_echo "$ac_try_echo"; } >&5 | |
1712 | (eval "$ac_compile") 2>conftest.err | |
1713 | ac_status=$? | |
1714 | if test -s conftest.err; then | |
1715 | grep -v '^ *+' conftest.err >conftest.er1 | |
1716 | cat conftest.er1 >&5 | |
1717 | mv -f conftest.er1 conftest.err | |
1718 | fi | |
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1720 | test $ac_status = 0; } && { | |
a93f15c0 | 1721 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1722 | test ! -s conftest.err |
1723 | } && test -s conftest.$ac_objext; then : | |
1724 | ac_retval=0 | |
1725 | else | |
1726 | $as_echo "$as_me: failed program was:" >&5 | |
1727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1728 | ||
1729 | ac_retval=1 | |
1730 | fi | |
ee134472 | 1731 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1732 | as_fn_set_status $ac_retval |
35fa52c0 | 1733 | |
a93f15c0 | 1734 | } # ac_fn_objcxx_try_compile |
35fa52c0 DWT |
1735 | |
1736 | # ac_fn_c_try_link LINENO | |
1737 | # ----------------------- | |
1738 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1739 | ac_fn_c_try_link () | |
1740 | { | |
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1743 | if { { ac_try="$ac_link" | |
1744 | case "(($ac_try" in | |
1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1746 | *) ac_try_echo=$ac_try;; | |
1747 | esac | |
1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1749 | $as_echo "$ac_try_echo"; } >&5 | |
1750 | (eval "$ac_link") 2>conftest.err | |
1751 | ac_status=$? | |
1752 | if test -s conftest.err; then | |
1753 | grep -v '^ *+' conftest.err >conftest.er1 | |
1754 | cat conftest.er1 >&5 | |
1755 | mv -f conftest.er1 conftest.err | |
1756 | fi | |
1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1758 | test $ac_status = 0; } && { | |
1759 | test -z "$ac_c_werror_flag" || | |
1760 | test ! -s conftest.err | |
1761 | } && test -s conftest$ac_exeext && { | |
1762 | test "$cross_compiling" = yes || | |
53ba6704 | 1763 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1764 | }; then : |
1765 | ac_retval=0 | |
1766 | else | |
1767 | $as_echo "$as_me: failed program was:" >&5 | |
1768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1769 | ||
1770 | ac_retval=1 | |
1771 | fi | |
1772 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1773 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1774 | # interfere with the next link command; also delete a directory that is | |
1775 | # left behind by Apple's compiler. We do this before executing the actions. | |
1776 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1777 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1778 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1779 | |
1780 | } # ac_fn_c_try_link | |
1781 | ||
9c60689e DWT |
1782 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1783 | # ------------------------------------------------------- | |
1784 | # Tests whether HEADER exists and can be compiled using the include files in | |
1785 | # INCLUDES, setting the cache variable VAR accordingly. | |
1786 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1787 | { |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1790 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1791 | if eval \${$3+:} false; then : |
9c60689e DWT |
1792 | $as_echo_n "(cached) " >&6 |
1793 | else | |
1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1795 | /* end confdefs.h. */ | |
1796 | $4 | |
1797 | #include <$2> | |
1798 | _ACEOF | |
1799 | if ac_fn_c_try_compile "$LINENO"; then : | |
1800 | eval "$3=yes" | |
1801 | else | |
1802 | eval "$3=no" | |
1803 | fi | |
1804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1805 | fi | |
1806 | eval ac_res=\$$3 | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1808 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1810 | |
1811 | } # ac_fn_c_check_header_compile | |
1812 | ||
1813 | # ac_fn_c_try_cpp LINENO | |
1814 | # ---------------------- | |
1815 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1816 | ac_fn_c_try_cpp () | |
1817 | { | |
1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1819 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1820 | case "(($ac_try" in |
1821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1822 | *) ac_try_echo=$ac_try;; | |
1823 | esac | |
1824 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1825 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1826 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1827 | ac_status=$? |
1828 | if test -s conftest.err; then | |
1829 | grep -v '^ *+' conftest.err >conftest.er1 | |
1830 | cat conftest.er1 >&5 | |
1831 | mv -f conftest.er1 conftest.err | |
1832 | fi | |
1833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1834 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1835 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1836 | test ! -s conftest.err |
9c60689e | 1837 | }; then : |
dbadc56a DWT |
1838 | ac_retval=0 |
1839 | else | |
1840 | $as_echo "$as_me: failed program was:" >&5 | |
1841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1842 | ||
9c60689e | 1843 | ac_retval=1 |
dbadc56a | 1844 | fi |
ee134472 | 1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1846 | as_fn_set_status $ac_retval |
dbadc56a | 1847 | |
9c60689e | 1848 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1849 | |
1850 | # ac_fn_c_try_run LINENO | |
1851 | # ---------------------- | |
1852 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1853 | # that executables *can* be run. | |
1854 | ac_fn_c_try_run () | |
1855 | { | |
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1857 | if { { ac_try="$ac_link" | |
1858 | case "(($ac_try" in | |
1859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1860 | *) ac_try_echo=$ac_try;; | |
1861 | esac | |
1862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1863 | $as_echo "$ac_try_echo"; } >&5 | |
1864 | (eval "$ac_link") 2>&5 | |
1865 | ac_status=$? | |
1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1867 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1868 | { { case "(($ac_try" in | |
1869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1870 | *) ac_try_echo=$ac_try;; | |
1871 | esac | |
1872 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1873 | $as_echo "$ac_try_echo"; } >&5 | |
1874 | (eval "$ac_try") 2>&5 | |
1875 | ac_status=$? | |
1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1877 | test $ac_status = 0; }; }; then : | |
1878 | ac_retval=0 | |
1879 | else | |
1880 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1881 | $as_echo "$as_me: failed program was:" >&5 | |
1882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1883 | ||
1884 | ac_retval=$ac_status | |
1885 | fi | |
1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1888 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1889 | |
1890 | } # ac_fn_c_try_run | |
6b66678a | 1891 | |
9c60689e DWT |
1892 | # ac_fn_c_check_func LINENO FUNC VAR |
1893 | # ---------------------------------- | |
1894 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1895 | ac_fn_c_check_func () | |
6b66678a DWT |
1896 | { |
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1899 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1900 | if eval \${$3+:} false; then : |
9c60689e | 1901 | $as_echo_n "(cached) " >&6 |
6b66678a | 1902 | else |
9c60689e DWT |
1903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1904 | /* end confdefs.h. */ | |
1905 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1907 | #define $2 innocuous_$2 | |
6b66678a | 1908 | |
9c60689e DWT |
1909 | /* System header to define __stub macros and hopefully few prototypes, |
1910 | which can conflict with char $2 (); below. | |
1911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1912 | <limits.h> exists even on freestanding compilers. */ | |
1913 | ||
1914 | #ifdef __STDC__ | |
1915 | # include <limits.h> | |
1916 | #else | |
1917 | # include <assert.h> | |
1918 | #endif | |
1919 | ||
1920 | #undef $2 | |
1921 | ||
1922 | /* Override any GCC internal prototype to avoid an error. | |
1923 | Use char because int might match the return type of a GCC | |
1924 | builtin and then its argument prototype would still apply. */ | |
1925 | #ifdef __cplusplus | |
1926 | extern "C" | |
1927 | #endif | |
1928 | char $2 (); | |
1929 | /* The GNU C library defines this for functions which it implements | |
1930 | to always fail with ENOSYS. Some functions are actually named | |
1931 | something starting with __ and the normal name is an alias. */ | |
1932 | #if defined __stub_$2 || defined __stub___$2 | |
1933 | choke me | |
1934 | #endif | |
1935 | ||
1936 | int | |
1937 | main () | |
1938 | { | |
1939 | return $2 (); | |
1940 | ; | |
1941 | return 0; | |
1942 | } | |
1943 | _ACEOF | |
1944 | if ac_fn_c_try_link "$LINENO"; then : | |
1945 | eval "$3=yes" | |
1946 | else | |
1947 | eval "$3=no" | |
1948 | fi | |
1949 | rm -f core conftest.err conftest.$ac_objext \ | |
1950 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1951 | fi |
9c60689e DWT |
1952 | eval ac_res=\$$3 |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1954 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1956 | |
9c60689e | 1957 | } # ac_fn_c_check_func |
6b66678a | 1958 | |
9c60689e DWT |
1959 | # ac_fn_cxx_try_cpp LINENO |
1960 | # ------------------------ | |
1961 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1962 | ac_fn_cxx_try_cpp () | |
1963 | { | |
1964 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1965 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1966 | case "(($ac_try" in | |
1967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1968 | *) ac_try_echo=$ac_try;; | |
1969 | esac | |
1970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1971 | $as_echo "$ac_try_echo"; } >&5 | |
1972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1973 | ac_status=$? | |
1974 | if test -s conftest.err; then | |
1975 | grep -v '^ *+' conftest.err >conftest.er1 | |
1976 | cat conftest.er1 >&5 | |
1977 | mv -f conftest.er1 conftest.err | |
1978 | fi | |
1979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1980 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1981 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1982 | test ! -s conftest.err | |
1983 | }; then : | |
1984 | ac_retval=0 | |
1985 | else | |
1986 | $as_echo "$as_me: failed program was:" >&5 | |
1987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1988 | ||
1989 | ac_retval=1 | |
1990 | fi | |
ee134472 | 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1992 | as_fn_set_status $ac_retval |
1993 | ||
1994 | } # ac_fn_cxx_try_cpp | |
1995 | ||
1996 | # ac_fn_cxx_try_link LINENO | |
1997 | # ------------------------- | |
1998 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1999 | ac_fn_cxx_try_link () | |
2000 | { | |
2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2003 | if { { ac_try="$ac_link" | |
2004 | case "(($ac_try" in | |
2005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2006 | *) ac_try_echo=$ac_try;; | |
2007 | esac | |
2008 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2009 | $as_echo "$ac_try_echo"; } >&5 | |
2010 | (eval "$ac_link") 2>conftest.err | |
2011 | ac_status=$? | |
2012 | if test -s conftest.err; then | |
2013 | grep -v '^ *+' conftest.err >conftest.er1 | |
2014 | cat conftest.er1 >&5 | |
2015 | mv -f conftest.er1 conftest.err | |
2016 | fi | |
2017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2018 | test $ac_status = 0; } && { | |
2019 | test -z "$ac_cxx_werror_flag" || | |
2020 | test ! -s conftest.err | |
2021 | } && test -s conftest$ac_exeext && { | |
2022 | test "$cross_compiling" = yes || | |
53ba6704 | 2023 | test -x conftest$ac_exeext |
9c60689e DWT |
2024 | }; then : |
2025 | ac_retval=0 | |
2026 | else | |
2027 | $as_echo "$as_me: failed program was:" >&5 | |
2028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2029 | ||
2030 | ac_retval=1 | |
2031 | fi | |
2032 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2033 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2034 | # interfere with the next link command; also delete a directory that is | |
2035 | # left behind by Apple's compiler. We do this before executing the actions. | |
2036 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2037 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2038 | as_fn_set_status $ac_retval |
2039 | ||
2040 | } # ac_fn_cxx_try_link | |
2041 | ||
47aaa820 DWT |
2042 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2043 | # --------------------------------------------------------- | |
2044 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2045 | # the include files in INCLUDES and setting the cache variable VAR | |
2046 | # accordingly. | |
2047 | ac_fn_cxx_check_header_mongrel () | |
2048 | { | |
2049 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2050 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2052 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2053 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2054 | $as_echo_n "(cached) " >&6 |
2055 | fi | |
2056 | eval ac_res=\$$3 | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2058 | $as_echo "$ac_res" >&6; } | |
2059 | else | |
2060 | # Is the header compilable? | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2062 | $as_echo_n "checking $2 usability... " >&6; } | |
2063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2064 | /* end confdefs.h. */ | |
2065 | $4 | |
2066 | #include <$2> | |
2067 | _ACEOF | |
2068 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2069 | ac_header_compiler=yes | |
2070 | else | |
2071 | ac_header_compiler=no | |
2072 | fi | |
2073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2075 | $as_echo "$ac_header_compiler" >&6; } | |
2076 | ||
2077 | # Is the header present? | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2079 | $as_echo_n "checking $2 presence... " >&6; } | |
2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2081 | /* end confdefs.h. */ | |
2082 | #include <$2> | |
2083 | _ACEOF | |
2084 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2085 | ac_header_preproc=yes | |
2086 | else | |
2087 | ac_header_preproc=no | |
2088 | fi | |
12833ad8 | 2089 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2091 | $as_echo "$ac_header_preproc" >&6; } | |
2092 | ||
2093 | # So? What about this header? | |
2094 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2095 | yes:no: ) | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2100 | ;; | |
2101 | no:yes:* ) | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2103 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2105 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2107 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2109 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2111 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2112 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2113 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2114 | ## -------------------------------- ##" |
47aaa820 DWT |
2115 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2116 | ;; | |
2117 | esac | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2119 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2120 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2121 | $as_echo_n "(cached) " >&6 |
2122 | else | |
2123 | eval "$3=\$ac_header_compiler" | |
2124 | fi | |
2125 | eval ac_res=\$$3 | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2127 | $as_echo "$ac_res" >&6; } | |
2128 | fi | |
ee134472 | 2129 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2130 | |
2131 | } # ac_fn_cxx_check_header_mongrel | |
2132 | ||
c823f118 DWT |
2133 | # ac_fn_objcxx_try_link LINENO |
2134 | # ---------------------------- | |
2135 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2136 | ac_fn_objcxx_try_link () | |
2137 | { | |
2138 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2140 | if { { ac_try="$ac_link" | |
2141 | case "(($ac_try" in | |
2142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2143 | *) ac_try_echo=$ac_try;; | |
2144 | esac | |
2145 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2146 | $as_echo "$ac_try_echo"; } >&5 | |
2147 | (eval "$ac_link") 2>conftest.err | |
2148 | ac_status=$? | |
2149 | if test -s conftest.err; then | |
2150 | grep -v '^ *+' conftest.err >conftest.er1 | |
2151 | cat conftest.er1 >&5 | |
2152 | mv -f conftest.er1 conftest.err | |
2153 | fi | |
2154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2155 | test $ac_status = 0; } && { | |
2156 | test -z "$ac_objcxx_werror_flag" || | |
2157 | test ! -s conftest.err | |
2158 | } && test -s conftest$ac_exeext && { | |
2159 | test "$cross_compiling" = yes || | |
53ba6704 | 2160 | test -x conftest$ac_exeext |
c823f118 DWT |
2161 | }; then : |
2162 | ac_retval=0 | |
2163 | else | |
2164 | $as_echo "$as_me: failed program was:" >&5 | |
2165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2166 | ||
2167 | ac_retval=1 | |
2168 | fi | |
2169 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2170 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2171 | # interfere with the next link command; also delete a directory that is | |
2172 | # left behind by Apple's compiler. We do this before executing the actions. | |
2173 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2174 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2175 | as_fn_set_status $ac_retval |
2176 | ||
2177 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2178 | cat >config.log <<_ACEOF |
2179 | This file contains any messages produced by compilers while | |
2180 | running configure, to aid debugging if configure makes a mistake. | |
2181 | ||
2182 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2183 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2184 | |
2185 | $ $0 $@ | |
2186 | ||
2187 | _ACEOF | |
2188 | exec 5>>config.log | |
2189 | { | |
2190 | cat <<_ASUNAME | |
2191 | ## --------- ## | |
2192 | ## Platform. ## | |
2193 | ## --------- ## | |
2194 | ||
2195 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2196 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2197 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2198 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2199 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2200 | ||
2201 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2202 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2203 | ||
2204 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2205 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2206 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2207 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2208 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2209 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2210 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2211 | ||
2212 | _ASUNAME | |
2213 | ||
2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2215 | for as_dir in $PATH | |
2216 | do | |
2217 | IFS=$as_save_IFS | |
2218 | test -z "$as_dir" && as_dir=. | |
2219 | $as_echo "PATH: $as_dir" | |
2220 | done | |
2221 | IFS=$as_save_IFS | |
2222 | ||
2223 | } >&5 | |
2224 | ||
2225 | cat >&5 <<_ACEOF | |
2226 | ||
2227 | ||
2228 | ## ----------- ## | |
2229 | ## Core tests. ## | |
2230 | ## ----------- ## | |
2231 | ||
2232 | _ACEOF | |
2233 | ||
2234 | ||
2235 | # Keep a trace of the command line. | |
2236 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2237 | # Strip out --silent because we don't want to record it for future runs. | |
2238 | # Also quote any args containing shell meta-characters. | |
2239 | # Make two passes to allow for proper duplicate-argument suppression. | |
2240 | ac_configure_args= | |
2241 | ac_configure_args0= | |
2242 | ac_configure_args1= | |
2243 | ac_must_keep_next=false | |
2244 | for ac_pass in 1 2 | |
2245 | do | |
2246 | for ac_arg | |
2247 | do | |
2248 | case $ac_arg in | |
2249 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2250 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2251 | | -silent | --silent | --silen | --sile | --sil) | |
2252 | continue ;; | |
2253 | *\'*) | |
2254 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2255 | esac | |
2256 | case $ac_pass in | |
2257 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2258 | 2) | |
2259 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2260 | if test $ac_must_keep_next = true; then | |
2261 | ac_must_keep_next=false # Got value, back to normal. | |
2262 | else | |
2263 | case $ac_arg in | |
2264 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2265 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2266 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2267 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2268 | case "$ac_configure_args0 " in | |
2269 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2270 | esac | |
2271 | ;; | |
2272 | -* ) ac_must_keep_next=true ;; | |
2273 | esac | |
2274 | fi | |
2275 | as_fn_append ac_configure_args " '$ac_arg'" | |
2276 | ;; | |
2277 | esac | |
2278 | done | |
2279 | done | |
2280 | { ac_configure_args0=; unset ac_configure_args0;} | |
2281 | { ac_configure_args1=; unset ac_configure_args1;} | |
2282 | ||
2283 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2284 | # config.log. We remove comments because anyway the quotes in there | |
2285 | # would cause problems or look ugly. | |
2286 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2287 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2288 | trap 'exit_status=$? | |
2289 | # Save into config.log some information that might help in debugging. | |
2290 | { | |
2291 | echo | |
2292 | ||
12833ad8 | 2293 | $as_echo "## ---------------- ## |
c7aa54aa | 2294 | ## Cache variables. ## |
12833ad8 | 2295 | ## ---------------- ##" |
c7aa54aa DWT |
2296 | echo |
2297 | # The following way of writing the cache mishandles newlines in values, | |
2298 | ( | |
2299 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2300 | eval ac_val=\$$ac_var | |
2301 | case $ac_val in #( | |
2302 | *${as_nl}*) | |
2303 | case $ac_var in #( | |
2304 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2305 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2306 | esac | |
2307 | case $ac_var in #( | |
2308 | _ | IFS | as_nl) ;; #( | |
2309 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2310 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2311 | esac ;; | |
2312 | esac | |
2313 | done | |
2314 | (set) 2>&1 | | |
2315 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2316 | *${as_nl}ac_space=\ *) | |
2317 | sed -n \ | |
2318 | "s/'\''/'\''\\\\'\'''\''/g; | |
2319 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2320 | ;; #( | |
2321 | *) | |
2322 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2323 | ;; | |
2324 | esac | | |
2325 | sort | |
2326 | ) | |
2327 | echo | |
2328 | ||
12833ad8 | 2329 | $as_echo "## ----------------- ## |
c7aa54aa | 2330 | ## Output variables. ## |
12833ad8 | 2331 | ## ----------------- ##" |
c7aa54aa DWT |
2332 | echo |
2333 | for ac_var in $ac_subst_vars | |
2334 | do | |
2335 | eval ac_val=\$$ac_var | |
2336 | case $ac_val in | |
2337 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2338 | esac | |
2339 | $as_echo "$ac_var='\''$ac_val'\''" | |
2340 | done | sort | |
2341 | echo | |
2342 | ||
2343 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2344 | $as_echo "## ------------------- ## |
c7aa54aa | 2345 | ## File substitutions. ## |
12833ad8 | 2346 | ## ------------------- ##" |
c7aa54aa DWT |
2347 | echo |
2348 | for ac_var in $ac_subst_files | |
2349 | do | |
2350 | eval ac_val=\$$ac_var | |
2351 | case $ac_val in | |
2352 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2353 | esac | |
2354 | $as_echo "$ac_var='\''$ac_val'\''" | |
2355 | done | sort | |
2356 | echo | |
2357 | fi | |
2358 | ||
2359 | if test -s confdefs.h; then | |
12833ad8 | 2360 | $as_echo "## ----------- ## |
c7aa54aa | 2361 | ## confdefs.h. ## |
12833ad8 | 2362 | ## ----------- ##" |
c7aa54aa DWT |
2363 | echo |
2364 | cat confdefs.h | |
2365 | echo | |
2366 | fi | |
2367 | test "$ac_signal" != 0 && | |
2368 | $as_echo "$as_me: caught signal $ac_signal" | |
2369 | $as_echo "$as_me: exit $exit_status" | |
2370 | } >&5 | |
2371 | rm -f core *.core core.conftest.* && | |
2372 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2373 | exit $exit_status | |
2374 | ' 0 | |
2375 | for ac_signal in 1 2 13 15; do | |
2376 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2377 | done | |
2378 | ac_signal=0 | |
2379 | ||
2380 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2381 | rm -f -r conftest* confdefs.h | |
2382 | ||
2383 | $as_echo "/* confdefs.h */" > confdefs.h | |
2384 | ||
2385 | # Predefined preprocessor variables. | |
2386 | ||
2387 | cat >>confdefs.h <<_ACEOF | |
2388 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2389 | _ACEOF | |
2390 | ||
2391 | cat >>confdefs.h <<_ACEOF | |
2392 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2393 | _ACEOF | |
2394 | ||
2395 | cat >>confdefs.h <<_ACEOF | |
2396 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2397 | _ACEOF | |
2398 | ||
2399 | cat >>confdefs.h <<_ACEOF | |
2400 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2401 | _ACEOF | |
2402 | ||
2403 | cat >>confdefs.h <<_ACEOF | |
2404 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2405 | _ACEOF | |
2406 | ||
2407 | cat >>confdefs.h <<_ACEOF | |
2408 | #define PACKAGE_URL "$PACKAGE_URL" | |
2409 | _ACEOF | |
2410 | ||
2411 | ||
2412 | # Let the site file select an alternate cache file if it wants to. | |
2413 | # Prefer an explicitly selected file to automatically selected ones. | |
2414 | ac_site_file1=NONE | |
2415 | ac_site_file2=NONE | |
2416 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2417 | # We do not want a PATH search for config.site. |
2418 | case $CONFIG_SITE in #(( | |
2419 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2420 | */*) ac_site_file1=$CONFIG_SITE;; | |
2421 | *) ac_site_file1=./$CONFIG_SITE;; | |
2422 | esac | |
c7aa54aa DWT |
2423 | elif test "x$prefix" != xNONE; then |
2424 | ac_site_file1=$prefix/share/config.site | |
2425 | ac_site_file2=$prefix/etc/config.site | |
2426 | else | |
2427 | ac_site_file1=$ac_default_prefix/share/config.site | |
2428 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2429 | fi | |
2430 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2431 | do | |
2432 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2433 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2435 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2436 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2437 | . "$ac_site_file" \ |
2438 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2440 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2441 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2442 | fi |
2443 | done | |
2444 | ||
2445 | if test -r "$cache_file"; then | |
9c60689e DWT |
2446 | # Some versions of bash will fail to source /dev/null (special files |
2447 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2448 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2450 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2451 | case $cache_file in | |
2452 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2453 | *) . "./$cache_file";; | |
2454 | esac | |
2455 | fi | |
2456 | else | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2458 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2459 | >$cache_file | |
2460 | fi | |
2461 | ||
2462 | # Check that the precious variables saved in the cache have kept the same | |
2463 | # value. | |
2464 | ac_cache_corrupted=false | |
2465 | for ac_var in $ac_precious_vars; do | |
2466 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2467 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2468 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2469 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2470 | case $ac_old_set,$ac_new_set in | |
2471 | set,) | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2473 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2474 | ac_cache_corrupted=: ;; | |
2475 | ,set) | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2477 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2478 | ac_cache_corrupted=: ;; | |
2479 | ,);; | |
2480 | *) | |
2481 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2482 | # differences in whitespace do not lead to failure. | |
2483 | ac_old_val_w=`echo x $ac_old_val` | |
2484 | ac_new_val_w=`echo x $ac_new_val` | |
2485 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2487 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2488 | ac_cache_corrupted=: | |
2489 | else | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2491 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2492 | eval $ac_var=\$ac_old_val | |
2493 | fi | |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2495 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2497 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2498 | fi;; | |
2499 | esac | |
2500 | # Pass precious variables to config.status. | |
2501 | if test "$ac_new_set" = set; then | |
2502 | case $ac_new_val in | |
2503 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2504 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2505 | esac | |
2506 | case " $ac_configure_args " in | |
2507 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2508 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2509 | esac | |
2510 | fi | |
2511 | done | |
2512 | if $ac_cache_corrupted; then | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2516 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2517 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2518 | fi |
2519 | ## -------------------- ## | |
2520 | ## Main body of script. ## | |
2521 | ## -------------------- ## | |
2522 | ||
2523 | ac_ext=c | |
2524 | ac_cpp='$CPP $CPPFLAGS' | |
2525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2528 | ||
2529 | ||
66170b30 JF |
2530 | |
2531 | ||
35fa52c0 | 2532 | |
6b66678a DWT |
2533 | ac_aux_dir= |
2534 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2535 | if test -f "$ac_dir/install-sh"; then |
2536 | ac_aux_dir=$ac_dir | |
2537 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2538 | break | |
2539 | elif test -f "$ac_dir/install.sh"; then | |
2540 | ac_aux_dir=$ac_dir | |
2541 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2542 | break | |
2543 | elif test -f "$ac_dir/shtool"; then | |
2544 | ac_aux_dir=$ac_dir | |
2545 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2546 | break | |
2547 | fi | |
6b66678a DWT |
2548 | done |
2549 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2550 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2551 | fi |
2552 | ||
2553 | # These three variables are undocumented and unsupported, | |
2554 | # and are intended to be withdrawn in a future Autoconf release. | |
2555 | # They can cause serious problems if a builder's source tree is in a directory | |
2556 | # whose full name contains unusual characters. | |
2557 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2558 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2559 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2560 | ||
2561 | ||
9c60689e | 2562 | |
296ee9a6 JF |
2563 | ac_config_headers="$ac_config_headers config.h" |
2564 | ||
9c60689e | 2565 | |
795230e5 | 2566 | am__api_version='1.15' |
9c60689e | 2567 | |
66170b30 JF |
2568 | # Find a good install program. We prefer a C program (faster), |
2569 | # so one script is as good as another. But avoid the broken or | |
2570 | # incompatible versions: | |
2571 | # SysV /etc/install, /usr/sbin/install | |
2572 | # SunOS /usr/etc/install | |
2573 | # IRIX /sbin/install | |
2574 | # AIX /bin/install | |
2575 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2576 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2577 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2578 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2579 | # OS/2's system install, which has a completely different semantic | |
2580 | # ./install, which can be erroneously created by make from ./install.sh. | |
2581 | # Reject install programs that cannot install multiple files. | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2583 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2584 | if test -z "$INSTALL"; then | |
2585 | if ${ac_cv_path_install+:} false; then : | |
2586 | $as_echo_n "(cached) " >&6 | |
2587 | else | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | # Account for people who put trailing slashes in PATH elements. | |
2594 | case $as_dir/ in #(( | |
2595 | ./ | .// | /[cC]/* | \ | |
2596 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2597 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2598 | /usr/ucb/* ) ;; | |
2599 | *) | |
2600 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2601 | # Don't use installbsd from OSF since it installs stuff as root | |
2602 | # by default. | |
2603 | for ac_prog in ginstall scoinst install; do | |
2604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2605 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2606 | if test $ac_prog = install && | |
2607 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2608 | # AIX install. It has an incompatible calling convention. | |
2609 | : | |
2610 | elif test $ac_prog = install && | |
2611 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2612 | # program-specific install script used by HP pwplus--don't use. | |
2613 | : | |
2614 | else | |
2615 | rm -rf conftest.one conftest.two conftest.dir | |
2616 | echo one > conftest.one | |
2617 | echo two > conftest.two | |
2618 | mkdir conftest.dir | |
2619 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2620 | test -s conftest.one && test -s conftest.two && | |
2621 | test -s conftest.dir/conftest.one && | |
2622 | test -s conftest.dir/conftest.two | |
2623 | then | |
2624 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2625 | break 3 | |
2626 | fi | |
2627 | fi | |
2628 | fi | |
2629 | done | |
2630 | done | |
2631 | ;; | |
2632 | esac | |
9c60689e | 2633 | |
66170b30 JF |
2634 | done |
2635 | IFS=$as_save_IFS | |
9c60689e | 2636 | |
66170b30 | 2637 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2638 | |
66170b30 JF |
2639 | fi |
2640 | if test "${ac_cv_path_install+set}" = set; then | |
2641 | INSTALL=$ac_cv_path_install | |
2642 | else | |
2643 | # As a last resort, use the slow shell script. Don't cache a | |
2644 | # value for INSTALL within a source directory, because that will | |
2645 | # break other packages using the cache if that directory is | |
2646 | # removed, or if the value is a relative name. | |
2647 | INSTALL=$ac_install_sh | |
2648 | fi | |
2649 | fi | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2651 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2652 | |
66170b30 JF |
2653 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2654 | # It thinks the first close brace ends the variable substitution. | |
2655 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2656 | |
66170b30 | 2657 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2658 | |
66170b30 | 2659 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2660 | |
66170b30 JF |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2662 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2663 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2664 | # name. Accept space and tab only in the latter. | |
2665 | am_lf=' | |
2666 | ' | |
2667 | case `pwd` in | |
2668 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2669 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2670 | esac | |
2671 | case $srcdir in | |
2672 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2673 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2674 | esac | |
9c60689e | 2675 | |
66170b30 JF |
2676 | # Do 'set' in a subshell so we don't clobber the current shell's |
2677 | # arguments. Must try -L first in case configure is actually a | |
2678 | # symlink; some systems play weird games with the mod time of symlinks | |
2679 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2680 | # directory). | |
2681 | if ( | |
2682 | am_has_slept=no | |
2683 | for am_try in 1 2; do | |
2684 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2685 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2686 | if test "$*" = "X"; then | |
2687 | # -L didn't work. | |
2688 | set X `ls -t "$srcdir/configure" conftest.file` | |
2689 | fi | |
2690 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2691 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2692 | ||
2693 | # If neither matched, then we have a broken ls. This can happen | |
2694 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2695 | # broken ls alias from the environment. This has actually | |
2696 | # happened. Such a system could not be considered "sane". | |
2697 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2698 | alias in your environment" "$LINENO" 5 | |
2699 | fi | |
2700 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2701 | break | |
2702 | fi | |
2703 | # Just in case. | |
2704 | sleep 1 | |
2705 | am_has_slept=yes | |
2706 | done | |
2707 | test "$2" = conftest.file | |
2708 | ) | |
2709 | then | |
2710 | # Ok. | |
2711 | : | |
2712 | else | |
2713 | as_fn_error $? "newly created file is older than distributed files! | |
2714 | Check your system clock" "$LINENO" 5 | |
2715 | fi | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2717 | $as_echo "yes" >&6; } | |
2718 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2719 | # generated files are strictly newer. | |
2720 | am_sleep_pid= | |
2721 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2722 | ( sleep 1 ) & | |
2723 | am_sleep_pid=$! | |
2724 | fi | |
2725 | ||
2726 | rm -f conftest.file | |
2727 | ||
2728 | test "$program_prefix" != NONE && | |
2729 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2730 | # Use a double $ so make ignores it. | |
2731 | test "$program_suffix" != NONE && | |
2732 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2733 | # Double any \ or $. | |
2734 | # By default was `s,x,x', remove it if useless. | |
2735 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2736 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2737 | ||
795230e5 JF |
2738 | # Expand $ac_aux_dir to an absolute path. |
2739 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
66170b30 JF |
2740 | |
2741 | if test x"${MISSING+set}" != xset; then | |
2742 | case $am_aux_dir in | |
2743 | *\ * | *\ *) | |
2744 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2745 | *) | |
2746 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2747 | esac | |
2748 | fi | |
2749 | # Use eval to expand $SHELL | |
2750 | if eval "$MISSING --is-lightweight"; then | |
2751 | am_missing_run="$MISSING " | |
2752 | else | |
2753 | am_missing_run= | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2755 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2756 | fi | |
9c60689e | 2757 | |
795230e5 | 2758 | if test x"${install_sh+set}" != xset; then |
66170b30 JF |
2759 | case $am_aux_dir in |
2760 | *\ * | *\ *) | |
2761 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2762 | *) | |
2763 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2764 | esac | |
2765 | fi | |
9c60689e | 2766 | |
66170b30 JF |
2767 | # Installed binaries are usually stripped using 'strip' when the user |
2768 | # run "make install-strip". However 'strip' might not be the right | |
2769 | # tool to use in cross-compilation environments, therefore Automake | |
2770 | # will honor the 'STRIP' environment variable to overrule this program. | |
2771 | if test "$cross_compiling" != no; then | |
2772 | if test -n "$ac_tool_prefix"; then | |
2773 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2774 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2776 | $as_echo_n "checking for $ac_word... " >&6; } | |
2777 | if ${ac_cv_prog_STRIP+:} false; then : | |
2778 | $as_echo_n "(cached) " >&6 | |
2779 | else | |
2780 | if test -n "$STRIP"; then | |
2781 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2782 | else | |
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2784 | for as_dir in $PATH | |
2785 | do | |
2786 | IFS=$as_save_IFS | |
2787 | test -z "$as_dir" && as_dir=. | |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2790 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2792 | break 2 | |
2793 | fi | |
2794 | done | |
2795 | done | |
2796 | IFS=$as_save_IFS | |
9c60689e | 2797 | |
66170b30 JF |
2798 | fi |
2799 | fi | |
2800 | STRIP=$ac_cv_prog_STRIP | |
2801 | if test -n "$STRIP"; then | |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2803 | $as_echo "$STRIP" >&6; } | |
2804 | else | |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2806 | $as_echo "no" >&6; } | |
2807 | fi | |
9c60689e | 2808 | |
9c60689e | 2809 | |
66170b30 JF |
2810 | fi |
2811 | if test -z "$ac_cv_prog_STRIP"; then | |
2812 | ac_ct_STRIP=$STRIP | |
2813 | # Extract the first word of "strip", so it can be a program name with args. | |
2814 | set dummy strip; ac_word=$2 | |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2816 | $as_echo_n "checking for $ac_word... " >&6; } | |
2817 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2818 | $as_echo_n "(cached) " >&6 |
2819 | else | |
66170b30 JF |
2820 | if test -n "$ac_ct_STRIP"; then |
2821 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2822 | else | |
2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2824 | for as_dir in $PATH | |
2825 | do | |
2826 | IFS=$as_save_IFS | |
2827 | test -z "$as_dir" && as_dir=. | |
2828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2830 | ac_cv_prog_ac_ct_STRIP="strip" | |
2831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2832 | break 2 | |
2833 | fi | |
2834 | done | |
2835 | done | |
2836 | IFS=$as_save_IFS | |
9c60689e DWT |
2837 | |
2838 | fi | |
66170b30 JF |
2839 | fi |
2840 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2841 | if test -n "$ac_ct_STRIP"; then | |
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2843 | $as_echo "$ac_ct_STRIP" >&6; } | |
2844 | else | |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2846 | $as_echo "no" >&6; } | |
2847 | fi | |
2848 | ||
2849 | if test "x$ac_ct_STRIP" = x; then | |
2850 | STRIP=":" | |
2851 | else | |
2852 | case $cross_compiling:$ac_tool_warned in | |
2853 | yes:) | |
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2856 | ac_tool_warned=yes ;; | |
9c60689e | 2857 | esac |
66170b30 JF |
2858 | STRIP=$ac_ct_STRIP |
2859 | fi | |
2860 | else | |
2861 | STRIP="$ac_cv_prog_STRIP" | |
2862 | fi | |
9c60689e | 2863 | |
66170b30 JF |
2864 | fi |
2865 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2866 | |
66170b30 JF |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2868 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2869 | if test -z "$MKDIR_P"; then | |
2870 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2871 | $as_echo_n "(cached) " >&6 |
2872 | else | |
66170b30 JF |
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2874 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2875 | do | |
2876 | IFS=$as_save_IFS | |
2877 | test -z "$as_dir" && as_dir=. | |
2878 | for ac_prog in mkdir gmkdir; do | |
2879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2880 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2881 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2882 | 'mkdir (GNU coreutils) '* | \ | |
2883 | 'mkdir (coreutils) '* | \ | |
2884 | 'mkdir (fileutils) '4.1*) | |
2885 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2886 | break 3;; | |
2887 | esac | |
2888 | done | |
2889 | done | |
2890 | done | |
2891 | IFS=$as_save_IFS | |
2892 | ||
2893 | fi | |
2894 | ||
2895 | test -d ./--version && rmdir ./--version | |
2896 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2897 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2898 | else | |
2899 | # As a last resort, use the slow shell script. Don't cache a | |
2900 | # value for MKDIR_P within a source directory, because that will | |
2901 | # break other packages using the cache if that directory is | |
2902 | # removed, or if the value is a relative name. | |
2903 | MKDIR_P="$ac_install_sh -d" | |
2904 | fi | |
2905 | fi | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2907 | $as_echo "$MKDIR_P" >&6; } | |
2908 | ||
2909 | for ac_prog in gawk mawk nawk awk | |
2910 | do | |
2911 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2912 | set dummy $ac_prog; ac_word=$2 | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2914 | $as_echo_n "checking for $ac_word... " >&6; } | |
2915 | if ${ac_cv_prog_AWK+:} false; then : | |
2916 | $as_echo_n "(cached) " >&6 | |
2917 | else | |
2918 | if test -n "$AWK"; then | |
2919 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2920 | else | |
2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2922 | for as_dir in $PATH | |
2923 | do | |
2924 | IFS=$as_save_IFS | |
2925 | test -z "$as_dir" && as_dir=. | |
2926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2928 | ac_cv_prog_AWK="$ac_prog" | |
2929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2930 | break 2 | |
2931 | fi | |
2932 | done | |
2933 | done | |
2934 | IFS=$as_save_IFS | |
2935 | ||
2936 | fi | |
2937 | fi | |
2938 | AWK=$ac_cv_prog_AWK | |
2939 | if test -n "$AWK"; then | |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2941 | $as_echo "$AWK" >&6; } | |
2942 | else | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2944 | $as_echo "no" >&6; } | |
2945 | fi | |
2946 | ||
2947 | ||
2948 | test -n "$AWK" && break | |
2949 | done | |
2950 | ||
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2952 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2953 | set x ${MAKE-make} | |
2954 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2955 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2956 | $as_echo_n "(cached) " >&6 | |
2957 | else | |
2958 | cat >conftest.make <<\_ACEOF | |
2959 | SHELL = /bin/sh | |
2960 | all: | |
2961 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2962 | _ACEOF | |
2963 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2964 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2965 | *@@@%%%=?*=@@@%%%*) | |
2966 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2967 | *) | |
2968 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2969 | esac | |
2970 | rm -f conftest.make | |
2971 | fi | |
2972 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2974 | $as_echo "yes" >&6; } | |
2975 | SET_MAKE= | |
2976 | else | |
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2978 | $as_echo "no" >&6; } | |
2979 | SET_MAKE="MAKE=${MAKE-make}" | |
2980 | fi | |
2981 | ||
2982 | rm -rf .tst 2>/dev/null | |
2983 | mkdir .tst 2>/dev/null | |
2984 | if test -d .tst; then | |
2985 | am__leading_dot=. | |
2986 | else | |
2987 | am__leading_dot=_ | |
2988 | fi | |
2989 | rmdir .tst 2>/dev/null | |
2990 | ||
2991 | # Check whether --enable-silent-rules was given. | |
2992 | if test "${enable_silent_rules+set}" = set; then : | |
2993 | enableval=$enable_silent_rules; | |
2994 | fi | |
2995 | ||
2996 | case $enable_silent_rules in # ((( | |
2997 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2998 | no) AM_DEFAULT_VERBOSITY=1;; | |
2999 | *) AM_DEFAULT_VERBOSITY=1;; | |
3000 | esac | |
3001 | am_make=${MAKE-make} | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3003 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3004 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3005 | $as_echo_n "(cached) " >&6 | |
3006 | else | |
3007 | if $as_echo 'TRUE=$(BAR$(V)) | |
3008 | BAR0=false | |
3009 | BAR1=true | |
3010 | V=1 | |
3011 | am__doit: | |
3012 | @$(TRUE) | |
3013 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3014 | am_cv_make_support_nested_variables=yes | |
3015 | else | |
3016 | am_cv_make_support_nested_variables=no | |
3017 | fi | |
3018 | fi | |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3020 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3021 | if test $am_cv_make_support_nested_variables = yes; then | |
3022 | AM_V='$(V)' | |
3023 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3024 | else | |
3025 | AM_V=$AM_DEFAULT_VERBOSITY | |
3026 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3027 | fi | |
3028 | AM_BACKSLASH='\' | |
3029 | ||
3030 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3031 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3032 | # is not polluted with repeated "-I." | |
3033 | am__isrc=' -I$(srcdir)' | |
3034 | # test to see if srcdir already configured | |
3035 | if test -f $srcdir/config.status; then | |
3036 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3037 | fi | |
3038 | fi | |
3039 | ||
3040 | # test whether we have cygpath | |
3041 | if test -z "$CYGPATH_W"; then | |
3042 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3043 | CYGPATH_W='cygpath -w' | |
3044 | else | |
3045 | CYGPATH_W=echo | |
3046 | fi | |
3047 | fi | |
3048 | ||
3049 | ||
3050 | # Define the identity of the package. | |
3051 | PACKAGE='cycript' | |
3052 | VERSION='0.9' | |
3053 | ||
3054 | ||
3055 | cat >>confdefs.h <<_ACEOF | |
3056 | #define PACKAGE "$PACKAGE" | |
3057 | _ACEOF | |
3058 | ||
3059 | ||
3060 | cat >>confdefs.h <<_ACEOF | |
3061 | #define VERSION "$VERSION" | |
3062 | _ACEOF | |
3063 | ||
3064 | # Some tools Automake needs. | |
3065 | ||
3066 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3067 | ||
3068 | ||
3069 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3070 | ||
3071 | ||
3072 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3073 | ||
3074 | ||
3075 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3076 | ||
3077 | ||
3078 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3079 | ||
3080 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3081 | # dies out for good. For more background, see: | |
3082 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3083 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3084 | mkdir_p='$(MKDIR_P)' | |
3085 | ||
795230e5 JF |
3086 | # We need awk for the "check" target (and possibly the TAP driver). The |
3087 | # system "awk" is bad on some platforms. | |
66170b30 JF |
3088 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3089 | # in the wild :-( We should find a proper way to deprecate it ... | |
3090 | AMTAR='$${TAR-tar}' | |
3091 | ||
a93f15c0 JF |
3092 | |
3093 | # We'll loop over all known methods to create a tar archive until one works. | |
3094 | _am_tools='gnutar pax cpio none' | |
3095 | ||
66170b30 JF |
3096 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3097 | ||
3098 | ||
3099 | ||
3100 | ||
3101 | ||
66170b30 | 3102 | |
a93f15c0 JF |
3103 | # POSIX will say in a future version that running "rm -f" with no argument |
3104 | # is OK; and we want to be able to make that assumption in our Makefile | |
3105 | # recipes. So use an aggressive probe to check that the usage we want is | |
3106 | # actually supported "in the wild" to an acceptable degree. | |
3107 | # See automake bug#10828. | |
3108 | # To make any issue more visible, cause the running configure to be aborted | |
3109 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3110 | # user can still override this though. | |
3111 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3112 | cat >&2 <<'END' | |
3113 | Oops! | |
3114 | ||
3115 | Your 'rm' program seems unable to run without file operands specified | |
3116 | on the command line, even when the '-f' option is present. This is contrary | |
3117 | to the behaviour of most rm programs out there, and not conforming with | |
3118 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3119 | ||
3120 | Please tell bug-automake@gnu.org about your system, including the value | |
3121 | of your $PATH and any error possibly output before this message. This | |
3122 | can help us improve future automake versions. | |
3123 | ||
3124 | END | |
3125 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3126 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3127 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3128 | echo >&2 | |
3129 | else | |
3130 | cat >&2 <<'END' | |
3131 | Aborting the configuration process, to ensure you take notice of the issue. | |
3132 | ||
3133 | You can download and install GNU coreutils to get an 'rm' implementation | |
3134 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3135 | ||
3136 | If you want to complete the configuration process using your problematic | |
3137 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3138 | to "yes", and re-run configure. | |
3139 | ||
3140 | END | |
3141 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3142 | fi | |
3143 | fi | |
3144 | ||
795230e5 | 3145 | |
babf7fe8 JF |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3147 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3148 | # Check whether --enable-maintainer-mode was given. | |
3149 | if test "${enable_maintainer_mode+set}" = set; then : | |
3150 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3151 | else | |
3152 | USE_MAINTAINER_MODE=no | |
3153 | fi | |
3154 | ||
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3156 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3157 | if test $USE_MAINTAINER_MODE = yes; then | |
3158 | MAINTAINER_MODE_TRUE= | |
3159 | MAINTAINER_MODE_FALSE='#' | |
3160 | else | |
3161 | MAINTAINER_MODE_TRUE='#' | |
3162 | MAINTAINER_MODE_FALSE= | |
3163 | fi | |
3164 | ||
3165 | MAINT=$MAINTAINER_MODE_TRUE | |
3166 | ||
3167 | ||
3168 | ||
a93f15c0 JF |
3169 | ac_ext=c |
3170 | ac_cpp='$CPP $CPPFLAGS' | |
3171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3174 | if test -n "$ac_tool_prefix"; then | |
3175 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3176 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3178 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3179 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3180 | $as_echo_n "(cached) " >&6 |
3181 | else | |
a93f15c0 JF |
3182 | if test -n "$CC"; then |
3183 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3184 | else |
3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3186 | for as_dir in $PATH | |
3187 | do | |
3188 | IFS=$as_save_IFS | |
3189 | test -z "$as_dir" && as_dir=. | |
3190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3192 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3194 | break 2 | |
3195 | fi | |
3196 | done | |
3197 | done | |
3198 | IFS=$as_save_IFS | |
3199 | ||
3200 | fi | |
3201 | fi | |
a93f15c0 JF |
3202 | CC=$ac_cv_prog_CC |
3203 | if test -n "$CC"; then | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3205 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3206 | else |
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3208 | $as_echo "no" >&6; } | |
3209 | fi | |
3210 | ||
3211 | ||
35fa52c0 | 3212 | fi |
a93f15c0 JF |
3213 | if test -z "$ac_cv_prog_CC"; then |
3214 | ac_ct_CC=$CC | |
3215 | # Extract the first word of "gcc", so it can be a program name with args. | |
3216 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3218 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3219 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3220 | $as_echo_n "(cached) " >&6 |
3221 | else | |
a93f15c0 JF |
3222 | if test -n "$ac_ct_CC"; then |
3223 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3224 | else |
3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3226 | for as_dir in $PATH | |
3227 | do | |
3228 | IFS=$as_save_IFS | |
3229 | test -z "$as_dir" && as_dir=. | |
3230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3232 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
3233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3234 | break 2 | |
3235 | fi | |
3236 | done | |
3237 | done | |
3238 | IFS=$as_save_IFS | |
3239 | ||
3240 | fi | |
3241 | fi | |
a93f15c0 JF |
3242 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3243 | if test -n "$ac_ct_CC"; then | |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3245 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3246 | else |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3248 | $as_echo "no" >&6; } | |
3249 | fi | |
3250 | ||
a93f15c0 JF |
3251 | if test "x$ac_ct_CC" = x; then |
3252 | CC="" | |
35fa52c0 DWT |
3253 | else |
3254 | case $cross_compiling:$ac_tool_warned in | |
3255 | yes:) | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3258 | ac_tool_warned=yes ;; | |
3259 | esac | |
a93f15c0 | 3260 | CC=$ac_ct_CC |
35fa52c0 | 3261 | fi |
a93f15c0 JF |
3262 | else |
3263 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3264 | fi |
3265 | ||
a93f15c0 JF |
3266 | if test -z "$CC"; then |
3267 | if test -n "$ac_tool_prefix"; then | |
3268 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3269 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3271 | $as_echo_n "checking for $ac_word... " >&6; } | |
3272 | if ${ac_cv_prog_CC+:} false; then : | |
3273 | $as_echo_n "(cached) " >&6 | |
3274 | else | |
3275 | if test -n "$CC"; then | |
3276 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3277 | else | |
3278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3279 | for as_dir in $PATH | |
3280 | do | |
3281 | IFS=$as_save_IFS | |
3282 | test -z "$as_dir" && as_dir=. | |
3283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3285 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3287 | break 2 | |
a243b558 | 3288 | fi |
35fa52c0 | 3289 | done |
a93f15c0 JF |
3290 | done |
3291 | IFS=$as_save_IFS | |
35fa52c0 | 3292 | |
a93f15c0 JF |
3293 | fi |
3294 | fi | |
3295 | CC=$ac_cv_prog_CC | |
3296 | if test -n "$CC"; then | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3298 | $as_echo "$CC" >&6; } | |
3299 | else | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3301 | $as_echo "no" >&6; } | |
3302 | fi | |
35fa52c0 | 3303 | |
35fa52c0 | 3304 | |
a93f15c0 JF |
3305 | fi |
3306 | fi | |
3307 | if test -z "$CC"; then | |
3308 | # Extract the first word of "cc", so it can be a program name with args. | |
3309 | set dummy cc; ac_word=$2 | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3311 | $as_echo_n "checking for $ac_word... " >&6; } | |
3312 | if ${ac_cv_prog_CC+:} false; then : | |
3313 | $as_echo_n "(cached) " >&6 | |
3314 | else | |
3315 | if test -n "$CC"; then | |
3316 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3317 | else | |
3318 | ac_prog_rejected=no | |
3319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3320 | for as_dir in $PATH | |
35fa52c0 | 3321 | do |
a93f15c0 JF |
3322 | IFS=$as_save_IFS |
3323 | test -z "$as_dir" && as_dir=. | |
3324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3326 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3327 | ac_prog_rejected=yes | |
3328 | continue | |
3329 | fi | |
3330 | ac_cv_prog_CC="cc" | |
3331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3332 | break 2 | |
3333 | fi | |
3334 | done | |
3335 | done | |
3336 | IFS=$as_save_IFS | |
3337 | ||
3338 | if test $ac_prog_rejected = yes; then | |
3339 | # We found a bogon in the path, so make sure we never use it. | |
3340 | set dummy $ac_cv_prog_CC | |
3341 | shift | |
3342 | if test $# != 0; then | |
3343 | # We chose a different compiler from the bogus one. | |
3344 | # However, it has the same basename, so the bogon will be chosen | |
3345 | # first if we set CC to just the basename; use the full file name. | |
3346 | shift | |
3347 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3348 | fi | |
3349 | fi | |
3350 | fi | |
3351 | fi | |
3352 | CC=$ac_cv_prog_CC | |
3353 | if test -n "$CC"; then | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3355 | $as_echo "$CC" >&6; } | |
3356 | else | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3358 | $as_echo "no" >&6; } | |
3359 | fi | |
3360 | ||
3361 | ||
3362 | fi | |
3363 | if test -z "$CC"; then | |
3364 | if test -n "$ac_tool_prefix"; then | |
3365 | for ac_prog in cl.exe | |
3366 | do | |
3367 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3368 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3370 | $as_echo_n "checking for $ac_word... " >&6; } | |
3371 | if ${ac_cv_prog_CC+:} false; then : | |
3372 | $as_echo_n "(cached) " >&6 | |
3373 | else | |
3374 | if test -n "$CC"; then | |
3375 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3376 | else | |
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3378 | for as_dir in $PATH | |
3379 | do | |
3380 | IFS=$as_save_IFS | |
3381 | test -z "$as_dir" && as_dir=. | |
3382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3384 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3386 | break 2 | |
3387 | fi | |
3388 | done | |
3389 | done | |
3390 | IFS=$as_save_IFS | |
3391 | ||
3392 | fi | |
3393 | fi | |
3394 | CC=$ac_cv_prog_CC | |
3395 | if test -n "$CC"; then | |
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3397 | $as_echo "$CC" >&6; } | |
3398 | else | |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3400 | $as_echo "no" >&6; } | |
3401 | fi | |
3402 | ||
3403 | ||
3404 | test -n "$CC" && break | |
3405 | done | |
3406 | fi | |
3407 | if test -z "$CC"; then | |
3408 | ac_ct_CC=$CC | |
3409 | for ac_prog in cl.exe | |
3410 | do | |
3411 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3412 | set dummy $ac_prog; ac_word=$2 | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3414 | $as_echo_n "checking for $ac_word... " >&6; } | |
3415 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3416 | $as_echo_n "(cached) " >&6 | |
3417 | else | |
3418 | if test -n "$ac_ct_CC"; then | |
3419 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3420 | else | |
3421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3422 | for as_dir in $PATH | |
3423 | do | |
3424 | IFS=$as_save_IFS | |
3425 | test -z "$as_dir" && as_dir=. | |
3426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3428 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3430 | break 2 | |
3431 | fi | |
3432 | done | |
3433 | done | |
3434 | IFS=$as_save_IFS | |
3435 | ||
3436 | fi | |
3437 | fi | |
3438 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3439 | if test -n "$ac_ct_CC"; then | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3441 | $as_echo "$ac_ct_CC" >&6; } | |
3442 | else | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3444 | $as_echo "no" >&6; } | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | test -n "$ac_ct_CC" && break | |
3449 | done | |
3450 | ||
3451 | if test "x$ac_ct_CC" = x; then | |
3452 | CC="" | |
3453 | else | |
3454 | case $cross_compiling:$ac_tool_warned in | |
3455 | yes:) | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3458 | ac_tool_warned=yes ;; | |
3459 | esac | |
3460 | CC=$ac_ct_CC | |
3461 | fi | |
3462 | fi | |
3463 | ||
3464 | fi | |
3465 | ||
3466 | ||
3467 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3468 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3469 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3470 | See \`config.log' for more details" "$LINENO" 5; } | |
3471 | ||
3472 | # Provide some information about the compiler. | |
3473 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3474 | set X $ac_compile | |
3475 | ac_compiler=$2 | |
3476 | for ac_option in --version -v -V -qversion; do | |
3477 | { { ac_try="$ac_compiler $ac_option >&5" | |
3478 | case "(($ac_try" in | |
3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3480 | *) ac_try_echo=$ac_try;; | |
3481 | esac | |
3482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3483 | $as_echo "$ac_try_echo"; } >&5 | |
3484 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3485 | ac_status=$? | |
3486 | if test -s conftest.err; then | |
3487 | sed '10a\ | |
3488 | ... rest of stderr output deleted ... | |
3489 | 10q' conftest.err >conftest.er1 | |
3490 | cat conftest.er1 >&5 | |
3491 | fi | |
3492 | rm -f conftest.er1 conftest.err | |
3493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3494 | test $ac_status = 0; } | |
3495 | done | |
3496 | ||
3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3498 | /* end confdefs.h. */ | |
3499 | ||
3500 | int | |
3501 | main () | |
3502 | { | |
3503 | ||
3504 | ; | |
3505 | return 0; | |
3506 | } | |
3507 | _ACEOF | |
3508 | ac_clean_files_save=$ac_clean_files | |
3509 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3510 | # Try to create an executable without -o first, disregard a.out. | |
3511 | # It will help us diagnose broken compilers, and finding out an intuition | |
3512 | # of exeext. | |
3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3514 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3515 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3516 | ||
3517 | # The possible output files: | |
3518 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3519 | ||
3520 | ac_rmfiles= | |
3521 | for ac_file in $ac_files | |
3522 | do | |
3523 | case $ac_file in | |
3524 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3525 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3526 | esac | |
3527 | done | |
35fa52c0 DWT |
3528 | rm -f $ac_rmfiles |
3529 | ||
3530 | if { { ac_try="$ac_link_default" | |
3531 | case "(($ac_try" in | |
3532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3533 | *) ac_try_echo=$ac_try;; | |
3534 | esac | |
3535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3536 | $as_echo "$ac_try_echo"; } >&5 | |
3537 | (eval "$ac_link_default") 2>&5 | |
3538 | ac_status=$? | |
3539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3540 | test $ac_status = 0; }; then : | |
3541 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3542 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3543 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3544 | # so that the user can short-circuit this test for compilers unknown to | |
3545 | # Autoconf. | |
3546 | for ac_file in $ac_files '' | |
3547 | do | |
3548 | test -f "$ac_file" || continue | |
3549 | case $ac_file in | |
3550 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3551 | ;; | |
3552 | [ab].out ) | |
3553 | # We found the default executable, but exeext='' is most | |
3554 | # certainly right. | |
3555 | break;; | |
3556 | *.* ) | |
3557 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3558 | then :; else | |
3559 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3560 | fi | |
3561 | # We set ac_cv_exeext here because the later test for it is not | |
3562 | # safe: cross compilers may not add the suffix if given an `-o' | |
3563 | # argument, so we may need to know it at that point already. | |
3564 | # Even if this section looks crufty: it has the advantage of | |
3565 | # actually working. | |
3566 | break;; | |
3567 | * ) | |
3568 | break;; | |
3569 | esac | |
3570 | done | |
3571 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3572 | ||
3573 | else | |
3574 | ac_file='' | |
3575 | fi | |
35fa52c0 | 3576 | if test -z "$ac_file"; then : |
9c60689e DWT |
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3578 | $as_echo "no" >&6; } | |
3579 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3580 | sed 's/^/| /' conftest.$ac_ext >&5 |
3581 | ||
3582 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3584 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3585 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3586 | else |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3588 | $as_echo "yes" >&6; } | |
35fa52c0 | 3589 | fi |
a93f15c0 JF |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3591 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3593 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3594 | ac_exeext=$ac_cv_exeext |
3595 | ||
9c60689e | 3596 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3597 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3599 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3600 | if { { ac_try="$ac_link" | |
3601 | case "(($ac_try" in | |
3602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3603 | *) ac_try_echo=$ac_try;; | |
3604 | esac | |
3605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3606 | $as_echo "$ac_try_echo"; } >&5 | |
3607 | (eval "$ac_link") 2>&5 | |
3608 | ac_status=$? | |
3609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3610 | test $ac_status = 0; }; then : | |
3611 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3612 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3613 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3614 | # `rm'. | |
3615 | for ac_file in conftest.exe conftest conftest.*; do | |
3616 | test -f "$ac_file" || continue | |
3617 | case $ac_file in | |
3618 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3619 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3620 | break;; | |
3621 | * ) break;; | |
3622 | esac | |
3623 | done | |
3624 | else | |
3625 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3627 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3628 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3629 | fi |
9c60689e | 3630 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3632 | $as_echo "$ac_cv_exeext" >&6; } | |
3633 | ||
3634 | rm -f conftest.$ac_ext | |
3635 | EXEEXT=$ac_cv_exeext | |
3636 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3638 | /* end confdefs.h. */ | |
3639 | #include <stdio.h> | |
3640 | int | |
3641 | main () | |
3642 | { | |
3643 | FILE *f = fopen ("conftest.out", "w"); | |
3644 | return ferror (f) || fclose (f) != 0; | |
3645 | ||
3646 | ; | |
3647 | return 0; | |
3648 | } | |
3649 | _ACEOF | |
3650 | ac_clean_files="$ac_clean_files conftest.out" | |
3651 | # Check that the compiler produces executables we can run. If not, either | |
3652 | # the compiler is broken, or we cross compile. | |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3654 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3655 | if test "$cross_compiling" != yes; then | |
3656 | { { ac_try="$ac_link" | |
3657 | case "(($ac_try" in | |
3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3659 | *) ac_try_echo=$ac_try;; | |
3660 | esac | |
3661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3662 | $as_echo "$ac_try_echo"; } >&5 | |
3663 | (eval "$ac_link") 2>&5 | |
3664 | ac_status=$? | |
3665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3666 | test $ac_status = 0; } | |
3667 | if { ac_try='./conftest$ac_cv_exeext' | |
3668 | { { case "(($ac_try" in | |
3669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3670 | *) ac_try_echo=$ac_try;; | |
3671 | esac | |
3672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3673 | $as_echo "$ac_try_echo"; } >&5 | |
3674 | (eval "$ac_try") 2>&5 | |
3675 | ac_status=$? | |
3676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3677 | test $ac_status = 0; }; }; then | |
3678 | cross_compiling=no | |
3679 | else | |
3680 | if test "$cross_compiling" = maybe; then | |
3681 | cross_compiling=yes | |
3682 | else | |
3683 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3684 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3685 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3686 | If you meant to cross compile, use \`--host'. |
ee134472 | 3687 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3688 | fi |
3689 | fi | |
3690 | fi | |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3692 | $as_echo "$cross_compiling" >&6; } | |
3693 | ||
3694 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3695 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3697 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3698 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3699 | $as_echo_n "(cached) " >&6 |
3700 | else | |
3701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3702 | /* end confdefs.h. */ | |
3703 | ||
3704 | int | |
3705 | main () | |
3706 | { | |
3707 | ||
3708 | ; | |
3709 | return 0; | |
3710 | } | |
3711 | _ACEOF | |
3712 | rm -f conftest.o conftest.obj | |
3713 | if { { ac_try="$ac_compile" | |
3714 | case "(($ac_try" in | |
3715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3716 | *) ac_try_echo=$ac_try;; | |
3717 | esac | |
3718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3719 | $as_echo "$ac_try_echo"; } >&5 | |
3720 | (eval "$ac_compile") 2>&5 | |
3721 | ac_status=$? | |
3722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3723 | test $ac_status = 0; }; then : | |
3724 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3725 | test -f "$ac_file" || continue; | |
3726 | case $ac_file in | |
3727 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3728 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3729 | break;; | |
3730 | esac | |
3731 | done | |
3732 | else | |
3733 | $as_echo "$as_me: failed program was:" >&5 | |
3734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3735 | ||
3736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3738 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3739 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3740 | fi |
3741 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3742 | fi | |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3744 | $as_echo "$ac_cv_objext" >&6; } | |
3745 | OBJEXT=$ac_cv_objext | |
3746 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3748 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3749 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3750 | $as_echo_n "(cached) " >&6 |
3751 | else | |
3752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3753 | /* end confdefs.h. */ | |
3754 | ||
3755 | int | |
3756 | main () | |
3757 | { | |
3758 | #ifndef __GNUC__ | |
3759 | choke me | |
3760 | #endif | |
3761 | ||
3762 | ; | |
3763 | return 0; | |
3764 | } | |
3765 | _ACEOF | |
a93f15c0 | 3766 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3767 | ac_compiler_gnu=yes |
3768 | else | |
3769 | ac_compiler_gnu=no | |
3770 | fi | |
3771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3772 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3773 | |
3774 | fi | |
a93f15c0 JF |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3776 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3777 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3778 | GCC=yes |
35fa52c0 | 3779 | else |
a93f15c0 | 3780 | GCC= |
35fa52c0 | 3781 | fi |
a93f15c0 JF |
3782 | ac_test_CFLAGS=${CFLAGS+set} |
3783 | ac_save_CFLAGS=$CFLAGS | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3785 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3786 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3787 | $as_echo_n "(cached) " >&6 |
3788 | else | |
a93f15c0 JF |
3789 | ac_save_c_werror_flag=$ac_c_werror_flag |
3790 | ac_c_werror_flag=yes | |
3791 | ac_cv_prog_cc_g=no | |
3792 | CFLAGS="-g" | |
35fa52c0 DWT |
3793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3794 | /* end confdefs.h. */ | |
3795 | ||
3796 | int | |
3797 | main () | |
3798 | { | |
3799 | ||
3800 | ; | |
3801 | return 0; | |
3802 | } | |
3803 | _ACEOF | |
a93f15c0 JF |
3804 | if ac_fn_c_try_compile "$LINENO"; then : |
3805 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3806 | else |
a93f15c0 | 3807 | CFLAGS="" |
35fa52c0 DWT |
3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3809 | /* end confdefs.h. */ | |
3810 | ||
3811 | int | |
3812 | main () | |
3813 | { | |
3814 | ||
3815 | ; | |
3816 | return 0; | |
3817 | } | |
3818 | _ACEOF | |
a93f15c0 | 3819 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3820 | |
3821 | else | |
a93f15c0 JF |
3822 | ac_c_werror_flag=$ac_save_c_werror_flag |
3823 | CFLAGS="-g" | |
35fa52c0 DWT |
3824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3825 | /* end confdefs.h. */ | |
3826 | ||
3827 | int | |
3828 | main () | |
3829 | { | |
3830 | ||
3831 | ; | |
3832 | return 0; | |
3833 | } | |
3834 | _ACEOF | |
a93f15c0 JF |
3835 | if ac_fn_c_try_compile "$LINENO"; then : |
3836 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3837 | fi |
3838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3839 | fi | |
3840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3841 | fi | |
3842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3843 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3844 | fi |
a93f15c0 JF |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3846 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3847 | if test "$ac_test_CFLAGS" = set; then | |
3848 | CFLAGS=$ac_save_CFLAGS | |
3849 | elif test $ac_cv_prog_cc_g = yes; then | |
3850 | if test "$GCC" = yes; then | |
3851 | CFLAGS="-g -O2" | |
35fa52c0 | 3852 | else |
a93f15c0 | 3853 | CFLAGS="-g" |
35fa52c0 DWT |
3854 | fi |
3855 | else | |
a93f15c0 JF |
3856 | if test "$GCC" = yes; then |
3857 | CFLAGS="-O2" | |
35fa52c0 | 3858 | else |
a93f15c0 | 3859 | CFLAGS= |
35fa52c0 DWT |
3860 | fi |
3861 | fi | |
a93f15c0 JF |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3863 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3864 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3865 | $as_echo_n "(cached) " >&6 | |
3866 | else | |
3867 | ac_cv_prog_cc_c89=no | |
3868 | ac_save_CC=$CC | |
3869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3870 | /* end confdefs.h. */ | |
3871 | #include <stdarg.h> | |
3872 | #include <stdio.h> | |
3873 | struct stat; | |
3874 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3875 | struct buf { int x; }; | |
3876 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3877 | static char *e (p, i) | |
3878 | char **p; | |
3879 | int i; | |
3880 | { | |
3881 | return p[i]; | |
3882 | } | |
3883 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3884 | { | |
3885 | char *s; | |
3886 | va_list v; | |
3887 | va_start (v,p); | |
3888 | s = g (p, va_arg (v,int)); | |
3889 | va_end (v); | |
3890 | return s; | |
3891 | } | |
3892 | ||
3893 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3894 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3895 | These don't provoke an error unfortunately, instead are silently treated | |
3896 | as 'x'. The following induces an error, until -std is added to get | |
3897 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3898 | array size at least. It's necessary to write '\x00'==0 to get something | |
3899 | that's true only with -std. */ | |
3900 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3901 | ||
3902 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3903 | inside strings and character constants. */ | |
3904 | #define FOO(x) 'x' | |
3905 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3906 | ||
3907 | int test (int i, double x); | |
3908 | struct s1 {int (*f) (int a);}; | |
3909 | struct s2 {int (*f) (double a);}; | |
3910 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3911 | int argc; | |
3912 | char **argv; | |
3913 | int | |
3914 | main () | |
3915 | { | |
3916 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3917 | ; | |
3918 | return 0; | |
3919 | } | |
3920 | _ACEOF | |
3921 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3922 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3923 | do | |
3924 | CC="$ac_save_CC $ac_arg" | |
3925 | if ac_fn_c_try_compile "$LINENO"; then : | |
3926 | ac_cv_prog_cc_c89=$ac_arg | |
3927 | fi | |
3928 | rm -f core conftest.err conftest.$ac_objext | |
3929 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3930 | done | |
3931 | rm -f conftest.$ac_ext | |
3932 | CC=$ac_save_CC | |
3933 | ||
3934 | fi | |
3935 | # AC_CACHE_VAL | |
3936 | case "x$ac_cv_prog_cc_c89" in | |
3937 | x) | |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3939 | $as_echo "none needed" >&6; } ;; | |
3940 | xno) | |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3942 | $as_echo "unsupported" >&6; } ;; | |
3943 | *) | |
3944 | CC="$CC $ac_cv_prog_cc_c89" | |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3946 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3947 | esac | |
3948 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3949 | ||
3950 | fi | |
3951 | ||
3952 | ac_ext=c | |
3953 | ac_cpp='$CPP $CPPFLAGS' | |
3954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3957 | ||
3958 | ac_ext=c | |
3959 | ac_cpp='$CPP $CPPFLAGS' | |
3960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3964 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3965 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3966 | $as_echo_n "(cached) " >&6 | |
3967 | else | |
3968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3969 | /* end confdefs.h. */ | |
3970 | ||
3971 | int | |
3972 | main () | |
3973 | { | |
3974 | ||
3975 | ; | |
3976 | return 0; | |
3977 | } | |
3978 | _ACEOF | |
3979 | # Make sure it works both with $CC and with simple cc. | |
3980 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3981 | # compilers refuse to overwrite an existing .o file with -o, | |
3982 | # though they will create one. | |
3983 | am_cv_prog_cc_c_o=yes | |
3984 | for am_i in 1 2; do | |
3985 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3986 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3987 | ac_status=$? | |
3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3989 | (exit $ac_status); } \ | |
3990 | && test -f conftest2.$ac_objext; then | |
3991 | : OK | |
3992 | else | |
3993 | am_cv_prog_cc_c_o=no | |
3994 | break | |
3995 | fi | |
3996 | done | |
3997 | rm -f core conftest* | |
3998 | unset am_i | |
3999 | fi | |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4001 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4002 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4003 | # Losing compiler, so override with the script. | |
4004 | # FIXME: It is wrong to rewrite CC. | |
4005 | # But if we don't then we get into trouble of one sort or another. | |
4006 | # A longer-term fix would be to have automake use am__CC in this case, | |
4007 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4008 | CC="$am_aux_dir/compile $CC" | |
4009 | fi | |
a243b558 JF |
4010 | ac_ext=c |
4011 | ac_cpp='$CPP $CPPFLAGS' | |
4012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4015 | |
a243b558 | 4016 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4017 | |
a243b558 | 4018 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4019 | |
35fa52c0 | 4020 | |
a243b558 JF |
4021 | am_make=${MAKE-make} |
4022 | cat > confinc << 'END' | |
4023 | am__doit: | |
4024 | @echo this is the am__doit target | |
4025 | .PHONY: am__doit | |
4026 | END | |
4027 | # If we don't find an include directive, just comment out the code. | |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4029 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4030 | am__include="#" | |
4031 | am__quote= | |
4032 | _am_result=none | |
4033 | # First try GNU make style include. | |
4034 | echo "include confinc" > confmf | |
4035 | # Ignore all kinds of additional output from 'make'. | |
4036 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4037 | *the\ am__doit\ target*) | |
4038 | am__include=include | |
4039 | am__quote= | |
4040 | _am_result=GNU | |
4041 | ;; | |
4042 | esac | |
4043 | # Now try BSD make style include. | |
4044 | if test "$am__include" = "#"; then | |
4045 | echo '.include "confinc"' > confmf | |
4046 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4047 | *the\ am__doit\ target*) | |
4048 | am__include=.include | |
4049 | am__quote="\"" | |
4050 | _am_result=BSD | |
4051 | ;; | |
4052 | esac | |
35fa52c0 | 4053 | fi |
35fa52c0 | 4054 | |
a243b558 JF |
4055 | |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4057 | $as_echo "$_am_result" >&6; } | |
4058 | rm -f confinc confmf | |
4059 | ||
4060 | # Check whether --enable-dependency-tracking was given. | |
4061 | if test "${enable_dependency_tracking+set}" = set; then : | |
4062 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4063 | fi |
35fa52c0 | 4064 | |
a243b558 JF |
4065 | if test "x$enable_dependency_tracking" != xno; then |
4066 | am_depcomp="$ac_aux_dir/depcomp" | |
4067 | AMDEPBACKSLASH='\' | |
4068 | am__nodep='_no' | |
4069 | fi | |
4070 | if test "x$enable_dependency_tracking" != xno; then | |
4071 | AMDEP_TRUE= | |
4072 | AMDEP_FALSE='#' | |
4073 | else | |
4074 | AMDEP_TRUE='#' | |
4075 | AMDEP_FALSE= | |
35fa52c0 DWT |
4076 | fi |
4077 | ||
35fa52c0 | 4078 | |
a243b558 | 4079 | |
a93f15c0 | 4080 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4081 | |
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4083 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4084 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4085 | $as_echo_n "(cached) " >&6 |
4086 | else | |
4087 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4088 | # We make a subdir and do the tests there. Otherwise we can end up | |
4089 | # making bogus files that we don't know about and never remove. For | |
4090 | # instance it was reported that on HP-UX the gcc test will end up | |
4091 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4092 | # in D". | |
4093 | rm -rf conftest.dir | |
4094 | mkdir conftest.dir | |
4095 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4096 | # using a relative directory. | |
4097 | cp "$am_depcomp" conftest.dir | |
4098 | cd conftest.dir | |
4099 | # We will build objects and dependencies in a subdirectory because | |
4100 | # it helps to detect inapplicable dependency modes. For instance | |
4101 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4102 | # side effect of compilation, but ICC will put the dependencies in | |
4103 | # the current directory while Tru64 will put them in the object | |
4104 | # directory. | |
4105 | mkdir sub | |
4106 | ||
a93f15c0 | 4107 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4108 | if test "$am_compiler_list" = ""; then |
4109 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4110 | fi | |
4111 | am__universal=false | |
4112 | case " $depcc " in #( | |
4113 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4114 | esac | |
4115 | ||
4116 | for depmode in $am_compiler_list; do | |
4117 | # Setup a source with many dependencies, because some compilers | |
4118 | # like to wrap large dependency lists on column 80 (with \), and | |
4119 | # we should not choose a depcomp mode which is confused by this. | |
4120 | # | |
4121 | # We need to recreate these files for each test, as the compiler may | |
4122 | # overwrite some of them when testing with obscure command lines. | |
4123 | # This happens at least with the AIX C compiler. | |
4124 | : > sub/conftest.c | |
4125 | for i in 1 2 3 4 5 6; do | |
4126 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4127 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4128 | # Solaris 10 /bin/sh. | |
4129 | echo '/* dummy */' > sub/conftst$i.h | |
4130 | done | |
4131 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4132 | ||
4133 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4134 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4135 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4136 | # versions had trouble with output in subdirs. | |
4137 | am__obj=sub/conftest.${OBJEXT-o} | |
4138 | am__minus_obj="-o $am__obj" | |
4139 | case $depmode in | |
4140 | gcc) | |
4141 | # This depmode causes a compiler race in universal mode. | |
4142 | test "$am__universal" = false || continue | |
4143 | ;; | |
4144 | nosideeffect) | |
4145 | # After this tag, mechanisms are not by side-effect, so they'll | |
4146 | # only be used when explicitly requested. | |
4147 | if test "x$enable_dependency_tracking" = xyes; then | |
4148 | continue | |
4149 | else | |
4150 | break | |
4151 | fi | |
4152 | ;; | |
4153 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4154 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4155 | # not run yet. These depmodes are late enough in the game, and | |
4156 | # so weak that their functioning should not be impacted. | |
4157 | am__obj=conftest.${OBJEXT-o} | |
4158 | am__minus_obj= | |
4159 | ;; | |
4160 | none) break ;; | |
4161 | esac | |
4162 | if depmode=$depmode \ | |
4163 | source=sub/conftest.c object=$am__obj \ | |
4164 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4165 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4166 | >/dev/null 2>conftest.err && | |
4167 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4168 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4169 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4170 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4171 | # icc doesn't choke on unknown options, it will just issue warnings | |
4172 | # or remarks (even with -Werror). So we grep stderr for any message | |
4173 | # that says an option was ignored or not supported. | |
4174 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4175 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4176 | # The diagnosis changed in icc 8.0: | |
4177 | # icc: Command line remark: option '-MP' not supported | |
4178 | if (grep 'ignoring option' conftest.err || | |
4179 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4180 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4181 | break |
4182 | fi | |
4183 | fi | |
4184 | done | |
4185 | ||
4186 | cd .. | |
4187 | rm -rf conftest.dir | |
4188 | else | |
a93f15c0 | 4189 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4190 | fi |
4191 | ||
4192 | fi | |
a93f15c0 JF |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4194 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4195 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4196 | |
4197 | if | |
4198 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4199 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4200 | am__fastdepCC_TRUE= | |
4201 | am__fastdepCC_FALSE='#' | |
66170b30 | 4202 | else |
a93f15c0 JF |
4203 | am__fastdepCC_TRUE='#' |
4204 | am__fastdepCC_FALSE= | |
66170b30 JF |
4205 | fi |
4206 | ||
4207 | ||
a93f15c0 JF |
4208 | ac_ext=cpp |
4209 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4213 | if test -z "$CXX"; then | |
4214 | if test -n "$CCC"; then | |
4215 | CXX=$CCC | |
4216 | else | |
4217 | if test -n "$ac_tool_prefix"; then | |
4218 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4219 | do |
4220 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4221 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4223 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4224 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4225 | $as_echo_n "(cached) " >&6 |
4226 | else | |
a93f15c0 JF |
4227 | if test -n "$CXX"; then |
4228 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4229 | else |
4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4231 | for as_dir in $PATH | |
4232 | do | |
35fa52c0 DWT |
4233 | IFS=$as_save_IFS |
4234 | test -z "$as_dir" && as_dir=. | |
4235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4237 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4239 | break 2 | |
4240 | fi | |
4241 | done | |
9c60689e DWT |
4242 | done |
4243 | IFS=$as_save_IFS | |
35fa52c0 | 4244 | |
9c60689e | 4245 | fi |
a243b558 | 4246 | fi |
a93f15c0 JF |
4247 | CXX=$ac_cv_prog_CXX |
4248 | if test -n "$CXX"; then | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4250 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4251 | else |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4253 | $as_echo "no" >&6; } | |
4254 | fi | |
35fa52c0 | 4255 | |
35fa52c0 | 4256 | |
a93f15c0 | 4257 | test -n "$CXX" && break |
a243b558 JF |
4258 | done |
4259 | fi | |
a93f15c0 JF |
4260 | if test -z "$CXX"; then |
4261 | ac_ct_CXX=$CXX | |
4262 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4263 | do |
4264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4265 | set dummy $ac_prog; ac_word=$2 | |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4267 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4268 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4269 | $as_echo_n "(cached) " >&6 |
4270 | else | |
a93f15c0 JF |
4271 | if test -n "$ac_ct_CXX"; then |
4272 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4273 | else |
4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4275 | for as_dir in $PATH | |
9c60689e DWT |
4276 | do |
4277 | IFS=$as_save_IFS | |
4278 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4281 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4283 | break 2 | |
4284 | fi | |
4285 | done | |
9c60689e DWT |
4286 | done |
4287 | IFS=$as_save_IFS | |
a243b558 JF |
4288 | |
4289 | fi | |
4290 | fi | |
a93f15c0 JF |
4291 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4292 | if test -n "$ac_ct_CXX"; then | |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4294 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4295 | else |
a243b558 JF |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4297 | $as_echo "no" >&6; } | |
9c60689e | 4298 | fi |
6b66678a DWT |
4299 | |
4300 | ||
a93f15c0 | 4301 | test -n "$ac_ct_CXX" && break |
a243b558 | 4302 | done |
6b66678a | 4303 | |
a93f15c0 JF |
4304 | if test "x$ac_ct_CXX" = x; then |
4305 | CXX="g++" | |
a243b558 JF |
4306 | else |
4307 | case $cross_compiling:$ac_tool_warned in | |
4308 | yes:) | |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4311 | ac_tool_warned=yes ;; | |
9c60689e | 4312 | esac |
a93f15c0 | 4313 | CXX=$ac_ct_CXX |
9c60689e | 4314 | fi |
9c60689e | 4315 | fi |
6b66678a | 4316 | |
a93f15c0 JF |
4317 | fi |
4318 | fi | |
a243b558 | 4319 | # Provide some information about the compiler. |
a93f15c0 | 4320 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4321 | set X $ac_compile |
4322 | ac_compiler=$2 | |
4323 | for ac_option in --version -v -V -qversion; do | |
4324 | { { ac_try="$ac_compiler $ac_option >&5" | |
4325 | case "(($ac_try" in | |
4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4327 | *) ac_try_echo=$ac_try;; | |
4328 | esac | |
4329 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4330 | $as_echo "$ac_try_echo"; } >&5 | |
4331 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4332 | ac_status=$? | |
4333 | if test -s conftest.err; then | |
4334 | sed '10a\ | |
4335 | ... rest of stderr output deleted ... | |
4336 | 10q' conftest.err >conftest.er1 | |
4337 | cat conftest.er1 >&5 | |
4338 | fi | |
4339 | rm -f conftest.er1 conftest.err | |
4340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4341 | test $ac_status = 0; } | |
4342 | done | |
6b66678a | 4343 | |
a93f15c0 JF |
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4345 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4346 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4347 | $as_echo_n "(cached) " >&6 |
6b66678a | 4348 | else |
a243b558 JF |
4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4350 | /* end confdefs.h. */ | |
6b66678a | 4351 | |
a243b558 JF |
4352 | int |
4353 | main () | |
4354 | { | |
4355 | #ifndef __GNUC__ | |
4356 | choke me | |
4357 | #endif | |
4358 | ||
4359 | ; | |
4360 | return 0; | |
4361 | } | |
4362 | _ACEOF | |
a93f15c0 | 4363 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4364 | ac_compiler_gnu=yes |
9c60689e | 4365 | else |
a243b558 | 4366 | ac_compiler_gnu=no |
6b66678a | 4367 | fi |
a243b558 | 4368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4369 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4370 | |
4371 | fi | |
a93f15c0 JF |
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4373 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4374 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4375 | GXX=yes |
a243b558 | 4376 | else |
a93f15c0 | 4377 | GXX= |
a243b558 | 4378 | fi |
a93f15c0 JF |
4379 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4380 | ac_save_CXXFLAGS=$CXXFLAGS | |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4382 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4383 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4384 | $as_echo_n "(cached) " >&6 |
4385 | else | |
a93f15c0 JF |
4386 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4387 | ac_cxx_werror_flag=yes | |
4388 | ac_cv_prog_cxx_g=no | |
4389 | CXXFLAGS="-g" | |
a243b558 JF |
4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4391 | /* end confdefs.h. */ | |
309b0535 | 4392 | |
a243b558 JF |
4393 | int |
4394 | main () | |
4395 | { | |
309b0535 | 4396 | |
a243b558 JF |
4397 | ; |
4398 | return 0; | |
4399 | } | |
4400 | _ACEOF | |
a93f15c0 JF |
4401 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4402 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4403 | else |
a93f15c0 | 4404 | CXXFLAGS="" |
a243b558 JF |
4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4406 | /* end confdefs.h. */ | |
309b0535 | 4407 | |
a243b558 JF |
4408 | int |
4409 | main () | |
4410 | { | |
309b0535 | 4411 | |
a243b558 JF |
4412 | ; |
4413 | return 0; | |
4414 | } | |
4415 | _ACEOF | |
a93f15c0 | 4416 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4417 | |
a243b558 | 4418 | else |
a93f15c0 JF |
4419 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4420 | CXXFLAGS="-g" | |
a243b558 JF |
4421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4422 | /* end confdefs.h. */ | |
309b0535 | 4423 | |
a243b558 JF |
4424 | int |
4425 | main () | |
4426 | { | |
309b0535 | 4427 | |
a243b558 JF |
4428 | ; |
4429 | return 0; | |
4430 | } | |
4431 | _ACEOF | |
a93f15c0 JF |
4432 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4433 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4434 | fi |
a243b558 | 4435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4436 | fi |
a243b558 | 4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4438 | fi |
a243b558 | 4439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4440 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4441 | fi |
a93f15c0 JF |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4443 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4444 | if test "$ac_test_CXXFLAGS" = set; then | |
4445 | CXXFLAGS=$ac_save_CXXFLAGS | |
4446 | elif test $ac_cv_prog_cxx_g = yes; then | |
4447 | if test "$GXX" = yes; then | |
4448 | CXXFLAGS="-g -O2" | |
a243b558 | 4449 | else |
a93f15c0 | 4450 | CXXFLAGS="-g" |
a243b558 | 4451 | fi |
9c60689e | 4452 | else |
a93f15c0 JF |
4453 | if test "$GXX" = yes; then |
4454 | CXXFLAGS="-O2" | |
a243b558 | 4455 | else |
a93f15c0 | 4456 | CXXFLAGS= |
a243b558 | 4457 | fi |
9c60689e | 4458 | fi |
a243b558 JF |
4459 | ac_ext=c |
4460 | ac_cpp='$CPP $CPPFLAGS' | |
4461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4464 | |
a93f15c0 | 4465 | depcc="$CXX" am_compiler_list= |
309b0535 | 4466 | |
a243b558 JF |
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4468 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4469 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4470 | $as_echo_n "(cached) " >&6 |
4471 | else | |
4472 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4473 | # We make a subdir and do the tests there. Otherwise we can end up | |
4474 | # making bogus files that we don't know about and never remove. For | |
4475 | # instance it was reported that on HP-UX the gcc test will end up | |
4476 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4477 | # in D". | |
4478 | rm -rf conftest.dir | |
4479 | mkdir conftest.dir | |
4480 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4481 | # using a relative directory. | |
4482 | cp "$am_depcomp" conftest.dir | |
4483 | cd conftest.dir | |
4484 | # We will build objects and dependencies in a subdirectory because | |
4485 | # it helps to detect inapplicable dependency modes. For instance | |
4486 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4487 | # side effect of compilation, but ICC will put the dependencies in | |
4488 | # the current directory while Tru64 will put them in the object | |
4489 | # directory. | |
4490 | mkdir sub | |
309b0535 | 4491 | |
a93f15c0 | 4492 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4493 | if test "$am_compiler_list" = ""; then |
4494 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4495 | fi | |
4496 | am__universal=false | |
a93f15c0 JF |
4497 | case " $depcc " in #( |
4498 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4499 | esac | |
9c60689e | 4500 | |
a243b558 JF |
4501 | for depmode in $am_compiler_list; do |
4502 | # Setup a source with many dependencies, because some compilers | |
4503 | # like to wrap large dependency lists on column 80 (with \), and | |
4504 | # we should not choose a depcomp mode which is confused by this. | |
4505 | # | |
4506 | # We need to recreate these files for each test, as the compiler may | |
4507 | # overwrite some of them when testing with obscure command lines. | |
4508 | # This happens at least with the AIX C compiler. | |
4509 | : > sub/conftest.c | |
4510 | for i in 1 2 3 4 5 6; do | |
4511 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4512 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4513 | # Solaris 10 /bin/sh. | |
4514 | echo '/* dummy */' > sub/conftst$i.h | |
4515 | done | |
4516 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4517 | |
a243b558 JF |
4518 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4519 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4520 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4521 | # versions had trouble with output in subdirs. | |
4522 | am__obj=sub/conftest.${OBJEXT-o} | |
4523 | am__minus_obj="-o $am__obj" | |
4524 | case $depmode in | |
4525 | gcc) | |
4526 | # This depmode causes a compiler race in universal mode. | |
4527 | test "$am__universal" = false || continue | |
4528 | ;; | |
4529 | nosideeffect) | |
4530 | # After this tag, mechanisms are not by side-effect, so they'll | |
4531 | # only be used when explicitly requested. | |
4532 | if test "x$enable_dependency_tracking" = xyes; then | |
4533 | continue | |
4534 | else | |
4535 | break | |
309b0535 | 4536 | fi |
a243b558 JF |
4537 | ;; |
4538 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4539 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4540 | # not run yet. These depmodes are late enough in the game, and | |
4541 | # so weak that their functioning should not be impacted. | |
4542 | am__obj=conftest.${OBJEXT-o} | |
4543 | am__minus_obj= | |
4544 | ;; | |
4545 | none) break ;; | |
4546 | esac | |
4547 | if depmode=$depmode \ | |
4548 | source=sub/conftest.c object=$am__obj \ | |
4549 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4550 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4551 | >/dev/null 2>conftest.err && | |
4552 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4553 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4554 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4555 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4556 | # icc doesn't choke on unknown options, it will just issue warnings | |
4557 | # or remarks (even with -Werror). So we grep stderr for any message | |
4558 | # that says an option was ignored or not supported. | |
4559 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4560 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4561 | # The diagnosis changed in icc 8.0: | |
4562 | # icc: Command line remark: option '-MP' not supported | |
4563 | if (grep 'ignoring option' conftest.err || | |
4564 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4565 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4566 | break |
4567 | fi | |
4568 | fi | |
309b0535 | 4569 | done |
a243b558 JF |
4570 | |
4571 | cd .. | |
4572 | rm -rf conftest.dir | |
4573 | else | |
a93f15c0 | 4574 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4575 | fi |
a243b558 | 4576 | |
9c60689e | 4577 | fi |
a93f15c0 JF |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4579 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4580 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4581 | |
4582 | if | |
4583 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4584 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4585 | am__fastdepCXX_TRUE= | |
4586 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4587 | else |
a93f15c0 JF |
4588 | am__fastdepCXX_TRUE='#' |
4589 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4590 | fi |
4591 | ||
4592 | ||
a93f15c0 JF |
4593 | ac_ext=mm |
4594 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4595 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4596 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4597 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4598 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4599 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4600 | do |
4601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4604 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4605 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4606 | $as_echo_n "(cached) " >&6 |
4607 | else | |
a93f15c0 JF |
4608 | if test -n "$OBJCXX"; then |
4609 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4610 | else |
4611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4612 | for as_dir in $PATH | |
4613 | do | |
4614 | IFS=$as_save_IFS | |
4615 | test -z "$as_dir" && as_dir=. | |
4616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4617 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4618 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4620 | break 2 | |
9c60689e | 4621 | fi |
a243b558 JF |
4622 | done |
4623 | done | |
4624 | IFS=$as_save_IFS | |
9c60689e | 4625 | |
a243b558 JF |
4626 | fi |
4627 | fi | |
a93f15c0 JF |
4628 | OBJCXX=$ac_cv_prog_OBJCXX |
4629 | if test -n "$OBJCXX"; then | |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4631 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4632 | else |
a243b558 JF |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4634 | $as_echo "no" >&6; } | |
35fa52c0 | 4635 | fi |
9c60689e | 4636 | |
a243b558 | 4637 | |
a93f15c0 | 4638 | test -n "$OBJCXX" && break |
a243b558 JF |
4639 | done |
4640 | fi | |
a93f15c0 JF |
4641 | if test -z "$OBJCXX"; then |
4642 | ac_ct_OBJCXX=$OBJCXX | |
4643 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4644 | do |
4645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4646 | set dummy $ac_prog; ac_word=$2 | |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4648 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4649 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4650 | $as_echo_n "(cached) " >&6 |
4651 | else | |
a93f15c0 JF |
4652 | if test -n "$ac_ct_OBJCXX"; then |
4653 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4654 | else |
4655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4656 | for as_dir in $PATH | |
4657 | do | |
4658 | IFS=$as_save_IFS | |
4659 | test -z "$as_dir" && as_dir=. | |
4660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4662 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4664 | break 2 | |
4665 | fi | |
4666 | done | |
4667 | done | |
4668 | IFS=$as_save_IFS | |
9c60689e | 4669 | |
a243b558 JF |
4670 | fi |
4671 | fi | |
a93f15c0 JF |
4672 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4673 | if test -n "$ac_ct_OBJCXX"; then | |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4675 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4676 | else |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4678 | $as_echo "no" >&6; } | |
4679 | fi | |
35fa52c0 | 4680 | |
35fa52c0 | 4681 | |
a93f15c0 | 4682 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4683 | done |
35fa52c0 | 4684 | |
a93f15c0 JF |
4685 | if test "x$ac_ct_OBJCXX" = x; then |
4686 | OBJCXX="g++" | |
a243b558 JF |
4687 | else |
4688 | case $cross_compiling:$ac_tool_warned in | |
4689 | yes:) | |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4692 | ac_tool_warned=yes ;; | |
4693 | esac | |
a93f15c0 | 4694 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4695 | fi |
4696 | fi | |
ee134472 | 4697 | |
a243b558 | 4698 | # Provide some information about the compiler. |
a93f15c0 | 4699 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4700 | set X $ac_compile |
4701 | ac_compiler=$2 | |
4702 | for ac_option in --version -v -V -qversion; do | |
4703 | { { ac_try="$ac_compiler $ac_option >&5" | |
4704 | case "(($ac_try" in | |
4705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4706 | *) ac_try_echo=$ac_try;; | |
4707 | esac | |
4708 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4709 | $as_echo "$ac_try_echo"; } >&5 | |
4710 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4711 | ac_status=$? | |
4712 | if test -s conftest.err; then | |
4713 | sed '10a\ | |
4714 | ... rest of stderr output deleted ... | |
4715 | 10q' conftest.err >conftest.er1 | |
4716 | cat conftest.er1 >&5 | |
4717 | fi | |
4718 | rm -f conftest.er1 conftest.err | |
4719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4720 | test $ac_status = 0; } | |
4721 | done | |
53ba6704 | 4722 | |
a93f15c0 JF |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4724 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4725 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4726 | $as_echo_n "(cached) " >&6 |
4727 | else | |
4728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4729 | /* end confdefs.h. */ | |
35fa52c0 | 4730 | |
a243b558 JF |
4731 | int |
4732 | main () | |
4733 | { | |
4734 | #ifndef __GNUC__ | |
4735 | choke me | |
4736 | #endif | |
9c60689e | 4737 | |
a243b558 JF |
4738 | ; |
4739 | return 0; | |
4740 | } | |
4741 | _ACEOF | |
a93f15c0 | 4742 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4743 | ac_compiler_gnu=yes |
35fa52c0 | 4744 | else |
a243b558 | 4745 | ac_compiler_gnu=no |
35fa52c0 | 4746 | fi |
a243b558 | 4747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4748 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4749 | |
a243b558 | 4750 | fi |
a93f15c0 JF |
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4752 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4753 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4754 | GOBJCXX=yes |
35fa52c0 | 4755 | else |
a93f15c0 | 4756 | GOBJCXX= |
9c60689e | 4757 | fi |
a93f15c0 JF |
4758 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4759 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4761 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4762 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4763 | $as_echo_n "(cached) " >&6 |
4764 | else | |
a93f15c0 JF |
4765 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4766 | ac_objcxx_werror_flag=yes | |
4767 | ac_cv_prog_objcxx_g=no | |
4768 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4770 | /* end confdefs.h. */ | |
9c60689e | 4771 | |
a243b558 JF |
4772 | int |
4773 | main () | |
4774 | { | |
9c60689e | 4775 | |
a243b558 JF |
4776 | ; |
4777 | return 0; | |
4778 | } | |
4779 | _ACEOF | |
a93f15c0 JF |
4780 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4781 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4782 | else |
a93f15c0 | 4783 | OBJCXXFLAGS="" |
a243b558 JF |
4784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4785 | /* end confdefs.h. */ | |
9c60689e | 4786 | |
a243b558 JF |
4787 | int |
4788 | main () | |
4789 | { | |
9c60689e | 4790 | |
a243b558 JF |
4791 | ; |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
a93f15c0 | 4795 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4796 | |
a243b558 | 4797 | else |
a93f15c0 JF |
4798 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4799 | OBJCXXFLAGS="-g" | |
a243b558 | 4800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4801 | /* end confdefs.h. */ |
4802 | ||
a243b558 JF |
4803 | int |
4804 | main () | |
4805 | { | |
a93f15c0 | 4806 | |
a243b558 JF |
4807 | ; |
4808 | return 0; | |
4809 | } | |
4810 | _ACEOF | |
a93f15c0 JF |
4811 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4812 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4813 | fi |
a93f15c0 | 4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4815 | fi |
a93f15c0 JF |
4816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4817 | fi | |
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4819 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4820 | fi | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4822 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4823 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4824 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4825 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4826 | if test "$GOBJCXX" = yes; then | |
4827 | OBJCXXFLAGS="-g -O2" | |
4828 | else | |
4829 | OBJCXXFLAGS="-g" | |
4830 | fi | |
4831 | else | |
4832 | if test "$GOBJCXX" = yes; then | |
4833 | OBJCXXFLAGS="-O2" | |
4834 | else | |
4835 | OBJCXXFLAGS= | |
4836 | fi | |
35fa52c0 | 4837 | fi |
a243b558 JF |
4838 | ac_ext=c |
4839 | ac_cpp='$CPP $CPPFLAGS' | |
4840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4843 | ||
a93f15c0 | 4844 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4845 | |
a243b558 JF |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4847 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4848 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4849 | $as_echo_n "(cached) " >&6 |
4850 | else | |
a243b558 JF |
4851 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4852 | # We make a subdir and do the tests there. Otherwise we can end up | |
4853 | # making bogus files that we don't know about and never remove. For | |
4854 | # instance it was reported that on HP-UX the gcc test will end up | |
4855 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4856 | # in D". | |
4857 | rm -rf conftest.dir | |
4858 | mkdir conftest.dir | |
4859 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4860 | # using a relative directory. | |
4861 | cp "$am_depcomp" conftest.dir | |
4862 | cd conftest.dir | |
4863 | # We will build objects and dependencies in a subdirectory because | |
4864 | # it helps to detect inapplicable dependency modes. For instance | |
4865 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4866 | # side effect of compilation, but ICC will put the dependencies in | |
4867 | # the current directory while Tru64 will put them in the object | |
4868 | # directory. | |
4869 | mkdir sub | |
4870 | ||
a93f15c0 | 4871 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4872 | if test "$am_compiler_list" = ""; then |
4873 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4874 | fi | |
4875 | am__universal=false | |
a93f15c0 | 4876 | |
a243b558 JF |
4877 | |
4878 | for depmode in $am_compiler_list; do | |
4879 | # Setup a source with many dependencies, because some compilers | |
4880 | # like to wrap large dependency lists on column 80 (with \), and | |
4881 | # we should not choose a depcomp mode which is confused by this. | |
4882 | # | |
4883 | # We need to recreate these files for each test, as the compiler may | |
4884 | # overwrite some of them when testing with obscure command lines. | |
4885 | # This happens at least with the AIX C compiler. | |
4886 | : > sub/conftest.c | |
4887 | for i in 1 2 3 4 5 6; do | |
4888 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4889 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4890 | # Solaris 10 /bin/sh. | |
4891 | echo '/* dummy */' > sub/conftst$i.h | |
4892 | done | |
4893 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4894 | ||
4895 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4896 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4897 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4898 | # versions had trouble with output in subdirs. | |
4899 | am__obj=sub/conftest.${OBJEXT-o} | |
4900 | am__minus_obj="-o $am__obj" | |
4901 | case $depmode in | |
4902 | gcc) | |
4903 | # This depmode causes a compiler race in universal mode. | |
4904 | test "$am__universal" = false || continue | |
4905 | ;; | |
4906 | nosideeffect) | |
4907 | # After this tag, mechanisms are not by side-effect, so they'll | |
4908 | # only be used when explicitly requested. | |
4909 | if test "x$enable_dependency_tracking" = xyes; then | |
4910 | continue | |
4911 | else | |
4912 | break | |
4913 | fi | |
4914 | ;; | |
4915 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4916 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4917 | # not run yet. These depmodes are late enough in the game, and | |
4918 | # so weak that their functioning should not be impacted. | |
4919 | am__obj=conftest.${OBJEXT-o} | |
4920 | am__minus_obj= | |
4921 | ;; | |
4922 | none) break ;; | |
4923 | esac | |
4924 | if depmode=$depmode \ | |
4925 | source=sub/conftest.c object=$am__obj \ | |
4926 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4927 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4928 | >/dev/null 2>conftest.err && | |
4929 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4930 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4931 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4932 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4933 | # icc doesn't choke on unknown options, it will just issue warnings | |
4934 | # or remarks (even with -Werror). So we grep stderr for any message | |
4935 | # that says an option was ignored or not supported. | |
4936 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4937 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4938 | # The diagnosis changed in icc 8.0: | |
4939 | # icc: Command line remark: option '-MP' not supported | |
4940 | if (grep 'ignoring option' conftest.err || | |
4941 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4942 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4943 | break |
4944 | fi | |
4945 | fi | |
4946 | done | |
9c60689e | 4947 | |
a243b558 JF |
4948 | cd .. |
4949 | rm -rf conftest.dir | |
4950 | else | |
a93f15c0 | 4951 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 4952 | fi |
a243b558 | 4953 | |
35fa52c0 | 4954 | fi |
a93f15c0 JF |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4956 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4957 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
4958 | |
4959 | if | |
4960 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4961 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
4962 | am__fastdepOBJCXX_TRUE= | |
4963 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 4964 | else |
a93f15c0 JF |
4965 | am__fastdepOBJCXX_TRUE='#' |
4966 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
4967 | fi |
4968 | ||
4969 | ||
4970 | ||
a93f15c0 | 4971 | |
a243b558 JF |
4972 | if test -n "$ac_tool_prefix"; then |
4973 | for ac_prog in ar lib "link -lib" | |
4974 | do | |
4975 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4976 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4978 | $as_echo_n "checking for $ac_word... " >&6; } | |
4979 | if ${ac_cv_prog_AR+:} false; then : | |
4980 | $as_echo_n "(cached) " >&6 | |
4981 | else | |
4982 | if test -n "$AR"; then | |
4983 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4984 | else | |
4985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4986 | for as_dir in $PATH | |
4987 | do | |
4988 | IFS=$as_save_IFS | |
4989 | test -z "$as_dir" && as_dir=. | |
4990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4992 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4994 | break 2 | |
4995 | fi | |
4996 | done | |
4997 | done | |
4998 | IFS=$as_save_IFS | |
4999 | ||
5000 | fi | |
5001 | fi | |
5002 | AR=$ac_cv_prog_AR | |
5003 | if test -n "$AR"; then | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5005 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
5006 | else |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5008 | $as_echo "no" >&6; } | |
5009 | fi | |
9c60689e | 5010 | |
a243b558 JF |
5011 | |
5012 | test -n "$AR" && break | |
5013 | done | |
5014 | fi | |
5015 | if test -z "$AR"; then | |
5016 | ac_ct_AR=$AR | |
5017 | for ac_prog in ar lib "link -lib" | |
5018 | do | |
5019 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5020 | set dummy $ac_prog; ac_word=$2 | |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5022 | $as_echo_n "checking for $ac_word... " >&6; } | |
5023 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5024 | $as_echo_n "(cached) " >&6 | |
5025 | else | |
5026 | if test -n "$ac_ct_AR"; then | |
5027 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5028 | else | |
5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5030 | for as_dir in $PATH | |
5031 | do | |
5032 | IFS=$as_save_IFS | |
5033 | test -z "$as_dir" && as_dir=. | |
5034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5036 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5038 | break 2 | |
5039 | fi | |
5040 | done | |
5041 | done | |
5042 | IFS=$as_save_IFS | |
5043 | ||
5044 | fi | |
5045 | fi | |
5046 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5047 | if test -n "$ac_ct_AR"; then | |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5049 | $as_echo "$ac_ct_AR" >&6; } | |
5050 | else | |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5052 | $as_echo "no" >&6; } | |
5053 | fi | |
5054 | ||
5055 | ||
5056 | test -n "$ac_ct_AR" && break | |
5057 | done | |
5058 | ||
5059 | if test "x$ac_ct_AR" = x; then | |
5060 | AR="false" | |
9c60689e DWT |
5061 | else |
5062 | case $cross_compiling:$ac_tool_warned in | |
5063 | yes:) | |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5065 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5066 | ac_tool_warned=yes ;; | |
35fa52c0 | 5067 | esac |
a243b558 | 5068 | AR=$ac_ct_AR |
9c60689e | 5069 | fi |
a243b558 JF |
5070 | fi |
5071 | ||
5072 | : ${AR=ar} | |
5073 | ||
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5075 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5076 | if ${am_cv_ar_interface+:} false; then : | |
5077 | $as_echo_n "(cached) " >&6 | |
9c60689e | 5078 | else |
a93f15c0 JF |
5079 | ac_ext=c |
5080 | ac_cpp='$CPP $CPPFLAGS' | |
5081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5084 | ||
5085 | am_cv_ar_interface=ar | |
a243b558 JF |
5086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5087 | /* end confdefs.h. */ | |
5088 | int some_variable = 0; | |
5089 | _ACEOF | |
5090 | if ac_fn_c_try_compile "$LINENO"; then : | |
5091 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5093 | (eval $am_ar_try) 2>&5 | |
5094 | ac_status=$? | |
5095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5096 | test $ac_status = 0; } | |
5097 | if test "$ac_status" -eq 0; then | |
5098 | am_cv_ar_interface=ar | |
5099 | else | |
5100 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5101 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5102 | (eval $am_ar_try) 2>&5 | |
5103 | ac_status=$? | |
5104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5105 | test $ac_status = 0; } | |
5106 | if test "$ac_status" -eq 0; then | |
5107 | am_cv_ar_interface=lib | |
5108 | else | |
5109 | am_cv_ar_interface=unknown | |
5110 | fi | |
5111 | fi | |
5112 | rm -f conftest.lib libconftest.a | |
5113 | ||
35fa52c0 | 5114 | fi |
a243b558 | 5115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
5116 | ac_ext=c |
5117 | ac_cpp='$CPP $CPPFLAGS' | |
5118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 5121 | |
a243b558 JF |
5122 | fi |
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5124 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 5125 | |
a243b558 JF |
5126 | case $am_cv_ar_interface in |
5127 | ar) | |
5128 | ;; | |
5129 | lib) | |
5130 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5131 | # FIXME: It is wrong to rewrite AR. | |
5132 | # But if we don't then we get into trouble of one sort or another. | |
5133 | # A longer-term fix would be to have automake use am__AR in this case, | |
5134 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5135 | # similar. | |
5136 | AR="$am_aux_dir/ar-lib $AR" | |
5137 | ;; | |
5138 | unknown) | |
5139 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5140 | ;; | |
5141 | esac | |
35fa52c0 | 5142 | |
35fa52c0 | 5143 | |
35fa52c0 | 5144 | |
a243b558 JF |
5145 | case `pwd` in |
5146 | *\ * | *\ *) | |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5148 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5149 | esac | |
35fa52c0 DWT |
5150 | |
5151 | ||
5152 | ||
9d54db95 JF |
5153 | macro_version='2.4.6' |
5154 | macro_revision='2.4.6' | |
35fa52c0 DWT |
5155 | |
5156 | ||
5157 | ||
5158 | ||
5159 | ||
5160 | ||
5161 | ||
5162 | ||
5163 | ||
35fa52c0 | 5164 | |
35fa52c0 | 5165 | |
ee134472 | 5166 | |
35fa52c0 | 5167 | |
9d54db95 | 5168 | ltmain=$ac_aux_dir/ltmain.sh |
35fa52c0 | 5169 | |
a243b558 JF |
5170 | # Make sure we can run config.sub. |
5171 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5172 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5173 | |
a243b558 JF |
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5175 | $as_echo_n "checking build system type... " >&6; } | |
5176 | if ${ac_cv_build+:} false; then : | |
5177 | $as_echo_n "(cached) " >&6 | |
5178 | else | |
5179 | ac_build_alias=$build_alias | |
5180 | test "x$ac_build_alias" = x && | |
5181 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5182 | test "x$ac_build_alias" = x && | |
5183 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5184 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5185 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5186 | |
a243b558 JF |
5187 | fi |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5189 | $as_echo "$ac_cv_build" >&6; } | |
5190 | case $ac_cv_build in | |
5191 | *-*-*) ;; | |
5192 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5193 | esac | |
5194 | build=$ac_cv_build | |
5195 | ac_save_IFS=$IFS; IFS='-' | |
5196 | set x $ac_cv_build | |
5197 | shift | |
5198 | build_cpu=$1 | |
5199 | build_vendor=$2 | |
5200 | shift; shift | |
5201 | # Remember, the first character of IFS is used to create $*, | |
5202 | # except with old shells: | |
5203 | build_os=$* | |
5204 | IFS=$ac_save_IFS | |
5205 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5206 | |
35fa52c0 | 5207 | |
a243b558 JF |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5209 | $as_echo_n "checking host system type... " >&6; } | |
5210 | if ${ac_cv_host+:} false; then : | |
5211 | $as_echo_n "(cached) " >&6 | |
5212 | else | |
5213 | if test "x$host_alias" = x; then | |
5214 | ac_cv_host=$ac_cv_build | |
5215 | else | |
5216 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5217 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5218 | fi | |
35fa52c0 | 5219 | |
a243b558 JF |
5220 | fi |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5222 | $as_echo "$ac_cv_host" >&6; } | |
5223 | case $ac_cv_host in | |
5224 | *-*-*) ;; | |
5225 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5226 | esac | |
5227 | host=$ac_cv_host | |
5228 | ac_save_IFS=$IFS; IFS='-' | |
5229 | set x $ac_cv_host | |
5230 | shift | |
5231 | host_cpu=$1 | |
5232 | host_vendor=$2 | |
5233 | shift; shift | |
5234 | # Remember, the first character of IFS is used to create $*, | |
5235 | # except with old shells: | |
5236 | host_os=$* | |
5237 | IFS=$ac_save_IFS | |
5238 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5239 | |
9c60689e | 5240 | |
a243b558 JF |
5241 | # Backslashify metacharacters that are still active within |
5242 | # double-quoted strings. | |
5243 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5244 | |
a243b558 JF |
5245 | # Same as above, but do not quote variable references. |
5246 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5247 | |
a243b558 JF |
5248 | # Sed substitution to delay expansion of an escaped shell variable in a |
5249 | # double_quote_subst'ed string. | |
5250 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5251 | |
a243b558 JF |
5252 | # Sed substitution to delay expansion of an escaped single quote. |
5253 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5254 | |
a243b558 JF |
5255 | # Sed substitution to avoid accidental globbing in evaled expressions |
5256 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5257 | |
a243b558 JF |
5258 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5259 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5260 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5261 | |
a243b558 JF |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5263 | $as_echo_n "checking how to print strings... " >&6; } | |
5264 | # Test print first, because it will be a builtin if present. | |
5265 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5266 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5267 | ECHO='print -r --' | |
5268 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5269 | ECHO='printf %s\n' | |
5270 | else | |
5271 | # Use this function as a fallback that always works. | |
5272 | func_fallback_echo () | |
5273 | { | |
5274 | eval 'cat <<_LTECHO_EOF | |
5275 | $1 | |
5276 | _LTECHO_EOF' | |
5277 | } | |
5278 | ECHO='func_fallback_echo' | |
ee134472 JF |
5279 | fi |
5280 | ||
a243b558 JF |
5281 | # func_echo_all arg... |
5282 | # Invoke $ECHO with all args, space-separated. | |
5283 | func_echo_all () | |
5284 | { | |
5285 | $ECHO "" | |
5286 | } | |
35fa52c0 | 5287 | |
9d54db95 | 5288 | case $ECHO in |
a243b558 JF |
5289 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
5290 | $as_echo "printf" >&6; } ;; | |
5291 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5292 | $as_echo "print -r" >&6; } ;; | |
5293 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5294 | $as_echo "cat" >&6; } ;; | |
5295 | esac | |
35fa52c0 | 5296 | |
35fa52c0 | 5297 | |
ee134472 JF |
5298 | |
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
35fa52c0 | 5308 | |
9c60689e | 5309 | |
a243b558 JF |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5311 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5312 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5313 | $as_echo_n "(cached) " >&6 |
5314 | else | |
a243b558 JF |
5315 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5316 | for ac_i in 1 2 3 4 5 6 7; do | |
5317 | ac_script="$ac_script$as_nl$ac_script" | |
5318 | done | |
5319 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5320 | { ac_script=; unset ac_script;} | |
5321 | if test -z "$SED"; then | |
5322 | ac_path_SED_found=false | |
5323 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5325 | for as_dir in $PATH |
5326 | do | |
5327 | IFS=$as_save_IFS | |
5328 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5329 | for ac_prog in sed gsed; do |
9c60689e | 5330 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5331 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5332 | as_fn_executable_p "$ac_path_SED" || continue | |
5333 | # Check for GNU ac_path_SED and select it if it is found. | |
5334 | # Check for GNU $ac_path_SED | |
5335 | case `"$ac_path_SED" --version 2>&1` in | |
5336 | *GNU*) | |
5337 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5338 | *) | |
5339 | ac_count=0 | |
5340 | $as_echo_n 0123456789 >"conftest.in" | |
5341 | while : | |
5342 | do | |
5343 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5344 | mv "conftest.tmp" "conftest.in" | |
5345 | cp "conftest.in" "conftest.nl" | |
5346 | $as_echo '' >> "conftest.nl" | |
5347 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5349 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5350 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5351 | # Best one so far, save it but keep looking for a better one | |
5352 | ac_cv_path_SED="$ac_path_SED" | |
5353 | ac_path_SED_max=$ac_count | |
5354 | fi | |
5355 | # 10*(2^10) chars as input seems more than enough | |
5356 | test $ac_count -gt 10 && break | |
35fa52c0 | 5357 | done |
a243b558 JF |
5358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5359 | esac | |
9c60689e | 5360 | |
a243b558 JF |
5361 | $ac_path_SED_found && break 3 |
5362 | done | |
5363 | done | |
9c60689e DWT |
5364 | done |
5365 | IFS=$as_save_IFS | |
a243b558 JF |
5366 | if test -z "$ac_cv_path_SED"; then |
5367 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5368 | fi |
5369 | else | |
a243b558 | 5370 | ac_cv_path_SED=$SED |
9c60689e DWT |
5371 | fi |
5372 | ||
a243b558 JF |
5373 | fi |
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5375 | $as_echo "$ac_cv_path_SED" >&6; } | |
5376 | SED="$ac_cv_path_SED" | |
5377 | rm -f conftest.sed | |
9c60689e | 5378 | |
a243b558 JF |
5379 | test -z "$SED" && SED=sed |
5380 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5381 | |
ee134472 | 5382 | |
ee134472 | 5383 | |
9c60689e DWT |
5384 | |
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
a243b558 JF |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5393 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5394 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5395 | $as_echo_n "(cached) " >&6 |
5396 | else | |
a243b558 JF |
5397 | if test -z "$GREP"; then |
5398 | ac_path_GREP_found=false | |
5399 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5401 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5402 | do |
5403 | IFS=$as_save_IFS | |
5404 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5405 | for ac_prog in grep ggrep; do |
9c60689e | 5406 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5407 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5408 | as_fn_executable_p "$ac_path_GREP" || continue | |
5409 | # Check for GNU ac_path_GREP and select it if it is found. | |
5410 | # Check for GNU $ac_path_GREP | |
5411 | case `"$ac_path_GREP" --version 2>&1` in | |
5412 | *GNU*) | |
5413 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5414 | *) | |
5415 | ac_count=0 | |
5416 | $as_echo_n 0123456789 >"conftest.in" | |
5417 | while : | |
5418 | do | |
5419 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5420 | mv "conftest.tmp" "conftest.in" | |
5421 | cp "conftest.in" "conftest.nl" | |
5422 | $as_echo 'GREP' >> "conftest.nl" | |
5423 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5424 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5425 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5426 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5427 | # Best one so far, save it but keep looking for a better one | |
5428 | ac_cv_path_GREP="$ac_path_GREP" | |
5429 | ac_path_GREP_max=$ac_count | |
5430 | fi | |
5431 | # 10*(2^10) chars as input seems more than enough | |
5432 | test $ac_count -gt 10 && break | |
5433 | done | |
5434 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5435 | esac | |
9c60689e | 5436 | |
a243b558 JF |
5437 | $ac_path_GREP_found && break 3 |
5438 | done | |
ee134472 | 5439 | done |
a243b558 JF |
5440 | done |
5441 | IFS=$as_save_IFS | |
5442 | if test -z "$ac_cv_path_GREP"; then | |
5443 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5444 | fi | |
5445 | else | |
5446 | ac_cv_path_GREP=$GREP | |
9c60689e | 5447 | fi |
a243b558 JF |
5448 | |
5449 | fi | |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5451 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5452 | GREP="$ac_cv_path_GREP" | |
5453 | ||
5454 | ||
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5456 | $as_echo_n "checking for egrep... " >&6; } | |
5457 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5458 | $as_echo_n "(cached) " >&6 |
5459 | else | |
a243b558 JF |
5460 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5461 | then ac_cv_path_EGREP="$GREP -E" | |
5462 | else | |
5463 | if test -z "$EGREP"; then | |
5464 | ac_path_EGREP_found=false | |
5465 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5467 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5468 | do |
5469 | IFS=$as_save_IFS | |
5470 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5471 | for ac_prog in egrep; do |
9c60689e | 5472 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5473 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5474 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5475 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5476 | # Check for GNU $ac_path_EGREP | |
5477 | case `"$ac_path_EGREP" --version 2>&1` in | |
5478 | *GNU*) | |
5479 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5480 | *) | |
5481 | ac_count=0 | |
5482 | $as_echo_n 0123456789 >"conftest.in" | |
5483 | while : | |
5484 | do | |
5485 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5486 | mv "conftest.tmp" "conftest.in" | |
5487 | cp "conftest.in" "conftest.nl" | |
5488 | $as_echo 'EGREP' >> "conftest.nl" | |
5489 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5490 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5491 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5492 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5493 | # Best one so far, save it but keep looking for a better one | |
5494 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5495 | ac_path_EGREP_max=$ac_count | |
5496 | fi | |
5497 | # 10*(2^10) chars as input seems more than enough | |
5498 | test $ac_count -gt 10 && break | |
9c60689e | 5499 | done |
a243b558 JF |
5500 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5501 | esac | |
9c60689e | 5502 | |
a243b558 JF |
5503 | $ac_path_EGREP_found && break 3 |
5504 | done | |
5505 | done | |
5506 | done | |
5507 | IFS=$as_save_IFS | |
5508 | if test -z "$ac_cv_path_EGREP"; then | |
5509 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5510 | fi | |
9c60689e | 5511 | else |
a243b558 | 5512 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5513 | fi |
5514 | ||
a243b558 JF |
5515 | fi |
5516 | fi | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5518 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5519 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5520 | |
ee134472 | 5521 | |
a243b558 JF |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5523 | $as_echo_n "checking for fgrep... " >&6; } | |
5524 | if ${ac_cv_path_FGREP+:} false; then : | |
5525 | $as_echo_n "(cached) " >&6 | |
5526 | else | |
5527 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5528 | then ac_cv_path_FGREP="$GREP -F" | |
5529 | else | |
5530 | if test -z "$FGREP"; then | |
5531 | ac_path_FGREP_found=false | |
5532 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5534 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5535 | do | |
5536 | IFS=$as_save_IFS | |
5537 | test -z "$as_dir" && as_dir=. | |
5538 | for ac_prog in fgrep; do | |
5539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5540 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5541 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5542 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5543 | # Check for GNU $ac_path_FGREP | |
5544 | case `"$ac_path_FGREP" --version 2>&1` in | |
5545 | *GNU*) | |
5546 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5547 | *) | |
5548 | ac_count=0 | |
5549 | $as_echo_n 0123456789 >"conftest.in" | |
5550 | while : | |
5551 | do | |
5552 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5553 | mv "conftest.tmp" "conftest.in" | |
5554 | cp "conftest.in" "conftest.nl" | |
5555 | $as_echo 'FGREP' >> "conftest.nl" | |
5556 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5557 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5558 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5559 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5560 | # Best one so far, save it but keep looking for a better one | |
5561 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5562 | ac_path_FGREP_max=$ac_count | |
5563 | fi | |
5564 | # 10*(2^10) chars as input seems more than enough | |
5565 | test $ac_count -gt 10 && break | |
5566 | done | |
5567 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5568 | esac |
a243b558 JF |
5569 | |
5570 | $ac_path_FGREP_found && break 3 | |
5571 | done | |
5572 | done | |
5573 | done | |
5574 | IFS=$as_save_IFS | |
5575 | if test -z "$ac_cv_path_FGREP"; then | |
5576 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5577 | fi |
a243b558 JF |
5578 | else |
5579 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5580 | fi |
5581 | ||
a243b558 JF |
5582 | fi |
5583 | fi | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5585 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5586 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5587 | |
5588 | ||
a243b558 | 5589 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5590 | |
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
ee134472 | 5597 | |
ee134472 | 5598 | |
ee134472 | 5599 | |
ee134472 | 5600 | |
ee134472 | 5601 | |
ee134472 JF |
5602 | |
5603 | ||
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
a243b558 JF |
5609 | # Check whether --with-gnu-ld was given. |
5610 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 5611 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
a243b558 JF |
5612 | else |
5613 | with_gnu_ld=no | |
5614 | fi | |
5615 | ||
5616 | ac_prog=ld | |
9d54db95 | 5617 | if test yes = "$GCC"; then |
a243b558 JF |
5618 | # Check if gcc -print-prog-name=ld gives a path. |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5620 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5621 | case $host in | |
5622 | *-*-mingw*) | |
9d54db95 | 5623 | # gcc leaves a trailing carriage return, which upsets mingw |
a243b558 JF |
5624 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5625 | *) | |
5626 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5627 | esac | |
5628 | case $ac_prog in | |
5629 | # Accept absolute paths. | |
5630 | [\\/]* | ?:[\\/]*) | |
5631 | re_direlt='/[^/][^/]*/\.\./' | |
5632 | # Canonicalize the pathname of ld | |
5633 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5634 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5635 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5636 | done | |
9d54db95 | 5637 | test -z "$LD" && LD=$ac_prog |
a243b558 JF |
5638 | ;; |
5639 | "") | |
5640 | # If it fails, then pretend we aren't using GCC. | |
5641 | ac_prog=ld | |
5642 | ;; | |
5643 | *) | |
5644 | # If it is relative, then search for the first ld in PATH. | |
5645 | with_gnu_ld=unknown | |
5646 | ;; | |
5647 | esac | |
9d54db95 | 5648 | elif test yes = "$with_gnu_ld"; then |
a243b558 JF |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5650 | $as_echo_n "checking for GNU ld... " >&6; } | |
5651 | else | |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5653 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5654 | fi | |
5655 | if ${lt_cv_path_LD+:} false; then : | |
5656 | $as_echo_n "(cached) " >&6 | |
5657 | else | |
5658 | if test -z "$LD"; then | |
9d54db95 | 5659 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 5660 | for ac_dir in $PATH; do |
9d54db95 | 5661 | IFS=$lt_save_ifs |
a243b558 JF |
5662 | test -z "$ac_dir" && ac_dir=. |
5663 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 5664 | lt_cv_path_LD=$ac_dir/$ac_prog |
a243b558 JF |
5665 | # Check to see if the program is GNU ld. I'd rather use --version, |
5666 | # but apparently some variants of GNU ld only accept -v. | |
5667 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5668 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5669 | *GNU* | *'with BFD'*) | |
9d54db95 | 5670 | test no != "$with_gnu_ld" && break |
a243b558 JF |
5671 | ;; |
5672 | *) | |
9d54db95 | 5673 | test yes != "$with_gnu_ld" && break |
a243b558 JF |
5674 | ;; |
5675 | esac | |
5676 | fi | |
5677 | done | |
9d54db95 | 5678 | IFS=$lt_save_ifs |
a243b558 | 5679 | else |
9d54db95 | 5680 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
a243b558 JF |
5681 | fi |
5682 | fi | |
5683 | ||
9d54db95 | 5684 | LD=$lt_cv_path_LD |
a243b558 JF |
5685 | if test -n "$LD"; then |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5687 | $as_echo "$LD" >&6; } | |
5688 | else | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5690 | $as_echo "no" >&6; } | |
5691 | fi | |
5692 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5694 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5695 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5696 | $as_echo_n "(cached) " >&6 | |
5697 | else | |
5698 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5699 | case `$LD -v 2>&1 </dev/null` in | |
5700 | *GNU* | *'with BFD'*) | |
5701 | lt_cv_prog_gnu_ld=yes | |
5702 | ;; | |
5703 | *) | |
5704 | lt_cv_prog_gnu_ld=no | |
5705 | ;; | |
5706 | esac | |
5707 | fi | |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5709 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5710 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5711 | ||
5712 | ||
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5721 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5722 | if ${lt_cv_path_NM+:} false; then : | |
5723 | $as_echo_n "(cached) " >&6 | |
5724 | else | |
5725 | if test -n "$NM"; then | |
5726 | # Let the user override the test. | |
9d54db95 | 5727 | lt_cv_path_NM=$NM |
a243b558 | 5728 | else |
9d54db95 | 5729 | lt_nm_to_check=${ac_tool_prefix}nm |
a243b558 JF |
5730 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5731 | lt_nm_to_check="$lt_nm_to_check nm" | |
5732 | fi | |
5733 | for lt_tmp_nm in $lt_nm_to_check; do | |
9d54db95 | 5734 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 5735 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
9d54db95 | 5736 | IFS=$lt_save_ifs |
a243b558 | 5737 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
5738 | tmp_nm=$ac_dir/$lt_tmp_nm |
5739 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
a243b558 | 5740 | # Check to see if the nm accepts a BSD-compat flag. |
9d54db95 | 5741 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
a243b558 JF |
5742 | # nm: unknown option "B" ignored |
5743 | # Tru64's nm complains that /dev/null is an invalid object file | |
9d54db95 JF |
5744 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
5745 | case $build_os in | |
5746 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5747 | *) lt_bad_file=/dev/null ;; | |
5748 | esac | |
5749 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5750 | *$lt_bad_file* | *'Invalid file or object type'*) | |
a243b558 | 5751 | lt_cv_path_NM="$tmp_nm -B" |
9d54db95 | 5752 | break 2 |
a243b558 JF |
5753 | ;; |
5754 | *) | |
5755 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5756 | */dev/null*) | |
5757 | lt_cv_path_NM="$tmp_nm -p" | |
9d54db95 | 5758 | break 2 |
a243b558 JF |
5759 | ;; |
5760 | *) | |
5761 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5762 | continue # so that we can try to find one that supports BSD flags | |
5763 | ;; | |
5764 | esac | |
5765 | ;; | |
5766 | esac | |
5767 | fi | |
5768 | done | |
9d54db95 | 5769 | IFS=$lt_save_ifs |
a243b558 JF |
5770 | done |
5771 | : ${lt_cv_path_NM=no} | |
5772 | fi | |
5773 | fi | |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5775 | $as_echo "$lt_cv_path_NM" >&6; } | |
9d54db95 JF |
5776 | if test no != "$lt_cv_path_NM"; then |
5777 | NM=$lt_cv_path_NM | |
a243b558 JF |
5778 | else |
5779 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5780 | if test -n "$DUMPBIN"; then : | |
5781 | # Let the user override the test. | |
5782 | else | |
5783 | if test -n "$ac_tool_prefix"; then | |
5784 | for ac_prog in dumpbin "link -dump" | |
5785 | do | |
5786 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5787 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5789 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5790 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5791 | $as_echo_n "(cached) " >&6 |
5792 | else | |
a243b558 JF |
5793 | if test -n "$DUMPBIN"; then |
5794 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5795 | else |
5796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5797 | for as_dir in $PATH | |
5798 | do | |
5799 | IFS=$as_save_IFS | |
5800 | test -z "$as_dir" && as_dir=. | |
5801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5803 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5805 | break 2 | |
5806 | fi | |
5807 | done | |
5808 | done | |
5809 | IFS=$as_save_IFS | |
5810 | ||
5811 | fi | |
5812 | fi | |
a243b558 JF |
5813 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5814 | if test -n "$DUMPBIN"; then | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5816 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5817 | else |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5819 | $as_echo "no" >&6; } | |
5820 | fi | |
5821 | ||
5822 | ||
a243b558 JF |
5823 | test -n "$DUMPBIN" && break |
5824 | done | |
ee134472 | 5825 | fi |
a243b558 JF |
5826 | if test -z "$DUMPBIN"; then |
5827 | ac_ct_DUMPBIN=$DUMPBIN | |
5828 | for ac_prog in dumpbin "link -dump" | |
5829 | do | |
5830 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5831 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5833 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5834 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5835 | $as_echo_n "(cached) " >&6 |
5836 | else | |
a243b558 JF |
5837 | if test -n "$ac_ct_DUMPBIN"; then |
5838 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5839 | else |
5840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5841 | for as_dir in $PATH | |
5842 | do | |
5843 | IFS=$as_save_IFS | |
5844 | test -z "$as_dir" && as_dir=. | |
5845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5847 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5849 | break 2 | |
5850 | fi | |
5851 | done | |
5852 | done | |
5853 | IFS=$as_save_IFS | |
5854 | ||
5855 | fi | |
5856 | fi | |
a243b558 JF |
5857 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5858 | if test -n "$ac_ct_DUMPBIN"; then | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5860 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5861 | else |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5863 | $as_echo "no" >&6; } | |
5864 | fi | |
5865 | ||
a243b558 JF |
5866 | |
5867 | test -n "$ac_ct_DUMPBIN" && break | |
5868 | done | |
5869 | ||
5870 | if test "x$ac_ct_DUMPBIN" = x; then | |
5871 | DUMPBIN=":" | |
ee134472 JF |
5872 | else |
5873 | case $cross_compiling:$ac_tool_warned in | |
5874 | yes:) | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5876 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5877 | ac_tool_warned=yes ;; | |
5878 | esac | |
a243b558 | 5879 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5880 | fi |
9c60689e DWT |
5881 | fi |
5882 | ||
9d54db95 | 5883 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
a243b558 | 5884 | *COFF*) |
9d54db95 | 5885 | DUMPBIN="$DUMPBIN -symbols -headers" |
a243b558 JF |
5886 | ;; |
5887 | *) | |
5888 | DUMPBIN=: | |
5889 | ;; | |
5890 | esac | |
5891 | fi | |
9c60689e | 5892 | |
9d54db95 JF |
5893 | if test : != "$DUMPBIN"; then |
5894 | NM=$DUMPBIN | |
a243b558 JF |
5895 | fi |
5896 | fi | |
5897 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5898 | |
5899 | ||
5900 | ||
5901 | ||
5902 | ||
a243b558 JF |
5903 | |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5905 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5906 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5907 | $as_echo_n "(cached) " >&6 |
5908 | else | |
a243b558 JF |
5909 | lt_cv_nm_interface="BSD nm" |
5910 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5911 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5912 | (eval "$ac_compile" 2>conftest.err) | |
5913 | cat conftest.err >&5 | |
5914 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5915 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5916 | cat conftest.err >&5 | |
5917 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5918 | cat conftest.out >&5 | |
5919 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5920 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5921 | fi |
00a96142 | 5922 | rm -rf conftest* |
9c60689e | 5923 | fi |
a243b558 JF |
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5925 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5926 | ||
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5928 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5929 | LN_S=$as_ln_s | |
5930 | if test "$LN_S" = "ln -s"; then | |
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5932 | $as_echo "yes" >&6; } | |
9c60689e | 5933 | else |
a243b558 JF |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5935 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5936 | fi |
5937 | ||
a243b558 JF |
5938 | # find the maximum length of command line arguments |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5940 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5941 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5942 | $as_echo_n "(cached) " >&6 |
5943 | else | |
a243b558 | 5944 | i=0 |
9d54db95 | 5945 | teststring=ABCD |
9c60689e | 5946 | |
a243b558 JF |
5947 | case $build_os in |
5948 | msdosdjgpp*) | |
5949 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5950 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5951 | # during glob expansion). Even if it were fixed, the result of this | |
5952 | # check would be larger than it should be. | |
5953 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5954 | ;; | |
9c60689e | 5955 | |
a243b558 JF |
5956 | gnu*) |
5957 | # Under GNU Hurd, this test is not required because there is | |
5958 | # no limit to the length of command line arguments. | |
5959 | # Libtool will interpret -1 as no limit whatsoever | |
5960 | lt_cv_sys_max_cmd_len=-1; | |
5961 | ;; | |
9c60689e | 5962 | |
a243b558 JF |
5963 | cygwin* | mingw* | cegcc*) |
5964 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5965 | # about 5 minutes as the teststring grows exponentially. | |
5966 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5967 | # you end up with a "frozen" computer, even though with patience | |
5968 | # the test eventually succeeds (with a max line length of 256k). | |
5969 | # Instead, let's just punt: use the minimum linelength reported by | |
5970 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5971 | lt_cv_sys_max_cmd_len=8192; | |
5972 | ;; | |
9c60689e | 5973 | |
a243b558 JF |
5974 | mint*) |
5975 | # On MiNT this can take a long time and run out of memory. | |
5976 | lt_cv_sys_max_cmd_len=8192; | |
5977 | ;; | |
9c60689e | 5978 | |
a243b558 JF |
5979 | amigaos*) |
5980 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5981 | # So we just punt and use a minimum line length of 8192. | |
5982 | lt_cv_sys_max_cmd_len=8192; | |
5983 | ;; | |
9c60689e | 5984 | |
9d54db95 | 5985 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
a243b558 JF |
5986 | # This has been around since 386BSD, at least. Likely further. |
5987 | if test -x /sbin/sysctl; then | |
5988 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5989 | elif test -x /usr/sbin/sysctl; then | |
5990 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5991 | else | |
5992 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5993 | fi | |
5994 | # And add a safety zone | |
5995 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5996 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5997 | ;; | |
9c60689e | 5998 | |
a243b558 JF |
5999 | interix*) |
6000 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6001 | lt_cv_sys_max_cmd_len=196608 | |
6002 | ;; | |
9c60689e | 6003 | |
a243b558 JF |
6004 | os2*) |
6005 | # The test takes a long time on OS/2. | |
6006 | lt_cv_sys_max_cmd_len=8192 | |
6007 | ;; | |
9c60689e | 6008 | |
a243b558 JF |
6009 | osf*) |
6010 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6011 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6012 | # nice to cause kernel panics so lets avoid the loop below. | |
6013 | # First set a reasonable default. | |
6014 | lt_cv_sys_max_cmd_len=16384 | |
6015 | # | |
6016 | if test -x /sbin/sysconfig; then | |
6017 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6018 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6019 | esac | |
6020 | fi | |
6021 | ;; | |
6022 | sco3.2v5*) | |
6023 | lt_cv_sys_max_cmd_len=102400 | |
6024 | ;; | |
6025 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6026 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6027 | if test -n "$kargmax"; then | |
6028 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6029 | else | |
6030 | lt_cv_sys_max_cmd_len=32768 | |
6031 | fi | |
9c60689e DWT |
6032 | ;; |
6033 | *) | |
a243b558 | 6034 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
9d54db95 JF |
6035 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
6036 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
a243b558 JF |
6037 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6038 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6039 | else | |
6040 | # Make teststring a little bigger before we do anything with it. | |
6041 | # a 1K string should be a reasonable start. | |
9d54db95 | 6042 | for i in 1 2 3 4 5 6 7 8; do |
a243b558 JF |
6043 | teststring=$teststring$teststring |
6044 | done | |
6045 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6046 | # If test is not a shell built-in, we'll probably end up computing a | |
6047 | # maximum length that is only half of the actual maximum length, but | |
6048 | # we can't tell. | |
9d54db95 | 6049 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
a243b558 | 6050 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
9d54db95 | 6051 | test 17 != "$i" # 1/2 MB should be enough |
a243b558 JF |
6052 | do |
6053 | i=`expr $i + 1` | |
6054 | teststring=$teststring$teststring | |
6055 | done | |
6056 | # Only check the string length outside the loop. | |
6057 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6058 | teststring= | |
6059 | # Add a significant safety factor because C++ compilers can tack on | |
6060 | # massive amounts of additional arguments before passing them to the | |
6061 | # linker. It appears as though 1/2 is a usable value. | |
6062 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6063 | fi | |
9c60689e DWT |
6064 | ;; |
6065 | esac | |
ee134472 | 6066 | |
a243b558 | 6067 | fi |
ee134472 | 6068 | |
9d54db95 | 6069 | if test -n "$lt_cv_sys_max_cmd_len"; then |
a243b558 JF |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6071 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6072 | else | |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6074 | $as_echo "none" >&6; } | |
6075 | fi | |
6076 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
6077 | |
6078 | ||
9c60689e DWT |
6079 | |
6080 | ||
6081 | ||
6082 | ||
a243b558 JF |
6083 | : ${CP="cp -f"} |
6084 | : ${MV="mv -f"} | |
6085 | : ${RM="rm -f"} | |
9c60689e | 6086 | |
a243b558 JF |
6087 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6088 | lt_unset=unset | |
6089 | else | |
6090 | lt_unset=false | |
6091 | fi | |
9c60689e DWT |
6092 | |
6093 | ||
6094 | ||
6095 | ||
6096 | ||
a243b558 JF |
6097 | # test EBCDIC or ASCII |
6098 | case `echo X|tr X '\101'` in | |
6099 | A) # ASCII based system | |
6100 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6101 | lt_SP2NL='tr \040 \012' | |
6102 | lt_NL2SP='tr \015\012 \040\040' | |
6103 | ;; | |
6104 | *) # EBCDIC based system | |
6105 | lt_SP2NL='tr \100 \n' | |
6106 | lt_NL2SP='tr \r\n \100\100' | |
6107 | ;; | |
6108 | esac | |
9c60689e DWT |
6109 | |
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
a243b558 JF |
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6119 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6120 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6121 | $as_echo_n "(cached) " >&6 | |
6122 | else | |
6123 | case $host in | |
6124 | *-*-mingw* ) | |
6125 | case $build in | |
6126 | *-*-mingw* ) # actually msys | |
6127 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6128 | ;; | |
6129 | *-*-cygwin* ) | |
6130 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6131 | ;; | |
6132 | * ) # otherwise, assume *nix | |
6133 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6134 | ;; | |
6135 | esac | |
6136 | ;; | |
6137 | *-*-cygwin* ) | |
6138 | case $build in | |
6139 | *-*-mingw* ) # actually msys | |
6140 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6141 | ;; | |
6142 | *-*-cygwin* ) | |
6143 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6144 | ;; | |
6145 | * ) # otherwise, assume *nix | |
6146 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6147 | ;; | |
6148 | esac | |
6149 | ;; | |
6150 | * ) # unhandled hosts (and "normal" native builds) | |
6151 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6152 | ;; | |
6153 | esac | |
9c60689e | 6154 | |
a243b558 | 6155 | fi |
9c60689e | 6156 | |
a243b558 JF |
6157 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6159 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6160 | |
6161 | ||
6162 | ||
6163 | ||
6164 | ||
a243b558 JF |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6166 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6167 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6168 | $as_echo_n "(cached) " >&6 | |
6169 | else | |
6170 | #assume ordinary cross tools, or native build. | |
6171 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6172 | case $host in | |
6173 | *-*-mingw* ) | |
6174 | case $build in | |
6175 | *-*-mingw* ) # actually msys | |
6176 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6177 | ;; | |
6178 | esac | |
6179 | ;; | |
6180 | esac | |
9c60689e | 6181 | |
a243b558 | 6182 | fi |
9c60689e | 6183 | |
a243b558 JF |
6184 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6186 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6187 | |
9c60689e | 6188 | |
9c60689e | 6189 | |
9c60689e DWT |
6190 | |
6191 | ||
a243b558 JF |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6193 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6194 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6195 | $as_echo_n "(cached) " >&6 |
6196 | else | |
a243b558 JF |
6197 | lt_cv_ld_reload_flag='-r' |
6198 | fi | |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6200 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6201 | reload_flag=$lt_cv_ld_reload_flag | |
6202 | case $reload_flag in | |
6203 | "" | " "*) ;; | |
6204 | *) reload_flag=" $reload_flag" ;; | |
6205 | esac | |
6206 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6207 | case $host_os in |
a243b558 | 6208 | cygwin* | mingw* | pw32* | cegcc*) |
9d54db95 | 6209 | if test yes != "$GCC"; then |
a243b558 JF |
6210 | reload_cmds=false |
6211 | fi | |
6212 | ;; | |
6213 | darwin*) | |
9d54db95 JF |
6214 | if test yes = "$GCC"; then |
6215 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
a243b558 JF |
6216 | else |
6217 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6218 | fi | |
6219 | ;; | |
9c60689e DWT |
6220 | esac |
6221 | ||
9c60689e | 6222 | |
9c60689e | 6223 | |
9c60689e | 6224 | |
9c60689e | 6225 | |
9c60689e | 6226 | |
9c60689e | 6227 | |
9c60689e | 6228 | |
9c60689e | 6229 | |
a243b558 JF |
6230 | if test -n "$ac_tool_prefix"; then |
6231 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6232 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6234 | $as_echo_n "checking for $ac_word... " >&6; } | |
6235 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6236 | $as_echo_n "(cached) " >&6 | |
6237 | else | |
6238 | if test -n "$OBJDUMP"; then | |
6239 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6240 | else | |
6241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6242 | for as_dir in $PATH | |
6243 | do | |
6244 | IFS=$as_save_IFS | |
6245 | test -z "$as_dir" && as_dir=. | |
6246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6248 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6250 | break 2 | |
6251 | fi | |
6252 | done | |
6253 | done | |
6254 | IFS=$as_save_IFS | |
9c60689e | 6255 | |
a243b558 JF |
6256 | fi |
6257 | fi | |
6258 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6259 | if test -n "$OBJDUMP"; then | |
6260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6261 | $as_echo "$OBJDUMP" >&6; } | |
6262 | else | |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6264 | $as_echo "no" >&6; } | |
6265 | fi | |
9c60689e | 6266 | |
9c60689e | 6267 | |
a243b558 JF |
6268 | fi |
6269 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6270 | ac_ct_OBJDUMP=$OBJDUMP | |
6271 | # Extract the first word of "objdump", so it can be a program name with args. | |
6272 | set dummy objdump; ac_word=$2 | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6274 | $as_echo_n "checking for $ac_word... " >&6; } | |
6275 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6276 | $as_echo_n "(cached) " >&6 | |
6277 | else | |
6278 | if test -n "$ac_ct_OBJDUMP"; then | |
6279 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6280 | else | |
6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6282 | for as_dir in $PATH | |
6283 | do | |
6284 | IFS=$as_save_IFS | |
6285 | test -z "$as_dir" && as_dir=. | |
6286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6288 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6290 | break 2 | |
9c60689e DWT |
6291 | fi |
6292 | done | |
a243b558 JF |
6293 | done |
6294 | IFS=$as_save_IFS | |
9c60689e DWT |
6295 | |
6296 | fi | |
9c60689e | 6297 | fi |
a243b558 JF |
6298 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6299 | if test -n "$ac_ct_OBJDUMP"; then | |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6301 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6302 | else |
a243b558 JF |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6304 | $as_echo "no" >&6; } | |
9c60689e DWT |
6305 | fi |
6306 | ||
a243b558 JF |
6307 | if test "x$ac_ct_OBJDUMP" = x; then |
6308 | OBJDUMP="false" | |
6309 | else | |
6310 | case $cross_compiling:$ac_tool_warned in | |
6311 | yes:) | |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6313 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6314 | ac_tool_warned=yes ;; | |
6315 | esac | |
6316 | OBJDUMP=$ac_ct_OBJDUMP | |
6317 | fi | |
6318 | else | |
6319 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6320 | fi |
6321 | ||
a243b558 | 6322 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6323 | |
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
a243b558 JF |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6333 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6334 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6335 | $as_echo_n "(cached) " >&6 | |
6336 | else | |
6337 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6338 | lt_cv_file_magic_test_file= | |
6339 | lt_cv_deplibs_check_method='unknown' | |
6340 | # Need to set the preceding variable on all platforms that support | |
6341 | # interlibrary dependencies. | |
6342 | # 'none' -- dependencies not supported. | |
9d54db95 | 6343 | # 'unknown' -- same as none, but documents that we really don't know. |
a243b558 JF |
6344 | # 'pass_all' -- all dependencies passed with no checks. |
6345 | # 'test_compile' -- check by making test program. | |
6346 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
9d54db95 JF |
6347 | # that responds to the $file_magic_cmd with a given extended regex. |
6348 | # If you have 'file' or equivalent on your system and you're not sure | |
6349 | # whether 'pass_all' will *always* work, you probably want this one. | |
9c60689e | 6350 | |
a243b558 JF |
6351 | case $host_os in |
6352 | aix[4-9]*) | |
6353 | lt_cv_deplibs_check_method=pass_all | |
6354 | ;; | |
9c60689e | 6355 | |
a243b558 JF |
6356 | beos*) |
6357 | lt_cv_deplibs_check_method=pass_all | |
6358 | ;; | |
9c60689e | 6359 | |
a243b558 JF |
6360 | bsdi[45]*) |
6361 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6362 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6363 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6364 | ;; | |
9c60689e | 6365 | |
a243b558 JF |
6366 | cygwin*) |
6367 | # func_win32_libid is a shell function defined in ltmain.sh | |
6368 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6369 | lt_cv_file_magic_cmd='func_win32_libid' | |
6370 | ;; | |
9c60689e | 6371 | |
a243b558 JF |
6372 | mingw* | pw32*) |
6373 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6374 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6375 | # unless we find 'file', for example because we are cross-compiling. | |
9d54db95 | 6376 | if ( file / ) >/dev/null 2>&1; then |
a243b558 JF |
6377 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6378 | lt_cv_file_magic_cmd='func_win32_libid' | |
6379 | else | |
6380 | # Keep this pattern in sync with the one in func_win32_libid. | |
6381 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6382 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6383 | fi | |
6384 | ;; | |
9c60689e | 6385 | |
a243b558 JF |
6386 | cegcc*) |
6387 | # use the weaker test based on 'objdump'. See mingw*. | |
6388 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6389 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6390 | ;; | |
9c60689e | 6391 | |
a243b558 JF |
6392 | darwin* | rhapsody*) |
6393 | lt_cv_deplibs_check_method=pass_all | |
6394 | ;; | |
9c60689e | 6395 | |
a243b558 JF |
6396 | freebsd* | dragonfly*) |
6397 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6398 | case $host_cpu in | |
6399 | i*86 ) | |
6400 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6401 | # Let's accept both of them until this is cleared up. | |
6402 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6403 | lt_cv_file_magic_cmd=/usr/bin/file | |
6404 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6405 | ;; | |
6406 | esac | |
6407 | else | |
6408 | lt_cv_deplibs_check_method=pass_all | |
6409 | fi | |
6410 | ;; | |
9c60689e | 6411 | |
a243b558 JF |
6412 | haiku*) |
6413 | lt_cv_deplibs_check_method=pass_all | |
6414 | ;; | |
9c60689e | 6415 | |
a243b558 JF |
6416 | hpux10.20* | hpux11*) |
6417 | lt_cv_file_magic_cmd=/usr/bin/file | |
6418 | case $host_cpu in | |
6419 | ia64*) | |
6420 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6421 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6422 | ;; | |
6423 | hppa*64*) | |
6424 | 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]' | |
6425 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6426 | ;; | |
6427 | *) | |
6428 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6429 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6430 | ;; | |
6431 | esac | |
6432 | ;; | |
9c60689e | 6433 | |
a243b558 JF |
6434 | interix[3-9]*) |
6435 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6436 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6437 | ;; | |
9c60689e | 6438 | |
a243b558 JF |
6439 | irix5* | irix6* | nonstopux*) |
6440 | case $LD in | |
6441 | *-32|*"-32 ") libmagic=32-bit;; | |
6442 | *-n32|*"-n32 ") libmagic=N32;; | |
6443 | *-64|*"-64 ") libmagic=64-bit;; | |
6444 | *) libmagic=never-match;; | |
6445 | esac | |
6446 | lt_cv_deplibs_check_method=pass_all | |
6447 | ;; | |
9c60689e | 6448 | |
a243b558 | 6449 | # This must be glibc/ELF. |
9d54db95 | 6450 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
6451 | lt_cv_deplibs_check_method=pass_all |
6452 | ;; | |
9c60689e | 6453 | |
a243b558 JF |
6454 | netbsd*) |
6455 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6456 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6457 | else | |
6458 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6459 | fi | |
6460 | ;; | |
9c60689e | 6461 | |
a243b558 JF |
6462 | newos6*) |
6463 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6464 | lt_cv_file_magic_cmd=/usr/bin/file | |
6465 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6466 | ;; | |
9c60689e | 6467 | |
a243b558 JF |
6468 | *nto* | *qnx*) |
6469 | lt_cv_deplibs_check_method=pass_all | |
6470 | ;; | |
9c60689e | 6471 | |
9d54db95 JF |
6472 | openbsd* | bitrig*) |
6473 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
a243b558 JF |
6474 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6475 | else | |
6476 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6477 | fi | |
6478 | ;; | |
9c60689e | 6479 | |
a243b558 JF |
6480 | osf3* | osf4* | osf5*) |
6481 | lt_cv_deplibs_check_method=pass_all | |
6482 | ;; | |
9c60689e | 6483 | |
a243b558 JF |
6484 | rdos*) |
6485 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6486 | ;; |
a243b558 JF |
6487 | |
6488 | solaris*) | |
6489 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6490 | ;; |
6491 | ||
a243b558 JF |
6492 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6493 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6494 | ;; |
6495 | ||
a243b558 JF |
6496 | sysv4 | sysv4.3*) |
6497 | case $host_vendor in | |
6498 | motorola) | |
6499 | 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]' | |
6500 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6501 | ;; | |
6502 | ncr) | |
6503 | lt_cv_deplibs_check_method=pass_all | |
6504 | ;; | |
6505 | sequent) | |
6506 | lt_cv_file_magic_cmd='/bin/file' | |
6507 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6508 | ;; | |
6509 | sni) | |
6510 | lt_cv_file_magic_cmd='/bin/file' | |
6511 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6512 | lt_cv_file_magic_test_file=/lib/libc.so | |
6513 | ;; | |
6514 | siemens) | |
6515 | lt_cv_deplibs_check_method=pass_all | |
6516 | ;; | |
6517 | pc) | |
6518 | lt_cv_deplibs_check_method=pass_all | |
6519 | ;; | |
6520 | esac | |
6521 | ;; | |
9c60689e | 6522 | |
a243b558 JF |
6523 | tpf*) |
6524 | lt_cv_deplibs_check_method=pass_all | |
6525 | ;; | |
9d54db95 JF |
6526 | os2*) |
6527 | lt_cv_deplibs_check_method=pass_all | |
6528 | ;; | |
a243b558 | 6529 | esac |
9c60689e | 6530 | |
a243b558 JF |
6531 | fi |
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6533 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6534 | |
a243b558 JF |
6535 | file_magic_glob= |
6536 | want_nocaseglob=no | |
6537 | if test "$build" = "$host"; then | |
6538 | case $host_os in | |
6539 | mingw* | pw32*) | |
6540 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6541 | want_nocaseglob=yes | |
6542 | else | |
6543 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6544 | fi | |
6545 | ;; | |
6546 | esac | |
9c60689e | 6547 | fi |
9c60689e | 6548 | |
a243b558 JF |
6549 | file_magic_cmd=$lt_cv_file_magic_cmd |
6550 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6551 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
9c60689e | 6572 | |
9c60689e | 6573 | |
ee134472 | 6574 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6575 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6576 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6578 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6579 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6580 | $as_echo_n "(cached) " >&6 |
6581 | else | |
a243b558 JF |
6582 | if test -n "$DLLTOOL"; then |
6583 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6584 | else |
6585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6586 | for as_dir in $PATH | |
6587 | do | |
6588 | IFS=$as_save_IFS | |
6589 | test -z "$as_dir" && as_dir=. | |
6590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6592 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6594 | break 2 | |
6595 | fi | |
6596 | done | |
6597 | done | |
6598 | IFS=$as_save_IFS | |
6599 | ||
6600 | fi | |
6601 | fi | |
a243b558 JF |
6602 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6603 | if test -n "$DLLTOOL"; then | |
6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6605 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6606 | else |
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6608 | $as_echo "no" >&6; } | |
6609 | fi | |
6610 | ||
6611 | ||
6612 | fi | |
a243b558 JF |
6613 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6614 | ac_ct_DLLTOOL=$DLLTOOL | |
6615 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6616 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6618 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6619 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6620 | $as_echo_n "(cached) " >&6 |
6621 | else | |
a243b558 JF |
6622 | if test -n "$ac_ct_DLLTOOL"; then |
6623 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6624 | else |
6625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6626 | for as_dir in $PATH | |
6627 | do | |
6628 | IFS=$as_save_IFS | |
6629 | test -z "$as_dir" && as_dir=. | |
6630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6632 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6634 | break 2 | |
6635 | fi | |
6636 | done | |
6637 | done | |
6638 | IFS=$as_save_IFS | |
6639 | ||
6640 | fi | |
6641 | fi | |
a243b558 JF |
6642 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6643 | if test -n "$ac_ct_DLLTOOL"; then | |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6645 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6646 | else |
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6648 | $as_echo "no" >&6; } | |
6649 | fi | |
6650 | ||
a243b558 JF |
6651 | if test "x$ac_ct_DLLTOOL" = x; then |
6652 | DLLTOOL="false" | |
ee134472 JF |
6653 | else |
6654 | case $cross_compiling:$ac_tool_warned in | |
6655 | yes:) | |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6657 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6658 | ac_tool_warned=yes ;; | |
6659 | esac | |
a243b558 | 6660 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6661 | fi |
6662 | else | |
a243b558 | 6663 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6664 | fi |
6665 | ||
a243b558 JF |
6666 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6678 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6679 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6680 | $as_echo_n "(cached) " >&6 |
6681 | else | |
a243b558 JF |
6682 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6683 | ||
6684 | case $host_os in | |
6685 | cygwin* | mingw* | pw32* | cegcc*) | |
9d54db95 JF |
6686 | # two different shell functions defined in ltmain.sh; |
6687 | # decide which one to use based on capabilities of $DLLTOOL | |
a243b558 JF |
6688 | case `$DLLTOOL --help 2>&1` in |
6689 | *--identify-strict*) | |
6690 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6691 | ;; | |
6692 | *) | |
6693 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6694 | ;; | |
6695 | esac | |
6696 | ;; | |
6697 | *) | |
6698 | # fallback: assume linklib IS sharedlib | |
9d54db95 | 6699 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
a243b558 JF |
6700 | ;; |
6701 | esac | |
6702 | ||
ee134472 | 6703 | fi |
a243b558 JF |
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6705 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6706 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6707 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6708 | |
6709 | ||
6710 | ||
6711 | ||
6712 | ||
9c60689e | 6713 | |
a243b558 JF |
6714 | |
6715 | if test -n "$ac_tool_prefix"; then | |
6716 | for ac_prog in ar | |
6717 | do | |
6718 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6719 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6721 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6722 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6723 | $as_echo_n "(cached) " >&6 |
6724 | else | |
a243b558 JF |
6725 | if test -n "$AR"; then |
6726 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6727 | else |
6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6729 | for as_dir in $PATH | |
6730 | do | |
6731 | IFS=$as_save_IFS | |
6732 | test -z "$as_dir" && as_dir=. | |
6733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6735 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6737 | break 2 | |
6738 | fi | |
6739 | done | |
6740 | done | |
6741 | IFS=$as_save_IFS | |
6742 | ||
6743 | fi | |
6744 | fi | |
a243b558 JF |
6745 | AR=$ac_cv_prog_AR |
6746 | if test -n "$AR"; then | |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6748 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6749 | else |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6751 | $as_echo "no" >&6; } | |
6752 | fi | |
6753 | ||
6754 | ||
a243b558 JF |
6755 | test -n "$AR" && break |
6756 | done | |
9c60689e | 6757 | fi |
a243b558 JF |
6758 | if test -z "$AR"; then |
6759 | ac_ct_AR=$AR | |
6760 | for ac_prog in ar | |
6761 | do | |
6762 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6763 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6765 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6766 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6767 | $as_echo_n "(cached) " >&6 |
6768 | else | |
a243b558 JF |
6769 | if test -n "$ac_ct_AR"; then |
6770 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6771 | else |
6772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6773 | for as_dir in $PATH | |
6774 | do | |
6775 | IFS=$as_save_IFS | |
6776 | test -z "$as_dir" && as_dir=. | |
6777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6779 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6781 | break 2 | |
6782 | fi | |
6783 | done | |
6784 | done | |
6785 | IFS=$as_save_IFS | |
6786 | ||
6787 | fi | |
6788 | fi | |
a243b558 JF |
6789 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6790 | if test -n "$ac_ct_AR"; then | |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6792 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6793 | else |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6795 | $as_echo "no" >&6; } | |
6796 | fi | |
6797 | ||
a243b558 JF |
6798 | |
6799 | test -n "$ac_ct_AR" && break | |
6800 | done | |
6801 | ||
6802 | if test "x$ac_ct_AR" = x; then | |
6803 | AR="false" | |
9c60689e DWT |
6804 | else |
6805 | case $cross_compiling:$ac_tool_warned in | |
6806 | yes:) | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6808 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6809 | ac_tool_warned=yes ;; | |
6810 | esac | |
a243b558 | 6811 | AR=$ac_ct_AR |
9c60689e | 6812 | fi |
a243b558 JF |
6813 | fi |
6814 | ||
6815 | : ${AR=ar} | |
6816 | : ${AR_FLAGS=cru} | |
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6829 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6830 | if ${lt_cv_ar_at_file+:} false; then : | |
6831 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6832 | else |
a243b558 JF |
6833 | lt_cv_ar_at_file=no |
6834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6835 | /* end confdefs.h. */ | |
6836 | ||
6837 | int | |
6838 | main () | |
6839 | { | |
6840 | ||
6841 | ; | |
6842 | return 0; | |
6843 | } | |
6844 | _ACEOF | |
6845 | if ac_fn_c_try_compile "$LINENO"; then : | |
6846 | echo conftest.$ac_objext > conftest.lst | |
6847 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6848 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6849 | (eval $lt_ar_try) 2>&5 | |
6850 | ac_status=$? | |
6851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6852 | test $ac_status = 0; } | |
9d54db95 | 6853 | if test 0 -eq "$ac_status"; then |
a243b558 JF |
6854 | # Ensure the archiver fails upon bogus file names. |
6855 | rm -f conftest.$ac_objext libconftest.a | |
6856 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6857 | (eval $lt_ar_try) 2>&5 | |
6858 | ac_status=$? | |
6859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6860 | test $ac_status = 0; } | |
9d54db95 | 6861 | if test 0 -ne "$ac_status"; then |
a243b558 JF |
6862 | lt_cv_ar_at_file=@ |
6863 | fi | |
6864 | fi | |
6865 | rm -f conftest.* libconftest.a | |
6866 | ||
9c60689e | 6867 | fi |
a243b558 | 6868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6869 | |
a243b558 JF |
6870 | fi |
6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6872 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6873 | ||
9d54db95 | 6874 | if test no = "$lt_cv_ar_at_file"; then |
a243b558 JF |
6875 | archiver_list_spec= |
6876 | else | |
6877 | archiver_list_spec=$lt_cv_ar_at_file | |
6878 | fi | |
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | ||
6885 | ||
6886 | if test -n "$ac_tool_prefix"; then | |
6887 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6888 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6890 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6891 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6892 | $as_echo_n "(cached) " >&6 |
6893 | else | |
a243b558 JF |
6894 | if test -n "$STRIP"; then |
6895 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6896 | else |
6897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6898 | for as_dir in $PATH | |
6899 | do | |
6900 | IFS=$as_save_IFS | |
6901 | test -z "$as_dir" && as_dir=. | |
6902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6904 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6906 | break 2 | |
6907 | fi | |
6908 | done | |
6909 | done | |
6910 | IFS=$as_save_IFS | |
6911 | ||
6912 | fi | |
6913 | fi | |
a243b558 JF |
6914 | STRIP=$ac_cv_prog_STRIP |
6915 | if test -n "$STRIP"; then | |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6917 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6918 | else |
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6920 | $as_echo "no" >&6; } | |
6921 | fi | |
6922 | ||
6923 | ||
6924 | fi | |
a243b558 JF |
6925 | if test -z "$ac_cv_prog_STRIP"; then |
6926 | ac_ct_STRIP=$STRIP | |
6927 | # Extract the first word of "strip", so it can be a program name with args. | |
6928 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6930 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6931 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6932 | $as_echo_n "(cached) " >&6 |
6933 | else | |
a243b558 JF |
6934 | if test -n "$ac_ct_STRIP"; then |
6935 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6936 | else |
6937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6938 | for as_dir in $PATH | |
6939 | do | |
6940 | IFS=$as_save_IFS | |
6941 | test -z "$as_dir" && as_dir=. | |
6942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6944 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6946 | break 2 | |
6947 | fi | |
6948 | done | |
6949 | done | |
6950 | IFS=$as_save_IFS | |
6951 | ||
6952 | fi | |
6953 | fi | |
a243b558 JF |
6954 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6955 | if test -n "$ac_ct_STRIP"; then | |
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6957 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6958 | else |
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6960 | $as_echo "no" >&6; } | |
6961 | fi | |
6962 | ||
a243b558 JF |
6963 | if test "x$ac_ct_STRIP" = x; then |
6964 | STRIP=":" | |
9c60689e DWT |
6965 | else |
6966 | case $cross_compiling:$ac_tool_warned in | |
6967 | yes:) | |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6969 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6970 | ac_tool_warned=yes ;; | |
6971 | esac | |
a243b558 | 6972 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6973 | fi |
6974 | else | |
a243b558 | 6975 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6976 | fi |
6977 | ||
a243b558 JF |
6978 | test -z "$STRIP" && STRIP=: |
6979 | ||
6980 | ||
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | if test -n "$ac_tool_prefix"; then | |
6986 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6987 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6989 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6990 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
6991 | $as_echo_n "(cached) " >&6 |
6992 | else | |
a243b558 JF |
6993 | if test -n "$RANLIB"; then |
6994 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
6995 | else |
6996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6997 | for as_dir in $PATH | |
6998 | do | |
6999 | IFS=$as_save_IFS | |
7000 | test -z "$as_dir" && as_dir=. | |
7001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7003 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
7004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7005 | break 2 | |
7006 | fi | |
7007 | done | |
7008 | done | |
7009 | IFS=$as_save_IFS | |
7010 | ||
7011 | fi | |
7012 | fi | |
a243b558 JF |
7013 | RANLIB=$ac_cv_prog_RANLIB |
7014 | if test -n "$RANLIB"; then | |
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7016 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
7017 | else |
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7019 | $as_echo "no" >&6; } | |
7020 | fi | |
7021 | ||
7022 | ||
7023 | fi | |
a243b558 JF |
7024 | if test -z "$ac_cv_prog_RANLIB"; then |
7025 | ac_ct_RANLIB=$RANLIB | |
7026 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7027 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7029 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7030 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
7031 | $as_echo_n "(cached) " >&6 |
7032 | else | |
a243b558 JF |
7033 | if test -n "$ac_ct_RANLIB"; then |
7034 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
7035 | else |
7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7037 | for as_dir in $PATH | |
7038 | do | |
7039 | IFS=$as_save_IFS | |
7040 | test -z "$as_dir" && as_dir=. | |
7041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7043 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
7044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7045 | break 2 | |
7046 | fi | |
7047 | done | |
7048 | done | |
7049 | IFS=$as_save_IFS | |
7050 | ||
7051 | fi | |
7052 | fi | |
a243b558 JF |
7053 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7054 | if test -n "$ac_ct_RANLIB"; then | |
7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7056 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
7057 | else |
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7059 | $as_echo "no" >&6; } | |
7060 | fi | |
7061 | ||
a243b558 JF |
7062 | if test "x$ac_ct_RANLIB" = x; then |
7063 | RANLIB=":" | |
9c60689e DWT |
7064 | else |
7065 | case $cross_compiling:$ac_tool_warned in | |
7066 | yes:) | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7069 | ac_tool_warned=yes ;; | |
7070 | esac | |
a243b558 | 7071 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
7072 | fi |
7073 | else | |
a243b558 | 7074 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
7075 | fi |
7076 | ||
a243b558 JF |
7077 | test -z "$RANLIB" && RANLIB=: |
7078 | ||
7079 | ||
9c60689e | 7080 | |
9c60689e DWT |
7081 | |
7082 | ||
a243b558 JF |
7083 | |
7084 | # Determine commands to create old-style static archives. | |
7085 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7086 | old_postinstall_cmds='chmod 644 $oldlib' | |
7087 | old_postuninstall_cmds= | |
7088 | ||
7089 | if test -n "$RANLIB"; then | |
7090 | case $host_os in | |
9d54db95 | 7091 | bitrig* | openbsd*) |
a243b558 JF |
7092 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
7093 | ;; | |
7094 | *) | |
7095 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7096 | ;; | |
7097 | esac | |
7098 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
7099 | fi |
7100 | ||
a243b558 JF |
7101 | case $host_os in |
7102 | darwin*) | |
7103 | lock_old_archive_extraction=yes ;; | |
7104 | *) | |
7105 | lock_old_archive_extraction=no ;; | |
9c60689e | 7106 | esac |
9c60689e | 7107 | |
9c60689e | 7108 | |
9c60689e DWT |
7109 | |
7110 | ||
9c60689e | 7111 | |
9c60689e | 7112 | |
9c60689e DWT |
7113 | |
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
53ba6704 | 7140 | |
9c60689e | 7141 | |
9c60689e | 7142 | |
9c60689e | 7143 | |
53ba6704 | 7144 | |
a243b558 JF |
7145 | |
7146 | # If no C compiler was specified, use CC. | |
7147 | LTCC=${LTCC-"$CC"} | |
7148 | ||
7149 | # If no C compiler flags were specified, use CFLAGS. | |
7150 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7151 | ||
7152 | # Allow CC to be a program name with arguments. | |
7153 | compiler=$CC | |
7154 | ||
7155 | ||
7156 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7158 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7159 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7160 | $as_echo_n "(cached) " >&6 |
7161 | else | |
ee134472 | 7162 | |
a243b558 JF |
7163 | # These are sane defaults that work on at least a few old systems. |
7164 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7165 | |
a243b558 JF |
7166 | # Character class describing NM global symbol codes. |
7167 | symcode='[BCDEGRST]' | |
9c60689e | 7168 | |
a243b558 JF |
7169 | # Regexp to match symbols that can be accessed directly from C. |
7170 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7171 | |
a243b558 JF |
7172 | # Define system-specific variables. |
7173 | case $host_os in | |
7174 | aix*) | |
7175 | symcode='[BCDT]' | |
7176 | ;; | |
7177 | cygwin* | mingw* | pw32* | cegcc*) | |
7178 | symcode='[ABCDGISTW]' | |
7179 | ;; | |
7180 | hpux*) | |
9d54db95 | 7181 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
7182 | symcode='[ABCDEGRST]' |
7183 | fi | |
7184 | ;; | |
7185 | irix* | nonstopux*) | |
7186 | symcode='[BCDEGRST]' | |
7187 | ;; | |
7188 | osf*) | |
7189 | symcode='[BCDEGQRST]' | |
7190 | ;; | |
7191 | solaris*) | |
7192 | symcode='[BDRT]' | |
7193 | ;; | |
7194 | sco3.2v5*) | |
7195 | symcode='[DT]' | |
7196 | ;; | |
7197 | sysv4.2uw2*) | |
7198 | symcode='[DT]' | |
7199 | ;; | |
7200 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7201 | symcode='[ABDT]' | |
7202 | ;; | |
7203 | sysv4) | |
7204 | symcode='[DFNSTU]' | |
7205 | ;; | |
7206 | esac | |
9c60689e | 7207 | |
a243b558 JF |
7208 | # If we're using GNU nm, then use its standard symbol codes. |
7209 | case `$NM -V 2>&1` in | |
7210 | *GNU* | *'with BFD'*) | |
7211 | symcode='[ABCDGIRSTW]' ;; | |
7212 | esac | |
9c60689e | 7213 | |
9d54db95 JF |
7214 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7215 | # Gets list of data symbols to import. | |
7216 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7217 | # Adjust the below global symbol transforms to fixup imported variables. | |
7218 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7219 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7220 | lt_c_name_lib_hook="\ | |
7221 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7222 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7223 | else | |
7224 | # Disable hooks by default. | |
7225 | lt_cv_sys_global_symbol_to_import= | |
7226 | lt_cdecl_hook= | |
7227 | lt_c_name_hook= | |
7228 | lt_c_name_lib_hook= | |
7229 | fi | |
7230 | ||
a243b558 JF |
7231 | # Transform an extracted symbol line into a proper C declaration. |
7232 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7233 | # so use this general approach. | |
9d54db95 JF |
7234 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
7235 | $lt_cdecl_hook\ | |
7236 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7237 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7238 | |
a243b558 | 7239 | # Transform an extracted symbol line into symbol name and symbol address |
9d54db95 JF |
7240 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
7241 | $lt_c_name_hook\ | |
7242 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7243 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7244 | ||
7245 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7246 | # symbol address. | |
7247 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7248 | $lt_c_name_lib_hook\ | |
7249 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7250 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7251 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
9c60689e | 7252 | |
a243b558 JF |
7253 | # Handle CRLF in mingw tool chain |
7254 | opt_cr= | |
7255 | case $build_os in | |
7256 | mingw*) | |
7257 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7258 | ;; | |
7259 | esac | |
9c60689e | 7260 | |
a243b558 JF |
7261 | # Try without a prefix underscore, then with it. |
7262 | for ac_symprfx in "" "_"; do | |
9c60689e | 7263 | |
a243b558 JF |
7264 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7265 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7266 | |
a243b558 JF |
7267 | # Write the raw and C identifiers. |
7268 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9d54db95 JF |
7269 | # Fake it for dumpbin and say T for any non-static function, |
7270 | # D for any global variable and I for any imported variable. | |
a243b558 JF |
7271 | # Also find C++ and __fastcall symbols from MSVC++, |
7272 | # which start with @ or ?. | |
7273 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7274 | " {last_section=section; section=\$ 3};"\ | |
7275 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7276 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
9d54db95 JF |
7277 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
7278 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7279 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
a243b558 JF |
7280 | " \$ 0!~/External *\|/{next};"\ |
7281 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7282 | " {if(hide[section]) next};"\ | |
9d54db95 JF |
7283 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
7284 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7285 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7286 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
a243b558 JF |
7287 | " ' prfx=^$ac_symprfx" |
7288 | else | |
7289 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7290 | fi | |
7291 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7292 | |
a243b558 JF |
7293 | # Check to see that the pipe works correctly. |
7294 | pipe_works=no | |
9c60689e | 7295 | |
00a96142 | 7296 | rm -rf conftest* |
a243b558 JF |
7297 | cat > conftest.$ac_ext <<_LT_EOF |
7298 | #ifdef __cplusplus | |
7299 | extern "C" { | |
7300 | #endif | |
7301 | char nm_test_var; | |
7302 | void nm_test_func(void); | |
7303 | void nm_test_func(void){} | |
7304 | #ifdef __cplusplus | |
7305 | } | |
7306 | #endif | |
7307 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7308 | _LT_EOF | |
9c60689e | 7309 | |
a243b558 JF |
7310 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7311 | (eval $ac_compile) 2>&5 | |
7312 | ac_status=$? | |
7313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7314 | test $ac_status = 0; }; then | |
7315 | # Now try to grab the symbols. | |
7316 | nlist=conftest.nm | |
7317 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7318 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7319 | ac_status=$? | |
7320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7321 | test $ac_status = 0; } && test -s "$nlist"; then | |
7322 | # Try sorting and uniquifying the output. | |
7323 | if sort "$nlist" | uniq > "$nlist"T; then | |
7324 | mv -f "$nlist"T "$nlist" | |
7325 | else | |
7326 | rm -f "$nlist"T | |
7327 | fi | |
9c60689e | 7328 | |
a243b558 JF |
7329 | # Make sure that we snagged all the symbols we need. |
7330 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7331 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7332 | cat <<_LT_EOF > conftest.$ac_ext | |
7333 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
9d54db95 JF |
7334 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
7335 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
a243b558 JF |
7336 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
7337 | # define LT_DLSYM_CONST | |
9d54db95 | 7338 | #elif defined __osf__ |
a243b558 JF |
7339 | /* This system does not cope well with relocations in const data. */ |
7340 | # define LT_DLSYM_CONST | |
7341 | #else | |
7342 | # define LT_DLSYM_CONST const | |
7343 | #endif | |
9c60689e | 7344 | |
a243b558 JF |
7345 | #ifdef __cplusplus |
7346 | extern "C" { | |
7347 | #endif | |
9c60689e | 7348 | |
a243b558 JF |
7349 | _LT_EOF |
7350 | # Now generate the symbol file. | |
7351 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7352 | |
a243b558 | 7353 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7354 | |
a243b558 JF |
7355 | /* The mapping between symbol names and symbols. */ |
7356 | LT_DLSYM_CONST struct { | |
7357 | const char *name; | |
7358 | void *address; | |
7359 | } | |
7360 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7361 | { | |
7362 | { "@PROGRAM@", (void *) 0 }, | |
7363 | _LT_EOF | |
9d54db95 | 7364 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
a243b558 JF |
7365 | cat <<\_LT_EOF >> conftest.$ac_ext |
7366 | {0, (void *) 0} | |
7367 | }; | |
9c60689e | 7368 | |
a243b558 JF |
7369 | /* This works around a problem in FreeBSD linker */ |
7370 | #ifdef FREEBSD_WORKAROUND | |
7371 | static const void *lt_preloaded_setup() { | |
7372 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7373 | } | |
7374 | #endif | |
9c60689e | 7375 | |
a243b558 JF |
7376 | #ifdef __cplusplus |
7377 | } | |
7378 | #endif | |
7379 | _LT_EOF | |
7380 | # Now try linking the two files. | |
7381 | mv conftest.$ac_objext conftstm.$ac_objext | |
7382 | lt_globsym_save_LIBS=$LIBS | |
7383 | lt_globsym_save_CFLAGS=$CFLAGS | |
9d54db95 | 7384 | LIBS=conftstm.$ac_objext |
a243b558 JF |
7385 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
7386 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7387 | (eval $ac_link) 2>&5 | |
7388 | ac_status=$? | |
7389 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 7390 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
a243b558 JF |
7391 | pipe_works=yes |
7392 | fi | |
7393 | LIBS=$lt_globsym_save_LIBS | |
7394 | CFLAGS=$lt_globsym_save_CFLAGS | |
7395 | else | |
7396 | echo "cannot find nm_test_func in $nlist" >&5 | |
7397 | fi | |
7398 | else | |
7399 | echo "cannot find nm_test_var in $nlist" >&5 | |
7400 | fi | |
7401 | else | |
7402 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7403 | fi | |
7404 | else | |
7405 | echo "$progname: failed program was:" >&5 | |
7406 | cat conftest.$ac_ext >&5 | |
7407 | fi | |
7408 | rm -rf conftest* conftst* | |
9c60689e | 7409 | |
a243b558 | 7410 | # Do not use the global_symbol_pipe unless it works. |
9d54db95 | 7411 | if test yes = "$pipe_works"; then |
a243b558 JF |
7412 | break |
7413 | else | |
7414 | lt_cv_sys_global_symbol_pipe= | |
7415 | fi | |
7416 | done | |
9c60689e | 7417 | |
9c60689e | 7418 | fi |
9c60689e | 7419 | |
a243b558 JF |
7420 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7421 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7422 | fi |
a243b558 JF |
7423 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7425 | $as_echo "failed" >&6; } | |
9c60689e | 7426 | else |
a243b558 JF |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7428 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7429 | fi |
7430 | ||
a243b558 JF |
7431 | # Response file support. |
7432 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7433 | nm_file_list_spec='@' | |
7434 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7435 | nm_file_list_spec='@' | |
9c60689e | 7436 | fi |
9c60689e | 7437 | |
9c60689e | 7438 | |
9c60689e | 7439 | |
9c60689e | 7440 | |
9c60689e | 7441 | |
9c60689e DWT |
7442 | |
7443 | ||
9c60689e | 7444 | |
9c60689e | 7445 | |
9c60689e DWT |
7446 | |
7447 | ||
7448 | ||
ee134472 JF |
7449 | |
7450 | ||
9c60689e DWT |
7451 | |
7452 | ||
9d54db95 JF |
7453 | |
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
9c60689e DWT |
7463 | |
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
549f29b5 | 7470 | |
549f29b5 DWT |
7471 | |
7472 | ||
549f29b5 | 7473 | |
a243b558 JF |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7475 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7476 | |
a243b558 JF |
7477 | # Check whether --with-sysroot was given. |
7478 | if test "${with_sysroot+set}" = set; then : | |
7479 | withval=$with_sysroot; | |
9c60689e | 7480 | else |
a243b558 | 7481 | with_sysroot=no |
9c60689e DWT |
7482 | fi |
7483 | ||
7484 | ||
a243b558 | 7485 | lt_sysroot= |
9d54db95 | 7486 | case $with_sysroot in #( |
a243b558 | 7487 | yes) |
9d54db95 | 7488 | if test yes = "$GCC"; then |
a243b558 JF |
7489 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
7490 | fi | |
7491 | ;; #( | |
7492 | /*) | |
7493 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7494 | ;; #( | |
7495 | no|'') | |
7496 | ;; #( | |
7497 | *) | |
9d54db95 JF |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
7499 | $as_echo "$with_sysroot" >&6; } | |
a243b558 JF |
7500 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
7501 | ;; | |
7502 | esac | |
9c60689e | 7503 | |
a243b558 JF |
7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7505 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7506 | |
7507 | ||
7508 | ||
7509 | ||
7510 | ||
9d54db95 JF |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
7512 | $as_echo_n "checking for a working dd... " >&6; } | |
7513 | if ${ac_cv_path_lt_DD+:} false; then : | |
7514 | $as_echo_n "(cached) " >&6 | |
7515 | else | |
7516 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7517 | cat conftest.i conftest.i >conftest2.i | |
7518 | : ${lt_DD:=$DD} | |
7519 | if test -z "$lt_DD"; then | |
7520 | ac_path_lt_DD_found=false | |
7521 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7523 | for as_dir in $PATH | |
7524 | do | |
7525 | IFS=$as_save_IFS | |
7526 | test -z "$as_dir" && as_dir=. | |
7527 | for ac_prog in dd; do | |
7528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7529 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7530 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7531 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7532 | cmp -s conftest.i conftest.out \ | |
7533 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7534 | fi | |
7535 | $ac_path_lt_DD_found && break 3 | |
7536 | done | |
7537 | done | |
7538 | done | |
7539 | IFS=$as_save_IFS | |
7540 | if test -z "$ac_cv_path_lt_DD"; then | |
7541 | : | |
7542 | fi | |
7543 | else | |
7544 | ac_cv_path_lt_DD=$lt_DD | |
7545 | fi | |
7546 | ||
7547 | rm -f conftest.i conftest2.i conftest.out | |
7548 | fi | |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7550 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7551 | ||
7552 | ||
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7554 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7555 | if ${lt_cv_truncate_bin+:} false; then : | |
7556 | $as_echo_n "(cached) " >&6 | |
7557 | else | |
7558 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7559 | cat conftest.i conftest.i >conftest2.i | |
7560 | lt_cv_truncate_bin= | |
7561 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7562 | cmp -s conftest.i conftest.out \ | |
7563 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7564 | fi | |
7565 | rm -f conftest.i conftest2.i conftest.out | |
7566 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7567 | fi | |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7569 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7578 | func_cc_basename () | |
7579 | { | |
7580 | for cc_temp in $*""; do | |
7581 | case $cc_temp in | |
7582 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7583 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7584 | \-*) ;; | |
7585 | *) break;; | |
7586 | esac | |
7587 | done | |
7588 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7589 | } | |
7590 | ||
a243b558 JF |
7591 | # Check whether --enable-libtool-lock was given. |
7592 | if test "${enable_libtool_lock+set}" = set; then : | |
7593 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7594 | fi |
7595 | ||
9d54db95 | 7596 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
9c60689e | 7597 | |
a243b558 JF |
7598 | # Some flags need to be propagated to the compiler or linker for good |
7599 | # libtool support. | |
7600 | case $host in | |
7601 | ia64-*-hpux*) | |
9d54db95 JF |
7602 | # Find out what ABI is being produced by ac_compile, and set mode |
7603 | # options accordingly. | |
a243b558 JF |
7604 | echo 'int i;' > conftest.$ac_ext |
7605 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7606 | (eval $ac_compile) 2>&5 | |
7607 | ac_status=$? | |
7608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7609 | test $ac_status = 0; }; then | |
7610 | case `/usr/bin/file conftest.$ac_objext` in | |
7611 | *ELF-32*) | |
9d54db95 | 7612 | HPUX_IA64_MODE=32 |
a243b558 JF |
7613 | ;; |
7614 | *ELF-64*) | |
9d54db95 | 7615 | HPUX_IA64_MODE=64 |
a243b558 JF |
7616 | ;; |
7617 | esac | |
7618 | fi | |
7619 | rm -rf conftest* | |
7620 | ;; | |
7621 | *-*-irix6*) | |
9d54db95 JF |
7622 | # Find out what ABI is being produced by ac_compile, and set linker |
7623 | # options accordingly. | |
a243b558 JF |
7624 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7625 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7626 | (eval $ac_compile) 2>&5 | |
7627 | ac_status=$? | |
7628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7629 | test $ac_status = 0; }; then | |
9d54db95 | 7630 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
7631 | case `/usr/bin/file conftest.$ac_objext` in |
7632 | *32-bit*) | |
7633 | LD="${LD-ld} -melf32bsmip" | |
7634 | ;; | |
7635 | *N32*) | |
7636 | LD="${LD-ld} -melf32bmipn32" | |
7637 | ;; | |
7638 | *64-bit*) | |
7639 | LD="${LD-ld} -melf64bmip" | |
7640 | ;; | |
7641 | esac | |
7642 | else | |
7643 | case `/usr/bin/file conftest.$ac_objext` in | |
7644 | *32-bit*) | |
7645 | LD="${LD-ld} -32" | |
7646 | ;; | |
7647 | *N32*) | |
7648 | LD="${LD-ld} -n32" | |
7649 | ;; | |
7650 | *64-bit*) | |
7651 | LD="${LD-ld} -64" | |
7652 | ;; | |
7653 | esac | |
7654 | fi | |
7655 | fi | |
7656 | rm -rf conftest* | |
7657 | ;; | |
9c60689e | 7658 | |
9d54db95 JF |
7659 | mips64*-*linux*) |
7660 | # Find out what ABI is being produced by ac_compile, and set linker | |
7661 | # options accordingly. | |
7662 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7663 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7664 | (eval $ac_compile) 2>&5 | |
7665 | ac_status=$? | |
7666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7667 | test $ac_status = 0; }; then | |
7668 | emul=elf | |
7669 | case `/usr/bin/file conftest.$ac_objext` in | |
7670 | *32-bit*) | |
7671 | emul="${emul}32" | |
7672 | ;; | |
7673 | *64-bit*) | |
7674 | emul="${emul}64" | |
7675 | ;; | |
7676 | esac | |
7677 | case `/usr/bin/file conftest.$ac_objext` in | |
7678 | *MSB*) | |
7679 | emul="${emul}btsmip" | |
7680 | ;; | |
7681 | *LSB*) | |
7682 | emul="${emul}ltsmip" | |
7683 | ;; | |
7684 | esac | |
7685 | case `/usr/bin/file conftest.$ac_objext` in | |
7686 | *N32*) | |
7687 | emul="${emul}n32" | |
7688 | ;; | |
7689 | esac | |
7690 | LD="${LD-ld} -m $emul" | |
7691 | fi | |
7692 | rm -rf conftest* | |
7693 | ;; | |
7694 | ||
7695 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
a243b558 | 7696 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
9d54db95 JF |
7697 | # Find out what ABI is being produced by ac_compile, and set linker |
7698 | # options accordingly. Note that the listed cases only cover the | |
7699 | # situations where additional linker options are needed (such as when | |
7700 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7701 | # vice versa); the common cases where no linker options are needed do | |
7702 | # not appear in the list. | |
a243b558 JF |
7703 | echo 'int i;' > conftest.$ac_ext |
7704 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7705 | (eval $ac_compile) 2>&5 | |
7706 | ac_status=$? | |
7707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7708 | test $ac_status = 0; }; then | |
7709 | case `/usr/bin/file conftest.o` in | |
7710 | *32-bit*) | |
7711 | case $host in | |
7712 | x86_64-*kfreebsd*-gnu) | |
7713 | LD="${LD-ld} -m elf_i386_fbsd" | |
7714 | ;; | |
7715 | x86_64-*linux*) | |
9d54db95 JF |
7716 | case `/usr/bin/file conftest.o` in |
7717 | *x86-64*) | |
7718 | LD="${LD-ld} -m elf32_x86_64" | |
7719 | ;; | |
7720 | *) | |
7721 | LD="${LD-ld} -m elf_i386" | |
7722 | ;; | |
7723 | esac | |
a243b558 | 7724 | ;; |
9d54db95 JF |
7725 | powerpc64le-*linux*) |
7726 | LD="${LD-ld} -m elf32lppclinux" | |
7727 | ;; | |
7728 | powerpc64-*linux*) | |
a243b558 JF |
7729 | LD="${LD-ld} -m elf32ppclinux" |
7730 | ;; | |
7731 | s390x-*linux*) | |
7732 | LD="${LD-ld} -m elf_s390" | |
7733 | ;; | |
7734 | sparc64-*linux*) | |
7735 | LD="${LD-ld} -m elf32_sparc" | |
7736 | ;; | |
7737 | esac | |
7738 | ;; | |
7739 | *64-bit*) | |
7740 | case $host in | |
7741 | x86_64-*kfreebsd*-gnu) | |
7742 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7743 | ;; | |
7744 | x86_64-*linux*) | |
7745 | LD="${LD-ld} -m elf_x86_64" | |
7746 | ;; | |
9d54db95 JF |
7747 | powerpcle-*linux*) |
7748 | LD="${LD-ld} -m elf64lppc" | |
7749 | ;; | |
7750 | powerpc-*linux*) | |
a243b558 JF |
7751 | LD="${LD-ld} -m elf64ppc" |
7752 | ;; | |
7753 | s390*-*linux*|s390*-*tpf*) | |
7754 | LD="${LD-ld} -m elf64_s390" | |
7755 | ;; | |
7756 | sparc*-*linux*) | |
7757 | LD="${LD-ld} -m elf64_sparc" | |
7758 | ;; | |
7759 | esac | |
7760 | ;; | |
7761 | esac | |
7762 | fi | |
7763 | rm -rf conftest* | |
7764 | ;; | |
9c60689e | 7765 | |
a243b558 JF |
7766 | *-*-sco3.2v5*) |
7767 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
9d54db95 | 7768 | SAVE_CFLAGS=$CFLAGS |
a243b558 JF |
7769 | CFLAGS="$CFLAGS -belf" |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7771 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7772 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7773 | $as_echo_n "(cached) " >&6 | |
7774 | else | |
7775 | ac_ext=c | |
7776 | ac_cpp='$CPP $CPPFLAGS' | |
7777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7780 | |
a243b558 JF |
7781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7782 | /* end confdefs.h. */ | |
9c60689e | 7783 | |
a243b558 JF |
7784 | int |
7785 | main () | |
7786 | { | |
9c60689e | 7787 | |
a243b558 JF |
7788 | ; |
7789 | return 0; | |
7790 | } | |
7791 | _ACEOF | |
7792 | if ac_fn_c_try_link "$LINENO"; then : | |
7793 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7794 | else |
a243b558 | 7795 | lt_cv_cc_needs_belf=no |
9c60689e | 7796 | fi |
a243b558 JF |
7797 | rm -f core conftest.err conftest.$ac_objext \ |
7798 | conftest$ac_exeext conftest.$ac_ext | |
7799 | ac_ext=c | |
7800 | ac_cpp='$CPP $CPPFLAGS' | |
7801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7804 | |
a243b558 JF |
7805 | fi |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7807 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
9d54db95 | 7808 | if test yes != "$lt_cv_cc_needs_belf"; then |
a243b558 | 7809 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
9d54db95 | 7810 | CFLAGS=$SAVE_CFLAGS |
a243b558 JF |
7811 | fi |
7812 | ;; | |
7813 | *-*solaris*) | |
9d54db95 JF |
7814 | # Find out what ABI is being produced by ac_compile, and set linker |
7815 | # options accordingly. | |
a243b558 JF |
7816 | echo 'int i;' > conftest.$ac_ext |
7817 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7818 | (eval $ac_compile) 2>&5 | |
7819 | ac_status=$? | |
7820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7821 | test $ac_status = 0; }; then | |
7822 | case `/usr/bin/file conftest.o` in | |
7823 | *64-bit*) | |
7824 | case $lt_cv_prog_gnu_ld in | |
7825 | yes*) | |
7826 | case $host in | |
9d54db95 | 7827 | i?86-*-solaris*|x86_64-*-solaris*) |
a243b558 JF |
7828 | LD="${LD-ld} -m elf_x86_64" |
7829 | ;; | |
7830 | sparc*-*-solaris*) | |
7831 | LD="${LD-ld} -m elf64_sparc" | |
7832 | ;; | |
7833 | esac | |
7834 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7835 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
9d54db95 | 7836 | LD=${LD-ld}_sol2 |
a243b558 JF |
7837 | fi |
7838 | ;; | |
7839 | *) | |
7840 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7841 | LD="${LD-ld} -64" | |
7842 | fi | |
7843 | ;; | |
7844 | esac | |
7845 | ;; | |
7846 | esac | |
7847 | fi | |
7848 | rm -rf conftest* | |
7849 | ;; | |
7850 | esac | |
9c60689e | 7851 | |
9d54db95 | 7852 | need_locks=$enable_libtool_lock |
9c60689e | 7853 | |
a243b558 JF |
7854 | if test -n "$ac_tool_prefix"; then |
7855 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7856 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7858 | $as_echo_n "checking for $ac_word... " >&6; } | |
7859 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7860 | $as_echo_n "(cached) " >&6 | |
7861 | else | |
7862 | if test -n "$MANIFEST_TOOL"; then | |
7863 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7864 | else | |
7865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7866 | for as_dir in $PATH | |
7867 | do | |
7868 | IFS=$as_save_IFS | |
7869 | test -z "$as_dir" && as_dir=. | |
7870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7872 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7874 | break 2 | |
7875 | fi | |
7876 | done | |
7877 | done | |
7878 | IFS=$as_save_IFS | |
9c60689e | 7879 | |
a243b558 JF |
7880 | fi |
7881 | fi | |
7882 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7883 | if test -n "$MANIFEST_TOOL"; then | |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7885 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7886 | else | |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7888 | $as_echo "no" >&6; } | |
7889 | fi | |
9c60689e DWT |
7890 | |
7891 | ||
a243b558 JF |
7892 | fi |
7893 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7894 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7895 | # Extract the first word of "mt", so it can be a program name with args. | |
7896 | set dummy mt; ac_word=$2 | |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7898 | $as_echo_n "checking for $ac_word... " >&6; } | |
7899 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7900 | $as_echo_n "(cached) " >&6 | |
7901 | else | |
7902 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7903 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7904 | else | |
7905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7906 | for as_dir in $PATH | |
7907 | do | |
7908 | IFS=$as_save_IFS | |
7909 | test -z "$as_dir" && as_dir=. | |
7910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7912 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7914 | break 2 | |
7915 | fi | |
7916 | done | |
7917 | done | |
7918 | IFS=$as_save_IFS | |
9c60689e | 7919 | |
a243b558 JF |
7920 | fi |
7921 | fi | |
7922 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7923 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7925 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7926 | else | |
7927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7928 | $as_echo "no" >&6; } | |
7929 | fi | |
9c60689e | 7930 | |
a243b558 JF |
7931 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7932 | MANIFEST_TOOL=":" | |
7933 | else | |
7934 | case $cross_compiling:$ac_tool_warned in | |
7935 | yes:) | |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7937 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7938 | ac_tool_warned=yes ;; | |
7939 | esac | |
7940 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7941 | fi | |
7942 | else | |
7943 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7944 | fi | |
9c60689e | 7945 | |
a243b558 JF |
7946 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7948 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7949 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7950 | $as_echo_n "(cached) " >&6 | |
7951 | else | |
7952 | lt_cv_path_mainfest_tool=no | |
7953 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7954 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7955 | cat conftest.err >&5 | |
7956 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7957 | lt_cv_path_mainfest_tool=yes | |
7958 | fi | |
00a96142 | 7959 | rm -rf conftest* |
a243b558 JF |
7960 | fi |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7962 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
9d54db95 | 7963 | if test yes != "$lt_cv_path_mainfest_tool"; then |
a243b558 JF |
7964 | MANIFEST_TOOL=: |
7965 | fi | |
9c60689e DWT |
7966 | |
7967 | ||
7968 | ||
7969 | ||
7970 | ||
7971 | ||
a243b558 JF |
7972 | case $host_os in |
7973 | rhapsody* | darwin*) | |
7974 | if test -n "$ac_tool_prefix"; then | |
7975 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7976 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7978 | $as_echo_n "checking for $ac_word... " >&6; } | |
7979 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7980 | $as_echo_n "(cached) " >&6 | |
7981 | else | |
7982 | if test -n "$DSYMUTIL"; then | |
7983 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7984 | else | |
7985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7986 | for as_dir in $PATH | |
7987 | do | |
7988 | IFS=$as_save_IFS | |
7989 | test -z "$as_dir" && as_dir=. | |
7990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7992 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7994 | break 2 | |
7995 | fi | |
7996 | done | |
7997 | done | |
7998 | IFS=$as_save_IFS | |
9c60689e | 7999 | |
a243b558 JF |
8000 | fi |
8001 | fi | |
8002 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8003 | if test -n "$DSYMUTIL"; then | |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8005 | $as_echo "$DSYMUTIL" >&6; } | |
8006 | else | |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8008 | $as_echo "no" >&6; } | |
8009 | fi | |
9c60689e DWT |
8010 | |
8011 | ||
9c60689e | 8012 | fi |
a243b558 JF |
8013 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
8014 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8015 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8016 | set dummy dsymutil; ac_word=$2 | |
8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8018 | $as_echo_n "checking for $ac_word... " >&6; } | |
8019 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
8020 | $as_echo_n "(cached) " >&6 |
8021 | else | |
a243b558 JF |
8022 | if test -n "$ac_ct_DSYMUTIL"; then |
8023 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 8024 | else |
a243b558 JF |
8025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8026 | for as_dir in $PATH | |
8027 | do | |
8028 | IFS=$as_save_IFS | |
8029 | test -z "$as_dir" && as_dir=. | |
8030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8032 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8034 | break 2 | |
8035 | fi | |
8036 | done | |
8037 | done | |
8038 | IFS=$as_save_IFS | |
8039 | ||
9c60689e | 8040 | fi |
9c60689e | 8041 | fi |
a243b558 JF |
8042 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8043 | if test -n "$ac_ct_DSYMUTIL"; then | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8045 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8046 | else | |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8048 | $as_echo "no" >&6; } | |
8049 | fi | |
9c60689e | 8050 | |
a243b558 JF |
8051 | if test "x$ac_ct_DSYMUTIL" = x; then |
8052 | DSYMUTIL=":" | |
8053 | else | |
8054 | case $cross_compiling:$ac_tool_warned in | |
8055 | yes:) | |
8056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8057 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8058 | ac_tool_warned=yes ;; | |
9c60689e | 8059 | esac |
a243b558 JF |
8060 | DSYMUTIL=$ac_ct_DSYMUTIL |
8061 | fi | |
8062 | else | |
8063 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8064 | fi | |
9c60689e | 8065 | |
a243b558 JF |
8066 | if test -n "$ac_tool_prefix"; then |
8067 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8068 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8070 | $as_echo_n "checking for $ac_word... " >&6; } | |
8071 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
8072 | $as_echo_n "(cached) " >&6 |
8073 | else | |
a243b558 JF |
8074 | if test -n "$NMEDIT"; then |
8075 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8076 | else | |
8077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8078 | for as_dir in $PATH | |
8079 | do | |
8080 | IFS=$as_save_IFS | |
8081 | test -z "$as_dir" && as_dir=. | |
8082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8084 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8086 | break 2 | |
8087 | fi | |
8088 | done | |
9c60689e | 8089 | done |
a243b558 | 8090 | IFS=$as_save_IFS |
9c60689e | 8091 | |
a243b558 JF |
8092 | fi |
8093 | fi | |
8094 | NMEDIT=$ac_cv_prog_NMEDIT | |
8095 | if test -n "$NMEDIT"; then | |
8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8097 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
8098 | else |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8100 | $as_echo "no" >&6; } | |
8101 | fi | |
8102 | ||
8103 | ||
a243b558 JF |
8104 | fi |
8105 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8106 | ac_ct_NMEDIT=$NMEDIT | |
8107 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8108 | set dummy nmedit; ac_word=$2 | |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8110 | $as_echo_n "checking for $ac_word... " >&6; } | |
8111 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
8112 | $as_echo_n "(cached) " >&6 |
8113 | else | |
a243b558 JF |
8114 | if test -n "$ac_ct_NMEDIT"; then |
8115 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8116 | else | |
8117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8118 | for as_dir in $PATH | |
8119 | do | |
8120 | IFS=$as_save_IFS | |
8121 | test -z "$as_dir" && as_dir=. | |
8122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8123 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8124 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8126 | break 2 | |
8127 | fi | |
8128 | done | |
9c60689e | 8129 | done |
a243b558 | 8130 | IFS=$as_save_IFS |
9c60689e | 8131 | |
a243b558 JF |
8132 | fi |
8133 | fi | |
8134 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8135 | if test -n "$ac_ct_NMEDIT"; then | |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8137 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
8138 | else |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8140 | $as_echo "no" >&6; } | |
8141 | fi | |
8142 | ||
a243b558 JF |
8143 | if test "x$ac_ct_NMEDIT" = x; then |
8144 | NMEDIT=":" | |
9c60689e | 8145 | else |
a243b558 JF |
8146 | case $cross_compiling:$ac_tool_warned in |
8147 | yes:) | |
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8149 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8150 | ac_tool_warned=yes ;; | |
8151 | esac | |
8152 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 8153 | fi |
a243b558 JF |
8154 | else |
8155 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
8156 | fi |
8157 | ||
a243b558 JF |
8158 | if test -n "$ac_tool_prefix"; then |
8159 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8160 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8162 | $as_echo_n "checking for $ac_word... " >&6; } | |
8163 | if ${ac_cv_prog_LIPO+:} false; then : | |
8164 | $as_echo_n "(cached) " >&6 | |
8165 | else | |
8166 | if test -n "$LIPO"; then | |
8167 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8168 | else | |
8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8170 | for as_dir in $PATH | |
8171 | do | |
8172 | IFS=$as_save_IFS | |
8173 | test -z "$as_dir" && as_dir=. | |
8174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8176 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8178 | break 2 | |
8179 | fi | |
8180 | done | |
8181 | done | |
8182 | IFS=$as_save_IFS | |
9c60689e | 8183 | |
a243b558 JF |
8184 | fi |
8185 | fi | |
8186 | LIPO=$ac_cv_prog_LIPO | |
8187 | if test -n "$LIPO"; then | |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8189 | $as_echo "$LIPO" >&6; } | |
8190 | else | |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8192 | $as_echo "no" >&6; } | |
8193 | fi | |
9c60689e | 8194 | |
9c60689e | 8195 | |
a243b558 JF |
8196 | fi |
8197 | if test -z "$ac_cv_prog_LIPO"; then | |
8198 | ac_ct_LIPO=$LIPO | |
8199 | # Extract the first word of "lipo", so it can be a program name with args. | |
8200 | set dummy lipo; ac_word=$2 | |
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8202 | $as_echo_n "checking for $ac_word... " >&6; } | |
8203 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
8204 | $as_echo_n "(cached) " >&6 |
8205 | else | |
a243b558 JF |
8206 | if test -n "$ac_ct_LIPO"; then |
8207 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8208 | else | |
8209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8210 | for as_dir in $PATH | |
8211 | do | |
8212 | IFS=$as_save_IFS | |
8213 | test -z "$as_dir" && as_dir=. | |
8214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8216 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8218 | break 2 | |
8219 | fi | |
8220 | done | |
8221 | done | |
8222 | IFS=$as_save_IFS | |
9c60689e DWT |
8223 | |
8224 | fi | |
a243b558 JF |
8225 | fi |
8226 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8227 | if test -n "$ac_ct_LIPO"; then | |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8229 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 8230 | else |
a243b558 JF |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8232 | $as_echo "no" >&6; } | |
9c60689e DWT |
8233 | fi |
8234 | ||
a243b558 JF |
8235 | if test "x$ac_ct_LIPO" = x; then |
8236 | LIPO=":" | |
8237 | else | |
8238 | case $cross_compiling:$ac_tool_warned in | |
8239 | yes:) | |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8242 | ac_tool_warned=yes ;; | |
8243 | esac | |
8244 | LIPO=$ac_ct_LIPO | |
8245 | fi | |
8246 | else | |
8247 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
8248 | fi |
8249 | ||
a243b558 JF |
8250 | if test -n "$ac_tool_prefix"; then |
8251 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8252 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8254 | $as_echo_n "checking for $ac_word... " >&6; } | |
8255 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8256 | $as_echo_n "(cached) " >&6 | |
8257 | else | |
8258 | if test -n "$OTOOL"; then | |
8259 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8260 | else | |
8261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8262 | for as_dir in $PATH | |
8263 | do | |
8264 | IFS=$as_save_IFS | |
8265 | test -z "$as_dir" && as_dir=. | |
8266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8268 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8270 | break 2 | |
8271 | fi | |
8272 | done | |
8273 | done | |
8274 | IFS=$as_save_IFS | |
9c60689e | 8275 | |
a243b558 JF |
8276 | fi |
8277 | fi | |
8278 | OTOOL=$ac_cv_prog_OTOOL | |
8279 | if test -n "$OTOOL"; then | |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8281 | $as_echo "$OTOOL" >&6; } | |
8282 | else | |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8284 | $as_echo "no" >&6; } | |
8285 | fi | |
9c60689e DWT |
8286 | |
8287 | ||
a243b558 JF |
8288 | fi |
8289 | if test -z "$ac_cv_prog_OTOOL"; then | |
8290 | ac_ct_OTOOL=$OTOOL | |
8291 | # Extract the first word of "otool", so it can be a program name with args. | |
8292 | set dummy otool; ac_word=$2 | |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8294 | $as_echo_n "checking for $ac_word... " >&6; } | |
8295 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8296 | $as_echo_n "(cached) " >&6 | |
8297 | else | |
8298 | if test -n "$ac_ct_OTOOL"; then | |
8299 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8300 | else | |
8301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8302 | for as_dir in $PATH | |
8303 | do | |
8304 | IFS=$as_save_IFS | |
8305 | test -z "$as_dir" && as_dir=. | |
8306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8308 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8310 | break 2 | |
8311 | fi | |
8312 | done | |
8313 | done | |
8314 | IFS=$as_save_IFS | |
9c60689e | 8315 | |
a243b558 JF |
8316 | fi |
8317 | fi | |
8318 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8319 | if test -n "$ac_ct_OTOOL"; then | |
8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8321 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8322 | else | |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8324 | $as_echo "no" >&6; } | |
8325 | fi | |
9c60689e | 8326 | |
a243b558 JF |
8327 | if test "x$ac_ct_OTOOL" = x; then |
8328 | OTOOL=":" | |
8329 | else | |
8330 | case $cross_compiling:$ac_tool_warned in | |
8331 | yes:) | |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8333 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8334 | ac_tool_warned=yes ;; | |
8335 | esac | |
8336 | OTOOL=$ac_ct_OTOOL | |
8337 | fi | |
8338 | else | |
8339 | OTOOL="$ac_cv_prog_OTOOL" | |
8340 | fi | |
9c60689e | 8341 | |
a243b558 JF |
8342 | if test -n "$ac_tool_prefix"; then |
8343 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8344 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8346 | $as_echo_n "checking for $ac_word... " >&6; } | |
8347 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8348 | $as_echo_n "(cached) " >&6 | |
8349 | else | |
8350 | if test -n "$OTOOL64"; then | |
8351 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8352 | else | |
8353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8354 | for as_dir in $PATH | |
8355 | do | |
8356 | IFS=$as_save_IFS | |
8357 | test -z "$as_dir" && as_dir=. | |
8358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8360 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8362 | break 2 | |
8363 | fi | |
8364 | done | |
8365 | done | |
8366 | IFS=$as_save_IFS | |
9c60689e | 8367 | |
a243b558 JF |
8368 | fi |
8369 | fi | |
8370 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8371 | if test -n "$OTOOL64"; then | |
8372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8373 | $as_echo "$OTOOL64" >&6; } | |
8374 | else | |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8376 | $as_echo "no" >&6; } | |
8377 | fi | |
9c60689e | 8378 | |
9c60689e | 8379 | |
a243b558 JF |
8380 | fi |
8381 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8382 | ac_ct_OTOOL64=$OTOOL64 | |
8383 | # Extract the first word of "otool64", so it can be a program name with args. | |
8384 | set dummy otool64; ac_word=$2 | |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8386 | $as_echo_n "checking for $ac_word... " >&6; } | |
8387 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8388 | $as_echo_n "(cached) " >&6 | |
8389 | else | |
8390 | if test -n "$ac_ct_OTOOL64"; then | |
8391 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8392 | else | |
8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8394 | for as_dir in $PATH | |
8395 | do | |
8396 | IFS=$as_save_IFS | |
8397 | test -z "$as_dir" && as_dir=. | |
8398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8399 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8400 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8402 | break 2 | |
8403 | fi | |
8404 | done | |
8405 | done | |
8406 | IFS=$as_save_IFS | |
9c60689e | 8407 | |
a243b558 JF |
8408 | fi |
8409 | fi | |
8410 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8411 | if test -n "$ac_ct_OTOOL64"; then | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8413 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8414 | else | |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8416 | $as_echo "no" >&6; } | |
8417 | fi | |
9c60689e | 8418 | |
a243b558 JF |
8419 | if test "x$ac_ct_OTOOL64" = x; then |
8420 | OTOOL64=":" | |
8421 | else | |
8422 | case $cross_compiling:$ac_tool_warned in | |
8423 | yes:) | |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8425 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8426 | ac_tool_warned=yes ;; | |
8427 | esac | |
8428 | OTOOL64=$ac_ct_OTOOL64 | |
8429 | fi | |
8430 | else | |
8431 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8432 | fi | |
ee134472 | 8433 | |
9c60689e | 8434 | |
9c60689e | 8435 | |
9c60689e | 8436 | |
9c60689e | 8437 | |
9c60689e | 8438 | |
ee134472 | 8439 | |
9c60689e | 8440 | |
9c60689e | 8441 | |
9c60689e | 8442 | |
9c60689e | 8443 | |
9c60689e | 8444 | |
9c60689e | 8445 | |
9c60689e | 8446 | |
9c60689e | 8447 | |
9c60689e | 8448 | |
9c60689e | 8449 | |
9c60689e | 8450 | |
9c60689e | 8451 | |
9c60689e | 8452 | |
9c60689e | 8453 | |
9c60689e | 8454 | |
9c60689e | 8455 | |
9c60689e | 8456 | |
9c60689e | 8457 | |
a243b558 JF |
8458 | |
8459 | ||
8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8461 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8462 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8463 | $as_echo_n "(cached) " >&6 |
8464 | else | |
a243b558 | 8465 | lt_cv_apple_cc_single_mod=no |
9d54db95 | 8466 | if test -z "$LT_MULTI_MODULE"; then |
a243b558 JF |
8467 | # By default we will add the -single_module flag. You can override |
8468 | # by either setting the environment variable LT_MULTI_MODULE | |
8469 | # non-empty at configure time, or by adding -multi_module to the | |
8470 | # link flags. | |
8471 | rm -rf libconftest.dylib* | |
8472 | echo "int foo(void){return 1;}" > conftest.c | |
8473 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8474 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8475 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8476 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8477 | _lt_result=$? | |
8478 | # If there is a non-empty error log, and "single_module" | |
8479 | # appears in it, assume the flag caused a linker warning | |
8480 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8481 | cat conftest.err >&5 | |
8482 | # Otherwise, if the output was created with a 0 exit code from | |
8483 | # the compiler, it worked. | |
9d54db95 | 8484 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
a243b558 JF |
8485 | lt_cv_apple_cc_single_mod=yes |
8486 | else | |
8487 | cat conftest.err >&5 | |
8488 | fi | |
8489 | rm -rf libconftest.dylib* | |
8490 | rm -f conftest.* | |
8491 | fi | |
ee134472 | 8492 | fi |
a243b558 JF |
8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8494 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8495 | |
a243b558 JF |
8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8497 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8498 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8499 | $as_echo_n "(cached) " >&6 |
8500 | else | |
a243b558 JF |
8501 | lt_cv_ld_exported_symbols_list=no |
8502 | save_LDFLAGS=$LDFLAGS | |
8503 | echo "_main" > conftest.sym | |
8504 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8506 | /* end confdefs.h. */ | |
9c60689e | 8507 | |
a243b558 JF |
8508 | int |
8509 | main () | |
8510 | { | |
9c60689e | 8511 | |
a243b558 JF |
8512 | ; |
8513 | return 0; | |
8514 | } | |
8515 | _ACEOF | |
8516 | if ac_fn_c_try_link "$LINENO"; then : | |
8517 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8518 | else |
a243b558 | 8519 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8520 | fi |
a243b558 JF |
8521 | rm -f core conftest.err conftest.$ac_objext \ |
8522 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 8523 | LDFLAGS=$save_LDFLAGS |
9c60689e DWT |
8524 | |
8525 | fi | |
a243b558 JF |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8527 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8528 | |
a243b558 JF |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8530 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8531 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8532 | $as_echo_n "(cached) " >&6 |
8533 | else | |
a243b558 JF |
8534 | lt_cv_ld_force_load=no |
8535 | cat > conftest.c << _LT_EOF | |
8536 | int forced_loaded() { return 2;} | |
8537 | _LT_EOF | |
8538 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8539 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8540 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8541 | $AR cru libconftest.a conftest.o 2>&5 | |
8542 | echo "$RANLIB libconftest.a" >&5 | |
8543 | $RANLIB libconftest.a 2>&5 | |
8544 | cat > conftest.c << _LT_EOF | |
8545 | int main() { return 0;} | |
8546 | _LT_EOF | |
8547 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8548 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8549 | _lt_result=$? | |
8550 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8551 | cat conftest.err >&5 | |
9d54db95 | 8552 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
a243b558 JF |
8553 | lt_cv_ld_force_load=yes |
8554 | else | |
8555 | cat conftest.err >&5 | |
8556 | fi | |
8557 | rm -f conftest.err libconftest.a conftest conftest.c | |
8558 | rm -rf conftest.dSYM | |
9c60689e DWT |
8559 | |
8560 | fi | |
a243b558 JF |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8562 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8563 | case $host_os in | |
8564 | rhapsody* | darwin1.[012]) | |
9d54db95 | 8565 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
a243b558 | 8566 | darwin1.*) |
9d54db95 | 8567 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
a243b558 JF |
8568 | darwin*) # darwin 5.x on |
8569 | # if running on 10.5 or later, the deployment target defaults | |
8570 | # to the OS version, if on x86, and 10.4, the deployment | |
8571 | # target defaults to 10.4. Don't you love it? | |
8572 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8573 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9d54db95 JF |
8574 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8575 | 10.[012][,.]*) | |
8576 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
a243b558 | 8577 | 10.*) |
9d54db95 | 8578 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
a243b558 JF |
8579 | esac |
8580 | ;; | |
8581 | esac | |
9d54db95 | 8582 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
a243b558 JF |
8583 | _lt_dar_single_mod='$single_module' |
8584 | fi | |
9d54db95 JF |
8585 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
8586 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
a243b558 | 8587 | else |
9d54db95 | 8588 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
a243b558 | 8589 | fi |
9d54db95 | 8590 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
a243b558 JF |
8591 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8592 | else | |
8593 | _lt_dsymutil= | |
8594 | fi | |
8595 | ;; | |
8596 | esac | |
9c60689e | 8597 | |
9d54db95 JF |
8598 | # func_munge_path_list VARIABLE PATH |
8599 | # ----------------------------------- | |
8600 | # VARIABLE is name of variable containing _space_ separated list of | |
8601 | # directories to be munged by the contents of PATH, which is string | |
8602 | # having a format: | |
8603 | # "DIR[:DIR]:" | |
8604 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8605 | # ":DIR[:DIR]" | |
8606 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8607 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8608 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8609 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8610 | # "DIR[:DIR]" | |
8611 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8612 | func_munge_path_list () | |
8613 | { | |
8614 | case x$2 in | |
8615 | x) | |
8616 | ;; | |
8617 | *:) | |
8618 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8619 | ;; | |
8620 | x:*) | |
8621 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8622 | ;; | |
8623 | *::*) | |
8624 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8625 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8626 | ;; | |
8627 | *) | |
8628 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8629 | ;; | |
8630 | esac | |
8631 | } | |
8632 | ||
a243b558 JF |
8633 | ac_ext=c |
8634 | ac_cpp='$CPP $CPPFLAGS' | |
8635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8639 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8640 | # On Suns, sometimes $CPP names a directory. | |
8641 | if test -n "$CPP" && test -d "$CPP"; then | |
8642 | CPP= | |
9c60689e | 8643 | fi |
a243b558 JF |
8644 | if test -z "$CPP"; then |
8645 | if ${ac_cv_prog_CPP+:} false; then : | |
8646 | $as_echo_n "(cached) " >&6 | |
8647 | else | |
8648 | # Double quotes because CPP needs to be expanded | |
8649 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8650 | do | |
8651 | ac_preproc_ok=false | |
8652 | for ac_c_preproc_warn_flag in '' yes | |
8653 | do | |
8654 | # Use a header file that comes with gcc, so configuring glibc | |
8655 | # with a fresh cross-compiler works. | |
8656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8657 | # <limits.h> exists even on freestanding compilers. | |
8658 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8659 | # not just through cpp. "Syntax error" is here to catch this case. | |
8660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8661 | /* end confdefs.h. */ | |
8662 | #ifdef __STDC__ | |
8663 | # include <limits.h> | |
8664 | #else | |
8665 | # include <assert.h> | |
8666 | #endif | |
8667 | Syntax error | |
8668 | _ACEOF | |
8669 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8670 | |
a243b558 JF |
8671 | else |
8672 | # Broken: fails on valid input. | |
8673 | continue | |
8674 | fi | |
8675 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8676 | |
a243b558 JF |
8677 | # OK, works on sane cases. Now check whether nonexistent headers |
8678 | # can be detected and how. | |
8679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8680 | /* end confdefs.h. */ | |
8681 | #include <ac_nonexistent.h> | |
8682 | _ACEOF | |
8683 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8684 | # Broken: success on invalid input. | |
8685 | continue | |
8686 | else | |
8687 | # Passes both tests. | |
8688 | ac_preproc_ok=: | |
8689 | break | |
8690 | fi | |
8691 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8692 | |
a243b558 JF |
8693 | done |
8694 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8695 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8696 | if $ac_preproc_ok; then : | |
8697 | break | |
8698 | fi | |
9c60689e | 8699 | |
a243b558 JF |
8700 | done |
8701 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8702 | |
a243b558 JF |
8703 | fi |
8704 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8705 | else |
a243b558 JF |
8706 | ac_cv_prog_CPP=$CPP |
8707 | fi | |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8709 | $as_echo "$CPP" >&6; } | |
8710 | ac_preproc_ok=false | |
8711 | for ac_c_preproc_warn_flag in '' yes | |
8712 | do | |
8713 | # Use a header file that comes with gcc, so configuring glibc | |
8714 | # with a fresh cross-compiler works. | |
8715 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8716 | # <limits.h> exists even on freestanding compilers. | |
8717 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8718 | # not just through cpp. "Syntax error" is here to catch this case. | |
8719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8720 | /* end confdefs.h. */ | |
8721 | #ifdef __STDC__ | |
8722 | # include <limits.h> | |
8723 | #else | |
8724 | # include <assert.h> | |
8725 | #endif | |
8726 | Syntax error | |
8727 | _ACEOF | |
8728 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8729 | |
a243b558 JF |
8730 | else |
8731 | # Broken: fails on valid input. | |
8732 | continue | |
9c60689e | 8733 | fi |
a243b558 | 8734 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8735 | |
a243b558 JF |
8736 | # OK, works on sane cases. Now check whether nonexistent headers |
8737 | # can be detected and how. | |
8738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8739 | /* end confdefs.h. */ | |
8740 | #include <ac_nonexistent.h> | |
8741 | _ACEOF | |
8742 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8743 | # Broken: success on invalid input. | |
8744 | continue | |
8745 | else | |
8746 | # Passes both tests. | |
8747 | ac_preproc_ok=: | |
8748 | break | |
8749 | fi | |
8750 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8751 | |
a243b558 JF |
8752 | done |
8753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8754 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8755 | if $ac_preproc_ok; then : | |
9c60689e | 8756 | |
a243b558 JF |
8757 | else |
8758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8760 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8761 | See \`config.log' for more details" "$LINENO" 5; } | |
8762 | fi | |
9c60689e | 8763 | |
a243b558 JF |
8764 | ac_ext=c |
8765 | ac_cpp='$CPP $CPPFLAGS' | |
8766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8769 | |
8770 | ||
a243b558 JF |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8772 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8773 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8774 | $as_echo_n "(cached) " >&6 |
8775 | else | |
a243b558 JF |
8776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8777 | /* end confdefs.h. */ | |
8778 | #include <stdlib.h> | |
8779 | #include <stdarg.h> | |
8780 | #include <string.h> | |
8781 | #include <float.h> | |
9c60689e | 8782 | |
a243b558 JF |
8783 | int |
8784 | main () | |
8785 | { | |
9c60689e | 8786 | |
a243b558 JF |
8787 | ; |
8788 | return 0; | |
8789 | } | |
8790 | _ACEOF | |
8791 | if ac_fn_c_try_compile "$LINENO"; then : | |
8792 | ac_cv_header_stdc=yes | |
8793 | else | |
8794 | ac_cv_header_stdc=no | |
9c60689e | 8795 | fi |
a243b558 JF |
8796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8797 | ||
8798 | if test $ac_cv_header_stdc = yes; then | |
8799 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8801 | /* end confdefs.h. */ | |
8802 | #include <string.h> | |
9c60689e | 8803 | |
a243b558 JF |
8804 | _ACEOF |
8805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8806 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8807 | |
a243b558 JF |
8808 | else |
8809 | ac_cv_header_stdc=no | |
8810 | fi | |
8811 | rm -f conftest* | |
9c60689e | 8812 | |
a243b558 JF |
8813 | fi |
8814 | ||
8815 | if test $ac_cv_header_stdc = yes; then | |
8816 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8818 | /* end confdefs.h. */ | |
8819 | #include <stdlib.h> | |
8820 | ||
8821 | _ACEOF | |
8822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8823 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8824 | |
9c60689e | 8825 | else |
a243b558 | 8826 | ac_cv_header_stdc=no |
9c60689e | 8827 | fi |
a243b558 | 8828 | rm -f conftest* |
9c60689e | 8829 | |
a243b558 | 8830 | fi |
9c60689e | 8831 | |
a243b558 JF |
8832 | if test $ac_cv_header_stdc = yes; then |
8833 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8834 | if test "$cross_compiling" = yes; then : | |
8835 | : | |
8836 | else | |
8837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8838 | /* end confdefs.h. */ | |
8839 | #include <ctype.h> | |
8840 | #include <stdlib.h> | |
8841 | #if ((' ' & 0x0FF) == 0x020) | |
8842 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8843 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8844 | #else | |
8845 | # define ISLOWER(c) \ | |
8846 | (('a' <= (c) && (c) <= 'i') \ | |
8847 | || ('j' <= (c) && (c) <= 'r') \ | |
8848 | || ('s' <= (c) && (c) <= 'z')) | |
8849 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8850 | #endif | |
9c60689e | 8851 | |
a243b558 JF |
8852 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8853 | int | |
8854 | main () | |
8855 | { | |
8856 | int i; | |
8857 | for (i = 0; i < 256; i++) | |
8858 | if (XOR (islower (i), ISLOWER (i)) | |
8859 | || toupper (i) != TOUPPER (i)) | |
8860 | return 2; | |
8861 | return 0; | |
8862 | } | |
8863 | _ACEOF | |
8864 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8865 | |
a243b558 JF |
8866 | else |
8867 | ac_cv_header_stdc=no | |
8868 | fi | |
8869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8870 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8871 | fi | |
9c60689e | 8872 | |
a243b558 JF |
8873 | fi |
8874 | fi | |
8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8876 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8877 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8878 | |
a243b558 | 8879 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8880 | |
a243b558 | 8881 | fi |
9c60689e | 8882 | |
a243b558 JF |
8883 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8884 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8885 | inttypes.h stdint.h unistd.h | |
8886 | do : | |
8887 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8888 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8889 | " | |
8890 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8891 | cat >>confdefs.h <<_ACEOF | |
8892 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8893 | _ACEOF | |
9c60689e | 8894 | |
a243b558 | 8895 | fi |
ee134472 | 8896 | |
a243b558 | 8897 | done |
ee134472 | 8898 | |
9c60689e | 8899 | |
a243b558 JF |
8900 | for ac_header in dlfcn.h |
8901 | do : | |
8902 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8903 | " | |
8904 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8905 | cat >>confdefs.h <<_ACEOF | |
8906 | #define HAVE_DLFCN_H 1 | |
8907 | _ACEOF | |
9c60689e | 8908 | |
a243b558 | 8909 | fi |
9c60689e | 8910 | |
a243b558 | 8911 | done |
9c60689e | 8912 | |
9c60689e | 8913 | |
9c60689e | 8914 | |
9c60689e | 8915 | |
a243b558 JF |
8916 | func_stripname_cnf () |
8917 | { | |
9d54db95 JF |
8918 | case $2 in |
8919 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
8920 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
a243b558 JF |
8921 | esac |
8922 | } # func_stripname_cnf | |
9c60689e | 8923 | |
9c60689e | 8924 | |
ee134472 | 8925 | |
a243b558 JF |
8926 | |
8927 | ||
8928 | # Set options | |
8929 | # Check whether --enable-static was given. | |
8930 | if test "${enable_static+set}" = set; then : | |
8931 | enableval=$enable_static; p=${PACKAGE-default} | |
8932 | case $enableval in | |
8933 | yes) enable_static=yes ;; | |
8934 | no) enable_static=no ;; | |
8935 | *) | |
8936 | enable_static=no | |
8937 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 8938 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 8939 | for pkg in $enableval; do |
9d54db95 | 8940 | IFS=$lt_save_ifs |
a243b558 JF |
8941 | if test "X$pkg" = "X$p"; then |
8942 | enable_static=yes | |
8943 | fi | |
8944 | done | |
9d54db95 | 8945 | IFS=$lt_save_ifs |
9c60689e | 8946 | ;; |
a243b558 JF |
8947 | esac |
8948 | else | |
8949 | enable_static=no | |
8950 | fi | |
9c60689e | 8951 | |
9c60689e | 8952 | |
9c60689e | 8953 | |
9c60689e | 8954 | |
9c60689e | 8955 | |
9c60689e | 8956 | |
9c60689e | 8957 | |
9c60689e | 8958 | |
9c60689e | 8959 | |
9c60689e | 8960 | |
a243b558 | 8961 | enable_dlopen=no |
9c60689e | 8962 | |
9c60689e | 8963 | |
a243b558 JF |
8964 | enable_win32_dll=no |
8965 | ||
8966 | ||
8967 | # Check whether --enable-shared was given. | |
8968 | if test "${enable_shared+set}" = set; then : | |
8969 | enableval=$enable_shared; p=${PACKAGE-default} | |
8970 | case $enableval in | |
8971 | yes) enable_shared=yes ;; | |
8972 | no) enable_shared=no ;; | |
9c60689e | 8973 | *) |
a243b558 JF |
8974 | enable_shared=no |
8975 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 8976 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 8977 | for pkg in $enableval; do |
9d54db95 | 8978 | IFS=$lt_save_ifs |
a243b558 JF |
8979 | if test "X$pkg" = "X$p"; then |
8980 | enable_shared=yes | |
8981 | fi | |
8982 | done | |
9d54db95 | 8983 | IFS=$lt_save_ifs |
9c60689e DWT |
8984 | ;; |
8985 | esac | |
a243b558 JF |
8986 | else |
8987 | enable_shared=yes | |
8988 | fi | |
9c60689e | 8989 | |
9c60689e | 8990 | |
9c60689e | 8991 | |
9c60689e | 8992 | |
9c60689e | 8993 | |
9c60689e | 8994 | |
9c60689e | 8995 | |
9c60689e | 8996 | |
9c60689e | 8997 | |
9c60689e | 8998 | |
9c60689e | 8999 | |
a243b558 JF |
9000 | # Check whether --with-pic was given. |
9001 | if test "${with_pic+set}" = set; then : | |
9002 | withval=$with_pic; lt_p=${PACKAGE-default} | |
9003 | case $withval in | |
9004 | yes|no) pic_mode=$withval ;; | |
9005 | *) | |
9006 | pic_mode=default | |
9007 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 9008 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 9009 | for lt_pkg in $withval; do |
9d54db95 | 9010 | IFS=$lt_save_ifs |
a243b558 JF |
9011 | if test "X$lt_pkg" = "X$lt_p"; then |
9012 | pic_mode=yes | |
9013 | fi | |
9014 | done | |
9d54db95 | 9015 | IFS=$lt_save_ifs |
a243b558 JF |
9016 | ;; |
9017 | esac | |
9018 | else | |
9019 | pic_mode=default | |
9c60689e | 9020 | fi |
ee134472 | 9021 | |
ee134472 | 9022 | |
9c60689e | 9023 | |
9c60689e | 9024 | |
9c60689e | 9025 | |
ee134472 | 9026 | |
ee134472 | 9027 | |
9c60689e | 9028 | |
a243b558 JF |
9029 | # Check whether --enable-fast-install was given. |
9030 | if test "${enable_fast_install+set}" = set; then : | |
9031 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9032 | case $enableval in | |
9033 | yes) enable_fast_install=yes ;; | |
9034 | no) enable_fast_install=no ;; | |
9035 | *) | |
9036 | enable_fast_install=no | |
9037 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 9038 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 9039 | for pkg in $enableval; do |
9d54db95 | 9040 | IFS=$lt_save_ifs |
a243b558 JF |
9041 | if test "X$pkg" = "X$p"; then |
9042 | enable_fast_install=yes | |
9c60689e | 9043 | fi |
a243b558 | 9044 | done |
9d54db95 | 9045 | IFS=$lt_save_ifs |
9c60689e | 9046 | ;; |
a243b558 JF |
9047 | esac |
9048 | else | |
9049 | enable_fast_install=yes | |
9050 | fi | |
9c60689e | 9051 | |
9c60689e | 9052 | |
9c60689e | 9053 | |
9c60689e | 9054 | |
9c60689e DWT |
9055 | |
9056 | ||
53ba6704 | 9057 | |
9c60689e | 9058 | |
9d54db95 JF |
9059 | shared_archive_member_spec= |
9060 | case $host,$enable_shared in | |
9061 | power*-*-aix[5-9]*,yes) | |
9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
9063 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
9064 | ||
9065 | # Check whether --with-aix-soname was given. | |
9066 | if test "${with_aix_soname+set}" = set; then : | |
9067 | withval=$with_aix_soname; case $withval in | |
9068 | aix|svr4|both) | |
9069 | ;; | |
9070 | *) | |
9071 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
9072 | ;; | |
9073 | esac | |
9074 | lt_cv_with_aix_soname=$with_aix_soname | |
9075 | else | |
9076 | if ${lt_cv_with_aix_soname+:} false; then : | |
9077 | $as_echo_n "(cached) " >&6 | |
9078 | else | |
9079 | lt_cv_with_aix_soname=aix | |
9080 | fi | |
9081 | ||
9082 | with_aix_soname=$lt_cv_with_aix_soname | |
9083 | fi | |
9084 | ||
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
9086 | $as_echo "$with_aix_soname" >&6; } | |
9087 | if test aix != "$with_aix_soname"; then | |
9088 | # For the AIX way of multilib, we name the shared archive member | |
9089 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
9090 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
9091 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
9092 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
9093 | if test 64 = "${OBJECT_MODE-32}"; then | |
9094 | shared_archive_member_spec=shr_64 | |
9095 | else | |
9096 | shared_archive_member_spec=shr | |
9097 | fi | |
9098 | fi | |
9099 | ;; | |
9100 | *) | |
9101 | with_aix_soname=aix | |
9102 | ;; | |
9103 | esac | |
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9c60689e | 9111 | |
9c60689e | 9112 | |
9c60689e | 9113 | |
a243b558 | 9114 | # This can be used to rebuild libtool when needed |
9d54db95 | 9115 | LIBTOOL_DEPS=$ltmain |
9c60689e | 9116 | |
a243b558 JF |
9117 | # Always use our own libtool. |
9118 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 9119 | |
9c60689e | 9120 | |
9c60689e | 9121 | |
9c60689e | 9122 | |
9c60689e | 9123 | |
ee134472 | 9124 | |
ee134472 | 9125 | |
ee134472 | 9126 | |
ee134472 | 9127 | |
9c60689e | 9128 | |
9c60689e | 9129 | |
9c60689e | 9130 | |
9c60689e | 9131 | |
9c60689e | 9132 | |
9c60689e | 9133 | |
9c60689e | 9134 | |
9c60689e | 9135 | |
9c60689e | 9136 | |
9c60689e | 9137 | |
9c60689e | 9138 | |
9c60689e | 9139 | |
9c60689e | 9140 | |
9c60689e | 9141 | |
9c60689e | 9142 | |
9c60689e | 9143 | |
9c60689e | 9144 | |
9c60689e | 9145 | |
9c60689e | 9146 | |
9c60689e | 9147 | |
9c60689e | 9148 | |
a243b558 | 9149 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
9150 | |
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9d54db95 | 9164 | if test -n "${ZSH_VERSION+set}"; then |
a243b558 JF |
9165 | setopt NO_GLOB_SUBST |
9166 | fi | |
9c60689e | 9167 | |
a243b558 JF |
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9169 | $as_echo_n "checking for objdir... " >&6; } | |
9170 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
9171 | $as_echo_n "(cached) " >&6 |
9172 | else | |
a243b558 JF |
9173 | rm -f .libs 2>/dev/null |
9174 | mkdir .libs 2>/dev/null | |
9175 | if test -d .libs; then | |
9176 | lt_cv_objdir=.libs | |
9177 | else | |
9178 | # MS-DOS does not allow filenames that begin with a dot. | |
9179 | lt_cv_objdir=_libs | |
ee134472 | 9180 | fi |
a243b558 JF |
9181 | rmdir .libs 2>/dev/null |
9182 | fi | |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9184 | $as_echo "$lt_cv_objdir" >&6; } | |
9185 | objdir=$lt_cv_objdir | |
9c60689e DWT |
9186 | |
9187 | ||
9188 | ||
9189 | ||
9190 | ||
a243b558 JF |
9191 | cat >>confdefs.h <<_ACEOF |
9192 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9193 | _ACEOF | |
9c60689e DWT |
9194 | |
9195 | ||
9196 | ||
9197 | ||
a243b558 JF |
9198 | case $host_os in |
9199 | aix3*) | |
9200 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9201 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9202 | # vanish in a puff of smoke. | |
9d54db95 | 9203 | if test set != "${COLLECT_NAMES+set}"; then |
a243b558 JF |
9204 | COLLECT_NAMES= |
9205 | export COLLECT_NAMES | |
9206 | fi | |
9207 | ;; | |
9208 | esac | |
9c60689e | 9209 | |
a243b558 JF |
9210 | # Global variables: |
9211 | ofile=libtool | |
9212 | can_build_shared=yes | |
9c60689e | 9213 | |
9d54db95 | 9214 | # All known linkers require a '.a' archive for static linking (except MSVC, |
a243b558 JF |
9215 | # which needs '.lib'). |
9216 | libext=a | |
9c60689e | 9217 | |
9d54db95 | 9218 | with_gnu_ld=$lt_cv_prog_gnu_ld |
9c60689e | 9219 | |
9d54db95 JF |
9220 | old_CC=$CC |
9221 | old_CFLAGS=$CFLAGS | |
9c60689e | 9222 | |
a243b558 JF |
9223 | # Set sane defaults for various variables |
9224 | test -z "$CC" && CC=cc | |
9225 | test -z "$LTCC" && LTCC=$CC | |
9226 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9227 | test -z "$LD" && LD=ld | |
9228 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 9229 | |
9d54db95 JF |
9230 | func_cc_basename $compiler |
9231 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
9232 | |
9233 | ||
a243b558 JF |
9234 | # Only perform the check for file, if the check method requires it |
9235 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9236 | case $deplibs_check_method in | |
9237 | file_magic*) | |
9238 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9240 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9241 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9242 | $as_echo_n "(cached) " >&6 | |
9243 | else | |
9244 | case $MAGIC_CMD in | |
9245 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 9246 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
9247 | ;; |
9248 | *) | |
9d54db95 JF |
9249 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9250 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
9251 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9252 | for ac_dir in $ac_dummy; do | |
9d54db95 | 9253 | IFS=$lt_save_ifs |
a243b558 | 9254 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
9255 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
9256 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
a243b558 JF |
9257 | if test -n "$file_magic_test_file"; then |
9258 | case $deplibs_check_method in | |
9259 | "file_magic "*) | |
9260 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 9261 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9262 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9263 | $EGREP "$file_magic_regex" > /dev/null; then | |
9264 | : | |
9265 | else | |
9266 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9267 | |
a243b558 JF |
9268 | *** Warning: the command libtool uses to detect shared libraries, |
9269 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9270 | *** The result is that libtool may fail to recognize shared libraries | |
9271 | *** as such. This will affect the creation of libtool libraries that | |
9272 | *** depend on shared libraries, but programs linked with such libtool | |
9273 | *** libraries will work regardless of this problem. Nevertheless, you | |
9274 | *** may want to report the problem to your system manager and/or to | |
9275 | *** bug-libtool@gnu.org | |
9c60689e | 9276 | |
a243b558 JF |
9277 | _LT_EOF |
9278 | fi ;; | |
9279 | esac | |
9280 | fi | |
9281 | break | |
9282 | fi | |
9283 | done | |
9d54db95 JF |
9284 | IFS=$lt_save_ifs |
9285 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
9286 | ;; |
9287 | esac | |
9288 | fi | |
9c60689e | 9289 | |
9d54db95 | 9290 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9291 | if test -n "$MAGIC_CMD"; then |
9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9293 | $as_echo "$MAGIC_CMD" >&6; } | |
9294 | else | |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9296 | $as_echo "no" >&6; } | |
9297 | fi | |
9c60689e DWT |
9298 | |
9299 | ||
9300 | ||
9301 | ||
9302 | ||
a243b558 JF |
9303 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9304 | if test -n "$ac_tool_prefix"; then | |
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9306 | $as_echo_n "checking for file... " >&6; } | |
9307 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9308 | $as_echo_n "(cached) " >&6 | |
9309 | else | |
9310 | case $MAGIC_CMD in | |
9311 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 9312 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
9313 | ;; |
9314 | *) | |
9d54db95 JF |
9315 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9316 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
9317 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9318 | for ac_dir in $ac_dummy; do | |
9d54db95 | 9319 | IFS=$lt_save_ifs |
a243b558 | 9320 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
9321 | if test -f "$ac_dir/file"; then |
9322 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
a243b558 JF |
9323 | if test -n "$file_magic_test_file"; then |
9324 | case $deplibs_check_method in | |
9325 | "file_magic "*) | |
9326 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 9327 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9328 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9329 | $EGREP "$file_magic_regex" > /dev/null; then | |
9330 | : | |
9331 | else | |
9332 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9333 | |
a243b558 JF |
9334 | *** Warning: the command libtool uses to detect shared libraries, |
9335 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9336 | *** The result is that libtool may fail to recognize shared libraries | |
9337 | *** as such. This will affect the creation of libtool libraries that | |
9338 | *** depend on shared libraries, but programs linked with such libtool | |
9339 | *** libraries will work regardless of this problem. Nevertheless, you | |
9340 | *** may want to report the problem to your system manager and/or to | |
9341 | *** bug-libtool@gnu.org | |
9c60689e | 9342 | |
a243b558 JF |
9343 | _LT_EOF |
9344 | fi ;; | |
9345 | esac | |
9346 | fi | |
9347 | break | |
9348 | fi | |
9349 | done | |
9d54db95 JF |
9350 | IFS=$lt_save_ifs |
9351 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
9352 | ;; |
9353 | esac | |
9354 | fi | |
9c60689e | 9355 | |
9d54db95 | 9356 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9357 | if test -n "$MAGIC_CMD"; then |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9359 | $as_echo "$MAGIC_CMD" >&6; } | |
9360 | else | |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9362 | $as_echo "no" >&6; } | |
9363 | fi | |
9c60689e DWT |
9364 | |
9365 | ||
a243b558 JF |
9366 | else |
9367 | MAGIC_CMD=: | |
9368 | fi | |
9369 | fi | |
9c60689e | 9370 | |
a243b558 JF |
9371 | fi |
9372 | ;; | |
9373 | esac | |
9c60689e | 9374 | |
a243b558 | 9375 | # Use C for the default configuration in the libtool script |
9c60689e | 9376 | |
9d54db95 | 9377 | lt_save_CC=$CC |
a243b558 JF |
9378 | ac_ext=c |
9379 | ac_cpp='$CPP $CPPFLAGS' | |
9380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
9383 | |
9384 | ||
a243b558 JF |
9385 | # Source file extension for C test sources. |
9386 | ac_ext=c | |
9c60689e | 9387 | |
a243b558 JF |
9388 | # Object file extension for compiled C test sources. |
9389 | objext=o | |
9390 | objext=$objext | |
9c60689e | 9391 | |
a243b558 JF |
9392 | # Code to be used in simple compile tests |
9393 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9394 | |
a243b558 JF |
9395 | # Code to be used in simple link tests |
9396 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9397 | |
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
a243b558 JF |
9404 | # If no C compiler was specified, use CC. |
9405 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9406 | |
a243b558 JF |
9407 | # If no C compiler flags were specified, use CFLAGS. |
9408 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9409 | |
a243b558 JF |
9410 | # Allow CC to be a program name with arguments. |
9411 | compiler=$CC | |
9c60689e | 9412 | |
a243b558 JF |
9413 | # Save the default compiler, since it gets overwritten when the other |
9414 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9415 | compiler_DEFAULT=$CC | |
9c60689e | 9416 | |
a243b558 JF |
9417 | # save warnings/boilerplate of simple test code |
9418 | ac_outfile=conftest.$ac_objext | |
9419 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9420 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9421 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 9422 | $RM -r conftest* |
9c60689e | 9423 | |
a243b558 JF |
9424 | ac_outfile=conftest.$ac_objext |
9425 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9426 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9427 | _lt_linker_boilerplate=`cat conftest.err` | |
9428 | $RM -r conftest* | |
9c60689e DWT |
9429 | |
9430 | ||
a243b558 JF |
9431 | ## CAVEAT EMPTOR: |
9432 | ## There is no encapsulation within the following macros, do not change | |
9433 | ## the running order or otherwise move them around unless you know exactly | |
9434 | ## what you are doing... | |
9435 | if test -n "$compiler"; then | |
9c60689e | 9436 | |
a243b558 | 9437 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9438 | |
9d54db95 | 9439 | if test yes = "$GCC"; then |
a243b558 JF |
9440 | case $cc_basename in |
9441 | nvcc*) | |
9442 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9443 | *) | |
9444 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9445 | esac | |
9c60689e | 9446 | |
a243b558 JF |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9448 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9449 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9450 | $as_echo_n "(cached) " >&6 | |
9451 | else | |
9452 | lt_cv_prog_compiler_rtti_exceptions=no | |
9453 | ac_outfile=conftest.$ac_objext | |
9454 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 9455 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
9456 | # Insert the option either (1) after the last *FLAGS variable, or |
9457 | # (2) before a word containing "conftest.", or (3) at the end. | |
9458 | # Note that $ac_compile itself does not contain backslashes and begins | |
9459 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9460 | # The option is referenced via a variable to avoid confusing sed. | |
9461 | lt_compile=`echo "$ac_compile" | $SED \ | |
9462 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9463 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9464 | -e 's:$: $lt_compiler_flag:'` | |
9465 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9466 | (eval "$lt_compile" 2>conftest.err) | |
9467 | ac_status=$? | |
9468 | cat conftest.err >&5 | |
9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9470 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9471 | # The compiler can only warn and ignore the option if not recognized | |
9472 | # So say no if there are warnings other than the usual output. | |
9473 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9474 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9475 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9476 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9477 | fi | |
9478 | fi | |
00a96142 | 9479 | $RM -r conftest* |
9c60689e | 9480 | |
a243b558 JF |
9481 | fi |
9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9483 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9484 | |
9d54db95 | 9485 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
a243b558 JF |
9486 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
9487 | else | |
9488 | : | |
9489 | fi | |
9c60689e | 9490 | |
a243b558 | 9491 | fi |
9c60689e DWT |
9492 | |
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | ||
a243b558 JF |
9498 | lt_prog_compiler_wl= |
9499 | lt_prog_compiler_pic= | |
9500 | lt_prog_compiler_static= | |
9c60689e DWT |
9501 | |
9502 | ||
9d54db95 | 9503 | if test yes = "$GCC"; then |
a243b558 JF |
9504 | lt_prog_compiler_wl='-Wl,' |
9505 | lt_prog_compiler_static='-static' | |
9c60689e | 9506 | |
a243b558 JF |
9507 | case $host_os in |
9508 | aix*) | |
9509 | # All AIX code is PIC. | |
9d54db95 | 9510 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
9511 | # AIX 5 now supports IA64 processor |
9512 | lt_prog_compiler_static='-Bstatic' | |
9513 | fi | |
9d54db95 | 9514 | lt_prog_compiler_pic='-fPIC' |
a243b558 | 9515 | ;; |
9c60689e | 9516 | |
a243b558 JF |
9517 | amigaos*) |
9518 | case $host_cpu in | |
9519 | powerpc) | |
9520 | # see comment about AmigaOS4 .so support | |
9521 | lt_prog_compiler_pic='-fPIC' | |
9522 | ;; | |
9523 | m68k) | |
9524 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
9525 | # adding the '-m68020' flag to GCC prevents building anything better, |
9526 | # like '-m68040'. | |
a243b558 JF |
9527 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
9528 | ;; | |
9529 | esac | |
9530 | ;; | |
9c60689e | 9531 | |
a243b558 JF |
9532 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9533 | # PIC is the default for these OSes. | |
9534 | ;; | |
9c60689e | 9535 | |
a243b558 JF |
9536 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9537 | # This hack is so that the source file can tell whether it is being | |
9538 | # built for inclusion in a dll (and should export symbols for example). | |
9539 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9540 | # (--disable-auto-import) libraries | |
9541 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
9542 | case $host_os in |
9543 | os2*) | |
9544 | lt_prog_compiler_static='$wl-static' | |
9545 | ;; | |
9546 | esac | |
a243b558 | 9547 | ;; |
9c60689e | 9548 | |
a243b558 JF |
9549 | darwin* | rhapsody*) |
9550 | # PIC is the default on this platform | |
9551 | # Common symbols not allowed in MH_DYLIB files | |
9552 | lt_prog_compiler_pic='-fno-common' | |
9553 | ;; | |
9c60689e | 9554 | |
a243b558 JF |
9555 | haiku*) |
9556 | # PIC is the default for Haiku. | |
9557 | # The "-static" flag exists, but is broken. | |
9558 | lt_prog_compiler_static= | |
9559 | ;; | |
9c60689e | 9560 | |
a243b558 JF |
9561 | hpux*) |
9562 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9563 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9564 | # sets the default TLS model and affects inlining. | |
9565 | case $host_cpu in | |
9566 | hppa*64*) | |
9567 | # +Z the default | |
9568 | ;; | |
9569 | *) | |
9570 | lt_prog_compiler_pic='-fPIC' | |
9571 | ;; | |
9572 | esac | |
9573 | ;; | |
9c60689e | 9574 | |
a243b558 JF |
9575 | interix[3-9]*) |
9576 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9577 | # Instead, we relocate shared libraries at runtime. | |
9578 | ;; | |
9c60689e | 9579 | |
a243b558 JF |
9580 | msdosdjgpp*) |
9581 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9582 | # on systems that don't support them. | |
9583 | lt_prog_compiler_can_build_shared=no | |
9584 | enable_shared=no | |
9585 | ;; | |
9c60689e | 9586 | |
a243b558 JF |
9587 | *nto* | *qnx*) |
9588 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9589 | # it will coredump. | |
9590 | lt_prog_compiler_pic='-fPIC -shared' | |
9591 | ;; | |
9c60689e | 9592 | |
a243b558 JF |
9593 | sysv4*MP*) |
9594 | if test -d /usr/nec; then | |
9595 | lt_prog_compiler_pic=-Kconform_pic | |
9596 | fi | |
9597 | ;; | |
9c60689e | 9598 | |
a243b558 JF |
9599 | *) |
9600 | lt_prog_compiler_pic='-fPIC' | |
9601 | ;; | |
9602 | esac | |
9c60689e | 9603 | |
a243b558 JF |
9604 | case $cc_basename in |
9605 | nvcc*) # Cuda Compiler Driver 2.2 | |
9606 | lt_prog_compiler_wl='-Xlinker ' | |
9607 | if test -n "$lt_prog_compiler_pic"; then | |
9608 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9609 | fi | |
9610 | ;; | |
9611 | esac | |
9612 | else | |
9613 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9614 | case $host_os in | |
9615 | aix*) | |
9616 | lt_prog_compiler_wl='-Wl,' | |
9d54db95 | 9617 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
9618 | # AIX 5 now supports IA64 processor |
9619 | lt_prog_compiler_static='-Bstatic' | |
9620 | else | |
9621 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9622 | fi | |
9623 | ;; | |
9c60689e | 9624 | |
9d54db95 JF |
9625 | darwin* | rhapsody*) |
9626 | # PIC is the default on this platform | |
9627 | # Common symbols not allowed in MH_DYLIB files | |
9628 | lt_prog_compiler_pic='-fno-common' | |
9629 | case $cc_basename in | |
9630 | nagfor*) | |
9631 | # NAG Fortran compiler | |
9632 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9633 | lt_prog_compiler_pic='-PIC' | |
9634 | lt_prog_compiler_static='-Bstatic' | |
9635 | ;; | |
9636 | esac | |
9637 | ;; | |
9638 | ||
a243b558 JF |
9639 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9640 | # This hack is so that the source file can tell whether it is being | |
9641 | # built for inclusion in a dll (and should export symbols for example). | |
9642 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
9643 | case $host_os in |
9644 | os2*) | |
9645 | lt_prog_compiler_static='$wl-static' | |
9646 | ;; | |
9647 | esac | |
a243b558 | 9648 | ;; |
9c60689e | 9649 | |
a243b558 JF |
9650 | hpux9* | hpux10* | hpux11*) |
9651 | lt_prog_compiler_wl='-Wl,' | |
9652 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9653 | # not for PA HP-UX. | |
9654 | case $host_cpu in | |
9655 | hppa*64*|ia64*) | |
9656 | # +Z the default | |
9657 | ;; | |
9658 | *) | |
9659 | lt_prog_compiler_pic='+Z' | |
9660 | ;; | |
9661 | esac | |
9662 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9d54db95 | 9663 | lt_prog_compiler_static='$wl-a ${wl}archive' |
a243b558 | 9664 | ;; |
9c60689e | 9665 | |
a243b558 JF |
9666 | irix5* | irix6* | nonstopux*) |
9667 | lt_prog_compiler_wl='-Wl,' | |
9668 | # PIC (with -KPIC) is the default. | |
9669 | lt_prog_compiler_static='-non_shared' | |
9670 | ;; | |
9c60689e | 9671 | |
9d54db95 | 9672 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 | 9673 | case $cc_basename in |
9d54db95 | 9674 | # old Intel for x86_64, which still supported -KPIC. |
a243b558 JF |
9675 | ecc*) |
9676 | lt_prog_compiler_wl='-Wl,' | |
9677 | lt_prog_compiler_pic='-KPIC' | |
9678 | lt_prog_compiler_static='-static' | |
9679 | ;; | |
9680 | # icc used to be incompatible with GCC. | |
9681 | # ICC 10 doesn't accept -KPIC any more. | |
9682 | icc* | ifort*) | |
9683 | lt_prog_compiler_wl='-Wl,' | |
9684 | lt_prog_compiler_pic='-fPIC' | |
9685 | lt_prog_compiler_static='-static' | |
9686 | ;; | |
9687 | # Lahey Fortran 8.1. | |
9688 | lf95*) | |
9689 | lt_prog_compiler_wl='-Wl,' | |
9690 | lt_prog_compiler_pic='--shared' | |
9691 | lt_prog_compiler_static='--static' | |
9692 | ;; | |
9693 | nagfor*) | |
9694 | # NAG Fortran compiler | |
9695 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9696 | lt_prog_compiler_pic='-PIC' | |
9697 | lt_prog_compiler_static='-Bstatic' | |
9698 | ;; | |
9d54db95 JF |
9699 | tcc*) |
9700 | # Fabrice Bellard et al's Tiny C Compiler | |
9701 | lt_prog_compiler_wl='-Wl,' | |
9702 | lt_prog_compiler_pic='-fPIC' | |
9703 | lt_prog_compiler_static='-static' | |
9704 | ;; | |
a243b558 JF |
9705 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
9706 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9707 | # which looks to be a dead project) | |
9708 | lt_prog_compiler_wl='-Wl,' | |
9709 | lt_prog_compiler_pic='-fpic' | |
9710 | lt_prog_compiler_static='-Bstatic' | |
9711 | ;; | |
9712 | ccc*) | |
9713 | lt_prog_compiler_wl='-Wl,' | |
9714 | # All Alpha code is PIC. | |
9715 | lt_prog_compiler_static='-non_shared' | |
9716 | ;; | |
9717 | xl* | bgxl* | bgf* | mpixl*) | |
9718 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9719 | lt_prog_compiler_wl='-Wl,' | |
9720 | lt_prog_compiler_pic='-qpic' | |
9721 | lt_prog_compiler_static='-qstaticlink' | |
9722 | ;; | |
9723 | *) | |
9724 | case `$CC -V 2>&1 | sed 5q` in | |
9725 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9726 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9727 | lt_prog_compiler_pic='-KPIC' | |
9728 | lt_prog_compiler_static='-Bstatic' | |
9729 | lt_prog_compiler_wl='' | |
9730 | ;; | |
9731 | *Sun\ F* | *Sun*Fortran*) | |
9732 | lt_prog_compiler_pic='-KPIC' | |
9733 | lt_prog_compiler_static='-Bstatic' | |
9734 | lt_prog_compiler_wl='-Qoption ld ' | |
9735 | ;; | |
9736 | *Sun\ C*) | |
9737 | # Sun C 5.9 | |
9738 | lt_prog_compiler_pic='-KPIC' | |
9739 | lt_prog_compiler_static='-Bstatic' | |
9740 | lt_prog_compiler_wl='-Wl,' | |
9741 | ;; | |
9742 | *Intel*\ [CF]*Compiler*) | |
9743 | lt_prog_compiler_wl='-Wl,' | |
9744 | lt_prog_compiler_pic='-fPIC' | |
9745 | lt_prog_compiler_static='-static' | |
9746 | ;; | |
9747 | *Portland\ Group*) | |
9748 | lt_prog_compiler_wl='-Wl,' | |
9749 | lt_prog_compiler_pic='-fpic' | |
9750 | lt_prog_compiler_static='-Bstatic' | |
9751 | ;; | |
9752 | esac | |
9753 | ;; | |
9754 | esac | |
9755 | ;; | |
9c60689e | 9756 | |
a243b558 JF |
9757 | newsos6) |
9758 | lt_prog_compiler_pic='-KPIC' | |
9759 | lt_prog_compiler_static='-Bstatic' | |
9760 | ;; | |
9c60689e | 9761 | |
a243b558 JF |
9762 | *nto* | *qnx*) |
9763 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9764 | # it will coredump. | |
9765 | lt_prog_compiler_pic='-fPIC -shared' | |
9766 | ;; | |
9c60689e | 9767 | |
a243b558 JF |
9768 | osf3* | osf4* | osf5*) |
9769 | lt_prog_compiler_wl='-Wl,' | |
9770 | # All OSF/1 code is PIC. | |
9771 | lt_prog_compiler_static='-non_shared' | |
9772 | ;; | |
9c60689e | 9773 | |
a243b558 JF |
9774 | rdos*) |
9775 | lt_prog_compiler_static='-non_shared' | |
9776 | ;; | |
9c60689e | 9777 | |
a243b558 JF |
9778 | solaris*) |
9779 | lt_prog_compiler_pic='-KPIC' | |
9780 | lt_prog_compiler_static='-Bstatic' | |
9781 | case $cc_basename in | |
9782 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9783 | lt_prog_compiler_wl='-Qoption ld ';; | |
9784 | *) | |
9785 | lt_prog_compiler_wl='-Wl,';; | |
9786 | esac | |
9787 | ;; | |
9c60689e | 9788 | |
a243b558 JF |
9789 | sunos4*) |
9790 | lt_prog_compiler_wl='-Qoption ld ' | |
9791 | lt_prog_compiler_pic='-PIC' | |
9792 | lt_prog_compiler_static='-Bstatic' | |
9793 | ;; | |
9c60689e | 9794 | |
a243b558 JF |
9795 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9796 | lt_prog_compiler_wl='-Wl,' | |
9797 | lt_prog_compiler_pic='-KPIC' | |
9798 | lt_prog_compiler_static='-Bstatic' | |
9799 | ;; | |
9c60689e | 9800 | |
a243b558 | 9801 | sysv4*MP*) |
9d54db95 | 9802 | if test -d /usr/nec; then |
a243b558 JF |
9803 | lt_prog_compiler_pic='-Kconform_pic' |
9804 | lt_prog_compiler_static='-Bstatic' | |
9805 | fi | |
9806 | ;; | |
9c60689e | 9807 | |
a243b558 JF |
9808 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9809 | lt_prog_compiler_wl='-Wl,' | |
9810 | lt_prog_compiler_pic='-KPIC' | |
9811 | lt_prog_compiler_static='-Bstatic' | |
9812 | ;; | |
9c60689e | 9813 | |
a243b558 JF |
9814 | unicos*) |
9815 | lt_prog_compiler_wl='-Wl,' | |
9816 | lt_prog_compiler_can_build_shared=no | |
9817 | ;; | |
9c60689e | 9818 | |
a243b558 JF |
9819 | uts4*) |
9820 | lt_prog_compiler_pic='-pic' | |
9821 | lt_prog_compiler_static='-Bstatic' | |
9822 | ;; | |
9c60689e | 9823 | |
a243b558 JF |
9824 | *) |
9825 | lt_prog_compiler_can_build_shared=no | |
9826 | ;; | |
9827 | esac | |
9828 | fi | |
9c60689e | 9829 | |
a243b558 | 9830 | case $host_os in |
9d54db95 | 9831 | # For platforms that do not support PIC, -DPIC is meaningless: |
a243b558 JF |
9832 | *djgpp*) |
9833 | lt_prog_compiler_pic= | |
9834 | ;; | |
9835 | *) | |
9836 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9837 | ;; | |
9838 | esac | |
9c60689e | 9839 | |
a243b558 JF |
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9841 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9842 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9843 | $as_echo_n "(cached) " >&6 | |
9844 | else | |
9845 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9846 | fi | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9848 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9849 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9850 | |
a243b558 JF |
9851 | # |
9852 | # Check to make sure the PIC flag actually works. | |
9853 | # | |
9854 | if test -n "$lt_prog_compiler_pic"; then | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9856 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9857 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9858 | $as_echo_n "(cached) " >&6 | |
9859 | else | |
9860 | lt_cv_prog_compiler_pic_works=no | |
9861 | ac_outfile=conftest.$ac_objext | |
9862 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 9863 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
9864 | # Insert the option either (1) after the last *FLAGS variable, or |
9865 | # (2) before a word containing "conftest.", or (3) at the end. | |
9866 | # Note that $ac_compile itself does not contain backslashes and begins | |
9867 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9868 | # The option is referenced via a variable to avoid confusing sed. | |
9869 | lt_compile=`echo "$ac_compile" | $SED \ | |
9870 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9871 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9872 | -e 's:$: $lt_compiler_flag:'` | |
9873 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9874 | (eval "$lt_compile" 2>conftest.err) | |
9875 | ac_status=$? | |
9876 | cat conftest.err >&5 | |
9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9878 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9879 | # The compiler can only warn and ignore the option if not recognized | |
9880 | # So say no if there are warnings other than the usual output. | |
9881 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9882 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9883 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9884 | lt_cv_prog_compiler_pic_works=yes | |
9885 | fi | |
9886 | fi | |
00a96142 | 9887 | $RM -r conftest* |
9c60689e | 9888 | |
a243b558 JF |
9889 | fi |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9891 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9892 | |
9d54db95 | 9893 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
a243b558 JF |
9894 | case $lt_prog_compiler_pic in |
9895 | "" | " "*) ;; | |
9896 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9897 | esac | |
9898 | else | |
9899 | lt_prog_compiler_pic= | |
9900 | lt_prog_compiler_can_build_shared=no | |
9901 | fi | |
9c60689e | 9902 | |
a243b558 | 9903 | fi |
9c60689e DWT |
9904 | |
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9c60689e DWT |
9910 | |
9911 | ||
9912 | ||
9913 | ||
9914 | ||
a243b558 JF |
9915 | # |
9916 | # Check to make sure the static flag actually works. | |
9917 | # | |
9918 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9920 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9921 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9922 | $as_echo_n "(cached) " >&6 | |
9923 | else | |
9924 | lt_cv_prog_compiler_static_works=no | |
9d54db95 | 9925 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
9926 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9927 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9928 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9929 | # The linker can only warn and ignore the option if not recognized | |
9930 | # So say no if there are warnings | |
9931 | if test -s conftest.err; then | |
9932 | # Append any errors to the config.log. | |
9933 | cat conftest.err 1>&5 | |
9934 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9935 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9936 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9937 | lt_cv_prog_compiler_static_works=yes | |
9938 | fi | |
9939 | else | |
9940 | lt_cv_prog_compiler_static_works=yes | |
9941 | fi | |
9942 | fi | |
9943 | $RM -r conftest* | |
9d54db95 | 9944 | LDFLAGS=$save_LDFLAGS |
9c60689e | 9945 | |
a243b558 JF |
9946 | fi |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9948 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9949 | |
9d54db95 | 9950 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
a243b558 | 9951 | : |
9c60689e | 9952 | else |
a243b558 | 9953 | lt_prog_compiler_static= |
9c60689e | 9954 | fi |
9c60689e | 9955 | |
9c60689e | 9956 | |
9c60689e | 9957 | |
9c60689e | 9958 | |
9c60689e | 9959 | |
9c60689e | 9960 | |
9c60689e | 9961 | |
a243b558 JF |
9962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9963 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9964 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9965 | $as_echo_n "(cached) " >&6 | |
9966 | else | |
9967 | lt_cv_prog_compiler_c_o=no | |
9968 | $RM -r conftest 2>/dev/null | |
9969 | mkdir conftest | |
9970 | cd conftest | |
9971 | mkdir out | |
9972 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9973 | |
a243b558 JF |
9974 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9975 | # Insert the option either (1) after the last *FLAGS variable, or | |
9976 | # (2) before a word containing "conftest.", or (3) at the end. | |
9977 | # Note that $ac_compile itself does not contain backslashes and begins | |
9978 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9979 | lt_compile=`echo "$ac_compile" | $SED \ | |
9980 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9981 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9982 | -e 's:$: $lt_compiler_flag:'` | |
9983 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9984 | (eval "$lt_compile" 2>out/conftest.err) | |
9985 | ac_status=$? | |
9986 | cat out/conftest.err >&5 | |
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9988 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9989 | then | |
9990 | # The compiler can only warn and ignore the option if not recognized | |
9991 | # So say no if there are warnings | |
9992 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9993 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9994 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9995 | lt_cv_prog_compiler_c_o=yes | |
9996 | fi | |
9997 | fi | |
9998 | chmod u+w . 2>&5 | |
00a96142 | 9999 | $RM -r conftest* |
a243b558 JF |
10000 | # SGI C++ compiler will create directory out/ii_files/ for |
10001 | # template instantiation | |
10002 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10003 | $RM out/* && rmdir out | |
10004 | cd .. | |
10005 | $RM -r conftest | |
00a96142 | 10006 | $RM -r conftest* |
9c60689e | 10007 | |
a243b558 JF |
10008 | fi |
10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10010 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 10011 | |
ee134472 | 10012 | |
ee134472 | 10013 | |
ee134472 | 10014 | |
ee134472 | 10015 | |
9c60689e | 10016 | |
a243b558 JF |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10018 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10019 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10020 | $as_echo_n "(cached) " >&6 | |
10021 | else | |
10022 | lt_cv_prog_compiler_c_o=no | |
10023 | $RM -r conftest 2>/dev/null | |
10024 | mkdir conftest | |
10025 | cd conftest | |
10026 | mkdir out | |
10027 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 10028 | |
a243b558 JF |
10029 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10030 | # Insert the option either (1) after the last *FLAGS variable, or | |
10031 | # (2) before a word containing "conftest.", or (3) at the end. | |
10032 | # Note that $ac_compile itself does not contain backslashes and begins | |
10033 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10034 | lt_compile=`echo "$ac_compile" | $SED \ | |
10035 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10036 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10037 | -e 's:$: $lt_compiler_flag:'` | |
10038 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10039 | (eval "$lt_compile" 2>out/conftest.err) | |
10040 | ac_status=$? | |
10041 | cat out/conftest.err >&5 | |
10042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10043 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10044 | then | |
10045 | # The compiler can only warn and ignore the option if not recognized | |
10046 | # So say no if there are warnings | |
10047 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10048 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10049 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10050 | lt_cv_prog_compiler_c_o=yes | |
10051 | fi | |
10052 | fi | |
10053 | chmod u+w . 2>&5 | |
00a96142 | 10054 | $RM -r conftest* |
a243b558 JF |
10055 | # SGI C++ compiler will create directory out/ii_files/ for |
10056 | # template instantiation | |
10057 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10058 | $RM out/* && rmdir out | |
10059 | cd .. | |
10060 | $RM -r conftest | |
00a96142 | 10061 | $RM -r conftest* |
9c60689e | 10062 | |
a243b558 JF |
10063 | fi |
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10065 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 10066 | |
9c60689e | 10067 | |
a243b558 JF |
10068 | |
10069 | ||
9d54db95 JF |
10070 | hard_links=nottested |
10071 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
a243b558 JF |
10072 | # do not overwrite the value of need_locks provided by the user |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10074 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10075 | hard_links=yes | |
00a96142 | 10076 | $RM -r conftest* |
a243b558 JF |
10077 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
10078 | touch conftest.a | |
10079 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10080 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10082 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
10083 | if test no = "$hard_links"; then |
10084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
10085 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
a243b558 | 10086 | need_locks=warn |
9c60689e | 10087 | fi |
a243b558 JF |
10088 | else |
10089 | need_locks=no | |
10090 | fi | |
9c60689e | 10091 | |
ee134472 | 10092 | |
9c60689e | 10093 | |
9c60689e | 10094 | |
9c60689e | 10095 | |
a243b558 JF |
10096 | |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10098 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10099 | ||
10100 | runpath_var= | |
10101 | allow_undefined_flag= | |
10102 | always_export_symbols=no | |
10103 | archive_cmds= | |
10104 | archive_expsym_cmds= | |
10105 | compiler_needs_object=no | |
10106 | enable_shared_with_static_runtimes=no | |
10107 | export_dynamic_flag_spec= | |
10108 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10109 | hardcode_automatic=no | |
10110 | hardcode_direct=no | |
10111 | hardcode_direct_absolute=no | |
10112 | hardcode_libdir_flag_spec= | |
10113 | hardcode_libdir_separator= | |
10114 | hardcode_minus_L=no | |
10115 | hardcode_shlibpath_var=unsupported | |
10116 | inherit_rpath=no | |
10117 | link_all_deplibs=unknown | |
10118 | module_cmds= | |
10119 | module_expsym_cmds= | |
10120 | old_archive_from_new_cmds= | |
10121 | old_archive_from_expsyms_cmds= | |
10122 | thread_safe_flag_spec= | |
10123 | whole_archive_flag_spec= | |
10124 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10125 | # included in the symbol list | |
10126 | include_expsyms= | |
10127 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9d54db95 JF |
10128 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
10129 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
10130 | # as well as any symbol that contains 'd'. | |
a243b558 JF |
10131 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
10132 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10133 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10134 | # the symbol is explicitly referenced. Since portable code cannot | |
10135 | # rely on this symbol name, it's probably fine to never include it in | |
10136 | # preloaded symbol tables. | |
10137 | # Exclude shared library initialization/finalization symbols. | |
10138 | extract_expsyms_cmds= | |
10139 | ||
9c60689e | 10140 | case $host_os in |
a243b558 JF |
10141 | cygwin* | mingw* | pw32* | cegcc*) |
10142 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10143 | # When not using gcc, we currently assume that we are using | |
10144 | # Microsoft Visual C++. | |
9d54db95 | 10145 | if test yes != "$GCC"; then |
a243b558 JF |
10146 | with_gnu_ld=no |
10147 | fi | |
9c60689e | 10148 | ;; |
a243b558 JF |
10149 | interix*) |
10150 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10151 | with_gnu_ld=yes | |
10152 | ;; | |
9d54db95 | 10153 | openbsd* | bitrig*) |
a243b558 | 10154 | with_gnu_ld=no |
9c60689e DWT |
10155 | ;; |
10156 | esac | |
9c60689e | 10157 | |
a243b558 | 10158 | ld_shlibs=yes |
ee134472 | 10159 | |
a243b558 JF |
10160 | # On some targets, GNU ld is compatible enough with the native linker |
10161 | # that we're better off using the native interface for both. | |
10162 | lt_use_gnu_ld_interface=no | |
9d54db95 | 10163 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
10164 | case $host_os in |
10165 | aix*) | |
10166 | # The AIX port of GNU ld has always aspired to compatibility | |
10167 | # with the native linker. However, as the warning in the GNU ld | |
10168 | # block says, versions before 2.19.5* couldn't really create working | |
10169 | # shared libraries, regardless of the interface used. | |
10170 | case `$LD -v 2>&1` in | |
10171 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10172 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10173 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10174 | *) | |
10175 | lt_use_gnu_ld_interface=yes | |
10176 | ;; | |
10177 | esac | |
10178 | ;; | |
10179 | *) | |
10180 | lt_use_gnu_ld_interface=yes | |
10181 | ;; | |
10182 | esac | |
10183 | fi | |
9c60689e | 10184 | |
9d54db95 | 10185 | if test yes = "$lt_use_gnu_ld_interface"; then |
a243b558 | 10186 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9d54db95 | 10187 | wlarc='$wl' |
9c60689e | 10188 | |
a243b558 JF |
10189 | # Set some defaults for GNU ld with shared library support. These |
10190 | # are reset later if shared libraries are not supported. Putting them | |
10191 | # here allows them to be overridden if necessary. | |
10192 | runpath_var=LD_RUN_PATH | |
9d54db95 JF |
10193 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10194 | export_dynamic_flag_spec='$wl--export-dynamic' | |
a243b558 JF |
10195 | # ancient GNU ld didn't support --whole-archive et. al. |
10196 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 10197 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
a243b558 JF |
10198 | else |
10199 | whole_archive_flag_spec= | |
10200 | fi | |
10201 | supports_anon_versioning=no | |
9d54db95 | 10202 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
a243b558 JF |
10203 | *GNU\ gold*) supports_anon_versioning=yes ;; |
10204 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10205 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10206 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10207 | *\ 2.11.*) ;; # other 2.11 versions | |
10208 | *) supports_anon_versioning=yes ;; | |
10209 | esac | |
ee134472 | 10210 | |
a243b558 JF |
10211 | # See if GNU ld supports shared libraries. |
10212 | case $host_os in | |
10213 | aix[3-9]*) | |
10214 | # On AIX/PPC, the GNU linker is very broken | |
9d54db95 | 10215 | if test ia64 != "$host_cpu"; then |
a243b558 JF |
10216 | ld_shlibs=no |
10217 | cat <<_LT_EOF 1>&2 | |
ee134472 | 10218 | |
a243b558 JF |
10219 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
10220 | *** to be unable to reliably create shared libraries on AIX. | |
10221 | *** Therefore, libtool is disabling shared libraries support. If you | |
10222 | *** really care for shared libraries, you may want to install binutils | |
10223 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10224 | *** You will then need to restart the configuration process. | |
9c60689e | 10225 | |
a243b558 JF |
10226 | _LT_EOF |
10227 | fi | |
10228 | ;; | |
9c60689e | 10229 | |
a243b558 JF |
10230 | amigaos*) |
10231 | case $host_cpu in | |
10232 | powerpc) | |
10233 | # see comment about AmigaOS4 .so support | |
9d54db95 | 10234 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10235 | archive_expsym_cmds='' |
10236 | ;; | |
10237 | m68k) | |
10238 | 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)' | |
10239 | hardcode_libdir_flag_spec='-L$libdir' | |
10240 | hardcode_minus_L=yes | |
10241 | ;; | |
10242 | esac | |
10243 | ;; | |
9c60689e | 10244 | |
a243b558 JF |
10245 | beos*) |
10246 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10247 | allow_undefined_flag=unsupported | |
10248 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10249 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 10250 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10251 | else |
10252 | ld_shlibs=no | |
10253 | fi | |
10254 | ;; | |
9c60689e | 10255 | |
a243b558 JF |
10256 | cygwin* | mingw* | pw32* | cegcc*) |
10257 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10258 | # as there is no search path for DLLs. | |
10259 | hardcode_libdir_flag_spec='-L$libdir' | |
9d54db95 | 10260 | export_dynamic_flag_spec='$wl--export-all-symbols' |
a243b558 JF |
10261 | allow_undefined_flag=unsupported |
10262 | always_export_symbols=no | |
10263 | enable_shared_with_static_runtimes=yes | |
10264 | 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' | |
10265 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 10266 | |
a243b558 | 10267 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9d54db95 JF |
10268 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10269 | # If the export-symbols file already is a .def file, use it as | |
10270 | # is; otherwise, prepend EXPORTS... | |
10271 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10272 | cp $export_symbols $output_objdir/$soname.def; | |
10273 | else | |
10274 | echo EXPORTS > $output_objdir/$soname.def; | |
10275 | cat $export_symbols >> $output_objdir/$soname.def; | |
10276 | fi~ | |
10277 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
a243b558 JF |
10278 | else |
10279 | ld_shlibs=no | |
10280 | fi | |
10281 | ;; | |
9c60689e | 10282 | |
a243b558 | 10283 | haiku*) |
9d54db95 | 10284 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10285 | link_all_deplibs=yes |
10286 | ;; | |
9c60689e | 10287 | |
9d54db95 JF |
10288 | os2*) |
10289 | hardcode_libdir_flag_spec='-L$libdir' | |
10290 | hardcode_minus_L=yes | |
10291 | allow_undefined_flag=unsupported | |
10292 | shrext_cmds=.dll | |
10293 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10294 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10295 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10296 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10297 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10298 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10299 | emximp -o $lib $output_objdir/$libname.def' | |
10300 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10301 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10302 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10303 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10304 | prefix_cmds="$SED"~ | |
10305 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10306 | prefix_cmds="$prefix_cmds -e 1d"; | |
10307 | fi~ | |
10308 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10309 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10310 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10311 | emximp -o $lib $output_objdir/$libname.def' | |
10312 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10313 | enable_shared_with_static_runtimes=yes | |
10314 | ;; | |
10315 | ||
a243b558 JF |
10316 | interix[3-9]*) |
10317 | hardcode_direct=no | |
10318 | hardcode_shlibpath_var=no | |
9d54db95 JF |
10319 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10320 | export_dynamic_flag_spec='$wl-E' | |
a243b558 JF |
10321 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10322 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10323 | # default) and relocated if they conflict, which is a slow very memory | |
10324 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10325 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10326 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
10327 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10328 | 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' | |
a243b558 | 10329 | ;; |
9c60689e | 10330 | |
a243b558 JF |
10331 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
10332 | tmp_diet=no | |
9d54db95 | 10333 | if test linux-dietlibc = "$host_os"; then |
a243b558 JF |
10334 | case $cc_basename in |
10335 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10336 | esac | |
10337 | fi | |
10338 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9d54db95 | 10339 | && test no = "$tmp_diet" |
a243b558 JF |
10340 | then |
10341 | tmp_addflag=' $pic_flag' | |
10342 | tmp_sharedflag='-shared' | |
10343 | case $cc_basename,$host_cpu in | |
10344 | pgcc*) # Portland Group C compiler | |
9d54db95 | 10345 | 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' |
a243b558 JF |
10346 | tmp_addflag=' $pic_flag' |
10347 | ;; | |
10348 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10349 | # Portland Group f77 and f90 compilers | |
9d54db95 | 10350 | 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' |
a243b558 JF |
10351 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10352 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10353 | tmp_addflag=' -i_dynamic' ;; | |
10354 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10355 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10356 | ifc* | ifort*) # Intel Fortran compiler | |
10357 | tmp_addflag=' -nofor_main' ;; | |
10358 | lf95*) # Lahey Fortran 8.1 | |
10359 | whole_archive_flag_spec= | |
10360 | tmp_sharedflag='--shared' ;; | |
9d54db95 JF |
10361 | nagfor*) # NAGFOR 5.3 |
10362 | tmp_sharedflag='-Wl,-shared' ;; | |
a243b558 JF |
10363 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
10364 | tmp_sharedflag='-qmkshrobj' | |
10365 | tmp_addflag= ;; | |
10366 | nvcc*) # Cuda Compiler Driver 2.2 | |
9d54db95 | 10367 | 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' |
a243b558 JF |
10368 | compiler_needs_object=yes |
10369 | ;; | |
10370 | esac | |
10371 | case `$CC -V 2>&1 | sed 5q` in | |
10372 | *Sun\ C*) # Sun C 5.9 | |
9d54db95 | 10373 | 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' |
a243b558 JF |
10374 | compiler_needs_object=yes |
10375 | tmp_sharedflag='-G' ;; | |
10376 | *Sun\ F*) # Sun Fortran 8.3 | |
10377 | tmp_sharedflag='-G' ;; | |
10378 | esac | |
9d54db95 | 10379 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9c60689e | 10380 | |
9d54db95 | 10381 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 10382 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
10383 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10384 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10385 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
a243b558 | 10386 | fi |
9c60689e | 10387 | |
a243b558 | 10388 | case $cc_basename in |
9d54db95 JF |
10389 | tcc*) |
10390 | export_dynamic_flag_spec='-rdynamic' | |
10391 | ;; | |
a243b558 JF |
10392 | xlf* | bgf* | bgxlf* | mpixlf*) |
10393 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10394 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9d54db95 | 10395 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 | 10396 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9d54db95 | 10397 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 10398 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
10399 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10400 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10401 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
a243b558 JF |
10402 | fi |
10403 | ;; | |
10404 | esac | |
10405 | else | |
10406 | ld_shlibs=no | |
10407 | fi | |
10408 | ;; | |
9c60689e | 10409 | |
a243b558 JF |
10410 | netbsd*) |
10411 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10412 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10413 | wlarc= | |
10414 | else | |
9d54db95 JF |
10415 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10416 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10417 | fi |
10418 | ;; | |
9c60689e | 10419 | |
a243b558 JF |
10420 | solaris*) |
10421 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10422 | ld_shlibs=no | |
10423 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10424 | |
a243b558 JF |
10425 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10426 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10427 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10428 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10429 | *** your PATH or compiler configuration so that the native linker is | |
10430 | *** used, and then restart. | |
9c60689e | 10431 | |
a243b558 JF |
10432 | _LT_EOF |
10433 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10434 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10435 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10436 | else |
10437 | ld_shlibs=no | |
10438 | fi | |
10439 | ;; | |
9c60689e | 10440 | |
a243b558 JF |
10441 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10442 | case `$LD -v 2>&1` in | |
10443 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10444 | ld_shlibs=no | |
10445 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10446 | |
9d54db95 | 10447 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
a243b558 JF |
10448 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
10449 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10450 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10451 | *** your PATH or compiler configuration so that the native linker is | |
10452 | *** used, and then restart. | |
9c60689e | 10453 | |
a243b558 JF |
10454 | _LT_EOF |
10455 | ;; | |
10456 | *) | |
10457 | # For security reasons, it is highly recommended that you always | |
10458 | # use absolute paths for naming shared libraries, and exclude the | |
10459 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10460 | # requires that you compile everything twice, which is a pain. | |
10461 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10462 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10463 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10464 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10465 | else |
10466 | ld_shlibs=no | |
10467 | fi | |
10468 | ;; | |
10469 | esac | |
10470 | ;; | |
9c60689e | 10471 | |
a243b558 JF |
10472 | sunos4*) |
10473 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10474 | wlarc= | |
10475 | hardcode_direct=yes | |
10476 | hardcode_shlibpath_var=no | |
10477 | ;; | |
9c60689e | 10478 | |
a243b558 JF |
10479 | *) |
10480 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10481 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10482 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10483 | else |
10484 | ld_shlibs=no | |
10485 | fi | |
10486 | ;; | |
10487 | esac | |
9c60689e | 10488 | |
9d54db95 | 10489 | if test no = "$ld_shlibs"; then |
a243b558 JF |
10490 | runpath_var= |
10491 | hardcode_libdir_flag_spec= | |
10492 | export_dynamic_flag_spec= | |
10493 | whole_archive_flag_spec= | |
10494 | fi | |
10495 | else | |
10496 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10497 | case $host_os in | |
10498 | aix3*) | |
10499 | allow_undefined_flag=unsupported | |
10500 | always_export_symbols=yes | |
10501 | 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' | |
10502 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10503 | # are no directories specified by -L. | |
10504 | hardcode_minus_L=yes | |
9d54db95 | 10505 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
a243b558 JF |
10506 | # Neither direct hardcoding nor static linking is supported with a |
10507 | # broken collect2. | |
10508 | hardcode_direct=unsupported | |
10509 | fi | |
10510 | ;; | |
9c60689e | 10511 | |
a243b558 | 10512 | aix[4-9]*) |
9d54db95 | 10513 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
10514 | # On IA64, the linker does run time linking by default, so we don't |
10515 | # have to do anything special. | |
10516 | aix_use_runtimelinking=no | |
10517 | exp_sym_flag='-Bexport' | |
9d54db95 | 10518 | no_entry_flag= |
a243b558 JF |
10519 | else |
10520 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
10521 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
10522 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10523 | # weak defined symbols like other global defined symbols, whereas | |
10524 | # GNU nm marks them as "W". | |
10525 | # While the 'weak' keyword is ignored in the Export File, we need | |
10526 | # it in the Import File for the 'aix-soname' feature, so we have | |
10527 | # to replace the "-B" option with "-P" for AIX nm. | |
a243b558 | 10528 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 10529 | 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' |
a243b558 | 10530 | else |
9d54db95 | 10531 | 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' |
a243b558 JF |
10532 | fi |
10533 | aix_use_runtimelinking=no | |
9c60689e | 10534 | |
a243b558 JF |
10535 | # Test if we are trying to use run time linking or normal |
10536 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
10537 | # have runtime linking enabled, and use it for executables. |
10538 | # For shared libraries, we enable/disable runtime linking | |
10539 | # depending on the kind of the shared library created - | |
10540 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10541 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10542 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10543 | # lib.a static archive | |
10544 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10545 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10546 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10547 | # lib.a(lib.so.V) shared, rtl:no | |
10548 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10549 | # lib.a static archive | |
a243b558 JF |
10550 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
10551 | for ld_flag in $LDFLAGS; do | |
9d54db95 | 10552 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
a243b558 JF |
10553 | aix_use_runtimelinking=yes |
10554 | break | |
10555 | fi | |
10556 | done | |
9d54db95 JF |
10557 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
10558 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10559 | # so we don't have lib.a shared libs to link our executables. | |
10560 | # We have to force runtime linking in this case. | |
10561 | aix_use_runtimelinking=yes | |
10562 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10563 | fi | |
a243b558 JF |
10564 | ;; |
10565 | esac | |
9c60689e | 10566 | |
a243b558 JF |
10567 | exp_sym_flag='-bexport' |
10568 | no_entry_flag='-bnoentry' | |
10569 | fi | |
9c60689e | 10570 | |
a243b558 JF |
10571 | # When large executables or shared objects are built, AIX ld can |
10572 | # have problems creating the table of contents. If linking a library | |
10573 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10574 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10575 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10576 | |
a243b558 JF |
10577 | archive_cmds='' |
10578 | hardcode_direct=yes | |
10579 | hardcode_direct_absolute=yes | |
10580 | hardcode_libdir_separator=':' | |
10581 | link_all_deplibs=yes | |
9d54db95 JF |
10582 | file_list_spec='$wl-f,' |
10583 | case $with_aix_soname,$aix_use_runtimelinking in | |
10584 | aix,*) ;; # traditional, no import file | |
10585 | svr4,* | *,yes) # use import file | |
10586 | # The Import File defines what to hardcode. | |
10587 | hardcode_direct=no | |
10588 | hardcode_direct_absolute=no | |
10589 | ;; | |
10590 | esac | |
9c60689e | 10591 | |
9d54db95 | 10592 | if test yes = "$GCC"; then |
a243b558 JF |
10593 | case $host_os in aix4.[012]|aix4.[012].*) |
10594 | # We only want to do this on AIX 4.2 and lower, the check | |
10595 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 10596 | collect2name=`$CC -print-prog-name=collect2` |
a243b558 JF |
10597 | if test -f "$collect2name" && |
10598 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10599 | then | |
10600 | # We have reworked collect2 | |
10601 | : | |
10602 | else | |
10603 | # We have old collect2 | |
10604 | hardcode_direct=unsupported | |
10605 | # It fails to find uninstalled libraries when the uninstalled | |
10606 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10607 | # to unsupported forces relinking | |
10608 | hardcode_minus_L=yes | |
10609 | hardcode_libdir_flag_spec='-L$libdir' | |
10610 | hardcode_libdir_separator= | |
10611 | fi | |
10612 | ;; | |
10613 | esac | |
10614 | shared_flag='-shared' | |
9d54db95 JF |
10615 | if test yes = "$aix_use_runtimelinking"; then |
10616 | shared_flag="$shared_flag "'$wl-G' | |
a243b558 | 10617 | fi |
9d54db95 JF |
10618 | # Need to ensure runtime linking is disabled for the traditional |
10619 | # shared library, or the linker may eventually find shared libraries | |
10620 | # /with/ Import File - we do not want to mix them. | |
10621 | shared_flag_aix='-shared' | |
10622 | shared_flag_svr4='-shared $wl-G' | |
a243b558 JF |
10623 | else |
10624 | # not using gcc | |
9d54db95 | 10625 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
10626 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10627 | # chokes on -Wl,-G. The following line is correct: | |
10628 | shared_flag='-G' | |
10629 | else | |
9d54db95 JF |
10630 | if test yes = "$aix_use_runtimelinking"; then |
10631 | shared_flag='$wl-G' | |
a243b558 | 10632 | else |
9d54db95 | 10633 | shared_flag='$wl-bM:SRE' |
a243b558 | 10634 | fi |
9d54db95 JF |
10635 | shared_flag_aix='$wl-bM:SRE' |
10636 | shared_flag_svr4='$wl-G' | |
a243b558 JF |
10637 | fi |
10638 | fi | |
9c60689e | 10639 | |
9d54db95 | 10640 | export_dynamic_flag_spec='$wl-bexpall' |
a243b558 JF |
10641 | # It seems that -bexpall does not export symbols beginning with |
10642 | # underscore (_), so it is better to generate a list of symbols to export. | |
10643 | always_export_symbols=yes | |
9d54db95 | 10644 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
a243b558 JF |
10645 | # Warning - without using the other runtime loading flags (-brtl), |
10646 | # -berok will link without error, but may produce a broken library. | |
10647 | allow_undefined_flag='-berok' | |
10648 | # Determine the default libpath from the value encoded in an | |
10649 | # empty executable. | |
9d54db95 | 10650 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 10651 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 10652 | else |
a243b558 | 10653 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10654 | $as_echo_n "(cached) " >&6 |
10655 | else | |
a243b558 | 10656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10657 | /* end confdefs.h. */ |
10658 | ||
9c60689e DWT |
10659 | int |
10660 | main () | |
10661 | { | |
a243b558 | 10662 | |
9c60689e DWT |
10663 | ; |
10664 | return 0; | |
10665 | } | |
10666 | _ACEOF | |
10667 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10668 | |
10669 | lt_aix_libpath_sed=' | |
10670 | /Import File Strings/,/^$/ { | |
10671 | /^0/ { | |
10672 | s/^0 *\([^ ]*\) *$/\1/ | |
10673 | p | |
10674 | } | |
10675 | }' | |
10676 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10677 | # Check for a 64-bit object if we didn't find anything. | |
10678 | if test -z "$lt_cv_aix_libpath_"; then | |
10679 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10680 | fi | |
9c60689e DWT |
10681 | fi |
10682 | rm -f core conftest.err conftest.$ac_objext \ | |
10683 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 10684 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 10685 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 | 10686 | fi |
9c60689e DWT |
10687 | |
10688 | fi | |
10689 | ||
a243b558 JF |
10690 | aix_libpath=$lt_cv_aix_libpath_ |
10691 | fi | |
9c60689e | 10692 | |
9d54db95 JF |
10693 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10694 | 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 | |
a243b558 | 10695 | else |
9d54db95 JF |
10696 | if test ia64 = "$host_cpu"; then |
10697 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
a243b558 | 10698 | allow_undefined_flag="-z nodefs" |
9d54db95 | 10699 | 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" |
a243b558 JF |
10700 | else |
10701 | # Determine the default libpath from the value encoded in an | |
10702 | # empty executable. | |
9d54db95 | 10703 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 10704 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 10705 | else |
a243b558 | 10706 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10707 | $as_echo_n "(cached) " >&6 |
10708 | else | |
a243b558 | 10709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10710 | /* end confdefs.h. */ |
10711 | ||
9c60689e DWT |
10712 | int |
10713 | main () | |
10714 | { | |
a243b558 | 10715 | |
9c60689e DWT |
10716 | ; |
10717 | return 0; | |
10718 | } | |
10719 | _ACEOF | |
10720 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10721 | |
a243b558 JF |
10722 | lt_aix_libpath_sed=' |
10723 | /Import File Strings/,/^$/ { | |
10724 | /^0/ { | |
10725 | s/^0 *\([^ ]*\) *$/\1/ | |
10726 | p | |
10727 | } | |
10728 | }' | |
10729 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10730 | # Check for a 64-bit object if we didn't find anything. | |
10731 | if test -z "$lt_cv_aix_libpath_"; then | |
10732 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10733 | fi | |
9c60689e DWT |
10734 | fi |
10735 | rm -f core conftest.err conftest.$ac_objext \ | |
10736 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 10737 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 10738 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 JF |
10739 | fi |
10740 | ||
9c60689e | 10741 | fi |
9c60689e | 10742 | |
a243b558 JF |
10743 | aix_libpath=$lt_cv_aix_libpath_ |
10744 | fi | |
10745 | ||
9d54db95 | 10746 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
a243b558 JF |
10747 | # Warning - without using the other run time loading flags, |
10748 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
10749 | no_undefined_flag=' $wl-bernotok' |
10750 | allow_undefined_flag=' $wl-berok' | |
10751 | if test yes = "$with_gnu_ld"; then | |
a243b558 | 10752 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 10753 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
a243b558 JF |
10754 | else |
10755 | # Exported symbols can be pulled into shared objects from archives | |
10756 | whole_archive_flag_spec='$convenience' | |
10757 | fi | |
10758 | archive_cmds_need_lc=yes | |
9d54db95 JF |
10759 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10760 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10761 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10762 | if test svr4 != "$with_aix_soname"; then | |
10763 | # This is similar to how AIX traditionally builds its shared libraries. | |
10764 | 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' | |
10765 | fi | |
10766 | if test aix != "$with_aix_soname"; then | |
10767 | 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' | |
10768 | else | |
10769 | # used by -dlpreopen to get the symbols | |
10770 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10771 | fi | |
10772 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
a243b558 JF |
10773 | fi |
10774 | fi | |
10775 | ;; | |
10776 | ||
10777 | amigaos*) | |
10778 | case $host_cpu in | |
10779 | powerpc) | |
10780 | # see comment about AmigaOS4 .so support | |
9d54db95 | 10781 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10782 | archive_expsym_cmds='' |
10783 | ;; | |
10784 | m68k) | |
10785 | 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)' | |
10786 | hardcode_libdir_flag_spec='-L$libdir' | |
10787 | hardcode_minus_L=yes | |
10788 | ;; | |
10789 | esac | |
10790 | ;; | |
10791 | ||
10792 | bsdi[45]*) | |
10793 | export_dynamic_flag_spec=-rdynamic | |
10794 | ;; | |
10795 | ||
10796 | cygwin* | mingw* | pw32* | cegcc*) | |
10797 | # When not using gcc, we currently assume that we are using | |
10798 | # Microsoft Visual C++. | |
10799 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10800 | # no search path for DLLs. | |
10801 | case $cc_basename in | |
10802 | cl*) | |
10803 | # Native MSVC | |
10804 | hardcode_libdir_flag_spec=' ' | |
10805 | allow_undefined_flag=unsupported | |
10806 | always_export_symbols=yes | |
10807 | file_list_spec='@' | |
10808 | # Tell ltmain to make .lib files, not .a files. | |
10809 | libext=lib | |
10810 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 10811 | shrext_cmds=.dll |
a243b558 | 10812 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
10813 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10814 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10815 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10816 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10817 | else | |
10818 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10819 | fi~ | |
10820 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10821 | linknames=' | |
a243b558 JF |
10822 | # The linker will not automatically build a static lib if we build a DLL. |
10823 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10824 | enable_shared_with_static_runtimes=yes | |
10825 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10826 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10827 | # Don't use ranlib | |
10828 | old_postinstall_cmds='chmod 644 $oldlib' | |
10829 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
10830 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10831 | case $lt_outputfile in | |
10832 | *.exe|*.EXE) ;; | |
10833 | *) | |
10834 | lt_outputfile=$lt_outputfile.exe | |
10835 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10836 | ;; | |
10837 | esac~ | |
10838 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10839 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10840 | $RM "$lt_outputfile.manifest"; | |
10841 | fi' | |
a243b558 JF |
10842 | ;; |
10843 | *) | |
10844 | # Assume MSVC wrapper | |
10845 | hardcode_libdir_flag_spec=' ' | |
10846 | allow_undefined_flag=unsupported | |
10847 | # Tell ltmain to make .lib files, not .a files. | |
10848 | libext=lib | |
10849 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 10850 | shrext_cmds=.dll |
a243b558 JF |
10851 | # FIXME: Setting linknames here is a bad hack. |
10852 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10853 | # The linker will automatically build a .lib file if we build a DLL. | |
10854 | old_archive_from_new_cmds='true' | |
10855 | # FIXME: Should let the user specify the lib program. | |
10856 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10857 | enable_shared_with_static_runtimes=yes | |
10858 | ;; | |
10859 | esac | |
10860 | ;; | |
10861 | ||
10862 | darwin* | rhapsody*) | |
10863 | ||
10864 | ||
10865 | archive_cmds_need_lc=no | |
10866 | hardcode_direct=no | |
10867 | hardcode_automatic=yes | |
10868 | hardcode_shlibpath_var=unsupported | |
9d54db95 JF |
10869 | if test yes = "$lt_cv_ld_force_load"; then |
10870 | 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\"`' | |
a243b558 JF |
10871 | |
10872 | else | |
10873 | whole_archive_flag_spec='' | |
10874 | fi | |
10875 | link_all_deplibs=yes | |
9d54db95 | 10876 | allow_undefined_flag=$_lt_dar_allow_undefined |
a243b558 | 10877 | case $cc_basename in |
9d54db95 | 10878 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
a243b558 JF |
10879 | *) _lt_dar_can_shared=$GCC ;; |
10880 | esac | |
9d54db95 | 10881 | if test yes = "$_lt_dar_can_shared"; then |
a243b558 | 10882 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
10883 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10884 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10885 | 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" | |
10886 | 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" | |
a243b558 JF |
10887 | |
10888 | else | |
10889 | ld_shlibs=no | |
10890 | fi | |
10891 | ||
10892 | ;; | |
10893 | ||
10894 | dgux*) | |
10895 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10896 | hardcode_libdir_flag_spec='-L$libdir' | |
10897 | hardcode_shlibpath_var=no | |
10898 | ;; | |
10899 | ||
10900 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10901 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10902 | # does not break anything, and helps significantly (at the cost of a little | |
10903 | # extra space). | |
10904 | freebsd2.2*) | |
10905 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10906 | hardcode_libdir_flag_spec='-R$libdir' | |
10907 | hardcode_direct=yes | |
10908 | hardcode_shlibpath_var=no | |
10909 | ;; | |
10910 | ||
10911 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10912 | freebsd2.*) | |
10913 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10914 | hardcode_direct=yes | |
10915 | hardcode_minus_L=yes | |
10916 | hardcode_shlibpath_var=no | |
10917 | ;; | |
10918 | ||
10919 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10920 | freebsd* | dragonfly*) | |
10921 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10922 | hardcode_libdir_flag_spec='-R$libdir' | |
10923 | hardcode_direct=yes | |
10924 | hardcode_shlibpath_var=no | |
10925 | ;; | |
10926 | ||
10927 | hpux9*) | |
9d54db95 JF |
10928 | if test yes = "$GCC"; then |
10929 | 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' | |
a243b558 | 10930 | else |
9d54db95 | 10931 | 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' |
a243b558 | 10932 | fi |
9d54db95 | 10933 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
a243b558 JF |
10934 | hardcode_libdir_separator=: |
10935 | hardcode_direct=yes | |
10936 | ||
10937 | # hardcode_minus_L: Not really in the search PATH, | |
10938 | # but as the default location of the library. | |
10939 | hardcode_minus_L=yes | |
9d54db95 | 10940 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
10941 | ;; |
10942 | ||
10943 | hpux10*) | |
9d54db95 JF |
10944 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10945 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
10946 | else |
10947 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10948 | fi | |
9d54db95 JF |
10949 | if test no = "$with_gnu_ld"; then |
10950 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
10951 | hardcode_libdir_separator=: |
10952 | hardcode_direct=yes | |
10953 | hardcode_direct_absolute=yes | |
9d54db95 | 10954 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
10955 | # hardcode_minus_L: Not really in the search PATH, |
10956 | # but as the default location of the library. | |
10957 | hardcode_minus_L=yes | |
10958 | fi | |
10959 | ;; | |
10960 | ||
10961 | hpux11*) | |
9d54db95 | 10962 | if test yes,no = "$GCC,$with_gnu_ld"; then |
a243b558 JF |
10963 | case $host_cpu in |
10964 | hppa*64*) | |
9d54db95 | 10965 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10966 | ;; |
10967 | ia64*) | |
9d54db95 | 10968 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10969 | ;; |
10970 | *) | |
9d54db95 | 10971 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10972 | ;; |
10973 | esac | |
10974 | else | |
10975 | case $host_cpu in | |
10976 | hppa*64*) | |
9d54db95 | 10977 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10978 | ;; |
10979 | ia64*) | |
9d54db95 | 10980 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10981 | ;; |
10982 | *) | |
10983 | ||
10984 | # Older versions of the 11.00 compiler do not understand -b yet | |
10985 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10987 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10988 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10989 | $as_echo_n "(cached) " >&6 | |
10990 | else | |
10991 | lt_cv_prog_compiler__b=no | |
9d54db95 | 10992 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
10993 | LDFLAGS="$LDFLAGS -b" |
10994 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10995 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10996 | # The linker can only warn and ignore the option if not recognized | |
10997 | # So say no if there are warnings | |
10998 | if test -s conftest.err; then | |
10999 | # Append any errors to the config.log. | |
11000 | cat conftest.err 1>&5 | |
11001 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11002 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11003 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11004 | lt_cv_prog_compiler__b=yes | |
11005 | fi | |
11006 | else | |
11007 | lt_cv_prog_compiler__b=yes | |
11008 | fi | |
11009 | fi | |
11010 | $RM -r conftest* | |
9d54db95 | 11011 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
11012 | |
11013 | fi | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11015 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11016 | ||
9d54db95 JF |
11017 | if test yes = "$lt_cv_prog_compiler__b"; then |
11018 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11019 | else |
11020 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11021 | fi | |
11022 | ||
11023 | ;; | |
11024 | esac | |
11025 | fi | |
9d54db95 JF |
11026 | if test no = "$with_gnu_ld"; then |
11027 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
11028 | hardcode_libdir_separator=: |
11029 | ||
11030 | case $host_cpu in | |
11031 | hppa*64*|ia64*) | |
11032 | hardcode_direct=no | |
11033 | hardcode_shlibpath_var=no | |
11034 | ;; | |
11035 | *) | |
11036 | hardcode_direct=yes | |
11037 | hardcode_direct_absolute=yes | |
9d54db95 | 11038 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
11039 | |
11040 | # hardcode_minus_L: Not really in the search PATH, | |
11041 | # but as the default location of the library. | |
11042 | hardcode_minus_L=yes | |
11043 | ;; | |
11044 | esac | |
11045 | fi | |
11046 | ;; | |
11047 | ||
11048 | irix5* | irix6* | nonstopux*) | |
9d54db95 JF |
11049 | if test yes = "$GCC"; then |
11050 | 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' | |
a243b558 JF |
11051 | # Try to use the -exported_symbol ld option, if it does not |
11052 | # work, assume that -exports_file does not work either and | |
11053 | # implicitly export all symbols. | |
11054 | # This should be the same for all languages, so no per-tag cache variable. | |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
11056 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
11057 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
11058 | $as_echo_n "(cached) " >&6 | |
11059 | else | |
9d54db95 JF |
11060 | save_LDFLAGS=$LDFLAGS |
11061 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
a243b558 JF |
11062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11063 | /* end confdefs.h. */ | |
11064 | int foo (void) { return 0; } | |
11065 | _ACEOF | |
11066 | if ac_fn_c_try_link "$LINENO"; then : | |
11067 | lt_cv_irix_exported_symbol=yes | |
11068 | else | |
11069 | lt_cv_irix_exported_symbol=no | |
11070 | fi | |
11071 | rm -f core conftest.err conftest.$ac_objext \ | |
11072 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 11073 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
11074 | fi |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
11076 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9d54db95 JF |
11077 | if test yes = "$lt_cv_irix_exported_symbol"; then |
11078 | 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' | |
a243b558 JF |
11079 | fi |
11080 | else | |
9d54db95 JF |
11081 | 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' |
11082 | 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' | |
a243b558 JF |
11083 | fi |
11084 | archive_cmds_need_lc='no' | |
9d54db95 | 11085 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11086 | hardcode_libdir_separator=: |
11087 | inherit_rpath=yes | |
11088 | link_all_deplibs=yes | |
11089 | ;; | |
11090 | ||
9d54db95 JF |
11091 | linux*) |
11092 | case $cc_basename in | |
11093 | tcc*) | |
11094 | # Fabrice Bellard et al's Tiny C Compiler | |
11095 | ld_shlibs=yes | |
11096 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11097 | ;; | |
11098 | esac | |
11099 | ;; | |
11100 | ||
a243b558 JF |
11101 | netbsd*) |
11102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11103 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11104 | else | |
11105 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11106 | fi | |
11107 | hardcode_libdir_flag_spec='-R$libdir' | |
11108 | hardcode_direct=yes | |
11109 | hardcode_shlibpath_var=no | |
11110 | ;; | |
11111 | ||
11112 | newsos6) | |
11113 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11114 | hardcode_direct=yes | |
9d54db95 | 11115 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11116 | hardcode_libdir_separator=: |
11117 | hardcode_shlibpath_var=no | |
11118 | ;; | |
11119 | ||
11120 | *nto* | *qnx*) | |
11121 | ;; | |
11122 | ||
9d54db95 | 11123 | openbsd* | bitrig*) |
a243b558 JF |
11124 | if test -f /usr/libexec/ld.so; then |
11125 | hardcode_direct=yes | |
11126 | hardcode_shlibpath_var=no | |
11127 | hardcode_direct_absolute=yes | |
9d54db95 | 11128 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
a243b558 | 11129 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9d54db95 JF |
11130 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
11131 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
11132 | export_dynamic_flag_spec='$wl-E' | |
a243b558 | 11133 | else |
9d54db95 JF |
11134 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
11135 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
a243b558 JF |
11136 | fi |
11137 | else | |
11138 | ld_shlibs=no | |
11139 | fi | |
11140 | ;; | |
11141 | ||
11142 | os2*) | |
11143 | hardcode_libdir_flag_spec='-L$libdir' | |
11144 | hardcode_minus_L=yes | |
11145 | allow_undefined_flag=unsupported | |
9d54db95 JF |
11146 | shrext_cmds=.dll |
11147 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11148 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11149 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11150 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11151 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11152 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11153 | emximp -o $lib $output_objdir/$libname.def' | |
11154 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11155 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11156 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11157 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11158 | prefix_cmds="$SED"~ | |
11159 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11160 | prefix_cmds="$prefix_cmds -e 1d"; | |
11161 | fi~ | |
11162 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11163 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11164 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11165 | emximp -o $lib $output_objdir/$libname.def' | |
11166 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11167 | enable_shared_with_static_runtimes=yes | |
a243b558 JF |
11168 | ;; |
11169 | ||
11170 | osf3*) | |
9d54db95 JF |
11171 | if test yes = "$GCC"; then |
11172 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11173 | 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' | |
a243b558 JF |
11174 | else |
11175 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 11176 | 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' |
a243b558 JF |
11177 | fi |
11178 | archive_cmds_need_lc='no' | |
9d54db95 | 11179 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11180 | hardcode_libdir_separator=: |
11181 | ;; | |
11182 | ||
11183 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9d54db95 JF |
11184 | if test yes = "$GCC"; then |
11185 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11186 | 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' | |
11187 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
a243b558 JF |
11188 | else |
11189 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 11190 | 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' |
a243b558 | 11191 | 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~ |
9d54db95 | 11192 | $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' |
a243b558 JF |
11193 | |
11194 | # Both c and cxx compiler support -rpath directly | |
11195 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11196 | fi | |
11197 | archive_cmds_need_lc='no' | |
11198 | hardcode_libdir_separator=: | |
11199 | ;; | |
11200 | ||
11201 | solaris*) | |
11202 | no_undefined_flag=' -z defs' | |
9d54db95 JF |
11203 | if test yes = "$GCC"; then |
11204 | wlarc='$wl' | |
11205 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11206 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11207 | $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' |
a243b558 JF |
11208 | else |
11209 | case `$CC -V 2>&1` in | |
11210 | *"Compilers 5.0"*) | |
11211 | wlarc='' | |
9d54db95 | 11212 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
a243b558 | 11213 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11214 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
a243b558 JF |
11215 | ;; |
11216 | *) | |
9d54db95 JF |
11217 | wlarc='$wl' |
11218 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11219 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11220 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a243b558 JF |
11221 | ;; |
11222 | esac | |
11223 | fi | |
11224 | hardcode_libdir_flag_spec='-R$libdir' | |
11225 | hardcode_shlibpath_var=no | |
11226 | case $host_os in | |
11227 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11228 | *) | |
11229 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 11230 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
a243b558 JF |
11231 | # but is careful enough not to reorder. |
11232 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9d54db95 JF |
11233 | if test yes = "$GCC"; then |
11234 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
a243b558 JF |
11235 | else |
11236 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11237 | fi | |
11238 | ;; | |
11239 | esac | |
11240 | link_all_deplibs=yes | |
11241 | ;; | |
11242 | ||
11243 | sunos4*) | |
9d54db95 | 11244 | if test sequent = "$host_vendor"; then |
a243b558 JF |
11245 | # Use $CC to link under sequent, because it throws in some extra .o |
11246 | # files that make .init and .fini sections work. | |
9d54db95 | 11247 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
11248 | else |
11249 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11250 | fi | |
11251 | hardcode_libdir_flag_spec='-L$libdir' | |
11252 | hardcode_direct=yes | |
11253 | hardcode_minus_L=yes | |
11254 | hardcode_shlibpath_var=no | |
11255 | ;; | |
11256 | ||
11257 | sysv4) | |
11258 | case $host_vendor in | |
11259 | sni) | |
11260 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11261 | hardcode_direct=yes # is this really true??? | |
11262 | ;; | |
11263 | siemens) | |
11264 | ## LD is ld it makes a PLAMLIB | |
11265 | ## CC just makes a GrossModule. | |
11266 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11267 | reload_cmds='$CC -r -o $output$reload_objs' | |
11268 | hardcode_direct=no | |
11269 | ;; | |
11270 | motorola) | |
11271 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11272 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11273 | ;; | |
11274 | esac | |
11275 | runpath_var='LD_RUN_PATH' | |
11276 | hardcode_shlibpath_var=no | |
11277 | ;; | |
11278 | ||
11279 | sysv4.3*) | |
11280 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11281 | hardcode_shlibpath_var=no | |
11282 | export_dynamic_flag_spec='-Bexport' | |
11283 | ;; | |
11284 | ||
11285 | sysv4*MP*) | |
11286 | if test -d /usr/nec; then | |
11287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11288 | hardcode_shlibpath_var=no | |
11289 | runpath_var=LD_RUN_PATH | |
11290 | hardcode_runpath_var=yes | |
11291 | ld_shlibs=yes | |
11292 | fi | |
11293 | ;; | |
11294 | ||
11295 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9d54db95 | 11296 | no_undefined_flag='$wl-z,text' |
a243b558 JF |
11297 | archive_cmds_need_lc=no |
11298 | hardcode_shlibpath_var=no | |
11299 | runpath_var='LD_RUN_PATH' | |
11300 | ||
9d54db95 JF |
11301 | if test yes = "$GCC"; then |
11302 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11303 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11304 | else |
9d54db95 JF |
11305 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11306 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11307 | fi |
11308 | ;; | |
11309 | ||
11310 | sysv5* | sco3.2v5* | sco5v6*) | |
9d54db95 | 11311 | # Note: We CANNOT use -z defs as we might desire, because we do not |
a243b558 JF |
11312 | # link with -lc, and that would cause any symbols used from libc to |
11313 | # always be unresolved, which means just about no library would | |
11314 | # ever link correctly. If we're not using GNU ld we use -z text | |
11315 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11316 | # as -z defs. | |
9d54db95 JF |
11317 | no_undefined_flag='$wl-z,text' |
11318 | allow_undefined_flag='$wl-z,nodefs' | |
a243b558 JF |
11319 | archive_cmds_need_lc=no |
11320 | hardcode_shlibpath_var=no | |
9d54db95 | 11321 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
a243b558 JF |
11322 | hardcode_libdir_separator=':' |
11323 | link_all_deplibs=yes | |
9d54db95 | 11324 | export_dynamic_flag_spec='$wl-Bexport' |
a243b558 JF |
11325 | runpath_var='LD_RUN_PATH' |
11326 | ||
9d54db95 JF |
11327 | if test yes = "$GCC"; then |
11328 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11329 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11330 | else |
9d54db95 JF |
11331 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11332 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11333 | fi |
11334 | ;; | |
11335 | ||
11336 | uts4*) | |
11337 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11338 | hardcode_libdir_flag_spec='-L$libdir' | |
11339 | hardcode_shlibpath_var=no | |
11340 | ;; | |
11341 | ||
11342 | *) | |
11343 | ld_shlibs=no | |
11344 | ;; | |
11345 | esac | |
11346 | ||
9d54db95 | 11347 | if test sni = "$host_vendor"; then |
a243b558 JF |
11348 | case $host in |
11349 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9d54db95 | 11350 | export_dynamic_flag_spec='$wl-Blargedynsym' |
a243b558 JF |
11351 | ;; |
11352 | esac | |
11353 | fi | |
11354 | fi | |
11355 | ||
11356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11357 | $as_echo "$ld_shlibs" >&6; } | |
9d54db95 | 11358 | test no = "$ld_shlibs" && can_build_shared=no |
a243b558 JF |
11359 | |
11360 | with_gnu_ld=$with_gnu_ld | |
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | # | |
11377 | # Do we need to explicitly link libc? | |
11378 | # | |
11379 | case "x$archive_cmds_need_lc" in | |
11380 | x|xyes) | |
11381 | # Assume -lc should be added | |
11382 | archive_cmds_need_lc=yes | |
11383 | ||
9d54db95 | 11384 | if test yes,yes = "$GCC,$enable_shared"; then |
a243b558 JF |
11385 | case $archive_cmds in |
11386 | *'~'*) | |
11387 | # FIXME: we may have to deal with multi-command sequences. | |
11388 | ;; | |
11389 | '$CC '*) | |
11390 | # Test whether the compiler implicitly links with -lc since on some | |
11391 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11392 | # to ld, don't add -lc before -lgcc. | |
11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11394 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11395 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11396 | $as_echo_n "(cached) " >&6 | |
11397 | else | |
00a96142 | 11398 | $RM -r conftest* |
a243b558 JF |
11399 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
11400 | ||
11401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11402 | (eval $ac_compile) 2>&5 | |
11403 | ac_status=$? | |
11404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11405 | test $ac_status = 0; } 2>conftest.err; then | |
11406 | soname=conftest | |
11407 | lib=conftest | |
11408 | libobjs=conftest.$ac_objext | |
11409 | deplibs= | |
11410 | wl=$lt_prog_compiler_wl | |
11411 | pic_flag=$lt_prog_compiler_pic | |
11412 | compiler_flags=-v | |
11413 | linker_flags=-v | |
11414 | verstring= | |
11415 | output_objdir=. | |
11416 | libname=conftest | |
11417 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11418 | allow_undefined_flag= | |
11419 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11420 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11421 | ac_status=$? | |
11422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11423 | test $ac_status = 0; } | |
11424 | then | |
11425 | lt_cv_archive_cmds_need_lc=no | |
11426 | else | |
11427 | lt_cv_archive_cmds_need_lc=yes | |
11428 | fi | |
11429 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11430 | else | |
11431 | cat conftest.err 1>&5 | |
11432 | fi | |
00a96142 | 11433 | $RM -r conftest* |
a243b558 JF |
11434 | |
11435 | fi | |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11437 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11438 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11439 | ;; | |
11440 | esac | |
11441 | fi | |
11442 | ;; | |
11443 | esac | |
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11597 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11598 | ||
9d54db95 | 11599 | if test yes = "$GCC"; then |
a243b558 | 11600 | case $host_os in |
9d54db95 JF |
11601 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
11602 | *) lt_awk_arg='/^libraries:/' ;; | |
a243b558 JF |
11603 | esac |
11604 | case $host_os in | |
9d54db95 JF |
11605 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
11606 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
a243b558 JF |
11607 | esac |
11608 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11609 | case $lt_search_path_spec in | |
11610 | *\;*) | |
11611 | # if the path contains ";" then we assume it to be the separator | |
11612 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11613 | # assumed that no part of a normal pathname contains ";" but that should | |
11614 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11615 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11616 | ;; | |
11617 | *) | |
11618 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11619 | ;; | |
11620 | esac | |
11621 | # Ok, now we have the path, separated by spaces, we can step through it | |
9d54db95 | 11622 | # and add multilib dir if necessary... |
a243b558 | 11623 | lt_tmp_lt_search_path_spec= |
9d54db95 JF |
11624 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
11625 | # ...but if some path component already ends with the multilib dir we assume | |
11626 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11627 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11628 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11629 | lt_multi_os_dir= | |
11630 | ;; | |
11631 | esac | |
a243b558 | 11632 | for lt_sys_path in $lt_search_path_spec; do |
9d54db95 JF |
11633 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
11634 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11635 | elif test -n "$lt_multi_os_dir"; then | |
a243b558 JF |
11636 | test -d "$lt_sys_path" && \ |
11637 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11638 | fi | |
11639 | done | |
11640 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9d54db95 JF |
11641 | BEGIN {RS = " "; FS = "/|\n";} { |
11642 | lt_foo = ""; | |
11643 | lt_count = 0; | |
a243b558 JF |
11644 | for (lt_i = NF; lt_i > 0; lt_i--) { |
11645 | if ($lt_i != "" && $lt_i != ".") { | |
11646 | if ($lt_i == "..") { | |
11647 | lt_count++; | |
11648 | } else { | |
11649 | if (lt_count == 0) { | |
9d54db95 | 11650 | lt_foo = "/" $lt_i lt_foo; |
a243b558 JF |
11651 | } else { |
11652 | lt_count--; | |
11653 | } | |
11654 | } | |
11655 | } | |
11656 | } | |
11657 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11658 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11659 | }'` | |
11660 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11661 | # for these hosts. | |
11662 | case $host_os in | |
11663 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9d54db95 | 11664 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
a243b558 JF |
11665 | esac |
11666 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11667 | else | |
11668 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11669 | fi | |
11670 | library_names_spec= | |
11671 | libname_spec='lib$name' | |
11672 | soname_spec= | |
9d54db95 | 11673 | shrext_cmds=.so |
a243b558 JF |
11674 | postinstall_cmds= |
11675 | postuninstall_cmds= | |
11676 | finish_cmds= | |
11677 | finish_eval= | |
11678 | shlibpath_var= | |
11679 | shlibpath_overrides_runpath=unknown | |
11680 | version_type=none | |
11681 | dynamic_linker="$host_os ld.so" | |
11682 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11683 | need_lib_prefix=unknown | |
11684 | hardcode_into_libs=no | |
11685 | ||
11686 | # when you set need_version to no, make sure it does not cause -set_version | |
11687 | # flags to be left without arguments | |
11688 | need_version=unknown | |
11689 | ||
9d54db95 JF |
11690 | |
11691 | ||
a243b558 JF |
11692 | case $host_os in |
11693 | aix3*) | |
11694 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 11695 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
a243b558 JF |
11696 | shlibpath_var=LIBPATH |
11697 | ||
11698 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 11699 | soname_spec='$libname$release$shared_ext$major' |
a243b558 JF |
11700 | ;; |
11701 | ||
11702 | aix[4-9]*) | |
11703 | version_type=linux # correct to gnu/linux during the next big refactor | |
11704 | need_lib_prefix=no | |
11705 | need_version=no | |
11706 | hardcode_into_libs=yes | |
9d54db95 | 11707 | if test ia64 = "$host_cpu"; then |
a243b558 | 11708 | # AIX 5 supports IA64 |
9d54db95 | 11709 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
a243b558 JF |
11710 | shlibpath_var=LD_LIBRARY_PATH |
11711 | else | |
11712 | # With GCC up to 2.95.x, collect2 would create an import file | |
11713 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
11714 | # the line '#! .'. This would cause the generated library to |
11715 | # depend on '.', always an invalid library. This was fixed in | |
a243b558 JF |
11716 | # development snapshots of GCC prior to 3.0. |
11717 | case $host_os in | |
11718 | aix4 | aix4.[01] | aix4.[01].*) | |
11719 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11720 | echo ' yes ' | |
9d54db95 | 11721 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
a243b558 JF |
11722 | : |
11723 | else | |
11724 | can_build_shared=no | |
11725 | fi | |
11726 | ;; | |
11727 | esac | |
9d54db95 JF |
11728 | # Using Import Files as archive members, it is possible to support |
11729 | # filename-based versioning of shared library archives on AIX. While | |
11730 | # this would work for both with and without runtime linking, it will | |
11731 | # prevent static linking of such archives. So we do filename-based | |
11732 | # shared library versioning with .so extension only, which is used | |
11733 | # when both runtime linking and shared linking is enabled. | |
11734 | # Unfortunately, runtime linking may impact performance, so we do | |
11735 | # not want this to be the default eventually. Also, we use the | |
11736 | # versioned .so libs for executables only if there is the -brtl | |
11737 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11738 | # To allow for filename-based versioning support, we need to create | |
11739 | # libNAME.so.V as an archive file, containing: | |
11740 | # *) an Import File, referring to the versioned filename of the | |
11741 | # archive as well as the shared archive member, telling the | |
11742 | # bitwidth (32 or 64) of that shared object, and providing the | |
11743 | # list of exported symbols of that shared object, eventually | |
11744 | # decorated with the 'weak' keyword | |
11745 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11746 | # it being seen by the linker. | |
11747 | # At run time we better use the real file rather than another symlink, | |
11748 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11749 | ||
11750 | case $with_aix_soname,$aix_use_runtimelinking in | |
11751 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
a243b558 JF |
11752 | # soname into executable. Probably we can add versioning support to |
11753 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
11754 | aix,yes) # traditional libtool |
11755 | dynamic_linker='AIX unversionable lib.so' | |
a243b558 JF |
11756 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11757 | # instead of lib<name>.a to let people know that these are not | |
11758 | # typical AIX shared libraries. | |
9d54db95 JF |
11759 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11760 | ;; | |
11761 | aix,no) # traditional AIX only | |
11762 | dynamic_linker='AIX lib.a(lib.so.V)' | |
a243b558 JF |
11763 | # We preserve .a as extension for shared libraries through AIX4.2 |
11764 | # and later when we are not doing run time linking. | |
9d54db95 JF |
11765 | library_names_spec='$libname$release.a $libname.a' |
11766 | soname_spec='$libname$release$shared_ext$major' | |
11767 | ;; | |
11768 | svr4,*) # full svr4 only | |
11769 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11770 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11771 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11772 | shlibpath_overrides_runpath=yes | |
11773 | ;; | |
11774 | *,yes) # both, prefer svr4 | |
11775 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11776 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11777 | # unpreferred sharedlib libNAME.a needs extra handling | |
11778 | 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"' | |
11779 | 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"' | |
11780 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11781 | shlibpath_overrides_runpath=yes | |
11782 | ;; | |
11783 | *,no) # both, prefer aix | |
11784 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11785 | library_names_spec='$libname$release.a $libname.a' | |
11786 | soname_spec='$libname$release$shared_ext$major' | |
11787 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11788 | 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)' | |
11789 | 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"' | |
11790 | ;; | |
11791 | esac | |
a243b558 JF |
11792 | shlibpath_var=LIBPATH |
11793 | fi | |
11794 | ;; | |
11795 | ||
11796 | amigaos*) | |
11797 | case $host_cpu in | |
11798 | powerpc) | |
11799 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11800 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 11801 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
11802 | ;; |
11803 | m68k) | |
11804 | library_names_spec='$libname.ixlibrary $libname.a' | |
11805 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 11806 | 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' |
a243b558 JF |
11807 | ;; |
11808 | esac | |
11809 | ;; | |
11810 | ||
11811 | beos*) | |
9d54db95 | 11812 | library_names_spec='$libname$shared_ext' |
a243b558 JF |
11813 | dynamic_linker="$host_os ld.so" |
11814 | shlibpath_var=LIBRARY_PATH | |
11815 | ;; | |
11816 | ||
11817 | bsdi[45]*) | |
11818 | version_type=linux # correct to gnu/linux during the next big refactor | |
11819 | need_version=no | |
9d54db95 JF |
11820 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11821 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11822 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11823 | shlibpath_var=LD_LIBRARY_PATH | |
11824 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11825 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11826 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11827 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11828 | # libtool to hard-code these into programs | |
11829 | ;; | |
11830 | ||
11831 | cygwin* | mingw* | pw32* | cegcc*) | |
11832 | version_type=windows | |
9d54db95 | 11833 | shrext_cmds=.dll |
a243b558 JF |
11834 | need_version=no |
11835 | need_lib_prefix=no | |
9c60689e | 11836 | |
a243b558 JF |
11837 | case $GCC,$cc_basename in |
11838 | yes,*) | |
11839 | # gcc | |
11840 | library_names_spec='$libname.dll.a' | |
11841 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
11842 | postinstall_cmds='base_file=`basename \$file`~ |
11843 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
11844 | dldir=$destdir/`dirname \$dlpath`~ |
11845 | test -d \$dldir || mkdir -p \$dldir~ | |
11846 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11847 | chmod a+x \$dldir/$dlname~ | |
11848 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11849 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11850 | fi' | |
11851 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11852 | dlpath=$dir/\$dldll~ | |
11853 | $RM \$dlpath' | |
11854 | shlibpath_overrides_runpath=yes | |
9c60689e | 11855 | |
a243b558 JF |
11856 | case $host_os in |
11857 | cygwin*) | |
11858 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 11859 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
9c60689e | 11860 | |
a243b558 JF |
11861 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11862 | ;; | |
11863 | mingw* | cegcc*) | |
11864 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 11865 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
11866 | ;; |
11867 | pw32*) | |
11868 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 11869 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
11870 | ;; |
11871 | esac | |
11872 | dynamic_linker='Win32 ld.exe' | |
11873 | ;; | |
9c60689e | 11874 | |
a243b558 JF |
11875 | *,cl*) |
11876 | # Native MSVC | |
11877 | libname_spec='$name' | |
9d54db95 JF |
11878 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11879 | library_names_spec='$libname.dll.lib' | |
9c60689e | 11880 | |
a243b558 JF |
11881 | case $build_os in |
11882 | mingw*) | |
11883 | sys_lib_search_path_spec= | |
11884 | lt_save_ifs=$IFS | |
11885 | IFS=';' | |
11886 | for lt_path in $LIB | |
11887 | do | |
11888 | IFS=$lt_save_ifs | |
11889 | # Let DOS variable expansion print the short 8.3 style file name. | |
11890 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11891 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11892 | done | |
11893 | IFS=$lt_save_ifs | |
11894 | # Convert to MSYS style. | |
11895 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11896 | ;; | |
11897 | cygwin*) | |
11898 | # Convert to unix form, then to dos form, then back to unix form | |
11899 | # but this time dos style (no spaces!) so that the unix form looks | |
11900 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11901 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11902 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11903 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11904 | ;; | |
11905 | *) | |
9d54db95 | 11906 | sys_lib_search_path_spec=$LIB |
a243b558 JF |
11907 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11908 | # It is most probably a Windows format PATH. | |
11909 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11910 | else | |
11911 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11912 | fi | |
11913 | # FIXME: find the short name or the path components, as spaces are | |
11914 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11915 | ;; | |
11916 | esac | |
11917 | ||
11918 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
11919 | postinstall_cmds='base_file=`basename \$file`~ |
11920 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
11921 | dldir=$destdir/`dirname \$dlpath`~ |
11922 | test -d \$dldir || mkdir -p \$dldir~ | |
11923 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11924 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11925 | dlpath=$dir/\$dldll~ | |
11926 | $RM \$dlpath' | |
11927 | shlibpath_overrides_runpath=yes | |
11928 | dynamic_linker='Win32 link.exe' | |
11929 | ;; | |
9c60689e | 11930 | |
a243b558 JF |
11931 | *) |
11932 | # Assume MSVC wrapper | |
9d54db95 | 11933 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
a243b558 JF |
11934 | dynamic_linker='Win32 ld.exe' |
11935 | ;; | |
11936 | esac | |
11937 | # FIXME: first we should search . and the directory the executable is in | |
11938 | shlibpath_var=PATH | |
11939 | ;; | |
9c60689e | 11940 | |
a243b558 JF |
11941 | darwin* | rhapsody*) |
11942 | dynamic_linker="$host_os dyld" | |
11943 | version_type=darwin | |
11944 | need_lib_prefix=no | |
11945 | need_version=no | |
9d54db95 JF |
11946 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11947 | soname_spec='$libname$release$major$shared_ext' | |
a243b558 JF |
11948 | shlibpath_overrides_runpath=yes |
11949 | shlibpath_var=DYLD_LIBRARY_PATH | |
11950 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11951 | |
a243b558 JF |
11952 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11953 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11954 | ;; | |
9c60689e | 11955 | |
a243b558 JF |
11956 | dgux*) |
11957 | version_type=linux # correct to gnu/linux during the next big refactor | |
11958 | need_lib_prefix=no | |
11959 | need_version=no | |
9d54db95 JF |
11960 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11961 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11962 | shlibpath_var=LD_LIBRARY_PATH |
11963 | ;; | |
11964 | ||
11965 | freebsd* | dragonfly*) | |
11966 | # DragonFly does not have aout. When/if they implement a new | |
11967 | # versioning mechanism, adjust this. | |
11968 | if test -x /usr/bin/objformat; then | |
11969 | objformat=`/usr/bin/objformat` | |
11970 | else | |
11971 | case $host_os in | |
11972 | freebsd[23].*) objformat=aout ;; | |
11973 | *) objformat=elf ;; | |
11974 | esac | |
11975 | fi | |
11976 | version_type=freebsd-$objformat | |
11977 | case $version_type in | |
11978 | freebsd-elf*) | |
9d54db95 JF |
11979 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11980 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11981 | need_version=no |
11982 | need_lib_prefix=no | |
11983 | ;; | |
11984 | freebsd-*) | |
9d54db95 | 11985 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
11986 | need_version=yes |
11987 | ;; | |
11988 | esac | |
11989 | shlibpath_var=LD_LIBRARY_PATH | |
11990 | case $host_os in | |
11991 | freebsd2.*) | |
11992 | shlibpath_overrides_runpath=yes | |
11993 | ;; | |
11994 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11995 | shlibpath_overrides_runpath=yes | |
11996 | hardcode_into_libs=yes | |
11997 | ;; | |
11998 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11999 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12000 | shlibpath_overrides_runpath=no | |
12001 | hardcode_into_libs=yes | |
12002 | ;; | |
12003 | *) # from 4.6 on, and DragonFly | |
12004 | shlibpath_overrides_runpath=yes | |
12005 | hardcode_into_libs=yes | |
12006 | ;; | |
12007 | esac | |
12008 | ;; | |
9c60689e | 12009 | |
a243b558 JF |
12010 | haiku*) |
12011 | version_type=linux # correct to gnu/linux during the next big refactor | |
12012 | need_lib_prefix=no | |
12013 | need_version=no | |
12014 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
12015 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12016 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 12017 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 12018 | shlibpath_overrides_runpath=no |
a243b558 JF |
12019 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
12020 | hardcode_into_libs=yes | |
12021 | ;; | |
9c60689e | 12022 | |
a243b558 JF |
12023 | hpux9* | hpux10* | hpux11*) |
12024 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12025 | # link against other versions. | |
12026 | version_type=sunos | |
12027 | need_lib_prefix=no | |
12028 | need_version=no | |
12029 | case $host_cpu in | |
12030 | ia64*) | |
12031 | shrext_cmds='.so' | |
12032 | hardcode_into_libs=yes | |
12033 | dynamic_linker="$host_os dld.so" | |
12034 | shlibpath_var=LD_LIBRARY_PATH | |
12035 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
12036 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12037 | soname_spec='$libname$release$shared_ext$major' | |
12038 | if test 32 = "$HPUX_IA64_MODE"; then | |
a243b558 | 12039 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 12040 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
a243b558 JF |
12041 | else |
12042 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 12043 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
a243b558 | 12044 | fi |
a243b558 JF |
12045 | ;; |
12046 | hppa*64*) | |
12047 | shrext_cmds='.sl' | |
12048 | hardcode_into_libs=yes | |
12049 | dynamic_linker="$host_os dld.sl" | |
12050 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12051 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
12052 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12053 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12054 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12055 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12056 | ;; | |
12057 | *) | |
12058 | shrext_cmds='.sl' | |
12059 | dynamic_linker="$host_os dld.sl" | |
12060 | shlibpath_var=SHLIB_PATH | |
12061 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
12062 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12063 | soname_spec='$libname$release$shared_ext$major' | |
9c60689e DWT |
12064 | ;; |
12065 | esac | |
a243b558 JF |
12066 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
12067 | postinstall_cmds='chmod 555 $lib' | |
12068 | # or fails outright, so override atomically: | |
12069 | install_override_mode=555 | |
12070 | ;; | |
9c60689e | 12071 | |
a243b558 JF |
12072 | interix[3-9]*) |
12073 | version_type=linux # correct to gnu/linux during the next big refactor | |
12074 | need_lib_prefix=no | |
12075 | need_version=no | |
9d54db95 JF |
12076 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12077 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12078 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12079 | shlibpath_var=LD_LIBRARY_PATH | |
12080 | shlibpath_overrides_runpath=no | |
12081 | hardcode_into_libs=yes | |
12082 | ;; | |
9c60689e | 12083 | |
a243b558 JF |
12084 | irix5* | irix6* | nonstopux*) |
12085 | case $host_os in | |
12086 | nonstopux*) version_type=nonstopux ;; | |
12087 | *) | |
9d54db95 | 12088 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
12089 | version_type=linux # correct to gnu/linux during the next big refactor |
12090 | else | |
12091 | version_type=irix | |
12092 | fi ;; | |
12093 | esac | |
12094 | need_lib_prefix=no | |
12095 | need_version=no | |
9d54db95 JF |
12096 | soname_spec='$libname$release$shared_ext$major' |
12097 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
a243b558 JF |
12098 | case $host_os in |
12099 | irix5* | nonstopux*) | |
12100 | libsuff= shlibsuff= | |
12101 | ;; | |
12102 | *) | |
12103 | case $LD in # libtool.m4 will add one of these switches to LD | |
12104 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12105 | libsuff= shlibsuff= libmagic=32-bit;; | |
12106 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12107 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12108 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12109 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12110 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12111 | esac | |
12112 | ;; | |
12113 | esac | |
12114 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12115 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
12116 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
12117 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
a243b558 JF |
12118 | hardcode_into_libs=yes |
12119 | ;; | |
9c60689e | 12120 | |
a243b558 JF |
12121 | # No shared lib support for Linux oldld, aout, or coff. |
12122 | linux*oldld* | linux*aout* | linux*coff*) | |
12123 | dynamic_linker=no | |
12124 | ;; | |
9c60689e | 12125 | |
9d54db95 JF |
12126 | linux*android*) |
12127 | version_type=none # Android doesn't support versioned libraries. | |
12128 | need_lib_prefix=no | |
12129 | need_version=no | |
12130 | library_names_spec='$libname$release$shared_ext' | |
12131 | soname_spec='$libname$release$shared_ext' | |
12132 | finish_cmds= | |
12133 | shlibpath_var=LD_LIBRARY_PATH | |
12134 | shlibpath_overrides_runpath=yes | |
12135 | ||
12136 | # This implies no fast_install, which is unacceptable. | |
12137 | # Some rework will be needed to allow for fast_install | |
12138 | # before this can be enabled. | |
12139 | hardcode_into_libs=yes | |
12140 | ||
12141 | dynamic_linker='Android linker' | |
12142 | # Don't embed -rpath directories since the linker doesn't support them. | |
12143 | hardcode_libdir_flag_spec='-L$libdir' | |
12144 | ;; | |
12145 | ||
a243b558 | 12146 | # This must be glibc/ELF. |
9d54db95 | 12147 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
12148 | version_type=linux # correct to gnu/linux during the next big refactor |
12149 | need_lib_prefix=no | |
12150 | need_version=no | |
9d54db95 JF |
12151 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12152 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12153 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12154 | shlibpath_var=LD_LIBRARY_PATH | |
12155 | shlibpath_overrides_runpath=no | |
9c60689e | 12156 | |
a243b558 JF |
12157 | # Some binutils ld are patched to set DT_RUNPATH |
12158 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
12159 | $as_echo_n "(cached) " >&6 |
12160 | else | |
a243b558 JF |
12161 | lt_cv_shlibpath_overrides_runpath=no |
12162 | save_LDFLAGS=$LDFLAGS | |
12163 | save_libdir=$libdir | |
12164 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12165 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12167 | /* end confdefs.h. */ | |
ee134472 | 12168 | |
a243b558 JF |
12169 | int |
12170 | main () | |
9c60689e | 12171 | { |
9c60689e | 12172 | |
a243b558 JF |
12173 | ; |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
12177 | if ac_fn_c_try_link "$LINENO"; then : | |
12178 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12179 | lt_cv_shlibpath_overrides_runpath=yes | |
12180 | fi | |
12181 | fi | |
12182 | rm -f core conftest.err conftest.$ac_objext \ | |
12183 | conftest$ac_exeext conftest.$ac_ext | |
12184 | LDFLAGS=$save_LDFLAGS | |
12185 | libdir=$save_libdir | |
9c60689e | 12186 | |
a243b558 | 12187 | fi |
9c60689e | 12188 | |
a243b558 | 12189 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 12190 | |
a243b558 JF |
12191 | # This implies no fast_install, which is unacceptable. |
12192 | # Some rework will be needed to allow for fast_install | |
12193 | # before this can be enabled. | |
12194 | hardcode_into_libs=yes | |
9c60689e | 12195 | |
9d54db95 JF |
12196 | # Ideally, we could use ldconfig to report *all* directores which are |
12197 | # searched for libraries, however this is still not possible. Aside from not | |
12198 | # being certain /sbin/ldconfig is available, command | |
12199 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
12200 | # even though it is searched at run-time. Try to do the best guess by | |
12201 | # appending ld.so.conf contents (and includes) to the search path. | |
a243b558 JF |
12202 | if test -f /etc/ld.so.conf; then |
12203 | 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' ' '` | |
12204 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12205 | fi | |
ee134472 | 12206 | |
a243b558 JF |
12207 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12208 | # powerpc, because MkLinux only supported shared libraries with the | |
12209 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12210 | # most powerpc-linux boxes support dynamic linking these days and | |
12211 | # people can always --disable-shared, the test was removed, and we | |
12212 | # assume the GNU/Linux dynamic linker is in use. | |
12213 | dynamic_linker='GNU/Linux ld.so' | |
12214 | ;; | |
9c60689e | 12215 | |
a243b558 JF |
12216 | netbsd*) |
12217 | version_type=sunos | |
12218 | need_lib_prefix=no | |
12219 | need_version=no | |
12220 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 12221 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
12222 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12223 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 12224 | else |
9d54db95 JF |
12225 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12226 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 12227 | dynamic_linker='NetBSD ld.elf_so' |
9c60689e | 12228 | fi |
a243b558 JF |
12229 | shlibpath_var=LD_LIBRARY_PATH |
12230 | shlibpath_overrides_runpath=yes | |
12231 | hardcode_into_libs=yes | |
12232 | ;; | |
9c60689e | 12233 | |
a243b558 JF |
12234 | newsos6) |
12235 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 12236 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
12237 | shlibpath_var=LD_LIBRARY_PATH |
12238 | shlibpath_overrides_runpath=yes | |
12239 | ;; | |
9c60689e | 12240 | |
a243b558 JF |
12241 | *nto* | *qnx*) |
12242 | version_type=qnx | |
12243 | need_lib_prefix=no | |
12244 | need_version=no | |
9d54db95 JF |
12245 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12246 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12247 | shlibpath_var=LD_LIBRARY_PATH |
12248 | shlibpath_overrides_runpath=no | |
12249 | hardcode_into_libs=yes | |
12250 | dynamic_linker='ldqnx.so' | |
12251 | ;; | |
9c60689e | 12252 | |
9d54db95 | 12253 | openbsd* | bitrig*) |
a243b558 | 12254 | version_type=sunos |
9d54db95 | 12255 | sys_lib_dlsearch_path_spec=/usr/lib |
a243b558 | 12256 | need_lib_prefix=no |
9d54db95 JF |
12257 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
12258 | need_version=no | |
a243b558 | 12259 | else |
9d54db95 | 12260 | need_version=yes |
a243b558 | 12261 | fi |
9d54db95 JF |
12262 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
12263 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12264 | shlibpath_var=LD_LIBRARY_PATH | |
12265 | shlibpath_overrides_runpath=yes | |
a243b558 | 12266 | ;; |
9c60689e | 12267 | |
a243b558 JF |
12268 | os2*) |
12269 | libname_spec='$name' | |
9d54db95 JF |
12270 | version_type=windows |
12271 | shrext_cmds=.dll | |
12272 | need_version=no | |
a243b558 | 12273 | need_lib_prefix=no |
9d54db95 JF |
12274 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
12275 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
12276 | v=$($ECHO $release$versuffix | tr -d .-); | |
12277 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
12278 | $ECHO $n$v`$shared_ext' | |
12279 | library_names_spec='${libname}_dll.$libext' | |
a243b558 | 12280 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
12281 | shlibpath_var=BEGINLIBPATH |
12282 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12283 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12284 | postinstall_cmds='base_file=`basename \$file`~ | |
12285 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
12286 | dldir=$destdir/`dirname \$dlpath`~ | |
12287 | test -d \$dldir || mkdir -p \$dldir~ | |
12288 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12289 | chmod a+x \$dldir/$dlname~ | |
12290 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12291 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12292 | fi' | |
12293 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
12294 | dlpath=$dir/\$dldll~ | |
12295 | $RM \$dlpath' | |
a243b558 | 12296 | ;; |
9c60689e | 12297 | |
a243b558 JF |
12298 | osf3* | osf4* | osf5*) |
12299 | version_type=osf | |
12300 | need_lib_prefix=no | |
12301 | need_version=no | |
9d54db95 JF |
12302 | soname_spec='$libname$release$shared_ext$major' |
12303 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
a243b558 JF |
12304 | shlibpath_var=LD_LIBRARY_PATH |
12305 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 12306 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
a243b558 JF |
12307 | ;; |
12308 | ||
12309 | rdos*) | |
12310 | dynamic_linker=no | |
12311 | ;; | |
12312 | ||
12313 | solaris*) | |
12314 | version_type=linux # correct to gnu/linux during the next big refactor | |
12315 | need_lib_prefix=no | |
12316 | need_version=no | |
9d54db95 JF |
12317 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12318 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12319 | shlibpath_var=LD_LIBRARY_PATH |
12320 | shlibpath_overrides_runpath=yes | |
12321 | hardcode_into_libs=yes | |
12322 | # ldd complains unless libraries are executable | |
12323 | postinstall_cmds='chmod +x $lib' | |
12324 | ;; | |
9c60689e | 12325 | |
a243b558 JF |
12326 | sunos4*) |
12327 | version_type=sunos | |
9d54db95 | 12328 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
12329 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12330 | shlibpath_var=LD_LIBRARY_PATH | |
12331 | shlibpath_overrides_runpath=yes | |
9d54db95 | 12332 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
12333 | need_lib_prefix=no |
12334 | fi | |
12335 | need_version=yes | |
12336 | ;; | |
9c60689e | 12337 | |
a243b558 JF |
12338 | sysv4 | sysv4.3*) |
12339 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
12340 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12341 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12342 | shlibpath_var=LD_LIBRARY_PATH |
12343 | case $host_vendor in | |
12344 | sni) | |
12345 | shlibpath_overrides_runpath=no | |
12346 | need_lib_prefix=no | |
12347 | runpath_var=LD_RUN_PATH | |
12348 | ;; | |
12349 | siemens) | |
12350 | need_lib_prefix=no | |
12351 | ;; | |
12352 | motorola) | |
12353 | need_lib_prefix=no | |
12354 | need_version=no | |
12355 | shlibpath_overrides_runpath=no | |
12356 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12357 | ;; | |
12358 | esac | |
12359 | ;; | |
9c60689e | 12360 | |
a243b558 | 12361 | sysv4*MP*) |
9d54db95 | 12362 | if test -d /usr/nec; then |
a243b558 | 12363 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
12364 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
12365 | soname_spec='$libname$shared_ext.$major' | |
a243b558 JF |
12366 | shlibpath_var=LD_LIBRARY_PATH |
12367 | fi | |
12368 | ;; | |
9c60689e | 12369 | |
a243b558 | 12370 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 12371 | version_type=sco |
a243b558 JF |
12372 | need_lib_prefix=no |
12373 | need_version=no | |
9d54db95 JF |
12374 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
12375 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12376 | shlibpath_var=LD_LIBRARY_PATH |
12377 | shlibpath_overrides_runpath=yes | |
12378 | hardcode_into_libs=yes | |
9d54db95 | 12379 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
12380 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12381 | else | |
12382 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12383 | case $host_os in | |
12384 | sco3.2v5*) | |
12385 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12386 | ;; | |
12387 | esac | |
12388 | fi | |
12389 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12390 | ;; | |
9c60689e | 12391 | |
a243b558 JF |
12392 | tpf*) |
12393 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12394 | version_type=linux # correct to gnu/linux during the next big refactor | |
12395 | need_lib_prefix=no | |
12396 | need_version=no | |
9d54db95 | 12397 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
12398 | shlibpath_var=LD_LIBRARY_PATH |
12399 | shlibpath_overrides_runpath=no | |
12400 | hardcode_into_libs=yes | |
12401 | ;; | |
9c60689e | 12402 | |
a243b558 JF |
12403 | uts4*) |
12404 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
12405 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12406 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12407 | shlibpath_var=LD_LIBRARY_PATH |
12408 | ;; | |
9c60689e | 12409 | |
a243b558 JF |
12410 | *) |
12411 | dynamic_linker=no | |
12412 | ;; | |
12413 | esac | |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12415 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 12416 | test no = "$dynamic_linker" && can_build_shared=no |
9c60689e | 12417 | |
a243b558 | 12418 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9d54db95 | 12419 | if test yes = "$GCC"; then |
a243b558 JF |
12420 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12421 | fi | |
9c60689e | 12422 | |
9d54db95 JF |
12423 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
12424 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
a243b558 | 12425 | fi |
9d54db95 JF |
12426 | |
12427 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12428 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
a243b558 | 12429 | fi |
9c60689e | 12430 | |
9d54db95 JF |
12431 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
12432 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12433 | ||
12434 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12435 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12436 | ||
12437 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12438 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12439 | ||
12440 | ||
12441 | ||
12442 | ||
12443 | ||
12444 | ||
9c60689e DWT |
12445 | |
12446 | ||
12447 | ||
12448 | ||
12449 | ||
12450 | ||
12451 | ||
9c60689e DWT |
12452 | |
12453 | ||
12454 | ||
12455 | ||
12456 | ||
12457 | ||
12458 | ||
12459 | ||
12460 | ||
12461 | ||
12462 | ||
12463 | ||
9c60689e | 12464 | |
9c60689e | 12465 | |
9c60689e | 12466 | |
9c60689e | 12467 | |
9c60689e DWT |
12468 | |
12469 | ||
12470 | ||
12471 | ||
9c60689e | 12472 | |
9c60689e DWT |
12473 | |
12474 | ||
12475 | ||
12476 | ||
12477 | ||
12478 | ||
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | ||
53ba6704 JF |
12486 | |
12487 | ||
9c60689e DWT |
12488 | |
12489 | ||
12490 | ||
12491 | ||
9c60689e DWT |
12492 | |
12493 | ||
3fd51f51 | 12494 | |
66170b30 JF |
12495 | |
12496 | ||
12497 | ||
3fd51f51 | 12498 | |
12833ad8 JF |
12499 | |
12500 | ||
12501 | ||
12502 | ||
3fd51f51 | 12503 | |
3fd51f51 DWT |
12504 | |
12505 | ||
3fd51f51 | 12506 | |
3fd51f51 | 12507 | |
3fd51f51 | 12508 | |
66170b30 | 12509 | |
632b71ea | 12510 | |
632b71ea DWT |
12511 | |
12512 | ||
790e5246 | 12513 | |
66170b30 | 12514 | |
9c60689e | 12515 | |
9c60689e DWT |
12516 | |
12517 | ||
9c60689e | 12518 | |
9c60689e DWT |
12519 | |
12520 | ||
66170b30 | 12521 | |
66170b30 | 12522 | |
9c60689e | 12523 | |
e9c9a47c DWT |
12524 | |
12525 | ||
12526 | ||
66170b30 JF |
12527 | |
12528 | ||
66170b30 | 12529 | |
e9c9a47c | 12530 | |
a243b558 JF |
12531 | |
12532 | ||
12533 | ||
12534 | ||
12535 | ||
12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12537 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12538 | hardcode_action= | |
12539 | if test -n "$hardcode_libdir_flag_spec" || | |
12540 | test -n "$runpath_var" || | |
9d54db95 | 12541 | test yes = "$hardcode_automatic"; then |
a243b558 JF |
12542 | |
12543 | # We can hardcode non-existent directories. | |
9d54db95 | 12544 | if test no != "$hardcode_direct" && |
a243b558 JF |
12545 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12546 | # have to relink, otherwise we might link with an installed library | |
12547 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
12548 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
12549 | test no != "$hardcode_minus_L"; then | |
a243b558 JF |
12550 | # Linking always hardcodes the temporary library directory. |
12551 | hardcode_action=relink | |
12552 | else | |
12553 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12554 | hardcode_action=immediate | |
9c60689e | 12555 | fi |
e9c9a47c | 12556 | else |
a243b558 JF |
12557 | # We cannot hardcode anything, or else we can only hardcode existing |
12558 | # directories. | |
12559 | hardcode_action=unsupported | |
12560 | fi | |
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12562 | $as_echo "$hardcode_action" >&6; } | |
12563 | ||
9d54db95 JF |
12564 | if test relink = "$hardcode_action" || |
12565 | test yes = "$inherit_rpath"; then | |
a243b558 JF |
12566 | # Fast installation is not supported |
12567 | enable_fast_install=no | |
9d54db95 JF |
12568 | elif test yes = "$shlibpath_overrides_runpath" || |
12569 | test no = "$enable_shared"; then | |
a243b558 JF |
12570 | # Fast installation is not necessary |
12571 | enable_fast_install=needless | |
9c60689e | 12572 | fi |
9c60689e | 12573 | |
9c60689e | 12574 | |
66170b30 | 12575 | |
66170b30 | 12576 | |
9c60689e | 12577 | |
a243b558 | 12578 | |
9d54db95 | 12579 | if test yes != "$enable_dlopen"; then |
a243b558 JF |
12580 | enable_dlopen=unknown |
12581 | enable_dlopen_self=unknown | |
12582 | enable_dlopen_self_static=unknown | |
66170b30 | 12583 | else |
a243b558 JF |
12584 | lt_cv_dlopen=no |
12585 | lt_cv_dlopen_libs= | |
66170b30 | 12586 | |
a243b558 JF |
12587 | case $host_os in |
12588 | beos*) | |
9d54db95 | 12589 | lt_cv_dlopen=load_add_on |
a243b558 JF |
12590 | lt_cv_dlopen_libs= |
12591 | lt_cv_dlopen_self=yes | |
12592 | ;; | |
66170b30 | 12593 | |
a243b558 | 12594 | mingw* | pw32* | cegcc*) |
9d54db95 | 12595 | lt_cv_dlopen=LoadLibrary |
a243b558 JF |
12596 | lt_cv_dlopen_libs= |
12597 | ;; | |
66170b30 | 12598 | |
a243b558 | 12599 | cygwin*) |
9d54db95 | 12600 | lt_cv_dlopen=dlopen |
a243b558 JF |
12601 | lt_cv_dlopen_libs= |
12602 | ;; | |
66170b30 | 12603 | |
a243b558 | 12604 | darwin*) |
9d54db95 | 12605 | # if libdl is installed we need to link against it |
a243b558 JF |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12607 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12608 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12609 | $as_echo_n "(cached) " >&6 | |
12610 | else | |
12611 | ac_check_lib_save_LIBS=$LIBS | |
12612 | LIBS="-ldl $LIBS" | |
12613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12614 | /* end confdefs.h. */ | |
66170b30 | 12615 | |
a243b558 JF |
12616 | /* Override any GCC internal prototype to avoid an error. |
12617 | Use char because int might match the return type of a GCC | |
12618 | builtin and then its argument prototype would still apply. */ | |
12619 | #ifdef __cplusplus | |
12620 | extern "C" | |
12621 | #endif | |
12622 | char dlopen (); | |
12623 | int | |
12624 | main () | |
12625 | { | |
12626 | return dlopen (); | |
12627 | ; | |
12628 | return 0; | |
12629 | } | |
12630 | _ACEOF | |
12631 | if ac_fn_c_try_link "$LINENO"; then : | |
12632 | ac_cv_lib_dl_dlopen=yes | |
12633 | else | |
12634 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12635 | fi |
a243b558 JF |
12636 | rm -f core conftest.err conftest.$ac_objext \ |
12637 | conftest$ac_exeext conftest.$ac_ext | |
12638 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12639 | fi |
a243b558 JF |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12641 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12642 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 12643 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 | 12644 | else |
66170b30 | 12645 | |
9d54db95 | 12646 | lt_cv_dlopen=dyld |
a243b558 JF |
12647 | lt_cv_dlopen_libs= |
12648 | lt_cv_dlopen_self=yes | |
66170b30 | 12649 | |
a243b558 | 12650 | fi |
9c60689e | 12651 | |
a243b558 | 12652 | ;; |
9c60689e | 12653 | |
9d54db95 JF |
12654 | tpf*) |
12655 | # Don't try to run any link tests for TPF. We know it's impossible | |
12656 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12657 | lt_cv_dlopen=dlopen | |
12658 | lt_cv_dlopen_libs= | |
12659 | lt_cv_dlopen_self=no | |
12660 | ;; | |
12661 | ||
a243b558 JF |
12662 | *) |
12663 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12664 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
9d54db95 | 12665 | lt_cv_dlopen=shl_load |
a243b558 JF |
12666 | else |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12668 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12669 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12670 | $as_echo_n "(cached) " >&6 | |
12671 | else | |
12672 | ac_check_lib_save_LIBS=$LIBS | |
12673 | LIBS="-ldld $LIBS" | |
12674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12675 | /* end confdefs.h. */ | |
66170b30 | 12676 | |
a243b558 JF |
12677 | /* Override any GCC internal prototype to avoid an error. |
12678 | Use char because int might match the return type of a GCC | |
12679 | builtin and then its argument prototype would still apply. */ | |
12680 | #ifdef __cplusplus | |
12681 | extern "C" | |
12682 | #endif | |
12683 | char shl_load (); | |
12684 | int | |
12685 | main () | |
12686 | { | |
12687 | return shl_load (); | |
12688 | ; | |
12689 | return 0; | |
12690 | } | |
12691 | _ACEOF | |
12692 | if ac_fn_c_try_link "$LINENO"; then : | |
12693 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12694 | else |
a243b558 JF |
12695 | ac_cv_lib_dld_shl_load=no |
12696 | fi | |
12697 | rm -f core conftest.err conftest.$ac_objext \ | |
12698 | conftest$ac_exeext conftest.$ac_ext | |
12699 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12700 | fi |
a243b558 JF |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12702 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12703 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
9d54db95 | 12704 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
a243b558 JF |
12705 | else |
12706 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12707 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
9d54db95 | 12708 | lt_cv_dlopen=dlopen |
a243b558 JF |
12709 | else |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12711 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12712 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12713 | $as_echo_n "(cached) " >&6 | |
12714 | else | |
12715 | ac_check_lib_save_LIBS=$LIBS | |
12716 | LIBS="-ldl $LIBS" | |
12717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12718 | /* end confdefs.h. */ | |
e9c9a47c | 12719 | |
a243b558 JF |
12720 | /* Override any GCC internal prototype to avoid an error. |
12721 | Use char because int might match the return type of a GCC | |
12722 | builtin and then its argument prototype would still apply. */ | |
12723 | #ifdef __cplusplus | |
12724 | extern "C" | |
12725 | #endif | |
12726 | char dlopen (); | |
12727 | int | |
12728 | main () | |
12729 | { | |
12730 | return dlopen (); | |
12731 | ; | |
12732 | return 0; | |
12733 | } | |
12734 | _ACEOF | |
12735 | if ac_fn_c_try_link "$LINENO"; then : | |
12736 | ac_cv_lib_dl_dlopen=yes | |
12737 | else | |
12738 | ac_cv_lib_dl_dlopen=no | |
12739 | fi | |
12740 | rm -f core conftest.err conftest.$ac_objext \ | |
12741 | conftest$ac_exeext conftest.$ac_ext | |
12742 | LIBS=$ac_check_lib_save_LIBS | |
12743 | fi | |
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12745 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12746 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 12747 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 JF |
12748 | else |
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12750 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12751 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12752 | $as_echo_n "(cached) " >&6 | |
12753 | else | |
12754 | ac_check_lib_save_LIBS=$LIBS | |
12755 | LIBS="-lsvld $LIBS" | |
12756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12757 | /* end confdefs.h. */ | |
12758 | ||
12759 | /* Override any GCC internal prototype to avoid an error. | |
12760 | Use char because int might match the return type of a GCC | |
12761 | builtin and then its argument prototype would still apply. */ | |
12762 | #ifdef __cplusplus | |
12763 | extern "C" | |
12764 | #endif | |
12765 | char dlopen (); | |
12766 | int | |
12767 | main () | |
12768 | { | |
12769 | return dlopen (); | |
12770 | ; | |
12771 | return 0; | |
12772 | } | |
12773 | _ACEOF | |
12774 | if ac_fn_c_try_link "$LINENO"; then : | |
12775 | ac_cv_lib_svld_dlopen=yes | |
12776 | else | |
12777 | ac_cv_lib_svld_dlopen=no | |
12778 | fi | |
12779 | rm -f core conftest.err conftest.$ac_objext \ | |
12780 | conftest$ac_exeext conftest.$ac_ext | |
12781 | LIBS=$ac_check_lib_save_LIBS | |
12782 | fi | |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12784 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12785 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
9d54db95 | 12786 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
a243b558 JF |
12787 | else |
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12789 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12790 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12791 | $as_echo_n "(cached) " >&6 | |
12792 | else | |
12793 | ac_check_lib_save_LIBS=$LIBS | |
12794 | LIBS="-ldld $LIBS" | |
12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12796 | /* end confdefs.h. */ | |
12797 | ||
12798 | /* Override any GCC internal prototype to avoid an error. | |
12799 | Use char because int might match the return type of a GCC | |
12800 | builtin and then its argument prototype would still apply. */ | |
12801 | #ifdef __cplusplus | |
12802 | extern "C" | |
12803 | #endif | |
12804 | char dld_link (); | |
12805 | int | |
12806 | main () | |
12807 | { | |
12808 | return dld_link (); | |
12809 | ; | |
12810 | return 0; | |
12811 | } | |
12812 | _ACEOF | |
12813 | if ac_fn_c_try_link "$LINENO"; then : | |
12814 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12815 | else |
a243b558 JF |
12816 | ac_cv_lib_dld_dld_link=no |
12817 | fi | |
12818 | rm -f core conftest.err conftest.$ac_objext \ | |
12819 | conftest$ac_exeext conftest.$ac_ext | |
12820 | LIBS=$ac_check_lib_save_LIBS | |
12821 | fi | |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12823 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12824 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
9d54db95 | 12825 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
9c60689e DWT |
12826 | fi |
12827 | ||
12828 | ||
a243b558 | 12829 | fi |
66170b30 | 12830 | |
66170b30 | 12831 | |
a243b558 | 12832 | fi |
66170b30 | 12833 | |
66170b30 JF |
12834 | |
12835 | fi | |
e9c9a47c | 12836 | |
66170b30 | 12837 | |
a243b558 | 12838 | fi |
66170b30 | 12839 | |
66170b30 | 12840 | |
66170b30 | 12841 | fi |
e9c9a47c | 12842 | |
a243b558 JF |
12843 | ;; |
12844 | esac | |
9c60689e | 12845 | |
9d54db95 | 12846 | if test no = "$lt_cv_dlopen"; then |
a243b558 | 12847 | enable_dlopen=no |
9d54db95 JF |
12848 | else |
12849 | enable_dlopen=yes | |
a243b558 | 12850 | fi |
9c60689e | 12851 | |
a243b558 JF |
12852 | case $lt_cv_dlopen in |
12853 | dlopen) | |
9d54db95 JF |
12854 | save_CPPFLAGS=$CPPFLAGS |
12855 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12856 | |
9d54db95 | 12857 | save_LDFLAGS=$LDFLAGS |
a243b558 | 12858 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
66170b30 | 12859 | |
9d54db95 | 12860 | save_LIBS=$LIBS |
a243b558 | 12861 | LIBS="$lt_cv_dlopen_libs $LIBS" |
3fd51f51 | 12862 | |
a243b558 JF |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12864 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12865 | if ${lt_cv_dlopen_self+:} false; then : | |
12866 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12867 | else |
9d54db95 | 12868 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
12869 | lt_cv_dlopen_self=cross |
12870 | else | |
12871 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12872 | lt_status=$lt_dlunknown | |
12873 | cat > conftest.$ac_ext <<_LT_EOF | |
12874 | #line $LINENO "configure" | |
12875 | #include "confdefs.h" | |
e9c9a47c | 12876 | |
a243b558 JF |
12877 | #if HAVE_DLFCN_H |
12878 | #include <dlfcn.h> | |
12879 | #endif | |
e9c9a47c | 12880 | |
a243b558 | 12881 | #include <stdio.h> |
66170b30 | 12882 | |
a243b558 JF |
12883 | #ifdef RTLD_GLOBAL |
12884 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12885 | #else | |
12886 | # ifdef DL_GLOBAL | |
12887 | # define LT_DLGLOBAL DL_GLOBAL | |
12888 | # else | |
12889 | # define LT_DLGLOBAL 0 | |
12890 | # endif | |
12891 | #endif | |
66170b30 | 12892 | |
a243b558 JF |
12893 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12894 | find out it does not work in some platform. */ | |
12895 | #ifndef LT_DLLAZY_OR_NOW | |
12896 | # ifdef RTLD_LAZY | |
12897 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12898 | # else | |
12899 | # ifdef DL_LAZY | |
12900 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12901 | # else | |
12902 | # ifdef RTLD_NOW | |
12903 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12904 | # else | |
12905 | # ifdef DL_NOW | |
12906 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12907 | # else | |
12908 | # define LT_DLLAZY_OR_NOW 0 | |
12909 | # endif | |
12910 | # endif | |
12911 | # endif | |
12912 | # endif | |
12913 | #endif | |
e9c9a47c | 12914 | |
9d54db95 | 12915 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 12916 | correspondingly for the symbols needed. */ |
9d54db95 | 12917 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
12918 | int fnord () __attribute__((visibility("default"))); |
12919 | #endif | |
e9c9a47c | 12920 | |
a243b558 JF |
12921 | int fnord () { return 42; } |
12922 | int main () | |
12923 | { | |
12924 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12925 | int status = $lt_dlunknown; | |
e9c9a47c | 12926 | |
a243b558 JF |
12927 | if (self) |
12928 | { | |
12929 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12930 | else | |
12931 | { | |
12932 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12933 | else puts (dlerror ()); | |
12934 | } | |
12935 | /* dlclose (self); */ | |
12936 | } | |
12937 | else | |
12938 | puts (dlerror ()); | |
e9c9a47c | 12939 | |
a243b558 JF |
12940 | return status; |
12941 | } | |
12942 | _LT_EOF | |
12943 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12944 | (eval $ac_link) 2>&5 | |
12945 | ac_status=$? | |
12946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 12947 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
12948 | (./conftest; exit; ) >&5 2>/dev/null |
12949 | lt_status=$? | |
12950 | case x$lt_status in | |
12951 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12952 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12953 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12954 | esac | |
12955 | else : | |
12956 | # compilation failed | |
12957 | lt_cv_dlopen_self=no | |
12958 | fi | |
12959 | fi | |
12960 | rm -fr conftest* | |
e9c9a47c | 12961 | |
e9c9a47c | 12962 | |
e9c9a47c | 12963 | fi |
a243b558 JF |
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12965 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12966 | |
9d54db95 | 12967 | if test yes = "$lt_cv_dlopen_self"; then |
a243b558 JF |
12968 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12970 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12971 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12972 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12973 | else |
9d54db95 | 12974 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
12975 | lt_cv_dlopen_self_static=cross |
12976 | else | |
12977 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12978 | lt_status=$lt_dlunknown | |
12979 | cat > conftest.$ac_ext <<_LT_EOF | |
12980 | #line $LINENO "configure" | |
12981 | #include "confdefs.h" | |
12982 | ||
12983 | #if HAVE_DLFCN_H | |
12984 | #include <dlfcn.h> | |
12985 | #endif | |
12986 | ||
12987 | #include <stdio.h> | |
e9c9a47c | 12988 | |
a243b558 JF |
12989 | #ifdef RTLD_GLOBAL |
12990 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12991 | #else | |
12992 | # ifdef DL_GLOBAL | |
12993 | # define LT_DLGLOBAL DL_GLOBAL | |
12994 | # else | |
12995 | # define LT_DLGLOBAL 0 | |
12996 | # endif | |
12997 | #endif | |
e9c9a47c | 12998 | |
a243b558 JF |
12999 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13000 | find out it does not work in some platform. */ | |
13001 | #ifndef LT_DLLAZY_OR_NOW | |
13002 | # ifdef RTLD_LAZY | |
13003 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13004 | # else | |
13005 | # ifdef DL_LAZY | |
13006 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13007 | # else | |
13008 | # ifdef RTLD_NOW | |
13009 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13010 | # else | |
13011 | # ifdef DL_NOW | |
13012 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13013 | # else | |
13014 | # define LT_DLLAZY_OR_NOW 0 | |
13015 | # endif | |
13016 | # endif | |
13017 | # endif | |
13018 | # endif | |
13019 | #endif | |
66170b30 | 13020 | |
9d54db95 | 13021 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 13022 | correspondingly for the symbols needed. */ |
9d54db95 | 13023 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
13024 | int fnord () __attribute__((visibility("default"))); |
13025 | #endif | |
e9c9a47c | 13026 | |
a243b558 JF |
13027 | int fnord () { return 42; } |
13028 | int main () | |
13029 | { | |
13030 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13031 | int status = $lt_dlunknown; | |
e9c9a47c | 13032 | |
a243b558 JF |
13033 | if (self) |
13034 | { | |
13035 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13036 | else | |
13037 | { | |
13038 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13039 | else puts (dlerror ()); | |
13040 | } | |
13041 | /* dlclose (self); */ | |
13042 | } | |
13043 | else | |
13044 | puts (dlerror ()); | |
e9c9a47c | 13045 | |
a243b558 JF |
13046 | return status; |
13047 | } | |
13048 | _LT_EOF | |
13049 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13050 | (eval $ac_link) 2>&5 | |
13051 | ac_status=$? | |
13052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 13053 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
13054 | (./conftest; exit; ) >&5 2>/dev/null |
13055 | lt_status=$? | |
13056 | case x$lt_status in | |
13057 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13058 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13059 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13060 | esac | |
13061 | else : | |
13062 | # compilation failed | |
13063 | lt_cv_dlopen_self_static=no | |
13064 | fi | |
13065 | fi | |
13066 | rm -fr conftest* | |
e9c9a47c | 13067 | |
b65019fe | 13068 | |
a243b558 JF |
13069 | fi |
13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
13071 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13072 | fi | |
66170b30 | 13073 | |
9d54db95 JF |
13074 | CPPFLAGS=$save_CPPFLAGS |
13075 | LDFLAGS=$save_LDFLAGS | |
13076 | LIBS=$save_LIBS | |
a243b558 JF |
13077 | ;; |
13078 | esac | |
66170b30 | 13079 | |
a243b558 JF |
13080 | case $lt_cv_dlopen_self in |
13081 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13082 | *) enable_dlopen_self=unknown ;; | |
13083 | esac | |
13084 | ||
13085 | case $lt_cv_dlopen_self_static in | |
13086 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13087 | *) enable_dlopen_self_static=unknown ;; | |
13088 | esac | |
b65019fe DWT |
13089 | fi |
13090 | ||
13091 | ||
66170b30 | 13092 | |
b65019fe | 13093 | |
e9c9a47c | 13094 | |
e9c9a47c DWT |
13095 | |
13096 | ||
e9c9a47c | 13097 | |
e9c9a47c DWT |
13098 | |
13099 | ||
e9c9a47c | 13100 | |
e9c9a47c | 13101 | |
3530897b | 13102 | |
47aaa820 | 13103 | |
47aaa820 | 13104 | |
a243b558 JF |
13105 | |
13106 | ||
13107 | striplib= | |
13108 | old_striplib= | |
13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13110 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13111 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13112 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13113 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13115 | $as_echo "yes" >&6; } | |
47aaa820 | 13116 | else |
a243b558 JF |
13117 | # FIXME - insert some real tests, host_os isn't really good enough |
13118 | case $host_os in | |
13119 | darwin*) | |
9d54db95 | 13120 | if test -n "$STRIP"; then |
a243b558 JF |
13121 | striplib="$STRIP -x" |
13122 | old_striplib="$STRIP -S" | |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13124 | $as_echo "yes" >&6; } | |
13125 | else | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13127 | $as_echo "no" >&6; } | |
13128 | fi | |
13129 | ;; | |
13130 | *) | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13132 | $as_echo "no" >&6; } | |
13133 | ;; | |
13134 | esac | |
3530897b | 13135 | fi |
47aaa820 | 13136 | |
3530897b DWT |
13137 | |
13138 | ||
9c60689e | 13139 | |
9c60689e | 13140 | |
9c60689e | 13141 | |
9c60689e | 13142 | |
9c60689e | 13143 | |
66170b30 | 13144 | |
66170b30 | 13145 | |
66170b30 | 13146 | |
66170b30 | 13147 | |
9d54db95 | 13148 | # Report what library types will actually be built |
a243b558 JF |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13150 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13152 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 13153 | |
a243b558 JF |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13155 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9d54db95 | 13156 | test no = "$can_build_shared" && enable_shared=no |
66170b30 | 13157 | |
a243b558 JF |
13158 | # On AIX, shared libraries and static libraries use the same namespace, and |
13159 | # are all built from PIC. | |
13160 | case $host_os in | |
13161 | aix3*) | |
9d54db95 | 13162 | test yes = "$enable_shared" && enable_static=no |
a243b558 JF |
13163 | if test -n "$RANLIB"; then |
13164 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13165 | postinstall_cmds='$RANLIB $lib' | |
13166 | fi | |
13167 | ;; | |
66170b30 | 13168 | |
a243b558 | 13169 | aix[4-9]*) |
9d54db95 JF |
13170 | if test ia64 != "$host_cpu"; then |
13171 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
13172 | yes,aix,yes) ;; # shared object as lib.so file only | |
13173 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
13174 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
13175 | esac | |
a243b558 JF |
13176 | fi |
13177 | ;; | |
13178 | esac | |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13180 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 13181 | |
a243b558 JF |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13183 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13184 | # Make sure either enable_shared or enable_static is yes. | |
9d54db95 | 13185 | test yes = "$enable_shared" || enable_static=yes |
a243b558 JF |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13187 | $as_echo "$enable_static" >&6; } | |
66170b30 | 13188 | |
9c60689e | 13189 | |
e9c9a47c | 13190 | |
9c60689e | 13191 | |
a243b558 JF |
13192 | fi |
13193 | ac_ext=c | |
13194 | ac_cpp='$CPP $CPPFLAGS' | |
13195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13198 | ||
9d54db95 | 13199 | CC=$lt_save_CC |
e9c9a47c | 13200 | |
9d54db95 JF |
13201 | if test -n "$CXX" && ( test no != "$CXX" && |
13202 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
13203 | (test g++ != "$CXX"))); then | |
e9c9a47c DWT |
13204 | ac_ext=cpp |
13205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
13210 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
13211 | if test -z "$CXXCPP"; then | |
ee134472 | 13212 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
13213 | $as_echo_n "(cached) " >&6 |
13214 | else | |
13215 | # Double quotes because CXXCPP needs to be expanded | |
13216 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
13217 | do | |
13218 | ac_preproc_ok=false | |
13219 | for ac_cxx_preproc_warn_flag in '' yes | |
13220 | do | |
13221 | # Use a header file that comes with gcc, so configuring glibc | |
13222 | # with a fresh cross-compiler works. | |
13223 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13224 | # <limits.h> exists even on freestanding compilers. | |
13225 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13226 | # not just through cpp. "Syntax error" is here to catch this case. | |
13227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13228 | /* end confdefs.h. */ | |
13229 | #ifdef __STDC__ | |
13230 | # include <limits.h> | |
13231 | #else | |
13232 | # include <assert.h> | |
13233 | #endif | |
13234 | Syntax error | |
13235 | _ACEOF | |
13236 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13237 | ||
13238 | else | |
13239 | # Broken: fails on valid input. | |
13240 | continue | |
13241 | fi | |
12833ad8 | 13242 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13243 | |
13244 | # OK, works on sane cases. Now check whether nonexistent headers | |
13245 | # can be detected and how. | |
13246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13247 | /* end confdefs.h. */ | |
13248 | #include <ac_nonexistent.h> | |
13249 | _ACEOF | |
13250 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13251 | # Broken: success on invalid input. | |
13252 | continue | |
13253 | else | |
13254 | # Passes both tests. | |
13255 | ac_preproc_ok=: | |
13256 | break | |
13257 | fi | |
12833ad8 | 13258 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13259 | |
13260 | done | |
13261 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 13262 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
13263 | if $ac_preproc_ok; then : |
13264 | break | |
13265 | fi | |
13266 | ||
13267 | done | |
13268 | ac_cv_prog_CXXCPP=$CXXCPP | |
13269 | ||
13270 | fi | |
13271 | CXXCPP=$ac_cv_prog_CXXCPP | |
13272 | else | |
13273 | ac_cv_prog_CXXCPP=$CXXCPP | |
13274 | fi | |
13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
13276 | $as_echo "$CXXCPP" >&6; } | |
13277 | ac_preproc_ok=false | |
13278 | for ac_cxx_preproc_warn_flag in '' yes | |
13279 | do | |
13280 | # Use a header file that comes with gcc, so configuring glibc | |
13281 | # with a fresh cross-compiler works. | |
13282 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13283 | # <limits.h> exists even on freestanding compilers. | |
13284 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13285 | # not just through cpp. "Syntax error" is here to catch this case. | |
13286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13287 | /* end confdefs.h. */ | |
13288 | #ifdef __STDC__ | |
13289 | # include <limits.h> | |
13290 | #else | |
13291 | # include <assert.h> | |
13292 | #endif | |
13293 | Syntax error | |
13294 | _ACEOF | |
13295 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13296 | ||
13297 | else | |
13298 | # Broken: fails on valid input. | |
13299 | continue | |
13300 | fi | |
12833ad8 | 13301 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13302 | |
13303 | # OK, works on sane cases. Now check whether nonexistent headers | |
13304 | # can be detected and how. | |
13305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13306 | /* end confdefs.h. */ | |
13307 | #include <ac_nonexistent.h> | |
13308 | _ACEOF | |
13309 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13310 | # Broken: success on invalid input. | |
13311 | continue | |
13312 | else | |
13313 | # Passes both tests. | |
13314 | ac_preproc_ok=: | |
13315 | break | |
13316 | fi | |
12833ad8 | 13317 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13318 | |
13319 | done | |
13320 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 13321 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
13322 | if $ac_preproc_ok; then : |
13323 | ||
13324 | else | |
13325 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13326 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
13327 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
13328 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
13329 | fi |
13330 | ||
a243b558 JF |
13331 | ac_ext=c |
13332 | ac_cpp='$CPP $CPPFLAGS' | |
13333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
13336 | |
13337 | else | |
e9c9a47c DWT |
13338 | _lt_caught_CXX_error=yes |
13339 | fi | |
13340 | ||
9c60689e DWT |
13341 | ac_ext=cpp |
13342 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13343 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13344 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13345 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 13346 | |
47aaa820 DWT |
13347 | archive_cmds_need_lc_CXX=no |
13348 | allow_undefined_flag_CXX= | |
13349 | always_export_symbols_CXX=no | |
13350 | archive_expsym_cmds_CXX= | |
13351 | compiler_needs_object_CXX=no | |
13352 | export_dynamic_flag_spec_CXX= | |
13353 | hardcode_direct_CXX=no | |
13354 | hardcode_direct_absolute_CXX=no | |
13355 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
13356 | hardcode_libdir_separator_CXX= |
13357 | hardcode_minus_L_CXX=no | |
13358 | hardcode_shlibpath_var_CXX=unsupported | |
13359 | hardcode_automatic_CXX=no | |
13360 | inherit_rpath_CXX=no | |
13361 | module_cmds_CXX= | |
13362 | module_expsym_cmds_CXX= | |
13363 | link_all_deplibs_CXX=unknown | |
13364 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
13365 | reload_flag_CXX=$reload_flag |
13366 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
13367 | no_undefined_flag_CXX= |
13368 | whole_archive_flag_spec_CXX= | |
13369 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 13370 | |
47aaa820 DWT |
13371 | # Source file extension for C++ test sources. |
13372 | ac_ext=cpp | |
9c60689e | 13373 | |
47aaa820 DWT |
13374 | # Object file extension for compiled C++ test sources. |
13375 | objext=o | |
13376 | objext_CXX=$objext | |
9c60689e | 13377 | |
47aaa820 DWT |
13378 | # No sense in running all these tests if we already determined that |
13379 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13380 | # are currently assumed to apply to all compilers on this platform, | |
13381 | # and will be corrupted by setting them based on a non-working compiler. | |
9d54db95 | 13382 | if test yes != "$_lt_caught_CXX_error"; then |
47aaa820 DWT |
13383 | # Code to be used in simple compile tests |
13384 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 13385 | |
47aaa820 DWT |
13386 | # Code to be used in simple link tests |
13387 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 13388 | |
47aaa820 | 13389 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 13390 | |
9c60689e | 13391 | |
9c60689e | 13392 | |
9c60689e | 13393 | |
9c60689e | 13394 | |
9c60689e | 13395 | |
47aaa820 DWT |
13396 | # If no C compiler was specified, use CC. |
13397 | LTCC=${LTCC-"$CC"} | |
9c60689e | 13398 | |
47aaa820 DWT |
13399 | # If no C compiler flags were specified, use CFLAGS. |
13400 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 13401 | |
47aaa820 DWT |
13402 | # Allow CC to be a program name with arguments. |
13403 | compiler=$CC | |
9c60689e | 13404 | |
9c60689e | 13405 | |
47aaa820 DWT |
13406 | # save warnings/boilerplate of simple test code |
13407 | ac_outfile=conftest.$ac_objext | |
13408 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13409 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13410 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 13411 | $RM -r conftest* |
9c60689e | 13412 | |
47aaa820 DWT |
13413 | ac_outfile=conftest.$ac_objext |
13414 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13415 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13416 | _lt_linker_boilerplate=`cat conftest.err` | |
13417 | $RM -r conftest* | |
9c60689e | 13418 | |
9c60689e | 13419 | |
47aaa820 DWT |
13420 | # Allow CC to be a program name with arguments. |
13421 | lt_save_CC=$CC | |
ee134472 | 13422 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
13423 | lt_save_LD=$LD |
13424 | lt_save_GCC=$GCC | |
13425 | GCC=$GXX | |
13426 | lt_save_with_gnu_ld=$with_gnu_ld | |
13427 | lt_save_path_LD=$lt_cv_path_LD | |
13428 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13429 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 13430 | else |
47aaa820 | 13431 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 13432 | fi |
47aaa820 DWT |
13433 | if test -n "${lt_cv_path_LDCXX+set}"; then |
13434 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 13435 | else |
47aaa820 | 13436 | $as_unset lt_cv_path_LD |
9c60689e | 13437 | fi |
47aaa820 DWT |
13438 | test -z "${LDCXX+set}" || LD=$LDCXX |
13439 | CC=${CXX-"c++"} | |
ee134472 | 13440 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
13441 | compiler=$CC |
13442 | compiler_CXX=$CC | |
9d54db95 JF |
13443 | func_cc_basename $compiler |
13444 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
13445 | |
13446 | ||
47aaa820 DWT |
13447 | if test -n "$compiler"; then |
13448 | # We don't want -fno-exception when compiling C++ code, so set the | |
13449 | # no_builtin_flag separately | |
9d54db95 | 13450 | if test yes = "$GXX"; then |
47aaa820 DWT |
13451 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
13452 | else | |
13453 | lt_prog_compiler_no_builtin_flag_CXX= | |
13454 | fi | |
9c60689e | 13455 | |
9d54db95 | 13456 | if test yes = "$GXX"; then |
47aaa820 DWT |
13457 | # Set up default GNU C++ configuration |
13458 | ||
13459 | ||
13460 | ||
13461 | # Check whether --with-gnu-ld was given. | |
13462 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 13463 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
9c60689e | 13464 | else |
47aaa820 | 13465 | with_gnu_ld=no |
9c60689e DWT |
13466 | fi |
13467 | ||
47aaa820 | 13468 | ac_prog=ld |
9d54db95 | 13469 | if test yes = "$GCC"; then |
47aaa820 DWT |
13470 | # Check if gcc -print-prog-name=ld gives a path. |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13472 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13473 | case $host in | |
13474 | *-*-mingw*) | |
9d54db95 | 13475 | # gcc leaves a trailing carriage return, which upsets mingw |
47aaa820 DWT |
13476 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
13477 | *) | |
13478 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13479 | esac | |
13480 | case $ac_prog in | |
13481 | # Accept absolute paths. | |
13482 | [\\/]* | ?:[\\/]*) | |
13483 | re_direlt='/[^/][^/]*/\.\./' | |
13484 | # Canonicalize the pathname of ld | |
13485 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13486 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13487 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13488 | done | |
9d54db95 | 13489 | test -z "$LD" && LD=$ac_prog |
47aaa820 DWT |
13490 | ;; |
13491 | "") | |
13492 | # If it fails, then pretend we aren't using GCC. | |
13493 | ac_prog=ld | |
13494 | ;; | |
13495 | *) | |
13496 | # If it is relative, then search for the first ld in PATH. | |
13497 | with_gnu_ld=unknown | |
13498 | ;; | |
13499 | esac | |
9d54db95 | 13500 | elif test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
13502 | $as_echo_n "checking for GNU ld... " >&6; } | |
13503 | else | |
13504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13505 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 13506 | fi |
ee134472 | 13507 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
13508 | $as_echo_n "(cached) " >&6 |
13509 | else | |
47aaa820 | 13510 | if test -z "$LD"; then |
9d54db95 | 13511 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
47aaa820 | 13512 | for ac_dir in $PATH; do |
9d54db95 | 13513 | IFS=$lt_save_ifs |
47aaa820 DWT |
13514 | test -z "$ac_dir" && ac_dir=. |
13515 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 13516 | lt_cv_path_LD=$ac_dir/$ac_prog |
47aaa820 DWT |
13517 | # Check to see if the program is GNU ld. I'd rather use --version, |
13518 | # but apparently some variants of GNU ld only accept -v. | |
13519 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13520 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13521 | *GNU* | *'with BFD'*) | |
9d54db95 | 13522 | test no != "$with_gnu_ld" && break |
47aaa820 DWT |
13523 | ;; |
13524 | *) | |
9d54db95 | 13525 | test yes != "$with_gnu_ld" && break |
47aaa820 DWT |
13526 | ;; |
13527 | esac | |
13528 | fi | |
9c60689e | 13529 | done |
9d54db95 | 13530 | IFS=$lt_save_ifs |
47aaa820 | 13531 | else |
9d54db95 | 13532 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
9c60689e DWT |
13533 | fi |
13534 | fi | |
47aaa820 | 13535 | |
9d54db95 | 13536 | LD=$lt_cv_path_LD |
47aaa820 DWT |
13537 | if test -n "$LD"; then |
13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13539 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
13540 | else |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13542 | $as_echo "no" >&6; } | |
13543 | fi | |
12833ad8 | 13544 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13546 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 13547 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
13548 | $as_echo_n "(cached) " >&6 |
13549 | else | |
13550 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13551 | case `$LD -v 2>&1 </dev/null` in | |
13552 | *GNU* | *'with BFD'*) | |
13553 | lt_cv_prog_gnu_ld=yes | |
13554 | ;; | |
13555 | *) | |
13556 | lt_cv_prog_gnu_ld=no | |
13557 | ;; | |
13558 | esac | |
13559 | fi | |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13561 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13562 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
13563 | |
13564 | ||
9c60689e | 13565 | |
9c60689e | 13566 | |
9c60689e | 13567 | |
9c60689e | 13568 | |
9c60689e | 13569 | |
47aaa820 DWT |
13570 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
13571 | # archiving commands below assume that GNU ld is being used. | |
9d54db95 JF |
13572 | if test yes = "$with_gnu_ld"; then |
13573 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13574 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9c60689e | 13575 | |
9d54db95 JF |
13576 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
13577 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 13578 | |
47aaa820 DWT |
13579 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13580 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13581 | # investigate it a little bit more. (MM) | |
9d54db95 | 13582 | wlarc='$wl' |
9c60689e | 13583 | |
47aaa820 DWT |
13584 | # ancient GNU ld didn't support --whole-archive et. al. |
13585 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13586 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 13587 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
47aaa820 DWT |
13588 | else |
13589 | whole_archive_flag_spec_CXX= | |
13590 | fi | |
13591 | else | |
13592 | with_gnu_ld=no | |
13593 | wlarc= | |
13594 | ||
13595 | # A generic and very simple default shared library creation | |
13596 | # command for GNU C++ for the case where it uses the native | |
13597 | # linker, instead of GNU ld. If possible, this setting should | |
13598 | # overridden to take advantage of the native linker features on | |
13599 | # the platform it is being used on. | |
13600 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13601 | fi | |
13602 | ||
13603 | # Commands to make compiler produce verbose output that lists | |
13604 | # what "hidden" libraries, object files and flags are used when | |
13605 | # linking a shared library. | |
ee134472 | 13606 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13607 | |
13608 | else | |
13609 | GXX=no | |
13610 | with_gnu_ld=no | |
13611 | wlarc= | |
13612 | fi | |
13613 | ||
13614 | # PORTME: fill in a description of your system's C++ link characteristics | |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13616 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13617 | ld_shlibs_CXX=yes | |
13618 | case $host_os in | |
13619 | aix3*) | |
13620 | # FIXME: insert proper C++ library support | |
13621 | ld_shlibs_CXX=no | |
13622 | ;; | |
13623 | aix[4-9]*) | |
9d54db95 | 13624 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
13625 | # On IA64, the linker does run time linking by default, so we don't |
13626 | # have to do anything special. | |
13627 | aix_use_runtimelinking=no | |
13628 | exp_sym_flag='-Bexport' | |
9d54db95 | 13629 | no_entry_flag= |
47aaa820 DWT |
13630 | else |
13631 | aix_use_runtimelinking=no | |
13632 | ||
13633 | # Test if we are trying to use run time linking or normal | |
13634 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
13635 | # have runtime linking enabled, and use it for executables. |
13636 | # For shared libraries, we enable/disable runtime linking | |
13637 | # depending on the kind of the shared library created - | |
13638 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
13639 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
13640 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
13641 | # lib.a static archive | |
13642 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
13643 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
13644 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13645 | # lib.a(lib.so.V) shared, rtl:no | |
13646 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13647 | # lib.a static archive | |
47aaa820 DWT |
13648 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
13649 | for ld_flag in $LDFLAGS; do | |
13650 | case $ld_flag in | |
13651 | *-brtl*) | |
13652 | aix_use_runtimelinking=yes | |
13653 | break | |
13654 | ;; | |
13655 | esac | |
13656 | done | |
9d54db95 JF |
13657 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
13658 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
13659 | # so we don't have lib.a shared libs to link our executables. | |
13660 | # We have to force runtime linking in this case. | |
13661 | aix_use_runtimelinking=yes | |
13662 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
13663 | fi | |
47aaa820 DWT |
13664 | ;; |
13665 | esac | |
13666 | ||
13667 | exp_sym_flag='-bexport' | |
13668 | no_entry_flag='-bnoentry' | |
13669 | fi | |
13670 | ||
13671 | # When large executables or shared objects are built, AIX ld can | |
13672 | # have problems creating the table of contents. If linking a library | |
13673 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13674 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13675 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13676 | ||
13677 | archive_cmds_CXX='' | |
13678 | hardcode_direct_CXX=yes | |
13679 | hardcode_direct_absolute_CXX=yes | |
13680 | hardcode_libdir_separator_CXX=':' | |
13681 | link_all_deplibs_CXX=yes | |
9d54db95 JF |
13682 | file_list_spec_CXX='$wl-f,' |
13683 | case $with_aix_soname,$aix_use_runtimelinking in | |
13684 | aix,*) ;; # no import file | |
13685 | svr4,* | *,yes) # use import file | |
13686 | # The Import File defines what to hardcode. | |
13687 | hardcode_direct_CXX=no | |
13688 | hardcode_direct_absolute_CXX=no | |
13689 | ;; | |
13690 | esac | |
47aaa820 | 13691 | |
9d54db95 | 13692 | if test yes = "$GXX"; then |
47aaa820 DWT |
13693 | case $host_os in aix4.[012]|aix4.[012].*) |
13694 | # We only want to do this on AIX 4.2 and lower, the check | |
13695 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 13696 | collect2name=`$CC -print-prog-name=collect2` |
47aaa820 DWT |
13697 | if test -f "$collect2name" && |
13698 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13699 | then | |
13700 | # We have reworked collect2 | |
13701 | : | |
13702 | else | |
13703 | # We have old collect2 | |
13704 | hardcode_direct_CXX=unsupported | |
13705 | # It fails to find uninstalled libraries when the uninstalled | |
13706 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13707 | # to unsupported forces relinking | |
13708 | hardcode_minus_L_CXX=yes | |
13709 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13710 | hardcode_libdir_separator_CXX= | |
13711 | fi | |
13712 | esac | |
13713 | shared_flag='-shared' | |
9d54db95 JF |
13714 | if test yes = "$aix_use_runtimelinking"; then |
13715 | shared_flag=$shared_flag' $wl-G' | |
47aaa820 | 13716 | fi |
9d54db95 JF |
13717 | # Need to ensure runtime linking is disabled for the traditional |
13718 | # shared library, or the linker may eventually find shared libraries | |
13719 | # /with/ Import File - we do not want to mix them. | |
13720 | shared_flag_aix='-shared' | |
13721 | shared_flag_svr4='-shared $wl-G' | |
47aaa820 DWT |
13722 | else |
13723 | # not using gcc | |
9d54db95 | 13724 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
13725 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13726 | # chokes on -Wl,-G. The following line is correct: | |
13727 | shared_flag='-G' | |
13728 | else | |
9d54db95 JF |
13729 | if test yes = "$aix_use_runtimelinking"; then |
13730 | shared_flag='$wl-G' | |
47aaa820 | 13731 | else |
9d54db95 | 13732 | shared_flag='$wl-bM:SRE' |
47aaa820 | 13733 | fi |
9d54db95 JF |
13734 | shared_flag_aix='$wl-bM:SRE' |
13735 | shared_flag_svr4='$wl-G' | |
47aaa820 DWT |
13736 | fi |
13737 | fi | |
13738 | ||
9d54db95 | 13739 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
47aaa820 DWT |
13740 | # It seems that -bexpall does not export symbols beginning with |
13741 | # underscore (_), so it is better to generate a list of symbols to | |
13742 | # export. | |
13743 | always_export_symbols_CXX=yes | |
9d54db95 | 13744 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
47aaa820 DWT |
13745 | # Warning - without using the other runtime loading flags (-brtl), |
13746 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
13747 | # The "-G" linker flag allows undefined symbols. |
13748 | no_undefined_flag_CXX='-bernotok' | |
47aaa820 DWT |
13749 | # Determine the default libpath from the value encoded in an empty |
13750 | # executable. | |
9d54db95 | 13751 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
13752 | aix_libpath=$lt_cv_aix_libpath |
13753 | else | |
13754 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13755 | $as_echo_n "(cached) " >&6 | |
13756 | else | |
13757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13758 | /* end confdefs.h. */ |
13759 | ||
13760 | int | |
13761 | main () | |
13762 | { | |
13763 | ||
13764 | ; | |
13765 | return 0; | |
13766 | } | |
13767 | _ACEOF | |
47aaa820 | 13768 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13769 | |
ee134472 JF |
13770 | lt_aix_libpath_sed=' |
13771 | /Import File Strings/,/^$/ { | |
13772 | /^0/ { | |
13773 | s/^0 *\([^ ]*\) *$/\1/ | |
13774 | p | |
13775 | } | |
13776 | }' | |
13777 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13778 | # Check for a 64-bit object if we didn't find anything. | |
13779 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13780 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13781 | fi | |
47aaa820 DWT |
13782 | fi |
13783 | rm -f core conftest.err conftest.$ac_objext \ | |
13784 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 13785 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 13786 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
13787 | fi |
13788 | ||
13789 | fi | |
13790 | ||
13791 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13792 | fi | |
47aaa820 | 13793 | |
9d54db95 | 13794 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 | 13795 | |
9d54db95 | 13796 | archive_expsym_cmds_CXX='$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 |
47aaa820 | 13797 | else |
9d54db95 JF |
13798 | if test ia64 = "$host_cpu"; then |
13799 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
47aaa820 | 13800 | allow_undefined_flag_CXX="-z nodefs" |
9d54db95 | 13801 | archive_expsym_cmds_CXX="\$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" |
47aaa820 DWT |
13802 | else |
13803 | # Determine the default libpath from the value encoded in an | |
13804 | # empty executable. | |
9d54db95 | 13805 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
13806 | aix_libpath=$lt_cv_aix_libpath |
13807 | else | |
13808 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13809 | $as_echo_n "(cached) " >&6 | |
13810 | else | |
13811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13812 | /* end confdefs.h. */ |
13813 | ||
13814 | int | |
13815 | main () | |
13816 | { | |
13817 | ||
13818 | ; | |
13819 | return 0; | |
13820 | } | |
13821 | _ACEOF | |
47aaa820 | 13822 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13823 | |
ee134472 JF |
13824 | lt_aix_libpath_sed=' |
13825 | /Import File Strings/,/^$/ { | |
13826 | /^0/ { | |
13827 | s/^0 *\([^ ]*\) *$/\1/ | |
13828 | p | |
13829 | } | |
13830 | }' | |
13831 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13832 | # Check for a 64-bit object if we didn't find anything. | |
13833 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13834 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13835 | fi | |
9c60689e | 13836 | fi |
47aaa820 DWT |
13837 | rm -f core conftest.err conftest.$ac_objext \ |
13838 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 13839 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 13840 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
13841 | fi |
13842 | ||
13843 | fi | |
13844 | ||
13845 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13846 | fi | |
9c60689e | 13847 | |
9d54db95 | 13848 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 DWT |
13849 | # Warning - without using the other run time loading flags, |
13850 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
13851 | no_undefined_flag_CXX=' $wl-bernotok' |
13852 | allow_undefined_flag_CXX=' $wl-berok' | |
13853 | if test yes = "$with_gnu_ld"; then | |
ee134472 | 13854 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 13855 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
ee134472 JF |
13856 | else |
13857 | # Exported symbols can be pulled into shared objects from archives | |
13858 | whole_archive_flag_spec_CXX='$convenience' | |
13859 | fi | |
47aaa820 | 13860 | archive_cmds_need_lc_CXX=yes |
9d54db95 JF |
13861 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
13862 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
13863 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
13864 | if test svr4 != "$with_aix_soname"; then | |
13865 | # This is similar to how AIX traditionally builds its shared | |
13866 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
13867 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' | |
13868 | fi | |
13869 | if test aix != "$with_aix_soname"; then | |
13870 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' | |
13871 | else | |
13872 | # used by -dlpreopen to get the symbols | |
13873 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
13874 | fi | |
13875 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
47aaa820 DWT |
13876 | fi |
13877 | fi | |
13878 | ;; | |
9c60689e | 13879 | |
47aaa820 DWT |
13880 | beos*) |
13881 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13882 | allow_undefined_flag_CXX=unsupported | |
13883 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13884 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 13885 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
47aaa820 DWT |
13886 | else |
13887 | ld_shlibs_CXX=no | |
13888 | fi | |
13889 | ;; | |
9c60689e | 13890 | |
47aaa820 DWT |
13891 | chorus*) |
13892 | case $cc_basename in | |
13893 | *) | |
13894 | # FIXME: insert proper C++ library support | |
13895 | ld_shlibs_CXX=no | |
13896 | ;; | |
13897 | esac | |
13898 | ;; | |
9c60689e | 13899 | |
47aaa820 | 13900 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13901 | case $GXX,$cc_basename in |
13902 | ,cl* | no,cl*) | |
13903 | # Native MSVC | |
13904 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13905 | # no search path for DLLs. | |
13906 | hardcode_libdir_flag_spec_CXX=' ' | |
13907 | allow_undefined_flag_CXX=unsupported | |
13908 | always_export_symbols_CXX=yes | |
13909 | file_list_spec_CXX='@' | |
13910 | # Tell ltmain to make .lib files, not .a files. | |
13911 | libext=lib | |
13912 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 13913 | shrext_cmds=.dll |
ee134472 | 13914 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
13915 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
13916 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13917 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
13918 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
13919 | else | |
13920 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
13921 | fi~ | |
13922 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13923 | linknames=' | |
ee134472 JF |
13924 | # The linker will not automatically build a static lib if we build a DLL. |
13925 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13926 | enable_shared_with_static_runtimes_CXX=yes | |
13927 | # Don't use ranlib | |
13928 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13929 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
13930 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
13931 | case $lt_outputfile in | |
13932 | *.exe|*.EXE) ;; | |
13933 | *) | |
13934 | lt_outputfile=$lt_outputfile.exe | |
13935 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
13936 | ;; | |
13937 | esac~ | |
13938 | func_to_tool_file "$lt_outputfile"~ | |
13939 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
13940 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13941 | $RM "$lt_outputfile.manifest"; | |
13942 | fi' | |
ee134472 JF |
13943 | ;; |
13944 | *) | |
13945 | # g++ | |
13946 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13947 | # as there is no search path for DLLs. | |
13948 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9d54db95 | 13949 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
ee134472 JF |
13950 | allow_undefined_flag_CXX=unsupported |
13951 | always_export_symbols_CXX=no | |
13952 | enable_shared_with_static_runtimes_CXX=yes | |
13953 | ||
13954 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9d54db95 JF |
13955 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13956 | # If the export-symbols file already is a .def file, use it as | |
13957 | # is; otherwise, prepend EXPORTS... | |
13958 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13959 | cp $export_symbols $output_objdir/$soname.def; | |
13960 | else | |
13961 | echo EXPORTS > $output_objdir/$soname.def; | |
13962 | cat $export_symbols >> $output_objdir/$soname.def; | |
13963 | fi~ | |
13964 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
ee134472 JF |
13965 | else |
13966 | ld_shlibs_CXX=no | |
13967 | fi | |
13968 | ;; | |
13969 | esac | |
13970 | ;; | |
47aaa820 | 13971 | darwin* | rhapsody*) |
9c60689e | 13972 | |
9c60689e | 13973 | |
47aaa820 DWT |
13974 | archive_cmds_need_lc_CXX=no |
13975 | hardcode_direct_CXX=no | |
13976 | hardcode_automatic_CXX=yes | |
13977 | hardcode_shlibpath_var_CXX=unsupported | |
9d54db95 JF |
13978 | if test yes = "$lt_cv_ld_force_load"; then |
13979 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
53ba6704 | 13980 | |
ee134472 JF |
13981 | else |
13982 | whole_archive_flag_spec_CXX='' | |
13983 | fi | |
47aaa820 | 13984 | link_all_deplibs_CXX=yes |
9d54db95 | 13985 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
47aaa820 | 13986 | case $cc_basename in |
9d54db95 | 13987 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
47aaa820 DWT |
13988 | *) _lt_dar_can_shared=$GCC ;; |
13989 | esac | |
9d54db95 | 13990 | if test yes = "$_lt_dar_can_shared"; then |
ee134472 | 13991 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
13992 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
13993 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
13994 | archive_expsym_cmds_CXX="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" | |
13995 | module_expsym_cmds_CXX="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" | |
13996 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
13997 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" | |
13998 | archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" | |
47aaa820 | 13999 | fi |
9c60689e | 14000 | |
47aaa820 DWT |
14001 | else |
14002 | ld_shlibs_CXX=no | |
14003 | fi | |
9c60689e | 14004 | |
47aaa820 | 14005 | ;; |
9c60689e | 14006 | |
9d54db95 JF |
14007 | os2*) |
14008 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
14009 | hardcode_minus_L_CXX=yes | |
14010 | allow_undefined_flag_CXX=unsupported | |
14011 | shrext_cmds=.dll | |
14012 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14013 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14014 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14015 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14016 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
14017 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14018 | emximp -o $lib $output_objdir/$libname.def' | |
14019 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14020 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14021 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14022 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14023 | prefix_cmds="$SED"~ | |
14024 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
14025 | prefix_cmds="$prefix_cmds -e 1d"; | |
14026 | fi~ | |
14027 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
14028 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
14029 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14030 | emximp -o $lib $output_objdir/$libname.def' | |
14031 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
14032 | enable_shared_with_static_runtimes_CXX=yes | |
14033 | ;; | |
14034 | ||
47aaa820 DWT |
14035 | dgux*) |
14036 | case $cc_basename in | |
14037 | ec++*) | |
14038 | # FIXME: insert proper C++ library support | |
14039 | ld_shlibs_CXX=no | |
14040 | ;; | |
14041 | ghcx*) | |
14042 | # Green Hills C++ Compiler | |
14043 | # FIXME: insert proper C++ library support | |
14044 | ld_shlibs_CXX=no | |
14045 | ;; | |
14046 | *) | |
14047 | # FIXME: insert proper C++ library support | |
14048 | ld_shlibs_CXX=no | |
14049 | ;; | |
14050 | esac | |
14051 | ;; | |
9c60689e | 14052 | |
53ba6704 | 14053 | freebsd2.*) |
47aaa820 DWT |
14054 | # C++ shared libraries reported to be fairly broken before |
14055 | # switch to ELF | |
14056 | ld_shlibs_CXX=no | |
14057 | ;; | |
9c60689e | 14058 | |
47aaa820 DWT |
14059 | freebsd-elf*) |
14060 | archive_cmds_need_lc_CXX=no | |
14061 | ;; | |
9c60689e | 14062 | |
47aaa820 DWT |
14063 | freebsd* | dragonfly*) |
14064 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
14065 | # conventions | |
14066 | ld_shlibs_CXX=yes | |
14067 | ;; | |
9c60689e | 14068 | |
ee134472 | 14069 | haiku*) |
9d54db95 | 14070 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
ee134472 JF |
14071 | link_all_deplibs_CXX=yes |
14072 | ;; | |
14073 | ||
47aaa820 | 14074 | hpux9*) |
9d54db95 | 14075 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
47aaa820 | 14076 | hardcode_libdir_separator_CXX=: |
9d54db95 | 14077 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
14078 | hardcode_direct_CXX=yes |
14079 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14080 | # but as the default | |
14081 | # location of the library. | |
9c60689e | 14082 | |
47aaa820 DWT |
14083 | case $cc_basename in |
14084 | CC*) | |
14085 | # FIXME: insert proper C++ library support | |
14086 | ld_shlibs_CXX=no | |
14087 | ;; | |
14088 | aCC*) | |
9d54db95 | 14089 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
47aaa820 DWT |
14090 | # Commands to make compiler produce verbose output that lists |
14091 | # what "hidden" libraries, object files and flags are used when | |
14092 | # linking a shared library. | |
14093 | # | |
14094 | # There doesn't appear to be a way to prevent this compiler from | |
14095 | # explicitly linking system object files so we need to strip them | |
14096 | # from the output so that they don't get included in the library | |
14097 | # dependencies. | |
9d54db95 | 14098 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14099 | ;; |
14100 | *) | |
9d54db95 JF |
14101 | if test yes = "$GXX"; then |
14102 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
47aaa820 DWT |
14103 | else |
14104 | # FIXME: insert proper C++ library support | |
14105 | ld_shlibs_CXX=no | |
14106 | fi | |
14107 | ;; | |
14108 | esac | |
14109 | ;; | |
9c60689e | 14110 | |
47aaa820 | 14111 | hpux10*|hpux11*) |
9d54db95 JF |
14112 | if test no = "$with_gnu_ld"; then |
14113 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
47aaa820 | 14114 | hardcode_libdir_separator_CXX=: |
9c60689e | 14115 | |
47aaa820 DWT |
14116 | case $host_cpu in |
14117 | hppa*64*|ia64*) | |
14118 | ;; | |
14119 | *) | |
9d54db95 | 14120 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
14121 | ;; |
14122 | esac | |
14123 | fi | |
14124 | case $host_cpu in | |
14125 | hppa*64*|ia64*) | |
14126 | hardcode_direct_CXX=no | |
14127 | hardcode_shlibpath_var_CXX=no | |
14128 | ;; | |
14129 | *) | |
14130 | hardcode_direct_CXX=yes | |
14131 | hardcode_direct_absolute_CXX=yes | |
14132 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14133 | # but as the default | |
14134 | # location of the library. | |
14135 | ;; | |
14136 | esac | |
9c60689e | 14137 | |
47aaa820 DWT |
14138 | case $cc_basename in |
14139 | CC*) | |
14140 | # FIXME: insert proper C++ library support | |
14141 | ld_shlibs_CXX=no | |
14142 | ;; | |
14143 | aCC*) | |
14144 | case $host_cpu in | |
14145 | hppa*64*) | |
9d54db95 | 14146 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14147 | ;; |
14148 | ia64*) | |
9d54db95 | 14149 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14150 | ;; |
14151 | *) | |
9d54db95 | 14152 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14153 | ;; |
14154 | esac | |
14155 | # Commands to make compiler produce verbose output that lists | |
14156 | # what "hidden" libraries, object files and flags are used when | |
14157 | # linking a shared library. | |
14158 | # | |
14159 | # There doesn't appear to be a way to prevent this compiler from | |
14160 | # explicitly linking system object files so we need to strip them | |
14161 | # from the output so that they don't get included in the library | |
14162 | # dependencies. | |
9d54db95 | 14163 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14164 | ;; |
14165 | *) | |
9d54db95 JF |
14166 | if test yes = "$GXX"; then |
14167 | if test no = "$with_gnu_ld"; then | |
47aaa820 DWT |
14168 | case $host_cpu in |
14169 | hppa*64*) | |
9d54db95 | 14170 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14171 | ;; |
14172 | ia64*) | |
9d54db95 | 14173 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14174 | ;; |
14175 | *) | |
9d54db95 | 14176 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14177 | ;; |
14178 | esac | |
14179 | fi | |
14180 | else | |
14181 | # FIXME: insert proper C++ library support | |
14182 | ld_shlibs_CXX=no | |
14183 | fi | |
14184 | ;; | |
14185 | esac | |
14186 | ;; | |
9c60689e | 14187 | |
47aaa820 DWT |
14188 | interix[3-9]*) |
14189 | hardcode_direct_CXX=no | |
14190 | hardcode_shlibpath_var_CXX=no | |
9d54db95 JF |
14191 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14192 | export_dynamic_flag_spec_CXX='$wl-E' | |
47aaa820 DWT |
14193 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14194 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14195 | # default) and relocated if they conflict, which is a slow very memory | |
14196 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14197 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14198 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
14199 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14200 | archive_expsym_cmds_CXX='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' | |
47aaa820 DWT |
14201 | ;; |
14202 | irix5* | irix6*) | |
14203 | case $cc_basename in | |
14204 | CC*) | |
14205 | # SGI C++ | |
9d54db95 | 14206 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
9c60689e | 14207 | |
47aaa820 DWT |
14208 | # Archives containing C++ object files must be created using |
14209 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
14210 | # necessary to make sure instantiated templates are included | |
14211 | # in the archive. | |
14212 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
14213 | ;; | |
14214 | *) | |
9d54db95 JF |
14215 | if test yes = "$GXX"; then |
14216 | if test no = "$with_gnu_ld"; then | |
14217 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
47aaa820 | 14218 | else |
9d54db95 | 14219 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
47aaa820 DWT |
14220 | fi |
14221 | fi | |
14222 | link_all_deplibs_CXX=yes | |
14223 | ;; | |
14224 | esac | |
9d54db95 | 14225 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 DWT |
14226 | hardcode_libdir_separator_CXX=: |
14227 | inherit_rpath_CXX=yes | |
14228 | ;; | |
9c60689e | 14229 | |
9d54db95 | 14230 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
47aaa820 DWT |
14231 | case $cc_basename in |
14232 | KCC*) | |
14233 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 14234 | |
47aaa820 DWT |
14235 | # KCC will only create a shared library if the output file |
14236 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14237 | # to its proper name (with version) after linking. | |
9d54db95 JF |
14238 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
14239 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
47aaa820 DWT |
14240 | # Commands to make compiler produce verbose output that lists |
14241 | # what "hidden" libraries, object files and flags are used when | |
14242 | # linking a shared library. | |
14243 | # | |
14244 | # There doesn't appear to be a way to prevent this compiler from | |
14245 | # explicitly linking system object files so we need to strip them | |
14246 | # from the output so that they don't get included in the library | |
14247 | # dependencies. | |
9d54db95 | 14248 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
9c60689e | 14249 | |
9d54db95 JF |
14250 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14251 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 14252 | |
47aaa820 DWT |
14253 | # Archives containing C++ object files must be created using |
14254 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
14255 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
14256 | ;; | |
14257 | icpc* | ecpc* ) | |
14258 | # Intel C++ | |
14259 | with_gnu_ld=yes | |
14260 | # version 8.0 and above of icpc choke on multiply defined symbols | |
14261 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
14262 | # earlier do not add the objects themselves. | |
14263 | case `$CC -V 2>&1` in | |
14264 | *"Version 7."*) | |
9d54db95 JF |
14265 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14266 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14267 | ;; |
14268 | *) # Version 8.0 or newer | |
14269 | tmp_idyn= | |
14270 | case $host_cpu in | |
14271 | ia64*) tmp_idyn=' -i_dynamic';; | |
14272 | esac | |
9d54db95 JF |
14273 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
14274 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14275 | ;; |
14276 | esac | |
14277 | archive_cmds_need_lc_CXX=no | |
9d54db95 JF |
14278 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14279 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14280 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
47aaa820 DWT |
14281 | ;; |
14282 | pgCC* | pgcpp*) | |
14283 | # Portland Group C++ compiler | |
14284 | case `$CC -V` in | |
ee134472 | 14285 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 | 14286 | prelink_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14287 | rm -rf $tpldir~ |
14288 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
14289 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
47aaa820 | 14290 | old_archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14291 | rm -rf $tpldir~ |
14292 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
14293 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
14294 | $RANLIB $oldlib' | |
47aaa820 | 14295 | archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14296 | rm -rf $tpldir~ |
14297 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14298 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
47aaa820 | 14299 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14300 | rm -rf $tpldir~ |
14301 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14302 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 | 14303 | ;; |
ee134472 | 14304 | *) # Version 6 and above use weak symbols |
9d54db95 JF |
14305 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14306 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14307 | ;; |
14308 | esac | |
9c60689e | 14309 | |
9d54db95 JF |
14310 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
14311 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14312 | whole_archive_flag_spec_CXX='$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' | |
47aaa820 DWT |
14313 | ;; |
14314 | cxx*) | |
14315 | # Compaq C++ | |
9d54db95 JF |
14316 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14317 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' | |
9c60689e | 14318 | |
47aaa820 DWT |
14319 | runpath_var=LD_RUN_PATH |
14320 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14321 | hardcode_libdir_separator_CXX=: | |
9c60689e | 14322 | |
47aaa820 DWT |
14323 | # Commands to make compiler produce verbose output that lists |
14324 | # what "hidden" libraries, object files and flags are used when | |
14325 | # linking a shared library. | |
14326 | # | |
14327 | # There doesn't appear to be a way to prevent this compiler from | |
14328 | # explicitly linking system object files so we need to strip them | |
14329 | # from the output so that they don't get included in the library | |
14330 | # dependencies. | |
9d54db95 | 14331 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
47aaa820 | 14332 | ;; |
ee134472 | 14333 | xl* | mpixl* | bgxl*) |
47aaa820 | 14334 | # IBM XL 8.0 on PPC, with GNU ld |
9d54db95 JF |
14335 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
14336 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14337 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14338 | if test yes = "$supports_anon_versioning"; then | |
47aaa820 | 14339 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
14340 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14341 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14342 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
47aaa820 DWT |
14343 | fi |
14344 | ;; | |
14345 | *) | |
14346 | case `$CC -V 2>&1 | sed 5q` in | |
14347 | *Sun\ C*) | |
14348 | # Sun C++ 5.9 | |
14349 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 JF |
14350 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
14351 | archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' | |
47aaa820 | 14352 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
9d54db95 | 14353 | whole_archive_flag_spec_CXX='$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' |
47aaa820 | 14354 | compiler_needs_object_CXX=yes |
9c60689e | 14355 | |
47aaa820 DWT |
14356 | # Not sure whether something based on |
14357 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14358 | # would be better. | |
ee134472 | 14359 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14360 | |
47aaa820 DWT |
14361 | # Archives containing C++ object files must be created using |
14362 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14363 | # necessary to make sure instantiated templates are included | |
14364 | # in the archive. | |
14365 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14366 | ;; | |
14367 | esac | |
14368 | ;; | |
14369 | esac | |
14370 | ;; | |
9c60689e | 14371 | |
47aaa820 DWT |
14372 | lynxos*) |
14373 | # FIXME: insert proper C++ library support | |
14374 | ld_shlibs_CXX=no | |
14375 | ;; | |
9c60689e | 14376 | |
47aaa820 DWT |
14377 | m88k*) |
14378 | # FIXME: insert proper C++ library support | |
14379 | ld_shlibs_CXX=no | |
14380 | ;; | |
9c60689e | 14381 | |
47aaa820 DWT |
14382 | mvs*) |
14383 | case $cc_basename in | |
14384 | cxx*) | |
14385 | # FIXME: insert proper C++ library support | |
14386 | ld_shlibs_CXX=no | |
14387 | ;; | |
14388 | *) | |
14389 | # FIXME: insert proper C++ library support | |
14390 | ld_shlibs_CXX=no | |
14391 | ;; | |
14392 | esac | |
14393 | ;; | |
9c60689e | 14394 | |
47aaa820 DWT |
14395 | netbsd*) |
14396 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14397 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14398 | wlarc= | |
14399 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14400 | hardcode_direct_CXX=yes | |
14401 | hardcode_shlibpath_var_CXX=no | |
14402 | fi | |
14403 | # Workaround some broken pre-1.5 toolchains | |
14404 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 14405 | ;; |
47aaa820 DWT |
14406 | |
14407 | *nto* | *qnx*) | |
14408 | ld_shlibs_CXX=yes | |
9c60689e | 14409 | ;; |
9c60689e | 14410 | |
9d54db95 | 14411 | openbsd* | bitrig*) |
47aaa820 DWT |
14412 | if test -f /usr/libexec/ld.so; then |
14413 | hardcode_direct_CXX=yes | |
14414 | hardcode_shlibpath_var_CXX=no | |
14415 | hardcode_direct_absolute_CXX=yes | |
14416 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9d54db95 JF |
14417 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14418 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
14419 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
14420 | export_dynamic_flag_spec_CXX='$wl-E' | |
14421 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
47aaa820 | 14422 | fi |
ee134472 | 14423 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
14424 | else |
14425 | ld_shlibs_CXX=no | |
14426 | fi | |
14427 | ;; | |
9c60689e | 14428 | |
47aaa820 DWT |
14429 | osf3* | osf4* | osf5*) |
14430 | case $cc_basename in | |
14431 | KCC*) | |
14432 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 14433 | |
47aaa820 DWT |
14434 | # KCC will only create a shared library if the output file |
14435 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14436 | # to its proper name (with version) after linking. | |
9d54db95 | 14437 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
9c60689e | 14438 | |
9d54db95 | 14439 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
47aaa820 | 14440 | hardcode_libdir_separator_CXX=: |
9c60689e | 14441 | |
47aaa820 DWT |
14442 | # Archives containing C++ object files must be created using |
14443 | # the KAI C++ compiler. | |
14444 | case $host in | |
14445 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14446 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14447 | esac | |
14448 | ;; | |
14449 | RCC*) | |
14450 | # Rational C++ 2.4.1 | |
14451 | # FIXME: insert proper C++ library support | |
14452 | ld_shlibs_CXX=no | |
14453 | ;; | |
14454 | cxx*) | |
14455 | case $host in | |
14456 | osf3*) | |
9d54db95 JF |
14457 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
14458 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14459 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
47aaa820 DWT |
14460 | ;; |
14461 | *) | |
14462 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9d54db95 | 14463 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
47aaa820 | 14464 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
9d54db95 JF |
14465 | echo "-hidden">> $lib.exp~ |
14466 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ | |
14467 | $RM $lib.exp' | |
47aaa820 DWT |
14468 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
14469 | ;; | |
14470 | esac | |
9c60689e | 14471 | |
47aaa820 | 14472 | hardcode_libdir_separator_CXX=: |
9c60689e | 14473 | |
47aaa820 DWT |
14474 | # Commands to make compiler produce verbose output that lists |
14475 | # what "hidden" libraries, object files and flags are used when | |
14476 | # linking a shared library. | |
14477 | # | |
14478 | # There doesn't appear to be a way to prevent this compiler from | |
14479 | # explicitly linking system object files so we need to strip them | |
14480 | # from the output so that they don't get included in the library | |
14481 | # dependencies. | |
9d54db95 | 14482 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14483 | ;; |
14484 | *) | |
9d54db95 JF |
14485 | if test yes,no = "$GXX,$with_gnu_ld"; then |
14486 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
47aaa820 DWT |
14487 | case $host in |
14488 | osf3*) | |
9d54db95 | 14489 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
47aaa820 DWT |
14490 | ;; |
14491 | *) | |
9d54db95 | 14492 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
47aaa820 DWT |
14493 | ;; |
14494 | esac | |
9c60689e | 14495 | |
9d54db95 | 14496 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 | 14497 | hardcode_libdir_separator_CXX=: |
9c60689e | 14498 | |
47aaa820 DWT |
14499 | # Commands to make compiler produce verbose output that lists |
14500 | # what "hidden" libraries, object files and flags are used when | |
14501 | # linking a shared library. | |
ee134472 | 14502 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 14503 | |
47aaa820 DWT |
14504 | else |
14505 | # FIXME: insert proper C++ library support | |
14506 | ld_shlibs_CXX=no | |
14507 | fi | |
14508 | ;; | |
14509 | esac | |
14510 | ;; | |
9c60689e | 14511 | |
47aaa820 | 14512 | psos*) |
9c60689e DWT |
14513 | # FIXME: insert proper C++ library support |
14514 | ld_shlibs_CXX=no | |
14515 | ;; | |
9c60689e | 14516 | |
47aaa820 DWT |
14517 | sunos4*) |
14518 | case $cc_basename in | |
14519 | CC*) | |
14520 | # Sun C++ 4.x | |
14521 | # FIXME: insert proper C++ library support | |
14522 | ld_shlibs_CXX=no | |
9c60689e | 14523 | ;; |
47aaa820 DWT |
14524 | lcc*) |
14525 | # Lucid | |
14526 | # FIXME: insert proper C++ library support | |
14527 | ld_shlibs_CXX=no | |
14528 | ;; | |
14529 | *) | |
14530 | # FIXME: insert proper C++ library support | |
14531 | ld_shlibs_CXX=no | |
14532 | ;; | |
14533 | esac | |
14534 | ;; | |
9c60689e | 14535 | |
47aaa820 DWT |
14536 | solaris*) |
14537 | case $cc_basename in | |
ee134472 | 14538 | CC* | sunCC*) |
47aaa820 DWT |
14539 | # Sun C++ 4.2, 5.x and Centerline C++ |
14540 | archive_cmds_need_lc_CXX=yes | |
14541 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 | 14542 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 | 14543 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14544 | $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14545 | |
47aaa820 DWT |
14546 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
14547 | hardcode_shlibpath_var_CXX=no | |
14548 | case $host_os in | |
14549 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14550 | *) | |
14551 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 14552 | # but understands '-z linker_flag'. |
47aaa820 DWT |
14553 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14554 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14555 | ;; | |
14556 | esac | |
14557 | link_all_deplibs_CXX=yes | |
9c60689e | 14558 | |
ee134472 | 14559 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14560 | |
47aaa820 DWT |
14561 | # Archives containing C++ object files must be created using |
14562 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14563 | # necessary to make sure instantiated templates are included | |
14564 | # in the archive. | |
14565 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14566 | ;; | |
14567 | gcx*) | |
14568 | # Green Hills C++ Compiler | |
9d54db95 | 14569 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
9c60689e | 14570 | |
47aaa820 DWT |
14571 | # The C++ compiler must be used to create the archive. |
14572 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14573 | ;; | |
14574 | *) | |
14575 | # GNU C++ compiler with Solaris linker | |
9d54db95 JF |
14576 | if test yes,no = "$GXX,$with_gnu_ld"; then |
14577 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
47aaa820 | 14578 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
9d54db95 | 14579 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 14580 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14581 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14582 | |
47aaa820 DWT |
14583 | # Commands to make compiler produce verbose output that lists |
14584 | # what "hidden" libraries, object files and flags are used when | |
14585 | # linking a shared library. | |
ee134472 | 14586 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14587 | else |
9d54db95 | 14588 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
47aaa820 | 14589 | # platform. |
9d54db95 | 14590 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 14591 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14592 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14593 | |
47aaa820 DWT |
14594 | # Commands to make compiler produce verbose output that lists |
14595 | # what "hidden" libraries, object files and flags are used when | |
14596 | # linking a shared library. | |
ee134472 | 14597 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14598 | fi |
9c60689e | 14599 | |
9d54db95 | 14600 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
47aaa820 DWT |
14601 | case $host_os in |
14602 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14603 | *) | |
9d54db95 | 14604 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
47aaa820 DWT |
14605 | ;; |
14606 | esac | |
14607 | fi | |
14608 | ;; | |
14609 | esac | |
14610 | ;; | |
9c60689e | 14611 | |
47aaa820 | 14612 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9d54db95 | 14613 | no_undefined_flag_CXX='$wl-z,text' |
47aaa820 DWT |
14614 | archive_cmds_need_lc_CXX=no |
14615 | hardcode_shlibpath_var_CXX=no | |
14616 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14617 | |
47aaa820 DWT |
14618 | case $cc_basename in |
14619 | CC*) | |
9d54db95 JF |
14620 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14621 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14622 | ;; |
14623 | *) | |
9d54db95 JF |
14624 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14625 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14626 | ;; |
14627 | esac | |
14628 | ;; | |
9c60689e | 14629 | |
47aaa820 | 14630 | sysv5* | sco3.2v5* | sco5v6*) |
9d54db95 | 14631 | # Note: We CANNOT use -z defs as we might desire, because we do not |
47aaa820 DWT |
14632 | # link with -lc, and that would cause any symbols used from libc to |
14633 | # always be unresolved, which means just about no library would | |
14634 | # ever link correctly. If we're not using GNU ld we use -z text | |
14635 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14636 | # as -z defs. | |
9d54db95 JF |
14637 | no_undefined_flag_CXX='$wl-z,text' |
14638 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
47aaa820 DWT |
14639 | archive_cmds_need_lc_CXX=no |
14640 | hardcode_shlibpath_var_CXX=no | |
9d54db95 | 14641 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
47aaa820 DWT |
14642 | hardcode_libdir_separator_CXX=':' |
14643 | link_all_deplibs_CXX=yes | |
9d54db95 | 14644 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
47aaa820 | 14645 | runpath_var='LD_RUN_PATH' |
9c60689e | 14646 | |
47aaa820 DWT |
14647 | case $cc_basename in |
14648 | CC*) | |
9d54db95 JF |
14649 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14650 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 | 14651 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
9d54db95 | 14652 | '"$old_archive_cmds_CXX" |
ee134472 | 14653 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
9d54db95 | 14654 | '"$reload_cmds_CXX" |
47aaa820 DWT |
14655 | ;; |
14656 | *) | |
9d54db95 JF |
14657 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14658 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14659 | ;; |
14660 | esac | |
14661 | ;; | |
9c60689e | 14662 | |
47aaa820 | 14663 | tandem*) |
9c60689e | 14664 | case $cc_basename in |
47aaa820 DWT |
14665 | NCC*) |
14666 | # NonStop-UX NCC 3.20 | |
14667 | # FIXME: insert proper C++ library support | |
14668 | ld_shlibs_CXX=no | |
14669 | ;; | |
9c60689e | 14670 | *) |
47aaa820 DWT |
14671 | # FIXME: insert proper C++ library support |
14672 | ld_shlibs_CXX=no | |
14673 | ;; | |
9c60689e DWT |
14674 | esac |
14675 | ;; | |
14676 | ||
47aaa820 DWT |
14677 | vxworks*) |
14678 | # FIXME: insert proper C++ library support | |
14679 | ld_shlibs_CXX=no | |
14680 | ;; | |
9c60689e | 14681 | |
47aaa820 DWT |
14682 | *) |
14683 | # FIXME: insert proper C++ library support | |
14684 | ld_shlibs_CXX=no | |
9c60689e | 14685 | ;; |
47aaa820 | 14686 | esac |
9c60689e | 14687 | |
47aaa820 DWT |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
14689 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 14690 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
9c60689e | 14691 | |
9d54db95 JF |
14692 | GCC_CXX=$GXX |
14693 | LD_CXX=$LD | |
9c60689e | 14694 | |
47aaa820 DWT |
14695 | ## CAVEAT EMPTOR: |
14696 | ## There is no encapsulation within the following macros, do not change | |
14697 | ## the running order or otherwise move them around unless you know exactly | |
14698 | ## what you are doing... | |
14699 | # Dependencies to place before and after the object being linked: | |
14700 | predep_objects_CXX= | |
14701 | postdep_objects_CXX= | |
14702 | predeps_CXX= | |
14703 | postdeps_CXX= | |
14704 | compiler_lib_search_path_CXX= | |
9c60689e | 14705 | |
47aaa820 DWT |
14706 | cat > conftest.$ac_ext <<_LT_EOF |
14707 | class Foo | |
14708 | { | |
14709 | public: | |
14710 | Foo (void) { a = 0; } | |
14711 | private: | |
14712 | int a; | |
14713 | }; | |
14714 | _LT_EOF | |
9c60689e | 14715 | |
ee134472 JF |
14716 | |
14717 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14718 | case "$CC $CFLAGS " in #( | |
14719 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14720 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14721 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14722 | esac |
14723 | ||
47aaa820 DWT |
14724 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14725 | (eval $ac_compile) 2>&5 | |
14726 | ac_status=$? | |
14727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14728 | test $ac_status = 0; }; then | |
14729 | # Parse the compiler output and extract the necessary | |
14730 | # objects, libraries and library flags. | |
9c60689e | 14731 | |
47aaa820 DWT |
14732 | # Sentinel used to keep track of whether or not we are before |
14733 | # the conftest object file. | |
14734 | pre_test_object_deps_done=no | |
9c60689e | 14735 | |
47aaa820 | 14736 | for p in `eval "$output_verbose_link_cmd"`; do |
9d54db95 | 14737 | case $prev$p in |
9c60689e | 14738 | |
47aaa820 DWT |
14739 | -L* | -R* | -l*) |
14740 | # Some compilers place space between "-{L,R}" and the path. | |
14741 | # Remove the space. | |
9d54db95 JF |
14742 | if test x-L = "$p" || |
14743 | test x-R = "$p"; then | |
47aaa820 DWT |
14744 | prev=$p |
14745 | continue | |
47aaa820 | 14746 | fi |
9c60689e | 14747 | |
ee134472 JF |
14748 | # Expand the sysroot to ease extracting the directories later. |
14749 | if test -z "$prev"; then | |
14750 | case $p in | |
14751 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14752 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14753 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14754 | esac | |
14755 | fi | |
14756 | case $p in | |
14757 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14758 | esac | |
9d54db95 JF |
14759 | if test no = "$pre_test_object_deps_done"; then |
14760 | case $prev in | |
ee134472 | 14761 | -L | -R) |
47aaa820 DWT |
14762 | # Internal compiler library paths should come after those |
14763 | # provided the user. The postdeps already come after the | |
14764 | # user supplied libs so there is no need to process them. | |
14765 | if test -z "$compiler_lib_search_path_CXX"; then | |
9d54db95 | 14766 | compiler_lib_search_path_CXX=$prev$p |
47aaa820 | 14767 | else |
9d54db95 | 14768 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
47aaa820 DWT |
14769 | fi |
14770 | ;; | |
14771 | # The "-l" case would never come before the object being | |
14772 | # linked, so don't bother handling this case. | |
14773 | esac | |
14774 | else | |
14775 | if test -z "$postdeps_CXX"; then | |
9d54db95 | 14776 | postdeps_CXX=$prev$p |
47aaa820 | 14777 | else |
9d54db95 | 14778 | postdeps_CXX="${postdeps_CXX} $prev$p" |
47aaa820 DWT |
14779 | fi |
14780 | fi | |
ee134472 | 14781 | prev= |
47aaa820 | 14782 | ;; |
9c60689e | 14783 | |
ee134472 | 14784 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14785 | *.$objext) |
14786 | # This assumes that the test object file only shows up | |
14787 | # once in the compiler output. | |
14788 | if test "$p" = "conftest.$objext"; then | |
14789 | pre_test_object_deps_done=yes | |
14790 | continue | |
14791 | fi | |
9c60689e | 14792 | |
9d54db95 | 14793 | if test no = "$pre_test_object_deps_done"; then |
47aaa820 | 14794 | if test -z "$predep_objects_CXX"; then |
9d54db95 | 14795 | predep_objects_CXX=$p |
47aaa820 DWT |
14796 | else |
14797 | predep_objects_CXX="$predep_objects_CXX $p" | |
14798 | fi | |
14799 | else | |
14800 | if test -z "$postdep_objects_CXX"; then | |
9d54db95 | 14801 | postdep_objects_CXX=$p |
47aaa820 DWT |
14802 | else |
14803 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14804 | fi | |
14805 | fi | |
14806 | ;; | |
9c60689e | 14807 | |
47aaa820 | 14808 | *) ;; # Ignore the rest. |
9c60689e | 14809 | |
47aaa820 DWT |
14810 | esac |
14811 | done | |
9c60689e | 14812 | |
47aaa820 DWT |
14813 | # Clean up. |
14814 | rm -f a.out a.exe | |
14815 | else | |
14816 | echo "libtool.m4: error: problem compiling CXX test program" | |
14817 | fi | |
9c60689e | 14818 | |
47aaa820 | 14819 | $RM -f confest.$objext |
ee134472 | 14820 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14821 | |
47aaa820 DWT |
14822 | # PORTME: override above test on systems where it is broken |
14823 | case $host_os in | |
14824 | interix[3-9]*) | |
14825 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14826 | # hack all around it, let's just trust "g++" to DTRT. | |
14827 | predep_objects_CXX= | |
14828 | postdep_objects_CXX= | |
14829 | postdeps_CXX= | |
14830 | ;; | |
47aaa820 | 14831 | esac |
9c60689e | 14832 | |
9c60689e | 14833 | |
47aaa820 DWT |
14834 | case " $postdeps_CXX " in |
14835 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14836 | esac | |
14837 | compiler_lib_search_dirs_CXX= | |
14838 | if test -n "${compiler_lib_search_path_CXX}"; then | |
9d54db95 | 14839 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
47aaa820 | 14840 | fi |
9c60689e | 14841 | |
9c60689e | 14842 | |
9c60689e | 14843 | |
9c60689e | 14844 | |
9c60689e | 14845 | |
9c60689e | 14846 | |
9c60689e | 14847 | |
9c60689e | 14848 | |
9c60689e | 14849 | |
9c60689e | 14850 | |
9c60689e | 14851 | |
9c60689e | 14852 | |
9c60689e | 14853 | |
9c60689e | 14854 | |
9c60689e | 14855 | |
9c60689e | 14856 | |
9c60689e | 14857 | |
9c60689e | 14858 | |
9c60689e | 14859 | |
9c60689e | 14860 | |
9c60689e | 14861 | |
9c60689e | 14862 | |
9c60689e | 14863 | |
9c60689e | 14864 | |
9c60689e | 14865 | |
9c60689e | 14866 | |
9c60689e | 14867 | |
9c60689e | 14868 | |
9c60689e | 14869 | |
9c60689e | 14870 | |
9c60689e | 14871 | |
47aaa820 DWT |
14872 | lt_prog_compiler_wl_CXX= |
14873 | lt_prog_compiler_pic_CXX= | |
14874 | lt_prog_compiler_static_CXX= | |
9c60689e | 14875 | |
9c60689e DWT |
14876 | |
14877 | # C++ specific cases for pic, static, wl, etc. | |
9d54db95 | 14878 | if test yes = "$GXX"; then |
9c60689e DWT |
14879 | lt_prog_compiler_wl_CXX='-Wl,' |
14880 | lt_prog_compiler_static_CXX='-static' | |
14881 | ||
14882 | case $host_os in | |
14883 | aix*) | |
14884 | # All AIX code is PIC. | |
9d54db95 | 14885 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
14886 | # AIX 5 now supports IA64 processor |
14887 | lt_prog_compiler_static_CXX='-Bstatic' | |
14888 | fi | |
9d54db95 | 14889 | lt_prog_compiler_pic_CXX='-fPIC' |
9c60689e DWT |
14890 | ;; |
14891 | ||
14892 | amigaos*) | |
14893 | case $host_cpu in | |
14894 | powerpc) | |
14895 | # see comment about AmigaOS4 .so support | |
14896 | lt_prog_compiler_pic_CXX='-fPIC' | |
14897 | ;; | |
14898 | m68k) | |
14899 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
14900 | # adding the '-m68020' flag to GCC prevents building anything better, |
14901 | # like '-m68040'. | |
9c60689e DWT |
14902 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
14903 | ;; | |
14904 | esac | |
14905 | ;; | |
14906 | ||
14907 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14908 | # PIC is the default for these OSes. | |
14909 | ;; | |
14910 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14911 | # This hack is so that the source file can tell whether it is being | |
14912 | # built for inclusion in a dll (and should export symbols for example). | |
14913 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14914 | # (--disable-auto-import) libraries | |
14915 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9d54db95 JF |
14916 | case $host_os in |
14917 | os2*) | |
14918 | lt_prog_compiler_static_CXX='$wl-static' | |
14919 | ;; | |
14920 | esac | |
9c60689e DWT |
14921 | ;; |
14922 | darwin* | rhapsody*) | |
14923 | # PIC is the default on this platform | |
14924 | # Common symbols not allowed in MH_DYLIB files | |
14925 | lt_prog_compiler_pic_CXX='-fno-common' | |
14926 | ;; | |
14927 | *djgpp*) | |
14928 | # DJGPP does not support shared libraries at all | |
14929 | lt_prog_compiler_pic_CXX= | |
14930 | ;; | |
ee134472 JF |
14931 | haiku*) |
14932 | # PIC is the default for Haiku. | |
14933 | # The "-static" flag exists, but is broken. | |
14934 | lt_prog_compiler_static_CXX= | |
14935 | ;; | |
9c60689e DWT |
14936 | interix[3-9]*) |
14937 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14938 | # Instead, we relocate shared libraries at runtime. | |
14939 | ;; | |
14940 | sysv4*MP*) | |
14941 | if test -d /usr/nec; then | |
14942 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14943 | fi | |
14944 | ;; | |
14945 | hpux*) | |
14946 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14947 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14948 | # sets the default TLS model and affects inlining. | |
14949 | case $host_cpu in | |
14950 | hppa*64*) | |
14951 | ;; | |
14952 | *) | |
14953 | lt_prog_compiler_pic_CXX='-fPIC' | |
14954 | ;; | |
14955 | esac | |
14956 | ;; | |
14957 | *qnx* | *nto*) | |
14958 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14959 | # it will coredump. | |
14960 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14961 | ;; | |
14962 | *) | |
14963 | lt_prog_compiler_pic_CXX='-fPIC' | |
14964 | ;; | |
14965 | esac | |
14966 | else | |
14967 | case $host_os in | |
14968 | aix[4-9]*) | |
14969 | # All AIX code is PIC. | |
9d54db95 | 14970 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
14971 | # AIX 5 now supports IA64 processor |
14972 | lt_prog_compiler_static_CXX='-Bstatic' | |
14973 | else | |
14974 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14975 | fi | |
14976 | ;; | |
14977 | chorus*) | |
14978 | case $cc_basename in | |
14979 | cxch68*) | |
14980 | # Green Hills C++ Compiler | |
14981 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14982 | ;; | |
14983 | esac | |
14984 | ;; | |
ee134472 JF |
14985 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14986 | # This hack is so that the source file can tell whether it is being | |
14987 | # built for inclusion in a dll (and should export symbols for example). | |
14988 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14989 | ;; | |
9c60689e DWT |
14990 | dgux*) |
14991 | case $cc_basename in | |
14992 | ec++*) | |
14993 | lt_prog_compiler_pic_CXX='-KPIC' | |
14994 | ;; | |
14995 | ghcx*) | |
14996 | # Green Hills C++ Compiler | |
14997 | lt_prog_compiler_pic_CXX='-pic' | |
14998 | ;; | |
14999 | *) | |
15000 | ;; | |
15001 | esac | |
15002 | ;; | |
15003 | freebsd* | dragonfly*) | |
15004 | # FreeBSD uses GNU C++ | |
15005 | ;; | |
15006 | hpux9* | hpux10* | hpux11*) | |
15007 | case $cc_basename in | |
15008 | CC*) | |
15009 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 JF |
15010 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
15011 | if test ia64 != "$host_cpu"; then | |
9c60689e DWT |
15012 | lt_prog_compiler_pic_CXX='+Z' |
15013 | fi | |
15014 | ;; | |
15015 | aCC*) | |
15016 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 | 15017 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
9c60689e DWT |
15018 | case $host_cpu in |
15019 | hppa*64*|ia64*) | |
15020 | # +Z the default | |
15021 | ;; | |
15022 | *) | |
15023 | lt_prog_compiler_pic_CXX='+Z' | |
15024 | ;; | |
15025 | esac | |
15026 | ;; | |
15027 | *) | |
15028 | ;; | |
15029 | esac | |
15030 | ;; | |
15031 | interix*) | |
15032 | # This is c89, which is MS Visual C++ (no shared libs) | |
15033 | # Anyone wants to do a port? | |
15034 | ;; | |
15035 | irix5* | irix6* | nonstopux*) | |
15036 | case $cc_basename in | |
15037 | CC*) | |
15038 | lt_prog_compiler_wl_CXX='-Wl,' | |
15039 | lt_prog_compiler_static_CXX='-non_shared' | |
15040 | # CC pic flag -KPIC is the default. | |
15041 | ;; | |
15042 | *) | |
15043 | ;; | |
15044 | esac | |
15045 | ;; | |
9d54db95 | 15046 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9c60689e DWT |
15047 | case $cc_basename in |
15048 | KCC*) | |
15049 | # KAI C++ Compiler | |
15050 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15051 | lt_prog_compiler_pic_CXX='-fPIC' | |
15052 | ;; | |
15053 | ecpc* ) | |
9d54db95 | 15054 | # old Intel C++ for x86_64, which still supported -KPIC. |
9c60689e DWT |
15055 | lt_prog_compiler_wl_CXX='-Wl,' |
15056 | lt_prog_compiler_pic_CXX='-KPIC' | |
15057 | lt_prog_compiler_static_CXX='-static' | |
15058 | ;; | |
15059 | icpc* ) | |
15060 | # Intel C++, used to be incompatible with GCC. | |
15061 | # ICC 10 doesn't accept -KPIC any more. | |
15062 | lt_prog_compiler_wl_CXX='-Wl,' | |
15063 | lt_prog_compiler_pic_CXX='-fPIC' | |
15064 | lt_prog_compiler_static_CXX='-static' | |
15065 | ;; | |
15066 | pgCC* | pgcpp*) | |
15067 | # Portland Group C++ compiler | |
15068 | lt_prog_compiler_wl_CXX='-Wl,' | |
15069 | lt_prog_compiler_pic_CXX='-fpic' | |
15070 | lt_prog_compiler_static_CXX='-Bstatic' | |
15071 | ;; | |
15072 | cxx*) | |
15073 | # Compaq C++ | |
15074 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15075 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15076 | lt_prog_compiler_pic_CXX= | |
15077 | lt_prog_compiler_static_CXX='-non_shared' | |
15078 | ;; | |
ee134472 JF |
15079 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
15080 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
15081 | lt_prog_compiler_wl_CXX='-Wl,' |
15082 | lt_prog_compiler_pic_CXX='-qpic' | |
15083 | lt_prog_compiler_static_CXX='-qstaticlink' | |
15084 | ;; | |
15085 | *) | |
15086 | case `$CC -V 2>&1 | sed 5q` in | |
15087 | *Sun\ C*) | |
15088 | # Sun C++ 5.9 | |
15089 | lt_prog_compiler_pic_CXX='-KPIC' | |
15090 | lt_prog_compiler_static_CXX='-Bstatic' | |
15091 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15092 | ;; | |
15093 | esac | |
15094 | ;; | |
15095 | esac | |
15096 | ;; | |
15097 | lynxos*) | |
15098 | ;; | |
15099 | m88k*) | |
15100 | ;; | |
15101 | mvs*) | |
15102 | case $cc_basename in | |
15103 | cxx*) | |
15104 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
15105 | ;; | |
15106 | *) | |
15107 | ;; | |
15108 | esac | |
15109 | ;; | |
53ba6704 | 15110 | netbsd*) |
9c60689e DWT |
15111 | ;; |
15112 | *qnx* | *nto*) | |
15113 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15114 | # it will coredump. | |
15115 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15116 | ;; | |
15117 | osf3* | osf4* | osf5*) | |
15118 | case $cc_basename in | |
15119 | KCC*) | |
15120 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15121 | ;; | |
15122 | RCC*) | |
15123 | # Rational C++ 2.4.1 | |
15124 | lt_prog_compiler_pic_CXX='-pic' | |
15125 | ;; | |
15126 | cxx*) | |
15127 | # Digital/Compaq C++ | |
15128 | lt_prog_compiler_wl_CXX='-Wl,' | |
15129 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15130 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15131 | lt_prog_compiler_pic_CXX= | |
15132 | lt_prog_compiler_static_CXX='-non_shared' | |
15133 | ;; | |
15134 | *) | |
15135 | ;; | |
15136 | esac | |
15137 | ;; | |
15138 | psos*) | |
15139 | ;; | |
15140 | solaris*) | |
15141 | case $cc_basename in | |
ee134472 | 15142 | CC* | sunCC*) |
9c60689e DWT |
15143 | # Sun C++ 4.2, 5.x and Centerline C++ |
15144 | lt_prog_compiler_pic_CXX='-KPIC' | |
15145 | lt_prog_compiler_static_CXX='-Bstatic' | |
15146 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15147 | ;; | |
15148 | gcx*) | |
15149 | # Green Hills C++ Compiler | |
15150 | lt_prog_compiler_pic_CXX='-PIC' | |
15151 | ;; | |
15152 | *) | |
15153 | ;; | |
15154 | esac | |
15155 | ;; | |
15156 | sunos4*) | |
15157 | case $cc_basename in | |
15158 | CC*) | |
15159 | # Sun C++ 4.x | |
15160 | lt_prog_compiler_pic_CXX='-pic' | |
15161 | lt_prog_compiler_static_CXX='-Bstatic' | |
15162 | ;; | |
15163 | lcc*) | |
15164 | # Lucid | |
15165 | lt_prog_compiler_pic_CXX='-pic' | |
15166 | ;; | |
15167 | *) | |
15168 | ;; | |
15169 | esac | |
15170 | ;; | |
15171 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15172 | case $cc_basename in | |
15173 | CC*) | |
15174 | lt_prog_compiler_wl_CXX='-Wl,' | |
15175 | lt_prog_compiler_pic_CXX='-KPIC' | |
15176 | lt_prog_compiler_static_CXX='-Bstatic' | |
15177 | ;; | |
15178 | esac | |
15179 | ;; | |
15180 | tandem*) | |
15181 | case $cc_basename in | |
15182 | NCC*) | |
15183 | # NonStop-UX NCC 3.20 | |
15184 | lt_prog_compiler_pic_CXX='-KPIC' | |
15185 | ;; | |
15186 | *) | |
15187 | ;; | |
15188 | esac | |
15189 | ;; | |
15190 | vxworks*) | |
15191 | ;; | |
15192 | *) | |
15193 | lt_prog_compiler_can_build_shared_CXX=no | |
15194 | ;; | |
15195 | esac | |
15196 | fi | |
15197 | ||
15198 | case $host_os in | |
9d54db95 | 15199 | # For platforms that do not support PIC, -DPIC is meaningless: |
9c60689e DWT |
15200 | *djgpp*) |
15201 | lt_prog_compiler_pic_CXX= | |
15202 | ;; | |
15203 | *) | |
15204 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
15205 | ;; | |
15206 | esac | |
9c60689e | 15207 | |
ee134472 JF |
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
15209 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
15210 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
15211 | $as_echo_n "(cached) " >&6 | |
15212 | else | |
15213 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
15214 | fi | |
15215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
15216 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
15217 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
15218 | |
15219 | # | |
15220 | # Check to make sure the PIC flag actually works. | |
15221 | # | |
15222 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
15224 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 15225 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
15226 | $as_echo_n "(cached) " >&6 |
15227 | else | |
15228 | lt_cv_prog_compiler_pic_works_CXX=no | |
15229 | ac_outfile=conftest.$ac_objext | |
15230 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 15231 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
9c60689e DWT |
15232 | # Insert the option either (1) after the last *FLAGS variable, or |
15233 | # (2) before a word containing "conftest.", or (3) at the end. | |
15234 | # Note that $ac_compile itself does not contain backslashes and begins | |
15235 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15236 | # The option is referenced via a variable to avoid confusing sed. | |
15237 | lt_compile=`echo "$ac_compile" | $SED \ | |
15238 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15239 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15240 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15241 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
15242 | (eval "$lt_compile" 2>conftest.err) |
15243 | ac_status=$? | |
15244 | cat conftest.err >&5 | |
ee134472 | 15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
15246 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15247 | # The compiler can only warn and ignore the option if not recognized | |
15248 | # So say no if there are warnings other than the usual output. | |
ee134472 | 15249 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
15250 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15251 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15252 | lt_cv_prog_compiler_pic_works_CXX=yes | |
15253 | fi | |
15254 | fi | |
00a96142 | 15255 | $RM -r conftest* |
9c60689e DWT |
15256 | |
15257 | fi | |
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
15259 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
15260 | ||
9d54db95 | 15261 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
9c60689e DWT |
15262 | case $lt_prog_compiler_pic_CXX in |
15263 | "" | " "*) ;; | |
15264 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
15265 | esac | |
15266 | else | |
15267 | lt_prog_compiler_pic_CXX= | |
15268 | lt_prog_compiler_can_build_shared_CXX=no | |
15269 | fi | |
15270 | ||
15271 | fi | |
15272 | ||
15273 | ||
15274 | ||
ee134472 JF |
15275 | |
15276 | ||
47aaa820 DWT |
15277 | # |
15278 | # Check to make sure the static flag actually works. | |
15279 | # | |
15280 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15282 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 15283 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
15284 | $as_echo_n "(cached) " >&6 |
15285 | else | |
15286 | lt_cv_prog_compiler_static_works_CXX=no | |
9d54db95 | 15287 | save_LDFLAGS=$LDFLAGS |
47aaa820 DWT |
15288 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15289 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15290 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15291 | # The linker can only warn and ignore the option if not recognized | |
15292 | # So say no if there are warnings | |
15293 | if test -s conftest.err; then | |
15294 | # Append any errors to the config.log. | |
15295 | cat conftest.err 1>&5 | |
ee134472 | 15296 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
15297 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15298 | if diff conftest.exp conftest.er2 >/dev/null; then | |
15299 | lt_cv_prog_compiler_static_works_CXX=yes | |
15300 | fi | |
15301 | else | |
15302 | lt_cv_prog_compiler_static_works_CXX=yes | |
15303 | fi | |
15304 | fi | |
15305 | $RM -r conftest* | |
9d54db95 | 15306 | LDFLAGS=$save_LDFLAGS |
47aaa820 DWT |
15307 | |
15308 | fi | |
15309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
15310 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
15311 | ||
9d54db95 | 15312 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
47aaa820 DWT |
15313 | : |
15314 | else | |
15315 | lt_prog_compiler_static_CXX= | |
15316 | fi | |
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15322 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 15323 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
15324 | $as_echo_n "(cached) " >&6 |
15325 | else | |
15326 | lt_cv_prog_compiler_c_o_CXX=no | |
15327 | $RM -r conftest 2>/dev/null | |
15328 | mkdir conftest | |
15329 | cd conftest | |
15330 | mkdir out | |
15331 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15332 | ||
15333 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15334 | # Insert the option either (1) after the last *FLAGS variable, or | |
15335 | # (2) before a word containing "conftest.", or (3) at the end. | |
15336 | # Note that $ac_compile itself does not contain backslashes and begins | |
15337 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15338 | lt_compile=`echo "$ac_compile" | $SED \ | |
15339 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15340 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15341 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15342 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
15343 | (eval "$lt_compile" 2>out/conftest.err) |
15344 | ac_status=$? | |
15345 | cat out/conftest.err >&5 | |
ee134472 | 15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
15347 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15348 | then | |
15349 | # The compiler can only warn and ignore the option if not recognized | |
15350 | # So say no if there are warnings | |
ee134472 | 15351 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
15352 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15353 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15354 | lt_cv_prog_compiler_c_o_CXX=yes | |
15355 | fi | |
15356 | fi | |
15357 | chmod u+w . 2>&5 | |
00a96142 | 15358 | $RM -r conftest* |
47aaa820 DWT |
15359 | # SGI C++ compiler will create directory out/ii_files/ for |
15360 | # template instantiation | |
15361 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15362 | $RM out/* && rmdir out | |
15363 | cd .. | |
15364 | $RM -r conftest | |
00a96142 | 15365 | $RM -r conftest* |
47aaa820 DWT |
15366 | |
15367 | fi | |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15369 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15370 | ||
15371 | ||
15372 | ||
15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15374 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 15375 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
15376 | $as_echo_n "(cached) " >&6 |
15377 | else | |
15378 | lt_cv_prog_compiler_c_o_CXX=no | |
15379 | $RM -r conftest 2>/dev/null | |
15380 | mkdir conftest | |
15381 | cd conftest | |
15382 | mkdir out | |
15383 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15384 | ||
15385 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15386 | # Insert the option either (1) after the last *FLAGS variable, or | |
15387 | # (2) before a word containing "conftest.", or (3) at the end. | |
15388 | # Note that $ac_compile itself does not contain backslashes and begins | |
15389 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15390 | lt_compile=`echo "$ac_compile" | $SED \ | |
15391 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15392 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15393 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15394 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
15395 | (eval "$lt_compile" 2>out/conftest.err) |
15396 | ac_status=$? | |
15397 | cat out/conftest.err >&5 | |
ee134472 | 15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
15399 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15400 | then | |
15401 | # The compiler can only warn and ignore the option if not recognized | |
15402 | # So say no if there are warnings | |
ee134472 | 15403 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
15404 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15405 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15406 | lt_cv_prog_compiler_c_o_CXX=yes | |
15407 | fi | |
15408 | fi | |
15409 | chmod u+w . 2>&5 | |
00a96142 | 15410 | $RM -r conftest* |
47aaa820 DWT |
15411 | # SGI C++ compiler will create directory out/ii_files/ for |
15412 | # template instantiation | |
15413 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15414 | $RM out/* && rmdir out | |
15415 | cd .. | |
15416 | $RM -r conftest | |
00a96142 | 15417 | $RM -r conftest* |
47aaa820 DWT |
15418 | |
15419 | fi | |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15421 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15422 | ||
15423 | ||
15424 | ||
15425 | ||
9d54db95 JF |
15426 | hard_links=nottested |
15427 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
47aaa820 DWT |
15428 | # do not overwrite the value of need_locks provided by the user |
15429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
15430 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
15431 | hard_links=yes | |
00a96142 | 15432 | $RM -r conftest* |
47aaa820 DWT |
15433 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
15434 | touch conftest.a | |
15435 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15436 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
15438 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
15439 | if test no = "$hard_links"; then |
15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
15441 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
47aaa820 DWT |
15442 | need_locks=warn |
15443 | fi | |
15444 | else | |
15445 | need_locks=no | |
15446 | fi | |
15447 | ||
15448 | ||
15449 | ||
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15451 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15452 | ||
15453 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 15454 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
15455 | case $host_os in |
15456 | aix[4-9]*) | |
15457 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
15458 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
15459 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
15460 | # weak defined symbols like other global defined symbols, whereas | |
15461 | # GNU nm marks them as "W". | |
15462 | # While the 'weak' keyword is ignored in the Export File, we need | |
15463 | # it in the Import File for the 'aix-soname' feature, so we have | |
15464 | # to replace the "-B" option with "-P" for AIX nm. | |
47aaa820 | 15465 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 15466 | export_symbols_cmds_CXX='$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' |
47aaa820 | 15467 | else |
9d54db95 | 15468 | export_symbols_cmds_CXX='`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' |
47aaa820 DWT |
15469 | fi |
15470 | ;; | |
15471 | pw32*) | |
9d54db95 | 15472 | export_symbols_cmds_CXX=$ltdll_cmds |
ee134472 | 15473 | ;; |
47aaa820 | 15474 | cygwin* | mingw* | cegcc*) |
ee134472 | 15475 | case $cc_basename in |
53ba6704 JF |
15476 | cl*) |
15477 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
15478 | ;; | |
ee134472 JF |
15479 | *) |
15480 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
15481 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
15482 | ;; | |
15483 | esac | |
15484 | ;; | |
47aaa820 DWT |
15485 | *) |
15486 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 15487 | ;; |
47aaa820 | 15488 | esac |
47aaa820 DWT |
15489 | |
15490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
15491 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 15492 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
47aaa820 DWT |
15493 | |
15494 | with_gnu_ld_CXX=$with_gnu_ld | |
15495 | ||
15496 | ||
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | # | |
15502 | # Do we need to explicitly link libc? | |
15503 | # | |
15504 | case "x$archive_cmds_need_lc_CXX" in | |
15505 | x|xyes) | |
15506 | # Assume -lc should be added | |
15507 | archive_cmds_need_lc_CXX=yes | |
15508 | ||
9d54db95 | 15509 | if test yes,yes = "$GCC,$enable_shared"; then |
47aaa820 DWT |
15510 | case $archive_cmds_CXX in |
15511 | *'~'*) | |
15512 | # FIXME: we may have to deal with multi-command sequences. | |
15513 | ;; | |
15514 | '$CC '*) | |
15515 | # Test whether the compiler implicitly links with -lc since on some | |
15516 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15517 | # to ld, don't add -lc before -lgcc. | |
15518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15519 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
15520 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
15521 | $as_echo_n "(cached) " >&6 | |
15522 | else | |
00a96142 | 15523 | $RM -r conftest* |
ee134472 | 15524 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 15525 | |
ee134472 | 15526 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
15527 | (eval $ac_compile) 2>&5 |
15528 | ac_status=$? | |
15529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15530 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
15531 | soname=conftest |
15532 | lib=conftest | |
15533 | libobjs=conftest.$ac_objext | |
15534 | deplibs= | |
15535 | wl=$lt_prog_compiler_wl_CXX | |
15536 | pic_flag=$lt_prog_compiler_pic_CXX | |
15537 | compiler_flags=-v | |
15538 | linker_flags=-v | |
15539 | verstring= | |
15540 | output_objdir=. | |
15541 | libname=conftest | |
15542 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15543 | allow_undefined_flag_CXX= | |
15544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
15545 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15546 | ac_status=$? | |
15547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15548 | test $ac_status = 0; } | |
ee134472 JF |
15549 | then |
15550 | lt_cv_archive_cmds_need_lc_CXX=no | |
15551 | else | |
15552 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15553 | fi | |
15554 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15555 | else | |
15556 | cat conftest.err 1>&5 | |
15557 | fi | |
00a96142 | 15558 | $RM -r conftest* |
ee134472 JF |
15559 | |
15560 | fi | |
15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15562 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15563 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
15564 | ;; |
15565 | esac | |
15566 | fi | |
15567 | ;; | |
15568 | esac | |
15569 | ||
15570 | ||
15571 | ||
15572 | ||
15573 | ||
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | ||
15601 | ||
15602 | ||
15603 | ||
15604 | ||
15605 | ||
15606 | ||
15607 | ||
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | ||
15614 | ||
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | ||
47aaa820 DWT |
15628 | |
15629 | ||
15630 | ||
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15632 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15633 | ||
15634 | library_names_spec= | |
15635 | libname_spec='lib$name' | |
15636 | soname_spec= | |
9d54db95 | 15637 | shrext_cmds=.so |
47aaa820 DWT |
15638 | postinstall_cmds= |
15639 | postuninstall_cmds= | |
15640 | finish_cmds= | |
15641 | finish_eval= | |
15642 | shlibpath_var= | |
15643 | shlibpath_overrides_runpath=unknown | |
15644 | version_type=none | |
15645 | dynamic_linker="$host_os ld.so" | |
15646 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15647 | need_lib_prefix=unknown | |
15648 | hardcode_into_libs=no | |
15649 | ||
15650 | # when you set need_version to no, make sure it does not cause -set_version | |
15651 | # flags to be left without arguments | |
15652 | need_version=unknown | |
15653 | ||
9d54db95 JF |
15654 | |
15655 | ||
47aaa820 DWT |
15656 | case $host_os in |
15657 | aix3*) | |
53ba6704 | 15658 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 15659 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
47aaa820 DWT |
15660 | shlibpath_var=LIBPATH |
15661 | ||
15662 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 15663 | soname_spec='$libname$release$shared_ext$major' |
47aaa820 DWT |
15664 | ;; |
15665 | ||
15666 | aix[4-9]*) | |
53ba6704 | 15667 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15668 | need_lib_prefix=no |
15669 | need_version=no | |
15670 | hardcode_into_libs=yes | |
9d54db95 | 15671 | if test ia64 = "$host_cpu"; then |
47aaa820 | 15672 | # AIX 5 supports IA64 |
9d54db95 | 15673 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
47aaa820 DWT |
15674 | shlibpath_var=LD_LIBRARY_PATH |
15675 | else | |
15676 | # With GCC up to 2.95.x, collect2 would create an import file | |
15677 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
15678 | # the line '#! .'. This would cause the generated library to |
15679 | # depend on '.', always an invalid library. This was fixed in | |
47aaa820 DWT |
15680 | # development snapshots of GCC prior to 3.0. |
15681 | case $host_os in | |
15682 | aix4 | aix4.[01] | aix4.[01].*) | |
15683 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15684 | echo ' yes ' | |
9d54db95 | 15685 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
47aaa820 DWT |
15686 | : |
15687 | else | |
15688 | can_build_shared=no | |
15689 | fi | |
15690 | ;; | |
15691 | esac | |
9d54db95 JF |
15692 | # Using Import Files as archive members, it is possible to support |
15693 | # filename-based versioning of shared library archives on AIX. While | |
15694 | # this would work for both with and without runtime linking, it will | |
15695 | # prevent static linking of such archives. So we do filename-based | |
15696 | # shared library versioning with .so extension only, which is used | |
15697 | # when both runtime linking and shared linking is enabled. | |
15698 | # Unfortunately, runtime linking may impact performance, so we do | |
15699 | # not want this to be the default eventually. Also, we use the | |
15700 | # versioned .so libs for executables only if there is the -brtl | |
15701 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
15702 | # To allow for filename-based versioning support, we need to create | |
15703 | # libNAME.so.V as an archive file, containing: | |
15704 | # *) an Import File, referring to the versioned filename of the | |
15705 | # archive as well as the shared archive member, telling the | |
15706 | # bitwidth (32 or 64) of that shared object, and providing the | |
15707 | # list of exported symbols of that shared object, eventually | |
15708 | # decorated with the 'weak' keyword | |
15709 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
15710 | # it being seen by the linker. | |
15711 | # At run time we better use the real file rather than another symlink, | |
15712 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
15713 | ||
15714 | case $with_aix_soname,$aix_use_runtimelinking in | |
15715 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
47aaa820 DWT |
15716 | # soname into executable. Probably we can add versioning support to |
15717 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
15718 | aix,yes) # traditional libtool |
15719 | dynamic_linker='AIX unversionable lib.so' | |
47aaa820 DWT |
15720 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15721 | # instead of lib<name>.a to let people know that these are not | |
15722 | # typical AIX shared libraries. | |
9d54db95 JF |
15723 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15724 | ;; | |
15725 | aix,no) # traditional AIX only | |
15726 | dynamic_linker='AIX lib.a(lib.so.V)' | |
47aaa820 DWT |
15727 | # We preserve .a as extension for shared libraries through AIX4.2 |
15728 | # and later when we are not doing run time linking. | |
9d54db95 JF |
15729 | library_names_spec='$libname$release.a $libname.a' |
15730 | soname_spec='$libname$release$shared_ext$major' | |
15731 | ;; | |
15732 | svr4,*) # full svr4 only | |
15733 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
15734 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15735 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15736 | shlibpath_overrides_runpath=yes | |
15737 | ;; | |
15738 | *,yes) # both, prefer svr4 | |
15739 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
15740 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15741 | # unpreferred sharedlib libNAME.a needs extra handling | |
15742 | 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"' | |
15743 | 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"' | |
15744 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15745 | shlibpath_overrides_runpath=yes | |
15746 | ;; | |
15747 | *,no) # both, prefer aix | |
15748 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
15749 | library_names_spec='$libname$release.a $libname.a' | |
15750 | soname_spec='$libname$release$shared_ext$major' | |
15751 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
15752 | 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)' | |
15753 | 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"' | |
15754 | ;; | |
15755 | esac | |
47aaa820 DWT |
15756 | shlibpath_var=LIBPATH |
15757 | fi | |
15758 | ;; | |
15759 | ||
15760 | amigaos*) | |
15761 | case $host_cpu in | |
15762 | powerpc) | |
15763 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15764 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 15765 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
15766 | ;; |
15767 | m68k) | |
15768 | library_names_spec='$libname.ixlibrary $libname.a' | |
15769 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 15770 | 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' |
47aaa820 DWT |
15771 | ;; |
15772 | esac | |
15773 | ;; | |
15774 | ||
15775 | beos*) | |
9d54db95 | 15776 | library_names_spec='$libname$shared_ext' |
47aaa820 DWT |
15777 | dynamic_linker="$host_os ld.so" |
15778 | shlibpath_var=LIBRARY_PATH | |
15779 | ;; | |
15780 | ||
15781 | bsdi[45]*) | |
53ba6704 | 15782 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 | 15783 | need_version=no |
9d54db95 JF |
15784 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15785 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15786 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15787 | shlibpath_var=LD_LIBRARY_PATH | |
15788 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15789 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15790 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15791 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15792 | # libtool to hard-code these into programs | |
15793 | ;; | |
9c60689e | 15794 | |
47aaa820 DWT |
15795 | cygwin* | mingw* | pw32* | cegcc*) |
15796 | version_type=windows | |
9d54db95 | 15797 | shrext_cmds=.dll |
47aaa820 DWT |
15798 | need_version=no |
15799 | need_lib_prefix=no | |
9c60689e | 15800 | |
ee134472 JF |
15801 | case $GCC,$cc_basename in |
15802 | yes,*) | |
15803 | # gcc | |
47aaa820 DWT |
15804 | library_names_spec='$libname.dll.a' |
15805 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
15806 | postinstall_cmds='base_file=`basename \$file`~ |
15807 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
47aaa820 DWT |
15808 | dldir=$destdir/`dirname \$dlpath`~ |
15809 | test -d \$dldir || mkdir -p \$dldir~ | |
15810 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15811 | chmod a+x \$dldir/$dlname~ | |
15812 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15813 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15814 | fi' | |
15815 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15816 | dlpath=$dir/\$dldll~ | |
15817 | $RM \$dlpath' | |
15818 | shlibpath_overrides_runpath=yes | |
9c60689e | 15819 | |
47aaa820 DWT |
15820 | case $host_os in |
15821 | cygwin*) | |
15822 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 15823 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
ee134472 | 15824 | |
47aaa820 DWT |
15825 | ;; |
15826 | mingw* | cegcc*) | |
15827 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 15828 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
15829 | ;; |
15830 | pw32*) | |
15831 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 15832 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
15833 | ;; |
15834 | esac | |
ee134472 JF |
15835 | dynamic_linker='Win32 ld.exe' |
15836 | ;; | |
15837 | ||
15838 | *,cl*) | |
15839 | # Native MSVC | |
15840 | libname_spec='$name' | |
9d54db95 JF |
15841 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
15842 | library_names_spec='$libname.dll.lib' | |
ee134472 JF |
15843 | |
15844 | case $build_os in | |
15845 | mingw*) | |
15846 | sys_lib_search_path_spec= | |
15847 | lt_save_ifs=$IFS | |
15848 | IFS=';' | |
15849 | for lt_path in $LIB | |
15850 | do | |
15851 | IFS=$lt_save_ifs | |
15852 | # Let DOS variable expansion print the short 8.3 style file name. | |
15853 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15854 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15855 | done | |
15856 | IFS=$lt_save_ifs | |
15857 | # Convert to MSYS style. | |
15858 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15859 | ;; | |
15860 | cygwin*) | |
15861 | # Convert to unix form, then to dos form, then back to unix form | |
15862 | # but this time dos style (no spaces!) so that the unix form looks | |
15863 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15864 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15865 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15866 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15867 | ;; | |
15868 | *) | |
9d54db95 | 15869 | sys_lib_search_path_spec=$LIB |
ee134472 JF |
15870 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
15871 | # It is most probably a Windows format PATH. | |
15872 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15873 | else | |
15874 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15875 | fi | |
15876 | # FIXME: find the short name or the path components, as spaces are | |
15877 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15878 | ;; | |
15879 | esac | |
15880 | ||
15881 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
15882 | postinstall_cmds='base_file=`basename \$file`~ |
15883 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
ee134472 JF |
15884 | dldir=$destdir/`dirname \$dlpath`~ |
15885 | test -d \$dldir || mkdir -p \$dldir~ | |
15886 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15887 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15888 | dlpath=$dir/\$dldll~ | |
15889 | $RM \$dlpath' | |
15890 | shlibpath_overrides_runpath=yes | |
15891 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15892 | ;; |
9c60689e | 15893 | |
47aaa820 | 15894 | *) |
ee134472 | 15895 | # Assume MSVC wrapper |
9d54db95 | 15896 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
ee134472 | 15897 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15898 | ;; |
15899 | esac | |
47aaa820 DWT |
15900 | # FIXME: first we should search . and the directory the executable is in |
15901 | shlibpath_var=PATH | |
15902 | ;; | |
9c60689e | 15903 | |
47aaa820 DWT |
15904 | darwin* | rhapsody*) |
15905 | dynamic_linker="$host_os dyld" | |
15906 | version_type=darwin | |
15907 | need_lib_prefix=no | |
15908 | need_version=no | |
9d54db95 JF |
15909 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
15910 | soname_spec='$libname$release$major$shared_ext' | |
47aaa820 DWT |
15911 | shlibpath_overrides_runpath=yes |
15912 | shlibpath_var=DYLD_LIBRARY_PATH | |
15913 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15914 | |
47aaa820 DWT |
15915 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15916 | ;; | |
9c60689e | 15917 | |
47aaa820 | 15918 | dgux*) |
53ba6704 | 15919 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15920 | need_lib_prefix=no |
15921 | need_version=no | |
9d54db95 JF |
15922 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15923 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15924 | shlibpath_var=LD_LIBRARY_PATH |
15925 | ;; | |
9c60689e | 15926 | |
47aaa820 DWT |
15927 | freebsd* | dragonfly*) |
15928 | # DragonFly does not have aout. When/if they implement a new | |
15929 | # versioning mechanism, adjust this. | |
15930 | if test -x /usr/bin/objformat; then | |
15931 | objformat=`/usr/bin/objformat` | |
15932 | else | |
15933 | case $host_os in | |
53ba6704 | 15934 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15935 | *) objformat=elf ;; |
15936 | esac | |
15937 | fi | |
15938 | version_type=freebsd-$objformat | |
15939 | case $version_type in | |
15940 | freebsd-elf*) | |
9d54db95 JF |
15941 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15942 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15943 | need_version=no |
15944 | need_lib_prefix=no | |
15945 | ;; | |
15946 | freebsd-*) | |
9d54db95 | 15947 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
15948 | need_version=yes |
15949 | ;; | |
15950 | esac | |
15951 | shlibpath_var=LD_LIBRARY_PATH | |
15952 | case $host_os in | |
53ba6704 | 15953 | freebsd2.*) |
47aaa820 DWT |
15954 | shlibpath_overrides_runpath=yes |
15955 | ;; | |
15956 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15957 | shlibpath_overrides_runpath=yes | |
15958 | hardcode_into_libs=yes | |
15959 | ;; | |
15960 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15961 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15962 | shlibpath_overrides_runpath=no | |
15963 | hardcode_into_libs=yes | |
15964 | ;; | |
15965 | *) # from 4.6 on, and DragonFly | |
15966 | shlibpath_overrides_runpath=yes | |
15967 | hardcode_into_libs=yes | |
15968 | ;; | |
15969 | esac | |
15970 | ;; | |
9c60689e | 15971 | |
ee134472 | 15972 | haiku*) |
53ba6704 | 15973 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15974 | need_lib_prefix=no |
15975 | need_version=no | |
15976 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
15977 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15978 | soname_spec='$libname$release$shared_ext$major' | |
ee134472 | 15979 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 15980 | shlibpath_overrides_runpath=no |
ee134472 | 15981 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
47aaa820 DWT |
15982 | hardcode_into_libs=yes |
15983 | ;; | |
9c60689e | 15984 | |
47aaa820 DWT |
15985 | hpux9* | hpux10* | hpux11*) |
15986 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15987 | # link against other versions. | |
15988 | version_type=sunos | |
15989 | need_lib_prefix=no | |
15990 | need_version=no | |
15991 | case $host_cpu in | |
15992 | ia64*) | |
15993 | shrext_cmds='.so' | |
15994 | hardcode_into_libs=yes | |
15995 | dynamic_linker="$host_os dld.so" | |
15996 | shlibpath_var=LD_LIBRARY_PATH | |
15997 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
15998 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15999 | soname_spec='$libname$release$shared_ext$major' | |
16000 | if test 32 = "$HPUX_IA64_MODE"; then | |
47aaa820 | 16001 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 16002 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
47aaa820 DWT |
16003 | else |
16004 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 16005 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
47aaa820 | 16006 | fi |
47aaa820 DWT |
16007 | ;; |
16008 | hppa*64*) | |
16009 | shrext_cmds='.sl' | |
16010 | hardcode_into_libs=yes | |
16011 | dynamic_linker="$host_os dld.sl" | |
16012 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16013 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
16014 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16015 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16016 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
16017 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16018 | ;; | |
16019 | *) | |
16020 | shrext_cmds='.sl' | |
16021 | dynamic_linker="$host_os dld.sl" | |
16022 | shlibpath_var=SHLIB_PATH | |
16023 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
16024 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16025 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16026 | ;; |
16027 | esac | |
ee134472 | 16028 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 16029 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
16030 | # or fails outright, so override atomically: |
16031 | install_override_mode=555 | |
47aaa820 | 16032 | ;; |
9c60689e | 16033 | |
47aaa820 | 16034 | interix[3-9]*) |
53ba6704 | 16035 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16036 | need_lib_prefix=no |
16037 | need_version=no | |
9d54db95 JF |
16038 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16039 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16040 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
16041 | shlibpath_var=LD_LIBRARY_PATH | |
16042 | shlibpath_overrides_runpath=no | |
16043 | hardcode_into_libs=yes | |
16044 | ;; | |
9c60689e | 16045 | |
47aaa820 DWT |
16046 | irix5* | irix6* | nonstopux*) |
16047 | case $host_os in | |
16048 | nonstopux*) version_type=nonstopux ;; | |
16049 | *) | |
9d54db95 | 16050 | if test yes = "$lt_cv_prog_gnu_ld"; then |
53ba6704 | 16051 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16052 | else |
16053 | version_type=irix | |
16054 | fi ;; | |
16055 | esac | |
16056 | need_lib_prefix=no | |
16057 | need_version=no | |
9d54db95 JF |
16058 | soname_spec='$libname$release$shared_ext$major' |
16059 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
47aaa820 DWT |
16060 | case $host_os in |
16061 | irix5* | nonstopux*) | |
16062 | libsuff= shlibsuff= | |
16063 | ;; | |
16064 | *) | |
16065 | case $LD in # libtool.m4 will add one of these switches to LD | |
16066 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
16067 | libsuff= shlibsuff= libmagic=32-bit;; | |
16068 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
16069 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
16070 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
16071 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
16072 | *) libsuff= shlibsuff= libmagic=never-match;; | |
16073 | esac | |
16074 | ;; | |
16075 | esac | |
16076 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
16077 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
16078 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
16079 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
47aaa820 DWT |
16080 | hardcode_into_libs=yes |
16081 | ;; | |
9c60689e | 16082 | |
47aaa820 DWT |
16083 | # No shared lib support for Linux oldld, aout, or coff. |
16084 | linux*oldld* | linux*aout* | linux*coff*) | |
16085 | dynamic_linker=no | |
16086 | ;; | |
9c60689e | 16087 | |
9d54db95 JF |
16088 | linux*android*) |
16089 | version_type=none # Android doesn't support versioned libraries. | |
16090 | need_lib_prefix=no | |
16091 | need_version=no | |
16092 | library_names_spec='$libname$release$shared_ext' | |
16093 | soname_spec='$libname$release$shared_ext' | |
16094 | finish_cmds= | |
16095 | shlibpath_var=LD_LIBRARY_PATH | |
16096 | shlibpath_overrides_runpath=yes | |
16097 | ||
16098 | # This implies no fast_install, which is unacceptable. | |
16099 | # Some rework will be needed to allow for fast_install | |
16100 | # before this can be enabled. | |
16101 | hardcode_into_libs=yes | |
16102 | ||
16103 | dynamic_linker='Android linker' | |
16104 | # Don't embed -rpath directories since the linker doesn't support them. | |
16105 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
16106 | ;; | |
16107 | ||
53ba6704 | 16108 | # This must be glibc/ELF. |
9d54db95 | 16109 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
53ba6704 | 16110 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16111 | need_lib_prefix=no |
16112 | need_version=no | |
9d54db95 JF |
16113 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16114 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16115 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
16116 | shlibpath_var=LD_LIBRARY_PATH | |
16117 | shlibpath_overrides_runpath=no | |
ee134472 | 16118 | |
47aaa820 | 16119 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
16120 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
16121 | $as_echo_n "(cached) " >&6 | |
16122 | else | |
16123 | lt_cv_shlibpath_overrides_runpath=no | |
16124 | save_LDFLAGS=$LDFLAGS | |
16125 | save_libdir=$libdir | |
16126 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
16127 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
16128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 16129 | /* end confdefs.h. */ |
9c60689e | 16130 | |
47aaa820 DWT |
16131 | int |
16132 | main () | |
16133 | { | |
9c60689e | 16134 | |
47aaa820 DWT |
16135 | ; |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16140 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 16141 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 16142 | fi |
47aaa820 DWT |
16143 | fi |
16144 | rm -f core conftest.err conftest.$ac_objext \ | |
16145 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
16146 | LDFLAGS=$save_LDFLAGS |
16147 | libdir=$save_libdir | |
16148 | ||
16149 | fi | |
16150 | ||
16151 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 16152 | |
47aaa820 DWT |
16153 | # This implies no fast_install, which is unacceptable. |
16154 | # Some rework will be needed to allow for fast_install | |
16155 | # before this can be enabled. | |
16156 | hardcode_into_libs=yes | |
9c60689e | 16157 | |
9d54db95 JF |
16158 | # Ideally, we could use ldconfig to report *all* directores which are |
16159 | # searched for libraries, however this is still not possible. Aside from not | |
16160 | # being certain /sbin/ldconfig is available, command | |
16161 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
16162 | # even though it is searched at run-time. Try to do the best guess by | |
16163 | # appending ld.so.conf contents (and includes) to the search path. | |
47aaa820 | 16164 | if test -f /etc/ld.so.conf; then |
ee134472 | 16165 | 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' ' '` |
47aaa820 DWT |
16166 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
16167 | fi | |
9c60689e | 16168 | |
47aaa820 DWT |
16169 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16170 | # powerpc, because MkLinux only supported shared libraries with the | |
16171 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16172 | # most powerpc-linux boxes support dynamic linking these days and | |
16173 | # people can always --disable-shared, the test was removed, and we | |
16174 | # assume the GNU/Linux dynamic linker is in use. | |
16175 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 16176 | ;; |
47aaa820 | 16177 | |
47aaa820 DWT |
16178 | netbsd*) |
16179 | version_type=sunos | |
16180 | need_lib_prefix=no | |
16181 | need_version=no | |
16182 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 16183 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
16184 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16185 | dynamic_linker='NetBSD (a.out) ld.so' | |
16186 | else | |
9d54db95 JF |
16187 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16188 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16189 | dynamic_linker='NetBSD ld.elf_so' |
16190 | fi | |
16191 | shlibpath_var=LD_LIBRARY_PATH | |
16192 | shlibpath_overrides_runpath=yes | |
16193 | hardcode_into_libs=yes | |
9c60689e | 16194 | ;; |
9c60689e | 16195 | |
47aaa820 | 16196 | newsos6) |
53ba6704 | 16197 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 16198 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
16199 | shlibpath_var=LD_LIBRARY_PATH |
16200 | shlibpath_overrides_runpath=yes | |
16201 | ;; | |
9c60689e | 16202 | |
47aaa820 DWT |
16203 | *nto* | *qnx*) |
16204 | version_type=qnx | |
16205 | need_lib_prefix=no | |
16206 | need_version=no | |
9d54db95 JF |
16207 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16208 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16209 | shlibpath_var=LD_LIBRARY_PATH |
16210 | shlibpath_overrides_runpath=no | |
16211 | hardcode_into_libs=yes | |
16212 | dynamic_linker='ldqnx.so' | |
16213 | ;; | |
9c60689e | 16214 | |
9d54db95 | 16215 | openbsd* | bitrig*) |
47aaa820 | 16216 | version_type=sunos |
9d54db95 | 16217 | sys_lib_dlsearch_path_spec=/usr/lib |
47aaa820 | 16218 | need_lib_prefix=no |
9d54db95 JF |
16219 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
16220 | need_version=no | |
47aaa820 | 16221 | else |
9d54db95 | 16222 | need_version=yes |
47aaa820 | 16223 | fi |
9d54db95 JF |
16224 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
16225 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16226 | shlibpath_var=LD_LIBRARY_PATH | |
16227 | shlibpath_overrides_runpath=yes | |
47aaa820 | 16228 | ;; |
9c60689e | 16229 | |
47aaa820 DWT |
16230 | os2*) |
16231 | libname_spec='$name' | |
9d54db95 JF |
16232 | version_type=windows |
16233 | shrext_cmds=.dll | |
16234 | need_version=no | |
47aaa820 | 16235 | need_lib_prefix=no |
9d54db95 JF |
16236 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
16237 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
16238 | v=$($ECHO $release$versuffix | tr -d .-); | |
16239 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
16240 | $ECHO $n$v`$shared_ext' | |
16241 | library_names_spec='${libname}_dll.$libext' | |
47aaa820 | 16242 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
16243 | shlibpath_var=BEGINLIBPATH |
16244 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16245 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16246 | postinstall_cmds='base_file=`basename \$file`~ | |
16247 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
16248 | dldir=$destdir/`dirname \$dlpath`~ | |
16249 | test -d \$dldir || mkdir -p \$dldir~ | |
16250 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
16251 | chmod a+x \$dldir/$dlname~ | |
16252 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
16253 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
16254 | fi' | |
16255 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
16256 | dlpath=$dir/\$dldll~ | |
16257 | $RM \$dlpath' | |
47aaa820 | 16258 | ;; |
9c60689e | 16259 | |
47aaa820 DWT |
16260 | osf3* | osf4* | osf5*) |
16261 | version_type=osf | |
16262 | need_lib_prefix=no | |
16263 | need_version=no | |
9d54db95 JF |
16264 | soname_spec='$libname$release$shared_ext$major' |
16265 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
47aaa820 DWT |
16266 | shlibpath_var=LD_LIBRARY_PATH |
16267 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 16268 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
47aaa820 | 16269 | ;; |
9c60689e | 16270 | |
47aaa820 DWT |
16271 | rdos*) |
16272 | dynamic_linker=no | |
16273 | ;; | |
9c60689e | 16274 | |
47aaa820 | 16275 | solaris*) |
53ba6704 | 16276 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16277 | need_lib_prefix=no |
16278 | need_version=no | |
9d54db95 JF |
16279 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16280 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16281 | shlibpath_var=LD_LIBRARY_PATH |
16282 | shlibpath_overrides_runpath=yes | |
16283 | hardcode_into_libs=yes | |
16284 | # ldd complains unless libraries are executable | |
16285 | postinstall_cmds='chmod +x $lib' | |
16286 | ;; | |
9c60689e | 16287 | |
47aaa820 DWT |
16288 | sunos4*) |
16289 | version_type=sunos | |
9d54db95 | 16290 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
16291 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
16292 | shlibpath_var=LD_LIBRARY_PATH | |
16293 | shlibpath_overrides_runpath=yes | |
9d54db95 | 16294 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
16295 | need_lib_prefix=no |
16296 | fi | |
16297 | need_version=yes | |
16298 | ;; | |
9c60689e | 16299 | |
47aaa820 | 16300 | sysv4 | sysv4.3*) |
53ba6704 | 16301 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16302 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16303 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16304 | shlibpath_var=LD_LIBRARY_PATH |
16305 | case $host_vendor in | |
16306 | sni) | |
16307 | shlibpath_overrides_runpath=no | |
16308 | need_lib_prefix=no | |
16309 | runpath_var=LD_RUN_PATH | |
9c60689e | 16310 | ;; |
47aaa820 DWT |
16311 | siemens) |
16312 | need_lib_prefix=no | |
9c60689e | 16313 | ;; |
47aaa820 DWT |
16314 | motorola) |
16315 | need_lib_prefix=no | |
16316 | need_version=no | |
16317 | shlibpath_overrides_runpath=no | |
16318 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16319 | ;; | |
16320 | esac | |
9c60689e | 16321 | ;; |
9c60689e | 16322 | |
47aaa820 | 16323 | sysv4*MP*) |
9d54db95 | 16324 | if test -d /usr/nec; then |
53ba6704 | 16325 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16326 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
16327 | soname_spec='$libname$shared_ext.$major' | |
47aaa820 DWT |
16328 | shlibpath_var=LD_LIBRARY_PATH |
16329 | fi | |
16330 | ;; | |
9c60689e | 16331 | |
47aaa820 | 16332 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 16333 | version_type=sco |
47aaa820 DWT |
16334 | need_lib_prefix=no |
16335 | need_version=no | |
9d54db95 JF |
16336 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
16337 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16338 | shlibpath_var=LD_LIBRARY_PATH |
16339 | shlibpath_overrides_runpath=yes | |
16340 | hardcode_into_libs=yes | |
9d54db95 | 16341 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
16342 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
16343 | else | |
16344 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16345 | case $host_os in | |
16346 | sco3.2v5*) | |
16347 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16348 | ;; | |
16349 | esac | |
16350 | fi | |
16351 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16352 | ;; | |
9c60689e | 16353 | |
47aaa820 DWT |
16354 | tpf*) |
16355 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 16356 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16357 | need_lib_prefix=no |
16358 | need_version=no | |
9d54db95 | 16359 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
16360 | shlibpath_var=LD_LIBRARY_PATH |
16361 | shlibpath_overrides_runpath=no | |
16362 | hardcode_into_libs=yes | |
16363 | ;; | |
9c60689e | 16364 | |
47aaa820 | 16365 | uts4*) |
53ba6704 | 16366 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16367 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16368 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16369 | shlibpath_var=LD_LIBRARY_PATH |
16370 | ;; | |
9c60689e | 16371 | |
47aaa820 DWT |
16372 | *) |
16373 | dynamic_linker=no | |
e9c9a47c DWT |
16374 | ;; |
16375 | esac | |
16376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
16377 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 16378 | test no = "$dynamic_linker" && can_build_shared=no |
e9c9a47c DWT |
16379 | |
16380 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9d54db95 | 16381 | if test yes = "$GCC"; then |
e9c9a47c | 16382 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
47aaa820 | 16383 | fi |
9c60689e | 16384 | |
9d54db95 JF |
16385 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
16386 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
47aaa820 | 16387 | fi |
9d54db95 JF |
16388 | |
16389 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
16390 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
47aaa820 | 16391 | fi |
9c60689e | 16392 | |
9d54db95 JF |
16393 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
16394 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
16395 | ||
16396 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
16397 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
16398 | ||
16399 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
16400 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
16401 | ||
16402 | ||
16403 | ||
9c60689e | 16404 | |
9c60689e | 16405 | |
9c60689e | 16406 | |
47aaa820 | 16407 | |
47aaa820 | 16408 | |
47aaa820 | 16409 | |
9c60689e | 16410 | |
9c60689e | 16411 | |
47aaa820 | 16412 | |
47aaa820 | 16413 | |
47aaa820 | 16414 | |
47aaa820 | 16415 | |
47aaa820 | 16416 | |
47aaa820 | 16417 | |
47aaa820 | 16418 | |
47aaa820 | 16419 | |
9c60689e | 16420 | |
9c60689e | 16421 | |
9c60689e | 16422 | |
9c60689e | 16423 | |
9c60689e | 16424 | |
e9c9a47c DWT |
16425 | |
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | ||
16435 | ||
ee134472 JF |
16436 | |
16437 | ||
e9c9a47c DWT |
16438 | |
16439 | ||
16440 | ||
16441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
16442 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
16443 | hardcode_action_CXX= | |
16444 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16445 | test -n "$runpath_var_CXX" || | |
9d54db95 | 16446 | test yes = "$hardcode_automatic_CXX"; then |
e9c9a47c DWT |
16447 | |
16448 | # We can hardcode non-existent directories. | |
9d54db95 | 16449 | if test no != "$hardcode_direct_CXX" && |
e9c9a47c DWT |
16450 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16451 | # have to relink, otherwise we might link with an installed library | |
16452 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
16453 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
16454 | test no != "$hardcode_minus_L_CXX"; then | |
e9c9a47c DWT |
16455 | # Linking always hardcodes the temporary library directory. |
16456 | hardcode_action_CXX=relink | |
16457 | else | |
16458 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16459 | hardcode_action_CXX=immediate | |
16460 | fi | |
16461 | else | |
16462 | # We cannot hardcode anything, or else we can only hardcode existing | |
16463 | # directories. | |
16464 | hardcode_action_CXX=unsupported | |
16465 | fi | |
16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
16467 | $as_echo "$hardcode_action_CXX" >&6; } | |
16468 | ||
9d54db95 JF |
16469 | if test relink = "$hardcode_action_CXX" || |
16470 | test yes = "$inherit_rpath_CXX"; then | |
e9c9a47c DWT |
16471 | # Fast installation is not supported |
16472 | enable_fast_install=no | |
9d54db95 JF |
16473 | elif test yes = "$shlibpath_overrides_runpath" || |
16474 | test no = "$enable_shared"; then | |
e9c9a47c DWT |
16475 | # Fast installation is not necessary |
16476 | enable_fast_install=needless | |
47aaa820 | 16477 | fi |
9c60689e | 16478 | |
47aaa820 | 16479 | |
47aaa820 | 16480 | |
e9c9a47c DWT |
16481 | |
16482 | ||
16483 | ||
16484 | ||
a243b558 JF |
16485 | fi # test -n "$compiler" |
16486 | ||
16487 | CC=$lt_save_CC | |
16488 | CFLAGS=$lt_save_CFLAGS | |
16489 | LDCXX=$LD | |
16490 | LD=$lt_save_LD | |
16491 | GCC=$lt_save_GCC | |
16492 | with_gnu_ld=$lt_save_with_gnu_ld | |
16493 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16494 | lt_cv_path_LD=$lt_save_path_LD | |
16495 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16496 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
9d54db95 | 16497 | fi # test yes != "$_lt_caught_CXX_error" |
a243b558 JF |
16498 | |
16499 | ac_ext=c | |
16500 | ac_cpp='$CPP $CPPFLAGS' | |
16501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16504 | ||
16505 | ||
16506 | ||
16507 | ||
16508 | ||
16509 | ||
16510 | ||
16511 | ||
16512 | ||
16513 | ||
16514 | ||
16515 | ||
16516 | ||
16517 | ||
16518 | ||
16519 | ac_config_commands="$ac_config_commands libtool" | |
16520 | ||
16521 | ||
16522 | ||
16523 | ||
16524 | # Only expand once: | |
16525 | ||
16526 | ||
16527 | ||
16528 | ac_ext=cpp | |
16529 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16533 | ||
16534 | ||
1771224f JF |
16535 | ax_cxx_compile_cxx11_required=true |
16536 | ac_ext=cpp | |
16537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16541 | ac_success=no | |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
16543 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
16544 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
16545 | $as_echo_n "(cached) " >&6 | |
16546 | else | |
16547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16548 | /* end confdefs.h. */ | |
16549 | ||
16550 | template <typename T> | |
16551 | struct check | |
16552 | { | |
16553 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16554 | }; | |
16555 | ||
16556 | struct Base { | |
16557 | virtual void f() {} | |
16558 | }; | |
16559 | struct Child : public Base { | |
16560 | virtual void f() override {} | |
16561 | }; | |
16562 | ||
16563 | typedef check<check<bool>> right_angle_brackets; | |
16564 | ||
16565 | int a; | |
16566 | decltype(a) b; | |
16567 | ||
16568 | typedef check<int> check_type; | |
16569 | check_type c; | |
16570 | check_type&& cr = static_cast<check_type&&>(c); | |
16571 | ||
16572 | auto d = a; | |
16573 | auto l = [](){}; | |
16574 | ||
16575 | _ACEOF | |
16576 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16577 | ax_cv_cxx_compile_cxx11=yes | |
16578 | else | |
16579 | ax_cv_cxx_compile_cxx11=no | |
16580 | fi | |
16581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16582 | fi | |
16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
16584 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
16585 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
16586 | ac_success=yes | |
16587 | fi | |
16588 | ||
16589 | if test x$ac_success = xno; then | |
16590 | for switch in -std=gnu++11 -std=gnu++0x; do | |
16591 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
16593 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
16594 | if eval \${$cachevar+:} false; then : | |
16595 | $as_echo_n "(cached) " >&6 | |
16596 | else | |
16597 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16598 | CXXFLAGS="$CXXFLAGS $switch" | |
16599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16600 | /* end confdefs.h. */ | |
16601 | ||
16602 | template <typename T> | |
16603 | struct check | |
16604 | { | |
16605 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16606 | }; | |
16607 | ||
16608 | struct Base { | |
16609 | virtual void f() {} | |
16610 | }; | |
16611 | struct Child : public Base { | |
16612 | virtual void f() override {} | |
16613 | }; | |
16614 | ||
16615 | typedef check<check<bool>> right_angle_brackets; | |
16616 | ||
16617 | int a; | |
16618 | decltype(a) b; | |
16619 | ||
16620 | typedef check<int> check_type; | |
16621 | check_type c; | |
16622 | check_type&& cr = static_cast<check_type&&>(c); | |
16623 | ||
16624 | auto d = a; | |
16625 | auto l = [](){}; | |
16626 | ||
16627 | _ACEOF | |
16628 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16629 | eval $cachevar=yes | |
16630 | else | |
16631 | eval $cachevar=no | |
16632 | fi | |
16633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16634 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16635 | fi | |
16636 | eval ac_res=\$$cachevar | |
16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16638 | $as_echo "$ac_res" >&6; } | |
16639 | if eval test x\$$cachevar = xyes; then | |
16640 | CXXFLAGS="$CXXFLAGS $switch" | |
16641 | ac_success=yes | |
16642 | break | |
16643 | fi | |
16644 | done | |
16645 | fi | |
16646 | ||
16647 | ||
16648 | ac_ext=cpp | |
16649 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16650 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16651 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16652 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16653 | ||
16654 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
16655 | if test x$ac_success = xno; then | |
16656 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
16657 | fi | |
16658 | else | |
16659 | if test x$ac_success = xno; then | |
16660 | HAVE_CXX11=0 | |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
16662 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
16663 | else | |
16664 | HAVE_CXX11=1 | |
16665 | ||
16666 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
16667 | ||
16668 | fi | |
16669 | ||
16670 | ||
16671 | fi | |
16672 | ||
16673 | OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}" | |
16674 | ||
a243b558 JF |
16675 | |
16676 | ||
16677 | ||
16678 | ||
16679 | ||
16680 | ||
83c6fec8 | 16681 | |
a243b558 JF |
16682 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
16683 | if test -n "$ac_tool_prefix"; then | |
16684 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
16685 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
16686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16687 | $as_echo_n "checking for $ac_word... " >&6; } | |
16688 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
16689 | $as_echo_n "(cached) " >&6 | |
16690 | else | |
16691 | case $PKG_CONFIG in | |
16692 | [\\/]* | ?:[\\/]*) | |
16693 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
16694 | ;; | |
16695 | *) | |
16696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16697 | for as_dir in $PATH | |
16698 | do | |
16699 | IFS=$as_save_IFS | |
16700 | test -z "$as_dir" && as_dir=. | |
16701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16703 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16705 | break 2 | |
16706 | fi | |
16707 | done | |
16708 | done | |
16709 | IFS=$as_save_IFS | |
16710 | ||
16711 | ;; | |
16712 | esac | |
16713 | fi | |
16714 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16715 | if test -n "$PKG_CONFIG"; then | |
16716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16717 | $as_echo "$PKG_CONFIG" >&6; } | |
16718 | else | |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16720 | $as_echo "no" >&6; } | |
16721 | fi | |
16722 | ||
16723 | ||
16724 | fi | |
16725 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16726 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16727 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16728 | set dummy pkg-config; ac_word=$2 | |
16729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16730 | $as_echo_n "checking for $ac_word... " >&6; } | |
16731 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
16732 | $as_echo_n "(cached) " >&6 | |
16733 | else | |
16734 | case $ac_pt_PKG_CONFIG in | |
16735 | [\\/]* | ?:[\\/]*) | |
16736 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16737 | ;; | |
16738 | *) | |
16739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16740 | for as_dir in $PATH | |
16741 | do | |
16742 | IFS=$as_save_IFS | |
16743 | test -z "$as_dir" && as_dir=. | |
16744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16746 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16748 | break 2 | |
16749 | fi | |
16750 | done | |
16751 | done | |
16752 | IFS=$as_save_IFS | |
16753 | ||
16754 | ;; | |
16755 | esac | |
16756 | fi | |
16757 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16758 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16760 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16761 | else | |
16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16763 | $as_echo "no" >&6; } | |
16764 | fi | |
16765 | ||
16766 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16767 | PKG_CONFIG="" | |
16768 | else | |
16769 | case $cross_compiling:$ac_tool_warned in | |
16770 | yes:) | |
16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16773 | ac_tool_warned=yes ;; | |
16774 | esac | |
16775 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16776 | fi | |
16777 | else | |
16778 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16779 | fi | |
16780 | ||
16781 | fi | |
16782 | if test -n "$PKG_CONFIG"; then | |
16783 | _pkg_min_version=0.22 | |
16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16785 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16786 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16788 | $as_echo "yes" >&6; } | |
16789 | else | |
16790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16791 | $as_echo "no" >&6; } | |
16792 | PKG_CONFIG="" | |
16793 | fi | |
16794 | fi | |
16795 | ||
a243b558 JF |
16796 | # Extract the first word of "git", so it can be a program name with args. |
16797 | set dummy git; ac_word=$2 | |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16799 | $as_echo_n "checking for $ac_word... " >&6; } | |
16800 | if ${ac_cv_path_GIT+:} false; then : | |
16801 | $as_echo_n "(cached) " >&6 | |
16802 | else | |
16803 | case $GIT in | |
16804 | [\\/]* | ?:[\\/]*) | |
16805 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
16806 | ;; | |
16807 | *) | |
16808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16809 | for as_dir in $PATH | |
16810 | do | |
16811 | IFS=$as_save_IFS | |
16812 | test -z "$as_dir" && as_dir=. | |
16813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16815 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
16816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16817 | break 2 | |
16818 | fi | |
16819 | done | |
16820 | done | |
16821 | IFS=$as_save_IFS | |
e9c9a47c | 16822 | |
a243b558 JF |
16823 | ;; |
16824 | esac | |
16825 | fi | |
16826 | GIT=$ac_cv_path_GIT | |
16827 | if test -n "$GIT"; then | |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16829 | $as_echo "$GIT" >&6; } | |
16830 | else | |
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16832 | $as_echo "no" >&6; } | |
16833 | fi | |
e9c9a47c DWT |
16834 | |
16835 | ||
a243b558 JF |
16836 | # Extract the first word of "time", so it can be a program name with args. |
16837 | set dummy time; ac_word=$2 | |
632b71ea DWT |
16838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16839 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 16840 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
16841 | $as_echo_n "(cached) " >&6 |
16842 | else | |
a243b558 JF |
16843 | case $TIME in |
16844 | [\\/]* | ?:[\\/]*) | |
16845 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16846 | ;; | |
16847 | *) | |
16848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
16849 | for as_dir in $PATH |
16850 | do | |
16851 | IFS=$as_save_IFS | |
16852 | test -z "$as_dir" && as_dir=. | |
16853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16855 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16857 | break 2 | |
16858 | fi | |
16859 | done | |
16860 | done | |
16861 | IFS=$as_save_IFS | |
16862 | ||
a243b558 JF |
16863 | ;; |
16864 | esac | |
632b71ea | 16865 | fi |
a243b558 JF |
16866 | TIME=$ac_cv_path_TIME |
16867 | if test -n "$TIME"; then | |
16868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16869 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16870 | else |
16871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16872 | $as_echo "no" >&6; } | |
16873 | fi | |
16874 | ||
16875 | ||
a243b558 JF |
16876 | |
16877 | ||
16878 | ||
16879 | ||
16880 | ||
6ce9ac92 JF |
16881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5 |
16882 | $as_echo_n "checking for bison >= 3.0... " >&6; } | |
a243b558 JF |
16883 | if test -z "$BISON"; then |
16884 | ac_path_BISON_found=false | |
16885 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16887 | for as_dir in $PATH | |
16888 | do | |
16889 | IFS=$as_save_IFS | |
16890 | test -z "$as_dir" && as_dir=. | |
16891 | for ac_prog in bison; do | |
16892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16893 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16894 | as_fn_executable_p "$ac_path_BISON" || continue | |
16895 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16896 | if ${version:+false} :; then : | |
16897 | ||
16898 | else | |
16899 | as_awk_strverscmp=' | |
16900 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16901 | # My, what an old awk you have, Mr. Solaris! | |
16902 | END { | |
16903 | while (length(v1) && length(v2)) { | |
16904 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16905 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16906 | # compare them as integers and fractions as strverscmp does. | |
16907 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16908 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16909 | # and advance v1 and v2 past the leading digit strings. | |
16910 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16911 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16912 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16913 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16914 | if (d1 ~ /^0/) { | |
16915 | if (d2 ~ /^0/) { | |
16916 | # Compare two fractions. | |
16917 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16918 | d1 = substr(d1, 2); len1-- | |
16919 | d2 = substr(d2, 2); len2-- | |
16920 | } | |
16921 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16922 | # The two components differ in length, and the common prefix | |
16923 | # contains only leading zeros. Consider the longer to be less. | |
16924 | d1 = -len1 | |
16925 | d2 = -len2 | |
16926 | } else { | |
16927 | # Otherwise, compare as strings. | |
16928 | d1 = "x" d1 | |
16929 | d2 = "x" d2 | |
16930 | } | |
16931 | } else { | |
16932 | # A fraction is less than an integer. | |
16933 | exit 1 | |
16934 | } | |
16935 | } else { | |
16936 | if (d2 ~ /^0/) { | |
16937 | # An integer is greater than a fraction. | |
16938 | exit 2 | |
16939 | } else { | |
16940 | # Compare two integers. | |
16941 | d1 += 0 | |
16942 | d2 += 0 | |
16943 | } | |
16944 | } | |
16945 | } else { | |
16946 | # The normal case, without worrying about digits. | |
16947 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16948 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16949 | } | |
16950 | if (d1 < d2) exit 1 | |
16951 | if (d1 > d2) exit 2 | |
16952 | } | |
16953 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16954 | # which mishandles some comparisons of empty strings to integers. | |
16955 | if (length(v2)) exit 1 | |
16956 | if (length(v1)) exit 2 | |
16957 | } | |
16958 | ' | |
16959 | as_arg_v1=$version | |
6ce9ac92 | 16960 | as_arg_v2=3.0 |
a243b558 JF |
16961 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
16962 | case $? in #( | |
16963 | 1) : | |
16964 | ;; #( | |
16965 | 0) : | |
16966 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16967 | 2) : | |
16968 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16969 | *) : | |
16970 | ;; | |
16971 | esac | |
16972 | fi | |
16973 | ||
16974 | $ac_path_BISON_found && break 3 | |
16975 | done | |
16976 | done | |
e9c9a47c | 16977 | done |
a243b558 JF |
16978 | IFS=$as_save_IFS |
16979 | if test -z "$ac_cv_path_BISON"; then | |
16980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16981 | $as_echo "no" >&6; } | |
16982 | fi | |
16983 | else | |
16984 | ac_cv_path_BISON=$BISON | |
632b71ea | 16985 | fi |
a243b558 JF |
16986 | |
16987 | ||
16988 | if true; then : | |
16989 | ||
16990 | BISON=$ac_cv_path_BISON | |
16991 | ||
16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16993 | $as_echo "$BISON" >&6; } | |
16994 | ||
47aaa820 | 16995 | else |
a243b558 JF |
16996 | if true; then : |
16997 | ||
6ce9ac92 | 16998 | as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5 |
a243b558 | 16999 | |
47aaa820 | 17000 | else |
a243b558 JF |
17001 | |
17002 | BISON=: | |
17003 | ||
17004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17005 | $as_echo "no" >&6; } | |
17006 | ||
17007 | fi | |
17008 | fi | |
17009 | ||
17010 | ||
17011 | ||
17012 | ||
17013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
17014 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
17015 | if test -z "$FLEX"; then | |
17016 | ac_path_FLEX_found=false | |
17017 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
17019 | for as_dir in $PATH |
17020 | do | |
17021 | IFS=$as_save_IFS | |
17022 | test -z "$as_dir" && as_dir=. | |
a243b558 | 17023 | for ac_prog in flex; do |
47aaa820 | 17024 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
17025 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
17026 | as_fn_executable_p "$ac_path_FLEX" || continue | |
17027 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
17028 | if ${version:+false} :; then : | |
9c60689e | 17029 | |
47aaa820 | 17030 | else |
a243b558 JF |
17031 | as_arg_v1=$version |
17032 | as_arg_v2=2.5.33 | |
17033 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17034 | case $? in #( | |
17035 | 1) : | |
17036 | ;; #( | |
17037 | 0) : | |
17038 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17039 | 2) : | |
17040 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17041 | *) : | |
17042 | ;; | |
17043 | esac | |
17044 | fi | |
17045 | ||
17046 | $ac_path_FLEX_found && break 3 | |
17047 | done | |
17048 | done | |
17049 | done | |
17050 | IFS=$as_save_IFS | |
17051 | if test -z "$ac_cv_path_FLEX"; then | |
17052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 17053 | $as_echo "no" >&6; } |
a243b558 JF |
17054 | fi |
17055 | else | |
17056 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
17057 | fi |
17058 | ||
17059 | ||
a243b558 | 17060 | if true; then : |
e9c9a47c | 17061 | |
a243b558 | 17062 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 17063 | |
a243b558 JF |
17064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
17065 | $as_echo "$FLEX" >&6; } | |
9c60689e | 17066 | |
632b71ea | 17067 | else |
a243b558 | 17068 | if true; then : |
e9c9a47c | 17069 | |
a243b558 | 17070 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 17071 | |
e9c9a47c | 17072 | else |
a243b558 JF |
17073 | |
17074 | FLEX=: | |
17075 | ||
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17077 | $as_echo "no" >&6; } | |
9c60689e | 17078 | |
632b71ea | 17079 | fi |
a243b558 JF |
17080 | fi |
17081 | ||
17082 | ||
17083 | ||
17084 | ||
17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
17086 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
17087 | if test -z "$GPERF"; then | |
17088 | ac_path_GPERF_found=false | |
17089 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17091 | for as_dir in $PATH | |
17092 | do | |
17093 | IFS=$as_save_IFS | |
17094 | test -z "$as_dir" && as_dir=. | |
17095 | for ac_prog in gperf; do | |
17096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17097 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
17098 | as_fn_executable_p "$ac_path_GPERF" || continue | |
17099 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
17100 | if ${version:+false} :; then : | |
17101 | ||
e9c9a47c | 17102 | else |
a243b558 JF |
17103 | as_arg_v1=$version |
17104 | as_arg_v2=3.0.3 | |
17105 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17106 | case $? in #( | |
17107 | 1) : | |
17108 | ;; #( | |
17109 | 0) : | |
17110 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17111 | 2) : | |
17112 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17113 | *) : | |
17114 | ;; | |
17115 | esac | |
632b71ea | 17116 | fi |
a243b558 JF |
17117 | |
17118 | $ac_path_GPERF_found && break 3 | |
17119 | done | |
17120 | done | |
17121 | done | |
17122 | IFS=$as_save_IFS | |
17123 | if test -z "$ac_cv_path_GPERF"; then | |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17125 | $as_echo "no" >&6; } | |
17126 | fi | |
47aaa820 | 17127 | else |
a243b558 JF |
17128 | ac_cv_path_GPERF=$GPERF |
17129 | fi | |
9c60689e DWT |
17130 | |
17131 | ||
a243b558 | 17132 | if true; then : |
9c60689e | 17133 | |
a243b558 | 17134 | GPERF=$ac_cv_path_GPERF |
9c60689e | 17135 | |
a243b558 JF |
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
17137 | $as_echo "$GPERF" >&6; } | |
9c60689e | 17138 | |
47aaa820 | 17139 | else |
a243b558 | 17140 | if true; then : |
9c60689e | 17141 | |
a243b558 JF |
17142 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
17143 | ||
17144 | else | |
17145 | ||
17146 | GPERF=: | |
17147 | ||
17148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17149 | $as_echo "no" >&6; } | |
9c60689e | 17150 | |
47aaa820 | 17151 | fi |
47aaa820 | 17152 | fi |
a243b558 JF |
17153 | |
17154 | ||
17155 | ||
17156 | ||
17157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
17158 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
17159 | if test -z "$GNUTAR"; then | |
17160 | ac_path_GNUTAR_found=false | |
17161 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17163 | for as_dir in $PATH | |
17164 | do | |
17165 | IFS=$as_save_IFS | |
17166 | test -z "$as_dir" && as_dir=. | |
17167 | for ac_prog in tar gtar gnutar; do | |
17168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17169 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
17170 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
17171 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
17172 | if ${version:+false} :; then : | |
17173 | ||
17174 | else | |
17175 | as_arg_v1=$version | |
17176 | as_arg_v2=1.19 | |
17177 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17178 | case $? in #( | |
17179 | 1) : | |
17180 | ;; #( | |
17181 | 0) : | |
17182 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17183 | 2) : | |
17184 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17185 | *) : | |
17186 | ;; | |
17187 | esac | |
790e5246 | 17188 | fi |
a243b558 JF |
17189 | |
17190 | $ac_path_GNUTAR_found && break 3 | |
17191 | done | |
17192 | done | |
17193 | done | |
17194 | IFS=$as_save_IFS | |
17195 | if test -z "$ac_cv_path_GNUTAR"; then | |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17197 | $as_echo "no" >&6; } | |
632b71ea | 17198 | fi |
632b71ea | 17199 | else |
a243b558 | 17200 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 17201 | fi |
66170b30 | 17202 | |
66170b30 | 17203 | |
a243b558 | 17204 | if true; then : |
66170b30 | 17205 | |
a243b558 | 17206 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 17207 | |
a243b558 JF |
17208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
17209 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 17210 | |
a243b558 JF |
17211 | else |
17212 | if true; then : | |
66170b30 | 17213 | |
a243b558 | 17214 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 17215 | |
66170b30 | 17216 | else |
66170b30 | 17217 | |
a243b558 | 17218 | GNUTAR=: |
66170b30 | 17219 | |
a243b558 JF |
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17221 | $as_echo "no" >&6; } | |
66170b30 | 17222 | |
a243b558 JF |
17223 | fi |
17224 | fi | |
66170b30 JF |
17225 | |
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
e9c9a47c DWT |
17235 | ac_ext=c |
17236 | ac_cpp='$CPP $CPPFLAGS' | |
17237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 17240 | |
66170b30 JF |
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
17242 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
17243 | if ${ac_cv_cflags_warn_all+:} false; then : | |
17244 | $as_echo_n "(cached) " >&6 | |
17245 | else | |
17246 | ac_cv_cflags_warn_all="no, unknown" | |
17247 | ac_save_CFLAGS="$CFLAGS" | |
17248 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17249 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17251 | /* end confdefs.h. */ | |
17252 | ||
17253 | int | |
17254 | main () | |
17255 | { | |
17256 | ||
17257 | ; | |
17258 | return 0; | |
17259 | } | |
17260 | _ACEOF | |
17261 | if ac_fn_c_try_compile "$LINENO"; then : | |
17262 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17263 | fi | |
17264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17265 | done | |
17266 | CFLAGS="$ac_save_CFLAGS" | |
17267 | ||
17268 | fi | |
17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
17270 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
17271 | ||
83c6fec8 | 17272 | |
66170b30 JF |
17273 | case ".$ac_cv_cflags_warn_all" in |
17274 | .ok|.ok,*) ;; | |
17275 | .|.no|.no,*) ;; | |
17276 | *) if ${CFLAGS+:} false; then : | |
17277 | case " $CFLAGS " in | |
17278 | *" $ac_cv_cflags_warn_all "*) | |
17279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
17280 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
17281 | ac_status=$? | |
17282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17283 | test $ac_status = 0; } | |
17284 | ;; | |
17285 | *) | |
17286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
17287 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
17288 | ac_status=$? | |
17289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17290 | test $ac_status = 0; } | |
17291 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
17292 | ;; | |
17293 | esac | |
17294 | else | |
17295 | CFLAGS="$ac_cv_cflags_warn_all" | |
17296 | fi | |
17297 | ;; | |
17298 | esac | |
17299 | ||
b816329d JF |
17300 | ac_ext=cpp |
17301 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17305 | ||
9c60689e | 17306 | |
66170b30 JF |
17307 | ac_ext=cpp |
17308 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17309 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17310 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17311 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 17312 | |
66170b30 JF |
17313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
17314 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17315 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17316 | $as_echo_n "(cached) " >&6 | |
17317 | else | |
17318 | ac_cv_cxxflags_warn_all="no, unknown" | |
17319 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17320 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17321 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17323 | /* end confdefs.h. */ | |
1504c9b8 | 17324 | |
66170b30 JF |
17325 | int |
17326 | main () | |
17327 | { | |
1504c9b8 | 17328 | |
66170b30 JF |
17329 | ; |
17330 | return 0; | |
17331 | } | |
17332 | _ACEOF | |
17333 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17334 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17335 | fi | |
17336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17337 | done | |
17338 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 17339 | |
66170b30 JF |
17340 | fi |
17341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17342 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17343 | ||
83c6fec8 | 17344 | |
66170b30 JF |
17345 | case ".$ac_cv_cxxflags_warn_all" in |
17346 | .ok|.ok,*) ;; | |
17347 | .|.no|.no,*) ;; | |
17348 | *) if ${CXXFLAGS+:} false; then : | |
17349 | case " $CXXFLAGS " in | |
17350 | *" $ac_cv_cxxflags_warn_all "*) | |
17351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17352 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17353 | ac_status=$? | |
17354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17355 | test $ac_status = 0; } | |
17356 | ;; | |
17357 | *) | |
17358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17359 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17360 | ac_status=$? | |
17361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17362 | test $ac_status = 0; } | |
17363 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17364 | ;; | |
17365 | esac | |
17366 | else | |
17367 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17368 | fi | |
17369 | ;; | |
17370 | esac | |
17371 | ||
17372 | ac_ext=cpp | |
17373 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17374 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17375 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17376 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17377 | ||
17378 | ||
babf7fe8 JF |
17379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
17380 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17381 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17382 | $as_echo_n "(cached) " >&6 | |
17383 | else | |
17384 | ac_cv_cxxflags_warn_all="no, unknown" | |
17385 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17386 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17387 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17389 | /* end confdefs.h. */ | |
17390 | ||
17391 | int | |
17392 | main () | |
17393 | { | |
17394 | ||
17395 | ; | |
17396 | return 0; | |
17397 | } | |
17398 | _ACEOF | |
17399 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17400 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17401 | fi | |
17402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17403 | done | |
17404 | CXXFLAGS="$ac_save_CXXFLAGS" | |
17405 | ||
17406 | fi | |
17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17408 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17409 | ||
83c6fec8 | 17410 | |
babf7fe8 JF |
17411 | case ".$ac_cv_cxxflags_warn_all" in |
17412 | .ok|.ok,*) ;; | |
17413 | .|.no|.no,*) ;; | |
17414 | *) if ${CXXFLAGS+:} false; then : | |
17415 | case " $CXXFLAGS " in | |
17416 | *" $ac_cv_cxxflags_warn_all "*) | |
17417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17418 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17419 | ac_status=$? | |
17420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17421 | test $ac_status = 0; } | |
17422 | ;; | |
17423 | *) | |
17424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17425 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17426 | ac_status=$? | |
17427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17428 | test $ac_status = 0; } | |
17429 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17430 | ;; | |
17431 | esac | |
17432 | else | |
17433 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17434 | fi | |
17435 | ;; | |
17436 | esac | |
17437 | ||
66170b30 JF |
17438 | |
17439 | ||
66170b30 | 17440 | |
66170b30 | 17441 | |
c10a2228 JF |
17442 | ac_ext=c |
17443 | ac_cpp='$CPP $CPPFLAGS' | |
17444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17447 | ||
babf7fe8 JF |
17448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
17449 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
17450 | |
17451 | cy_save=$CFLAGS | |
17452 | ||
babf7fe8 | 17453 | for element in -Werror; do |
c10a2228 JF |
17454 | haveit= |
17455 | for x in $CFLAGS; do | |
17456 | ||
17457 | acl_save_prefix="$prefix" | |
17458 | prefix="$acl_final_prefix" | |
17459 | acl_save_exec_prefix="$exec_prefix" | |
17460 | exec_prefix="$acl_final_exec_prefix" | |
17461 | eval x=\"$x\" | |
17462 | exec_prefix="$acl_save_exec_prefix" | |
17463 | prefix="$acl_save_prefix" | |
17464 | ||
17465 | if test "X$x" = "X$element"; then | |
17466 | haveit=yes | |
17467 | break | |
17468 | fi | |
17469 | done | |
17470 | if test -z "$haveit"; then | |
17471 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17472 | fi | |
17473 | done | |
17474 | ||
17475 | ||
17476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17477 | /* end confdefs.h. */ | |
17478 | ||
17479 | _ACEOF | |
17480 | if ac_fn_c_try_compile "$LINENO"; then : | |
17481 | cy_good=1 | |
17482 | else | |
17483 | cy_good=0 | |
17484 | fi | |
17485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17486 | ||
17487 | CFLAGS=$cy_save | |
17488 | if test "x$cy_good" = x1; then : | |
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17490 | $as_echo "yes" >&6; } | |
17491 | ||
babf7fe8 | 17492 | for element in -Werror; do |
c10a2228 JF |
17493 | haveit= |
17494 | for x in $CFLAGS; do | |
17495 | ||
17496 | acl_save_prefix="$prefix" | |
17497 | prefix="$acl_final_prefix" | |
17498 | acl_save_exec_prefix="$exec_prefix" | |
17499 | exec_prefix="$acl_final_exec_prefix" | |
17500 | eval x=\"$x\" | |
17501 | exec_prefix="$acl_save_exec_prefix" | |
17502 | prefix="$acl_save_prefix" | |
17503 | ||
17504 | if test "X$x" = "X$element"; then | |
17505 | haveit=yes | |
17506 | break | |
17507 | fi | |
17508 | done | |
17509 | if test -z "$haveit"; then | |
17510 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17511 | fi | |
17512 | done | |
17513 | ||
17514 | ||
17515 | else | |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17517 | $as_echo "no" >&6; } | |
17518 | fi | |
17519 | ||
17520 | ac_ext=cpp | |
17521 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17522 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17523 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17524 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17525 | ||
17526 | ||
17527 | ||
17528 | ac_ext=cpp | |
17529 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17533 | ||
babf7fe8 JF |
17534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
17535 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
17536 | |
17537 | cy_save=$CXXFLAGS | |
17538 | ||
babf7fe8 | 17539 | for element in -Werror; do |
c10a2228 JF |
17540 | haveit= |
17541 | for x in $CXXFLAGS; do | |
17542 | ||
17543 | acl_save_prefix="$prefix" | |
17544 | prefix="$acl_final_prefix" | |
17545 | acl_save_exec_prefix="$exec_prefix" | |
17546 | exec_prefix="$acl_final_exec_prefix" | |
17547 | eval x=\"$x\" | |
17548 | exec_prefix="$acl_save_exec_prefix" | |
17549 | prefix="$acl_save_prefix" | |
17550 | ||
17551 | if test "X$x" = "X$element"; then | |
17552 | haveit=yes | |
17553 | break | |
17554 | fi | |
17555 | done | |
17556 | if test -z "$haveit"; then | |
17557 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17558 | fi | |
17559 | done | |
17560 | ||
17561 | ||
17562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17563 | /* end confdefs.h. */ | |
17564 | ||
17565 | _ACEOF | |
17566 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17567 | cy_good=1 | |
17568 | else | |
17569 | cy_good=0 | |
17570 | fi | |
17571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17572 | ||
17573 | CXXFLAGS=$cy_save | |
17574 | if test "x$cy_good" = x1; then : | |
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17576 | $as_echo "yes" >&6; } | |
17577 | ||
babf7fe8 | 17578 | for element in -Werror; do |
c10a2228 JF |
17579 | haveit= |
17580 | for x in $CXXFLAGS; do | |
17581 | ||
17582 | acl_save_prefix="$prefix" | |
17583 | prefix="$acl_final_prefix" | |
17584 | acl_save_exec_prefix="$exec_prefix" | |
17585 | exec_prefix="$acl_final_exec_prefix" | |
17586 | eval x=\"$x\" | |
17587 | exec_prefix="$acl_save_exec_prefix" | |
17588 | prefix="$acl_save_prefix" | |
17589 | ||
17590 | if test "X$x" = "X$element"; then | |
17591 | haveit=yes | |
17592 | break | |
17593 | fi | |
17594 | done | |
17595 | if test -z "$haveit"; then | |
17596 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17597 | fi | |
17598 | done | |
17599 | ||
17600 | ||
17601 | else | |
17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17603 | $as_echo "no" >&6; } | |
17604 | fi | |
17605 | ||
17606 | ac_ext=cpp | |
17607 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17611 | ||
17612 | ||
17613 | ||
17614 | ac_ext=mm | |
17615 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17616 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17617 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17618 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17619 | ||
babf7fe8 JF |
17620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
17621 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
17622 | |
17623 | cy_save=$OBJCXXFLAGS | |
17624 | ||
babf7fe8 | 17625 | for element in -Werror; do |
c10a2228 JF |
17626 | haveit= |
17627 | for x in $OBJCXXFLAGS; do | |
17628 | ||
17629 | acl_save_prefix="$prefix" | |
17630 | prefix="$acl_final_prefix" | |
17631 | acl_save_exec_prefix="$exec_prefix" | |
17632 | exec_prefix="$acl_final_exec_prefix" | |
17633 | eval x=\"$x\" | |
17634 | exec_prefix="$acl_save_exec_prefix" | |
17635 | prefix="$acl_save_prefix" | |
17636 | ||
17637 | if test "X$x" = "X$element"; then | |
17638 | haveit=yes | |
17639 | break | |
17640 | fi | |
17641 | done | |
17642 | if test -z "$haveit"; then | |
17643 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17644 | fi | |
17645 | done | |
17646 | ||
17647 | ||
17648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17649 | /* end confdefs.h. */ | |
17650 | ||
17651 | _ACEOF | |
17652 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17653 | cy_good=1 | |
17654 | else | |
17655 | cy_good=0 | |
17656 | fi | |
17657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17658 | ||
17659 | OBJCXXFLAGS=$cy_save | |
17660 | if test "x$cy_good" = x1; then : | |
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17662 | $as_echo "yes" >&6; } | |
17663 | ||
babf7fe8 | 17664 | for element in -Werror; do |
c10a2228 JF |
17665 | haveit= |
17666 | for x in $OBJCXXFLAGS; do | |
17667 | ||
17668 | acl_save_prefix="$prefix" | |
17669 | prefix="$acl_final_prefix" | |
17670 | acl_save_exec_prefix="$exec_prefix" | |
17671 | exec_prefix="$acl_final_exec_prefix" | |
17672 | eval x=\"$x\" | |
17673 | exec_prefix="$acl_save_exec_prefix" | |
17674 | prefix="$acl_save_prefix" | |
17675 | ||
17676 | if test "X$x" = "X$element"; then | |
17677 | haveit=yes | |
17678 | break | |
17679 | fi | |
17680 | done | |
17681 | if test -z "$haveit"; then | |
17682 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17683 | fi | |
17684 | done | |
17685 | ||
17686 | ||
17687 | else | |
17688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17689 | $as_echo "no" >&6; } | |
17690 | fi | |
17691 | ||
17692 | ac_ext=cpp | |
17693 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17697 | ||
17698 | ||
17699 | ||
17700 | ||
17701 | ||
17702 | ||
17703 | ac_ext=c | |
17704 | ac_cpp='$CPP $CPPFLAGS' | |
17705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17708 | ||
babf7fe8 JF |
17709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
17710 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17711 | |
17712 | cy_save=$CFLAGS | |
17713 | ||
babf7fe8 | 17714 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17715 | haveit= |
17716 | for x in $CFLAGS; do | |
17717 | ||
17718 | acl_save_prefix="$prefix" | |
17719 | prefix="$acl_final_prefix" | |
17720 | acl_save_exec_prefix="$exec_prefix" | |
17721 | exec_prefix="$acl_final_exec_prefix" | |
17722 | eval x=\"$x\" | |
17723 | exec_prefix="$acl_save_exec_prefix" | |
17724 | prefix="$acl_save_prefix" | |
17725 | ||
17726 | if test "X$x" = "X$element"; then | |
17727 | haveit=yes | |
17728 | break | |
17729 | fi | |
17730 | done | |
17731 | if test -z "$haveit"; then | |
17732 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17733 | fi | |
17734 | done | |
17735 | ||
17736 | ||
17737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17738 | /* end confdefs.h. */ | |
17739 | ||
17740 | _ACEOF | |
17741 | if ac_fn_c_try_compile "$LINENO"; then : | |
17742 | cy_good=1 | |
17743 | else | |
17744 | cy_good=0 | |
17745 | fi | |
17746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17747 | ||
17748 | CFLAGS=$cy_save | |
17749 | if test "x$cy_good" = x1; then : | |
17750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17751 | $as_echo "yes" >&6; } | |
17752 | ||
babf7fe8 | 17753 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17754 | haveit= |
17755 | for x in $CFLAGS; do | |
17756 | ||
17757 | acl_save_prefix="$prefix" | |
17758 | prefix="$acl_final_prefix" | |
17759 | acl_save_exec_prefix="$exec_prefix" | |
17760 | exec_prefix="$acl_final_exec_prefix" | |
17761 | eval x=\"$x\" | |
17762 | exec_prefix="$acl_save_exec_prefix" | |
17763 | prefix="$acl_save_prefix" | |
17764 | ||
17765 | if test "X$x" = "X$element"; then | |
17766 | haveit=yes | |
17767 | break | |
17768 | fi | |
17769 | done | |
17770 | if test -z "$haveit"; then | |
17771 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17772 | fi | |
17773 | done | |
17774 | ||
17775 | ||
17776 | else | |
17777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17778 | $as_echo "no" >&6; } | |
17779 | fi | |
17780 | ||
17781 | ac_ext=cpp | |
17782 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17783 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17784 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17785 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17786 | ||
17787 | ||
17788 | ||
17789 | ac_ext=cpp | |
17790 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17791 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17792 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17793 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17794 | ||
babf7fe8 JF |
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
17796 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17797 | |
17798 | cy_save=$CXXFLAGS | |
17799 | ||
babf7fe8 | 17800 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17801 | haveit= |
17802 | for x in $CXXFLAGS; do | |
17803 | ||
17804 | acl_save_prefix="$prefix" | |
17805 | prefix="$acl_final_prefix" | |
17806 | acl_save_exec_prefix="$exec_prefix" | |
17807 | exec_prefix="$acl_final_exec_prefix" | |
17808 | eval x=\"$x\" | |
17809 | exec_prefix="$acl_save_exec_prefix" | |
17810 | prefix="$acl_save_prefix" | |
17811 | ||
17812 | if test "X$x" = "X$element"; then | |
17813 | haveit=yes | |
17814 | break | |
17815 | fi | |
17816 | done | |
17817 | if test -z "$haveit"; then | |
17818 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17819 | fi | |
17820 | done | |
17821 | ||
17822 | ||
17823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17824 | /* end confdefs.h. */ | |
17825 | ||
17826 | _ACEOF | |
17827 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17828 | cy_good=1 | |
17829 | else | |
17830 | cy_good=0 | |
17831 | fi | |
17832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17833 | ||
17834 | CXXFLAGS=$cy_save | |
17835 | if test "x$cy_good" = x1; then : | |
17836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17837 | $as_echo "yes" >&6; } | |
17838 | ||
babf7fe8 | 17839 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17840 | haveit= |
17841 | for x in $CXXFLAGS; do | |
17842 | ||
17843 | acl_save_prefix="$prefix" | |
17844 | prefix="$acl_final_prefix" | |
17845 | acl_save_exec_prefix="$exec_prefix" | |
17846 | exec_prefix="$acl_final_exec_prefix" | |
17847 | eval x=\"$x\" | |
17848 | exec_prefix="$acl_save_exec_prefix" | |
17849 | prefix="$acl_save_prefix" | |
17850 | ||
17851 | if test "X$x" = "X$element"; then | |
17852 | haveit=yes | |
17853 | break | |
17854 | fi | |
17855 | done | |
17856 | if test -z "$haveit"; then | |
17857 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17858 | fi | |
17859 | done | |
17860 | ||
17861 | ||
17862 | else | |
17863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17864 | $as_echo "no" >&6; } | |
17865 | fi | |
17866 | ||
17867 | ac_ext=cpp | |
17868 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17869 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17870 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17871 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17872 | ||
17873 | ||
17874 | ||
17875 | ac_ext=mm | |
17876 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17877 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17878 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17879 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17880 | ||
babf7fe8 JF |
17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
17882 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17883 | |
17884 | cy_save=$OBJCXXFLAGS | |
17885 | ||
babf7fe8 | 17886 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17887 | haveit= |
17888 | for x in $OBJCXXFLAGS; do | |
17889 | ||
17890 | acl_save_prefix="$prefix" | |
17891 | prefix="$acl_final_prefix" | |
17892 | acl_save_exec_prefix="$exec_prefix" | |
17893 | exec_prefix="$acl_final_exec_prefix" | |
17894 | eval x=\"$x\" | |
17895 | exec_prefix="$acl_save_exec_prefix" | |
17896 | prefix="$acl_save_prefix" | |
17897 | ||
17898 | if test "X$x" = "X$element"; then | |
17899 | haveit=yes | |
17900 | break | |
17901 | fi | |
17902 | done | |
17903 | if test -z "$haveit"; then | |
17904 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17905 | fi | |
17906 | done | |
17907 | ||
17908 | ||
17909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17910 | /* end confdefs.h. */ | |
17911 | ||
17912 | _ACEOF | |
17913 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17914 | cy_good=1 | |
17915 | else | |
17916 | cy_good=0 | |
17917 | fi | |
17918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17919 | ||
17920 | OBJCXXFLAGS=$cy_save | |
17921 | if test "x$cy_good" = x1; then : | |
17922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17923 | $as_echo "yes" >&6; } | |
17924 | ||
babf7fe8 | 17925 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17926 | haveit= |
17927 | for x in $OBJCXXFLAGS; do | |
17928 | ||
17929 | acl_save_prefix="$prefix" | |
17930 | prefix="$acl_final_prefix" | |
17931 | acl_save_exec_prefix="$exec_prefix" | |
17932 | exec_prefix="$acl_final_exec_prefix" | |
17933 | eval x=\"$x\" | |
17934 | exec_prefix="$acl_save_exec_prefix" | |
17935 | prefix="$acl_save_prefix" | |
17936 | ||
17937 | if test "X$x" = "X$element"; then | |
17938 | haveit=yes | |
17939 | break | |
17940 | fi | |
17941 | done | |
17942 | if test -z "$haveit"; then | |
17943 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17944 | fi | |
17945 | done | |
17946 | ||
17947 | ||
17948 | else | |
17949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17950 | $as_echo "no" >&6; } | |
17951 | fi | |
17952 | ||
17953 | ac_ext=cpp | |
17954 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17955 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17956 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17957 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17958 | ||
17959 | ||
17960 | ||
17961 | ||
17962 | ||
babf7fe8 | 17963 | |
c10a2228 JF |
17964 | ac_ext=c |
17965 | ac_cpp='$CPP $CPPFLAGS' | |
17966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17969 | ||
babf7fe8 JF |
17970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
17971 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17972 | |
17973 | cy_save=$CFLAGS | |
17974 | ||
babf7fe8 | 17975 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17976 | haveit= |
17977 | for x in $CFLAGS; do | |
17978 | ||
17979 | acl_save_prefix="$prefix" | |
17980 | prefix="$acl_final_prefix" | |
17981 | acl_save_exec_prefix="$exec_prefix" | |
17982 | exec_prefix="$acl_final_exec_prefix" | |
17983 | eval x=\"$x\" | |
17984 | exec_prefix="$acl_save_exec_prefix" | |
17985 | prefix="$acl_save_prefix" | |
17986 | ||
17987 | if test "X$x" = "X$element"; then | |
17988 | haveit=yes | |
17989 | break | |
17990 | fi | |
17991 | done | |
17992 | if test -z "$haveit"; then | |
17993 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17994 | fi | |
17995 | done | |
17996 | ||
17997 | ||
17998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17999 | /* end confdefs.h. */ | |
18000 | ||
18001 | _ACEOF | |
18002 | if ac_fn_c_try_compile "$LINENO"; then : | |
18003 | cy_good=1 | |
18004 | else | |
18005 | cy_good=0 | |
18006 | fi | |
18007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18008 | ||
18009 | CFLAGS=$cy_save | |
18010 | if test "x$cy_good" = x1; then : | |
18011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18012 | $as_echo "yes" >&6; } | |
18013 | ||
babf7fe8 | 18014 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18015 | haveit= |
18016 | for x in $CFLAGS; do | |
18017 | ||
18018 | acl_save_prefix="$prefix" | |
18019 | prefix="$acl_final_prefix" | |
18020 | acl_save_exec_prefix="$exec_prefix" | |
18021 | exec_prefix="$acl_final_exec_prefix" | |
18022 | eval x=\"$x\" | |
18023 | exec_prefix="$acl_save_exec_prefix" | |
18024 | prefix="$acl_save_prefix" | |
18025 | ||
18026 | if test "X$x" = "X$element"; then | |
18027 | haveit=yes | |
18028 | break | |
18029 | fi | |
18030 | done | |
18031 | if test -z "$haveit"; then | |
18032 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18033 | fi | |
18034 | done | |
18035 | ||
18036 | ||
18037 | else | |
18038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18039 | $as_echo "no" >&6; } | |
18040 | fi | |
18041 | ||
18042 | ac_ext=cpp | |
18043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18047 | ||
18048 | ||
18049 | ||
18050 | ac_ext=cpp | |
18051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18052 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18053 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18054 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18055 | ||
babf7fe8 JF |
18056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
18057 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
18058 | |
18059 | cy_save=$CXXFLAGS | |
18060 | ||
babf7fe8 | 18061 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18062 | haveit= |
18063 | for x in $CXXFLAGS; do | |
18064 | ||
18065 | acl_save_prefix="$prefix" | |
18066 | prefix="$acl_final_prefix" | |
18067 | acl_save_exec_prefix="$exec_prefix" | |
18068 | exec_prefix="$acl_final_exec_prefix" | |
18069 | eval x=\"$x\" | |
18070 | exec_prefix="$acl_save_exec_prefix" | |
18071 | prefix="$acl_save_prefix" | |
18072 | ||
18073 | if test "X$x" = "X$element"; then | |
18074 | haveit=yes | |
18075 | break | |
18076 | fi | |
18077 | done | |
18078 | if test -z "$haveit"; then | |
18079 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18080 | fi | |
18081 | done | |
18082 | ||
18083 | ||
18084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18085 | /* end confdefs.h. */ | |
18086 | ||
18087 | _ACEOF | |
18088 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18089 | cy_good=1 | |
18090 | else | |
18091 | cy_good=0 | |
18092 | fi | |
18093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18094 | ||
18095 | CXXFLAGS=$cy_save | |
18096 | if test "x$cy_good" = x1; then : | |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18098 | $as_echo "yes" >&6; } | |
18099 | ||
babf7fe8 | 18100 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18101 | haveit= |
18102 | for x in $CXXFLAGS; do | |
18103 | ||
18104 | acl_save_prefix="$prefix" | |
18105 | prefix="$acl_final_prefix" | |
18106 | acl_save_exec_prefix="$exec_prefix" | |
18107 | exec_prefix="$acl_final_exec_prefix" | |
18108 | eval x=\"$x\" | |
18109 | exec_prefix="$acl_save_exec_prefix" | |
18110 | prefix="$acl_save_prefix" | |
18111 | ||
18112 | if test "X$x" = "X$element"; then | |
18113 | haveit=yes | |
18114 | break | |
18115 | fi | |
18116 | done | |
18117 | if test -z "$haveit"; then | |
18118 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18119 | fi | |
18120 | done | |
18121 | ||
18122 | ||
18123 | else | |
18124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18125 | $as_echo "no" >&6; } | |
18126 | fi | |
18127 | ||
18128 | ac_ext=cpp | |
18129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18133 | ||
18134 | ||
18135 | ||
18136 | ac_ext=mm | |
18137 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18138 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18139 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18140 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18141 | ||
babf7fe8 JF |
18142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
18143 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
18144 | |
18145 | cy_save=$OBJCXXFLAGS | |
18146 | ||
babf7fe8 | 18147 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18148 | haveit= |
18149 | for x in $OBJCXXFLAGS; do | |
18150 | ||
18151 | acl_save_prefix="$prefix" | |
18152 | prefix="$acl_final_prefix" | |
18153 | acl_save_exec_prefix="$exec_prefix" | |
18154 | exec_prefix="$acl_final_exec_prefix" | |
18155 | eval x=\"$x\" | |
18156 | exec_prefix="$acl_save_exec_prefix" | |
18157 | prefix="$acl_save_prefix" | |
18158 | ||
18159 | if test "X$x" = "X$element"; then | |
18160 | haveit=yes | |
18161 | break | |
18162 | fi | |
18163 | done | |
18164 | if test -z "$haveit"; then | |
18165 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18166 | fi | |
18167 | done | |
18168 | ||
18169 | ||
18170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18171 | /* end confdefs.h. */ | |
18172 | ||
18173 | _ACEOF | |
18174 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18175 | cy_good=1 | |
18176 | else | |
18177 | cy_good=0 | |
18178 | fi | |
18179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18180 | ||
18181 | OBJCXXFLAGS=$cy_save | |
18182 | if test "x$cy_good" = x1; then : | |
18183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18184 | $as_echo "yes" >&6; } | |
18185 | ||
babf7fe8 | 18186 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18187 | haveit= |
18188 | for x in $OBJCXXFLAGS; do | |
18189 | ||
18190 | acl_save_prefix="$prefix" | |
18191 | prefix="$acl_final_prefix" | |
18192 | acl_save_exec_prefix="$exec_prefix" | |
18193 | exec_prefix="$acl_final_exec_prefix" | |
18194 | eval x=\"$x\" | |
18195 | exec_prefix="$acl_save_exec_prefix" | |
18196 | prefix="$acl_save_prefix" | |
18197 | ||
18198 | if test "X$x" = "X$element"; then | |
18199 | haveit=yes | |
18200 | break | |
18201 | fi | |
18202 | done | |
18203 | if test -z "$haveit"; then | |
18204 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18205 | fi | |
18206 | done | |
18207 | ||
18208 | ||
18209 | else | |
18210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18211 | $as_echo "no" >&6; } | |
18212 | fi | |
18213 | ||
18214 | ac_ext=cpp | |
18215 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18219 | ||
18220 | ||
18221 | ||
18222 | ||
18223 | ||
2ada0541 JF |
18224 | ac_ext=c |
18225 | ac_cpp='$CPP $CPPFLAGS' | |
18226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18229 | ||
18230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5 | |
18231 | $as_echo_n "checking for cc -Wno-empty-body... " >&6; } | |
18232 | ||
18233 | cy_save=$CFLAGS | |
18234 | ||
18235 | for element in -Wno-empty-body; do | |
18236 | haveit= | |
18237 | for x in $CFLAGS; do | |
18238 | ||
18239 | acl_save_prefix="$prefix" | |
18240 | prefix="$acl_final_prefix" | |
18241 | acl_save_exec_prefix="$exec_prefix" | |
18242 | exec_prefix="$acl_final_exec_prefix" | |
18243 | eval x=\"$x\" | |
18244 | exec_prefix="$acl_save_exec_prefix" | |
18245 | prefix="$acl_save_prefix" | |
18246 | ||
18247 | if test "X$x" = "X$element"; then | |
18248 | haveit=yes | |
18249 | break | |
18250 | fi | |
18251 | done | |
18252 | if test -z "$haveit"; then | |
18253 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18254 | fi | |
18255 | done | |
18256 | ||
18257 | ||
18258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18259 | /* end confdefs.h. */ | |
18260 | ||
18261 | _ACEOF | |
18262 | if ac_fn_c_try_compile "$LINENO"; then : | |
18263 | cy_good=1 | |
18264 | else | |
18265 | cy_good=0 | |
18266 | fi | |
18267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18268 | ||
18269 | CFLAGS=$cy_save | |
18270 | if test "x$cy_good" = x1; then : | |
18271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18272 | $as_echo "yes" >&6; } | |
18273 | ||
18274 | for element in -Wno-empty-body; do | |
18275 | haveit= | |
18276 | for x in $CFLAGS; do | |
18277 | ||
18278 | acl_save_prefix="$prefix" | |
18279 | prefix="$acl_final_prefix" | |
18280 | acl_save_exec_prefix="$exec_prefix" | |
18281 | exec_prefix="$acl_final_exec_prefix" | |
18282 | eval x=\"$x\" | |
18283 | exec_prefix="$acl_save_exec_prefix" | |
18284 | prefix="$acl_save_prefix" | |
18285 | ||
18286 | if test "X$x" = "X$element"; then | |
18287 | haveit=yes | |
18288 | break | |
18289 | fi | |
18290 | done | |
18291 | if test -z "$haveit"; then | |
18292 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18293 | fi | |
18294 | done | |
18295 | ||
18296 | ||
18297 | else | |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18299 | $as_echo "no" >&6; } | |
18300 | fi | |
18301 | ||
18302 | ac_ext=cpp | |
18303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18307 | ||
18308 | ||
18309 | ||
18310 | ac_ext=cpp | |
18311 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18312 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18313 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18314 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18315 | ||
18316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5 | |
18317 | $as_echo_n "checking for c++ -Wno-empty-body... " >&6; } | |
18318 | ||
18319 | cy_save=$CXXFLAGS | |
18320 | ||
18321 | for element in -Wno-empty-body; do | |
18322 | haveit= | |
18323 | for x in $CXXFLAGS; do | |
18324 | ||
18325 | acl_save_prefix="$prefix" | |
18326 | prefix="$acl_final_prefix" | |
18327 | acl_save_exec_prefix="$exec_prefix" | |
18328 | exec_prefix="$acl_final_exec_prefix" | |
18329 | eval x=\"$x\" | |
18330 | exec_prefix="$acl_save_exec_prefix" | |
18331 | prefix="$acl_save_prefix" | |
18332 | ||
18333 | if test "X$x" = "X$element"; then | |
18334 | haveit=yes | |
18335 | break | |
18336 | fi | |
18337 | done | |
18338 | if test -z "$haveit"; then | |
18339 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18340 | fi | |
18341 | done | |
18342 | ||
18343 | ||
18344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18345 | /* end confdefs.h. */ | |
18346 | ||
18347 | _ACEOF | |
18348 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18349 | cy_good=1 | |
18350 | else | |
18351 | cy_good=0 | |
18352 | fi | |
18353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18354 | ||
18355 | CXXFLAGS=$cy_save | |
18356 | if test "x$cy_good" = x1; then : | |
18357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18358 | $as_echo "yes" >&6; } | |
18359 | ||
18360 | for element in -Wno-empty-body; do | |
18361 | haveit= | |
18362 | for x in $CXXFLAGS; do | |
18363 | ||
18364 | acl_save_prefix="$prefix" | |
18365 | prefix="$acl_final_prefix" | |
18366 | acl_save_exec_prefix="$exec_prefix" | |
18367 | exec_prefix="$acl_final_exec_prefix" | |
18368 | eval x=\"$x\" | |
18369 | exec_prefix="$acl_save_exec_prefix" | |
18370 | prefix="$acl_save_prefix" | |
18371 | ||
18372 | if test "X$x" = "X$element"; then | |
18373 | haveit=yes | |
18374 | break | |
18375 | fi | |
18376 | done | |
18377 | if test -z "$haveit"; then | |
18378 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18379 | fi | |
18380 | done | |
18381 | ||
18382 | ||
18383 | else | |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18385 | $as_echo "no" >&6; } | |
18386 | fi | |
18387 | ||
18388 | ac_ext=cpp | |
18389 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18393 | ||
18394 | ||
18395 | ||
18396 | ac_ext=mm | |
18397 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18398 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18399 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18400 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18401 | ||
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5 | |
18403 | $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; } | |
18404 | ||
18405 | cy_save=$OBJCXXFLAGS | |
18406 | ||
18407 | for element in -Wno-empty-body; do | |
18408 | haveit= | |
18409 | for x in $OBJCXXFLAGS; do | |
18410 | ||
18411 | acl_save_prefix="$prefix" | |
18412 | prefix="$acl_final_prefix" | |
18413 | acl_save_exec_prefix="$exec_prefix" | |
18414 | exec_prefix="$acl_final_exec_prefix" | |
18415 | eval x=\"$x\" | |
18416 | exec_prefix="$acl_save_exec_prefix" | |
18417 | prefix="$acl_save_prefix" | |
18418 | ||
18419 | if test "X$x" = "X$element"; then | |
18420 | haveit=yes | |
18421 | break | |
18422 | fi | |
18423 | done | |
18424 | if test -z "$haveit"; then | |
18425 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18426 | fi | |
18427 | done | |
18428 | ||
18429 | ||
18430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18431 | /* end confdefs.h. */ | |
18432 | ||
18433 | _ACEOF | |
18434 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18435 | cy_good=1 | |
18436 | else | |
18437 | cy_good=0 | |
18438 | fi | |
18439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18440 | ||
18441 | OBJCXXFLAGS=$cy_save | |
18442 | if test "x$cy_good" = x1; then : | |
18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18444 | $as_echo "yes" >&6; } | |
18445 | ||
18446 | for element in -Wno-empty-body; do | |
18447 | haveit= | |
18448 | for x in $OBJCXXFLAGS; do | |
18449 | ||
18450 | acl_save_prefix="$prefix" | |
18451 | prefix="$acl_final_prefix" | |
18452 | acl_save_exec_prefix="$exec_prefix" | |
18453 | exec_prefix="$acl_final_exec_prefix" | |
18454 | eval x=\"$x\" | |
18455 | exec_prefix="$acl_save_exec_prefix" | |
18456 | prefix="$acl_save_prefix" | |
18457 | ||
18458 | if test "X$x" = "X$element"; then | |
18459 | haveit=yes | |
18460 | break | |
18461 | fi | |
18462 | done | |
18463 | if test -z "$haveit"; then | |
18464 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18465 | fi | |
18466 | done | |
18467 | ||
18468 | ||
18469 | else | |
18470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18471 | $as_echo "no" >&6; } | |
18472 | fi | |
18473 | ||
18474 | ac_ext=cpp | |
18475 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18476 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18477 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18478 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18479 | ||
18480 | ||
18481 | ||
18482 | ||
18483 | ||
c10a2228 JF |
18484 | ac_ext=c |
18485 | ac_cpp='$CPP $CPPFLAGS' | |
18486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18489 | ||
babf7fe8 JF |
18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
18491 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
18492 | |
18493 | cy_save=$CFLAGS | |
18494 | ||
babf7fe8 | 18495 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 18496 | haveit= |
c10a2228 | 18497 | for x in $CFLAGS; do |
1504c9b8 DWT |
18498 | |
18499 | acl_save_prefix="$prefix" | |
18500 | prefix="$acl_final_prefix" | |
18501 | acl_save_exec_prefix="$exec_prefix" | |
18502 | exec_prefix="$acl_final_exec_prefix" | |
18503 | eval x=\"$x\" | |
18504 | exec_prefix="$acl_save_exec_prefix" | |
18505 | prefix="$acl_save_prefix" | |
18506 | ||
18507 | if test "X$x" = "X$element"; then | |
18508 | haveit=yes | |
18509 | break | |
18510 | fi | |
18511 | done | |
18512 | if test -z "$haveit"; then | |
c10a2228 | 18513 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18514 | fi |
18515 | done | |
18516 | ||
66170b30 JF |
18517 | |
18518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
18519 | /* end confdefs.h. */ |
18520 | ||
66170b30 | 18521 | _ACEOF |
c10a2228 | 18522 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
18523 | cy_good=1 |
18524 | else | |
18525 | cy_good=0 | |
18526 | fi | |
18527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18528 | ||
c10a2228 | 18529 | CFLAGS=$cy_save |
66170b30 JF |
18530 | if test "x$cy_good" = x1; then : |
18531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18532 | $as_echo "yes" >&6; } | |
18533 | ||
babf7fe8 | 18534 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
18535 | haveit= |
18536 | for x in $CFLAGS; do | |
18537 | ||
18538 | acl_save_prefix="$prefix" | |
18539 | prefix="$acl_final_prefix" | |
18540 | acl_save_exec_prefix="$exec_prefix" | |
18541 | exec_prefix="$acl_final_exec_prefix" | |
18542 | eval x=\"$x\" | |
18543 | exec_prefix="$acl_save_exec_prefix" | |
18544 | prefix="$acl_save_prefix" | |
18545 | ||
18546 | if test "X$x" = "X$element"; then | |
18547 | haveit=yes | |
18548 | break | |
18549 | fi | |
18550 | done | |
18551 | if test -z "$haveit"; then | |
18552 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18553 | fi | |
18554 | done | |
18555 | ||
18556 | ||
c10a2228 JF |
18557 | else |
18558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18559 | $as_echo "no" >&6; } | |
18560 | fi | |
18561 | ||
18562 | ac_ext=cpp | |
18563 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18567 | ||
18568 | ||
18569 | ||
18570 | ac_ext=cpp | |
18571 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18572 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18573 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18574 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18575 | ||
babf7fe8 JF |
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
18577 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
18578 | |
18579 | cy_save=$CXXFLAGS | |
18580 | ||
babf7fe8 | 18581 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
18582 | haveit= |
18583 | for x in $CXXFLAGS; do | |
18584 | ||
18585 | acl_save_prefix="$prefix" | |
18586 | prefix="$acl_final_prefix" | |
18587 | acl_save_exec_prefix="$exec_prefix" | |
18588 | exec_prefix="$acl_final_exec_prefix" | |
18589 | eval x=\"$x\" | |
18590 | exec_prefix="$acl_save_exec_prefix" | |
18591 | prefix="$acl_save_prefix" | |
18592 | ||
18593 | if test "X$x" = "X$element"; then | |
18594 | haveit=yes | |
18595 | break | |
18596 | fi | |
18597 | done | |
18598 | if test -z "$haveit"; then | |
18599 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18600 | fi | |
18601 | done | |
18602 | ||
18603 | ||
c10a2228 JF |
18604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18605 | /* end confdefs.h. */ | |
18606 | ||
18607 | _ACEOF | |
18608 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18609 | cy_good=1 | |
18610 | else | |
18611 | cy_good=0 | |
18612 | fi | |
18613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18614 | ||
18615 | CXXFLAGS=$cy_save | |
18616 | if test "x$cy_good" = x1; then : | |
18617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18618 | $as_echo "yes" >&6; } | |
18619 | ||
babf7fe8 | 18620 | for element in -Wno-overloaded-virtual; do |
66170b30 | 18621 | haveit= |
c10a2228 | 18622 | for x in $CXXFLAGS; do |
66170b30 JF |
18623 | |
18624 | acl_save_prefix="$prefix" | |
18625 | prefix="$acl_final_prefix" | |
18626 | acl_save_exec_prefix="$exec_prefix" | |
18627 | exec_prefix="$acl_final_exec_prefix" | |
18628 | eval x=\"$x\" | |
18629 | exec_prefix="$acl_save_exec_prefix" | |
18630 | prefix="$acl_save_prefix" | |
18631 | ||
18632 | if test "X$x" = "X$element"; then | |
18633 | haveit=yes | |
18634 | break | |
18635 | fi | |
18636 | done | |
18637 | if test -z "$haveit"; then | |
c10a2228 | 18638 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
18639 | fi |
18640 | done | |
18641 | ||
18642 | ||
66170b30 JF |
18643 | else |
18644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18645 | $as_echo "no" >&6; } | |
18646 | fi | |
18647 | ||
c10a2228 JF |
18648 | ac_ext=cpp |
18649 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18650 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18651 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18652 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18653 | ||
66170b30 JF |
18654 | |
18655 | ||
c10a2228 JF |
18656 | ac_ext=mm |
18657 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18658 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18659 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18660 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18661 | ||
babf7fe8 JF |
18662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
18663 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 18664 | |
c10a2228 | 18665 | cy_save=$OBJCXXFLAGS |
66170b30 | 18666 | |
babf7fe8 | 18667 | for element in -Wno-overloaded-virtual; do |
66170b30 | 18668 | haveit= |
c10a2228 | 18669 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
18670 | |
18671 | acl_save_prefix="$prefix" | |
18672 | prefix="$acl_final_prefix" | |
18673 | acl_save_exec_prefix="$exec_prefix" | |
18674 | exec_prefix="$acl_final_exec_prefix" | |
18675 | eval x=\"$x\" | |
18676 | exec_prefix="$acl_save_exec_prefix" | |
18677 | prefix="$acl_save_prefix" | |
18678 | ||
18679 | if test "X$x" = "X$element"; then | |
18680 | haveit=yes | |
18681 | break | |
18682 | fi | |
18683 | done | |
18684 | if test -z "$haveit"; then | |
c10a2228 | 18685 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
18686 | fi |
18687 | done | |
18688 | ||
18689 | ||
18690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18691 | /* end confdefs.h. */ | |
1504c9b8 | 18692 | |
1504c9b8 | 18693 | _ACEOF |
c10a2228 | 18694 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
18695 | cy_good=1 |
18696 | else | |
18697 | cy_good=0 | |
18698 | fi | |
18699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18700 | ||
c10a2228 | 18701 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
18702 | if test "x$cy_good" = x1; then : |
18703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18704 | $as_echo "yes" >&6; } | |
1504c9b8 | 18705 | |
babf7fe8 | 18706 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 18707 | haveit= |
c10a2228 | 18708 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18709 | |
18710 | acl_save_prefix="$prefix" | |
18711 | prefix="$acl_final_prefix" | |
18712 | acl_save_exec_prefix="$exec_prefix" | |
18713 | exec_prefix="$acl_final_exec_prefix" | |
18714 | eval x=\"$x\" | |
18715 | exec_prefix="$acl_save_exec_prefix" | |
18716 | prefix="$acl_save_prefix" | |
18717 | ||
18718 | if test "X$x" = "X$element"; then | |
18719 | haveit=yes | |
18720 | break | |
18721 | fi | |
18722 | done | |
18723 | if test -z "$haveit"; then | |
c10a2228 | 18724 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18725 | fi |
18726 | done | |
18727 | ||
18728 | ||
c10a2228 JF |
18729 | else |
18730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18731 | $as_echo "no" >&6; } | |
18732 | fi | |
18733 | ||
18734 | ac_ext=cpp | |
18735 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18736 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18737 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18738 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18739 | ||
18740 | ||
18741 | ||
18742 | ||
18743 | ||
18744 | ac_ext=c | |
18745 | ac_cpp='$CPP $CPPFLAGS' | |
18746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18749 | ||
babf7fe8 JF |
18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
18751 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
18752 | |
18753 | cy_save=$CFLAGS | |
18754 | ||
babf7fe8 | 18755 | for element in -Wno-parentheses; do |
66170b30 | 18756 | haveit= |
c10a2228 | 18757 | for x in $CFLAGS; do |
66170b30 JF |
18758 | |
18759 | acl_save_prefix="$prefix" | |
18760 | prefix="$acl_final_prefix" | |
18761 | acl_save_exec_prefix="$exec_prefix" | |
18762 | exec_prefix="$acl_final_exec_prefix" | |
18763 | eval x=\"$x\" | |
18764 | exec_prefix="$acl_save_exec_prefix" | |
18765 | prefix="$acl_save_prefix" | |
18766 | ||
18767 | if test "X$x" = "X$element"; then | |
18768 | haveit=yes | |
18769 | break | |
18770 | fi | |
18771 | done | |
18772 | if test -z "$haveit"; then | |
c10a2228 | 18773 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
18774 | fi |
18775 | done | |
18776 | ||
18777 | ||
c10a2228 JF |
18778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18779 | /* end confdefs.h. */ | |
18780 | ||
18781 | _ACEOF | |
18782 | if ac_fn_c_try_compile "$LINENO"; then : | |
18783 | cy_good=1 | |
18784 | else | |
18785 | cy_good=0 | |
18786 | fi | |
18787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18788 | ||
18789 | CFLAGS=$cy_save | |
18790 | if test "x$cy_good" = x1; then : | |
18791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18792 | $as_echo "yes" >&6; } | |
18793 | ||
babf7fe8 | 18794 | for element in -Wno-parentheses; do |
66170b30 | 18795 | haveit= |
c10a2228 | 18796 | for x in $CFLAGS; do |
66170b30 JF |
18797 | |
18798 | acl_save_prefix="$prefix" | |
18799 | prefix="$acl_final_prefix" | |
18800 | acl_save_exec_prefix="$exec_prefix" | |
18801 | exec_prefix="$acl_final_exec_prefix" | |
18802 | eval x=\"$x\" | |
18803 | exec_prefix="$acl_save_exec_prefix" | |
18804 | prefix="$acl_save_prefix" | |
18805 | ||
18806 | if test "X$x" = "X$element"; then | |
18807 | haveit=yes | |
18808 | break | |
18809 | fi | |
18810 | done | |
18811 | if test -z "$haveit"; then | |
c10a2228 | 18812 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
18813 | fi |
18814 | done | |
18815 | ||
18816 | ||
66170b30 JF |
18817 | else |
18818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18819 | $as_echo "no" >&6; } | |
18820 | fi | |
18821 | ||
c10a2228 JF |
18822 | ac_ext=cpp |
18823 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18824 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18825 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18826 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18827 | ||
66170b30 JF |
18828 | |
18829 | ||
c10a2228 JF |
18830 | ac_ext=cpp |
18831 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18832 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18833 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18834 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18835 | ||
babf7fe8 JF |
18836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
18837 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
18838 | |
18839 | cy_save=$CXXFLAGS | |
18840 | ||
babf7fe8 | 18841 | for element in -Wno-parentheses; do |
66170b30 JF |
18842 | haveit= |
18843 | for x in $CXXFLAGS; do | |
18844 | ||
18845 | acl_save_prefix="$prefix" | |
18846 | prefix="$acl_final_prefix" | |
18847 | acl_save_exec_prefix="$exec_prefix" | |
18848 | exec_prefix="$acl_final_exec_prefix" | |
18849 | eval x=\"$x\" | |
18850 | exec_prefix="$acl_save_exec_prefix" | |
18851 | prefix="$acl_save_prefix" | |
18852 | ||
18853 | if test "X$x" = "X$element"; then | |
18854 | haveit=yes | |
18855 | break | |
18856 | fi | |
18857 | done | |
18858 | if test -z "$haveit"; then | |
18859 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18860 | fi | |
18861 | done | |
18862 | ||
18863 | ||
18864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18865 | /* end confdefs.h. */ | |
18866 | ||
18867 | _ACEOF | |
18868 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18869 | cy_good=1 | |
18870 | else | |
18871 | cy_good=0 | |
18872 | fi | |
18873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18874 | ||
18875 | CXXFLAGS=$cy_save | |
18876 | if test "x$cy_good" = x1; then : | |
18877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18878 | $as_echo "yes" >&6; } | |
18879 | ||
babf7fe8 | 18880 | for element in -Wno-parentheses; do |
1504c9b8 | 18881 | haveit= |
c10a2228 | 18882 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
18883 | |
18884 | acl_save_prefix="$prefix" | |
18885 | prefix="$acl_final_prefix" | |
18886 | acl_save_exec_prefix="$exec_prefix" | |
18887 | exec_prefix="$acl_final_exec_prefix" | |
18888 | eval x=\"$x\" | |
18889 | exec_prefix="$acl_save_exec_prefix" | |
18890 | prefix="$acl_save_prefix" | |
18891 | ||
18892 | if test "X$x" = "X$element"; then | |
18893 | haveit=yes | |
18894 | break | |
18895 | fi | |
18896 | done | |
18897 | if test -z "$haveit"; then | |
c10a2228 | 18898 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
18899 | fi |
18900 | done | |
18901 | ||
18902 | ||
c10a2228 JF |
18903 | else |
18904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18905 | $as_echo "no" >&6; } | |
18906 | fi | |
18907 | ||
18908 | ac_ext=cpp | |
18909 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18913 | ||
18914 | ||
18915 | ||
18916 | ac_ext=mm | |
18917 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18918 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18919 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18920 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18921 | ||
babf7fe8 JF |
18922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
18923 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
18924 | |
18925 | cy_save=$OBJCXXFLAGS | |
18926 | ||
babf7fe8 | 18927 | for element in -Wno-parentheses; do |
1504c9b8 | 18928 | haveit= |
c10a2228 | 18929 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18930 | |
18931 | acl_save_prefix="$prefix" | |
18932 | prefix="$acl_final_prefix" | |
18933 | acl_save_exec_prefix="$exec_prefix" | |
18934 | exec_prefix="$acl_final_exec_prefix" | |
18935 | eval x=\"$x\" | |
18936 | exec_prefix="$acl_save_exec_prefix" | |
18937 | prefix="$acl_save_prefix" | |
18938 | ||
18939 | if test "X$x" = "X$element"; then | |
18940 | haveit=yes | |
18941 | break | |
18942 | fi | |
18943 | done | |
18944 | if test -z "$haveit"; then | |
c10a2228 | 18945 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18946 | fi |
18947 | done | |
18948 | ||
18949 | ||
c10a2228 JF |
18950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18951 | /* end confdefs.h. */ | |
18952 | ||
18953 | _ACEOF | |
18954 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18955 | cy_good=1 | |
18956 | else | |
18957 | cy_good=0 | |
18958 | fi | |
18959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18960 | ||
18961 | OBJCXXFLAGS=$cy_save | |
18962 | if test "x$cy_good" = x1; then : | |
18963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18964 | $as_echo "yes" >&6; } | |
18965 | ||
babf7fe8 | 18966 | for element in -Wno-parentheses; do |
1504c9b8 | 18967 | haveit= |
c10a2228 | 18968 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18969 | |
18970 | acl_save_prefix="$prefix" | |
18971 | prefix="$acl_final_prefix" | |
18972 | acl_save_exec_prefix="$exec_prefix" | |
2ada0541 JF |
18973 | exec_prefix="$acl_final_exec_prefix" |
18974 | eval x=\"$x\" | |
18975 | exec_prefix="$acl_save_exec_prefix" | |
18976 | prefix="$acl_save_prefix" | |
18977 | ||
18978 | if test "X$x" = "X$element"; then | |
18979 | haveit=yes | |
18980 | break | |
18981 | fi | |
18982 | done | |
18983 | if test -z "$haveit"; then | |
18984 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18985 | fi | |
18986 | done | |
18987 | ||
18988 | ||
18989 | else | |
18990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18991 | $as_echo "no" >&6; } | |
18992 | fi | |
18993 | ||
18994 | ac_ext=cpp | |
18995 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18999 | ||
19000 | ||
19001 | ||
19002 | ||
19003 | ||
19004 | ac_ext=c | |
19005 | ac_cpp='$CPP $CPPFLAGS' | |
19006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19009 | ||
19010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5 | |
19011 | $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; } | |
19012 | ||
19013 | cy_save=$CFLAGS | |
19014 | ||
19015 | for element in -Wno-tautological-undefined-compare; do | |
19016 | haveit= | |
19017 | for x in $CFLAGS; do | |
19018 | ||
19019 | acl_save_prefix="$prefix" | |
19020 | prefix="$acl_final_prefix" | |
19021 | acl_save_exec_prefix="$exec_prefix" | |
19022 | exec_prefix="$acl_final_exec_prefix" | |
19023 | eval x=\"$x\" | |
19024 | exec_prefix="$acl_save_exec_prefix" | |
19025 | prefix="$acl_save_prefix" | |
19026 | ||
19027 | if test "X$x" = "X$element"; then | |
19028 | haveit=yes | |
19029 | break | |
19030 | fi | |
19031 | done | |
19032 | if test -z "$haveit"; then | |
19033 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19034 | fi | |
19035 | done | |
19036 | ||
19037 | ||
19038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19039 | /* end confdefs.h. */ | |
19040 | ||
19041 | _ACEOF | |
19042 | if ac_fn_c_try_compile "$LINENO"; then : | |
19043 | cy_good=1 | |
19044 | else | |
19045 | cy_good=0 | |
19046 | fi | |
19047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19048 | ||
19049 | CFLAGS=$cy_save | |
19050 | if test "x$cy_good" = x1; then : | |
19051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19052 | $as_echo "yes" >&6; } | |
19053 | ||
19054 | for element in -Wno-tautological-undefined-compare; do | |
19055 | haveit= | |
19056 | for x in $CFLAGS; do | |
19057 | ||
19058 | acl_save_prefix="$prefix" | |
19059 | prefix="$acl_final_prefix" | |
19060 | acl_save_exec_prefix="$exec_prefix" | |
19061 | exec_prefix="$acl_final_exec_prefix" | |
19062 | eval x=\"$x\" | |
19063 | exec_prefix="$acl_save_exec_prefix" | |
19064 | prefix="$acl_save_prefix" | |
19065 | ||
19066 | if test "X$x" = "X$element"; then | |
19067 | haveit=yes | |
19068 | break | |
19069 | fi | |
19070 | done | |
19071 | if test -z "$haveit"; then | |
19072 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19073 | fi | |
19074 | done | |
19075 | ||
19076 | ||
19077 | else | |
19078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19079 | $as_echo "no" >&6; } | |
19080 | fi | |
19081 | ||
19082 | ac_ext=cpp | |
19083 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19087 | ||
19088 | ||
19089 | ||
19090 | ac_ext=cpp | |
19091 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19095 | ||
19096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5 | |
19097 | $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; } | |
19098 | ||
19099 | cy_save=$CXXFLAGS | |
19100 | ||
19101 | for element in -Wno-tautological-undefined-compare; do | |
19102 | haveit= | |
19103 | for x in $CXXFLAGS; do | |
19104 | ||
19105 | acl_save_prefix="$prefix" | |
19106 | prefix="$acl_final_prefix" | |
19107 | acl_save_exec_prefix="$exec_prefix" | |
19108 | exec_prefix="$acl_final_exec_prefix" | |
19109 | eval x=\"$x\" | |
19110 | exec_prefix="$acl_save_exec_prefix" | |
19111 | prefix="$acl_save_prefix" | |
19112 | ||
19113 | if test "X$x" = "X$element"; then | |
19114 | haveit=yes | |
19115 | break | |
19116 | fi | |
19117 | done | |
19118 | if test -z "$haveit"; then | |
19119 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19120 | fi | |
19121 | done | |
19122 | ||
19123 | ||
19124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19125 | /* end confdefs.h. */ | |
19126 | ||
19127 | _ACEOF | |
19128 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19129 | cy_good=1 | |
19130 | else | |
19131 | cy_good=0 | |
19132 | fi | |
19133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19134 | ||
19135 | CXXFLAGS=$cy_save | |
19136 | if test "x$cy_good" = x1; then : | |
19137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19138 | $as_echo "yes" >&6; } | |
19139 | ||
19140 | for element in -Wno-tautological-undefined-compare; do | |
19141 | haveit= | |
19142 | for x in $CXXFLAGS; do | |
19143 | ||
19144 | acl_save_prefix="$prefix" | |
19145 | prefix="$acl_final_prefix" | |
19146 | acl_save_exec_prefix="$exec_prefix" | |
19147 | exec_prefix="$acl_final_exec_prefix" | |
19148 | eval x=\"$x\" | |
19149 | exec_prefix="$acl_save_exec_prefix" | |
19150 | prefix="$acl_save_prefix" | |
19151 | ||
19152 | if test "X$x" = "X$element"; then | |
19153 | haveit=yes | |
19154 | break | |
19155 | fi | |
19156 | done | |
19157 | if test -z "$haveit"; then | |
19158 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19159 | fi | |
19160 | done | |
19161 | ||
19162 | ||
19163 | else | |
19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19165 | $as_echo "no" >&6; } | |
19166 | fi | |
19167 | ||
19168 | ac_ext=cpp | |
19169 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19170 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19171 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19172 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19173 | ||
19174 | ||
19175 | ||
19176 | ac_ext=mm | |
19177 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19178 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19179 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19180 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19181 | ||
19182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5 | |
19183 | $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; } | |
19184 | ||
19185 | cy_save=$OBJCXXFLAGS | |
19186 | ||
19187 | for element in -Wno-tautological-undefined-compare; do | |
19188 | haveit= | |
19189 | for x in $OBJCXXFLAGS; do | |
19190 | ||
19191 | acl_save_prefix="$prefix" | |
19192 | prefix="$acl_final_prefix" | |
19193 | acl_save_exec_prefix="$exec_prefix" | |
19194 | exec_prefix="$acl_final_exec_prefix" | |
19195 | eval x=\"$x\" | |
19196 | exec_prefix="$acl_save_exec_prefix" | |
19197 | prefix="$acl_save_prefix" | |
19198 | ||
19199 | if test "X$x" = "X$element"; then | |
19200 | haveit=yes | |
19201 | break | |
19202 | fi | |
19203 | done | |
19204 | if test -z "$haveit"; then | |
19205 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19206 | fi | |
19207 | done | |
19208 | ||
19209 | ||
19210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19211 | /* end confdefs.h. */ | |
19212 | ||
19213 | _ACEOF | |
19214 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19215 | cy_good=1 | |
19216 | else | |
19217 | cy_good=0 | |
19218 | fi | |
19219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19220 | ||
19221 | OBJCXXFLAGS=$cy_save | |
19222 | if test "x$cy_good" = x1; then : | |
19223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19224 | $as_echo "yes" >&6; } | |
19225 | ||
19226 | for element in -Wno-tautological-undefined-compare; do | |
19227 | haveit= | |
19228 | for x in $OBJCXXFLAGS; do | |
19229 | ||
19230 | acl_save_prefix="$prefix" | |
19231 | prefix="$acl_final_prefix" | |
19232 | acl_save_exec_prefix="$exec_prefix" | |
1504c9b8 DWT |
19233 | exec_prefix="$acl_final_exec_prefix" |
19234 | eval x=\"$x\" | |
19235 | exec_prefix="$acl_save_exec_prefix" | |
19236 | prefix="$acl_save_prefix" | |
19237 | ||
19238 | if test "X$x" = "X$element"; then | |
19239 | haveit=yes | |
19240 | break | |
19241 | fi | |
19242 | done | |
19243 | if test -z "$haveit"; then | |
c10a2228 | 19244 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
19245 | fi |
19246 | done | |
19247 | ||
19248 | ||
66170b30 JF |
19249 | else |
19250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19251 | $as_echo "no" >&6; } | |
1504c9b8 | 19252 | fi |
1504c9b8 | 19253 | |
c10a2228 JF |
19254 | ac_ext=cpp |
19255 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19256 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19257 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19258 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19259 | ||
19260 | ||
1504c9b8 | 19261 | |
1504c9b8 | 19262 | |
1504c9b8 | 19263 | |
babf7fe8 JF |
19264 | ac_ext=c |
19265 | ac_cpp='$CPP $CPPFLAGS' | |
19266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 19269 | |
babf7fe8 JF |
19270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
19271 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
19272 | ||
19273 | cy_save=$CFLAGS | |
19274 | ||
19275 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 19276 | haveit= |
babf7fe8 | 19277 | for x in $CFLAGS; do |
1504c9b8 DWT |
19278 | |
19279 | acl_save_prefix="$prefix" | |
19280 | prefix="$acl_final_prefix" | |
19281 | acl_save_exec_prefix="$exec_prefix" | |
19282 | exec_prefix="$acl_final_exec_prefix" | |
19283 | eval x=\"$x\" | |
19284 | exec_prefix="$acl_save_exec_prefix" | |
19285 | prefix="$acl_save_prefix" | |
19286 | ||
19287 | if test "X$x" = "X$element"; then | |
19288 | haveit=yes | |
19289 | break | |
19290 | fi | |
19291 | done | |
19292 | if test -z "$haveit"; then | |
babf7fe8 | 19293 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
19294 | fi |
19295 | done | |
19296 | ||
66170b30 JF |
19297 | |
19298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
19299 | /* end confdefs.h. */ |
19300 | ||
a243b558 | 19301 | _ACEOF |
babf7fe8 | 19302 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
19303 | cy_good=1 |
19304 | else | |
19305 | cy_good=0 | |
19306 | fi | |
babf7fe8 | 19307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 19308 | |
babf7fe8 | 19309 | CFLAGS=$cy_save |
a243b558 JF |
19310 | if test "x$cy_good" = x1; then : |
19311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19312 | $as_echo "yes" >&6; } | |
66170b30 | 19313 | |
babf7fe8 | 19314 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 19315 | haveit= |
babf7fe8 | 19316 | for x in $CFLAGS; do |
1504c9b8 DWT |
19317 | |
19318 | acl_save_prefix="$prefix" | |
19319 | prefix="$acl_final_prefix" | |
19320 | acl_save_exec_prefix="$exec_prefix" | |
19321 | exec_prefix="$acl_final_exec_prefix" | |
19322 | eval x=\"$x\" | |
19323 | exec_prefix="$acl_save_exec_prefix" | |
19324 | prefix="$acl_save_prefix" | |
19325 | ||
19326 | if test "X$x" = "X$element"; then | |
19327 | haveit=yes | |
19328 | break | |
19329 | fi | |
19330 | done | |
19331 | if test -z "$haveit"; then | |
babf7fe8 | 19332 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
19333 | fi |
19334 | done | |
19335 | ||
19336 | ||
19337 | else | |
66170b30 JF |
19338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19339 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
19340 | fi |
19341 | ||
babf7fe8 JF |
19342 | ac_ext=cpp |
19343 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 19347 | |
9c60689e | 19348 | |
632b71ea | 19349 | |
babf7fe8 JF |
19350 | ac_ext=cpp |
19351 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19352 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19353 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19354 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 19355 | |
babf7fe8 JF |
19356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
19357 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 19358 | |
babf7fe8 | 19359 | cy_save=$CXXFLAGS |
9c60689e | 19360 | |
babf7fe8 JF |
19361 | for element in -Wno-unneeded-internal-declaration; do |
19362 | haveit= | |
19363 | for x in $CXXFLAGS; do | |
9c60689e | 19364 | |
babf7fe8 JF |
19365 | acl_save_prefix="$prefix" |
19366 | prefix="$acl_final_prefix" | |
19367 | acl_save_exec_prefix="$exec_prefix" | |
19368 | exec_prefix="$acl_final_exec_prefix" | |
19369 | eval x=\"$x\" | |
19370 | exec_prefix="$acl_save_exec_prefix" | |
19371 | prefix="$acl_save_prefix" | |
66170b30 | 19372 | |
babf7fe8 JF |
19373 | if test "X$x" = "X$element"; then |
19374 | haveit=yes | |
19375 | break | |
19376 | fi | |
19377 | done | |
19378 | if test -z "$haveit"; then | |
19379 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19380 | fi | |
19381 | done | |
7eda51e0 | 19382 | |
7eda51e0 | 19383 | |
babf7fe8 JF |
19384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19385 | /* end confdefs.h. */ | |
7eda51e0 | 19386 | |
7eda51e0 | 19387 | _ACEOF |
babf7fe8 JF |
19388 | if ac_fn_cxx_try_compile "$LINENO"; then : |
19389 | cy_good=1 | |
9c60689e | 19390 | else |
babf7fe8 | 19391 | cy_good=0 |
9c60689e | 19392 | fi |
babf7fe8 | 19393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 19394 | |
babf7fe8 JF |
19395 | CXXFLAGS=$cy_save |
19396 | if test "x$cy_good" = x1; then : | |
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19398 | $as_echo "yes" >&6; } | |
7eda51e0 | 19399 | |
babf7fe8 | 19400 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 19401 | haveit= |
babf7fe8 | 19402 | for x in $CXXFLAGS; do |
9c60689e | 19403 | |
7eda51e0 JF |
19404 | acl_save_prefix="$prefix" |
19405 | prefix="$acl_final_prefix" | |
19406 | acl_save_exec_prefix="$exec_prefix" | |
19407 | exec_prefix="$acl_final_exec_prefix" | |
19408 | eval x=\"$x\" | |
19409 | exec_prefix="$acl_save_exec_prefix" | |
19410 | prefix="$acl_save_prefix" | |
9c60689e | 19411 | |
7eda51e0 JF |
19412 | if test "X$x" = "X$element"; then |
19413 | haveit=yes | |
19414 | break | |
19415 | fi | |
19416 | done | |
19417 | if test -z "$haveit"; then | |
babf7fe8 | 19418 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
19419 | fi |
19420 | done | |
9c60689e | 19421 | |
9c60689e | 19422 | |
5053a6d1 | 19423 | else |
babf7fe8 JF |
19424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19425 | $as_echo "no" >&6; } | |
632b71ea DWT |
19426 | fi |
19427 | ||
babf7fe8 JF |
19428 | ac_ext=cpp |
19429 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19430 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19431 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19432 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
19433 | |
19434 | ||
5053a6d1 | 19435 | |
babf7fe8 JF |
19436 | ac_ext=mm |
19437 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19438 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19439 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19440 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 19441 | |
babf7fe8 JF |
19442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
19443 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 19444 | |
babf7fe8 | 19445 | cy_save=$OBJCXXFLAGS |
632b71ea | 19446 | |
babf7fe8 | 19447 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 19448 | haveit= |
babf7fe8 | 19449 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
19450 | |
19451 | acl_save_prefix="$prefix" | |
19452 | prefix="$acl_final_prefix" | |
19453 | acl_save_exec_prefix="$exec_prefix" | |
19454 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 19455 | eval x=\"$x\" |
632b71ea DWT |
19456 | exec_prefix="$acl_save_exec_prefix" |
19457 | prefix="$acl_save_prefix" | |
19458 | ||
5053a6d1 DWT |
19459 | if test "X$x" = "X$element"; then |
19460 | haveit=yes | |
19461 | break | |
19462 | fi | |
19463 | done | |
19464 | if test -z "$haveit"; then | |
babf7fe8 | 19465 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
19466 | fi |
19467 | done | |
19468 | ||
66170b30 | 19469 | |
babf7fe8 JF |
19470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19471 | /* end confdefs.h. */ | |
19472 | ||
19473 | _ACEOF | |
19474 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19475 | cy_good=1 | |
19476 | else | |
19477 | cy_good=0 | |
19478 | fi | |
19479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19480 | ||
19481 | OBJCXXFLAGS=$cy_save | |
19482 | if test "x$cy_good" = x1; then : | |
19483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19484 | $as_echo "yes" >&6; } | |
19485 | ||
19486 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 19487 | haveit= |
babf7fe8 | 19488 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
19489 | |
19490 | acl_save_prefix="$prefix" | |
19491 | prefix="$acl_final_prefix" | |
19492 | acl_save_exec_prefix="$exec_prefix" | |
19493 | exec_prefix="$acl_final_exec_prefix" | |
19494 | eval x=\"$x\" | |
19495 | exec_prefix="$acl_save_exec_prefix" | |
19496 | prefix="$acl_save_prefix" | |
19497 | ||
19498 | if test "X$x" = "X$element"; then | |
19499 | haveit=yes | |
19500 | break | |
19501 | fi | |
19502 | done | |
19503 | if test -z "$haveit"; then | |
babf7fe8 | 19504 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
19505 | fi |
19506 | done | |
66170b30 JF |
19507 | |
19508 | ||
babf7fe8 JF |
19509 | else |
19510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19511 | $as_echo "no" >&6; } | |
5053a6d1 | 19512 | fi |
7eda51e0 | 19513 | |
babf7fe8 JF |
19514 | ac_ext=cpp |
19515 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19516 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19517 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19518 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 19519 | |
5053a6d1 DWT |
19520 | |
19521 | ||
5053a6d1 | 19522 | |
babf7fe8 JF |
19523 | |
19524 | ||
2ca4dab3 | 19525 | |
be2fde87 JF |
19526 | ac_ext=c |
19527 | ac_cpp='$CPP $CPPFLAGS' | |
19528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19531 | ||
19532 | ax_pthread_ok=no | |
19533 | ||
19534 | # We used to check for pthread.h first, but this fails if pthread.h | |
2ca4dab3 | 19535 | # requires special compiler flags (e.g. on Tru64 or Sequent). |
be2fde87 JF |
19536 | # It gets checked for in the link test anyway. |
19537 | ||
19538 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
19539 | # etcetera environment variables, and if threads linking works using | |
19540 | # them: | |
19541 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
19542 | save_CFLAGS="$CFLAGS" | |
19543 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19544 | save_LIBS="$LIBS" | |
19545 | LIBS="$PTHREAD_LIBS $LIBS" | |
2ca4dab3 JF |
19546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
19547 | $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
be2fde87 JF |
19548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19549 | /* end confdefs.h. */ | |
19550 | ||
19551 | /* Override any GCC internal prototype to avoid an error. | |
19552 | Use char because int might match the return type of a GCC | |
19553 | builtin and then its argument prototype would still apply. */ | |
19554 | #ifdef __cplusplus | |
19555 | extern "C" | |
19556 | #endif | |
19557 | char pthread_join (); | |
19558 | int | |
19559 | main () | |
19560 | { | |
19561 | return pthread_join (); | |
19562 | ; | |
19563 | return 0; | |
19564 | } | |
19565 | _ACEOF | |
19566 | if ac_fn_c_try_link "$LINENO"; then : | |
19567 | ax_pthread_ok=yes | |
19568 | fi | |
19569 | rm -f core conftest.err conftest.$ac_objext \ | |
19570 | conftest$ac_exeext conftest.$ac_ext | |
19571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
19572 | $as_echo "$ax_pthread_ok" >&6; } | |
19573 | if test x"$ax_pthread_ok" = xno; then | |
19574 | PTHREAD_LIBS="" | |
19575 | PTHREAD_CFLAGS="" | |
19576 | fi | |
19577 | LIBS="$save_LIBS" | |
19578 | CFLAGS="$save_CFLAGS" | |
19579 | fi | |
19580 | ||
19581 | # We must check for the threads library under a number of different | |
19582 | # names; the ordering is very important because some systems | |
19583 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
19584 | # libraries is broken (non-POSIX). | |
19585 | ||
19586 | # Create a list of thread flags to try. Items starting with a "-" are | |
19587 | # C compiler flags, and other items are library names, except for "none" | |
19588 | # which indicates that we try without any flags at all, and "pthread-config" | |
19589 | # which is a program returning the flags for the Pth emulation library. | |
19590 | ||
2ca4dab3 | 19591 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" |
be2fde87 JF |
19592 | |
19593 | # The ordering *is* (sometimes) important. Some notes on the | |
19594 | # individual items follow: | |
19595 | ||
19596 | # pthreads: AIX (must check this before -lpthread) | |
19597 | # none: in case threads are in libc; should be tried before -Kthread and | |
19598 | # other compiler flags to prevent continual compiler warnings | |
19599 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
19600 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
19601 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
2ca4dab3 | 19602 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
be2fde87 | 19603 | # -pthreads: Solaris/gcc |
be2fde87 | 19604 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
2ca4dab3 JF |
19605 | # doesn't hurt to check since this sometimes defines pthreads and |
19606 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
19607 | # is present but should not be used directly) | |
19608 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
be2fde87 JF |
19609 | # pthread: Linux, etcetera |
19610 | # --thread-safe: KAI C++ | |
19611 | # pthread-config: use pthread-config program (for GNU Pth library) | |
19612 | ||
2ca4dab3 JF |
19613 | case $host_os in |
19614 | ||
19615 | hpux*) | |
19616 | ||
19617 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable | |
19618 | # multi-threading and also sets -lpthread." | |
19619 | ||
19620 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" | |
19621 | ;; | |
19622 | ||
19623 | openedition*) | |
19624 | ||
19625 | # IBM z/OS requires a feature-test macro to be defined in order to | |
19626 | # enable POSIX threads at all, so give the user a hint if this is | |
19627 | # not set. (We don't define these ourselves, as they can affect | |
19628 | # other portions of the system API in unpredictable ways.) | |
19629 | ||
19630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19631 | /* end confdefs.h. */ | |
19632 | ||
19633 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
19634 | AX_PTHREAD_ZOS_MISSING | |
19635 | # endif | |
19636 | ||
19637 | _ACEOF | |
19638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19639 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : | |
19640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
19641 | $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
19642 | fi | |
19643 | rm -f conftest* | |
19644 | ||
19645 | ;; | |
19646 | ||
be2fde87 JF |
19647 | solaris*) |
19648 | ||
2ca4dab3 JF |
19649 | # Newer versions of Solaris require the "-mt -lpthread" pair, and we |
19650 | # check that first. On some older versions, libc contains stubbed | |
be2fde87 JF |
19651 | # (non-functional) versions of the pthreads routines, so link-based |
19652 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
19653 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
19654 | # a function called by this macro, so we could check for that, but | |
2ca4dab3 JF |
19655 | # who knows whether they'll stub that too in a future libc.) So |
19656 | # we'll look for -pthreads and -lpthread shortly thereafter. | |
be2fde87 | 19657 | |
2ca4dab3 | 19658 | ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags" |
be2fde87 JF |
19659 | ;; |
19660 | esac | |
19661 | ||
2ca4dab3 JF |
19662 | # Older versions of Clang only give a warning instead of an error for an |
19663 | # unrecognized option, unless we specify -Werror. (We throw in some extra | |
19664 | # Clang warning flags for good measure.) | |
be2fde87 | 19665 | |
2ca4dab3 JF |
19666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5 |
19667 | $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; } | |
19668 | if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then : | |
19669 | $as_echo_n "(cached) " >&6 | |
19670 | else | |
19671 | ax_cv_PTHREAD_REJECT_UNKNOWN=unknown | |
19672 | save_CFLAGS="$CFLAGS" | |
19673 | ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument" | |
19674 | CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz" | |
19675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
19676 | /* end confdefs.h. */ |
19677 | int foo(void); | |
19678 | int | |
19679 | main () | |
19680 | { | |
19681 | foo() | |
19682 | ; | |
19683 | return 0; | |
19684 | } | |
19685 | _ACEOF | |
19686 | if ac_fn_c_try_compile "$LINENO"; then : | |
2ca4dab3 | 19687 | ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags" |
be2fde87 | 19688 | else |
2ca4dab3 | 19689 | ax_cv_PTHREAD_REJECT_UNKNOWN=no |
be2fde87 JF |
19690 | fi |
19691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ca4dab3 JF |
19692 | CFLAGS="$save_CFLAGS" |
19693 | ||
19694 | fi | |
19695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5 | |
19696 | $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; } | |
19697 | ax_pthread_extra_flags= | |
19698 | if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then : | |
19699 | ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN" | |
19700 | fi | |
be2fde87 JF |
19701 | |
19702 | if test x"$ax_pthread_ok" = xno; then | |
19703 | for flag in $ax_pthread_flags; do | |
19704 | ||
19705 | case $flag in | |
19706 | none) | |
19707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
19708 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
19709 | ;; | |
19710 | ||
2ca4dab3 JF |
19711 | -mt,pthread) |
19712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 | |
19713 | $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } | |
19714 | PTHREAD_CFLAGS="-mt" | |
19715 | PTHREAD_LIBS="-lpthread" | |
19716 | ;; | |
19717 | ||
be2fde87 JF |
19718 | -*) |
19719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
19720 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
19721 | PTHREAD_CFLAGS="$flag" | |
19722 | ;; | |
19723 | ||
19724 | pthread-config) | |
19725 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
19726 | set dummy pthread-config; ac_word=$2 | |
19727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19728 | $as_echo_n "checking for $ac_word... " >&6; } | |
19729 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | |
19730 | $as_echo_n "(cached) " >&6 | |
19731 | else | |
19732 | if test -n "$ax_pthread_config"; then | |
19733 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
19734 | else | |
19735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19736 | for as_dir in $PATH | |
19737 | do | |
19738 | IFS=$as_save_IFS | |
19739 | test -z "$as_dir" && as_dir=. | |
19740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19742 | ac_cv_prog_ax_pthread_config="yes" | |
19743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19744 | break 2 | |
19745 | fi | |
19746 | done | |
19747 | done | |
19748 | IFS=$as_save_IFS | |
19749 | ||
19750 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
19751 | fi | |
19752 | fi | |
19753 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
19754 | if test -n "$ax_pthread_config"; then | |
19755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | |
19756 | $as_echo "$ax_pthread_config" >&6; } | |
19757 | else | |
19758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19759 | $as_echo "no" >&6; } | |
19760 | fi | |
19761 | ||
19762 | ||
19763 | if test x"$ax_pthread_config" = xno; then continue; fi | |
19764 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
19765 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
19766 | ;; | |
19767 | ||
19768 | *) | |
19769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
19770 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
19771 | PTHREAD_LIBS="-l$flag" | |
19772 | ;; | |
19773 | esac | |
19774 | ||
19775 | save_LIBS="$LIBS" | |
19776 | save_CFLAGS="$CFLAGS" | |
19777 | LIBS="$PTHREAD_LIBS $LIBS" | |
19778 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" | |
19779 | ||
19780 | # Check for various functions. We must include pthread.h, | |
19781 | # since some functions may be macros. (On the Sequent, we | |
19782 | # need a special flag -Kthread to make this header compile.) | |
19783 | # We check for pthread_join because it is in -lpthread on IRIX | |
19784 | # while pthread_create is in libc. We check for pthread_attr_init | |
19785 | # due to DEC craziness with -lpthreads. We check for | |
19786 | # pthread_cleanup_push because it is one of the few pthread | |
19787 | # functions on Solaris that doesn't have a non-functional libc stub. | |
19788 | # We try pthread_create on general principles. | |
19789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19790 | /* end confdefs.h. */ | |
19791 | #include <pthread.h> | |
19792 | static void routine(void *a) { a = 0; } | |
19793 | static void *start_routine(void *a) { return a; } | |
19794 | int | |
19795 | main () | |
19796 | { | |
19797 | pthread_t th; pthread_attr_t attr; | |
19798 | pthread_create(&th, 0, start_routine, 0); | |
19799 | pthread_join(th, 0); | |
19800 | pthread_attr_init(&attr); | |
19801 | pthread_cleanup_push(routine, 0); | |
19802 | pthread_cleanup_pop(0) /* ; */ | |
19803 | ; | |
19804 | return 0; | |
19805 | } | |
19806 | _ACEOF | |
19807 | if ac_fn_c_try_link "$LINENO"; then : | |
19808 | ax_pthread_ok=yes | |
19809 | fi | |
19810 | rm -f core conftest.err conftest.$ac_objext \ | |
19811 | conftest$ac_exeext conftest.$ac_ext | |
19812 | ||
19813 | LIBS="$save_LIBS" | |
19814 | CFLAGS="$save_CFLAGS" | |
19815 | ||
19816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
19817 | $as_echo "$ax_pthread_ok" >&6; } | |
19818 | if test "x$ax_pthread_ok" = xyes; then | |
19819 | break; | |
19820 | fi | |
19821 | ||
19822 | PTHREAD_LIBS="" | |
19823 | PTHREAD_CFLAGS="" | |
19824 | done | |
19825 | fi | |
19826 | ||
19827 | # Various other checks: | |
19828 | if test "x$ax_pthread_ok" = xyes; then | |
19829 | save_LIBS="$LIBS" | |
19830 | LIBS="$PTHREAD_LIBS $LIBS" | |
19831 | save_CFLAGS="$CFLAGS" | |
19832 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19833 | ||
19834 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
19835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
19836 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
2ca4dab3 JF |
19837 | if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : |
19838 | $as_echo_n "(cached) " >&6 | |
19839 | else | |
19840 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown | |
19841 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
19842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
19843 | /* end confdefs.h. */ |
19844 | #include <pthread.h> | |
19845 | int | |
19846 | main () | |
19847 | { | |
19848 | int attr = $attr; return attr /* ; */ | |
19849 | ; | |
19850 | return 0; | |
19851 | } | |
19852 | _ACEOF | |
19853 | if ac_fn_c_try_link "$LINENO"; then : | |
2ca4dab3 | 19854 | ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break |
be2fde87 JF |
19855 | fi |
19856 | rm -f core conftest.err conftest.$ac_objext \ | |
19857 | conftest$ac_exeext conftest.$ac_ext | |
2ca4dab3 JF |
19858 | done |
19859 | ||
19860 | fi | |
19861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 | |
19862 | $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
19863 | if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \ | |
19864 | test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then : | |
be2fde87 JF |
19865 | |
19866 | cat >>confdefs.h <<_ACEOF | |
2ca4dab3 | 19867 | #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR |
be2fde87 JF |
19868 | _ACEOF |
19869 | ||
2ca4dab3 | 19870 | fi |
be2fde87 JF |
19871 | |
19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
19873 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
2ca4dab3 JF |
19874 | if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : |
19875 | $as_echo_n "(cached) " >&6 | |
19876 | else | |
19877 | ax_cv_PTHREAD_SPECIAL_FLAGS=no | |
19878 | ax_pthread_special_flags_added=no | |
19879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19880 | /* end confdefs.h. */ | |
19881 | ||
19882 | # if !defined(_REENTRANT) && !defined(_THREAD_SAFE) | |
19883 | AX_PTHREAD_NEED_SPECIAL_FLAG | |
19884 | # endif | |
19885 | ||
19886 | _ACEOF | |
19887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19888 | $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then : | |
19889 | case $host_os in | |
19890 | aix* | freebsd*) | |
19891 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE" | |
19892 | ;; | |
19893 | darwin* | hpux* | osf* | solaris*) | |
19894 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT" | |
19895 | ;; | |
19896 | esac | |
19897 | ||
19898 | fi | |
19899 | rm -f conftest* | |
19900 | ||
19901 | ||
19902 | fi | |
19903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 | |
19904 | $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
19905 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ | |
19906 | test "x$ax_pthread_special_flags_added" != "xyes"; then : | |
19907 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" | |
19908 | ax_pthread_special_flags_added=yes | |
19909 | fi | |
be2fde87 JF |
19910 | |
19911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | |
19912 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
19913 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | |
19914 | $as_echo_n "(cached) " >&6 | |
19915 | else | |
2ca4dab3 | 19916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be2fde87 JF |
19917 | /* end confdefs.h. */ |
19918 | #include <pthread.h> | |
19919 | int | |
19920 | main () | |
19921 | { | |
19922 | int i = PTHREAD_PRIO_INHERIT; | |
19923 | ; | |
19924 | return 0; | |
19925 | } | |
19926 | _ACEOF | |
19927 | if ac_fn_c_try_link "$LINENO"; then : | |
19928 | ax_cv_PTHREAD_PRIO_INHERIT=yes | |
19929 | else | |
19930 | ax_cv_PTHREAD_PRIO_INHERIT=no | |
19931 | fi | |
19932 | rm -f core conftest.err conftest.$ac_objext \ | |
19933 | conftest$ac_exeext conftest.$ac_ext | |
19934 | ||
19935 | fi | |
19936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | |
19937 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
19938 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | |
19939 | ||
19940 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | |
19941 | ||
19942 | fi | |
19943 | ||
19944 | LIBS="$save_LIBS" | |
19945 | CFLAGS="$save_CFLAGS" | |
19946 | ||
19947 | # More AIX lossage: compile with *_r variant | |
19948 | if test "x$GCC" != xyes; then | |
19949 | case $host_os in | |
19950 | aix*) | |
19951 | case "x/$CC" in #( | |
19952 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
19953 | #handle absolute path differently from PATH based program lookup | |
19954 | case "x$CC" in #( | |
19955 | x/*) : | |
19956 | if as_fn_executable_p ${CC}_r; then : | |
19957 | PTHREAD_CC="${CC}_r" | |
19958 | fi ;; #( | |
19959 | *) : | |
19960 | for ac_prog in ${CC}_r | |
19961 | do | |
19962 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19963 | set dummy $ac_prog; ac_word=$2 | |
19964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19965 | $as_echo_n "checking for $ac_word... " >&6; } | |
19966 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
19967 | $as_echo_n "(cached) " >&6 | |
19968 | else | |
19969 | if test -n "$PTHREAD_CC"; then | |
19970 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
19971 | else | |
19972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19973 | for as_dir in $PATH | |
19974 | do | |
19975 | IFS=$as_save_IFS | |
19976 | test -z "$as_dir" && as_dir=. | |
19977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19979 | ac_cv_prog_PTHREAD_CC="$ac_prog" | |
19980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19981 | break 2 | |
19982 | fi | |
19983 | done | |
19984 | done | |
19985 | IFS=$as_save_IFS | |
19986 | ||
19987 | fi | |
19988 | fi | |
19989 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
19990 | if test -n "$PTHREAD_CC"; then | |
19991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
19992 | $as_echo "$PTHREAD_CC" >&6; } | |
19993 | else | |
19994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19995 | $as_echo "no" >&6; } | |
19996 | fi | |
19997 | ||
19998 | ||
19999 | test -n "$PTHREAD_CC" && break | |
20000 | done | |
20001 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
20002 | ;; | |
20003 | esac ;; #( | |
20004 | *) : | |
20005 | ;; | |
20006 | esac | |
20007 | ;; | |
20008 | esac | |
20009 | fi | |
20010 | fi | |
20011 | ||
20012 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
20013 | ||
20014 | ||
20015 | ||
20016 | ||
20017 | ||
20018 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
20019 | if test x"$ax_pthread_ok" = xyes; then | |
20020 | ||
20021 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | |
20022 | ||
20023 | : | |
20024 | else | |
20025 | ax_pthread_ok=no | |
20026 | ||
20027 | fi | |
20028 | ac_ext=cpp | |
20029 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20033 | ||
20034 | ||
20035 | ||
20036 | ||
20037 | ||
babf7fe8 JF |
20038 | |
20039 | ||
20040 | ||
20041 | ||
20042 | # Check whether --enable-javascript was given. | |
20043 | if test "${enable_javascript+set}" = set; then : | |
20044 | enableval=$enable_javascript; | |
20045 | case $enableval in #( | |
20046 | yes) : | |
20047 | ||
20048 | ||
20049 | ||
20050 | ||
20051 | cy_save=$LIBS | |
20052 | LIBS= | |
9918a0fa JF |
20053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20054 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20055 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20056 | $as_echo_n "(cached) " >&6 | |
20057 | else | |
20058 | ac_func_search_save_LIBS=$LIBS | |
20059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20060 | /* end confdefs.h. */ | |
20061 | ||
20062 | /* Override any GCC internal prototype to avoid an error. | |
20063 | Use char because int might match the return type of a GCC | |
20064 | builtin and then its argument prototype would still apply. */ | |
20065 | #ifdef __cplusplus | |
20066 | extern "C" | |
20067 | #endif | |
20068 | char JSEvaluateScript (); | |
20069 | int | |
20070 | main () | |
20071 | { | |
20072 | return JSEvaluateScript (); | |
20073 | ; | |
20074 | return 0; | |
20075 | } | |
20076 | _ACEOF | |
20077 | for ac_lib in '' JavaScriptCore; do | |
20078 | if test -z "$ac_lib"; then | |
20079 | ac_res="none required" | |
20080 | else | |
20081 | ac_res=-l$ac_lib | |
20082 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20083 | fi | |
20084 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20085 | ac_cv_search_JSEvaluateScript=$ac_res | |
20086 | fi | |
20087 | rm -f core conftest.err conftest.$ac_objext \ | |
20088 | conftest$ac_exeext | |
20089 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20090 | break | |
20091 | fi | |
20092 | done | |
20093 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20094 | ||
20095 | else | |
20096 | ac_cv_search_JSEvaluateScript=no | |
20097 | fi | |
20098 | rm conftest.$ac_ext | |
20099 | LIBS=$ac_func_search_save_LIBS | |
20100 | fi | |
20101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20102 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20103 | ac_res=$ac_cv_search_JSEvaluateScript | |
20104 | if test "$ac_res" != no; then : | |
20105 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20106 | ||
20107 | CY_EXECUTE=1 | |
20108 | ||
20109 | ||
20110 | else | |
babf7fe8 JF |
20111 | |
20112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
20113 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
20114 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
20115 | $as_echo_n "(cached) " >&6 | |
20116 | else | |
20117 | ||
20118 | ac_check_framework_save_LIBS=$LIBS | |
20119 | LIBS="-framework JavaScriptCore $LIBS" | |
20120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20121 | /* end confdefs.h. */ | |
20122 | ||
20123 | #include <JavaScriptCore/JSBase.h> | |
20124 | ||
20125 | int | |
20126 | main () | |
20127 | { | |
20128 | ||
20129 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
20130 | ||
20131 | ; | |
20132 | return 0; | |
20133 | } | |
20134 | _ACEOF | |
20135 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20136 | ||
20137 | ac_cv_framework_JavaScriptCore=yes | |
20138 | ||
20139 | else | |
20140 | ac_cv_framework_JavaScriptCore=no | |
20141 | fi | |
20142 | rm -f core conftest.err conftest.$ac_objext \ | |
20143 | conftest$ac_exeext conftest.$ac_ext | |
20144 | LIBS=$ac_check_framework_save_LIBS | |
20145 | ||
20146 | fi | |
20147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
20148 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20149 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
20150 | ||
20151 | ||
20152 | for element in "-framework JavaScriptCore"; do | |
20153 | haveit= | |
20154 | for x in $LIBS; do | |
20155 | ||
20156 | acl_save_prefix="$prefix" | |
20157 | prefix="$acl_final_prefix" | |
20158 | acl_save_exec_prefix="$exec_prefix" | |
20159 | exec_prefix="$acl_final_exec_prefix" | |
20160 | eval x=\"$x\" | |
20161 | exec_prefix="$acl_save_exec_prefix" | |
20162 | prefix="$acl_save_prefix" | |
20163 | ||
20164 | if test "X$x" = "X$element"; then | |
20165 | haveit=yes | |
20166 | break | |
20167 | fi | |
20168 | done | |
20169 | if test -z "$haveit"; then | |
20170 | LIBS="${LIBS}${LIBS:+ }$element" | |
20171 | fi | |
20172 | done | |
20173 | ||
20174 | ||
20175 | CY_EXECUTE=1 | |
20176 | ||
20177 | ||
20178 | ||
20179 | else | |
20180 | ||
ccb4e34c | 20181 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
20182 | |
20183 | pkg_failed=no | |
20184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 20185 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 20186 | |
7eda51e0 JF |
20187 | if test -n "$WEBKIT_CFLAGS"; then |
20188 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20189 | elif test -n "$PKG_CONFIG"; then | |
20190 | if test -n "$PKG_CONFIG" && \ | |
20191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20192 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20193 | ac_status=$? | |
20194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20195 | test $ac_status = 0; }; then | |
20196 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20197 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20198 | else |
20199 | pkg_failed=yes | |
20200 | fi | |
20201 | else | |
20202 | pkg_failed=untried | |
20203 | fi | |
20204 | if test -n "$WEBKIT_LIBS"; then | |
20205 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20206 | elif test -n "$PKG_CONFIG"; then | |
20207 | if test -n "$PKG_CONFIG" && \ | |
20208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20209 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20210 | ac_status=$? | |
20211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20212 | test $ac_status = 0; }; then | |
20213 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20214 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20215 | else |
20216 | pkg_failed=yes | |
20217 | fi | |
20218 | else | |
20219 | pkg_failed=untried | |
20220 | fi | |
632b71ea | 20221 | |
7eda51e0 JF |
20222 | |
20223 | ||
20224 | if test $pkg_failed = yes; then | |
20225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20226 | $as_echo "no" >&6; } | |
20227 | ||
20228 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20229 | _pkg_short_errors_supported=yes | |
20230 | else | |
20231 | _pkg_short_errors_supported=no | |
20232 | fi | |
20233 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 20234 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 20235 | else |
83c6fec8 | 20236 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
20237 | fi |
20238 | # Put the nasty error message in config.log where it belongs | |
20239 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
20240 | ||
20241 | : | |
20242 | elif test $pkg_failed = untried; then | |
20243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20244 | $as_echo "no" >&6; } | |
20245 | : | |
20246 | else | |
20247 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20248 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20250 | $as_echo "yes" >&6; } | |
20251 | ||
20252 | CY_EXECUTE=1 | |
20253 | ||
20254 | ||
7eda51e0 JF |
20255 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
20256 | haveit= | |
d70419f1 | 20257 | for x in $CPPFLAGS; do |
5053a6d1 | 20258 | |
7eda51e0 JF |
20259 | acl_save_prefix="$prefix" |
20260 | prefix="$acl_final_prefix" | |
20261 | acl_save_exec_prefix="$exec_prefix" | |
20262 | exec_prefix="$acl_final_exec_prefix" | |
20263 | eval x=\"$x\" | |
20264 | exec_prefix="$acl_save_exec_prefix" | |
20265 | prefix="$acl_save_prefix" | |
5053a6d1 | 20266 | |
7eda51e0 JF |
20267 | if test "X$x" = "X$element"; then |
20268 | haveit=yes | |
20269 | break | |
20270 | fi | |
20271 | done | |
20272 | if test -z "$haveit"; then | |
d70419f1 | 20273 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
20274 | fi |
20275 | done | |
5053a6d1 | 20276 | |
5053a6d1 | 20277 | |
7eda51e0 | 20278 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 20279 | haveit= |
5053a6d1 | 20280 | for x in $LIBS; do |
9c60689e | 20281 | |
632b71ea DWT |
20282 | acl_save_prefix="$prefix" |
20283 | prefix="$acl_final_prefix" | |
20284 | acl_save_exec_prefix="$exec_prefix" | |
20285 | exec_prefix="$acl_final_exec_prefix" | |
20286 | eval x=\"$x\" | |
20287 | exec_prefix="$acl_save_exec_prefix" | |
20288 | prefix="$acl_save_prefix" | |
20289 | ||
20290 | if test "X$x" = "X$element"; then | |
20291 | haveit=yes | |
20292 | break | |
20293 | fi | |
20294 | done | |
20295 | if test -z "$haveit"; then | |
5053a6d1 | 20296 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
20297 | fi |
20298 | done | |
b128dfee | 20299 | |
66170b30 | 20300 | |
7eda51e0 JF |
20301 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
20302 | done | |
5053a6d1 DWT |
20303 | |
20304 | fi | |
9918a0fa JF |
20305 | fi |
20306 | ||
babf7fe8 JF |
20307 | LTJAVASCRIPTCORE=$LIBS |
20308 | LIBS=$cy_save | |
20309 | ||
20310 | ||
7eda51e0 | 20311 | ;; #( |
babf7fe8 | 20312 | no) : |
7eda51e0 | 20313 | |
babf7fe8 JF |
20314 | CY_EXECUTE=0 |
20315 | ;; #( | |
20316 | JavaScriptCore) : | |
c823f118 | 20317 | |
5053a6d1 DWT |
20318 | |
20319 | ||
babf7fe8 JF |
20320 | cy_save=$LIBS |
20321 | LIBS= | |
9918a0fa JF |
20322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20323 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20324 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20325 | $as_echo_n "(cached) " >&6 | |
20326 | else | |
20327 | ac_func_search_save_LIBS=$LIBS | |
20328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20329 | /* end confdefs.h. */ | |
20330 | ||
20331 | /* Override any GCC internal prototype to avoid an error. | |
20332 | Use char because int might match the return type of a GCC | |
20333 | builtin and then its argument prototype would still apply. */ | |
20334 | #ifdef __cplusplus | |
20335 | extern "C" | |
20336 | #endif | |
20337 | char JSEvaluateScript (); | |
20338 | int | |
20339 | main () | |
20340 | { | |
20341 | return JSEvaluateScript (); | |
20342 | ; | |
20343 | return 0; | |
20344 | } | |
20345 | _ACEOF | |
20346 | for ac_lib in '' JavaScriptCore; do | |
20347 | if test -z "$ac_lib"; then | |
20348 | ac_res="none required" | |
20349 | else | |
20350 | ac_res=-l$ac_lib | |
20351 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20352 | fi | |
20353 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20354 | ac_cv_search_JSEvaluateScript=$ac_res | |
20355 | fi | |
20356 | rm -f core conftest.err conftest.$ac_objext \ | |
20357 | conftest$ac_exeext | |
20358 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20359 | break | |
20360 | fi | |
20361 | done | |
20362 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20363 | ||
20364 | else | |
20365 | ac_cv_search_JSEvaluateScript=no | |
20366 | fi | |
20367 | rm conftest.$ac_ext | |
20368 | LIBS=$ac_func_search_save_LIBS | |
20369 | fi | |
20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20371 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20372 | ac_res=$ac_cv_search_JSEvaluateScript | |
20373 | if test "$ac_res" != no; then : | |
20374 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20375 | ||
20376 | CY_EXECUTE=1 | |
20377 | ||
20378 | ||
20379 | else | |
babf7fe8 | 20380 | |
5053a6d1 DWT |
20381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
20382 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 20383 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
20384 | $as_echo_n "(cached) " >&6 |
20385 | else | |
20386 | ||
5053a6d1 DWT |
20387 | ac_check_framework_save_LIBS=$LIBS |
20388 | LIBS="-framework JavaScriptCore $LIBS" | |
20389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 20390 | /* end confdefs.h. */ |
5053a6d1 | 20391 | |
7eda51e0 | 20392 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 20393 | |
632b71ea DWT |
20394 | int |
20395 | main () | |
20396 | { | |
66170b30 | 20397 | |
7eda51e0 | 20398 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 20399 | |
632b71ea DWT |
20400 | ; |
20401 | return 0; | |
20402 | } | |
20403 | _ACEOF | |
5053a6d1 DWT |
20404 | if ac_fn_cxx_try_link "$LINENO"; then : |
20405 | ||
20406 | ac_cv_framework_JavaScriptCore=yes | |
20407 | ||
20408 | else | |
20409 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
20410 | fi |
20411 | rm -f core conftest.err conftest.$ac_objext \ | |
20412 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 20413 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 20414 | |
c823f118 | 20415 | fi |
5053a6d1 DWT |
20416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
20417 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20418 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
20419 | |
20420 | ||
7eda51e0 | 20421 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
20422 | haveit= |
20423 | for x in $LIBS; do | |
20424 | ||
20425 | acl_save_prefix="$prefix" | |
20426 | prefix="$acl_final_prefix" | |
20427 | acl_save_exec_prefix="$exec_prefix" | |
20428 | exec_prefix="$acl_final_exec_prefix" | |
20429 | eval x=\"$x\" | |
20430 | exec_prefix="$acl_save_exec_prefix" | |
20431 | prefix="$acl_save_prefix" | |
20432 | ||
20433 | if test "X$x" = "X$element"; then | |
20434 | haveit=yes | |
20435 | break | |
20436 | fi | |
20437 | done | |
20438 | if test -z "$haveit"; then | |
20439 | LIBS="${LIBS}${LIBS:+ }$element" | |
20440 | fi | |
20441 | done | |
c823f118 | 20442 | |
66170b30 | 20443 | |
7eda51e0 JF |
20444 | CY_EXECUTE=1 |
20445 | ||
20446 | ||
20447 | ||
20448 | else | |
20449 | ||
ccb4e34c | 20450 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
7eda51e0 JF |
20451 | |
20452 | pkg_failed=no | |
20453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
20454 | $as_echo_n "checking for WEBKIT... " >&6; } | |
20455 | ||
20456 | if test -n "$WEBKIT_CFLAGS"; then | |
20457 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20458 | elif test -n "$PKG_CONFIG"; then | |
20459 | if test -n "$PKG_CONFIG" && \ | |
20460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20461 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20462 | ac_status=$? | |
20463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20464 | test $ac_status = 0; }; then | |
20465 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20466 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20467 | else |
20468 | pkg_failed=yes | |
20469 | fi | |
20470 | else | |
20471 | pkg_failed=untried | |
20472 | fi | |
20473 | if test -n "$WEBKIT_LIBS"; then | |
20474 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20475 | elif test -n "$PKG_CONFIG"; then | |
20476 | if test -n "$PKG_CONFIG" && \ | |
20477 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20478 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20479 | ac_status=$? | |
20480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20481 | test $ac_status = 0; }; then | |
20482 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20483 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20484 | else |
20485 | pkg_failed=yes | |
20486 | fi | |
20487 | else | |
20488 | pkg_failed=untried | |
20489 | fi | |
20490 | ||
66170b30 JF |
20491 | |
20492 | ||
7eda51e0 JF |
20493 | if test $pkg_failed = yes; then |
20494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20495 | $as_echo "no" >&6; } | |
b128dfee | 20496 | |
7eda51e0 JF |
20497 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
20498 | _pkg_short_errors_supported=yes | |
20499 | else | |
20500 | _pkg_short_errors_supported=no | |
632b71ea | 20501 | fi |
7eda51e0 | 20502 | if test $_pkg_short_errors_supported = yes; then |
83c6fec8 | 20503 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 20504 | else |
83c6fec8 | 20505 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
20506 | fi |
20507 | # Put the nasty error message in config.log where it belongs | |
20508 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 20509 | |
7eda51e0 JF |
20510 | : |
20511 | elif test $pkg_failed = untried; then | |
20512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20513 | $as_echo "no" >&6; } | |
20514 | : | |
5053a6d1 DWT |
20515 | else |
20516 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20517 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20519 | $as_echo "yes" >&6; } | |
c823f118 | 20520 | |
7eda51e0 JF |
20521 | CY_EXECUTE=1 |
20522 | ||
66170b30 | 20523 | |
7eda51e0 | 20524 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 20525 | haveit= |
d70419f1 | 20526 | for x in $CPPFLAGS; do |
c823f118 | 20527 | |
5053a6d1 DWT |
20528 | acl_save_prefix="$prefix" |
20529 | prefix="$acl_final_prefix" | |
20530 | acl_save_exec_prefix="$exec_prefix" | |
20531 | exec_prefix="$acl_final_exec_prefix" | |
20532 | eval x=\"$x\" | |
20533 | exec_prefix="$acl_save_exec_prefix" | |
20534 | prefix="$acl_save_prefix" | |
c823f118 | 20535 | |
5053a6d1 DWT |
20536 | if test "X$x" = "X$element"; then |
20537 | haveit=yes | |
20538 | break | |
20539 | fi | |
20540 | done | |
20541 | if test -z "$haveit"; then | |
d70419f1 | 20542 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
20543 | fi |
20544 | done | |
c823f118 | 20545 | |
b66977f1 | 20546 | |
7eda51e0 | 20547 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
20548 | haveit= |
20549 | for x in $LIBS; do | |
20550 | ||
20551 | acl_save_prefix="$prefix" | |
20552 | prefix="$acl_final_prefix" | |
20553 | acl_save_exec_prefix="$exec_prefix" | |
20554 | exec_prefix="$acl_final_exec_prefix" | |
20555 | eval x=\"$x\" | |
20556 | exec_prefix="$acl_save_exec_prefix" | |
20557 | prefix="$acl_save_prefix" | |
20558 | ||
20559 | if test "X$x" = "X$element"; then | |
20560 | haveit=yes | |
20561 | break | |
20562 | fi | |
20563 | done | |
20564 | if test -z "$haveit"; then | |
20565 | LIBS="${LIBS}${LIBS:+ }$element" | |
20566 | fi | |
20567 | done | |
20568 | ||
20569 | ||
7eda51e0 JF |
20570 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
20571 | done | |
20572 | ||
5053a6d1 | 20573 | fi |
9918a0fa JF |
20574 | fi |
20575 | ||
babf7fe8 JF |
20576 | LTJAVASCRIPTCORE=$LIBS |
20577 | LIBS=$cy_save | |
5053a6d1 | 20578 | |
b66977f1 | 20579 | |
babf7fe8 JF |
20580 | ;; #( |
20581 | *) : | |
20582 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
20583 | esac | |
b66977f1 | 20584 | |
babf7fe8 | 20585 | else |
b66977f1 | 20586 | |
7eda51e0 | 20587 | |
7eda51e0 | 20588 | |
babf7fe8 JF |
20589 | cy_save=$LIBS |
20590 | LIBS= | |
9918a0fa JF |
20591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20592 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20593 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20594 | $as_echo_n "(cached) " >&6 | |
20595 | else | |
20596 | ac_func_search_save_LIBS=$LIBS | |
20597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20598 | /* end confdefs.h. */ | |
20599 | ||
20600 | /* Override any GCC internal prototype to avoid an error. | |
20601 | Use char because int might match the return type of a GCC | |
20602 | builtin and then its argument prototype would still apply. */ | |
20603 | #ifdef __cplusplus | |
20604 | extern "C" | |
20605 | #endif | |
20606 | char JSEvaluateScript (); | |
20607 | int | |
20608 | main () | |
20609 | { | |
20610 | return JSEvaluateScript (); | |
20611 | ; | |
20612 | return 0; | |
20613 | } | |
20614 | _ACEOF | |
20615 | for ac_lib in '' JavaScriptCore; do | |
20616 | if test -z "$ac_lib"; then | |
20617 | ac_res="none required" | |
20618 | else | |
20619 | ac_res=-l$ac_lib | |
20620 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20621 | fi | |
20622 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20623 | ac_cv_search_JSEvaluateScript=$ac_res | |
20624 | fi | |
20625 | rm -f core conftest.err conftest.$ac_objext \ | |
20626 | conftest$ac_exeext | |
20627 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20628 | break | |
20629 | fi | |
20630 | done | |
20631 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20632 | ||
20633 | else | |
20634 | ac_cv_search_JSEvaluateScript=no | |
20635 | fi | |
20636 | rm conftest.$ac_ext | |
20637 | LIBS=$ac_func_search_save_LIBS | |
20638 | fi | |
20639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20640 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20641 | ac_res=$ac_cv_search_JSEvaluateScript | |
20642 | if test "$ac_res" != no; then : | |
20643 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20644 | ||
20645 | CY_EXECUTE=1 | |
20646 | ||
20647 | ||
20648 | else | |
7eda51e0 | 20649 | |
babf7fe8 JF |
20650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
20651 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
20652 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
20653 | $as_echo_n "(cached) " >&6 | |
20654 | else | |
7eda51e0 | 20655 | |
babf7fe8 JF |
20656 | ac_check_framework_save_LIBS=$LIBS |
20657 | LIBS="-framework JavaScriptCore $LIBS" | |
20658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20659 | /* end confdefs.h. */ | |
7eda51e0 | 20660 | |
babf7fe8 | 20661 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 20662 | |
babf7fe8 JF |
20663 | int |
20664 | main () | |
20665 | { | |
7eda51e0 | 20666 | |
babf7fe8 | 20667 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 20668 | |
babf7fe8 JF |
20669 | ; |
20670 | return 0; | |
20671 | } | |
20672 | _ACEOF | |
20673 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 20674 | |
babf7fe8 | 20675 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 20676 | |
b66977f1 | 20677 | else |
babf7fe8 JF |
20678 | ac_cv_framework_JavaScriptCore=no |
20679 | fi | |
20680 | rm -f core conftest.err conftest.$ac_objext \ | |
20681 | conftest$ac_exeext conftest.$ac_ext | |
20682 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 20683 | |
babf7fe8 JF |
20684 | fi |
20685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
20686 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20687 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 20688 | |
7eda51e0 | 20689 | |
babf7fe8 JF |
20690 | for element in "-framework JavaScriptCore"; do |
20691 | haveit= | |
20692 | for x in $LIBS; do | |
20693 | ||
20694 | acl_save_prefix="$prefix" | |
20695 | prefix="$acl_final_prefix" | |
20696 | acl_save_exec_prefix="$exec_prefix" | |
20697 | exec_prefix="$acl_final_exec_prefix" | |
20698 | eval x=\"$x\" | |
20699 | exec_prefix="$acl_save_exec_prefix" | |
20700 | prefix="$acl_save_prefix" | |
20701 | ||
20702 | if test "X$x" = "X$element"; then | |
20703 | haveit=yes | |
20704 | break | |
20705 | fi | |
20706 | done | |
20707 | if test -z "$haveit"; then | |
20708 | LIBS="${LIBS}${LIBS:+ }$element" | |
20709 | fi | |
20710 | done | |
20711 | ||
20712 | ||
20713 | CY_EXECUTE=1 | |
20714 | ||
20715 | ||
20716 | ||
20717 | else | |
20718 | ||
ccb4e34c | 20719 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
20720 | |
20721 | pkg_failed=no | |
20722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
20723 | $as_echo_n "checking for WEBKIT... " >&6; } | |
20724 | ||
20725 | if test -n "$WEBKIT_CFLAGS"; then | |
20726 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20727 | elif test -n "$PKG_CONFIG"; then | |
20728 | if test -n "$PKG_CONFIG" && \ | |
20729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20730 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20731 | ac_status=$? | |
20732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20733 | test $ac_status = 0; }; then | |
20734 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20735 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
20736 | else |
20737 | pkg_failed=yes | |
20738 | fi | |
20739 | else | |
20740 | pkg_failed=untried | |
20741 | fi | |
20742 | if test -n "$WEBKIT_LIBS"; then | |
20743 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20744 | elif test -n "$PKG_CONFIG"; then | |
20745 | if test -n "$PKG_CONFIG" && \ | |
20746 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20747 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20748 | ac_status=$? | |
20749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20750 | test $ac_status = 0; }; then | |
20751 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20752 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
20753 | else |
20754 | pkg_failed=yes | |
20755 | fi | |
20756 | else | |
20757 | pkg_failed=untried | |
20758 | fi | |
20759 | ||
20760 | ||
20761 | ||
20762 | if test $pkg_failed = yes; then | |
20763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20764 | $as_echo "no" >&6; } | |
20765 | ||
20766 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20767 | _pkg_short_errors_supported=yes | |
20768 | else | |
20769 | _pkg_short_errors_supported=no | |
20770 | fi | |
20771 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 20772 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 20773 | else |
83c6fec8 | 20774 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
20775 | fi |
20776 | # Put the nasty error message in config.log where it belongs | |
20777 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
20778 | ||
20779 | : | |
20780 | elif test $pkg_failed = untried; then | |
20781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20782 | $as_echo "no" >&6; } | |
20783 | : | |
20784 | else | |
20785 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20786 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20788 | $as_echo "yes" >&6; } | |
20789 | ||
20790 | CY_EXECUTE=1 | |
20791 | ||
20792 | ||
20793 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
20794 | haveit= | |
20795 | for x in $CPPFLAGS; do | |
20796 | ||
20797 | acl_save_prefix="$prefix" | |
20798 | prefix="$acl_final_prefix" | |
20799 | acl_save_exec_prefix="$exec_prefix" | |
20800 | exec_prefix="$acl_final_exec_prefix" | |
20801 | eval x=\"$x\" | |
20802 | exec_prefix="$acl_save_exec_prefix" | |
20803 | prefix="$acl_save_prefix" | |
20804 | ||
20805 | if test "X$x" = "X$element"; then | |
20806 | haveit=yes | |
20807 | break | |
20808 | fi | |
20809 | done | |
20810 | if test -z "$haveit"; then | |
20811 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
20812 | fi | |
20813 | done | |
20814 | ||
20815 | ||
20816 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
20817 | haveit= | |
20818 | for x in $LIBS; do | |
20819 | ||
20820 | acl_save_prefix="$prefix" | |
20821 | prefix="$acl_final_prefix" | |
20822 | acl_save_exec_prefix="$exec_prefix" | |
20823 | exec_prefix="$acl_final_exec_prefix" | |
20824 | eval x=\"$x\" | |
20825 | exec_prefix="$acl_save_exec_prefix" | |
20826 | prefix="$acl_save_prefix" | |
20827 | ||
20828 | if test "X$x" = "X$element"; then | |
20829 | haveit=yes | |
20830 | break | |
20831 | fi | |
20832 | done | |
20833 | if test -z "$haveit"; then | |
20834 | LIBS="${LIBS}${LIBS:+ }$element" | |
20835 | fi | |
20836 | done | |
20837 | ||
20838 | ||
20839 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
20840 | done | |
20841 | ||
20842 | fi | |
9918a0fa JF |
20843 | fi |
20844 | ||
babf7fe8 JF |
20845 | LTJAVASCRIPTCORE=$LIBS |
20846 | LIBS=$cy_save | |
20847 | ||
20848 | ||
20849 | ||
20850 | fi | |
20851 | ||
20852 | ||
a93f15c0 JF |
20853 | # Check whether --enable-console was given. |
20854 | if test "${enable_console+set}" = set; then : | |
20855 | enableval=$enable_console; | |
20856 | fi | |
20857 | ||
20858 | if test "x$enable_console" != "xno"; then | |
20859 | CY_CONSOLE_TRUE= | |
20860 | CY_CONSOLE_FALSE='#' | |
20861 | else | |
20862 | CY_CONSOLE_TRUE='#' | |
20863 | CY_CONSOLE_FALSE= | |
20864 | fi | |
20865 | ||
20866 | ||
a4287117 JF |
20867 | # Check whether --enable-attach was given. |
20868 | if test "${enable_attach+set}" = set; then : | |
20869 | enableval=$enable_attach; | |
20870 | fi | |
20871 | ||
20872 | if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then | |
20873 | CY_ATTACH_TRUE= | |
20874 | CY_ATTACH_FALSE='#' | |
20875 | else | |
20876 | CY_ATTACH_TRUE='#' | |
20877 | CY_ATTACH_FALSE= | |
20878 | fi | |
20879 | ||
20880 | ||
7eda51e0 JF |
20881 | |
20882 | ||
20883 | if test "x$CY_EXECUTE" = x1; then | |
20884 | CY_EXECUTE_TRUE= | |
20885 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 20886 | else |
7eda51e0 JF |
20887 | CY_EXECUTE_TRUE='#' |
20888 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
20889 | fi |
20890 | ||
20891 | ||
20892 | ||
7eda51e0 JF |
20893 | case $CY_EXECUTE in #( |
20894 | 1) : | |
20895 | ||
20896 | for ac_header in ffi.h ffi/ffi.h | |
20897 | do : | |
20898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20899 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20900 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20901 | cat >>confdefs.h <<_ACEOF | |
20902 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20903 | _ACEOF | |
20904 | break | |
b66977f1 | 20905 | fi |
7eda51e0 JF |
20906 | |
20907 | done | |
20908 | ||
296ee9a6 JF |
20909 | |
20910 | ||
20911 | cy_save=$LIBS | |
20912 | LIBS= | |
7eda51e0 | 20913 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 20914 | |
b66977f1 | 20915 | |
296ee9a6 JF |
20916 | LIBFFI_CFLAGS |
20917 | C compiler flags for LIBFFI, overriding pkg-config | |
20918 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
20919 | |
20920 | pkg_failed=no | |
7eda51e0 JF |
20921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
20922 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 20923 | |
7eda51e0 JF |
20924 | if test -n "$LIBFFI_CFLAGS"; then |
20925 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
20926 | elif test -n "$PKG_CONFIG"; then |
20927 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
20928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
20929 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
20930 | ac_status=$? |
20931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20932 | test $ac_status = 0; }; then | |
7eda51e0 | 20933 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 20934 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
20935 | else |
20936 | pkg_failed=yes | |
20937 | fi | |
12833ad8 JF |
20938 | else |
20939 | pkg_failed=untried | |
b66977f1 | 20940 | fi |
7eda51e0 JF |
20941 | if test -n "$LIBFFI_LIBS"; then |
20942 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
20943 | elif test -n "$PKG_CONFIG"; then |
20944 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
20945 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
20946 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
20947 | ac_status=$? |
20948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20949 | test $ac_status = 0; }; then | |
7eda51e0 | 20950 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 20951 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
20952 | else |
20953 | pkg_failed=yes | |
20954 | fi | |
12833ad8 JF |
20955 | else |
20956 | pkg_failed=untried | |
b66977f1 DWT |
20957 | fi |
20958 | ||
20959 | ||
20960 | ||
20961 | if test $pkg_failed = yes; then | |
12833ad8 JF |
20962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20963 | $as_echo "no" >&6; } | |
b66977f1 DWT |
20964 | |
20965 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20966 | _pkg_short_errors_supported=yes | |
20967 | else | |
20968 | _pkg_short_errors_supported=no | |
20969 | fi | |
20970 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 20971 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 20972 | else |
83c6fec8 | 20973 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
20974 | fi |
20975 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 20976 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 20977 | |
7eda51e0 JF |
20978 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
20979 | elif test $pkg_failed = untried; then | |
20980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20981 | $as_echo "no" >&6; } | |
20982 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
20983 | else | |
20984 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
20985 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20987 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
20988 | |
20989 | ||
7eda51e0 | 20990 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 20991 | haveit= |
d70419f1 | 20992 | for x in $CPPFLAGS; do |
b66977f1 DWT |
20993 | |
20994 | acl_save_prefix="$prefix" | |
20995 | prefix="$acl_final_prefix" | |
20996 | acl_save_exec_prefix="$exec_prefix" | |
20997 | exec_prefix="$acl_final_exec_prefix" | |
20998 | eval x=\"$x\" | |
20999 | exec_prefix="$acl_save_exec_prefix" | |
21000 | prefix="$acl_save_prefix" | |
21001 | ||
21002 | if test "X$x" = "X$element"; then | |
21003 | haveit=yes | |
21004 | break | |
21005 | fi | |
21006 | done | |
21007 | if test -z "$haveit"; then | |
d70419f1 | 21008 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
21009 | fi |
21010 | done | |
21011 | ||
21012 | ||
7eda51e0 | 21013 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
21014 | haveit= |
21015 | for x in $LIBS; do | |
21016 | ||
21017 | acl_save_prefix="$prefix" | |
21018 | prefix="$acl_final_prefix" | |
21019 | acl_save_exec_prefix="$exec_prefix" | |
21020 | exec_prefix="$acl_final_exec_prefix" | |
21021 | eval x=\"$x\" | |
21022 | exec_prefix="$acl_save_exec_prefix" | |
21023 | prefix="$acl_save_prefix" | |
21024 | ||
21025 | if test "X$x" = "X$element"; then | |
21026 | haveit=yes | |
21027 | break | |
21028 | fi | |
21029 | done | |
21030 | if test -z "$haveit"; then | |
21031 | LIBS="${LIBS}${LIBS:+ }$element" | |
21032 | fi | |
21033 | done | |
21034 | ||
21035 | ||
21036 | fi | |
21037 | ||
7eda51e0 JF |
21038 | else |
21039 | ||
21040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
21041 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
21042 | if ${ac_cv_search_ffi_call+:} false; then : | |
21043 | $as_echo_n "(cached) " >&6 | |
21044 | else | |
21045 | ac_func_search_save_LIBS=$LIBS | |
21046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21047 | /* end confdefs.h. */ | |
21048 | ||
21049 | /* Override any GCC internal prototype to avoid an error. | |
21050 | Use char because int might match the return type of a GCC | |
21051 | builtin and then its argument prototype would still apply. */ | |
21052 | #ifdef __cplusplus | |
21053 | extern "C" | |
21054 | #endif | |
21055 | char ffi_call (); | |
21056 | int | |
21057 | main () | |
21058 | { | |
21059 | return ffi_call (); | |
21060 | ; | |
21061 | return 0; | |
21062 | } | |
21063 | _ACEOF | |
21064 | for ac_lib in '' ffi; do | |
21065 | if test -z "$ac_lib"; then | |
21066 | ac_res="none required" | |
21067 | else | |
21068 | ac_res=-l$ac_lib | |
21069 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21070 | fi | |
21071 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21072 | ac_cv_search_ffi_call=$ac_res | |
21073 | fi | |
21074 | rm -f core conftest.err conftest.$ac_objext \ | |
21075 | conftest$ac_exeext | |
21076 | if ${ac_cv_search_ffi_call+:} false; then : | |
21077 | break | |
21078 | fi | |
21079 | done | |
21080 | if ${ac_cv_search_ffi_call+:} false; then : | |
21081 | ||
21082 | else | |
21083 | ac_cv_search_ffi_call=no | |
21084 | fi | |
21085 | rm conftest.$ac_ext | |
21086 | LIBS=$ac_func_search_save_LIBS | |
21087 | fi | |
21088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
21089 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
21090 | ac_res=$ac_cv_search_ffi_call | |
21091 | if test "$ac_res" != no; then : | |
21092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21093 | ||
21094 | fi | |
21095 | ||
21096 | case $ac_cv_search_ffi_call in #( | |
21097 | no) : | |
b66977f1 DWT |
21098 | |
21099 | ||
21100 | pkg_failed=no | |
7eda51e0 JF |
21101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
21102 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 21103 | |
7eda51e0 JF |
21104 | if test -n "$LIBFFI_CFLAGS"; then |
21105 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
21106 | elif test -n "$PKG_CONFIG"; then |
21107 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21109 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21110 | ac_status=$? |
21111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21112 | test $ac_status = 0; }; then | |
7eda51e0 | 21113 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 21114 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21115 | else |
21116 | pkg_failed=yes | |
21117 | fi | |
12833ad8 JF |
21118 | else |
21119 | pkg_failed=untried | |
b66977f1 | 21120 | fi |
7eda51e0 JF |
21121 | if test -n "$LIBFFI_LIBS"; then |
21122 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
21123 | elif test -n "$PKG_CONFIG"; then |
21124 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21126 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21127 | ac_status=$? |
21128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21129 | test $ac_status = 0; }; then | |
7eda51e0 | 21130 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 21131 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21132 | else |
21133 | pkg_failed=yes | |
21134 | fi | |
12833ad8 JF |
21135 | else |
21136 | pkg_failed=untried | |
b66977f1 DWT |
21137 | fi |
21138 | ||
21139 | ||
21140 | ||
21141 | if test $pkg_failed = yes; then | |
12833ad8 JF |
21142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21143 | $as_echo "no" >&6; } | |
b66977f1 DWT |
21144 | |
21145 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21146 | _pkg_short_errors_supported=yes | |
21147 | else | |
21148 | _pkg_short_errors_supported=no | |
21149 | fi | |
21150 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 21151 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 21152 | else |
83c6fec8 | 21153 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
21154 | fi |
21155 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 21156 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 21157 | |
7eda51e0 JF |
21158 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
21159 | elif test $pkg_failed = untried; then | |
21160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21161 | $as_echo "no" >&6; } | |
21162 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 21163 | else |
7eda51e0 JF |
21164 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
21165 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
21166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21167 | $as_echo "yes" >&6; } | |
b66977f1 | 21168 | |
b66977f1 | 21169 | |
7eda51e0 | 21170 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 21171 | haveit= |
d70419f1 | 21172 | for x in $CPPFLAGS; do |
7eda51e0 JF |
21173 | |
21174 | acl_save_prefix="$prefix" | |
21175 | prefix="$acl_final_prefix" | |
21176 | acl_save_exec_prefix="$exec_prefix" | |
21177 | exec_prefix="$acl_final_exec_prefix" | |
21178 | eval x=\"$x\" | |
21179 | exec_prefix="$acl_save_exec_prefix" | |
21180 | prefix="$acl_save_prefix" | |
21181 | ||
21182 | if test "X$x" = "X$element"; then | |
21183 | haveit=yes | |
21184 | break | |
21185 | fi | |
21186 | done | |
21187 | if test -z "$haveit"; then | |
d70419f1 | 21188 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
21189 | fi |
21190 | done | |
21191 | ||
21192 | ||
7eda51e0 JF |
21193 | for element in `$PKG_CONFIG --libs libffi`; do |
21194 | haveit= | |
21195 | for x in $LIBS; do | |
21196 | ||
21197 | acl_save_prefix="$prefix" | |
21198 | prefix="$acl_final_prefix" | |
21199 | acl_save_exec_prefix="$exec_prefix" | |
21200 | exec_prefix="$acl_final_exec_prefix" | |
21201 | eval x=\"$x\" | |
21202 | exec_prefix="$acl_save_exec_prefix" | |
21203 | prefix="$acl_save_prefix" | |
21204 | ||
21205 | if test "X$x" = "X$element"; then | |
21206 | haveit=yes | |
21207 | break | |
21208 | fi | |
21209 | done | |
21210 | if test -z "$haveit"; then | |
21211 | LIBS="${LIBS}${LIBS:+ }$element" | |
21212 | fi | |
21213 | done | |
21214 | ||
21215 | ||
21216 | fi ;; #( | |
21217 | *) : | |
21218 | ;; | |
21219 | esac | |
21220 | ||
21221 | fi | |
296ee9a6 JF |
21222 | LTLIBFFI=$LIBS |
21223 | LIBS=$cy_save | |
21224 | ||
21225 | ||
7eda51e0 | 21226 | |
def90846 JF |
21227 | |
21228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5 | |
21229 | $as_echo_n "checking for framework JavaVM... " >&6; } | |
21230 | if ${ac_cv_framework_JavaVM+:} false; then : | |
21231 | $as_echo_n "(cached) " >&6 | |
21232 | else | |
21233 | ||
21234 | ac_check_framework_save_LIBS=$LIBS | |
21235 | LIBS="-framework JavaVM $LIBS" | |
21236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21237 | /* end confdefs.h. */ | |
21238 | ||
21239 | #include <JavaVM/jni.h> | |
21240 | ||
21241 | int | |
21242 | main () | |
21243 | { | |
21244 | JNI_GetCreatedJavaVMs(NULL, 0, NULL); | |
21245 | ; | |
21246 | return 0; | |
21247 | } | |
21248 | _ACEOF | |
21249 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21250 | ||
21251 | ac_cv_framework_JavaVM=yes | |
21252 | ||
21253 | else | |
21254 | ac_cv_framework_JavaVM=no | |
21255 | fi | |
21256 | rm -f core conftest.err conftest.$ac_objext \ | |
21257 | conftest$ac_exeext conftest.$ac_ext | |
21258 | LIBS=$ac_check_framework_save_LIBS | |
21259 | ||
21260 | fi | |
21261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5 | |
21262 | $as_echo "$ac_cv_framework_JavaVM" >&6; } | |
21263 | if test $ac_cv_framework_JavaVM = yes; then : | |
21264 | ||
21265 | ||
21266 | for element in "-framework JavaVM"; do | |
21267 | haveit= | |
21268 | for x in $LIBS; do | |
21269 | ||
21270 | acl_save_prefix="$prefix" | |
21271 | prefix="$acl_final_prefix" | |
21272 | acl_save_exec_prefix="$exec_prefix" | |
21273 | exec_prefix="$acl_final_exec_prefix" | |
21274 | eval x=\"$x\" | |
21275 | exec_prefix="$acl_save_exec_prefix" | |
21276 | prefix="$acl_save_prefix" | |
21277 | ||
21278 | if test "X$x" = "X$element"; then | |
21279 | haveit=yes | |
21280 | break | |
21281 | fi | |
21282 | done | |
21283 | if test -z "$haveit"; then | |
21284 | LIBS="${LIBS}${LIBS:+ }$element" | |
21285 | fi | |
21286 | done | |
21287 | ||
21288 | ||
21289 | CY_JAVA=1 | |
21290 | ||
21291 | ||
21292 | ||
21293 | else | |
21294 | ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" | |
39ed1631 JF |
21295 | if test "x$ac_cv_header_jni_h" = xyes; then : |
21296 | ||
21297 | CY_JAVA=1 | |
21298 | ||
21299 | ||
21300 | cy_save=$LIBS | |
21301 | LIBS= | |
21302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5 | |
21303 | $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; } | |
21304 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21305 | $as_echo_n "(cached) " >&6 | |
21306 | else | |
21307 | ac_func_search_save_LIBS=$LIBS | |
21308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21309 | /* end confdefs.h. */ | |
21310 | ||
21311 | /* Override any GCC internal prototype to avoid an error. | |
21312 | Use char because int might match the return type of a GCC | |
21313 | builtin and then its argument prototype would still apply. */ | |
21314 | #ifdef __cplusplus | |
21315 | extern "C" | |
21316 | #endif | |
21317 | char JNI_GetCreatedJavaVMs (); | |
21318 | int | |
21319 | main () | |
21320 | { | |
21321 | return JNI_GetCreatedJavaVMs (); | |
21322 | ; | |
21323 | return 0; | |
21324 | } | |
21325 | _ACEOF | |
21326 | for ac_lib in '' dvm; do | |
21327 | if test -z "$ac_lib"; then | |
21328 | ac_res="none required" | |
21329 | else | |
21330 | ac_res=-l$ac_lib | |
21331 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21332 | fi | |
21333 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21334 | ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res | |
21335 | fi | |
21336 | rm -f core conftest.err conftest.$ac_objext \ | |
21337 | conftest$ac_exeext | |
21338 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21339 | break | |
21340 | fi | |
21341 | done | |
21342 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21343 | ||
21344 | else | |
21345 | ac_cv_search_JNI_GetCreatedJavaVMs=no | |
21346 | fi | |
21347 | rm conftest.$ac_ext | |
21348 | LIBS=$ac_func_search_save_LIBS | |
21349 | fi | |
21350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5 | |
21351 | $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; } | |
21352 | ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs | |
21353 | if test "$ac_res" != no; then : | |
21354 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21355 | ||
21356 | ||
21357 | fi | |
21358 | ||
21359 | LTJAVA=$LIBS | |
21360 | LIBS=$cy_save | |
21361 | ||
21362 | ||
21363 | ||
21364 | else | |
21365 | ||
21366 | CY_JAVA=0 | |
21367 | ||
21368 | ||
21369 | fi | |
21370 | ||
21371 | ||
def90846 | 21372 | fi |
39ed1631 | 21373 | |
7eda51e0 JF |
21374 | ac_ext=mm |
21375 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
21376 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21377 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21378 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
21379 | ||
21380 | ||
21381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
21382 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
21383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21384 | /* end confdefs.h. */ | |
21385 | ||
21386 | _ACEOF | |
21387 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
21388 | ||
21389 | CY_OBJECTIVEC=1 | |
21390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21391 | $as_echo "yes" >&6; } | |
21392 | ||
21393 | else | |
21394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 21395 | $as_echo "no" >&6; } |
7eda51e0 JF |
21396 | fi |
21397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 21398 | |
7eda51e0 | 21399 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 21400 | |
7eda51e0 | 21401 | |
babf7fe8 JF |
21402 | cy_save=$LIBS |
21403 | LIBS= | |
21404 | ||
7eda51e0 JF |
21405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
21406 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
21407 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
21408 | $as_echo_n "(cached) " >&6 |
21409 | else | |
21410 | ||
21411 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 21412 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
21413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21414 | /* end confdefs.h. */ | |
21415 | ||
7eda51e0 | 21416 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
21417 | |
21418 | int | |
21419 | main () | |
21420 | { | |
7eda51e0 | 21421 | CFAllocatorGetDefault(); |
b66977f1 DWT |
21422 | ; |
21423 | return 0; | |
21424 | } | |
21425 | _ACEOF | |
7eda51e0 | 21426 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 21427 | |
7eda51e0 | 21428 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
21429 | |
21430 | else | |
7eda51e0 | 21431 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
21432 | fi |
21433 | rm -f core conftest.err conftest.$ac_objext \ | |
21434 | conftest$ac_exeext conftest.$ac_ext | |
21435 | LIBS=$ac_check_framework_save_LIBS | |
21436 | ||
21437 | fi | |
7eda51e0 JF |
21438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
21439 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
21440 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
21441 | |
21442 | ||
7eda51e0 | 21443 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
21444 | haveit= |
21445 | for x in $LIBS; do | |
21446 | ||
21447 | acl_save_prefix="$prefix" | |
21448 | prefix="$acl_final_prefix" | |
21449 | acl_save_exec_prefix="$exec_prefix" | |
21450 | exec_prefix="$acl_final_exec_prefix" | |
21451 | eval x=\"$x\" | |
21452 | exec_prefix="$acl_save_exec_prefix" | |
21453 | prefix="$acl_save_prefix" | |
21454 | ||
21455 | if test "X$x" = "X$element"; then | |
21456 | haveit=yes | |
21457 | break | |
21458 | fi | |
21459 | done | |
21460 | if test -z "$haveit"; then | |
21461 | LIBS="${LIBS}${LIBS:+ }$element" | |
21462 | fi | |
21463 | done | |
21464 | ||
66170b30 | 21465 | |
66170b30 JF |
21466 | |
21467 | ||
b66977f1 | 21468 | |
b66977f1 | 21469 | |
7eda51e0 JF |
21470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
21471 | $as_echo_n "checking for framework Foundation... " >&6; } | |
21472 | if ${ac_cv_framework_Foundation+:} false; then : | |
21473 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 21474 | else |
b66977f1 | 21475 | |
7eda51e0 JF |
21476 | ac_check_framework_save_LIBS=$LIBS |
21477 | LIBS="-framework Foundation $LIBS" | |
21478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21479 | /* end confdefs.h. */ | |
66170b30 | 21480 | |
7eda51e0 | 21481 | #include <Foundation/NSObject.h> |
b66977f1 | 21482 | |
7eda51e0 JF |
21483 | int |
21484 | main () | |
21485 | { | |
21486 | [[NSObject alloc] init]; | |
21487 | ; | |
21488 | return 0; | |
21489 | } | |
21490 | _ACEOF | |
21491 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 21492 | |
7eda51e0 | 21493 | ac_cv_framework_Foundation=yes |
b66977f1 | 21494 | |
7eda51e0 JF |
21495 | else |
21496 | ac_cv_framework_Foundation=no | |
21497 | fi | |
21498 | rm -f core conftest.err conftest.$ac_objext \ | |
21499 | conftest$ac_exeext conftest.$ac_ext | |
21500 | LIBS=$ac_check_framework_save_LIBS | |
21501 | ||
21502 | fi | |
21503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
21504 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
21505 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
21506 | |
21507 | ||
7eda51e0 | 21508 | for element in "-framework Foundation"; do |
b66977f1 DWT |
21509 | haveit= |
21510 | for x in $LIBS; do | |
21511 | ||
21512 | acl_save_prefix="$prefix" | |
21513 | prefix="$acl_final_prefix" | |
21514 | acl_save_exec_prefix="$exec_prefix" | |
21515 | exec_prefix="$acl_final_exec_prefix" | |
21516 | eval x=\"$x\" | |
21517 | exec_prefix="$acl_save_exec_prefix" | |
21518 | prefix="$acl_save_prefix" | |
21519 | ||
21520 | if test "X$x" = "X$element"; then | |
21521 | haveit=yes | |
21522 | break | |
21523 | fi | |
21524 | done | |
21525 | if test -z "$haveit"; then | |
21526 | LIBS="${LIBS}${LIBS:+ }$element" | |
21527 | fi | |
21528 | done | |
21529 | ||
7eda51e0 JF |
21530 | cat >>confdefs.h <<_ACEOF |
21531 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
21532 | _ACEOF | |
21533 | ||
b66977f1 | 21534 | |
7eda51e0 | 21535 | fi |
b66977f1 DWT |
21536 | |
21537 | ||
7eda51e0 | 21538 | else |
b66977f1 | 21539 | |
b66977f1 | 21540 | |
7eda51e0 JF |
21541 | for ac_prog in gnustep-config |
21542 | do | |
21543 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21544 | set dummy $ac_prog; ac_word=$2 | |
21545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21546 | $as_echo_n "checking for $ac_word... " >&6; } | |
21547 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
21548 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 21549 | else |
7eda51e0 JF |
21550 | if test -n "$GNUSTEP_CONFIG"; then |
21551 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 21552 | else |
7eda51e0 JF |
21553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21554 | for as_dir in $PATH | |
21555 | do | |
21556 | IFS=$as_save_IFS | |
21557 | test -z "$as_dir" && as_dir=. | |
21558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21560 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
21561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21562 | break 2 | |
21563 | fi | |
21564 | done | |
21565 | done | |
21566 | IFS=$as_save_IFS | |
b66977f1 | 21567 | |
b66977f1 | 21568 | fi |
b66977f1 | 21569 | fi |
7eda51e0 JF |
21570 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
21571 | if test -n "$GNUSTEP_CONFIG"; then | |
21572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
21573 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 21574 | else |
7eda51e0 | 21575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 21576 | $as_echo "no" >&6; } |
b66977f1 | 21577 | fi |
66170b30 | 21578 | |
66170b30 | 21579 | |
7eda51e0 JF |
21580 | test -n "$GNUSTEP_CONFIG" && break |
21581 | done | |
b66977f1 | 21582 | |
b66977f1 | 21583 | |
7eda51e0 | 21584 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 21585 | |
b66977f1 DWT |
21586 | |
21587 | ||
7eda51e0 | 21588 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 21589 | haveit= |
7eda51e0 | 21590 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
21591 | |
21592 | acl_save_prefix="$prefix" | |
21593 | prefix="$acl_final_prefix" | |
21594 | acl_save_exec_prefix="$exec_prefix" | |
21595 | exec_prefix="$acl_final_exec_prefix" | |
21596 | eval x=\"$x\" | |
21597 | exec_prefix="$acl_save_exec_prefix" | |
21598 | prefix="$acl_save_prefix" | |
21599 | ||
21600 | if test "X$x" = "X$element"; then | |
21601 | haveit=yes | |
21602 | break | |
21603 | fi | |
21604 | done | |
babf7fe8 JF |
21605 | if test -z "$haveit"; then |
21606 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
21607 | fi | |
21608 | done | |
a667869d | 21609 | |
a667869d | 21610 | |
babf7fe8 | 21611 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 21612 | haveit= |
babf7fe8 | 21613 | for x in $LIBS; do |
a667869d | 21614 | |
632b71ea DWT |
21615 | acl_save_prefix="$prefix" |
21616 | prefix="$acl_final_prefix" | |
21617 | acl_save_exec_prefix="$exec_prefix" | |
21618 | exec_prefix="$acl_final_exec_prefix" | |
21619 | eval x=\"$x\" | |
21620 | exec_prefix="$acl_save_exec_prefix" | |
21621 | prefix="$acl_save_prefix" | |
21622 | ||
21623 | if test "X$x" = "X$element"; then | |
21624 | haveit=yes | |
21625 | break | |
21626 | fi | |
21627 | done | |
21628 | if test -z "$haveit"; then | |
babf7fe8 | 21629 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
21630 | fi |
21631 | done | |
21632 | ||
5053a6d1 | 21633 | |
babf7fe8 JF |
21634 | else |
21635 | CY_OBJECTIVEC=0 | |
21636 | ||
21637 | fi | |
21638 | ||
21639 | fi | |
21640 | LTOBJECTIVEC=$LIBS | |
21641 | LIBS=$cy_save | |
21642 | ||
21643 | ||
21644 | ||
21645 | fi | |
21646 | ||
21647 | ac_ext=cpp | |
21648 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21649 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21650 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21651 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21652 | ||
21653 | ;; #( | |
21654 | *) : | |
21655 | ;; | |
21656 | esac | |
21657 | ||
39ed1631 JF |
21658 | if test "x$CY_JAVA" = x1; then |
21659 | CY_JAVA_TRUE= | |
21660 | CY_JAVA_FALSE='#' | |
21661 | else | |
21662 | CY_JAVA_TRUE='#' | |
21663 | CY_JAVA_FALSE= | |
21664 | fi | |
21665 | ||
babf7fe8 JF |
21666 | if test "x$CY_OBJECTIVEC" = x1; then |
21667 | CY_OBJECTIVEC_TRUE= | |
21668 | CY_OBJECTIVEC_FALSE='#' | |
21669 | else | |
21670 | CY_OBJECTIVEC_TRUE='#' | |
21671 | CY_OBJECTIVEC_FALSE= | |
21672 | fi | |
21673 | ||
21674 | ||
21675 | ||
21676 | cy_save=$LIBS | |
21677 | LIBS= | |
21678 | ||
21679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
21680 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
21681 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 21682 | $as_echo_n "(cached) " >&6 |
a667869d | 21683 | else |
632b71ea | 21684 | |
babf7fe8 JF |
21685 | ORIG_LIBS="$LIBS" |
21686 | for readline_lib in readline edit editline; do | |
21687 | for termcap_lib in "" termcap curses ncurses; do | |
21688 | if test -z "$termcap_lib"; then | |
21689 | TRY_LIB="-l$readline_lib" | |
21690 | else | |
21691 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
21692 | fi | |
21693 | LIBS="$ORIG_LIBS $TRY_LIB" | |
21694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 21695 | /* end confdefs.h. */ |
632b71ea | 21696 | |
babf7fe8 JF |
21697 | /* Override any GCC internal prototype to avoid an error. |
21698 | Use char because int might match the return type of a GCC | |
21699 | builtin and then its argument prototype would still apply. */ | |
21700 | #ifdef __cplusplus | |
21701 | extern "C" | |
21702 | #endif | |
21703 | char readline (); | |
5053a6d1 DWT |
21704 | int |
21705 | main () | |
21706 | { | |
babf7fe8 | 21707 | return readline (); |
5053a6d1 DWT |
21708 | ; |
21709 | return 0; | |
21710 | } | |
21711 | _ACEOF | |
babf7fe8 JF |
21712 | if ac_fn_cxx_try_link "$LINENO"; then : |
21713 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
21714 | fi |
21715 | rm -f core conftest.err conftest.$ac_objext \ | |
21716 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
21717 | if test -n "$ax_cv_lib_readline"; then |
21718 | break | |
21719 | fi | |
21720 | done | |
21721 | if test -n "$ax_cv_lib_readline"; then | |
21722 | break | |
21723 | fi | |
21724 | done | |
21725 | if test -z "$ax_cv_lib_readline"; then | |
21726 | ax_cv_lib_readline="no" | |
21727 | fi | |
21728 | LIBS="$ORIG_LIBS" | |
21729 | ||
21730 | fi | |
21731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
21732 | $as_echo "$ax_cv_lib_readline" >&6; } | |
21733 | ||
21734 | if test "$ax_cv_lib_readline" != "no"; then | |
21735 | LIBS="$LIBS $ax_cv_lib_readline" | |
21736 | ||
21737 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
21738 | ||
21739 | for ac_header in readline.h readline/readline.h | |
21740 | do : | |
21741 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21742 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21743 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21744 | cat >>confdefs.h <<_ACEOF | |
21745 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21746 | _ACEOF | |
21747 | ||
21748 | fi | |
21749 | ||
21750 | done | |
21751 | ||
21752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
21753 | $as_echo_n "checking whether readline supports history... " >&6; } | |
21754 | if ${ax_cv_lib_readline_history+:} false; then : | |
21755 | $as_echo_n "(cached) " >&6 | |
21756 | else | |
21757 | ||
21758 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
21759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21760 | /* end confdefs.h. */ | |
5053a6d1 | 21761 | |
babf7fe8 JF |
21762 | /* Override any GCC internal prototype to avoid an error. |
21763 | Use char because int might match the return type of a GCC | |
21764 | builtin and then its argument prototype would still apply. */ | |
21765 | #ifdef __cplusplus | |
21766 | extern "C" | |
21767 | #endif | |
21768 | char add_history (); | |
058f1bc8 DWT |
21769 | int |
21770 | main () | |
21771 | { | |
babf7fe8 | 21772 | return add_history (); |
058f1bc8 DWT |
21773 | ; |
21774 | return 0; | |
21775 | } | |
21776 | _ACEOF | |
babf7fe8 JF |
21777 | if ac_fn_cxx_try_link "$LINENO"; then : |
21778 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
21779 | fi |
21780 | rm -f core conftest.err conftest.$ac_objext \ | |
21781 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 21782 | |
a667869d | 21783 | fi |
babf7fe8 JF |
21784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
21785 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
21786 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 21787 | |
babf7fe8 | 21788 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 21789 | |
babf7fe8 JF |
21790 | for ac_header in history.h readline/history.h |
21791 | do : | |
21792 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21793 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21794 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21795 | cat >>confdefs.h <<_ACEOF | |
21796 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 21797 | _ACEOF |
babf7fe8 | 21798 | |
7eda51e0 | 21799 | fi |
058f1bc8 | 21800 | |
babf7fe8 | 21801 | done |
058f1bc8 | 21802 | |
babf7fe8 | 21803 | fi |
7eda51e0 | 21804 | fi |
058f1bc8 | 21805 | |
babf7fe8 JF |
21806 | LTLIBREADLINE=$LIBS |
21807 | LIBS=$cy_save | |
058f1bc8 | 21808 | |
058f1bc8 | 21809 | |
babf7fe8 JF |
21810 | case $ax_cv_lib_readline in #( |
21811 | no) : | |
21812 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
21813 | *) : | |
21814 | ;; | |
21815 | esac | |
058f1bc8 DWT |
21816 | |
21817 | ||
babf7fe8 JF |
21818 | cy_save=$LIBS |
21819 | LIBS= | |
21820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
21821 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
21822 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
21823 | $as_echo_n "(cached) " >&6 |
21824 | else | |
babf7fe8 JF |
21825 | ac_func_search_save_LIBS=$LIBS |
21826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
21827 | /* end confdefs.h. */ |
21828 | ||
babf7fe8 JF |
21829 | /* Override any GCC internal prototype to avoid an error. |
21830 | Use char because int might match the return type of a GCC | |
21831 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 21832 | #ifdef __cplusplus |
babf7fe8 | 21833 | extern "C" |
7eda51e0 | 21834 | #endif |
babf7fe8 | 21835 | char cur_term (); |
7eda51e0 JF |
21836 | int |
21837 | main () | |
21838 | { | |
babf7fe8 | 21839 | return cur_term (); |
7eda51e0 JF |
21840 | ; |
21841 | return 0; | |
21842 | } | |
21843 | _ACEOF | |
a93f15c0 | 21844 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
21845 | if test -z "$ac_lib"; then |
21846 | ac_res="none required" | |
21847 | else | |
21848 | ac_res=-l$ac_lib | |
21849 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21850 | fi | |
21851 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21852 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 21853 | fi |
babf7fe8 JF |
21854 | rm -f core conftest.err conftest.$ac_objext \ |
21855 | conftest$ac_exeext | |
21856 | if ${ac_cv_search_cur_term+:} false; then : | |
21857 | break | |
7eda51e0 | 21858 | fi |
babf7fe8 JF |
21859 | done |
21860 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 21861 | |
babf7fe8 JF |
21862 | else |
21863 | ac_cv_search_cur_term=no | |
21864 | fi | |
21865 | rm conftest.$ac_ext | |
21866 | LIBS=$ac_func_search_save_LIBS | |
21867 | fi | |
21868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
21869 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
21870 | ac_res=$ac_cv_search_cur_term | |
21871 | if test "$ac_res" != no; then : | |
21872 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 21873 | |
babf7fe8 | 21874 | fi |
058f1bc8 | 21875 | |
babf7fe8 JF |
21876 | LTLIBTERMCAP=$LIBS |
21877 | LIBS=$cy_save | |
058f1bc8 | 21878 | |
058f1bc8 | 21879 | |
66170b30 JF |
21880 | |
21881 | ||
3615a2f7 JF |
21882 | |
21883 | ||
9777bd50 JF |
21884 | SO=$acl_shlibext |
21885 | ||
e1cce270 | 21886 | |
a243b558 JF |
21887 | ac_config_files="$ac_config_files Makefile" |
21888 | ||
9c60689e DWT |
21889 | cat >confcache <<\_ACEOF |
21890 | # This file is a shell script that caches the results of configure | |
21891 | # tests run on this system so they can be shared between configure | |
21892 | # scripts and configure runs, see configure's option --config-cache. | |
21893 | # It is not useful on other systems. If it contains results you don't | |
21894 | # want to keep, you may remove or edit it. | |
21895 | # | |
21896 | # config.status only pays attention to the cache file if you give it | |
21897 | # the --recheck option to rerun configure. | |
21898 | # | |
21899 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21900 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21901 | # following values. | |
21902 | ||
21903 | _ACEOF | |
21904 | ||
21905 | # The following way of writing the cache mishandles newlines in values, | |
21906 | # but we know of no workaround that is simple, portable, and efficient. | |
21907 | # So, we kill variables containing newlines. | |
21908 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21909 | # and sets the high bit in the cache file unless we assign to the vars. | |
21910 | ( | |
21911 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21912 | eval ac_val=\$$ac_var | |
21913 | case $ac_val in #( | |
21914 | *${as_nl}*) | |
21915 | case $ac_var in #( | |
21916 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
21917 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
21918 | esac | |
21919 | case $ac_var in #( | |
21920 | _ | IFS | as_nl) ;; #( | |
21921 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
21922 | *) { eval $ac_var=; unset $ac_var;} ;; | |
21923 | esac ;; | |
21924 | esac | |
21925 | done | |
21926 | ||
21927 | (set) 2>&1 | | |
21928 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
21929 | *${as_nl}ac_space=\ *) | |
21930 | # `set' does not quote correctly, so add quotes: double-quote | |
21931 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
21932 | sed -n \ | |
21933 | "s/'/'\\\\''/g; | |
21934 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21935 | ;; #( | |
21936 | *) | |
21937 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21938 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
21939 | ;; | |
21940 | esac | | |
21941 | sort | |
21942 | ) | | |
21943 | sed ' | |
21944 | /^ac_cv_env_/b end | |
21945 | t clear | |
21946 | :clear | |
21947 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21948 | t end | |
21949 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21950 | :end' >>confcache | |
21951 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21952 | if test -w "$cache_file"; then | |
ee134472 | 21953 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
21954 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
21955 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
21956 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
21957 | cat confcache >"$cache_file" | |
21958 | else | |
21959 | case $cache_file in #( | |
21960 | */* | ?:*) | |
21961 | mv -f confcache "$cache_file"$$ && | |
21962 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
21963 | *) | |
21964 | mv -f confcache "$cache_file" ;; | |
21965 | esac | |
21966 | fi | |
21967 | fi | |
9c60689e DWT |
21968 | else |
21969 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
21970 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
21971 | fi | |
21972 | fi | |
21973 | rm -f confcache | |
21974 | ||
21975 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21976 | # Let make expand exec_prefix. | |
21977 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21978 | ||
296ee9a6 | 21979 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
21980 | |
21981 | ac_libobjs= | |
21982 | ac_ltlibobjs= | |
12833ad8 | 21983 | U= |
9c60689e DWT |
21984 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
21985 | # 1. Remove the extension, and $U if already installed. | |
21986 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
21987 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
21988 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
21989 | # will be set to the directory where LIBOBJS objects are built. | |
21990 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
21991 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
21992 | done | |
21993 | LIBOBJS=$ac_libobjs | |
21994 | ||
21995 | LTLIBOBJS=$ac_ltlibobjs | |
21996 | ||
21997 | ||
66170b30 JF |
21998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
21999 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
22000 | if test -n "$am_sleep_pid"; then | |
22001 | # Hide warnings about reused PIDs. | |
22002 | wait $am_sleep_pid 2>/dev/null | |
22003 | fi | |
22004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
22005 | $as_echo "done" >&6; } | |
22006 | if test -n "$EXEEXT"; then | |
22007 | am__EXEEXT_TRUE= | |
22008 | am__EXEEXT_FALSE='#' | |
22009 | else | |
22010 | am__EXEEXT_TRUE='#' | |
22011 | am__EXEEXT_FALSE= | |
22012 | fi | |
22013 | ||
babf7fe8 JF |
22014 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22015 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
22016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22017 | fi | |
66170b30 JF |
22018 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22019 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
22020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22021 | fi | |
a93f15c0 JF |
22022 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22023 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
22024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22025 | fi | |
66170b30 JF |
22026 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
22027 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
22028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22029 | fi | |
22030 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
22031 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
22032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22033 | fi | |
a93f15c0 JF |
22034 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
22035 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
22036 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
22037 | fi | |
a4287117 JF |
22038 | if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then |
22039 | as_fn_error $? "conditional \"CY_ATTACH\" was never defined. | |
22040 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22041 | fi | |
a243b558 JF |
22042 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
22043 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
22044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22045 | fi | |
39ed1631 JF |
22046 | if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then |
22047 | as_fn_error $? "conditional \"CY_JAVA\" was never defined. | |
22048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22049 | fi | |
a243b558 JF |
22050 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then |
22051 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
22052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22053 | fi | |
9c60689e | 22054 | |
ee134472 | 22055 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
22056 | ac_write_fail=0 |
22057 | ac_clean_files_save=$ac_clean_files | |
22058 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22059 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
22060 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22061 | as_write_fail=0 | |
22062 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
22063 | #! $SHELL | |
22064 | # Generated by $as_me. | |
22065 | # Run this file to recreate the current configuration. | |
22066 | # Compiler output produced by configure, useful for debugging | |
22067 | # configure, is in config.log if it exists. | |
22068 | ||
22069 | debug=false | |
22070 | ac_cs_recheck=false | |
22071 | ac_cs_silent=false | |
22072 | ||
22073 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22074 | export SHELL | |
22075 | _ASEOF | |
22076 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
22077 | ## -------------------- ## | |
22078 | ## M4sh Initialization. ## | |
22079 | ## -------------------- ## | |
22080 | ||
22081 | # Be more Bourne compatible | |
22082 | DUALCASE=1; export DUALCASE # for MKS sh | |
22083 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22084 | emulate sh | |
22085 | NULLCMD=: | |
22086 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
22087 | # is contrary to our usage. Disable this feature. | |
22088 | alias -g '${1+"$@"}'='"$@"' | |
22089 | setopt NO_GLOB_SUBST | |
22090 | else | |
22091 | case `(set -o) 2>/dev/null` in #( | |
22092 | *posix*) : | |
22093 | set -o posix ;; #( | |
22094 | *) : | |
22095 | ;; | |
22096 | esac | |
22097 | fi | |
22098 | ||
22099 | ||
22100 | as_nl=' | |
22101 | ' | |
22102 | export as_nl | |
22103 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
22104 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
22105 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
22106 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
22107 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
22108 | # but without wasting forks for bash or zsh. | |
22109 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
22110 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22111 | as_echo='print -r --' | |
22112 | as_echo_n='print -rn --' | |
22113 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22114 | as_echo='printf %s\n' | |
22115 | as_echo_n='printf %s' | |
22116 | else | |
22117 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
22118 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
22119 | as_echo_n='/usr/ucb/echo -n' | |
22120 | else | |
22121 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
22122 | as_echo_n_body='eval | |
22123 | arg=$1; | |
22124 | case $arg in #( | |
22125 | *"$as_nl"*) | |
22126 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
22127 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
22128 | esac; | |
22129 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
22130 | ' | |
22131 | export as_echo_n_body | |
22132 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
22133 | fi | |
22134 | export as_echo_body | |
22135 | as_echo='sh -c $as_echo_body as_echo' | |
22136 | fi | |
22137 | ||
22138 | # The user is always right. | |
22139 | if test "${PATH_SEPARATOR+set}" != set; then | |
22140 | PATH_SEPARATOR=: | |
22141 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
22142 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
22143 | PATH_SEPARATOR=';' | |
22144 | } | |
22145 | fi | |
22146 | ||
22147 | ||
22148 | # IFS | |
22149 | # We need space, tab and new line, in precisely that order. Quoting is | |
22150 | # there to prevent editors from complaining about space-tab. | |
22151 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
22152 | # splitting by setting IFS to empty value.) | |
22153 | IFS=" "" $as_nl" | |
22154 | ||
22155 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 22156 | as_myself= |
9c60689e DWT |
22157 | case $0 in #(( |
22158 | *[\\/]* ) as_myself=$0 ;; | |
22159 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22160 | for as_dir in $PATH | |
22161 | do | |
22162 | IFS=$as_save_IFS | |
22163 | test -z "$as_dir" && as_dir=. | |
22164 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22165 | done | |
22166 | IFS=$as_save_IFS | |
22167 | ||
22168 | ;; | |
22169 | esac | |
22170 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22171 | # in which case we are not to be found in the path. | |
22172 | if test "x$as_myself" = x; then | |
22173 | as_myself=$0 | |
22174 | fi | |
22175 | if test ! -f "$as_myself"; then | |
22176 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
22177 | exit 1 | |
22178 | fi | |
22179 | ||
22180 | # Unset variables that we do not need and which cause bugs (e.g. in | |
22181 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
22182 | # suppresses any "Segmentation fault" message there. '((' could | |
22183 | # trigger a bug in pdksh 5.2.14. | |
22184 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
22185 | do eval test x\${$as_var+set} = xset \ | |
22186 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
22187 | done | |
22188 | PS1='$ ' | |
22189 | PS2='> ' | |
22190 | PS4='+ ' | |
22191 | ||
22192 | # NLS nuisances. | |
22193 | LC_ALL=C | |
22194 | export LC_ALL | |
22195 | LANGUAGE=C | |
22196 | export LANGUAGE | |
22197 | ||
22198 | # CDPATH. | |
22199 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22200 | ||
22201 | ||
12833ad8 JF |
22202 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
22203 | # ---------------------------------------- | |
9c60689e DWT |
22204 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
22205 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 22206 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
22207 | as_fn_error () |
22208 | { | |
12833ad8 JF |
22209 | as_status=$1; test $as_status -eq 0 && as_status=1 |
22210 | if test "$4"; then | |
22211 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22212 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 22213 | fi |
12833ad8 | 22214 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
22215 | as_fn_exit $as_status |
22216 | } # as_fn_error | |
22217 | ||
22218 | ||
22219 | # as_fn_set_status STATUS | |
22220 | # ----------------------- | |
22221 | # Set $? to STATUS, without forking. | |
22222 | as_fn_set_status () | |
22223 | { | |
22224 | return $1 | |
22225 | } # as_fn_set_status | |
22226 | ||
22227 | # as_fn_exit STATUS | |
22228 | # ----------------- | |
22229 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
22230 | as_fn_exit () | |
22231 | { | |
22232 | set +e | |
22233 | as_fn_set_status $1 | |
22234 | exit $1 | |
22235 | } # as_fn_exit | |
22236 | ||
22237 | # as_fn_unset VAR | |
22238 | # --------------- | |
22239 | # Portably unset VAR. | |
22240 | as_fn_unset () | |
22241 | { | |
22242 | { eval $1=; unset $1;} | |
22243 | } | |
22244 | as_unset=as_fn_unset | |
22245 | # as_fn_append VAR VALUE | |
22246 | # ---------------------- | |
22247 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
22248 | # advantage of any shell optimizations that allow amortized linear growth over | |
22249 | # repeated appends, instead of the typical quadratic growth present in naive | |
22250 | # implementations. | |
22251 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
22252 | eval 'as_fn_append () | |
22253 | { | |
22254 | eval $1+=\$2 | |
22255 | }' | |
22256 | else | |
22257 | as_fn_append () | |
22258 | { | |
22259 | eval $1=\$$1\$2 | |
22260 | } | |
22261 | fi # as_fn_append | |
22262 | ||
22263 | # as_fn_arith ARG... | |
22264 | # ------------------ | |
22265 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
22266 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
22267 | # must be portable across $(()) and expr. | |
22268 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
22269 | eval 'as_fn_arith () | |
22270 | { | |
22271 | as_val=$(( $* )) | |
22272 | }' | |
22273 | else | |
22274 | as_fn_arith () | |
22275 | { | |
22276 | as_val=`expr "$@" || test $? -eq 1` | |
22277 | } | |
22278 | fi # as_fn_arith | |
22279 | ||
22280 | ||
22281 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
22282 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
22283 | as_expr=expr | |
22284 | else | |
22285 | as_expr=false | |
22286 | fi | |
22287 | ||
22288 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
22289 | as_basename=basename | |
22290 | else | |
22291 | as_basename=false | |
22292 | fi | |
22293 | ||
22294 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
22295 | as_dirname=dirname | |
22296 | else | |
22297 | as_dirname=false | |
22298 | fi | |
22299 | ||
22300 | as_me=`$as_basename -- "$0" || | |
22301 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22302 | X"$0" : 'X\(//\)$' \| \ | |
22303 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
22304 | $as_echo X/"$0" | | |
22305 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
22306 | s//\1/ | |
22307 | q | |
22308 | } | |
22309 | /^X\/\(\/\/\)$/{ | |
22310 | s//\1/ | |
22311 | q | |
22312 | } | |
22313 | /^X\/\(\/\).*/{ | |
22314 | s//\1/ | |
22315 | q | |
22316 | } | |
22317 | s/.*/./; q'` | |
22318 | ||
22319 | # Avoid depending upon Character Ranges. | |
22320 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22321 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22322 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22323 | as_cr_digits='0123456789' | |
22324 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22325 | ||
22326 | ECHO_C= ECHO_N= ECHO_T= | |
22327 | case `echo -n x` in #((((( | |
22328 | -n*) | |
22329 | case `echo 'xy\c'` in | |
22330 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
22331 | xy) ECHO_C='\c';; | |
22332 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
22333 | ECHO_T=' ';; | |
22334 | esac;; | |
22335 | *) | |
22336 | ECHO_N='-n';; | |
22337 | esac | |
22338 | ||
22339 | rm -f conf$$ conf$$.exe conf$$.file | |
22340 | if test -d conf$$.dir; then | |
22341 | rm -f conf$$.dir/conf$$.file | |
22342 | else | |
22343 | rm -f conf$$.dir | |
22344 | mkdir conf$$.dir 2>/dev/null | |
22345 | fi | |
22346 | if (echo >conf$$.file) 2>/dev/null; then | |
22347 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22348 | as_ln_s='ln -s' | |
22349 | # ... but there are two gotchas: | |
22350 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
22351 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 22352 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 22353 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 22354 | as_ln_s='cp -pR' |
9c60689e DWT |
22355 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22356 | as_ln_s=ln | |
22357 | else | |
53ba6704 | 22358 | as_ln_s='cp -pR' |
9c60689e DWT |
22359 | fi |
22360 | else | |
53ba6704 | 22361 | as_ln_s='cp -pR' |
9c60689e DWT |
22362 | fi |
22363 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
22364 | rmdir conf$$.dir 2>/dev/null | |
22365 | ||
22366 | ||
22367 | # as_fn_mkdir_p | |
22368 | # ------------- | |
22369 | # Create "$as_dir" as a directory, including parents if necessary. | |
22370 | as_fn_mkdir_p () | |
22371 | { | |
22372 | ||
22373 | case $as_dir in #( | |
22374 | -*) as_dir=./$as_dir;; | |
22375 | esac | |
22376 | test -d "$as_dir" || eval $as_mkdir_p || { | |
22377 | as_dirs= | |
22378 | while :; do | |
22379 | case $as_dir in #( | |
22380 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
22381 | *) as_qdir=$as_dir;; | |
22382 | esac | |
22383 | as_dirs="'$as_qdir' $as_dirs" | |
22384 | as_dir=`$as_dirname -- "$as_dir" || | |
22385 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22386 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22387 | X"$as_dir" : 'X\(//\)$' \| \ | |
22388 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22389 | $as_echo X"$as_dir" | | |
22390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22391 | s//\1/ | |
22392 | q | |
22393 | } | |
22394 | /^X\(\/\/\)[^/].*/{ | |
22395 | s//\1/ | |
22396 | q | |
22397 | } | |
22398 | /^X\(\/\/\)$/{ | |
22399 | s//\1/ | |
22400 | q | |
22401 | } | |
22402 | /^X\(\/\).*/{ | |
22403 | s//\1/ | |
22404 | q | |
22405 | } | |
22406 | s/.*/./; q'` | |
22407 | test -d "$as_dir" && break | |
22408 | done | |
22409 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 22410 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
22411 | |
22412 | ||
22413 | } # as_fn_mkdir_p | |
22414 | if mkdir -p . 2>/dev/null; then | |
22415 | as_mkdir_p='mkdir -p "$as_dir"' | |
22416 | else | |
22417 | test -d ./-p && rmdir ./-p | |
22418 | as_mkdir_p=false | |
22419 | fi | |
22420 | ||
53ba6704 JF |
22421 | |
22422 | # as_fn_executable_p FILE | |
22423 | # ----------------------- | |
22424 | # Test if FILE is an executable regular file. | |
22425 | as_fn_executable_p () | |
22426 | { | |
22427 | test -f "$1" && test -x "$1" | |
22428 | } # as_fn_executable_p | |
22429 | as_test_x='test -x' | |
22430 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
22431 | |
22432 | # Sed expression to map a string onto a valid CPP name. | |
22433 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22434 | ||
22435 | # Sed expression to map a string onto a valid variable name. | |
22436 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22437 | ||
22438 | ||
22439 | exec 6>&1 | |
22440 | ## ----------------------------------- ## | |
22441 | ## Main body of $CONFIG_STATUS script. ## | |
22442 | ## ----------------------------------- ## | |
22443 | _ASEOF | |
22444 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
22445 | ||
22446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22447 | # Save the log message, to keep $0 and so on meaningful, and to | |
22448 | # report actual input values of CONFIG_FILES etc. instead of their | |
22449 | # values after options handling. | |
22450 | ac_log=" | |
22451 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 22452 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
22453 | |
22454 | CONFIG_FILES = $CONFIG_FILES | |
22455 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22456 | CONFIG_LINKS = $CONFIG_LINKS | |
22457 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22458 | $ $0 $@ | |
22459 | ||
22460 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
22461 | " | |
22462 | ||
22463 | _ACEOF | |
22464 | ||
22465 | case $ac_config_files in *" | |
22466 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
22467 | esac | |
22468 | ||
296ee9a6 JF |
22469 | case $ac_config_headers in *" |
22470 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
22471 | esac | |
9c60689e DWT |
22472 | |
22473 | ||
22474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22475 | # Files that config.status was made for. | |
22476 | config_files="$ac_config_files" | |
296ee9a6 | 22477 | config_headers="$ac_config_headers" |
9c60689e DWT |
22478 | config_commands="$ac_config_commands" |
22479 | ||
22480 | _ACEOF | |
22481 | ||
22482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22483 | ac_cs_usage="\ | |
22484 | \`$as_me' instantiates files and other configuration actions | |
22485 | from templates according to the current configuration. Unless the files | |
22486 | and actions are specified as TAGs, all are instantiated by default. | |
22487 | ||
22488 | Usage: $0 [OPTION]... [TAG]... | |
22489 | ||
22490 | -h, --help print this help, then exit | |
22491 | -V, --version print version number and configuration settings, then exit | |
22492 | --config print configuration, then exit | |
22493 | -q, --quiet, --silent | |
22494 | do not print progress messages | |
22495 | -d, --debug don't remove temporary files | |
22496 | --recheck update $as_me by reconfiguring in the same conditions | |
22497 | --file=FILE[:TEMPLATE] | |
22498 | instantiate the configuration file FILE | |
296ee9a6 JF |
22499 | --header=FILE[:TEMPLATE] |
22500 | instantiate the configuration header FILE | |
9c60689e DWT |
22501 | |
22502 | Configuration files: | |
22503 | $config_files | |
22504 | ||
296ee9a6 JF |
22505 | Configuration headers: |
22506 | $config_headers | |
22507 | ||
9c60689e DWT |
22508 | Configuration commands: |
22509 | $config_commands | |
22510 | ||
22511 | Report bugs to <saurik@saurik.com>. | |
22512 | Cycript home page: <http://www.cycript.org/>." | |
22513 | ||
22514 | _ACEOF | |
22515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22516 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
22517 | ac_cs_version="\\ | |
22518 | Cycript config.status 0.9 | |
53ba6704 | 22519 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
22520 | with options \\"\$ac_cs_config\\" |
22521 | ||
53ba6704 | 22522 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
22523 | This config.status script is free software; the Free Software Foundation |
22524 | gives unlimited permission to copy, distribute and modify it." | |
22525 | ||
22526 | ac_pwd='$ac_pwd' | |
22527 | srcdir='$srcdir' | |
22528 | INSTALL='$INSTALL' | |
66170b30 JF |
22529 | MKDIR_P='$MKDIR_P' |
22530 | AWK='$AWK' | |
9c60689e DWT |
22531 | test -n "\$AWK" || AWK=awk |
22532 | _ACEOF | |
22533 | ||
22534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22535 | # The default lists apply if the user does not specify any file. | |
22536 | ac_need_defaults=: | |
22537 | while test $# != 0 | |
22538 | do | |
22539 | case $1 in | |
12833ad8 | 22540 | --*=?*) |
9c60689e DWT |
22541 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22542 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
22543 | ac_shift=: | |
22544 | ;; | |
12833ad8 JF |
22545 | --*=) |
22546 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
22547 | ac_optarg= | |
22548 | ac_shift=: | |
22549 | ;; | |
9c60689e DWT |
22550 | *) |
22551 | ac_option=$1 | |
22552 | ac_optarg=$2 | |
22553 | ac_shift=shift | |
22554 | ;; | |
22555 | esac | |
22556 | ||
22557 | case $ac_option in | |
22558 | # Handling of the options. | |
22559 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22560 | ac_cs_recheck=: ;; | |
22561 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
22562 | $as_echo "$ac_cs_version"; exit ;; | |
22563 | --config | --confi | --conf | --con | --co | --c ) | |
22564 | $as_echo "$ac_cs_config"; exit ;; | |
22565 | --debug | --debu | --deb | --de | --d | -d ) | |
22566 | debug=: ;; | |
22567 | --file | --fil | --fi | --f ) | |
22568 | $ac_shift | |
22569 | case $ac_optarg in | |
22570 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 22571 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
22572 | esac |
22573 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
22574 | ac_need_defaults=false;; | |
296ee9a6 JF |
22575 | --header | --heade | --head | --hea ) |
22576 | $ac_shift | |
22577 | case $ac_optarg in | |
22578 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22579 | esac | |
22580 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
22581 | ac_need_defaults=false;; | |
22582 | --he | --h) | |
22583 | # Conflict between --help and --header | |
22584 | as_fn_error $? "ambiguous option: \`$1' | |
22585 | Try \`$0 --help' for more information.";; | |
22586 | --help | --hel | -h ) | |
9c60689e DWT |
22587 | $as_echo "$ac_cs_usage"; exit ;; |
22588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22590 | ac_cs_silent=: ;; | |
22591 | ||
22592 | # This is an error. | |
12833ad8 | 22593 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
22594 | Try \`$0 --help' for more information." ;; |
22595 | ||
22596 | *) as_fn_append ac_config_targets " $1" | |
22597 | ac_need_defaults=false ;; | |
22598 | ||
22599 | esac | |
22600 | shift | |
22601 | done | |
22602 | ||
22603 | ac_configure_extra_args= | |
22604 | ||
22605 | if $ac_cs_silent; then | |
22606 | exec 6>/dev/null | |
22607 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22608 | fi | |
22609 | ||
22610 | _ACEOF | |
22611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22612 | if \$ac_cs_recheck; then | |
53ba6704 | 22613 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
22614 | shift |
22615 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
22616 | CONFIG_SHELL='$SHELL' | |
22617 | export CONFIG_SHELL | |
22618 | exec "\$@" | |
22619 | fi | |
22620 | ||
22621 | _ACEOF | |
22622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22623 | exec 5>>config.log | |
22624 | { | |
22625 | echo | |
22626 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22627 | ## Running $as_me. ## | |
22628 | _ASBOX | |
22629 | $as_echo "$ac_log" | |
22630 | } >&5 | |
22631 | ||
22632 | _ACEOF | |
22633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22634 | # | |
22635 | # INIT-COMMANDS | |
22636 | # | |
66170b30 | 22637 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
22638 | |
22639 | ||
22640 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22641 | # if CDPATH is set. | |
22642 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22643 | ||
22644 | sed_quote_subst='$sed_quote_subst' | |
22645 | double_quote_subst='$double_quote_subst' | |
22646 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
22647 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
22648 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
22649 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
22650 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
22651 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
22652 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22653 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22654 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
22655 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 22656 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22657 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
22658 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
22659 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
22660 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
22661 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
22662 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
22663 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
22664 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
22665 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
22666 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
22667 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
22668 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
22669 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
22670 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
22671 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
22672 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
22673 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
22674 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
22675 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
22676 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
22677 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22678 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22679 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
22680 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
22681 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
22682 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
22683 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
22684 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
22685 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
22686 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
22687 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
22688 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
22689 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
22690 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
22691 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
22692 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
22693 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22694 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22695 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22696 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
22697 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
22698 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
22699 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
22700 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
22701 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
22702 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22703 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22704 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
22705 | 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"`' | |
9d54db95 | 22706 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22707 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
22708 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22709 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22710 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
22711 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
22712 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
22713 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
22714 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
22715 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
22716 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
22717 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
22718 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
22719 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
22720 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
22721 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
22722 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
22723 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
22724 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
22725 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
22726 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22727 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
22728 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
22729 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22730 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22731 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
22732 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
22733 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22734 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22735 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22736 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
22737 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22738 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
22739 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22740 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22741 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22742 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
22743 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
22744 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
22745 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
22746 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22747 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
22748 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
22749 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
22750 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
22751 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
22752 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
22753 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
22754 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
22755 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
22756 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22757 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
22758 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
22759 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
22760 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
22761 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
22762 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22763 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
22764 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
22765 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
22766 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
22767 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
22768 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22769 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22770 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
22771 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
22772 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
22773 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
9d54db95 JF |
22774 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
22775 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22776 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
22777 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
22778 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
22779 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
22780 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
22781 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
22782 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
22783 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
22784 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
22785 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
22786 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
22787 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
22788 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
22789 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22790 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22791 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22792 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
22793 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
22794 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22795 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
22796 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
22797 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
22798 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
22799 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
22800 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
22801 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22802 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22803 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
22804 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22805 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22806 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22807 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22808 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22809 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22810 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
22811 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22812 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22813 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22814 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
22815 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
22816 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
22817 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
22818 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
22819 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
22820 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
22821 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
22822 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
22823 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22824 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22825 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22826 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22827 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22828 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22829 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
22830 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
22831 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22832 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22833 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22834 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22835 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
22836 | |
22837 | LTCC='$LTCC' | |
22838 | LTCFLAGS='$LTCFLAGS' | |
22839 | compiler='$compiler_DEFAULT' | |
22840 | ||
ee134472 JF |
22841 | # A function that is used when there is no print builtin or printf. |
22842 | func_fallback_echo () | |
22843 | { | |
22844 | eval 'cat <<_LTECHO_EOF | |
22845 | \$1 | |
22846 | _LTECHO_EOF' | |
22847 | } | |
22848 | ||
9c60689e | 22849 | # Quote evaled strings. |
ee134472 JF |
22850 | for var in SHELL \ |
22851 | ECHO \ | |
53ba6704 | 22852 | PATH_SEPARATOR \ |
ee134472 | 22853 | SED \ |
9c60689e DWT |
22854 | GREP \ |
22855 | EGREP \ | |
22856 | FGREP \ | |
22857 | LD \ | |
22858 | NM \ | |
22859 | LN_S \ | |
22860 | lt_SP2NL \ | |
22861 | lt_NL2SP \ | |
22862 | reload_flag \ | |
22863 | OBJDUMP \ | |
22864 | deplibs_check_method \ | |
22865 | file_magic_cmd \ | |
ee134472 JF |
22866 | file_magic_glob \ |
22867 | want_nocaseglob \ | |
22868 | DLLTOOL \ | |
22869 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
22870 | AR \ |
22871 | AR_FLAGS \ | |
ee134472 | 22872 | archiver_list_spec \ |
9c60689e DWT |
22873 | STRIP \ |
22874 | RANLIB \ | |
22875 | CC \ | |
22876 | CFLAGS \ | |
22877 | compiler \ | |
22878 | lt_cv_sys_global_symbol_pipe \ | |
22879 | lt_cv_sys_global_symbol_to_cdecl \ | |
9d54db95 | 22880 | lt_cv_sys_global_symbol_to_import \ |
9c60689e DWT |
22881 | lt_cv_sys_global_symbol_to_c_name_address \ |
22882 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
9d54db95 | 22883 | lt_cv_nm_interface \ |
ee134472 | 22884 | nm_file_list_spec \ |
9d54db95 | 22885 | lt_cv_truncate_bin \ |
9c60689e | 22886 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 22887 | lt_prog_compiler_pic \ |
ee134472 | 22888 | lt_prog_compiler_wl \ |
9c60689e DWT |
22889 | lt_prog_compiler_static \ |
22890 | lt_cv_prog_compiler_c_o \ | |
22891 | need_locks \ | |
ee134472 | 22892 | MANIFEST_TOOL \ |
9c60689e DWT |
22893 | DSYMUTIL \ |
22894 | NMEDIT \ | |
22895 | LIPO \ | |
22896 | OTOOL \ | |
22897 | OTOOL64 \ | |
22898 | shrext_cmds \ | |
22899 | export_dynamic_flag_spec \ | |
22900 | whole_archive_flag_spec \ | |
22901 | compiler_needs_object \ | |
22902 | with_gnu_ld \ | |
22903 | allow_undefined_flag \ | |
22904 | no_undefined_flag \ | |
22905 | hardcode_libdir_flag_spec \ | |
9c60689e | 22906 | hardcode_libdir_separator \ |
9c60689e DWT |
22907 | exclude_expsyms \ |
22908 | include_expsyms \ | |
22909 | file_list_spec \ | |
22910 | variables_saved_for_relink \ | |
22911 | libname_spec \ | |
22912 | library_names_spec \ | |
22913 | soname_spec \ | |
ee134472 | 22914 | install_override_mode \ |
9c60689e DWT |
22915 | finish_eval \ |
22916 | old_striplib \ | |
22917 | striplib \ | |
22918 | compiler_lib_search_dirs \ | |
22919 | predep_objects \ | |
22920 | postdep_objects \ | |
22921 | predeps \ | |
22922 | postdeps \ | |
22923 | compiler_lib_search_path \ | |
22924 | LD_CXX \ | |
ee134472 | 22925 | reload_flag_CXX \ |
9c60689e DWT |
22926 | compiler_CXX \ |
22927 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 22928 | lt_prog_compiler_pic_CXX \ |
ee134472 | 22929 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
22930 | lt_prog_compiler_static_CXX \ |
22931 | lt_cv_prog_compiler_c_o_CXX \ | |
22932 | export_dynamic_flag_spec_CXX \ | |
22933 | whole_archive_flag_spec_CXX \ | |
22934 | compiler_needs_object_CXX \ | |
22935 | with_gnu_ld_CXX \ | |
22936 | allow_undefined_flag_CXX \ | |
22937 | no_undefined_flag_CXX \ | |
22938 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 22939 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
22940 | exclude_expsyms_CXX \ |
22941 | include_expsyms_CXX \ | |
22942 | file_list_spec_CXX \ | |
22943 | compiler_lib_search_dirs_CXX \ | |
22944 | predep_objects_CXX \ | |
22945 | postdep_objects_CXX \ | |
22946 | predeps_CXX \ | |
22947 | postdeps_CXX \ | |
22948 | compiler_lib_search_path_CXX; do | |
ee134472 | 22949 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 22950 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 22951 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
22952 | ;; |
22953 | *) | |
22954 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22955 | ;; | |
22956 | esac | |
22957 | done | |
22958 | ||
22959 | # Double-quote double-evaled strings. | |
22960 | for var in reload_cmds \ | |
22961 | old_postinstall_cmds \ | |
22962 | old_postuninstall_cmds \ | |
22963 | old_archive_cmds \ | |
22964 | extract_expsyms_cmds \ | |
22965 | old_archive_from_new_cmds \ | |
22966 | old_archive_from_expsyms_cmds \ | |
22967 | archive_cmds \ | |
22968 | archive_expsym_cmds \ | |
22969 | module_cmds \ | |
22970 | module_expsym_cmds \ | |
22971 | export_symbols_cmds \ | |
22972 | prelink_cmds \ | |
ee134472 | 22973 | postlink_cmds \ |
9c60689e DWT |
22974 | postinstall_cmds \ |
22975 | postuninstall_cmds \ | |
22976 | finish_cmds \ | |
22977 | sys_lib_search_path_spec \ | |
9d54db95 JF |
22978 | configure_time_dlsearch_path \ |
22979 | configure_time_lt_sys_library_path \ | |
ee134472 | 22980 | reload_cmds_CXX \ |
9c60689e DWT |
22981 | old_archive_cmds_CXX \ |
22982 | old_archive_from_new_cmds_CXX \ | |
22983 | old_archive_from_expsyms_cmds_CXX \ | |
22984 | archive_cmds_CXX \ | |
22985 | archive_expsym_cmds_CXX \ | |
22986 | module_cmds_CXX \ | |
22987 | module_expsym_cmds_CXX \ | |
22988 | export_symbols_cmds_CXX \ | |
ee134472 JF |
22989 | prelink_cmds_CXX \ |
22990 | postlink_cmds_CXX; do | |
22991 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 22992 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 22993 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
22994 | ;; |
22995 | *) | |
22996 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22997 | ;; | |
22998 | esac | |
22999 | done | |
23000 | ||
9c60689e | 23001 | ac_aux_dir='$ac_aux_dir' |
9c60689e | 23002 | |
9d54db95 | 23003 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 23004 | # commands through without removal of \ escapes INIT. |
9d54db95 | 23005 | if test -n "\${ZSH_VERSION+set}"; then |
9c60689e DWT |
23006 | setopt NO_GLOB_SUBST |
23007 | fi | |
23008 | ||
23009 | ||
23010 | PACKAGE='$PACKAGE' | |
23011 | VERSION='$VERSION' | |
9c60689e DWT |
23012 | RM='$RM' |
23013 | ofile='$ofile' | |
23014 | ||
23015 | ||
23016 | ||
23017 | ||
23018 | ||
23019 | ||
23020 | _ACEOF | |
23021 | ||
23022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23023 | ||
23024 | # Handling of arguments. | |
23025 | for ac_config_target in $ac_config_targets | |
23026 | do | |
23027 | case $ac_config_target in | |
296ee9a6 | 23028 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 23029 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 23030 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 23031 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 23032 | |
ee134472 | 23033 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
23034 | esac |
23035 | done | |
23036 | ||
23037 | ||
23038 | # If the user did not use the arguments to specify the items to instantiate, | |
23039 | # then the envvar interface is used. Set only those that are not. | |
23040 | # We use the long form for the default assignment because of an extremely | |
23041 | # bizarre bug on SunOS 4.1.3. | |
23042 | if $ac_need_defaults; then | |
23043 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 23044 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
23045 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
23046 | fi | |
23047 | ||
23048 | # Have a temporary directory for convenience. Make it in the build tree | |
23049 | # simply because there is no reason against having it here, and in addition, | |
23050 | # creating and moving files from /tmp can sometimes cause problems. | |
23051 | # Hook for its removal unless debugging. | |
23052 | # Note that there is a small window in which the directory will not be cleaned: | |
23053 | # after its creation but before its name has been assigned to `$tmp'. | |
23054 | $debug || | |
23055 | { | |
ee134472 | 23056 | tmp= ac_tmp= |
9c60689e | 23057 | trap 'exit_status=$? |
ee134472 JF |
23058 | : "${ac_tmp:=$tmp}" |
23059 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
23060 | ' 0 |
23061 | trap 'as_fn_exit 1' 1 2 13 15 | |
23062 | } | |
23063 | # Create a (secure) tmp directory for tmp files. | |
23064 | ||
23065 | { | |
23066 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 23067 | test -d "$tmp" |
9c60689e DWT |
23068 | } || |
23069 | { | |
23070 | tmp=./conf$$-$RANDOM | |
23071 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 23072 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 23073 | ac_tmp=$tmp |
9c60689e DWT |
23074 | |
23075 | # Set up the scripts for CONFIG_FILES section. | |
23076 | # No need to generate them if there are no CONFIG_FILES. | |
23077 | # This happens for instance with `./config.status config.h'. | |
23078 | if test -n "$CONFIG_FILES"; then | |
23079 | ||
23080 | ||
23081 | ac_cr=`echo X | tr X '\015'` | |
23082 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
23083 | # But we know of no other shell where ac_cr would be empty at this | |
23084 | # point, so we can use a bashism as a fallback. | |
23085 | if test "x$ac_cr" = x; then | |
23086 | eval ac_cr=\$\'\\r\' | |
23087 | fi | |
23088 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
23089 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 23090 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
23091 | else |
23092 | ac_cs_awk_cr=$ac_cr | |
23093 | fi | |
23094 | ||
ee134472 | 23095 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
23096 | _ACEOF |
23097 | ||
23098 | ||
23099 | { | |
23100 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
23101 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
23102 | echo "_ACEOF" | |
23103 | } >conf$$subs.sh || | |
12833ad8 JF |
23104 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23105 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
23106 | ac_delim='%!_!# ' |
23107 | for ac_last_try in false false false false false :; do | |
23108 | . ./conf$$subs.sh || | |
12833ad8 | 23109 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23110 | |
23111 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
23112 | if test $ac_delim_n = $ac_delim_num; then | |
23113 | break | |
23114 | elif $ac_last_try; then | |
12833ad8 | 23115 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23116 | else |
23117 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23118 | fi | |
23119 | done | |
23120 | rm -f conf$$subs.sh | |
23121 | ||
23122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 23123 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
23124 | _ACEOF |
23125 | sed -n ' | |
23126 | h | |
23127 | s/^/S["/; s/!.*/"]=/ | |
23128 | p | |
23129 | g | |
23130 | s/^[^!]*!// | |
23131 | :repl | |
23132 | t repl | |
23133 | s/'"$ac_delim"'$// | |
23134 | t delim | |
23135 | :nl | |
23136 | h | |
23137 | s/\(.\{148\}\)..*/\1/ | |
23138 | t more1 | |
23139 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
23140 | p | |
23141 | n | |
23142 | b repl | |
23143 | :more1 | |
23144 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23145 | p | |
23146 | g | |
23147 | s/.\{148\}// | |
23148 | t nl | |
23149 | :delim | |
23150 | h | |
23151 | s/\(.\{148\}\)..*/\1/ | |
23152 | t more2 | |
23153 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
23154 | p | |
23155 | b | |
23156 | :more2 | |
23157 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23158 | p | |
23159 | g | |
23160 | s/.\{148\}// | |
23161 | t delim | |
23162 | ' <conf$$subs.awk | sed ' | |
23163 | /^[^""]/{ | |
23164 | N | |
23165 | s/\n// | |
23166 | } | |
23167 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
23168 | rm -f conf$$subs.awk | |
23169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23170 | _ACAWK | |
ee134472 | 23171 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
23172 | for (key in S) S_is_set[key] = 1 |
23173 | FS = "\a" | |
23174 | ||
23175 | } | |
23176 | { | |
23177 | line = $ 0 | |
23178 | nfields = split(line, field, "@") | |
23179 | substed = 0 | |
23180 | len = length(field[1]) | |
23181 | for (i = 2; i < nfields; i++) { | |
23182 | key = field[i] | |
23183 | keylen = length(key) | |
23184 | if (S_is_set[key]) { | |
23185 | value = S[key] | |
23186 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
23187 | len += length(value) + length(field[++i]) | |
23188 | substed = 1 | |
23189 | } else | |
23190 | len += 1 + keylen | |
23191 | } | |
23192 | ||
23193 | print line | |
23194 | } | |
23195 | ||
23196 | _ACAWK | |
23197 | _ACEOF | |
23198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23199 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
23200 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
23201 | else | |
23202 | cat | |
ee134472 | 23203 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 23204 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
23205 | _ACEOF |
23206 | ||
12833ad8 JF |
23207 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
23208 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
23209 | # trailing colons and then remove the whole line if VPATH becomes empty |
23210 | # (actually we leave an empty line to preserve line numbers). | |
23211 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
23212 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
23213 | h | |
23214 | s/// | |
23215 | s/^/:/ | |
23216 | s/[ ]*$/:/ | |
23217 | s/:\$(srcdir):/:/g | |
23218 | s/:\${srcdir}:/:/g | |
23219 | s/:@srcdir@:/:/g | |
23220 | s/^:*// | |
9c60689e | 23221 | s/:*$// |
12833ad8 JF |
23222 | x |
23223 | s/\(=[ ]*\).*/\1/ | |
23224 | G | |
23225 | s/\n// | |
9c60689e DWT |
23226 | s/^[^=]*=[ ]*$// |
23227 | }' | |
23228 | fi | |
23229 | ||
23230 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23231 | fi # test -n "$CONFIG_FILES" | |
23232 | ||
296ee9a6 JF |
23233 | # Set up the scripts for CONFIG_HEADERS section. |
23234 | # No need to generate them if there are no CONFIG_HEADERS. | |
23235 | # This happens for instance with `./config.status Makefile'. | |
23236 | if test -n "$CONFIG_HEADERS"; then | |
23237 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
23238 | BEGIN { | |
23239 | _ACEOF | |
23240 | ||
23241 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
23242 | # here-document in config.status, that substitutes the proper values into | |
23243 | # config.h.in to produce config.h. | |
23244 | ||
23245 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
23246 | # handling of long lines. | |
23247 | ac_delim='%!_!# ' | |
23248 | for ac_last_try in false false :; do | |
23249 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
23250 | if test -z "$ac_tt"; then | |
23251 | break | |
23252 | elif $ac_last_try; then | |
23253 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
23254 | else | |
23255 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23256 | fi | |
23257 | done | |
23258 | ||
23259 | # For the awk script, D is an array of macro values keyed by name, | |
23260 | # likewise P contains macro parameters if any. Preserve backslash | |
23261 | # newline sequences. | |
23262 | ||
23263 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
23264 | sed -n ' | |
23265 | s/.\{148\}/&'"$ac_delim"'/g | |
23266 | t rset | |
23267 | :rset | |
23268 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
23269 | t def | |
23270 | d | |
23271 | :def | |
23272 | s/\\$// | |
23273 | t bsnl | |
23274 | s/["\\]/\\&/g | |
23275 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
23276 | D["\1"]=" \3"/p | |
23277 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
23278 | d | |
23279 | :bsnl | |
23280 | s/["\\]/\\&/g | |
23281 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
23282 | D["\1"]=" \3\\\\\\n"\\/p | |
23283 | t cont | |
23284 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
23285 | t cont | |
23286 | d | |
23287 | :cont | |
23288 | n | |
23289 | s/.\{148\}/&'"$ac_delim"'/g | |
23290 | t clear | |
23291 | :clear | |
23292 | s/\\$// | |
23293 | t bsnlc | |
23294 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
23295 | d | |
23296 | :bsnlc | |
23297 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
23298 | b cont | |
23299 | ' <confdefs.h | sed ' | |
23300 | s/'"$ac_delim"'/"\\\ | |
23301 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
23302 | ||
23303 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23304 | for (key in D) D_is_set[key] = 1 | |
23305 | FS = "\a" | |
23306 | } | |
23307 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
23308 | line = \$ 0 | |
23309 | split(line, arg, " ") | |
23310 | if (arg[1] == "#") { | |
23311 | defundef = arg[2] | |
23312 | mac1 = arg[3] | |
23313 | } else { | |
23314 | defundef = substr(arg[1], 2) | |
23315 | mac1 = arg[2] | |
23316 | } | |
23317 | split(mac1, mac2, "(") #) | |
23318 | macro = mac2[1] | |
23319 | prefix = substr(line, 1, index(line, defundef) - 1) | |
23320 | if (D_is_set[macro]) { | |
23321 | # Preserve the white space surrounding the "#". | |
23322 | print prefix "define", macro P[macro] D[macro] | |
23323 | next | |
23324 | } else { | |
23325 | # Replace #undef with comments. This is necessary, for example, | |
23326 | # in the case of _POSIX_SOURCE, which is predefined and required | |
23327 | # on some systems where configure will not decide to define it. | |
23328 | if (defundef == "undef") { | |
23329 | print "/*", prefix defundef, macro, "*/" | |
23330 | next | |
23331 | } | |
23332 | } | |
23333 | } | |
23334 | { print } | |
23335 | _ACAWK | |
23336 | _ACEOF | |
23337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23338 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
23339 | fi # test -n "$CONFIG_HEADERS" | |
23340 | ||
9c60689e | 23341 | |
296ee9a6 | 23342 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
23343 | shift |
23344 | for ac_tag | |
23345 | do | |
23346 | case $ac_tag in | |
23347 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
23348 | esac | |
23349 | case $ac_mode$ac_tag in | |
23350 | :[FHL]*:*);; | |
ee134472 | 23351 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
23352 | :[FH]-) ac_tag=-:-;; |
23353 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
23354 | esac | |
23355 | ac_save_IFS=$IFS | |
23356 | IFS=: | |
23357 | set x $ac_tag | |
23358 | IFS=$ac_save_IFS | |
23359 | shift | |
23360 | ac_file=$1 | |
23361 | shift | |
23362 | ||
23363 | case $ac_mode in | |
23364 | :L) ac_source=$1;; | |
23365 | :[FH]) | |
23366 | ac_file_inputs= | |
23367 | for ac_f | |
23368 | do | |
23369 | case $ac_f in | |
ee134472 | 23370 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
23371 | *) # Look for the file first in the build tree, then in the source tree |
23372 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
23373 | # because $ac_f cannot contain `:'. | |
23374 | test -f "$ac_f" || | |
23375 | case $ac_f in | |
23376 | [\\/$]*) false;; | |
23377 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
23378 | esac || | |
ee134472 | 23379 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
23380 | esac |
23381 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
23382 | as_fn_append ac_file_inputs " '$ac_f'" | |
23383 | done | |
23384 | ||
23385 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23386 | # use $as_me), people would be surprised to read: | |
23387 | # /* config.h. Generated by config.status. */ | |
23388 | configure_input='Generated from '` | |
23389 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
23390 | `' by configure.' | |
23391 | if test x"$ac_file" != x-; then | |
23392 | configure_input="$ac_file. $configure_input" | |
23393 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
23394 | $as_echo "$as_me: creating $ac_file" >&6;} | |
23395 | fi | |
23396 | # Neutralize special characters interpreted by sed in replacement strings. | |
23397 | case $configure_input in #( | |
23398 | *\&* | *\|* | *\\* ) | |
23399 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
23400 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
23401 | *) ac_sed_conf_input=$configure_input;; | |
23402 | esac | |
23403 | ||
23404 | case $ac_tag in | |
ee134472 JF |
23405 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
23406 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
23407 | esac |
23408 | ;; | |
23409 | esac | |
23410 | ||
23411 | ac_dir=`$as_dirname -- "$ac_file" || | |
23412 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23413 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23414 | X"$ac_file" : 'X\(//\)$' \| \ | |
23415 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
23416 | $as_echo X"$ac_file" | | |
23417 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23418 | s//\1/ | |
23419 | q | |
23420 | } | |
23421 | /^X\(\/\/\)[^/].*/{ | |
23422 | s//\1/ | |
23423 | q | |
23424 | } | |
23425 | /^X\(\/\/\)$/{ | |
23426 | s//\1/ | |
23427 | q | |
23428 | } | |
23429 | /^X\(\/\).*/{ | |
23430 | s//\1/ | |
23431 | q | |
23432 | } | |
23433 | s/.*/./; q'` | |
23434 | as_dir="$ac_dir"; as_fn_mkdir_p | |
23435 | ac_builddir=. | |
23436 | ||
23437 | case "$ac_dir" in | |
23438 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23439 | *) | |
23440 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
23441 | # A ".." for each directory in $ac_dir_suffix. | |
23442 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
23443 | case $ac_top_builddir_sub in | |
23444 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23445 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
23446 | esac ;; | |
23447 | esac | |
23448 | ac_abs_top_builddir=$ac_pwd | |
23449 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
23450 | # for backward compatibility: | |
23451 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 23452 | |
9c60689e DWT |
23453 | case $srcdir in |
23454 | .) # We are building in place. | |
23455 | ac_srcdir=. | |
23456 | ac_top_srcdir=$ac_top_builddir_sub | |
23457 | ac_abs_top_srcdir=$ac_pwd ;; | |
23458 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
23459 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23460 | ac_top_srcdir=$srcdir | |
23461 | ac_abs_top_srcdir=$srcdir ;; | |
23462 | *) # Relative name. | |
23463 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
23464 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
23465 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
23466 | esac | |
23467 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
23468 | |
23469 | ||
9c60689e DWT |
23470 | case $ac_mode in |
23471 | :F) | |
23472 | # | |
23473 | # CONFIG_FILE | |
23474 | # | |
35fa52c0 | 23475 | |
9c60689e DWT |
23476 | case $INSTALL in |
23477 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23478 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
23479 | esac | |
66170b30 JF |
23480 | ac_MKDIR_P=$MKDIR_P |
23481 | case $MKDIR_P in | |
23482 | [\\/$]* | ?:[\\/]* ) ;; | |
23483 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
23484 | esac | |
9c60689e | 23485 | _ACEOF |
35fa52c0 | 23486 | |
9c60689e DWT |
23487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23488 | # If the template does not know about datarootdir, expand it. | |
23489 | # FIXME: This hack should be removed a few years after 2.60. | |
23490 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
23491 | ac_sed_dataroot=' | |
23492 | /datarootdir/ { | |
23493 | p | |
23494 | q | |
23495 | } | |
23496 | /@datadir@/p | |
23497 | /@docdir@/p | |
23498 | /@infodir@/p | |
23499 | /@localedir@/p | |
23500 | /@mandir@/p' | |
23501 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
23502 | *datarootdir*) ac_datarootdir_seen=yes;; | |
23503 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
23504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
23505 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
23506 | _ACEOF | |
23507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23508 | ac_datarootdir_hack=' | |
23509 | s&@datadir@&$datadir&g | |
23510 | s&@docdir@&$docdir&g | |
23511 | s&@infodir@&$infodir&g | |
23512 | s&@localedir@&$localedir&g | |
23513 | s&@mandir@&$mandir&g | |
23514 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
23515 | esac | |
23516 | _ACEOF | |
35fa52c0 | 23517 | |
9c60689e DWT |
23518 | # Neutralize VPATH when `$srcdir' = `.'. |
23519 | # Shell code in configure.ac might set extrasub. | |
23520 | # FIXME: do we really want to maintain this feature? | |
23521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23522 | ac_sed_extra="$ac_vpsub | |
23523 | $extrasub | |
23524 | _ACEOF | |
23525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23526 | :t | |
23527 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23528 | s|@configure_input@|$ac_sed_conf_input|;t t | |
23529 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
23530 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
23531 | s&@srcdir@&$ac_srcdir&;t t | |
23532 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
23533 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
23534 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
23535 | s&@builddir@&$ac_builddir&;t t | |
23536 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
23537 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
23538 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 23539 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
23540 | $ac_datarootdir_hack |
23541 | " | |
ee134472 JF |
23542 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
23543 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
23544 | |
23545 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
23546 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
23547 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
23548 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 23549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23550 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 23551 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23552 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 23553 | |
ee134472 | 23554 | rm -f "$ac_tmp/stdin" |
9c60689e | 23555 | case $ac_file in |
ee134472 JF |
23556 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
23557 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 23558 | esac \ |
12833ad8 | 23559 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 23560 | ;; |
296ee9a6 JF |
23561 | :H) |
23562 | # | |
23563 | # CONFIG_HEADER | |
23564 | # | |
23565 | if test x"$ac_file" != x-; then | |
23566 | { | |
23567 | $as_echo "/* $configure_input */" \ | |
23568 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
23569 | } >"$ac_tmp/config.h" \ | |
23570 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23571 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
23572 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
23573 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
23574 | else | |
23575 | rm -f "$ac_file" | |
23576 | mv "$ac_tmp/config.h" "$ac_file" \ | |
23577 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23578 | fi | |
23579 | else | |
23580 | $as_echo "/* $configure_input */" \ | |
23581 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
23582 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
23583 | fi | |
23584 | # Compute "$ac_file"'s index in $config_headers. | |
23585 | _am_arg="$ac_file" | |
23586 | _am_stamp_count=1 | |
23587 | for _am_header in $config_headers :; do | |
23588 | case $_am_header in | |
23589 | $_am_arg | $_am_arg:* ) | |
23590 | break ;; | |
23591 | * ) | |
23592 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
23593 | esac | |
23594 | done | |
23595 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
23596 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23597 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
23598 | X"$_am_arg" : 'X\(//\)$' \| \ | |
23599 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
23600 | $as_echo X"$_am_arg" | | |
23601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23602 | s//\1/ | |
23603 | q | |
23604 | } | |
23605 | /^X\(\/\/\)[^/].*/{ | |
23606 | s//\1/ | |
23607 | q | |
23608 | } | |
23609 | /^X\(\/\/\)$/{ | |
23610 | s//\1/ | |
23611 | q | |
23612 | } | |
23613 | /^X\(\/\).*/{ | |
23614 | s//\1/ | |
23615 | q | |
23616 | } | |
23617 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
23618 | ;; | |
35fa52c0 | 23619 | |
9c60689e DWT |
23620 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
23621 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
23622 | ;; | |
23623 | esac | |
35fa52c0 | 23624 | |
35fa52c0 | 23625 | |
9c60689e | 23626 | case $ac_file$ac_mode in |
66170b30 JF |
23627 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
23628 | # Older Autoconf quotes --file arguments for eval, but not when files | |
23629 | # are listed without --file. Let's play safe and only enable the eval | |
23630 | # if we detect the quoting. | |
23631 | case $CONFIG_FILES in | |
23632 | *\'*) eval set x "$CONFIG_FILES" ;; | |
23633 | *) set x $CONFIG_FILES ;; | |
23634 | esac | |
23635 | shift | |
23636 | for mf | |
23637 | do | |
23638 | # Strip MF so we end up with the name of the file. | |
23639 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23640 | # Check whether this is an Automake generated Makefile or not. | |
23641 | # We used to match only the files named 'Makefile.in', but | |
23642 | # some people rename them; so instead we look at the file content. | |
23643 | # Grep'ing the first line is not enough: some people post-process | |
23644 | # each Makefile.in and add a new line on top of each file to say so. | |
23645 | # Grep'ing the whole file is not good either: AIX grep has a line | |
23646 | # limit of 2048, but all sed's we know have understand at least 4000. | |
23647 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
23648 | dirpart=`$as_dirname -- "$mf" || | |
23649 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23650 | X"$mf" : 'X\(//\)[^/]' \| \ | |
23651 | X"$mf" : 'X\(//\)$' \| \ | |
23652 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
23653 | $as_echo X"$mf" | | |
23654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23655 | s//\1/ | |
23656 | q | |
23657 | } | |
23658 | /^X\(\/\/\)[^/].*/{ | |
23659 | s//\1/ | |
23660 | q | |
23661 | } | |
23662 | /^X\(\/\/\)$/{ | |
23663 | s//\1/ | |
23664 | q | |
23665 | } | |
23666 | /^X\(\/\).*/{ | |
23667 | s//\1/ | |
23668 | q | |
23669 | } | |
23670 | s/.*/./; q'` | |
23671 | else | |
23672 | continue | |
23673 | fi | |
23674 | # Extract the definition of DEPDIR, am__include, and am__quote | |
23675 | # from the Makefile without running 'make'. | |
23676 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23677 | test -z "$DEPDIR" && continue | |
23678 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 23679 | test -z "$am__include" && continue |
66170b30 JF |
23680 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
23681 | # Find all dependency output files, they are included files with | |
23682 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23683 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23684 | # expansion. | |
23685 | for file in `sed -n " | |
23686 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23687 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
23688 | # Make sure the directory exists. | |
23689 | test -f "$dirpart/$file" && continue | |
23690 | fdir=`$as_dirname -- "$file" || | |
23691 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23692 | X"$file" : 'X\(//\)[^/]' \| \ | |
23693 | X"$file" : 'X\(//\)$' \| \ | |
23694 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
23695 | $as_echo X"$file" | | |
23696 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23697 | s//\1/ | |
23698 | q | |
23699 | } | |
23700 | /^X\(\/\/\)[^/].*/{ | |
23701 | s//\1/ | |
23702 | q | |
23703 | } | |
23704 | /^X\(\/\/\)$/{ | |
23705 | s//\1/ | |
23706 | q | |
23707 | } | |
23708 | /^X\(\/\).*/{ | |
23709 | s//\1/ | |
23710 | q | |
23711 | } | |
23712 | s/.*/./; q'` | |
23713 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
23714 | # echo "creating $dirpart/$file" | |
23715 | echo '# dummy' > "$dirpart/$file" | |
23716 | done | |
23717 | done | |
23718 | } | |
23719 | ;; | |
9c60689e DWT |
23720 | "libtool":C) |
23721 | ||
9d54db95 | 23722 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 23723 | # commands through without removal of \ escapes. |
9d54db95 | 23724 | if test -n "${ZSH_VERSION+set}"; then |
9c60689e | 23725 | setopt NO_GLOB_SUBST |
35fa52c0 | 23726 | fi |
35fa52c0 | 23727 | |
9d54db95 | 23728 | cfgfile=${ofile}T |
9c60689e DWT |
23729 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
23730 | $RM "$cfgfile" | |
35fa52c0 | 23731 | |
9c60689e DWT |
23732 | cat <<_LT_EOF >> "$cfgfile" |
23733 | #! $SHELL | |
9d54db95 | 23734 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
9c60689e DWT |
23735 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
23736 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9d54db95 JF |
23737 | |
23738 | # Provide generalized library-building support services. | |
23739 | # Written by Gordon Matzigkeit, 1996 | |
23740 | ||
23741 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
23742 | # This is free software; see the source for copying conditions. There is NO | |
23743 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
23744 | ||
23745 | # GNU Libtool is free software; you can redistribute it and/or modify | |
23746 | # it under the terms of the GNU General Public License as published by | |
23747 | # the Free Software Foundation; either version 2 of of the License, or | |
23748 | # (at your option) any later version. | |
9c60689e | 23749 | # |
9d54db95 JF |
23750 | # As a special exception to the GNU General Public License, if you |
23751 | # distribute this file as part of a program or library that is built | |
23752 | # using GNU Libtool, you may include this file under the same | |
23753 | # distribution terms that you use for the rest of that program. | |
9c60689e | 23754 | # |
9d54db95 JF |
23755 | # GNU Libtool is distributed in the hope that it will be useful, but |
23756 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9c60689e DWT |
23757 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23758 | # GNU General Public License for more details. | |
23759 | # | |
23760 | # You should have received a copy of the GNU General Public License | |
9d54db95 | 23761 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
35fa52c0 | 23762 | |
35fa52c0 | 23763 | |
9c60689e | 23764 | # The names of the tagged configurations supported by this script. |
9d54db95 JF |
23765 | available_tags='CXX ' |
23766 | ||
23767 | # Configured defaults for sys_lib_dlsearch_path munging. | |
23768 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
35fa52c0 | 23769 | |
9c60689e | 23770 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 23771 | |
9c60689e DWT |
23772 | # Which release of libtool.m4 was used? |
23773 | macro_version=$macro_version | |
23774 | macro_revision=$macro_revision | |
35fa52c0 | 23775 | |
9c60689e DWT |
23776 | # Whether or not to build static libraries. |
23777 | build_old_libs=$enable_static | |
35fa52c0 | 23778 | |
549f29b5 DWT |
23779 | # Whether or not to build shared libraries. |
23780 | build_libtool_libs=$enable_shared | |
23781 | ||
9c60689e DWT |
23782 | # What type of objects to build. |
23783 | pic_mode=$pic_mode | |
35fa52c0 | 23784 | |
9c60689e DWT |
23785 | # Whether or not to optimize for fast installation. |
23786 | fast_install=$enable_fast_install | |
35fa52c0 | 23787 | |
9d54db95 JF |
23788 | # Shared archive member basename,for filename based shared library versioning on AIX. |
23789 | shared_archive_member_spec=$shared_archive_member_spec | |
23790 | ||
ee134472 JF |
23791 | # Shell to use when invoking shell scripts. |
23792 | SHELL=$lt_SHELL | |
23793 | ||
23794 | # An echo program that protects backslashes. | |
23795 | ECHO=$lt_ECHO | |
23796 | ||
53ba6704 JF |
23797 | # The PATH separator for the build system. |
23798 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
23799 | ||
9c60689e DWT |
23800 | # The host system. |
23801 | host_alias=$host_alias | |
23802 | host=$host | |
23803 | host_os=$host_os | |
35fa52c0 | 23804 | |
9c60689e DWT |
23805 | # The build system. |
23806 | build_alias=$build_alias | |
23807 | build=$build | |
23808 | build_os=$build_os | |
23809 | ||
23810 | # A sed program that does not truncate output. | |
23811 | SED=$lt_SED | |
23812 | ||
23813 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23814 | Xsed="\$SED -e 1s/^X//" | |
23815 | ||
23816 | # A grep program that handles long lines. | |
23817 | GREP=$lt_GREP | |
23818 | ||
23819 | # An ERE matcher. | |
23820 | EGREP=$lt_EGREP | |
23821 | ||
23822 | # A literal string matcher. | |
23823 | FGREP=$lt_FGREP | |
23824 | ||
23825 | # A BSD- or MS-compatible name lister. | |
23826 | NM=$lt_NM | |
23827 | ||
23828 | # Whether we need soft or hard links. | |
23829 | LN_S=$lt_LN_S | |
23830 | ||
23831 | # What is the maximum length of a command? | |
23832 | max_cmd_len=$max_cmd_len | |
23833 | ||
23834 | # Object file suffix (normally "o"). | |
23835 | objext=$ac_objext | |
23836 | ||
23837 | # Executable file suffix (normally ""). | |
23838 | exeext=$exeext | |
23839 | ||
23840 | # whether the shell understands "unset". | |
23841 | lt_unset=$lt_unset | |
23842 | ||
23843 | # turn spaces into newlines. | |
23844 | SP2NL=$lt_lt_SP2NL | |
23845 | ||
23846 | # turn newlines into spaces. | |
23847 | NL2SP=$lt_lt_NL2SP | |
23848 | ||
ee134472 JF |
23849 | # convert \$build file names to \$host format. |
23850 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
23851 | ||
23852 | # convert \$build files to toolchain format. | |
23853 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
23854 | |
23855 | # An object symbol dumper. | |
23856 | OBJDUMP=$lt_OBJDUMP | |
23857 | ||
23858 | # Method to check whether dependent libraries are shared objects. | |
23859 | deplibs_check_method=$lt_deplibs_check_method | |
23860 | ||
ee134472 | 23861 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
23862 | file_magic_cmd=$lt_file_magic_cmd |
23863 | ||
ee134472 JF |
23864 | # How to find potential files when deplibs_check_method = "file_magic". |
23865 | file_magic_glob=$lt_file_magic_glob | |
23866 | ||
23867 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
23868 | want_nocaseglob=$lt_want_nocaseglob | |
23869 | ||
23870 | # DLL creation program. | |
23871 | DLLTOOL=$lt_DLLTOOL | |
23872 | ||
23873 | # Command to associate shared and link libraries. | |
23874 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
23875 | ||
9c60689e DWT |
23876 | # The archiver. |
23877 | AR=$lt_AR | |
ee134472 JF |
23878 | |
23879 | # Flags to create an archive. | |
9c60689e DWT |
23880 | AR_FLAGS=$lt_AR_FLAGS |
23881 | ||
ee134472 JF |
23882 | # How to feed a file listing to the archiver. |
23883 | archiver_list_spec=$lt_archiver_list_spec | |
23884 | ||
9c60689e DWT |
23885 | # A symbol stripping program. |
23886 | STRIP=$lt_STRIP | |
23887 | ||
23888 | # Commands used to install an old-style archive. | |
23889 | RANLIB=$lt_RANLIB | |
23890 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23891 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23892 | ||
ee134472 JF |
23893 | # Whether to use a lock for old archive extraction. |
23894 | lock_old_archive_extraction=$lock_old_archive_extraction | |
23895 | ||
9c60689e DWT |
23896 | # A C compiler. |
23897 | LTCC=$lt_CC | |
23898 | ||
23899 | # LTCC compiler flags. | |
23900 | LTCFLAGS=$lt_CFLAGS | |
23901 | ||
23902 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23903 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23904 | ||
23905 | # Transform the output of nm in a proper C declaration. | |
23906 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23907 | ||
9d54db95 JF |
23908 | # Transform the output of nm into a list of symbols to manually relocate. |
23909 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
23910 | ||
9c60689e DWT |
23911 | # Transform the output of nm in a C name address pair. |
23912 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23913 | ||
23914 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
23915 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23916 | ||
9d54db95 JF |
23917 | # The name lister interface. |
23918 | nm_interface=$lt_lt_cv_nm_interface | |
23919 | ||
ee134472 JF |
23920 | # Specify filename containing input files for \$NM. |
23921 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 23922 | |
9d54db95 | 23923 | # The root where to search for dependent libraries,and where our libraries should be installed. |
ee134472 | 23924 | lt_sysroot=$lt_sysroot |
9c60689e | 23925 | |
9d54db95 JF |
23926 | # Command to truncate a binary pipe. |
23927 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
23928 | ||
ee134472 JF |
23929 | # The name of the directory that contains temporary libtool files. |
23930 | objdir=$objdir | |
9c60689e DWT |
23931 | |
23932 | # Used to examine libraries when file_magic_cmd begins with "file". | |
23933 | MAGIC_CMD=$MAGIC_CMD | |
23934 | ||
23935 | # Must we lock files when doing compilation? | |
23936 | need_locks=$lt_need_locks | |
23937 | ||
ee134472 JF |
23938 | # Manifest tool. |
23939 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
23940 | ||
9c60689e DWT |
23941 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
23942 | DSYMUTIL=$lt_DSYMUTIL | |
23943 | ||
23944 | # Tool to change global to local symbols on Mac OS X. | |
23945 | NMEDIT=$lt_NMEDIT | |
23946 | ||
23947 | # Tool to manipulate fat objects and archives on Mac OS X. | |
23948 | LIPO=$lt_LIPO | |
23949 | ||
23950 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23951 | OTOOL=$lt_OTOOL | |
23952 | ||
23953 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23954 | OTOOL64=$lt_OTOOL64 | |
23955 | ||
23956 | # Old archive suffix (normally "a"). | |
23957 | libext=$libext | |
23958 | ||
23959 | # Shared library suffix (normally ".so"). | |
23960 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 23961 | |
9c60689e DWT |
23962 | # The commands to extract the exported symbol list from a shared archive. |
23963 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 23964 | |
9c60689e DWT |
23965 | # Variables whose values should be saved in libtool wrapper scripts and |
23966 | # restored at link time. | |
23967 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 23968 | |
9c60689e DWT |
23969 | # Do we need the "lib" prefix for modules? |
23970 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 23971 | |
9c60689e DWT |
23972 | # Do we need a version for libraries? |
23973 | need_version=$need_version | |
35fa52c0 | 23974 | |
9c60689e DWT |
23975 | # Library versioning type. |
23976 | version_type=$version_type | |
35fa52c0 | 23977 | |
9c60689e DWT |
23978 | # Shared library runtime path variable. |
23979 | runpath_var=$runpath_var | |
35fa52c0 | 23980 | |
9c60689e DWT |
23981 | # Shared library path variable. |
23982 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 23983 | |
9c60689e DWT |
23984 | # Is shlibpath searched before the hard-coded library search path? |
23985 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 23986 | |
9c60689e DWT |
23987 | # Format of library name prefix. |
23988 | libname_spec=$lt_libname_spec | |
35fa52c0 | 23989 | |
9c60689e DWT |
23990 | # List of archive names. First name is the real one, the rest are links. |
23991 | # The last name is the one that the linker finds with -lNAME | |
23992 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 23993 | |
9c60689e DWT |
23994 | # The coded name of the library, if different from the real name. |
23995 | soname_spec=$lt_soname_spec | |
dbadc56a | 23996 | |
ee134472 JF |
23997 | # Permission mode override for installation of shared libraries. |
23998 | install_override_mode=$lt_install_override_mode | |
23999 | ||
9c60689e DWT |
24000 | # Command to use after installation of a shared archive. |
24001 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 24002 | |
9c60689e DWT |
24003 | # Command to use after uninstallation of a shared archive. |
24004 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 24005 | |
9c60689e DWT |
24006 | # Commands used to finish a libtool library installation in a directory. |
24007 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 24008 | |
9c60689e DWT |
24009 | # As "finish_cmds", except a single script fragment to be evaled but |
24010 | # not shown. | |
24011 | finish_eval=$lt_finish_eval | |
35fa52c0 | 24012 | |
9c60689e DWT |
24013 | # Whether we should hardcode library paths into libraries. |
24014 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 24015 | |
9c60689e DWT |
24016 | # Compile-time system search path for libraries. |
24017 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 24018 | |
9d54db95 JF |
24019 | # Detected run-time system search path for libraries. |
24020 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
24021 | ||
24022 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
24023 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
dbadc56a | 24024 | |
9c60689e DWT |
24025 | # Whether dlopen is supported. |
24026 | dlopen_support=$enable_dlopen | |
dbadc56a | 24027 | |
9c60689e DWT |
24028 | # Whether dlopen of programs is supported. |
24029 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 24030 | |
9c60689e DWT |
24031 | # Whether dlopen of statically linked programs is supported. |
24032 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 24033 | |
9c60689e DWT |
24034 | # Commands to strip libraries. |
24035 | old_striplib=$lt_old_striplib | |
24036 | striplib=$lt_striplib | |
35fa52c0 | 24037 | |
35fa52c0 | 24038 | |
9c60689e DWT |
24039 | # The linker used to build libraries. |
24040 | LD=$lt_LD | |
dbadc56a | 24041 | |
ee134472 JF |
24042 | # How to create reloadable object files. |
24043 | reload_flag=$lt_reload_flag | |
24044 | reload_cmds=$lt_reload_cmds | |
24045 | ||
9c60689e DWT |
24046 | # Commands used to build an old-style archive. |
24047 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 24048 | |
9c60689e DWT |
24049 | # A language specific compiler. |
24050 | CC=$lt_compiler | |
35fa52c0 | 24051 | |
9c60689e DWT |
24052 | # Is the compiler the GNU compiler? |
24053 | with_gcc=$GCC | |
dbadc56a | 24054 | |
9c60689e DWT |
24055 | # Compiler flag to turn off builtin functions. |
24056 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 24057 | |
9c60689e DWT |
24058 | # Additional compiler flags for building library objects. |
24059 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 24060 | |
ee134472 JF |
24061 | # How to pass a linker flag through the compiler. |
24062 | wl=$lt_lt_prog_compiler_wl | |
24063 | ||
9c60689e DWT |
24064 | # Compiler flag to prevent dynamic linking. |
24065 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 24066 | |
9c60689e DWT |
24067 | # Does compiler simultaneously support -c and -o options? |
24068 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 24069 | |
9c60689e DWT |
24070 | # Whether or not to add -lc for building shared libraries. |
24071 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 24072 | |
9c60689e DWT |
24073 | # Whether or not to disallow shared libs when runtime libs are static. |
24074 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 24075 | |
9c60689e DWT |
24076 | # Compiler flag to allow reflexive dlopens. |
24077 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 24078 | |
9c60689e DWT |
24079 | # Compiler flag to generate shared objects directly from archives. |
24080 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 24081 | |
9c60689e DWT |
24082 | # Whether the compiler copes with passing no objects directly. |
24083 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 24084 | |
9c60689e DWT |
24085 | # Create an old-style archive from a shared archive. |
24086 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 24087 | |
9c60689e DWT |
24088 | # Create a temporary old-style archive to link instead of a shared archive. |
24089 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 24090 | |
9c60689e DWT |
24091 | # Commands used to build a shared archive. |
24092 | archive_cmds=$lt_archive_cmds | |
24093 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 24094 | |
9c60689e DWT |
24095 | # Commands used to build a loadable module if different from building |
24096 | # a shared archive. | |
24097 | module_cmds=$lt_module_cmds | |
24098 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 24099 | |
9c60689e DWT |
24100 | # Whether we are building with GNU ld or not. |
24101 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 24102 | |
9c60689e DWT |
24103 | # Flag that allows shared libraries with undefined symbols to be built. |
24104 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 24105 | |
9c60689e DWT |
24106 | # Flag that enforces no undefined symbols. |
24107 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 24108 | |
9c60689e DWT |
24109 | # Flag to hardcode \$libdir into a binary during linking. |
24110 | # This must work even if \$libdir does not exist | |
24111 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 24112 | |
9c60689e DWT |
24113 | # Whether we need a single "-rpath" flag with a separated argument. |
24114 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 24115 | |
9d54db95 | 24116 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
24117 | # DIR into the resulting binary. |
24118 | hardcode_direct=$hardcode_direct | |
6b66678a | 24119 | |
9d54db95 | 24120 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 24121 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 24122 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
24123 | # library is relocated. |
24124 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 24125 | |
9c60689e DWT |
24126 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24127 | # into the resulting binary. | |
24128 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 24129 | |
9c60689e DWT |
24130 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24131 | # into the resulting binary. | |
24132 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 24133 | |
9c60689e DWT |
24134 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24135 | # into the library and all subsequent libraries and executables linked | |
24136 | # against it. | |
24137 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 24138 | |
9c60689e DWT |
24139 | # Set to yes if linker adds runtime paths of dependent libraries |
24140 | # to runtime path list. | |
24141 | inherit_rpath=$inherit_rpath | |
6b66678a | 24142 | |
9c60689e DWT |
24143 | # Whether libtool must link a program against all its dependency libraries. |
24144 | link_all_deplibs=$link_all_deplibs | |
24145 | ||
9c60689e DWT |
24146 | # Set to "yes" if exported symbols are required. |
24147 | always_export_symbols=$always_export_symbols | |
6b66678a | 24148 | |
9c60689e DWT |
24149 | # The commands to list exported symbols. |
24150 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 24151 | |
9c60689e DWT |
24152 | # Symbols that should not be listed in the preloaded symbols. |
24153 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 24154 | |
9c60689e DWT |
24155 | # Symbols that must always be exported. |
24156 | include_expsyms=$lt_include_expsyms | |
6b66678a | 24157 | |
9c60689e DWT |
24158 | # Commands necessary for linking programs (against libraries) with templates. |
24159 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 24160 | |
ee134472 JF |
24161 | # Commands necessary for finishing linking programs. |
24162 | postlink_cmds=$lt_postlink_cmds | |
24163 | ||
9c60689e DWT |
24164 | # Specify filename containing input files. |
24165 | file_list_spec=$lt_file_list_spec | |
6b66678a | 24166 | |
9c60689e DWT |
24167 | # How to hardcode a shared library path into an executable. |
24168 | hardcode_action=$hardcode_action | |
24169 | ||
24170 | # The directories searched by this compiler when creating a shared library. | |
24171 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
24172 | ||
24173 | # Dependencies to place before and after the objects being linked to | |
24174 | # create a shared library. | |
24175 | predep_objects=$lt_predep_objects | |
24176 | postdep_objects=$lt_postdep_objects | |
24177 | predeps=$lt_predeps | |
24178 | postdeps=$lt_postdeps | |
24179 | ||
24180 | # The library search path used internally by the compiler when linking | |
24181 | # a shared library. | |
24182 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
24183 | ||
24184 | # ### END LIBTOOL CONFIG | |
24185 | ||
9d54db95 JF |
24186 | _LT_EOF |
24187 | ||
24188 | cat <<'_LT_EOF' >> "$cfgfile" | |
24189 | ||
24190 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
24191 | ||
24192 | # func_munge_path_list VARIABLE PATH | |
24193 | # ----------------------------------- | |
24194 | # VARIABLE is name of variable containing _space_ separated list of | |
24195 | # directories to be munged by the contents of PATH, which is string | |
24196 | # having a format: | |
24197 | # "DIR[:DIR]:" | |
24198 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
24199 | # ":DIR[:DIR]" | |
24200 | # string "DIR[ DIR]" will be appended to VARIABLE | |
24201 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
24202 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
24203 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
24204 | # "DIR[:DIR]" | |
24205 | # VARIABLE will be replaced by "DIR[ DIR]" | |
24206 | func_munge_path_list () | |
24207 | { | |
24208 | case x$2 in | |
24209 | x) | |
24210 | ;; | |
24211 | *:) | |
24212 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
24213 | ;; | |
24214 | x:*) | |
24215 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
24216 | ;; | |
24217 | *::*) | |
24218 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
24219 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
24220 | ;; | |
24221 | *) | |
24222 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
24223 | ;; | |
24224 | esac | |
24225 | } | |
24226 | ||
24227 | ||
24228 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
24229 | func_cc_basename () | |
24230 | { | |
24231 | for cc_temp in $*""; do | |
24232 | case $cc_temp in | |
24233 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
24234 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
24235 | \-*) ;; | |
24236 | *) break;; | |
24237 | esac | |
24238 | done | |
24239 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
24240 | } | |
24241 | ||
24242 | ||
24243 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
24244 | ||
9c60689e DWT |
24245 | _LT_EOF |
24246 | ||
24247 | case $host_os in | |
24248 | aix3*) | |
24249 | cat <<\_LT_EOF >> "$cfgfile" | |
24250 | # AIX sometimes has problems with the GCC collect2 program. For some | |
24251 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
24252 | # vanish in a puff of smoke. | |
9d54db95 | 24253 | if test set != "${COLLECT_NAMES+set}"; then |
9c60689e DWT |
24254 | COLLECT_NAMES= |
24255 | export COLLECT_NAMES | |
6b66678a | 24256 | fi |
9c60689e DWT |
24257 | _LT_EOF |
24258 | ;; | |
24259 | esac | |
6b66678a DWT |
24260 | |
24261 | ||
9d54db95 | 24262 | ltmain=$ac_aux_dir/ltmain.sh |
6b66678a | 24263 | |
9c60689e DWT |
24264 | |
24265 | # We use sed instead of cat because bash on DJGPP gets confused if | |
24266 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
24267 | # text mode, it properly converts lines to CR/LF. This bash problem | |
24268 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
24269 | sed '$q' "$ltmain" >> "$cfgfile" \ |
24270 | || (rm -f "$cfgfile"; exit 1) | |
24271 | ||
ee134472 | 24272 | mv -f "$cfgfile" "$ofile" || |
9c60689e DWT |
24273 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
24274 | chmod +x "$ofile" | |
24275 | ||
24276 | ||
24277 | cat <<_LT_EOF >> "$ofile" | |
24278 | ||
24279 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
24280 | ||
24281 | # The linker used to build libraries. | |
24282 | LD=$lt_LD_CXX | |
24283 | ||
ee134472 JF |
24284 | # How to create reloadable object files. |
24285 | reload_flag=$lt_reload_flag_CXX | |
24286 | reload_cmds=$lt_reload_cmds_CXX | |
24287 | ||
9c60689e DWT |
24288 | # Commands used to build an old-style archive. |
24289 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
24290 | ||
24291 | # A language specific compiler. | |
24292 | CC=$lt_compiler_CXX | |
24293 | ||
24294 | # Is the compiler the GNU compiler? | |
24295 | with_gcc=$GCC_CXX | |
24296 | ||
24297 | # Compiler flag to turn off builtin functions. | |
24298 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 24299 | |
9c60689e DWT |
24300 | # Additional compiler flags for building library objects. |
24301 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 24302 | |
ee134472 JF |
24303 | # How to pass a linker flag through the compiler. |
24304 | wl=$lt_lt_prog_compiler_wl_CXX | |
24305 | ||
9c60689e DWT |
24306 | # Compiler flag to prevent dynamic linking. |
24307 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 24308 | |
9c60689e DWT |
24309 | # Does compiler simultaneously support -c and -o options? |
24310 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 24311 | |
9c60689e DWT |
24312 | # Whether or not to add -lc for building shared libraries. |
24313 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 24314 | |
9c60689e DWT |
24315 | # Whether or not to disallow shared libs when runtime libs are static. |
24316 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 24317 | |
9c60689e DWT |
24318 | # Compiler flag to allow reflexive dlopens. |
24319 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 24320 | |
9c60689e DWT |
24321 | # Compiler flag to generate shared objects directly from archives. |
24322 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 24323 | |
9c60689e DWT |
24324 | # Whether the compiler copes with passing no objects directly. |
24325 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 24326 | |
9c60689e DWT |
24327 | # Create an old-style archive from a shared archive. |
24328 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 24329 | |
9c60689e DWT |
24330 | # Create a temporary old-style archive to link instead of a shared archive. |
24331 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 24332 | |
9c60689e DWT |
24333 | # Commands used to build a shared archive. |
24334 | archive_cmds=$lt_archive_cmds_CXX | |
24335 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 24336 | |
9c60689e DWT |
24337 | # Commands used to build a loadable module if different from building |
24338 | # a shared archive. | |
24339 | module_cmds=$lt_module_cmds_CXX | |
24340 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 24341 | |
9c60689e DWT |
24342 | # Whether we are building with GNU ld or not. |
24343 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 24344 | |
9c60689e DWT |
24345 | # Flag that allows shared libraries with undefined symbols to be built. |
24346 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 24347 | |
9c60689e DWT |
24348 | # Flag that enforces no undefined symbols. |
24349 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 24350 | |
9c60689e DWT |
24351 | # Flag to hardcode \$libdir into a binary during linking. |
24352 | # This must work even if \$libdir does not exist | |
24353 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 24354 | |
9c60689e DWT |
24355 | # Whether we need a single "-rpath" flag with a separated argument. |
24356 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 24357 | |
9d54db95 | 24358 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
24359 | # DIR into the resulting binary. |
24360 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 24361 | |
9d54db95 | 24362 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 24363 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 24364 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
24365 | # library is relocated. |
24366 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 24367 | |
9c60689e DWT |
24368 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24369 | # into the resulting binary. | |
24370 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 24371 | |
9c60689e DWT |
24372 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24373 | # into the resulting binary. | |
24374 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 24375 | |
9c60689e DWT |
24376 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24377 | # into the library and all subsequent libraries and executables linked | |
24378 | # against it. | |
24379 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 24380 | |
9c60689e DWT |
24381 | # Set to yes if linker adds runtime paths of dependent libraries |
24382 | # to runtime path list. | |
24383 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 24384 | |
9c60689e DWT |
24385 | # Whether libtool must link a program against all its dependency libraries. |
24386 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 24387 | |
9c60689e DWT |
24388 | # Set to "yes" if exported symbols are required. |
24389 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 24390 | |
9c60689e DWT |
24391 | # The commands to list exported symbols. |
24392 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 24393 | |
9c60689e DWT |
24394 | # Symbols that should not be listed in the preloaded symbols. |
24395 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 24396 | |
9c60689e DWT |
24397 | # Symbols that must always be exported. |
24398 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 24399 | |
9c60689e DWT |
24400 | # Commands necessary for linking programs (against libraries) with templates. |
24401 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 24402 | |
ee134472 JF |
24403 | # Commands necessary for finishing linking programs. |
24404 | postlink_cmds=$lt_postlink_cmds_CXX | |
24405 | ||
9c60689e DWT |
24406 | # Specify filename containing input files. |
24407 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 24408 | |
9c60689e DWT |
24409 | # How to hardcode a shared library path into an executable. |
24410 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 24411 | |
9c60689e DWT |
24412 | # The directories searched by this compiler when creating a shared library. |
24413 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 24414 | |
9c60689e DWT |
24415 | # Dependencies to place before and after the objects being linked to |
24416 | # create a shared library. | |
24417 | predep_objects=$lt_predep_objects_CXX | |
24418 | postdep_objects=$lt_postdep_objects_CXX | |
24419 | predeps=$lt_predeps_CXX | |
24420 | postdeps=$lt_postdeps_CXX | |
309b0535 | 24421 | |
9c60689e DWT |
24422 | # The library search path used internally by the compiler when linking |
24423 | # a shared library. | |
24424 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
24425 | ||
24426 | # ### END LIBTOOL TAG CONFIG: CXX | |
24427 | _LT_EOF | |
24428 | ||
24429 | ;; | |
24430 | ||
24431 | esac | |
24432 | done # for ac_tag | |
24433 | ||
24434 | ||
24435 | as_fn_exit 0 | |
24436 | _ACEOF | |
24437 | ac_clean_files=$ac_clean_files_save | |
24438 | ||
24439 | test $ac_write_fail = 0 || | |
12833ad8 | 24440 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
24441 | |
24442 | ||
24443 | # configure is writing to config.log, and then calls config.status. | |
24444 | # config.status does its own redirection, appending to config.log. | |
24445 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24446 | # by configure, so config.status won't be able to write to it; its | |
24447 | # output is simply discarded. So we exec the FD to /dev/null, | |
24448 | # effectively closing config.log, so it can be properly (re)opened and | |
24449 | # appended to by config.status. When coming back to configure, we | |
24450 | # need to make the FD available again. | |
24451 | if test "$no_create" != yes; then | |
24452 | ac_cs_success=: | |
24453 | ac_config_status_args= | |
24454 | test "$silent" = yes && | |
24455 | ac_config_status_args="$ac_config_status_args --quiet" | |
24456 | exec 5>/dev/null | |
24457 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24458 | exec 5>>config.log | |
24459 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24460 | # would make configure fail if this is the last instruction. | |
12833ad8 | 24461 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 24462 | fi |
9c60689e DWT |
24463 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
24464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
24465 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
24466 | fi | |
24467 |