]>
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 | |
8d20f0f1 JF |
646 | CY_PRELINK_FALSE |
647 | CY_PRELINK_TRUE | |
648 | CY_LIBCLANG | |
a243b558 JF |
649 | CY_OBJECTIVEC_FALSE |
650 | CY_OBJECTIVEC_TRUE | |
5f29ae16 JF |
651 | CY_RUBY_FALSE |
652 | CY_RUBY_TRUE | |
39ed1631 JF |
653 | CY_JAVA_FALSE |
654 | CY_JAVA_TRUE | |
babf7fe8 | 655 | LTOBJECTIVEC |
47aaa820 | 656 | GNUSTEP_CONFIG |
c823f118 | 657 | CY_OBJECTIVEC |
5f29ae16 JF |
658 | LTRUBY |
659 | CY_RUBY | |
39ed1631 JF |
660 | LTJAVA |
661 | CY_JAVA | |
296ee9a6 | 662 | LTLIBFFI |
309b0535 | 663 | LIBFFI_LIBS |
35fa52c0 | 664 | LIBFFI_CFLAGS |
8d20f0f1 | 665 | LTLIBSQLITE3 |
ae1b611e | 666 | LTLIBUV |
8d20f0f1 | 667 | CY_SYSTEM |
a243b558 JF |
668 | CY_EXECUTE_FALSE |
669 | CY_EXECUTE_TRUE | |
a4287117 JF |
670 | CY_ATTACH_FALSE |
671 | CY_ATTACH_TRUE | |
a93f15c0 JF |
672 | CY_CONSOLE_FALSE |
673 | CY_CONSOLE_TRUE | |
babf7fe8 | 674 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
675 | WEBKIT_LIBS |
676 | WEBKIT_CFLAGS | |
7eda51e0 | 677 | CY_EXECUTE |
be2fde87 JF |
678 | PTHREAD_CFLAGS |
679 | PTHREAD_LIBS | |
680 | PTHREAD_CC | |
681 | ax_pthread_config | |
77578fdd | 682 | LFLAGS |
e9c9a47c | 683 | GNUTAR |
e9c9a47c DWT |
684 | GPERF |
685 | FLEX | |
686 | BISON | |
687 | TIME | |
66170b30 | 688 | GIT |
12833ad8 JF |
689 | PKG_CONFIG_LIBDIR |
690 | PKG_CONFIG_PATH | |
3fd51f51 | 691 | PKG_CONFIG |
1771224f | 692 | HAVE_CXX11 |
9d54db95 | 693 | LT_SYS_LIBRARY_PATH |
9c60689e DWT |
694 | OTOOL64 |
695 | OTOOL | |
696 | LIPO | |
697 | NMEDIT | |
698 | DSYMUTIL | |
ee134472 | 699 | MANIFEST_TOOL |
9c60689e | 700 | RANLIB |
ee134472 | 701 | DLLTOOL |
9c60689e DWT |
702 | OBJDUMP |
703 | LN_S | |
704 | NM | |
705 | ac_ct_DUMPBIN | |
706 | DUMPBIN | |
707 | LD | |
708 | FGREP | |
709 | EGREP | |
710 | GREP | |
711 | SED | |
8d20f0f1 JF |
712 | LIBTOOL |
713 | ac_ct_AR | |
714 | AR | |
715 | CXXCPPFLAGS_FOR_BUILD | |
716 | CXXFLAGS_FOR_BUILD | |
717 | CXXCPP_FOR_BUILD | |
718 | ac_ct_CXX_FOR_BUILD | |
719 | CXX_FOR_BUILD | |
720 | CXXCPP | |
721 | LDFLAGS_FOR_BUILD | |
722 | CPPFLAGS_FOR_BUILD | |
723 | CFLAGS_FOR_BUILD | |
724 | BUILD_OBJEXT | |
725 | BUILD_EXEEXT | |
726 | CPP_FOR_BUILD | |
727 | ac_ct_CC_FOR_BUILD | |
728 | CC_FOR_BUILD | |
a243b558 JF |
729 | host_os |
730 | host_vendor | |
731 | host_cpu | |
732 | host | |
733 | build_os | |
734 | build_vendor | |
735 | build_cpu | |
736 | build | |
8d20f0f1 | 737 | CPP |
a243b558 JF |
738 | am__fastdepOBJCXX_FALSE |
739 | am__fastdepOBJCXX_TRUE | |
740 | OBJCXXDEPMODE | |
741 | ac_ct_OBJCXX | |
742 | OBJCXXFLAGS | |
743 | OBJCXX | |
744 | am__fastdepCXX_FALSE | |
745 | am__fastdepCXX_TRUE | |
746 | CXXDEPMODE | |
a93f15c0 JF |
747 | ac_ct_CXX |
748 | CXXFLAGS | |
749 | CXX | |
750 | am__fastdepCC_FALSE | |
751 | am__fastdepCC_TRUE | |
752 | CCDEPMODE | |
66170b30 JF |
753 | am__nodep |
754 | AMDEPBACKSLASH | |
755 | AMDEP_FALSE | |
756 | AMDEP_TRUE | |
757 | am__quote | |
758 | am__include | |
759 | DEPDIR | |
35fa52c0 DWT |
760 | OBJEXT |
761 | EXEEXT | |
a93f15c0 | 762 | ac_ct_CC |
35fa52c0 DWT |
763 | CPPFLAGS |
764 | LDFLAGS | |
a93f15c0 JF |
765 | CFLAGS |
766 | CC | |
babf7fe8 JF |
767 | MAINT |
768 | MAINTAINER_MODE_FALSE | |
769 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
770 | AM_BACKSLASH |
771 | AM_DEFAULT_VERBOSITY | |
772 | AM_DEFAULT_V | |
773 | AM_V | |
774 | am__untar | |
775 | am__tar | |
776 | AMTAR | |
777 | am__leading_dot | |
778 | SET_MAKE | |
779 | AWK | |
780 | mkdir_p | |
781 | MKDIR_P | |
782 | INSTALL_STRIP_PROGRAM | |
783 | STRIP | |
784 | install_sh | |
785 | MAKEINFO | |
786 | AUTOHEADER | |
787 | AUTOMAKE | |
788 | AUTOCONF | |
789 | ACLOCAL | |
790 | VERSION | |
791 | PACKAGE | |
792 | CYGPATH_W | |
793 | am__isrc | |
794 | INSTALL_DATA | |
795 | INSTALL_SCRIPT | |
796 | INSTALL_PROGRAM | |
dbadc56a | 797 | target_alias |
c7aa54aa DWT |
798 | host_alias |
799 | build_alias | |
800 | LIBS | |
801 | ECHO_T | |
802 | ECHO_N | |
803 | ECHO_C | |
804 | DEFS | |
805 | mandir | |
806 | localedir | |
807 | libdir | |
808 | psdir | |
809 | pdfdir | |
810 | dvidir | |
811 | htmldir | |
812 | infodir | |
813 | docdir | |
814 | oldincludedir | |
815 | includedir | |
816 | localstatedir | |
817 | sharedstatedir | |
818 | sysconfdir | |
819 | datadir | |
820 | datarootdir | |
821 | libexecdir | |
822 | sbindir | |
823 | bindir | |
824 | program_transform_name | |
825 | prefix | |
826 | exec_prefix | |
827 | PACKAGE_URL | |
828 | PACKAGE_BUGREPORT | |
829 | PACKAGE_STRING | |
830 | PACKAGE_VERSION | |
831 | PACKAGE_TARNAME | |
832 | PACKAGE_NAME | |
833 | PATH_SEPARATOR | |
834 | SHELL' | |
835 | ac_subst_files='' | |
836 | ac_user_opts=' | |
837 | enable_option_checking | |
66170b30 | 838 | enable_silent_rules |
babf7fe8 | 839 | enable_maintainer_mode |
a243b558 | 840 | enable_dependency_tracking |
9c60689e | 841 | enable_static |
549f29b5 | 842 | enable_shared |
9c60689e DWT |
843 | with_pic |
844 | enable_fast_install | |
9d54db95 | 845 | with_aix_soname |
35fa52c0 | 846 | with_gnu_ld |
ee134472 | 847 | with_sysroot |
9c60689e | 848 | enable_libtool_lock |
5053a6d1 | 849 | enable_javascript |
a93f15c0 | 850 | enable_console |
a4287117 | 851 | enable_attach |
8d20f0f1 | 852 | with_libclang |
c7aa54aa DWT |
853 | ' |
854 | ac_precious_vars='build_alias | |
855 | host_alias | |
dbadc56a | 856 | target_alias |
a93f15c0 JF |
857 | CC |
858 | CFLAGS | |
dbadc56a DWT |
859 | LDFLAGS |
860 | LIBS | |
861 | CPPFLAGS | |
a93f15c0 JF |
862 | CXX |
863 | CXXFLAGS | |
a243b558 JF |
864 | CCC |
865 | OBJCXX | |
866 | OBJCXXFLAGS | |
9c60689e | 867 | CPP |
a243b558 | 868 | CXXCPP |
8d20f0f1 | 869 | LT_SYS_LIBRARY_PATH |
3fd51f51 | 870 | PKG_CONFIG |
12833ad8 JF |
871 | PKG_CONFIG_PATH |
872 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
873 | BISON |
874 | FLEX | |
875 | GPERF | |
66170b30 | 876 | GNUTAR |
77578fdd | 877 | LFLAGS |
35fa52c0 DWT |
878 | WEBKIT_CFLAGS |
879 | WEBKIT_LIBS | |
a667869d | 880 | LIBFFI_CFLAGS |
790e5246 DWT |
881 | LIBFFI_LIBS |
882 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
883 | |
884 | ||
885 | # Initialize some variables set by options. | |
886 | ac_init_help= | |
887 | ac_init_version=false | |
888 | ac_unrecognized_opts= | |
889 | ac_unrecognized_sep= | |
890 | # The variables have the same names as the options, with | |
891 | # dashes changed to underlines. | |
892 | cache_file=/dev/null | |
893 | exec_prefix=NONE | |
894 | no_create= | |
895 | no_recursion= | |
896 | prefix=NONE | |
897 | program_prefix=NONE | |
898 | program_suffix=NONE | |
899 | program_transform_name=s,x,x, | |
900 | silent= | |
901 | site= | |
902 | srcdir= | |
903 | verbose= | |
904 | x_includes=NONE | |
905 | x_libraries=NONE | |
906 | ||
907 | # Installation directory options. | |
908 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
909 | # and all the variables that are supposed to be based on exec_prefix | |
910 | # by default will actually change. | |
911 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
912 | # (The list follows the same order as the GNU Coding Standards.) | |
913 | bindir='${exec_prefix}/bin' | |
914 | sbindir='${exec_prefix}/sbin' | |
915 | libexecdir='${exec_prefix}/libexec' | |
916 | datarootdir='${prefix}/share' | |
917 | datadir='${datarootdir}' | |
918 | sysconfdir='${prefix}/etc' | |
919 | sharedstatedir='${prefix}/com' | |
920 | localstatedir='${prefix}/var' | |
921 | includedir='${prefix}/include' | |
922 | oldincludedir='/usr/include' | |
923 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
924 | infodir='${datarootdir}/info' | |
925 | htmldir='${docdir}' | |
926 | dvidir='${docdir}' | |
927 | pdfdir='${docdir}' | |
928 | psdir='${docdir}' | |
929 | libdir='${exec_prefix}/lib' | |
930 | localedir='${datarootdir}/locale' | |
931 | mandir='${datarootdir}/man' | |
932 | ||
933 | ac_prev= | |
934 | ac_dashdash= | |
935 | for ac_option | |
936 | do | |
937 | # If the previous option needs an argument, assign it. | |
938 | if test -n "$ac_prev"; then | |
939 | eval $ac_prev=\$ac_option | |
940 | ac_prev= | |
941 | continue | |
942 | fi | |
943 | ||
944 | case $ac_option in | |
12833ad8 JF |
945 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
946 | *=) ac_optarg= ;; | |
947 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
948 | esac |
949 | ||
950 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
951 | ||
952 | case $ac_dashdash$ac_option in | |
953 | --) | |
954 | ac_dashdash=yes ;; | |
955 | ||
956 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
957 | ac_prev=bindir ;; | |
958 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
959 | bindir=$ac_optarg ;; | |
960 | ||
961 | -build | --build | --buil | --bui | --bu) | |
962 | ac_prev=build_alias ;; | |
963 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
964 | build_alias=$ac_optarg ;; | |
965 | ||
966 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
967 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
968 | ac_prev=cache_file ;; | |
969 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
970 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
971 | cache_file=$ac_optarg ;; | |
972 | ||
973 | --config-cache | -C) | |
974 | cache_file=config.cache ;; | |
975 | ||
976 | -datadir | --datadir | --datadi | --datad) | |
977 | ac_prev=datadir ;; | |
978 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
979 | datadir=$ac_optarg ;; | |
980 | ||
981 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
982 | | --dataroo | --dataro | --datar) | |
983 | ac_prev=datarootdir ;; | |
984 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
985 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
986 | datarootdir=$ac_optarg ;; | |
987 | ||
988 | -disable-* | --disable-*) | |
989 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
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--disable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=no ;; | |
1003 | ||
1004 | -docdir | --docdir | --docdi | --doc | --do) | |
1005 | ac_prev=docdir ;; | |
1006 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1007 | docdir=$ac_optarg ;; | |
1008 | ||
1009 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1010 | ac_prev=dvidir ;; | |
1011 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1012 | dvidir=$ac_optarg ;; | |
1013 | ||
1014 | -enable-* | --enable-*) | |
1015 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1016 | # Reject names that are not valid shell variable names. | |
1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1018 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
1019 | ac_useropt_orig=$ac_useropt |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "enable_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
1027 | esac | |
1028 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1029 | ||
1030 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1031 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1032 | | --exec | --exe | --ex) | |
1033 | ac_prev=exec_prefix ;; | |
1034 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1035 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1036 | | --exec=* | --exe=* | --ex=*) | |
1037 | exec_prefix=$ac_optarg ;; | |
1038 | ||
1039 | -gas | --gas | --ga | --g) | |
1040 | # Obsolete; use --with-gas. | |
1041 | with_gas=yes ;; | |
1042 | ||
1043 | -help | --help | --hel | --he | -h) | |
1044 | ac_init_help=long ;; | |
1045 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1046 | ac_init_help=recursive ;; | |
1047 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1048 | ac_init_help=short ;; | |
1049 | ||
1050 | -host | --host | --hos | --ho) | |
1051 | ac_prev=host_alias ;; | |
1052 | -host=* | --host=* | --hos=* | --ho=*) | |
1053 | host_alias=$ac_optarg ;; | |
1054 | ||
1055 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1056 | ac_prev=htmldir ;; | |
1057 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1058 | | --ht=*) | |
1059 | htmldir=$ac_optarg ;; | |
1060 | ||
1061 | -includedir | --includedir | --includedi | --included | --include \ | |
1062 | | --includ | --inclu | --incl | --inc) | |
1063 | ac_prev=includedir ;; | |
1064 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1065 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1066 | includedir=$ac_optarg ;; | |
1067 | ||
1068 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1069 | ac_prev=infodir ;; | |
1070 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1071 | infodir=$ac_optarg ;; | |
1072 | ||
1073 | -libdir | --libdir | --libdi | --libd) | |
1074 | ac_prev=libdir ;; | |
1075 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1076 | libdir=$ac_optarg ;; | |
1077 | ||
1078 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1079 | | --libexe | --libex | --libe) | |
1080 | ac_prev=libexecdir ;; | |
1081 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1082 | | --libexe=* | --libex=* | --libe=*) | |
1083 | libexecdir=$ac_optarg ;; | |
1084 | ||
1085 | -localedir | --localedir | --localedi | --localed | --locale) | |
1086 | ac_prev=localedir ;; | |
1087 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1088 | localedir=$ac_optarg ;; | |
1089 | ||
1090 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1091 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1092 | ac_prev=localstatedir ;; | |
1093 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1094 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1095 | localstatedir=$ac_optarg ;; | |
1096 | ||
1097 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1098 | ac_prev=mandir ;; | |
1099 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1100 | mandir=$ac_optarg ;; | |
1101 | ||
1102 | -nfp | --nfp | --nf) | |
1103 | # Obsolete; use --without-fp. | |
1104 | with_fp=no ;; | |
1105 | ||
1106 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1107 | | --no-cr | --no-c | -n) | |
1108 | no_create=yes ;; | |
1109 | ||
1110 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1111 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1112 | no_recursion=yes ;; | |
1113 | ||
1114 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1115 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1116 | | --oldin | --oldi | --old | --ol | --o) | |
1117 | ac_prev=oldincludedir ;; | |
1118 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1119 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1120 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1121 | oldincludedir=$ac_optarg ;; | |
1122 | ||
1123 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1124 | ac_prev=prefix ;; | |
1125 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1126 | prefix=$ac_optarg ;; | |
1127 | ||
1128 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1129 | | --program-pre | --program-pr | --program-p) | |
1130 | ac_prev=program_prefix ;; | |
1131 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1132 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1133 | program_prefix=$ac_optarg ;; | |
1134 | ||
1135 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1136 | | --program-suf | --program-su | --program-s) | |
1137 | ac_prev=program_suffix ;; | |
1138 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1139 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1140 | program_suffix=$ac_optarg ;; | |
1141 | ||
1142 | -program-transform-name | --program-transform-name \ | |
1143 | | --program-transform-nam | --program-transform-na \ | |
1144 | | --program-transform-n | --program-transform- \ | |
1145 | | --program-transform | --program-transfor \ | |
1146 | | --program-transfo | --program-transf \ | |
1147 | | --program-trans | --program-tran \ | |
1148 | | --progr-tra | --program-tr | --program-t) | |
1149 | ac_prev=program_transform_name ;; | |
1150 | -program-transform-name=* | --program-transform-name=* \ | |
1151 | | --program-transform-nam=* | --program-transform-na=* \ | |
1152 | | --program-transform-n=* | --program-transform-=* \ | |
1153 | | --program-transform=* | --program-transfor=* \ | |
1154 | | --program-transfo=* | --program-transf=* \ | |
1155 | | --program-trans=* | --program-tran=* \ | |
1156 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1157 | program_transform_name=$ac_optarg ;; | |
1158 | ||
1159 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1160 | ac_prev=pdfdir ;; | |
1161 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1162 | pdfdir=$ac_optarg ;; | |
1163 | ||
1164 | -psdir | --psdir | --psdi | --psd | --ps) | |
1165 | ac_prev=psdir ;; | |
1166 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1167 | psdir=$ac_optarg ;; | |
1168 | ||
1169 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1170 | | -silent | --silent | --silen | --sile | --sil) | |
1171 | silent=yes ;; | |
1172 | ||
1173 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1174 | ac_prev=sbindir ;; | |
1175 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1176 | | --sbi=* | --sb=*) | |
1177 | sbindir=$ac_optarg ;; | |
1178 | ||
1179 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1180 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1181 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1182 | | --sha | --sh) | |
1183 | ac_prev=sharedstatedir ;; | |
1184 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1185 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1186 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1187 | | --sha=* | --sh=*) | |
1188 | sharedstatedir=$ac_optarg ;; | |
1189 | ||
1190 | -site | --site | --sit) | |
1191 | ac_prev=site ;; | |
1192 | -site=* | --site=* | --sit=*) | |
1193 | site=$ac_optarg ;; | |
1194 | ||
1195 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1196 | ac_prev=srcdir ;; | |
1197 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1198 | srcdir=$ac_optarg ;; | |
1199 | ||
1200 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1201 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1202 | ac_prev=sysconfdir ;; | |
1203 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1204 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1205 | sysconfdir=$ac_optarg ;; | |
1206 | ||
1207 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1208 | ac_prev=target_alias ;; | |
1209 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1210 | target_alias=$ac_optarg ;; | |
1211 | ||
1212 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1213 | verbose=yes ;; | |
1214 | ||
1215 | -version | --version | --versio | --versi | --vers | -V) | |
1216 | ac_init_version=: ;; | |
1217 | ||
1218 | -with-* | --with-*) | |
1219 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1220 | # Reject names that are not valid shell variable names. | |
1221 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1222 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1223 | ac_useropt_orig=$ac_useropt |
1224 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1225 | case $ac_user_opts in | |
1226 | *" | |
1227 | "with_$ac_useropt" | |
1228 | "*) ;; | |
1229 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1230 | ac_unrecognized_sep=', ';; | |
1231 | esac | |
1232 | eval with_$ac_useropt=\$ac_optarg ;; | |
1233 | ||
1234 | -without-* | --without-*) | |
1235 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1236 | # Reject names that are not valid shell variable names. | |
1237 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1238 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1239 | ac_useropt_orig=$ac_useropt |
1240 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1241 | case $ac_user_opts in | |
1242 | *" | |
1243 | "with_$ac_useropt" | |
1244 | "*) ;; | |
1245 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1246 | ac_unrecognized_sep=', ';; | |
1247 | esac | |
1248 | eval with_$ac_useropt=no ;; | |
1249 | ||
1250 | --x) | |
1251 | # Obsolete; use --with-x. | |
1252 | with_x=yes ;; | |
1253 | ||
1254 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1255 | | --x-incl | --x-inc | --x-in | --x-i) | |
1256 | ac_prev=x_includes ;; | |
1257 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1258 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1259 | x_includes=$ac_optarg ;; | |
1260 | ||
1261 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1262 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1263 | ac_prev=x_libraries ;; | |
1264 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1265 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1266 | x_libraries=$ac_optarg ;; | |
1267 | ||
12833ad8 JF |
1268 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1269 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1270 | ;; |
1271 | ||
1272 | *=*) | |
1273 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1274 | # Reject names that are not valid shell variable names. | |
1275 | case $ac_envvar in #( | |
1276 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1277 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1278 | esac |
1279 | eval $ac_envvar=\$ac_optarg | |
1280 | export $ac_envvar ;; | |
1281 | ||
1282 | *) | |
1283 | # FIXME: should be removed in autoconf 3.0. | |
1284 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1285 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1286 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1287 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1288 | ;; |
1289 | ||
1290 | esac | |
1291 | done | |
1292 | ||
1293 | if test -n "$ac_prev"; then | |
1294 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1295 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1296 | fi |
1297 | ||
1298 | if test -n "$ac_unrecognized_opts"; then | |
1299 | case $enable_option_checking in | |
1300 | no) ;; | |
12833ad8 | 1301 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1302 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1303 | esac | |
1304 | fi | |
1305 | ||
1306 | # Check all directory arguments for consistency. | |
1307 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1308 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1309 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1310 | libdir localedir mandir | |
1311 | do | |
1312 | eval ac_val=\$$ac_var | |
1313 | # Remove trailing slashes. | |
1314 | case $ac_val in | |
1315 | */ ) | |
1316 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1317 | eval $ac_var=\$ac_val;; | |
1318 | esac | |
1319 | # Be sure to have absolute directory names. | |
1320 | case $ac_val in | |
1321 | [\\/$]* | ?:[\\/]* ) continue;; | |
1322 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1323 | esac | |
12833ad8 | 1324 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1325 | done |
1326 | ||
1327 | # There might be people who depend on the old broken behavior: `$host' | |
1328 | # used to hold the argument of --host etc. | |
1329 | # FIXME: To remove some day. | |
1330 | build=$build_alias | |
1331 | host=$host_alias | |
1332 | target=$target_alias | |
1333 | ||
1334 | # FIXME: To remove some day. | |
1335 | if test "x$host_alias" != x; then | |
1336 | if test "x$build_alias" = x; then | |
1337 | cross_compiling=maybe | |
c7aa54aa DWT |
1338 | elif test "x$build_alias" != "x$host_alias"; then |
1339 | cross_compiling=yes | |
1340 | fi | |
1341 | fi | |
1342 | ||
1343 | ac_tool_prefix= | |
1344 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1345 | ||
1346 | test "$silent" = yes && exec 6>/dev/null | |
1347 | ||
1348 | ||
1349 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1350 | ac_ls_di=`ls -di .` && | |
1351 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1352 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1353 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1354 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1355 | |
1356 | ||
1357 | # Find the source files, if location was not specified. | |
1358 | if test -z "$srcdir"; then | |
1359 | ac_srcdir_defaulted=yes | |
1360 | # Try the directory containing this script, then the parent directory. | |
1361 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1362 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1363 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1364 | X"$as_myself" : 'X\(//\)$' \| \ | |
1365 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1366 | $as_echo X"$as_myself" | | |
1367 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | /^X\(\/\/\)[^/].*/{ | |
1372 | s//\1/ | |
1373 | q | |
1374 | } | |
1375 | /^X\(\/\/\)$/{ | |
1376 | s//\1/ | |
1377 | q | |
1378 | } | |
1379 | /^X\(\/\).*/{ | |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | s/.*/./; q'` | |
1384 | srcdir=$ac_confdir | |
1385 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1386 | srcdir=.. | |
1387 | fi | |
1388 | else | |
1389 | ac_srcdir_defaulted=no | |
1390 | fi | |
1391 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1392 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1393 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1394 | fi |
1395 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1396 | ac_abs_confdir=`( | |
12833ad8 | 1397 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1398 | pwd)` |
1399 | # When building in place, set srcdir=. | |
1400 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1401 | srcdir=. | |
1402 | fi | |
1403 | # Remove unnecessary trailing slashes from srcdir. | |
1404 | # Double slashes in file names in object file debugging info | |
1405 | # mess up M-x gdb in Emacs. | |
1406 | case $srcdir in | |
1407 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1408 | esac | |
1409 | for ac_var in $ac_precious_vars; do | |
1410 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1411 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1412 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1413 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1414 | done | |
1415 | ||
1416 | # | |
1417 | # Report the --help message. | |
1418 | # | |
1419 | if test "$ac_init_help" = "long"; then | |
1420 | # Omit some internal or obsolete options to make the list less imposing. | |
1421 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1422 | cat <<_ACEOF | |
1423 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1424 | ||
1425 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1426 | ||
1427 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1428 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1429 | ||
1430 | Defaults for the options are specified in brackets. | |
1431 | ||
1432 | Configuration: | |
1433 | -h, --help display this help and exit | |
1434 | --help=short display options specific to this package | |
1435 | --help=recursive display the short help of all the included packages | |
1436 | -V, --version display version information and exit | |
12833ad8 | 1437 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1438 | --cache-file=FILE cache test results in FILE [disabled] |
1439 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1440 | -n, --no-create do not create output files | |
1441 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1442 | ||
1443 | Installation directories: | |
1444 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1445 | [$ac_default_prefix] | |
1446 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1447 | [PREFIX] | |
1448 | ||
1449 | By default, \`make install' will install all the files in | |
1450 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1451 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1452 | for instance \`--prefix=\$HOME'. | |
1453 | ||
1454 | For better control, use the options below. | |
1455 | ||
1456 | Fine tuning of the installation directories: | |
1457 | --bindir=DIR user executables [EPREFIX/bin] | |
1458 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1459 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1460 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1461 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1462 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1463 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1464 | --includedir=DIR C header files [PREFIX/include] | |
1465 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1466 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1467 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1468 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1469 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1470 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1471 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1472 | --htmldir=DIR html documentation [DOCDIR] | |
1473 | --dvidir=DIR dvi documentation [DOCDIR] | |
1474 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1475 | --psdir=DIR ps documentation [DOCDIR] | |
1476 | _ACEOF | |
1477 | ||
1478 | cat <<\_ACEOF | |
35fa52c0 | 1479 | |
66170b30 JF |
1480 | Program names: |
1481 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1482 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1483 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1484 | ||
35fa52c0 DWT |
1485 | System types: |
1486 | --build=BUILD configure for building on BUILD [guessed] | |
1487 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1488 | _ACEOF |
1489 | fi | |
1490 | ||
1491 | if test -n "$ac_init_help"; then | |
1492 | case $ac_init_help in | |
1493 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1494 | esac | |
1495 | cat <<\_ACEOF | |
1496 | ||
35fa52c0 DWT |
1497 | Optional Features: |
1498 | --disable-option-checking ignore unrecognized --enable/--with options | |
1499 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1500 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1501 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1502 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1503 | --enable-maintainer-mode |
1504 | enable make rules and dependencies not useful (and | |
1505 | sometimes confusing) to the casual installer | |
66170b30 JF |
1506 | --enable-dependency-tracking |
1507 | do not reject slow dependency extractors | |
1508 | --disable-dependency-tracking | |
1509 | speeds up one-time build | |
a243b558 JF |
1510 | --enable-static[=PKGS] build static libraries [default=no] |
1511 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1512 | --enable-fast-install[=PKGS] | |
1513 | optimize for fast installation [default=yes] | |
9c60689e | 1514 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1515 | --enable-javascript[=ENGINE] |
790e5246 | 1516 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1517 | available option for ENGINE is JavaScriptCore) |
1518 | [default=yes] | |
a93f15c0 | 1519 | --disable-console disable console |
a4287117 | 1520 | --disable-attach disable attach |
35fa52c0 DWT |
1521 | |
1522 | Optional Packages: | |
1523 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1524 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1525 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e | 1526 | both] |
9d54db95 JF |
1527 | --with-aix-soname=aix|svr4|both |
1528 | shared library versioning (aka "SONAME") variant to | |
1529 | provide on AIX, [default=aix]. | |
9c60689e | 1530 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
9d54db95 JF |
1531 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1532 | compiler's sysroot if not specified). | |
8d20f0f1 | 1533 | --with-libclang build bridge definitions using this libclang |
35fa52c0 | 1534 | |
dbadc56a | 1535 | Some influential environment variables: |
a93f15c0 JF |
1536 | CC C compiler command |
1537 | CFLAGS C compiler flags | |
dbadc56a DWT |
1538 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1539 | nonstandard directory <lib dir> | |
1540 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1541 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1542 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1543 | CXX C++ compiler command |
1544 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1545 | OBJCXX Objective C++ compiler command |
1546 | OBJCXXFLAGS Objective C++ compiler flags | |
9c60689e | 1547 | CPP C preprocessor |
a243b558 | 1548 | CXXCPP C++ preprocessor |
8d20f0f1 JF |
1549 | LT_SYS_LIBRARY_PATH |
1550 | User-defined run-time library search path. | |
3fd51f51 | 1551 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1552 | PKG_CONFIG_PATH |
1553 | directories to add to pkg-config's search path | |
1554 | PKG_CONFIG_LIBDIR | |
1555 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1556 | BISON GNU Project parser generator (yacc replacement) |
1557 | FLEX the fast lexical analyser generator | |
1558 | GPERF perfect hash function generator | |
66170b30 | 1559 | GNUTAR a very sticky lump of files |
77578fdd | 1560 | LFLAGS flex flags |
35fa52c0 DWT |
1561 | WEBKIT_CFLAGS |
1562 | C compiler flags for WEBKIT, overriding pkg-config | |
1563 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
574d4720 JF |
1564 | LIBFFI_CFLAGS |
1565 | C compiler flags for LIBFFI, overriding pkg-config | |
1566 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1567 | GNUSTEP_CONFIG |
1568 | prints information about the current gnustep installation | |
dbadc56a DWT |
1569 | |
1570 | Use these variables to override the choices made by `configure' or to help | |
1571 | it to find libraries and programs with nonstandard names/locations. | |
1572 | ||
c7aa54aa DWT |
1573 | Report bugs to <saurik@saurik.com>. |
1574 | Cycript home page: <http://www.cycript.org/>. | |
1575 | _ACEOF | |
1576 | ac_status=$? | |
1577 | fi | |
1578 | ||
1579 | if test "$ac_init_help" = "recursive"; then | |
1580 | # If there are subdirs, report their specific --help. | |
1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1582 | test -d "$ac_dir" || | |
1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1584 | continue | |
1585 | ac_builddir=. | |
1586 | ||
1587 | case "$ac_dir" in | |
1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) | |
1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1591 | # A ".." for each directory in $ac_dir_suffix. | |
1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1593 | case $ac_top_builddir_sub in | |
1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1596 | esac ;; | |
1597 | esac | |
1598 | ac_abs_top_builddir=$ac_pwd | |
1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1600 | # for backward compatibility: | |
1601 | ac_top_builddir=$ac_top_build_prefix | |
1602 | ||
1603 | case $srcdir in | |
1604 | .) # We are building in place. | |
1605 | ac_srcdir=. | |
1606 | ac_top_srcdir=$ac_top_builddir_sub | |
1607 | ac_abs_top_srcdir=$ac_pwd ;; | |
1608 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1609 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1610 | ac_top_srcdir=$srcdir | |
1611 | ac_abs_top_srcdir=$srcdir ;; | |
1612 | *) # Relative name. | |
1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1616 | esac | |
1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1618 | ||
1619 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1620 | # Check for guested configure. | |
1621 | if test -f "$ac_srcdir/configure.gnu"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1624 | elif test -f "$ac_srcdir/configure"; then | |
1625 | echo && | |
1626 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1627 | else | |
1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1629 | fi || ac_status=$? | |
1630 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1631 | done | |
1632 | fi | |
1633 | ||
1634 | test -n "$ac_init_help" && exit $ac_status | |
1635 | if $ac_init_version; then | |
1636 | cat <<\_ACEOF | |
1637 | Cycript configure 0.9 | |
53ba6704 | 1638 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1639 | |
53ba6704 | 1640 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1641 | This configure script is free software; the Free Software Foundation |
1642 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 1643 | |
c1d3e52e | 1644 | Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
1645 | _ACEOF |
1646 | exit | |
1647 | fi | |
1648 | ||
1649 | ## ------------------------ ## | |
1650 | ## Autoconf initialization. ## | |
1651 | ## ------------------------ ## | |
dbadc56a | 1652 | |
a93f15c0 JF |
1653 | # ac_fn_c_try_compile LINENO |
1654 | # -------------------------- | |
a243b558 | 1655 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1656 | ac_fn_c_try_compile () |
a243b558 JF |
1657 | { |
1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1659 | rm -f conftest.$ac_objext | |
1660 | if { { ac_try="$ac_compile" | |
1661 | case "(($ac_try" in | |
1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1663 | *) ac_try_echo=$ac_try;; | |
1664 | esac | |
1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1666 | $as_echo "$ac_try_echo"; } >&5 | |
1667 | (eval "$ac_compile") 2>conftest.err | |
1668 | ac_status=$? | |
1669 | if test -s conftest.err; then | |
1670 | grep -v '^ *+' conftest.err >conftest.er1 | |
1671 | cat conftest.er1 >&5 | |
1672 | mv -f conftest.er1 conftest.err | |
1673 | fi | |
1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1675 | test $ac_status = 0; } && { | |
a93f15c0 | 1676 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1677 | test ! -s conftest.err |
1678 | } && test -s conftest.$ac_objext; then : | |
1679 | ac_retval=0 | |
1680 | else | |
1681 | $as_echo "$as_me: failed program was:" >&5 | |
1682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1683 | ||
1684 | ac_retval=1 | |
1685 | fi | |
1686 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1687 | as_fn_set_status $ac_retval | |
1688 | ||
a93f15c0 | 1689 | } # ac_fn_c_try_compile |
a243b558 | 1690 | |
a93f15c0 JF |
1691 | # ac_fn_cxx_try_compile LINENO |
1692 | # ---------------------------- | |
a243b558 | 1693 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1694 | ac_fn_cxx_try_compile () |
a243b558 JF |
1695 | { |
1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1697 | rm -f conftest.$ac_objext | |
1698 | if { { ac_try="$ac_compile" | |
1699 | case "(($ac_try" in | |
1700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1701 | *) ac_try_echo=$ac_try;; | |
1702 | esac | |
1703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1704 | $as_echo "$ac_try_echo"; } >&5 | |
1705 | (eval "$ac_compile") 2>conftest.err | |
1706 | ac_status=$? | |
1707 | if test -s conftest.err; then | |
1708 | grep -v '^ *+' conftest.err >conftest.er1 | |
1709 | cat conftest.er1 >&5 | |
1710 | mv -f conftest.er1 conftest.err | |
1711 | fi | |
1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1713 | test $ac_status = 0; } && { | |
a93f15c0 | 1714 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1715 | test ! -s conftest.err |
1716 | } && test -s conftest.$ac_objext; then : | |
1717 | ac_retval=0 | |
1718 | else | |
1719 | $as_echo "$as_me: failed program was:" >&5 | |
1720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1721 | ||
1722 | ac_retval=1 | |
1723 | fi | |
1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1725 | as_fn_set_status $ac_retval | |
1726 | ||
a93f15c0 | 1727 | } # ac_fn_cxx_try_compile |
a243b558 | 1728 | |
a93f15c0 JF |
1729 | # ac_fn_objcxx_try_compile LINENO |
1730 | # ------------------------------- | |
35fa52c0 | 1731 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1732 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1733 | { |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 | rm -f conftest.$ac_objext | |
1736 | if { { ac_try="$ac_compile" | |
1737 | case "(($ac_try" in | |
1738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1739 | *) ac_try_echo=$ac_try;; | |
1740 | esac | |
1741 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1742 | $as_echo "$ac_try_echo"; } >&5 | |
1743 | (eval "$ac_compile") 2>conftest.err | |
1744 | ac_status=$? | |
1745 | if test -s conftest.err; then | |
1746 | grep -v '^ *+' conftest.err >conftest.er1 | |
1747 | cat conftest.er1 >&5 | |
1748 | mv -f conftest.er1 conftest.err | |
1749 | fi | |
1750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1751 | test $ac_status = 0; } && { | |
a93f15c0 | 1752 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1753 | test ! -s conftest.err |
1754 | } && test -s conftest.$ac_objext; then : | |
1755 | ac_retval=0 | |
1756 | else | |
1757 | $as_echo "$as_me: failed program was:" >&5 | |
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1759 | ||
1760 | ac_retval=1 | |
1761 | fi | |
ee134472 | 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1763 | as_fn_set_status $ac_retval |
35fa52c0 | 1764 | |
a93f15c0 | 1765 | } # ac_fn_objcxx_try_compile |
35fa52c0 | 1766 | |
8d20f0f1 JF |
1767 | # ac_fn_c_try_cpp LINENO |
1768 | # ---------------------- | |
1769 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1770 | ac_fn_c_try_cpp () | |
1771 | { | |
1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1773 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1774 | case "(($ac_try" in | |
1775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1776 | *) ac_try_echo=$ac_try;; | |
1777 | esac | |
1778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1779 | $as_echo "$ac_try_echo"; } >&5 | |
1780 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1781 | ac_status=$? | |
1782 | if test -s conftest.err; then | |
1783 | grep -v '^ *+' conftest.err >conftest.er1 | |
1784 | cat conftest.er1 >&5 | |
1785 | mv -f conftest.er1 conftest.err | |
1786 | fi | |
1787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1788 | test $ac_status = 0; } > conftest.i && { | |
1789 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1790 | test ! -s conftest.err | |
1791 | }; then : | |
1792 | ac_retval=0 | |
1793 | else | |
1794 | $as_echo "$as_me: failed program was:" >&5 | |
1795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1796 | ||
1797 | ac_retval=1 | |
1798 | fi | |
1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1800 | as_fn_set_status $ac_retval | |
1801 | ||
1802 | } # ac_fn_c_try_cpp | |
1803 | ||
1804 | # ac_fn_cxx_try_cpp LINENO | |
1805 | # ------------------------ | |
1806 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1807 | ac_fn_cxx_try_cpp () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } > conftest.i && { | |
1826 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | }; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1837 | as_fn_set_status $ac_retval | |
1838 | ||
1839 | } # ac_fn_cxx_try_cpp | |
1840 | ||
35fa52c0 DWT |
1841 | # ac_fn_c_try_link LINENO |
1842 | # ----------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_c_try_link () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
1849 | case "(($ac_try" in | |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
1856 | ac_status=$? | |
1857 | if test -s conftest.err; then | |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_c_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
53ba6704 | 1868 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1869 | }; then : |
1870 | ac_retval=0 | |
1871 | else | |
1872 | $as_echo "$as_me: failed program was:" >&5 | |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1874 | ||
1875 | ac_retval=1 | |
1876 | fi | |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1883 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1884 | |
1885 | } # ac_fn_c_try_link | |
1886 | ||
9c60689e DWT |
1887 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1888 | # ------------------------------------------------------- | |
1889 | # Tests whether HEADER exists and can be compiled using the include files in | |
1890 | # INCLUDES, setting the cache variable VAR accordingly. | |
1891 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1892 | { |
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1895 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1896 | if eval \${$3+:} false; then : |
9c60689e DWT |
1897 | $as_echo_n "(cached) " >&6 |
1898 | else | |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1900 | /* end confdefs.h. */ | |
1901 | $4 | |
1902 | #include <$2> | |
1903 | _ACEOF | |
1904 | if ac_fn_c_try_compile "$LINENO"; then : | |
1905 | eval "$3=yes" | |
1906 | else | |
1907 | eval "$3=no" | |
1908 | fi | |
1909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1910 | fi | |
1911 | eval ac_res=\$$3 | |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1913 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1914 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1915 | |
1916 | } # ac_fn_c_check_header_compile | |
1917 | ||
35fa52c0 DWT |
1918 | # ac_fn_c_try_run LINENO |
1919 | # ---------------------- | |
1920 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1921 | # that executables *can* be run. | |
1922 | ac_fn_c_try_run () | |
1923 | { | |
1924 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1925 | if { { ac_try="$ac_link" | |
1926 | case "(($ac_try" in | |
1927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1928 | *) ac_try_echo=$ac_try;; | |
1929 | esac | |
1930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1931 | $as_echo "$ac_try_echo"; } >&5 | |
1932 | (eval "$ac_link") 2>&5 | |
1933 | ac_status=$? | |
1934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1935 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1936 | { { case "(($ac_try" in | |
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1938 | *) ac_try_echo=$ac_try;; | |
1939 | esac | |
1940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1941 | $as_echo "$ac_try_echo"; } >&5 | |
1942 | (eval "$ac_try") 2>&5 | |
1943 | ac_status=$? | |
1944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1945 | test $ac_status = 0; }; }; then : | |
1946 | ac_retval=0 | |
1947 | else | |
1948 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1949 | $as_echo "$as_me: failed program was:" >&5 | |
1950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1951 | ||
1952 | ac_retval=$ac_status | |
1953 | fi | |
1954 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1955 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1956 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1957 | |
1958 | } # ac_fn_c_try_run | |
6b66678a | 1959 | |
9c60689e DWT |
1960 | # ac_fn_c_check_func LINENO FUNC VAR |
1961 | # ---------------------------------- | |
1962 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1963 | ac_fn_c_check_func () | |
6b66678a DWT |
1964 | { |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1967 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1968 | if eval \${$3+:} false; then : |
9c60689e | 1969 | $as_echo_n "(cached) " >&6 |
6b66678a | 1970 | else |
9c60689e DWT |
1971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1972 | /* end confdefs.h. */ | |
1973 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1975 | #define $2 innocuous_$2 | |
6b66678a | 1976 | |
9c60689e DWT |
1977 | /* System header to define __stub macros and hopefully few prototypes, |
1978 | which can conflict with char $2 (); below. | |
1979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1980 | <limits.h> exists even on freestanding compilers. */ | |
1981 | ||
1982 | #ifdef __STDC__ | |
1983 | # include <limits.h> | |
1984 | #else | |
1985 | # include <assert.h> | |
1986 | #endif | |
1987 | ||
1988 | #undef $2 | |
1989 | ||
1990 | /* Override any GCC internal prototype to avoid an error. | |
1991 | Use char because int might match the return type of a GCC | |
1992 | builtin and then its argument prototype would still apply. */ | |
1993 | #ifdef __cplusplus | |
1994 | extern "C" | |
1995 | #endif | |
1996 | char $2 (); | |
1997 | /* The GNU C library defines this for functions which it implements | |
1998 | to always fail with ENOSYS. Some functions are actually named | |
1999 | something starting with __ and the normal name is an alias. */ | |
2000 | #if defined __stub_$2 || defined __stub___$2 | |
2001 | choke me | |
2002 | #endif | |
2003 | ||
2004 | int | |
2005 | main () | |
2006 | { | |
2007 | return $2 (); | |
2008 | ; | |
2009 | return 0; | |
2010 | } | |
2011 | _ACEOF | |
2012 | if ac_fn_c_try_link "$LINENO"; then : | |
2013 | eval "$3=yes" | |
2014 | else | |
2015 | eval "$3=no" | |
2016 | fi | |
2017 | rm -f core conftest.err conftest.$ac_objext \ | |
2018 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 2019 | fi |
9c60689e DWT |
2020 | eval ac_res=\$$3 |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2022 | $as_echo "$ac_res" >&6; } | |
ee134472 | 2023 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 2024 | |
9c60689e | 2025 | } # ac_fn_c_check_func |
6b66678a | 2026 | |
9c60689e DWT |
2027 | # ac_fn_cxx_try_link LINENO |
2028 | # ------------------------- | |
2029 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2030 | ac_fn_cxx_try_link () | |
2031 | { | |
2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2034 | if { { ac_try="$ac_link" | |
2035 | case "(($ac_try" in | |
2036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2037 | *) ac_try_echo=$ac_try;; | |
2038 | esac | |
2039 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2040 | $as_echo "$ac_try_echo"; } >&5 | |
2041 | (eval "$ac_link") 2>conftest.err | |
2042 | ac_status=$? | |
2043 | if test -s conftest.err; then | |
2044 | grep -v '^ *+' conftest.err >conftest.er1 | |
2045 | cat conftest.er1 >&5 | |
2046 | mv -f conftest.er1 conftest.err | |
2047 | fi | |
2048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2049 | test $ac_status = 0; } && { | |
2050 | test -z "$ac_cxx_werror_flag" || | |
2051 | test ! -s conftest.err | |
2052 | } && test -s conftest$ac_exeext && { | |
2053 | test "$cross_compiling" = yes || | |
53ba6704 | 2054 | test -x conftest$ac_exeext |
9c60689e DWT |
2055 | }; then : |
2056 | ac_retval=0 | |
2057 | else | |
2058 | $as_echo "$as_me: failed program was:" >&5 | |
2059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2060 | ||
2061 | ac_retval=1 | |
2062 | fi | |
2063 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2064 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2065 | # interfere with the next link command; also delete a directory that is | |
2066 | # left behind by Apple's compiler. We do this before executing the actions. | |
2067 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2069 | as_fn_set_status $ac_retval |
2070 | ||
2071 | } # ac_fn_cxx_try_link | |
2072 | ||
47aaa820 DWT |
2073 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2074 | # --------------------------------------------------------- | |
2075 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2076 | # the include files in INCLUDES and setting the cache variable VAR | |
2077 | # accordingly. | |
2078 | ac_fn_cxx_check_header_mongrel () | |
2079 | { | |
2080 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2081 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2083 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2084 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2085 | $as_echo_n "(cached) " >&6 |
2086 | fi | |
2087 | eval ac_res=\$$3 | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2089 | $as_echo "$ac_res" >&6; } | |
2090 | else | |
2091 | # Is the header compilable? | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2093 | $as_echo_n "checking $2 usability... " >&6; } | |
2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2095 | /* end confdefs.h. */ | |
2096 | $4 | |
2097 | #include <$2> | |
2098 | _ACEOF | |
2099 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2100 | ac_header_compiler=yes | |
2101 | else | |
2102 | ac_header_compiler=no | |
2103 | fi | |
2104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2106 | $as_echo "$ac_header_compiler" >&6; } | |
2107 | ||
2108 | # Is the header present? | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2110 | $as_echo_n "checking $2 presence... " >&6; } | |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2112 | /* end confdefs.h. */ | |
2113 | #include <$2> | |
2114 | _ACEOF | |
2115 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2116 | ac_header_preproc=yes | |
2117 | else | |
2118 | ac_header_preproc=no | |
2119 | fi | |
12833ad8 | 2120 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2122 | $as_echo "$ac_header_preproc" >&6; } | |
2123 | ||
2124 | # So? What about this header? | |
2125 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2126 | yes:no: ) | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2128 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2130 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2131 | ;; | |
2132 | no:yes:* ) | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2134 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2136 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2138 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2140 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2142 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2143 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2144 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2145 | ## -------------------------------- ##" |
47aaa820 DWT |
2146 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2147 | ;; | |
2148 | esac | |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2150 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2151 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2152 | $as_echo_n "(cached) " >&6 |
2153 | else | |
2154 | eval "$3=\$ac_header_compiler" | |
2155 | fi | |
2156 | eval ac_res=\$$3 | |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2158 | $as_echo "$ac_res" >&6; } | |
2159 | fi | |
ee134472 | 2160 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2161 | |
2162 | } # ac_fn_cxx_check_header_mongrel | |
2163 | ||
574d4720 JF |
2164 | # ac_fn_cxx_check_func LINENO FUNC VAR |
2165 | # ------------------------------------ | |
2166 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2167 | ac_fn_cxx_check_func () | |
2168 | { | |
2169 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2171 | $as_echo_n "checking for $2... " >&6; } | |
2172 | if eval \${$3+:} false; then : | |
2173 | $as_echo_n "(cached) " >&6 | |
2174 | else | |
2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2176 | /* end confdefs.h. */ | |
2177 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2179 | #define $2 innocuous_$2 | |
2180 | ||
2181 | /* System header to define __stub macros and hopefully few prototypes, | |
2182 | which can conflict with char $2 (); below. | |
2183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2184 | <limits.h> exists even on freestanding compilers. */ | |
2185 | ||
2186 | #ifdef __STDC__ | |
2187 | # include <limits.h> | |
2188 | #else | |
2189 | # include <assert.h> | |
2190 | #endif | |
2191 | ||
2192 | #undef $2 | |
2193 | ||
2194 | /* Override any GCC internal prototype to avoid an error. | |
2195 | Use char because int might match the return type of a GCC | |
2196 | builtin and then its argument prototype would still apply. */ | |
2197 | #ifdef __cplusplus | |
2198 | extern "C" | |
2199 | #endif | |
2200 | char $2 (); | |
2201 | /* The GNU C library defines this for functions which it implements | |
2202 | to always fail with ENOSYS. Some functions are actually named | |
2203 | something starting with __ and the normal name is an alias. */ | |
2204 | #if defined __stub_$2 || defined __stub___$2 | |
2205 | choke me | |
2206 | #endif | |
2207 | ||
2208 | int | |
2209 | main () | |
2210 | { | |
2211 | return $2 (); | |
2212 | ; | |
2213 | return 0; | |
2214 | } | |
2215 | _ACEOF | |
2216 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2217 | eval "$3=yes" | |
2218 | else | |
2219 | eval "$3=no" | |
2220 | fi | |
2221 | rm -f core conftest.err conftest.$ac_objext \ | |
2222 | conftest$ac_exeext conftest.$ac_ext | |
2223 | fi | |
2224 | eval ac_res=\$$3 | |
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2226 | $as_echo "$ac_res" >&6; } | |
2227 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2228 | ||
2229 | } # ac_fn_cxx_check_func | |
2230 | ||
c823f118 DWT |
2231 | # ac_fn_objcxx_try_link LINENO |
2232 | # ---------------------------- | |
2233 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2234 | ac_fn_objcxx_try_link () | |
2235 | { | |
2236 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2238 | if { { ac_try="$ac_link" | |
2239 | case "(($ac_try" in | |
2240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2241 | *) ac_try_echo=$ac_try;; | |
2242 | esac | |
2243 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2244 | $as_echo "$ac_try_echo"; } >&5 | |
2245 | (eval "$ac_link") 2>conftest.err | |
2246 | ac_status=$? | |
2247 | if test -s conftest.err; then | |
2248 | grep -v '^ *+' conftest.err >conftest.er1 | |
2249 | cat conftest.er1 >&5 | |
2250 | mv -f conftest.er1 conftest.err | |
2251 | fi | |
2252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2253 | test $ac_status = 0; } && { | |
2254 | test -z "$ac_objcxx_werror_flag" || | |
2255 | test ! -s conftest.err | |
2256 | } && test -s conftest$ac_exeext && { | |
2257 | test "$cross_compiling" = yes || | |
53ba6704 | 2258 | test -x conftest$ac_exeext |
c823f118 DWT |
2259 | }; then : |
2260 | ac_retval=0 | |
2261 | else | |
2262 | $as_echo "$as_me: failed program was:" >&5 | |
2263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2264 | ||
2265 | ac_retval=1 | |
2266 | fi | |
2267 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2268 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2269 | # interfere with the next link command; also delete a directory that is | |
2270 | # left behind by Apple's compiler. We do this before executing the actions. | |
2271 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2272 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2273 | as_fn_set_status $ac_retval |
2274 | ||
2275 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2276 | cat >config.log <<_ACEOF |
2277 | This file contains any messages produced by compilers while | |
2278 | running configure, to aid debugging if configure makes a mistake. | |
2279 | ||
2280 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2281 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2282 | |
2283 | $ $0 $@ | |
2284 | ||
2285 | _ACEOF | |
2286 | exec 5>>config.log | |
2287 | { | |
2288 | cat <<_ASUNAME | |
2289 | ## --------- ## | |
2290 | ## Platform. ## | |
2291 | ## --------- ## | |
2292 | ||
2293 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2294 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2295 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2296 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2297 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2298 | ||
2299 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2300 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2301 | ||
2302 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2303 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2304 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2305 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2306 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2307 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2308 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2309 | ||
2310 | _ASUNAME | |
2311 | ||
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2313 | for as_dir in $PATH | |
2314 | do | |
2315 | IFS=$as_save_IFS | |
2316 | test -z "$as_dir" && as_dir=. | |
2317 | $as_echo "PATH: $as_dir" | |
2318 | done | |
2319 | IFS=$as_save_IFS | |
2320 | ||
2321 | } >&5 | |
2322 | ||
2323 | cat >&5 <<_ACEOF | |
2324 | ||
2325 | ||
2326 | ## ----------- ## | |
2327 | ## Core tests. ## | |
2328 | ## ----------- ## | |
2329 | ||
2330 | _ACEOF | |
2331 | ||
2332 | ||
2333 | # Keep a trace of the command line. | |
2334 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2335 | # Strip out --silent because we don't want to record it for future runs. | |
2336 | # Also quote any args containing shell meta-characters. | |
2337 | # Make two passes to allow for proper duplicate-argument suppression. | |
2338 | ac_configure_args= | |
2339 | ac_configure_args0= | |
2340 | ac_configure_args1= | |
2341 | ac_must_keep_next=false | |
2342 | for ac_pass in 1 2 | |
2343 | do | |
2344 | for ac_arg | |
2345 | do | |
2346 | case $ac_arg in | |
2347 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2348 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2349 | | -silent | --silent | --silen | --sile | --sil) | |
2350 | continue ;; | |
2351 | *\'*) | |
2352 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2353 | esac | |
2354 | case $ac_pass in | |
2355 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2356 | 2) | |
2357 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2358 | if test $ac_must_keep_next = true; then | |
2359 | ac_must_keep_next=false # Got value, back to normal. | |
2360 | else | |
2361 | case $ac_arg in | |
2362 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2363 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2364 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2365 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2366 | case "$ac_configure_args0 " in | |
2367 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2368 | esac | |
2369 | ;; | |
2370 | -* ) ac_must_keep_next=true ;; | |
2371 | esac | |
2372 | fi | |
2373 | as_fn_append ac_configure_args " '$ac_arg'" | |
2374 | ;; | |
2375 | esac | |
2376 | done | |
2377 | done | |
2378 | { ac_configure_args0=; unset ac_configure_args0;} | |
2379 | { ac_configure_args1=; unset ac_configure_args1;} | |
2380 | ||
2381 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2382 | # config.log. We remove comments because anyway the quotes in there | |
2383 | # would cause problems or look ugly. | |
2384 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2385 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2386 | trap 'exit_status=$? | |
2387 | # Save into config.log some information that might help in debugging. | |
2388 | { | |
2389 | echo | |
2390 | ||
12833ad8 | 2391 | $as_echo "## ---------------- ## |
c7aa54aa | 2392 | ## Cache variables. ## |
12833ad8 | 2393 | ## ---------------- ##" |
c7aa54aa DWT |
2394 | echo |
2395 | # The following way of writing the cache mishandles newlines in values, | |
2396 | ( | |
2397 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2398 | eval ac_val=\$$ac_var | |
2399 | case $ac_val in #( | |
2400 | *${as_nl}*) | |
2401 | case $ac_var in #( | |
2402 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2403 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2404 | esac | |
2405 | case $ac_var in #( | |
2406 | _ | IFS | as_nl) ;; #( | |
2407 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2408 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2409 | esac ;; | |
2410 | esac | |
2411 | done | |
2412 | (set) 2>&1 | | |
2413 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2414 | *${as_nl}ac_space=\ *) | |
2415 | sed -n \ | |
2416 | "s/'\''/'\''\\\\'\'''\''/g; | |
2417 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2418 | ;; #( | |
2419 | *) | |
2420 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2421 | ;; | |
2422 | esac | | |
2423 | sort | |
2424 | ) | |
2425 | echo | |
2426 | ||
12833ad8 | 2427 | $as_echo "## ----------------- ## |
c7aa54aa | 2428 | ## Output variables. ## |
12833ad8 | 2429 | ## ----------------- ##" |
c7aa54aa DWT |
2430 | echo |
2431 | for ac_var in $ac_subst_vars | |
2432 | do | |
2433 | eval ac_val=\$$ac_var | |
2434 | case $ac_val in | |
2435 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2436 | esac | |
2437 | $as_echo "$ac_var='\''$ac_val'\''" | |
2438 | done | sort | |
2439 | echo | |
2440 | ||
2441 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2442 | $as_echo "## ------------------- ## |
c7aa54aa | 2443 | ## File substitutions. ## |
12833ad8 | 2444 | ## ------------------- ##" |
c7aa54aa DWT |
2445 | echo |
2446 | for ac_var in $ac_subst_files | |
2447 | do | |
2448 | eval ac_val=\$$ac_var | |
2449 | case $ac_val in | |
2450 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2451 | esac | |
2452 | $as_echo "$ac_var='\''$ac_val'\''" | |
2453 | done | sort | |
2454 | echo | |
2455 | fi | |
2456 | ||
2457 | if test -s confdefs.h; then | |
12833ad8 | 2458 | $as_echo "## ----------- ## |
c7aa54aa | 2459 | ## confdefs.h. ## |
12833ad8 | 2460 | ## ----------- ##" |
c7aa54aa DWT |
2461 | echo |
2462 | cat confdefs.h | |
2463 | echo | |
2464 | fi | |
2465 | test "$ac_signal" != 0 && | |
2466 | $as_echo "$as_me: caught signal $ac_signal" | |
2467 | $as_echo "$as_me: exit $exit_status" | |
2468 | } >&5 | |
2469 | rm -f core *.core core.conftest.* && | |
2470 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2471 | exit $exit_status | |
2472 | ' 0 | |
2473 | for ac_signal in 1 2 13 15; do | |
2474 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2475 | done | |
2476 | ac_signal=0 | |
2477 | ||
2478 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2479 | rm -f -r conftest* confdefs.h | |
2480 | ||
2481 | $as_echo "/* confdefs.h */" > confdefs.h | |
2482 | ||
2483 | # Predefined preprocessor variables. | |
2484 | ||
2485 | cat >>confdefs.h <<_ACEOF | |
2486 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2487 | _ACEOF | |
2488 | ||
2489 | cat >>confdefs.h <<_ACEOF | |
2490 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2491 | _ACEOF | |
2492 | ||
2493 | cat >>confdefs.h <<_ACEOF | |
2494 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2495 | _ACEOF | |
2496 | ||
2497 | cat >>confdefs.h <<_ACEOF | |
2498 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2499 | _ACEOF | |
2500 | ||
2501 | cat >>confdefs.h <<_ACEOF | |
2502 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2503 | _ACEOF | |
2504 | ||
2505 | cat >>confdefs.h <<_ACEOF | |
2506 | #define PACKAGE_URL "$PACKAGE_URL" | |
2507 | _ACEOF | |
2508 | ||
2509 | ||
2510 | # Let the site file select an alternate cache file if it wants to. | |
2511 | # Prefer an explicitly selected file to automatically selected ones. | |
2512 | ac_site_file1=NONE | |
2513 | ac_site_file2=NONE | |
2514 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2515 | # We do not want a PATH search for config.site. |
2516 | case $CONFIG_SITE in #(( | |
2517 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2518 | */*) ac_site_file1=$CONFIG_SITE;; | |
2519 | *) ac_site_file1=./$CONFIG_SITE;; | |
2520 | esac | |
c7aa54aa DWT |
2521 | elif test "x$prefix" != xNONE; then |
2522 | ac_site_file1=$prefix/share/config.site | |
2523 | ac_site_file2=$prefix/etc/config.site | |
2524 | else | |
2525 | ac_site_file1=$ac_default_prefix/share/config.site | |
2526 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2527 | fi | |
2528 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2529 | do | |
2530 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2531 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2533 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2534 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2535 | . "$ac_site_file" \ |
2536 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2538 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2539 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2540 | fi |
2541 | done | |
2542 | ||
2543 | if test -r "$cache_file"; then | |
9c60689e DWT |
2544 | # Some versions of bash will fail to source /dev/null (special files |
2545 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2546 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2548 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2549 | case $cache_file in | |
2550 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2551 | *) . "./$cache_file";; | |
2552 | esac | |
2553 | fi | |
2554 | else | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2556 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2557 | >$cache_file | |
2558 | fi | |
2559 | ||
2560 | # Check that the precious variables saved in the cache have kept the same | |
2561 | # value. | |
2562 | ac_cache_corrupted=false | |
2563 | for ac_var in $ac_precious_vars; do | |
2564 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2565 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2566 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2567 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2568 | case $ac_old_set,$ac_new_set in | |
2569 | set,) | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2571 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2572 | ac_cache_corrupted=: ;; | |
2573 | ,set) | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2575 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2576 | ac_cache_corrupted=: ;; | |
2577 | ,);; | |
2578 | *) | |
2579 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2580 | # differences in whitespace do not lead to failure. | |
2581 | ac_old_val_w=`echo x $ac_old_val` | |
2582 | ac_new_val_w=`echo x $ac_new_val` | |
2583 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2585 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2586 | ac_cache_corrupted=: | |
2587 | else | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2589 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2590 | eval $ac_var=\$ac_old_val | |
2591 | fi | |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2593 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2595 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2596 | fi;; | |
2597 | esac | |
2598 | # Pass precious variables to config.status. | |
2599 | if test "$ac_new_set" = set; then | |
2600 | case $ac_new_val in | |
2601 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2602 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2603 | esac | |
2604 | case " $ac_configure_args " in | |
2605 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2606 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2607 | esac | |
2608 | fi | |
2609 | done | |
2610 | if $ac_cache_corrupted; then | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2614 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2615 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2616 | fi |
2617 | ## -------------------- ## | |
2618 | ## Main body of script. ## | |
2619 | ## -------------------- ## | |
2620 | ||
2621 | ac_ext=c | |
2622 | ac_cpp='$CPP $CPPFLAGS' | |
2623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2626 | ||
2627 | ||
66170b30 JF |
2628 | |
2629 | ||
35fa52c0 | 2630 | |
6b66678a DWT |
2631 | ac_aux_dir= |
2632 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2633 | if test -f "$ac_dir/install-sh"; then |
2634 | ac_aux_dir=$ac_dir | |
2635 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2636 | break | |
2637 | elif test -f "$ac_dir/install.sh"; then | |
2638 | ac_aux_dir=$ac_dir | |
2639 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2640 | break | |
2641 | elif test -f "$ac_dir/shtool"; then | |
2642 | ac_aux_dir=$ac_dir | |
2643 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2644 | break | |
2645 | fi | |
6b66678a DWT |
2646 | done |
2647 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2648 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2649 | fi |
2650 | ||
2651 | # These three variables are undocumented and unsupported, | |
2652 | # and are intended to be withdrawn in a future Autoconf release. | |
2653 | # They can cause serious problems if a builder's source tree is in a directory | |
2654 | # whose full name contains unusual characters. | |
2655 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2656 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2657 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2658 | ||
2659 | ||
9c60689e | 2660 | |
296ee9a6 JF |
2661 | ac_config_headers="$ac_config_headers config.h" |
2662 | ||
9c60689e | 2663 | |
795230e5 | 2664 | am__api_version='1.15' |
9c60689e | 2665 | |
66170b30 JF |
2666 | # Find a good install program. We prefer a C program (faster), |
2667 | # so one script is as good as another. But avoid the broken or | |
2668 | # incompatible versions: | |
2669 | # SysV /etc/install, /usr/sbin/install | |
2670 | # SunOS /usr/etc/install | |
2671 | # IRIX /sbin/install | |
2672 | # AIX /bin/install | |
2673 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2674 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2675 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2676 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2677 | # OS/2's system install, which has a completely different semantic | |
2678 | # ./install, which can be erroneously created by make from ./install.sh. | |
2679 | # Reject install programs that cannot install multiple files. | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2681 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2682 | if test -z "$INSTALL"; then | |
2683 | if ${ac_cv_path_install+:} false; then : | |
2684 | $as_echo_n "(cached) " >&6 | |
2685 | else | |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
2691 | # Account for people who put trailing slashes in PATH elements. | |
2692 | case $as_dir/ in #(( | |
2693 | ./ | .// | /[cC]/* | \ | |
2694 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2695 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2696 | /usr/ucb/* ) ;; | |
2697 | *) | |
2698 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2699 | # Don't use installbsd from OSF since it installs stuff as root | |
2700 | # by default. | |
2701 | for ac_prog in ginstall scoinst install; do | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2703 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2704 | if test $ac_prog = install && | |
2705 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2706 | # AIX install. It has an incompatible calling convention. | |
2707 | : | |
2708 | elif test $ac_prog = install && | |
2709 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2710 | # program-specific install script used by HP pwplus--don't use. | |
2711 | : | |
2712 | else | |
2713 | rm -rf conftest.one conftest.two conftest.dir | |
2714 | echo one > conftest.one | |
2715 | echo two > conftest.two | |
2716 | mkdir conftest.dir | |
2717 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2718 | test -s conftest.one && test -s conftest.two && | |
2719 | test -s conftest.dir/conftest.one && | |
2720 | test -s conftest.dir/conftest.two | |
2721 | then | |
2722 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2723 | break 3 | |
2724 | fi | |
2725 | fi | |
2726 | fi | |
2727 | done | |
2728 | done | |
2729 | ;; | |
2730 | esac | |
9c60689e | 2731 | |
66170b30 JF |
2732 | done |
2733 | IFS=$as_save_IFS | |
9c60689e | 2734 | |
66170b30 | 2735 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2736 | |
66170b30 JF |
2737 | fi |
2738 | if test "${ac_cv_path_install+set}" = set; then | |
2739 | INSTALL=$ac_cv_path_install | |
2740 | else | |
2741 | # As a last resort, use the slow shell script. Don't cache a | |
2742 | # value for INSTALL within a source directory, because that will | |
2743 | # break other packages using the cache if that directory is | |
2744 | # removed, or if the value is a relative name. | |
2745 | INSTALL=$ac_install_sh | |
2746 | fi | |
2747 | fi | |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2749 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2750 | |
66170b30 JF |
2751 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2752 | # It thinks the first close brace ends the variable substitution. | |
2753 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2754 | |
66170b30 | 2755 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2756 | |
66170b30 | 2757 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2758 | |
66170b30 JF |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2760 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2761 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2762 | # name. Accept space and tab only in the latter. | |
2763 | am_lf=' | |
2764 | ' | |
2765 | case `pwd` in | |
2766 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2767 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2768 | esac | |
2769 | case $srcdir in | |
2770 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2771 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2772 | esac | |
9c60689e | 2773 | |
66170b30 JF |
2774 | # Do 'set' in a subshell so we don't clobber the current shell's |
2775 | # arguments. Must try -L first in case configure is actually a | |
2776 | # symlink; some systems play weird games with the mod time of symlinks | |
2777 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2778 | # directory). | |
2779 | if ( | |
2780 | am_has_slept=no | |
2781 | for am_try in 1 2; do | |
2782 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2783 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2784 | if test "$*" = "X"; then | |
2785 | # -L didn't work. | |
2786 | set X `ls -t "$srcdir/configure" conftest.file` | |
2787 | fi | |
2788 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2789 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2790 | ||
2791 | # If neither matched, then we have a broken ls. This can happen | |
2792 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2793 | # broken ls alias from the environment. This has actually | |
2794 | # happened. Such a system could not be considered "sane". | |
2795 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2796 | alias in your environment" "$LINENO" 5 | |
2797 | fi | |
2798 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2799 | break | |
2800 | fi | |
2801 | # Just in case. | |
2802 | sleep 1 | |
2803 | am_has_slept=yes | |
2804 | done | |
2805 | test "$2" = conftest.file | |
2806 | ) | |
2807 | then | |
2808 | # Ok. | |
2809 | : | |
2810 | else | |
2811 | as_fn_error $? "newly created file is older than distributed files! | |
2812 | Check your system clock" "$LINENO" 5 | |
2813 | fi | |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2815 | $as_echo "yes" >&6; } | |
2816 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2817 | # generated files are strictly newer. | |
2818 | am_sleep_pid= | |
2819 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2820 | ( sleep 1 ) & | |
2821 | am_sleep_pid=$! | |
2822 | fi | |
2823 | ||
2824 | rm -f conftest.file | |
2825 | ||
2826 | test "$program_prefix" != NONE && | |
2827 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2828 | # Use a double $ so make ignores it. | |
2829 | test "$program_suffix" != NONE && | |
2830 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2831 | # Double any \ or $. | |
2832 | # By default was `s,x,x', remove it if useless. | |
2833 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2834 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2835 | ||
795230e5 JF |
2836 | # Expand $ac_aux_dir to an absolute path. |
2837 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
66170b30 JF |
2838 | |
2839 | if test x"${MISSING+set}" != xset; then | |
2840 | case $am_aux_dir in | |
2841 | *\ * | *\ *) | |
2842 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2843 | *) | |
2844 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2845 | esac | |
2846 | fi | |
2847 | # Use eval to expand $SHELL | |
2848 | if eval "$MISSING --is-lightweight"; then | |
2849 | am_missing_run="$MISSING " | |
2850 | else | |
2851 | am_missing_run= | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2853 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2854 | fi | |
9c60689e | 2855 | |
795230e5 | 2856 | if test x"${install_sh+set}" != xset; then |
66170b30 JF |
2857 | case $am_aux_dir in |
2858 | *\ * | *\ *) | |
2859 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2860 | *) | |
2861 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2862 | esac | |
2863 | fi | |
9c60689e | 2864 | |
66170b30 JF |
2865 | # Installed binaries are usually stripped using 'strip' when the user |
2866 | # run "make install-strip". However 'strip' might not be the right | |
2867 | # tool to use in cross-compilation environments, therefore Automake | |
2868 | # will honor the 'STRIP' environment variable to overrule this program. | |
2869 | if test "$cross_compiling" != no; then | |
2870 | if test -n "$ac_tool_prefix"; then | |
2871 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2872 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2874 | $as_echo_n "checking for $ac_word... " >&6; } | |
2875 | if ${ac_cv_prog_STRIP+:} false; then : | |
2876 | $as_echo_n "(cached) " >&6 | |
2877 | else | |
2878 | if test -n "$STRIP"; then | |
2879 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2880 | else | |
2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2882 | for as_dir in $PATH | |
2883 | do | |
2884 | IFS=$as_save_IFS | |
2885 | test -z "$as_dir" && as_dir=. | |
2886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2888 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2890 | break 2 | |
2891 | fi | |
2892 | done | |
2893 | done | |
2894 | IFS=$as_save_IFS | |
9c60689e | 2895 | |
66170b30 JF |
2896 | fi |
2897 | fi | |
2898 | STRIP=$ac_cv_prog_STRIP | |
2899 | if test -n "$STRIP"; then | |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2901 | $as_echo "$STRIP" >&6; } | |
2902 | else | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2904 | $as_echo "no" >&6; } | |
2905 | fi | |
9c60689e | 2906 | |
9c60689e | 2907 | |
66170b30 JF |
2908 | fi |
2909 | if test -z "$ac_cv_prog_STRIP"; then | |
2910 | ac_ct_STRIP=$STRIP | |
2911 | # Extract the first word of "strip", so it can be a program name with args. | |
2912 | set dummy strip; 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_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2916 | $as_echo_n "(cached) " >&6 |
2917 | else | |
66170b30 JF |
2918 | if test -n "$ac_ct_STRIP"; then |
2919 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip" | |
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 | |
9c60689e DWT |
2935 | |
2936 | fi | |
66170b30 JF |
2937 | fi |
2938 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2939 | if test -n "$ac_ct_STRIP"; then | |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2941 | $as_echo "$ac_ct_STRIP" >&6; } | |
2942 | else | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2944 | $as_echo "no" >&6; } | |
2945 | fi | |
2946 | ||
2947 | if test "x$ac_ct_STRIP" = x; then | |
2948 | STRIP=":" | |
2949 | else | |
2950 | case $cross_compiling:$ac_tool_warned in | |
2951 | yes:) | |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2954 | ac_tool_warned=yes ;; | |
9c60689e | 2955 | esac |
66170b30 JF |
2956 | STRIP=$ac_ct_STRIP |
2957 | fi | |
2958 | else | |
2959 | STRIP="$ac_cv_prog_STRIP" | |
2960 | fi | |
9c60689e | 2961 | |
66170b30 JF |
2962 | fi |
2963 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2964 | |
66170b30 JF |
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2966 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2967 | if test -z "$MKDIR_P"; then | |
2968 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2969 | $as_echo_n "(cached) " >&6 |
2970 | else | |
66170b30 JF |
2971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2972 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2973 | do | |
2974 | IFS=$as_save_IFS | |
2975 | test -z "$as_dir" && as_dir=. | |
2976 | for ac_prog in mkdir gmkdir; do | |
2977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2978 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2979 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2980 | 'mkdir (GNU coreutils) '* | \ | |
2981 | 'mkdir (coreutils) '* | \ | |
2982 | 'mkdir (fileutils) '4.1*) | |
2983 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2984 | break 3;; | |
2985 | esac | |
2986 | done | |
2987 | done | |
2988 | done | |
2989 | IFS=$as_save_IFS | |
2990 | ||
2991 | fi | |
2992 | ||
2993 | test -d ./--version && rmdir ./--version | |
2994 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2995 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2996 | else | |
2997 | # As a last resort, use the slow shell script. Don't cache a | |
2998 | # value for MKDIR_P within a source directory, because that will | |
2999 | # break other packages using the cache if that directory is | |
3000 | # removed, or if the value is a relative name. | |
3001 | MKDIR_P="$ac_install_sh -d" | |
3002 | fi | |
3003 | fi | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3005 | $as_echo "$MKDIR_P" >&6; } | |
3006 | ||
3007 | for ac_prog in gawk mawk nawk awk | |
3008 | do | |
3009 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3010 | set dummy $ac_prog; ac_word=$2 | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3012 | $as_echo_n "checking for $ac_word... " >&6; } | |
3013 | if ${ac_cv_prog_AWK+:} false; then : | |
3014 | $as_echo_n "(cached) " >&6 | |
3015 | else | |
3016 | if test -n "$AWK"; then | |
3017 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3018 | else | |
3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3020 | for as_dir in $PATH | |
3021 | do | |
3022 | IFS=$as_save_IFS | |
3023 | test -z "$as_dir" && as_dir=. | |
3024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3026 | ac_cv_prog_AWK="$ac_prog" | |
3027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3028 | break 2 | |
3029 | fi | |
3030 | done | |
3031 | done | |
3032 | IFS=$as_save_IFS | |
3033 | ||
3034 | fi | |
3035 | fi | |
3036 | AWK=$ac_cv_prog_AWK | |
3037 | if test -n "$AWK"; then | |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3039 | $as_echo "$AWK" >&6; } | |
3040 | else | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3042 | $as_echo "no" >&6; } | |
3043 | fi | |
3044 | ||
3045 | ||
3046 | test -n "$AWK" && break | |
3047 | done | |
3048 | ||
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3050 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3051 | set x ${MAKE-make} | |
3052 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3053 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3054 | $as_echo_n "(cached) " >&6 | |
3055 | else | |
3056 | cat >conftest.make <<\_ACEOF | |
3057 | SHELL = /bin/sh | |
3058 | all: | |
3059 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3060 | _ACEOF | |
3061 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3062 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3063 | *@@@%%%=?*=@@@%%%*) | |
3064 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3065 | *) | |
3066 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3067 | esac | |
3068 | rm -f conftest.make | |
3069 | fi | |
3070 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3072 | $as_echo "yes" >&6; } | |
3073 | SET_MAKE= | |
3074 | else | |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3076 | $as_echo "no" >&6; } | |
3077 | SET_MAKE="MAKE=${MAKE-make}" | |
3078 | fi | |
3079 | ||
3080 | rm -rf .tst 2>/dev/null | |
3081 | mkdir .tst 2>/dev/null | |
3082 | if test -d .tst; then | |
3083 | am__leading_dot=. | |
3084 | else | |
3085 | am__leading_dot=_ | |
3086 | fi | |
3087 | rmdir .tst 2>/dev/null | |
3088 | ||
3089 | # Check whether --enable-silent-rules was given. | |
3090 | if test "${enable_silent_rules+set}" = set; then : | |
3091 | enableval=$enable_silent_rules; | |
3092 | fi | |
3093 | ||
3094 | case $enable_silent_rules in # ((( | |
3095 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3096 | no) AM_DEFAULT_VERBOSITY=1;; | |
3097 | *) AM_DEFAULT_VERBOSITY=1;; | |
3098 | esac | |
3099 | am_make=${MAKE-make} | |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3101 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3102 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3103 | $as_echo_n "(cached) " >&6 | |
3104 | else | |
3105 | if $as_echo 'TRUE=$(BAR$(V)) | |
3106 | BAR0=false | |
3107 | BAR1=true | |
3108 | V=1 | |
3109 | am__doit: | |
3110 | @$(TRUE) | |
3111 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3112 | am_cv_make_support_nested_variables=yes | |
3113 | else | |
3114 | am_cv_make_support_nested_variables=no | |
3115 | fi | |
3116 | fi | |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3118 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3119 | if test $am_cv_make_support_nested_variables = yes; then | |
3120 | AM_V='$(V)' | |
3121 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3122 | else | |
3123 | AM_V=$AM_DEFAULT_VERBOSITY | |
3124 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3125 | fi | |
3126 | AM_BACKSLASH='\' | |
3127 | ||
3128 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3129 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3130 | # is not polluted with repeated "-I." | |
3131 | am__isrc=' -I$(srcdir)' | |
3132 | # test to see if srcdir already configured | |
3133 | if test -f $srcdir/config.status; then | |
3134 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3135 | fi | |
3136 | fi | |
3137 | ||
3138 | # test whether we have cygpath | |
3139 | if test -z "$CYGPATH_W"; then | |
3140 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3141 | CYGPATH_W='cygpath -w' | |
3142 | else | |
3143 | CYGPATH_W=echo | |
3144 | fi | |
3145 | fi | |
3146 | ||
3147 | ||
3148 | # Define the identity of the package. | |
3149 | PACKAGE='cycript' | |
3150 | VERSION='0.9' | |
3151 | ||
3152 | ||
3153 | cat >>confdefs.h <<_ACEOF | |
3154 | #define PACKAGE "$PACKAGE" | |
3155 | _ACEOF | |
3156 | ||
3157 | ||
3158 | cat >>confdefs.h <<_ACEOF | |
3159 | #define VERSION "$VERSION" | |
3160 | _ACEOF | |
3161 | ||
3162 | # Some tools Automake needs. | |
3163 | ||
3164 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3165 | ||
3166 | ||
3167 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3168 | ||
3169 | ||
3170 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3171 | ||
3172 | ||
3173 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3174 | ||
3175 | ||
3176 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3177 | ||
3178 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3179 | # dies out for good. For more background, see: | |
3180 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3181 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3182 | mkdir_p='$(MKDIR_P)' | |
3183 | ||
795230e5 JF |
3184 | # We need awk for the "check" target (and possibly the TAP driver). The |
3185 | # system "awk" is bad on some platforms. | |
66170b30 JF |
3186 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3187 | # in the wild :-( We should find a proper way to deprecate it ... | |
3188 | AMTAR='$${TAR-tar}' | |
3189 | ||
a93f15c0 JF |
3190 | |
3191 | # We'll loop over all known methods to create a tar archive until one works. | |
3192 | _am_tools='gnutar pax cpio none' | |
3193 | ||
66170b30 JF |
3194 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3195 | ||
3196 | ||
3197 | ||
3198 | ||
3199 | ||
66170b30 | 3200 | |
a93f15c0 JF |
3201 | # POSIX will say in a future version that running "rm -f" with no argument |
3202 | # is OK; and we want to be able to make that assumption in our Makefile | |
3203 | # recipes. So use an aggressive probe to check that the usage we want is | |
3204 | # actually supported "in the wild" to an acceptable degree. | |
3205 | # See automake bug#10828. | |
3206 | # To make any issue more visible, cause the running configure to be aborted | |
3207 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3208 | # user can still override this though. | |
3209 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3210 | cat >&2 <<'END' | |
3211 | Oops! | |
3212 | ||
3213 | Your 'rm' program seems unable to run without file operands specified | |
3214 | on the command line, even when the '-f' option is present. This is contrary | |
3215 | to the behaviour of most rm programs out there, and not conforming with | |
3216 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3217 | ||
3218 | Please tell bug-automake@gnu.org about your system, including the value | |
3219 | of your $PATH and any error possibly output before this message. This | |
3220 | can help us improve future automake versions. | |
3221 | ||
3222 | END | |
3223 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3224 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3225 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3226 | echo >&2 | |
3227 | else | |
3228 | cat >&2 <<'END' | |
3229 | Aborting the configuration process, to ensure you take notice of the issue. | |
3230 | ||
3231 | You can download and install GNU coreutils to get an 'rm' implementation | |
3232 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3233 | ||
3234 | If you want to complete the configuration process using your problematic | |
3235 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3236 | to "yes", and re-run configure. | |
3237 | ||
3238 | END | |
3239 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3240 | fi | |
3241 | fi | |
3242 | ||
795230e5 | 3243 | |
babf7fe8 JF |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3245 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3246 | # Check whether --enable-maintainer-mode was given. | |
3247 | if test "${enable_maintainer_mode+set}" = set; then : | |
3248 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3249 | else | |
3250 | USE_MAINTAINER_MODE=no | |
3251 | fi | |
3252 | ||
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3254 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3255 | if test $USE_MAINTAINER_MODE = yes; then | |
3256 | MAINTAINER_MODE_TRUE= | |
3257 | MAINTAINER_MODE_FALSE='#' | |
3258 | else | |
3259 | MAINTAINER_MODE_TRUE='#' | |
3260 | MAINTAINER_MODE_FALSE= | |
3261 | fi | |
3262 | ||
3263 | MAINT=$MAINTAINER_MODE_TRUE | |
3264 | ||
3265 | ||
3266 | ||
a93f15c0 JF |
3267 | ac_ext=c |
3268 | ac_cpp='$CPP $CPPFLAGS' | |
3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3272 | if test -n "$ac_tool_prefix"; then | |
3273 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3274 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3276 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3277 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3278 | $as_echo_n "(cached) " >&6 |
3279 | else | |
a93f15c0 JF |
3280 | if test -n "$CC"; then |
3281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3282 | else |
3283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3284 | for as_dir in $PATH | |
3285 | do | |
3286 | IFS=$as_save_IFS | |
3287 | test -z "$as_dir" && as_dir=. | |
3288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3290 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3292 | break 2 | |
3293 | fi | |
3294 | done | |
3295 | done | |
3296 | IFS=$as_save_IFS | |
3297 | ||
3298 | fi | |
3299 | fi | |
a93f15c0 JF |
3300 | CC=$ac_cv_prog_CC |
3301 | if test -n "$CC"; then | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3303 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3304 | else |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3306 | $as_echo "no" >&6; } | |
3307 | fi | |
3308 | ||
3309 | ||
35fa52c0 | 3310 | fi |
a93f15c0 JF |
3311 | if test -z "$ac_cv_prog_CC"; then |
3312 | ac_ct_CC=$CC | |
3313 | # Extract the first word of "gcc", so it can be a program name with args. | |
3314 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3316 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3317 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3318 | $as_echo_n "(cached) " >&6 |
3319 | else | |
a93f15c0 JF |
3320 | if test -n "$ac_ct_CC"; then |
3321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3322 | else |
3323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3324 | for as_dir in $PATH | |
3325 | do | |
3326 | IFS=$as_save_IFS | |
3327 | test -z "$as_dir" && as_dir=. | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3330 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
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 | fi | |
3339 | fi | |
a93f15c0 JF |
3340 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3341 | if test -n "$ac_ct_CC"; then | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3343 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3344 | else |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3346 | $as_echo "no" >&6; } | |
3347 | fi | |
3348 | ||
a93f15c0 JF |
3349 | if test "x$ac_ct_CC" = x; then |
3350 | CC="" | |
35fa52c0 DWT |
3351 | else |
3352 | case $cross_compiling:$ac_tool_warned in | |
3353 | yes:) | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3355 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3356 | ac_tool_warned=yes ;; | |
3357 | esac | |
a93f15c0 | 3358 | CC=$ac_ct_CC |
35fa52c0 | 3359 | fi |
a93f15c0 JF |
3360 | else |
3361 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3362 | fi |
3363 | ||
a93f15c0 JF |
3364 | if test -z "$CC"; then |
3365 | if test -n "$ac_tool_prefix"; then | |
3366 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3367 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3369 | $as_echo_n "checking for $ac_word... " >&6; } | |
3370 | if ${ac_cv_prog_CC+:} false; then : | |
3371 | $as_echo_n "(cached) " >&6 | |
3372 | else | |
3373 | if test -n "$CC"; then | |
3374 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3375 | else | |
3376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3377 | for as_dir in $PATH | |
3378 | do | |
3379 | IFS=$as_save_IFS | |
3380 | test -z "$as_dir" && as_dir=. | |
3381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3383 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3385 | break 2 | |
a243b558 | 3386 | fi |
35fa52c0 | 3387 | done |
a93f15c0 JF |
3388 | done |
3389 | IFS=$as_save_IFS | |
35fa52c0 | 3390 | |
a93f15c0 JF |
3391 | fi |
3392 | fi | |
3393 | CC=$ac_cv_prog_CC | |
3394 | if test -n "$CC"; then | |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3396 | $as_echo "$CC" >&6; } | |
3397 | else | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3399 | $as_echo "no" >&6; } | |
3400 | fi | |
35fa52c0 | 3401 | |
35fa52c0 | 3402 | |
a93f15c0 JF |
3403 | fi |
3404 | fi | |
3405 | if test -z "$CC"; then | |
3406 | # Extract the first word of "cc", so it can be a program name with args. | |
3407 | set dummy cc; ac_word=$2 | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3409 | $as_echo_n "checking for $ac_word... " >&6; } | |
3410 | if ${ac_cv_prog_CC+:} false; then : | |
3411 | $as_echo_n "(cached) " >&6 | |
3412 | else | |
3413 | if test -n "$CC"; then | |
3414 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3415 | else | |
3416 | ac_prog_rejected=no | |
3417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3418 | for as_dir in $PATH | |
35fa52c0 | 3419 | do |
a93f15c0 JF |
3420 | IFS=$as_save_IFS |
3421 | test -z "$as_dir" && as_dir=. | |
3422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3424 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3425 | ac_prog_rejected=yes | |
3426 | continue | |
3427 | fi | |
3428 | ac_cv_prog_CC="cc" | |
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 | if test $ac_prog_rejected = yes; then | |
3437 | # We found a bogon in the path, so make sure we never use it. | |
3438 | set dummy $ac_cv_prog_CC | |
3439 | shift | |
3440 | if test $# != 0; then | |
3441 | # We chose a different compiler from the bogus one. | |
3442 | # However, it has the same basename, so the bogon will be chosen | |
3443 | # first if we set CC to just the basename; use the full file name. | |
3444 | shift | |
3445 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3446 | fi | |
3447 | fi | |
3448 | fi | |
3449 | fi | |
3450 | CC=$ac_cv_prog_CC | |
3451 | if test -n "$CC"; then | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3453 | $as_echo "$CC" >&6; } | |
3454 | else | |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3456 | $as_echo "no" >&6; } | |
3457 | fi | |
3458 | ||
3459 | ||
3460 | fi | |
3461 | if test -z "$CC"; then | |
3462 | if test -n "$ac_tool_prefix"; then | |
3463 | for ac_prog in cl.exe | |
3464 | do | |
3465 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3466 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3468 | $as_echo_n "checking for $ac_word... " >&6; } | |
3469 | if ${ac_cv_prog_CC+:} false; then : | |
3470 | $as_echo_n "(cached) " >&6 | |
3471 | else | |
3472 | if test -n "$CC"; then | |
3473 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3474 | else | |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3476 | for as_dir in $PATH | |
3477 | do | |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
3480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3482 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3484 | break 2 | |
3485 | fi | |
3486 | done | |
3487 | done | |
3488 | IFS=$as_save_IFS | |
3489 | ||
3490 | fi | |
3491 | fi | |
3492 | CC=$ac_cv_prog_CC | |
3493 | if test -n "$CC"; then | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3495 | $as_echo "$CC" >&6; } | |
3496 | else | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3498 | $as_echo "no" >&6; } | |
3499 | fi | |
3500 | ||
3501 | ||
3502 | test -n "$CC" && break | |
3503 | done | |
3504 | fi | |
3505 | if test -z "$CC"; then | |
3506 | ac_ct_CC=$CC | |
3507 | for ac_prog in cl.exe | |
3508 | do | |
3509 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3510 | set dummy $ac_prog; ac_word=$2 | |
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3512 | $as_echo_n "checking for $ac_word... " >&6; } | |
3513 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3514 | $as_echo_n "(cached) " >&6 | |
3515 | else | |
3516 | if test -n "$ac_ct_CC"; then | |
3517 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3518 | else | |
3519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3520 | for as_dir in $PATH | |
3521 | do | |
3522 | IFS=$as_save_IFS | |
3523 | test -z "$as_dir" && as_dir=. | |
3524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3526 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3528 | break 2 | |
3529 | fi | |
3530 | done | |
3531 | done | |
3532 | IFS=$as_save_IFS | |
3533 | ||
3534 | fi | |
3535 | fi | |
3536 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3537 | if test -n "$ac_ct_CC"; then | |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3539 | $as_echo "$ac_ct_CC" >&6; } | |
3540 | else | |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3542 | $as_echo "no" >&6; } | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | test -n "$ac_ct_CC" && break | |
3547 | done | |
3548 | ||
3549 | if test "x$ac_ct_CC" = x; then | |
3550 | CC="" | |
3551 | else | |
3552 | case $cross_compiling:$ac_tool_warned in | |
3553 | yes:) | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3555 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3556 | ac_tool_warned=yes ;; | |
3557 | esac | |
3558 | CC=$ac_ct_CC | |
3559 | fi | |
3560 | fi | |
3561 | ||
3562 | fi | |
3563 | ||
3564 | ||
3565 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3567 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3568 | See \`config.log' for more details" "$LINENO" 5; } | |
3569 | ||
3570 | # Provide some information about the compiler. | |
3571 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3572 | set X $ac_compile | |
3573 | ac_compiler=$2 | |
3574 | for ac_option in --version -v -V -qversion; do | |
3575 | { { ac_try="$ac_compiler $ac_option >&5" | |
3576 | case "(($ac_try" in | |
3577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3578 | *) ac_try_echo=$ac_try;; | |
3579 | esac | |
3580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3581 | $as_echo "$ac_try_echo"; } >&5 | |
3582 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3583 | ac_status=$? | |
3584 | if test -s conftest.err; then | |
3585 | sed '10a\ | |
3586 | ... rest of stderr output deleted ... | |
3587 | 10q' conftest.err >conftest.er1 | |
3588 | cat conftest.er1 >&5 | |
3589 | fi | |
3590 | rm -f conftest.er1 conftest.err | |
3591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3592 | test $ac_status = 0; } | |
3593 | done | |
3594 | ||
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3596 | /* end confdefs.h. */ | |
3597 | ||
3598 | int | |
3599 | main () | |
3600 | { | |
3601 | ||
3602 | ; | |
3603 | return 0; | |
3604 | } | |
3605 | _ACEOF | |
3606 | ac_clean_files_save=$ac_clean_files | |
3607 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3608 | # Try to create an executable without -o first, disregard a.out. | |
3609 | # It will help us diagnose broken compilers, and finding out an intuition | |
3610 | # of exeext. | |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3612 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3613 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3614 | ||
3615 | # The possible output files: | |
3616 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3617 | ||
3618 | ac_rmfiles= | |
3619 | for ac_file in $ac_files | |
3620 | do | |
3621 | case $ac_file in | |
3622 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3623 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3624 | esac | |
3625 | done | |
35fa52c0 DWT |
3626 | rm -f $ac_rmfiles |
3627 | ||
3628 | if { { ac_try="$ac_link_default" | |
3629 | case "(($ac_try" in | |
3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3631 | *) ac_try_echo=$ac_try;; | |
3632 | esac | |
3633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3634 | $as_echo "$ac_try_echo"; } >&5 | |
3635 | (eval "$ac_link_default") 2>&5 | |
3636 | ac_status=$? | |
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3638 | test $ac_status = 0; }; then : | |
3639 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3640 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3641 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3642 | # so that the user can short-circuit this test for compilers unknown to | |
3643 | # Autoconf. | |
3644 | for ac_file in $ac_files '' | |
3645 | do | |
3646 | test -f "$ac_file" || continue | |
3647 | case $ac_file in | |
3648 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3649 | ;; | |
3650 | [ab].out ) | |
3651 | # We found the default executable, but exeext='' is most | |
3652 | # certainly right. | |
3653 | break;; | |
3654 | *.* ) | |
3655 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3656 | then :; else | |
3657 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3658 | fi | |
3659 | # We set ac_cv_exeext here because the later test for it is not | |
3660 | # safe: cross compilers may not add the suffix if given an `-o' | |
3661 | # argument, so we may need to know it at that point already. | |
3662 | # Even if this section looks crufty: it has the advantage of | |
3663 | # actually working. | |
3664 | break;; | |
3665 | * ) | |
3666 | break;; | |
3667 | esac | |
3668 | done | |
3669 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3670 | ||
3671 | else | |
3672 | ac_file='' | |
3673 | fi | |
35fa52c0 | 3674 | if test -z "$ac_file"; then : |
9c60689e DWT |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3676 | $as_echo "no" >&6; } | |
3677 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
3679 | ||
3680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3682 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3683 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3684 | else |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3686 | $as_echo "yes" >&6; } | |
35fa52c0 | 3687 | fi |
a93f15c0 JF |
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3689 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3691 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3692 | ac_exeext=$ac_cv_exeext |
3693 | ||
9c60689e | 3694 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3695 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3697 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3698 | if { { ac_try="$ac_link" | |
3699 | case "(($ac_try" in | |
3700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3701 | *) ac_try_echo=$ac_try;; | |
3702 | esac | |
3703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3704 | $as_echo "$ac_try_echo"; } >&5 | |
3705 | (eval "$ac_link") 2>&5 | |
3706 | ac_status=$? | |
3707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3708 | test $ac_status = 0; }; then : | |
3709 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3710 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3711 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3712 | # `rm'. | |
3713 | for ac_file in conftest.exe conftest conftest.*; do | |
3714 | test -f "$ac_file" || continue | |
3715 | case $ac_file in | |
3716 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3717 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3718 | break;; | |
3719 | * ) break;; | |
3720 | esac | |
3721 | done | |
3722 | else | |
3723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3725 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3726 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3727 | fi |
9c60689e | 3728 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3730 | $as_echo "$ac_cv_exeext" >&6; } | |
3731 | ||
3732 | rm -f conftest.$ac_ext | |
3733 | EXEEXT=$ac_cv_exeext | |
3734 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3736 | /* end confdefs.h. */ | |
3737 | #include <stdio.h> | |
3738 | int | |
3739 | main () | |
3740 | { | |
3741 | FILE *f = fopen ("conftest.out", "w"); | |
3742 | return ferror (f) || fclose (f) != 0; | |
3743 | ||
3744 | ; | |
3745 | return 0; | |
3746 | } | |
3747 | _ACEOF | |
3748 | ac_clean_files="$ac_clean_files conftest.out" | |
3749 | # Check that the compiler produces executables we can run. If not, either | |
3750 | # the compiler is broken, or we cross compile. | |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3752 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3753 | if test "$cross_compiling" != yes; then | |
3754 | { { ac_try="$ac_link" | |
3755 | case "(($ac_try" in | |
3756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3757 | *) ac_try_echo=$ac_try;; | |
3758 | esac | |
3759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3760 | $as_echo "$ac_try_echo"; } >&5 | |
3761 | (eval "$ac_link") 2>&5 | |
3762 | ac_status=$? | |
3763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3764 | test $ac_status = 0; } | |
3765 | if { ac_try='./conftest$ac_cv_exeext' | |
3766 | { { case "(($ac_try" in | |
3767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3768 | *) ac_try_echo=$ac_try;; | |
3769 | esac | |
3770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3771 | $as_echo "$ac_try_echo"; } >&5 | |
3772 | (eval "$ac_try") 2>&5 | |
3773 | ac_status=$? | |
3774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3775 | test $ac_status = 0; }; }; then | |
3776 | cross_compiling=no | |
3777 | else | |
3778 | if test "$cross_compiling" = maybe; then | |
3779 | cross_compiling=yes | |
3780 | else | |
3781 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3782 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3783 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3784 | If you meant to cross compile, use \`--host'. |
ee134472 | 3785 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3786 | fi |
3787 | fi | |
3788 | fi | |
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3790 | $as_echo "$cross_compiling" >&6; } | |
3791 | ||
3792 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3793 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3795 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3796 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3797 | $as_echo_n "(cached) " >&6 |
3798 | else | |
3799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3800 | /* end confdefs.h. */ | |
3801 | ||
3802 | int | |
3803 | main () | |
3804 | { | |
3805 | ||
3806 | ; | |
3807 | return 0; | |
3808 | } | |
3809 | _ACEOF | |
3810 | rm -f conftest.o conftest.obj | |
3811 | if { { ac_try="$ac_compile" | |
3812 | case "(($ac_try" in | |
3813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3814 | *) ac_try_echo=$ac_try;; | |
3815 | esac | |
3816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3817 | $as_echo "$ac_try_echo"; } >&5 | |
3818 | (eval "$ac_compile") 2>&5 | |
3819 | ac_status=$? | |
3820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3821 | test $ac_status = 0; }; then : | |
3822 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3823 | test -f "$ac_file" || continue; | |
3824 | case $ac_file in | |
3825 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3826 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3827 | break;; | |
3828 | esac | |
3829 | done | |
3830 | else | |
3831 | $as_echo "$as_me: failed program was:" >&5 | |
3832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3833 | ||
3834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3836 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3837 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3838 | fi |
3839 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3840 | fi | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3842 | $as_echo "$ac_cv_objext" >&6; } | |
3843 | OBJEXT=$ac_cv_objext | |
3844 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3846 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3847 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3848 | $as_echo_n "(cached) " >&6 |
3849 | else | |
3850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3851 | /* end confdefs.h. */ | |
3852 | ||
3853 | int | |
3854 | main () | |
3855 | { | |
3856 | #ifndef __GNUC__ | |
3857 | choke me | |
3858 | #endif | |
3859 | ||
3860 | ; | |
3861 | return 0; | |
3862 | } | |
3863 | _ACEOF | |
a93f15c0 | 3864 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3865 | ac_compiler_gnu=yes |
3866 | else | |
3867 | ac_compiler_gnu=no | |
3868 | fi | |
3869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3870 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3871 | |
3872 | fi | |
a93f15c0 JF |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3874 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3875 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3876 | GCC=yes |
35fa52c0 | 3877 | else |
a93f15c0 | 3878 | GCC= |
35fa52c0 | 3879 | fi |
a93f15c0 JF |
3880 | ac_test_CFLAGS=${CFLAGS+set} |
3881 | ac_save_CFLAGS=$CFLAGS | |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3883 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3884 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3885 | $as_echo_n "(cached) " >&6 |
3886 | else | |
a93f15c0 JF |
3887 | ac_save_c_werror_flag=$ac_c_werror_flag |
3888 | ac_c_werror_flag=yes | |
3889 | ac_cv_prog_cc_g=no | |
3890 | CFLAGS="-g" | |
35fa52c0 DWT |
3891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3892 | /* end confdefs.h. */ | |
3893 | ||
3894 | int | |
3895 | main () | |
3896 | { | |
3897 | ||
3898 | ; | |
3899 | return 0; | |
3900 | } | |
3901 | _ACEOF | |
a93f15c0 JF |
3902 | if ac_fn_c_try_compile "$LINENO"; then : |
3903 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3904 | else |
a93f15c0 | 3905 | CFLAGS="" |
35fa52c0 DWT |
3906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3907 | /* end confdefs.h. */ | |
3908 | ||
3909 | int | |
3910 | main () | |
3911 | { | |
3912 | ||
3913 | ; | |
3914 | return 0; | |
3915 | } | |
3916 | _ACEOF | |
a93f15c0 | 3917 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3918 | |
3919 | else | |
a93f15c0 JF |
3920 | ac_c_werror_flag=$ac_save_c_werror_flag |
3921 | CFLAGS="-g" | |
35fa52c0 DWT |
3922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3923 | /* end confdefs.h. */ | |
3924 | ||
3925 | int | |
3926 | main () | |
3927 | { | |
3928 | ||
3929 | ; | |
3930 | return 0; | |
3931 | } | |
3932 | _ACEOF | |
a93f15c0 JF |
3933 | if ac_fn_c_try_compile "$LINENO"; then : |
3934 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3935 | fi |
3936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3937 | fi | |
3938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3939 | fi | |
3940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3941 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3942 | fi |
a93f15c0 JF |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3944 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3945 | if test "$ac_test_CFLAGS" = set; then | |
3946 | CFLAGS=$ac_save_CFLAGS | |
3947 | elif test $ac_cv_prog_cc_g = yes; then | |
3948 | if test "$GCC" = yes; then | |
3949 | CFLAGS="-g -O2" | |
35fa52c0 | 3950 | else |
a93f15c0 | 3951 | CFLAGS="-g" |
35fa52c0 DWT |
3952 | fi |
3953 | else | |
a93f15c0 JF |
3954 | if test "$GCC" = yes; then |
3955 | CFLAGS="-O2" | |
35fa52c0 | 3956 | else |
a93f15c0 | 3957 | CFLAGS= |
35fa52c0 DWT |
3958 | fi |
3959 | fi | |
a93f15c0 JF |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3961 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3962 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3963 | $as_echo_n "(cached) " >&6 | |
3964 | else | |
3965 | ac_cv_prog_cc_c89=no | |
3966 | ac_save_CC=$CC | |
3967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3968 | /* end confdefs.h. */ | |
3969 | #include <stdarg.h> | |
3970 | #include <stdio.h> | |
3971 | struct stat; | |
3972 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3973 | struct buf { int x; }; | |
3974 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3975 | static char *e (p, i) | |
3976 | char **p; | |
3977 | int i; | |
3978 | { | |
3979 | return p[i]; | |
3980 | } | |
3981 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3982 | { | |
3983 | char *s; | |
3984 | va_list v; | |
3985 | va_start (v,p); | |
3986 | s = g (p, va_arg (v,int)); | |
3987 | va_end (v); | |
3988 | return s; | |
3989 | } | |
3990 | ||
3991 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3992 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3993 | These don't provoke an error unfortunately, instead are silently treated | |
3994 | as 'x'. The following induces an error, until -std is added to get | |
3995 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3996 | array size at least. It's necessary to write '\x00'==0 to get something | |
3997 | that's true only with -std. */ | |
3998 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3999 | ||
4000 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4001 | inside strings and character constants. */ | |
4002 | #define FOO(x) 'x' | |
4003 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4004 | ||
4005 | int test (int i, double x); | |
4006 | struct s1 {int (*f) (int a);}; | |
4007 | struct s2 {int (*f) (double a);}; | |
4008 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4009 | int argc; | |
4010 | char **argv; | |
4011 | int | |
4012 | main () | |
4013 | { | |
4014 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4015 | ; | |
4016 | return 0; | |
4017 | } | |
4018 | _ACEOF | |
4019 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4020 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4021 | do | |
4022 | CC="$ac_save_CC $ac_arg" | |
4023 | if ac_fn_c_try_compile "$LINENO"; then : | |
4024 | ac_cv_prog_cc_c89=$ac_arg | |
4025 | fi | |
4026 | rm -f core conftest.err conftest.$ac_objext | |
4027 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4028 | done | |
4029 | rm -f conftest.$ac_ext | |
4030 | CC=$ac_save_CC | |
4031 | ||
4032 | fi | |
4033 | # AC_CACHE_VAL | |
4034 | case "x$ac_cv_prog_cc_c89" in | |
4035 | x) | |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4037 | $as_echo "none needed" >&6; } ;; | |
4038 | xno) | |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4040 | $as_echo "unsupported" >&6; } ;; | |
4041 | *) | |
4042 | CC="$CC $ac_cv_prog_cc_c89" | |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4044 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4045 | esac | |
4046 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4047 | ||
4048 | fi | |
4049 | ||
4050 | ac_ext=c | |
4051 | ac_cpp='$CPP $CPPFLAGS' | |
4052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4055 | ||
4056 | ac_ext=c | |
4057 | ac_cpp='$CPP $CPPFLAGS' | |
4058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4062 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4063 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4064 | $as_echo_n "(cached) " >&6 | |
4065 | else | |
4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4067 | /* end confdefs.h. */ | |
4068 | ||
4069 | int | |
4070 | main () | |
4071 | { | |
4072 | ||
4073 | ; | |
4074 | return 0; | |
4075 | } | |
4076 | _ACEOF | |
4077 | # Make sure it works both with $CC and with simple cc. | |
4078 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4079 | # compilers refuse to overwrite an existing .o file with -o, | |
4080 | # though they will create one. | |
4081 | am_cv_prog_cc_c_o=yes | |
4082 | for am_i in 1 2; do | |
4083 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4084 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4085 | ac_status=$? | |
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4087 | (exit $ac_status); } \ | |
4088 | && test -f conftest2.$ac_objext; then | |
4089 | : OK | |
4090 | else | |
4091 | am_cv_prog_cc_c_o=no | |
4092 | break | |
4093 | fi | |
4094 | done | |
4095 | rm -f core conftest* | |
4096 | unset am_i | |
4097 | fi | |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4099 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4100 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4101 | # Losing compiler, so override with the script. | |
4102 | # FIXME: It is wrong to rewrite CC. | |
4103 | # But if we don't then we get into trouble of one sort or another. | |
4104 | # A longer-term fix would be to have automake use am__CC in this case, | |
4105 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4106 | CC="$am_aux_dir/compile $CC" | |
4107 | fi | |
a243b558 JF |
4108 | ac_ext=c |
4109 | ac_cpp='$CPP $CPPFLAGS' | |
4110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4113 | |
a243b558 | 4114 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4115 | |
a243b558 | 4116 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4117 | |
35fa52c0 | 4118 | |
a243b558 JF |
4119 | am_make=${MAKE-make} |
4120 | cat > confinc << 'END' | |
4121 | am__doit: | |
4122 | @echo this is the am__doit target | |
4123 | .PHONY: am__doit | |
4124 | END | |
4125 | # If we don't find an include directive, just comment out the code. | |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4127 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4128 | am__include="#" | |
4129 | am__quote= | |
4130 | _am_result=none | |
4131 | # First try GNU make style include. | |
4132 | echo "include confinc" > confmf | |
4133 | # Ignore all kinds of additional output from 'make'. | |
4134 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4135 | *the\ am__doit\ target*) | |
4136 | am__include=include | |
4137 | am__quote= | |
4138 | _am_result=GNU | |
4139 | ;; | |
4140 | esac | |
4141 | # Now try BSD make style include. | |
4142 | if test "$am__include" = "#"; then | |
4143 | echo '.include "confinc"' > confmf | |
4144 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4145 | *the\ am__doit\ target*) | |
4146 | am__include=.include | |
4147 | am__quote="\"" | |
4148 | _am_result=BSD | |
4149 | ;; | |
4150 | esac | |
35fa52c0 | 4151 | fi |
35fa52c0 | 4152 | |
a243b558 JF |
4153 | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4155 | $as_echo "$_am_result" >&6; } | |
4156 | rm -f confinc confmf | |
4157 | ||
4158 | # Check whether --enable-dependency-tracking was given. | |
4159 | if test "${enable_dependency_tracking+set}" = set; then : | |
4160 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4161 | fi |
35fa52c0 | 4162 | |
a243b558 JF |
4163 | if test "x$enable_dependency_tracking" != xno; then |
4164 | am_depcomp="$ac_aux_dir/depcomp" | |
4165 | AMDEPBACKSLASH='\' | |
4166 | am__nodep='_no' | |
4167 | fi | |
4168 | if test "x$enable_dependency_tracking" != xno; then | |
4169 | AMDEP_TRUE= | |
4170 | AMDEP_FALSE='#' | |
4171 | else | |
4172 | AMDEP_TRUE='#' | |
4173 | AMDEP_FALSE= | |
35fa52c0 DWT |
4174 | fi |
4175 | ||
35fa52c0 | 4176 | |
a243b558 | 4177 | |
a93f15c0 | 4178 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4179 | |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4181 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4182 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4183 | $as_echo_n "(cached) " >&6 |
4184 | else | |
4185 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4186 | # We make a subdir and do the tests there. Otherwise we can end up | |
4187 | # making bogus files that we don't know about and never remove. For | |
4188 | # instance it was reported that on HP-UX the gcc test will end up | |
4189 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4190 | # in D". | |
4191 | rm -rf conftest.dir | |
4192 | mkdir conftest.dir | |
4193 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4194 | # using a relative directory. | |
4195 | cp "$am_depcomp" conftest.dir | |
4196 | cd conftest.dir | |
4197 | # We will build objects and dependencies in a subdirectory because | |
4198 | # it helps to detect inapplicable dependency modes. For instance | |
4199 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4200 | # side effect of compilation, but ICC will put the dependencies in | |
4201 | # the current directory while Tru64 will put them in the object | |
4202 | # directory. | |
4203 | mkdir sub | |
4204 | ||
a93f15c0 | 4205 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4206 | if test "$am_compiler_list" = ""; then |
4207 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4208 | fi | |
4209 | am__universal=false | |
4210 | case " $depcc " in #( | |
4211 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4212 | esac | |
4213 | ||
4214 | for depmode in $am_compiler_list; do | |
4215 | # Setup a source with many dependencies, because some compilers | |
4216 | # like to wrap large dependency lists on column 80 (with \), and | |
4217 | # we should not choose a depcomp mode which is confused by this. | |
4218 | # | |
4219 | # We need to recreate these files for each test, as the compiler may | |
4220 | # overwrite some of them when testing with obscure command lines. | |
4221 | # This happens at least with the AIX C compiler. | |
4222 | : > sub/conftest.c | |
4223 | for i in 1 2 3 4 5 6; do | |
4224 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4225 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4226 | # Solaris 10 /bin/sh. | |
4227 | echo '/* dummy */' > sub/conftst$i.h | |
4228 | done | |
4229 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4230 | ||
4231 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4232 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4233 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4234 | # versions had trouble with output in subdirs. | |
4235 | am__obj=sub/conftest.${OBJEXT-o} | |
4236 | am__minus_obj="-o $am__obj" | |
4237 | case $depmode in | |
4238 | gcc) | |
4239 | # This depmode causes a compiler race in universal mode. | |
4240 | test "$am__universal" = false || continue | |
4241 | ;; | |
4242 | nosideeffect) | |
4243 | # After this tag, mechanisms are not by side-effect, so they'll | |
4244 | # only be used when explicitly requested. | |
4245 | if test "x$enable_dependency_tracking" = xyes; then | |
4246 | continue | |
4247 | else | |
4248 | break | |
4249 | fi | |
4250 | ;; | |
4251 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4252 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4253 | # not run yet. These depmodes are late enough in the game, and | |
4254 | # so weak that their functioning should not be impacted. | |
4255 | am__obj=conftest.${OBJEXT-o} | |
4256 | am__minus_obj= | |
4257 | ;; | |
4258 | none) break ;; | |
4259 | esac | |
4260 | if depmode=$depmode \ | |
4261 | source=sub/conftest.c object=$am__obj \ | |
4262 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4263 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4264 | >/dev/null 2>conftest.err && | |
4265 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4266 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4267 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4268 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4269 | # icc doesn't choke on unknown options, it will just issue warnings | |
4270 | # or remarks (even with -Werror). So we grep stderr for any message | |
4271 | # that says an option was ignored or not supported. | |
4272 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4273 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4274 | # The diagnosis changed in icc 8.0: | |
4275 | # icc: Command line remark: option '-MP' not supported | |
4276 | if (grep 'ignoring option' conftest.err || | |
4277 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4278 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4279 | break |
4280 | fi | |
4281 | fi | |
4282 | done | |
4283 | ||
4284 | cd .. | |
4285 | rm -rf conftest.dir | |
4286 | else | |
a93f15c0 | 4287 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4288 | fi |
4289 | ||
4290 | fi | |
a93f15c0 JF |
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4292 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4293 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4294 | |
4295 | if | |
4296 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4297 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4298 | am__fastdepCC_TRUE= | |
4299 | am__fastdepCC_FALSE='#' | |
66170b30 | 4300 | else |
a93f15c0 JF |
4301 | am__fastdepCC_TRUE='#' |
4302 | am__fastdepCC_FALSE= | |
66170b30 JF |
4303 | fi |
4304 | ||
4305 | ||
a93f15c0 JF |
4306 | ac_ext=cpp |
4307 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4311 | if test -z "$CXX"; then | |
4312 | if test -n "$CCC"; then | |
4313 | CXX=$CCC | |
4314 | else | |
4315 | if test -n "$ac_tool_prefix"; then | |
4316 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4317 | do |
4318 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4319 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4321 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4322 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4323 | $as_echo_n "(cached) " >&6 |
4324 | else | |
a93f15c0 JF |
4325 | if test -n "$CXX"; then |
4326 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4327 | else |
4328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4329 | for as_dir in $PATH | |
4330 | do | |
35fa52c0 DWT |
4331 | IFS=$as_save_IFS |
4332 | test -z "$as_dir" && as_dir=. | |
4333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4335 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4337 | break 2 | |
4338 | fi | |
4339 | done | |
9c60689e DWT |
4340 | done |
4341 | IFS=$as_save_IFS | |
35fa52c0 | 4342 | |
9c60689e | 4343 | fi |
a243b558 | 4344 | fi |
a93f15c0 JF |
4345 | CXX=$ac_cv_prog_CXX |
4346 | if test -n "$CXX"; then | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4348 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4349 | else |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4351 | $as_echo "no" >&6; } | |
4352 | fi | |
35fa52c0 | 4353 | |
35fa52c0 | 4354 | |
a93f15c0 | 4355 | test -n "$CXX" && break |
a243b558 JF |
4356 | done |
4357 | fi | |
a93f15c0 JF |
4358 | if test -z "$CXX"; then |
4359 | ac_ct_CXX=$CXX | |
4360 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4361 | do |
4362 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4363 | set dummy $ac_prog; ac_word=$2 | |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4365 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4366 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4367 | $as_echo_n "(cached) " >&6 |
4368 | else | |
a93f15c0 JF |
4369 | if test -n "$ac_ct_CXX"; then |
4370 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4371 | else |
4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4373 | for as_dir in $PATH | |
9c60689e DWT |
4374 | do |
4375 | IFS=$as_save_IFS | |
4376 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4377 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4379 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4381 | break 2 | |
4382 | fi | |
4383 | done | |
9c60689e DWT |
4384 | done |
4385 | IFS=$as_save_IFS | |
a243b558 JF |
4386 | |
4387 | fi | |
4388 | fi | |
a93f15c0 JF |
4389 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4390 | if test -n "$ac_ct_CXX"; then | |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4392 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4393 | else |
a243b558 JF |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4395 | $as_echo "no" >&6; } | |
9c60689e | 4396 | fi |
6b66678a DWT |
4397 | |
4398 | ||
a93f15c0 | 4399 | test -n "$ac_ct_CXX" && break |
a243b558 | 4400 | done |
6b66678a | 4401 | |
a93f15c0 JF |
4402 | if test "x$ac_ct_CXX" = x; then |
4403 | CXX="g++" | |
a243b558 JF |
4404 | else |
4405 | case $cross_compiling:$ac_tool_warned in | |
4406 | yes:) | |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4409 | ac_tool_warned=yes ;; | |
9c60689e | 4410 | esac |
a93f15c0 | 4411 | CXX=$ac_ct_CXX |
9c60689e | 4412 | fi |
9c60689e | 4413 | fi |
6b66678a | 4414 | |
a93f15c0 JF |
4415 | fi |
4416 | fi | |
a243b558 | 4417 | # Provide some information about the compiler. |
a93f15c0 | 4418 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4419 | set X $ac_compile |
4420 | ac_compiler=$2 | |
4421 | for ac_option in --version -v -V -qversion; do | |
4422 | { { ac_try="$ac_compiler $ac_option >&5" | |
4423 | case "(($ac_try" in | |
4424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4425 | *) ac_try_echo=$ac_try;; | |
4426 | esac | |
4427 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4428 | $as_echo "$ac_try_echo"; } >&5 | |
4429 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4430 | ac_status=$? | |
4431 | if test -s conftest.err; then | |
4432 | sed '10a\ | |
4433 | ... rest of stderr output deleted ... | |
4434 | 10q' conftest.err >conftest.er1 | |
4435 | cat conftest.er1 >&5 | |
4436 | fi | |
4437 | rm -f conftest.er1 conftest.err | |
4438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4439 | test $ac_status = 0; } | |
4440 | done | |
6b66678a | 4441 | |
a93f15c0 JF |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4443 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4444 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4445 | $as_echo_n "(cached) " >&6 |
6b66678a | 4446 | else |
a243b558 JF |
4447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4448 | /* end confdefs.h. */ | |
6b66678a | 4449 | |
a243b558 JF |
4450 | int |
4451 | main () | |
4452 | { | |
4453 | #ifndef __GNUC__ | |
4454 | choke me | |
4455 | #endif | |
4456 | ||
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
a93f15c0 | 4461 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4462 | ac_compiler_gnu=yes |
9c60689e | 4463 | else |
a243b558 | 4464 | ac_compiler_gnu=no |
6b66678a | 4465 | fi |
a243b558 | 4466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4467 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4468 | |
4469 | fi | |
a93f15c0 JF |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4471 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4472 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4473 | GXX=yes |
a243b558 | 4474 | else |
a93f15c0 | 4475 | GXX= |
a243b558 | 4476 | fi |
a93f15c0 JF |
4477 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4478 | ac_save_CXXFLAGS=$CXXFLAGS | |
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4480 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4481 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4482 | $as_echo_n "(cached) " >&6 |
4483 | else | |
a93f15c0 JF |
4484 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4485 | ac_cxx_werror_flag=yes | |
4486 | ac_cv_prog_cxx_g=no | |
4487 | CXXFLAGS="-g" | |
a243b558 JF |
4488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4489 | /* end confdefs.h. */ | |
309b0535 | 4490 | |
a243b558 JF |
4491 | int |
4492 | main () | |
4493 | { | |
309b0535 | 4494 | |
a243b558 JF |
4495 | ; |
4496 | return 0; | |
4497 | } | |
4498 | _ACEOF | |
a93f15c0 JF |
4499 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4500 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4501 | else |
a93f15c0 | 4502 | CXXFLAGS="" |
a243b558 JF |
4503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4504 | /* end confdefs.h. */ | |
309b0535 | 4505 | |
a243b558 JF |
4506 | int |
4507 | main () | |
4508 | { | |
309b0535 | 4509 | |
a243b558 JF |
4510 | ; |
4511 | return 0; | |
4512 | } | |
4513 | _ACEOF | |
a93f15c0 | 4514 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4515 | |
a243b558 | 4516 | else |
a93f15c0 JF |
4517 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4518 | CXXFLAGS="-g" | |
a243b558 JF |
4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4520 | /* end confdefs.h. */ | |
309b0535 | 4521 | |
a243b558 JF |
4522 | int |
4523 | main () | |
4524 | { | |
309b0535 | 4525 | |
a243b558 JF |
4526 | ; |
4527 | return 0; | |
4528 | } | |
4529 | _ACEOF | |
a93f15c0 JF |
4530 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4531 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4532 | fi |
a243b558 | 4533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4534 | fi |
a243b558 | 4535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4536 | fi |
a243b558 | 4537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4538 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4539 | fi |
a93f15c0 JF |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4541 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4542 | if test "$ac_test_CXXFLAGS" = set; then | |
4543 | CXXFLAGS=$ac_save_CXXFLAGS | |
4544 | elif test $ac_cv_prog_cxx_g = yes; then | |
4545 | if test "$GXX" = yes; then | |
4546 | CXXFLAGS="-g -O2" | |
a243b558 | 4547 | else |
a93f15c0 | 4548 | CXXFLAGS="-g" |
a243b558 | 4549 | fi |
9c60689e | 4550 | else |
a93f15c0 JF |
4551 | if test "$GXX" = yes; then |
4552 | CXXFLAGS="-O2" | |
a243b558 | 4553 | else |
a93f15c0 | 4554 | CXXFLAGS= |
a243b558 | 4555 | fi |
9c60689e | 4556 | fi |
a243b558 JF |
4557 | ac_ext=c |
4558 | ac_cpp='$CPP $CPPFLAGS' | |
4559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4562 | |
a93f15c0 | 4563 | depcc="$CXX" am_compiler_list= |
309b0535 | 4564 | |
a243b558 JF |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4566 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4567 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4568 | $as_echo_n "(cached) " >&6 |
4569 | else | |
4570 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4571 | # We make a subdir and do the tests there. Otherwise we can end up | |
4572 | # making bogus files that we don't know about and never remove. For | |
4573 | # instance it was reported that on HP-UX the gcc test will end up | |
4574 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4575 | # in D". | |
4576 | rm -rf conftest.dir | |
4577 | mkdir conftest.dir | |
4578 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4579 | # using a relative directory. | |
4580 | cp "$am_depcomp" conftest.dir | |
4581 | cd conftest.dir | |
4582 | # We will build objects and dependencies in a subdirectory because | |
4583 | # it helps to detect inapplicable dependency modes. For instance | |
4584 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4585 | # side effect of compilation, but ICC will put the dependencies in | |
4586 | # the current directory while Tru64 will put them in the object | |
4587 | # directory. | |
4588 | mkdir sub | |
309b0535 | 4589 | |
a93f15c0 | 4590 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4591 | if test "$am_compiler_list" = ""; then |
4592 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4593 | fi | |
4594 | am__universal=false | |
a93f15c0 JF |
4595 | case " $depcc " in #( |
4596 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4597 | esac | |
9c60689e | 4598 | |
a243b558 JF |
4599 | for depmode in $am_compiler_list; do |
4600 | # Setup a source with many dependencies, because some compilers | |
4601 | # like to wrap large dependency lists on column 80 (with \), and | |
4602 | # we should not choose a depcomp mode which is confused by this. | |
4603 | # | |
4604 | # We need to recreate these files for each test, as the compiler may | |
4605 | # overwrite some of them when testing with obscure command lines. | |
4606 | # This happens at least with the AIX C compiler. | |
4607 | : > sub/conftest.c | |
4608 | for i in 1 2 3 4 5 6; do | |
4609 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4610 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4611 | # Solaris 10 /bin/sh. | |
4612 | echo '/* dummy */' > sub/conftst$i.h | |
4613 | done | |
4614 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4615 | |
a243b558 JF |
4616 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4617 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4618 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4619 | # versions had trouble with output in subdirs. | |
4620 | am__obj=sub/conftest.${OBJEXT-o} | |
4621 | am__minus_obj="-o $am__obj" | |
4622 | case $depmode in | |
4623 | gcc) | |
4624 | # This depmode causes a compiler race in universal mode. | |
4625 | test "$am__universal" = false || continue | |
4626 | ;; | |
4627 | nosideeffect) | |
4628 | # After this tag, mechanisms are not by side-effect, so they'll | |
4629 | # only be used when explicitly requested. | |
4630 | if test "x$enable_dependency_tracking" = xyes; then | |
4631 | continue | |
4632 | else | |
4633 | break | |
309b0535 | 4634 | fi |
a243b558 JF |
4635 | ;; |
4636 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4637 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4638 | # not run yet. These depmodes are late enough in the game, and | |
4639 | # so weak that their functioning should not be impacted. | |
4640 | am__obj=conftest.${OBJEXT-o} | |
4641 | am__minus_obj= | |
4642 | ;; | |
4643 | none) break ;; | |
4644 | esac | |
4645 | if depmode=$depmode \ | |
4646 | source=sub/conftest.c object=$am__obj \ | |
4647 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4648 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4649 | >/dev/null 2>conftest.err && | |
4650 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4651 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4652 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4653 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4654 | # icc doesn't choke on unknown options, it will just issue warnings | |
4655 | # or remarks (even with -Werror). So we grep stderr for any message | |
4656 | # that says an option was ignored or not supported. | |
4657 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4658 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4659 | # The diagnosis changed in icc 8.0: | |
4660 | # icc: Command line remark: option '-MP' not supported | |
4661 | if (grep 'ignoring option' conftest.err || | |
4662 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4663 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4664 | break |
4665 | fi | |
4666 | fi | |
309b0535 | 4667 | done |
a243b558 JF |
4668 | |
4669 | cd .. | |
4670 | rm -rf conftest.dir | |
4671 | else | |
a93f15c0 | 4672 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4673 | fi |
a243b558 | 4674 | |
9c60689e | 4675 | fi |
a93f15c0 JF |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4677 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4678 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4679 | |
4680 | if | |
4681 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4682 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4683 | am__fastdepCXX_TRUE= | |
4684 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4685 | else |
a93f15c0 JF |
4686 | am__fastdepCXX_TRUE='#' |
4687 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4688 | fi |
4689 | ||
4690 | ||
a93f15c0 JF |
4691 | ac_ext=mm |
4692 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4693 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4694 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4695 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4696 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4697 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4698 | do |
4699 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4700 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4702 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4703 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4704 | $as_echo_n "(cached) " >&6 |
4705 | else | |
a93f15c0 JF |
4706 | if test -n "$OBJCXX"; then |
4707 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4708 | else |
4709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4710 | for as_dir in $PATH | |
4711 | do | |
4712 | IFS=$as_save_IFS | |
4713 | test -z "$as_dir" && as_dir=. | |
4714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4716 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4718 | break 2 | |
9c60689e | 4719 | fi |
a243b558 JF |
4720 | done |
4721 | done | |
4722 | IFS=$as_save_IFS | |
9c60689e | 4723 | |
a243b558 JF |
4724 | fi |
4725 | fi | |
a93f15c0 JF |
4726 | OBJCXX=$ac_cv_prog_OBJCXX |
4727 | if test -n "$OBJCXX"; then | |
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4729 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4730 | else |
a243b558 JF |
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4732 | $as_echo "no" >&6; } | |
35fa52c0 | 4733 | fi |
9c60689e | 4734 | |
a243b558 | 4735 | |
a93f15c0 | 4736 | test -n "$OBJCXX" && break |
a243b558 JF |
4737 | done |
4738 | fi | |
a93f15c0 JF |
4739 | if test -z "$OBJCXX"; then |
4740 | ac_ct_OBJCXX=$OBJCXX | |
4741 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4742 | do |
4743 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4744 | set dummy $ac_prog; ac_word=$2 | |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4746 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4747 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4748 | $as_echo_n "(cached) " >&6 |
4749 | else | |
a93f15c0 JF |
4750 | if test -n "$ac_ct_OBJCXX"; then |
4751 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4752 | else |
4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4754 | for as_dir in $PATH | |
4755 | do | |
4756 | IFS=$as_save_IFS | |
4757 | test -z "$as_dir" && as_dir=. | |
4758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4760 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4762 | break 2 | |
4763 | fi | |
4764 | done | |
4765 | done | |
4766 | IFS=$as_save_IFS | |
9c60689e | 4767 | |
a243b558 JF |
4768 | fi |
4769 | fi | |
a93f15c0 JF |
4770 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4771 | if test -n "$ac_ct_OBJCXX"; then | |
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4773 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4774 | else |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4776 | $as_echo "no" >&6; } | |
4777 | fi | |
35fa52c0 | 4778 | |
35fa52c0 | 4779 | |
a93f15c0 | 4780 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4781 | done |
35fa52c0 | 4782 | |
a93f15c0 JF |
4783 | if test "x$ac_ct_OBJCXX" = x; then |
4784 | OBJCXX="g++" | |
a243b558 JF |
4785 | else |
4786 | case $cross_compiling:$ac_tool_warned in | |
4787 | yes:) | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4789 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4790 | ac_tool_warned=yes ;; | |
4791 | esac | |
a93f15c0 | 4792 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4793 | fi |
4794 | fi | |
ee134472 | 4795 | |
a243b558 | 4796 | # Provide some information about the compiler. |
a93f15c0 | 4797 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4798 | set X $ac_compile |
4799 | ac_compiler=$2 | |
4800 | for ac_option in --version -v -V -qversion; do | |
4801 | { { ac_try="$ac_compiler $ac_option >&5" | |
4802 | case "(($ac_try" in | |
4803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4804 | *) ac_try_echo=$ac_try;; | |
4805 | esac | |
4806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4807 | $as_echo "$ac_try_echo"; } >&5 | |
4808 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4809 | ac_status=$? | |
4810 | if test -s conftest.err; then | |
4811 | sed '10a\ | |
4812 | ... rest of stderr output deleted ... | |
4813 | 10q' conftest.err >conftest.er1 | |
4814 | cat conftest.er1 >&5 | |
4815 | fi | |
4816 | rm -f conftest.er1 conftest.err | |
4817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4818 | test $ac_status = 0; } | |
4819 | done | |
53ba6704 | 4820 | |
a93f15c0 JF |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4822 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4823 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4824 | $as_echo_n "(cached) " >&6 |
4825 | else | |
4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4827 | /* end confdefs.h. */ | |
35fa52c0 | 4828 | |
a243b558 JF |
4829 | int |
4830 | main () | |
4831 | { | |
4832 | #ifndef __GNUC__ | |
4833 | choke me | |
4834 | #endif | |
9c60689e | 4835 | |
a243b558 JF |
4836 | ; |
4837 | return 0; | |
4838 | } | |
4839 | _ACEOF | |
a93f15c0 | 4840 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4841 | ac_compiler_gnu=yes |
35fa52c0 | 4842 | else |
a243b558 | 4843 | ac_compiler_gnu=no |
35fa52c0 | 4844 | fi |
a243b558 | 4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4846 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4847 | |
a243b558 | 4848 | fi |
a93f15c0 JF |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4850 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4851 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4852 | GOBJCXX=yes |
35fa52c0 | 4853 | else |
a93f15c0 | 4854 | GOBJCXX= |
9c60689e | 4855 | fi |
a93f15c0 JF |
4856 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4857 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4859 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4860 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4861 | $as_echo_n "(cached) " >&6 |
4862 | else | |
a93f15c0 JF |
4863 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4864 | ac_objcxx_werror_flag=yes | |
4865 | ac_cv_prog_objcxx_g=no | |
4866 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4868 | /* end confdefs.h. */ | |
9c60689e | 4869 | |
a243b558 JF |
4870 | int |
4871 | main () | |
4872 | { | |
9c60689e | 4873 | |
a243b558 JF |
4874 | ; |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
a93f15c0 JF |
4878 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4879 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4880 | else |
a93f15c0 | 4881 | OBJCXXFLAGS="" |
a243b558 JF |
4882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4883 | /* end confdefs.h. */ | |
9c60689e | 4884 | |
a243b558 JF |
4885 | int |
4886 | main () | |
4887 | { | |
9c60689e | 4888 | |
a243b558 JF |
4889 | ; |
4890 | return 0; | |
4891 | } | |
4892 | _ACEOF | |
a93f15c0 | 4893 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4894 | |
a243b558 | 4895 | else |
a93f15c0 JF |
4896 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4897 | OBJCXXFLAGS="-g" | |
a243b558 | 4898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4899 | /* end confdefs.h. */ |
4900 | ||
a243b558 JF |
4901 | int |
4902 | main () | |
4903 | { | |
a93f15c0 | 4904 | |
a243b558 JF |
4905 | ; |
4906 | return 0; | |
4907 | } | |
4908 | _ACEOF | |
a93f15c0 JF |
4909 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4910 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4911 | fi |
a93f15c0 | 4912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4913 | fi |
a93f15c0 JF |
4914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4915 | fi | |
4916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4917 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4918 | fi | |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4920 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4921 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4922 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4923 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4924 | if test "$GOBJCXX" = yes; then | |
4925 | OBJCXXFLAGS="-g -O2" | |
4926 | else | |
4927 | OBJCXXFLAGS="-g" | |
4928 | fi | |
4929 | else | |
4930 | if test "$GOBJCXX" = yes; then | |
4931 | OBJCXXFLAGS="-O2" | |
4932 | else | |
4933 | OBJCXXFLAGS= | |
4934 | fi | |
35fa52c0 | 4935 | fi |
a243b558 JF |
4936 | ac_ext=c |
4937 | ac_cpp='$CPP $CPPFLAGS' | |
4938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4941 | ||
a93f15c0 | 4942 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4943 | |
a243b558 JF |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4945 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4946 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4947 | $as_echo_n "(cached) " >&6 |
4948 | else | |
a243b558 JF |
4949 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4950 | # We make a subdir and do the tests there. Otherwise we can end up | |
4951 | # making bogus files that we don't know about and never remove. For | |
4952 | # instance it was reported that on HP-UX the gcc test will end up | |
4953 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4954 | # in D". | |
4955 | rm -rf conftest.dir | |
4956 | mkdir conftest.dir | |
4957 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4958 | # using a relative directory. | |
4959 | cp "$am_depcomp" conftest.dir | |
4960 | cd conftest.dir | |
4961 | # We will build objects and dependencies in a subdirectory because | |
4962 | # it helps to detect inapplicable dependency modes. For instance | |
4963 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4964 | # side effect of compilation, but ICC will put the dependencies in | |
4965 | # the current directory while Tru64 will put them in the object | |
4966 | # directory. | |
4967 | mkdir sub | |
4968 | ||
a93f15c0 | 4969 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4970 | if test "$am_compiler_list" = ""; then |
4971 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4972 | fi | |
4973 | am__universal=false | |
a93f15c0 | 4974 | |
a243b558 JF |
4975 | |
4976 | for depmode in $am_compiler_list; do | |
4977 | # Setup a source with many dependencies, because some compilers | |
4978 | # like to wrap large dependency lists on column 80 (with \), and | |
4979 | # we should not choose a depcomp mode which is confused by this. | |
4980 | # | |
4981 | # We need to recreate these files for each test, as the compiler may | |
4982 | # overwrite some of them when testing with obscure command lines. | |
4983 | # This happens at least with the AIX C compiler. | |
4984 | : > sub/conftest.c | |
4985 | for i in 1 2 3 4 5 6; do | |
4986 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4987 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4988 | # Solaris 10 /bin/sh. | |
4989 | echo '/* dummy */' > sub/conftst$i.h | |
4990 | done | |
4991 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4992 | ||
4993 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4994 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4995 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4996 | # versions had trouble with output in subdirs. | |
4997 | am__obj=sub/conftest.${OBJEXT-o} | |
4998 | am__minus_obj="-o $am__obj" | |
4999 | case $depmode in | |
5000 | gcc) | |
5001 | # This depmode causes a compiler race in universal mode. | |
5002 | test "$am__universal" = false || continue | |
5003 | ;; | |
5004 | nosideeffect) | |
5005 | # After this tag, mechanisms are not by side-effect, so they'll | |
5006 | # only be used when explicitly requested. | |
5007 | if test "x$enable_dependency_tracking" = xyes; then | |
5008 | continue | |
5009 | else | |
5010 | break | |
5011 | fi | |
5012 | ;; | |
5013 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5014 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5015 | # not run yet. These depmodes are late enough in the game, and | |
5016 | # so weak that their functioning should not be impacted. | |
5017 | am__obj=conftest.${OBJEXT-o} | |
5018 | am__minus_obj= | |
5019 | ;; | |
5020 | none) break ;; | |
5021 | esac | |
5022 | if depmode=$depmode \ | |
5023 | source=sub/conftest.c object=$am__obj \ | |
5024 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5025 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5026 | >/dev/null 2>conftest.err && | |
5027 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5028 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5029 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5030 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5031 | # icc doesn't choke on unknown options, it will just issue warnings | |
5032 | # or remarks (even with -Werror). So we grep stderr for any message | |
5033 | # that says an option was ignored or not supported. | |
5034 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5035 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5036 | # The diagnosis changed in icc 8.0: | |
5037 | # icc: Command line remark: option '-MP' not supported | |
5038 | if (grep 'ignoring option' conftest.err || | |
5039 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 5040 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
5041 | break |
5042 | fi | |
5043 | fi | |
5044 | done | |
9c60689e | 5045 | |
a243b558 JF |
5046 | cd .. |
5047 | rm -rf conftest.dir | |
5048 | else | |
a93f15c0 | 5049 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 5050 | fi |
a243b558 | 5051 | |
35fa52c0 | 5052 | fi |
a93f15c0 JF |
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
5054 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
5055 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
5056 | |
5057 | if | |
5058 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
5059 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
5060 | am__fastdepOBJCXX_TRUE= | |
5061 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 5062 | else |
a93f15c0 JF |
5063 | am__fastdepOBJCXX_TRUE='#' |
5064 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
5065 | fi |
5066 | ||
5067 | ||
5068 | ||
8d20f0f1 JF |
5069 | ac_ext=c |
5070 | ac_cpp='$CPP $CPPFLAGS' | |
5071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5075 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5076 | # On Suns, sometimes $CPP names a directory. | |
5077 | if test -n "$CPP" && test -d "$CPP"; then | |
5078 | CPP= | |
5079 | fi | |
5080 | if test -z "$CPP"; then | |
5081 | if ${ac_cv_prog_CPP+:} false; then : | |
a243b558 JF |
5082 | $as_echo_n "(cached) " >&6 |
5083 | else | |
8d20f0f1 JF |
5084 | # Double quotes because CPP needs to be expanded |
5085 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5086 | do | |
5087 | ac_preproc_ok=false | |
5088 | for ac_c_preproc_warn_flag in '' yes | |
a243b558 | 5089 | do |
8d20f0f1 JF |
5090 | # Use a header file that comes with gcc, so configuring glibc |
5091 | # with a fresh cross-compiler works. | |
5092 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5093 | # <limits.h> exists even on freestanding compilers. | |
5094 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5095 | # not just through cpp. "Syntax error" is here to catch this case. | |
5096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5097 | /* end confdefs.h. */ | |
5098 | #ifdef __STDC__ | |
5099 | # include <limits.h> | |
5100 | #else | |
5101 | # include <assert.h> | |
5102 | #endif | |
5103 | Syntax error | |
5104 | _ACEOF | |
5105 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a243b558 | 5106 | |
35fa52c0 | 5107 | else |
8d20f0f1 JF |
5108 | # Broken: fails on valid input. |
5109 | continue | |
35fa52c0 | 5110 | fi |
8d20f0f1 | 5111 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 5112 | |
8d20f0f1 JF |
5113 | # OK, works on sane cases. Now check whether nonexistent headers |
5114 | # can be detected and how. | |
5115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5116 | /* end confdefs.h. */ | |
5117 | #include <ac_nonexistent.h> | |
5118 | _ACEOF | |
5119 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5120 | # Broken: success on invalid input. | |
5121 | continue | |
5122 | else | |
5123 | # Passes both tests. | |
5124 | ac_preproc_ok=: | |
5125 | break | |
5126 | fi | |
5127 | rm -f conftest.err conftest.i conftest.$ac_ext | |
a243b558 | 5128 | |
8d20f0f1 JF |
5129 | done |
5130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5131 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5132 | if $ac_preproc_ok; then : | |
5133 | break | |
5134 | fi | |
5135 | ||
5136 | done | |
5137 | ac_cv_prog_CPP=$CPP | |
5138 | ||
5139 | fi | |
5140 | CPP=$ac_cv_prog_CPP | |
5141 | else | |
5142 | ac_cv_prog_CPP=$CPP | |
5143 | fi | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5145 | $as_echo "$CPP" >&6; } | |
5146 | ac_preproc_ok=false | |
5147 | for ac_c_preproc_warn_flag in '' yes | |
5148 | do | |
5149 | # Use a header file that comes with gcc, so configuring glibc | |
5150 | # with a fresh cross-compiler works. | |
5151 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5152 | # <limits.h> exists even on freestanding compilers. | |
5153 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5154 | # not just through cpp. "Syntax error" is here to catch this case. | |
5155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5156 | /* end confdefs.h. */ | |
5157 | #ifdef __STDC__ | |
5158 | # include <limits.h> | |
5159 | #else | |
5160 | # include <assert.h> | |
5161 | #endif | |
5162 | Syntax error | |
5163 | _ACEOF | |
5164 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5165 | ||
5166 | else | |
5167 | # Broken: fails on valid input. | |
5168 | continue | |
5169 | fi | |
5170 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5171 | ||
5172 | # OK, works on sane cases. Now check whether nonexistent headers | |
5173 | # can be detected and how. | |
5174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5175 | /* end confdefs.h. */ | |
5176 | #include <ac_nonexistent.h> | |
5177 | _ACEOF | |
5178 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5179 | # Broken: success on invalid input. | |
5180 | continue | |
5181 | else | |
5182 | # Passes both tests. | |
5183 | ac_preproc_ok=: | |
5184 | break | |
5185 | fi | |
5186 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5187 | ||
5188 | done | |
5189 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5190 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5191 | if $ac_preproc_ok; then : | |
5192 | ||
5193 | else | |
5194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5196 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5197 | See \`config.log' for more details" "$LINENO" 5; } | |
5198 | fi | |
5199 | ||
5200 | ac_ext=c | |
5201 | ac_cpp='$CPP $CPPFLAGS' | |
5202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5205 | ||
5206 | ||
5207 | # Make sure we can run config.sub. | |
5208 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5209 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5210 | ||
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5212 | $as_echo_n "checking build system type... " >&6; } | |
5213 | if ${ac_cv_build+:} false; then : | |
5214 | $as_echo_n "(cached) " >&6 | |
5215 | else | |
5216 | ac_build_alias=$build_alias | |
5217 | test "x$ac_build_alias" = x && | |
5218 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5219 | test "x$ac_build_alias" = x && | |
5220 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5221 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5222 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5223 | ||
5224 | fi | |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5226 | $as_echo "$ac_cv_build" >&6; } | |
5227 | case $ac_cv_build in | |
5228 | *-*-*) ;; | |
5229 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5230 | esac | |
5231 | build=$ac_cv_build | |
5232 | ac_save_IFS=$IFS; IFS='-' | |
5233 | set x $ac_cv_build | |
5234 | shift | |
5235 | build_cpu=$1 | |
5236 | build_vendor=$2 | |
5237 | shift; shift | |
5238 | # Remember, the first character of IFS is used to create $*, | |
5239 | # except with old shells: | |
5240 | build_os=$* | |
5241 | IFS=$ac_save_IFS | |
5242 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5243 | ||
5244 | ||
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5246 | $as_echo_n "checking host system type... " >&6; } | |
5247 | if ${ac_cv_host+:} false; then : | |
5248 | $as_echo_n "(cached) " >&6 | |
5249 | else | |
5250 | if test "x$host_alias" = x; then | |
5251 | ac_cv_host=$ac_cv_build | |
5252 | else | |
5253 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5254 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5255 | fi | |
5256 | ||
5257 | fi | |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5259 | $as_echo "$ac_cv_host" >&6; } | |
5260 | case $ac_cv_host in | |
5261 | *-*-*) ;; | |
5262 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5263 | esac | |
5264 | host=$ac_cv_host | |
5265 | ac_save_IFS=$IFS; IFS='-' | |
5266 | set x $ac_cv_host | |
5267 | shift | |
5268 | host_cpu=$1 | |
5269 | host_vendor=$2 | |
5270 | shift; shift | |
5271 | # Remember, the first character of IFS is used to create $*, | |
5272 | # except with old shells: | |
5273 | host_os=$* | |
5274 | IFS=$ac_save_IFS | |
5275 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | save_cross_compiling=$cross_compiling | |
5281 | save_ac_tool_prefix=$ac_tool_prefix | |
5282 | cross_compiling=no | |
5283 | ac_tool_prefix= | |
5284 | ||
5285 | ac_ext=c | |
5286 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5287 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5288 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
5289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5290 | if test -n "$ac_tool_prefix"; then | |
5291 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5292 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5294 | $as_echo_n "checking for $ac_word... " >&6; } | |
5295 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5296 | $as_echo_n "(cached) " >&6 | |
5297 | else | |
5298 | if test -n "$CC_FOR_BUILD"; then | |
5299 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5300 | else | |
5301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5302 | for as_dir in $PATH | |
5303 | do | |
5304 | IFS=$as_save_IFS | |
5305 | test -z "$as_dir" && as_dir=. | |
5306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5308 | ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc" | |
5309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5310 | break 2 | |
5311 | fi | |
5312 | done | |
5313 | done | |
5314 | IFS=$as_save_IFS | |
5315 | ||
5316 | fi | |
5317 | fi | |
5318 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5319 | if test -n "$CC_FOR_BUILD"; then | |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5321 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5322 | else | |
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5324 | $as_echo "no" >&6; } | |
5325 | fi | |
5326 | ||
5327 | ||
5328 | fi | |
5329 | if test -z "$ac_cv_prog_CC_FOR_BUILD"; then | |
5330 | ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD | |
5331 | # Extract the first word of "gcc", so it can be a program name with args. | |
5332 | set dummy gcc; ac_word=$2 | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5334 | $as_echo_n "checking for $ac_word... " >&6; } | |
5335 | if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : | |
5336 | $as_echo_n "(cached) " >&6 | |
5337 | else | |
5338 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5339 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. | |
5340 | else | |
5341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5342 | for as_dir in $PATH | |
5343 | do | |
5344 | IFS=$as_save_IFS | |
5345 | test -z "$as_dir" && as_dir=. | |
5346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5348 | ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" | |
5349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5350 | break 2 | |
5351 | fi | |
5352 | done | |
5353 | done | |
5354 | IFS=$as_save_IFS | |
5355 | ||
5356 | fi | |
5357 | fi | |
5358 | ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD | |
5359 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 | |
5361 | $as_echo "$ac_ct_CC_FOR_BUILD" >&6; } | |
5362 | else | |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5364 | $as_echo "no" >&6; } | |
5365 | fi | |
5366 | ||
5367 | if test "x$ac_ct_CC_FOR_BUILD" = x; then | |
5368 | CC_FOR_BUILD="" | |
5369 | else | |
5370 | case $cross_compiling:$ac_tool_warned in | |
5371 | yes:) | |
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
5373 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
5374 | ac_tool_warned=yes ;; | |
5375 | esac | |
5376 | CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD | |
5377 | fi | |
5378 | else | |
5379 | CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" | |
5380 | fi | |
5381 | ||
5382 | if test -z "$CC_FOR_BUILD"; then | |
5383 | if test -n "$ac_tool_prefix"; then | |
5384 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5385 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5387 | $as_echo_n "checking for $ac_word... " >&6; } | |
5388 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5389 | $as_echo_n "(cached) " >&6 | |
5390 | else | |
5391 | if test -n "$CC_FOR_BUILD"; then | |
5392 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5393 | else | |
5394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5395 | for as_dir in $PATH | |
5396 | do | |
5397 | IFS=$as_save_IFS | |
5398 | test -z "$as_dir" && as_dir=. | |
5399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5401 | ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc" | |
5402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5403 | break 2 | |
5404 | fi | |
5405 | done | |
5406 | done | |
5407 | IFS=$as_save_IFS | |
5408 | ||
5409 | fi | |
5410 | fi | |
5411 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5412 | if test -n "$CC_FOR_BUILD"; then | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5414 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5415 | else | |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5417 | $as_echo "no" >&6; } | |
5418 | fi | |
5419 | ||
5420 | ||
5421 | fi | |
5422 | fi | |
5423 | if test -z "$CC_FOR_BUILD"; then | |
5424 | # Extract the first word of "cc", so it can be a program name with args. | |
5425 | set dummy cc; ac_word=$2 | |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5427 | $as_echo_n "checking for $ac_word... " >&6; } | |
5428 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5429 | $as_echo_n "(cached) " >&6 | |
5430 | else | |
5431 | if test -n "$CC_FOR_BUILD"; then | |
5432 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5433 | else | |
5434 | ac_prog_rejected=no | |
5435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5436 | for as_dir in $PATH | |
5437 | do | |
5438 | IFS=$as_save_IFS | |
5439 | test -z "$as_dir" && as_dir=. | |
5440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5442 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5443 | ac_prog_rejected=yes | |
5444 | continue | |
5445 | fi | |
5446 | ac_cv_prog_CC_FOR_BUILD="cc" | |
5447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5448 | break 2 | |
5449 | fi | |
5450 | done | |
5451 | done | |
5452 | IFS=$as_save_IFS | |
5453 | ||
5454 | if test $ac_prog_rejected = yes; then | |
5455 | # We found a bogon in the path, so make sure we never use it. | |
5456 | set dummy $ac_cv_prog_CC_FOR_BUILD | |
5457 | shift | |
5458 | if test $# != 0; then | |
5459 | # We chose a different compiler from the bogus one. | |
5460 | # However, it has the same basename, so the bogon will be chosen | |
5461 | # first if we set CC_FOR_BUILD to just the basename; use the full file name. | |
5462 | shift | |
5463 | ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" | |
5464 | fi | |
5465 | fi | |
5466 | fi | |
5467 | fi | |
5468 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5469 | if test -n "$CC_FOR_BUILD"; then | |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5471 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5472 | else | |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5474 | $as_echo "no" >&6; } | |
5475 | fi | |
5476 | ||
5477 | ||
5478 | fi | |
5479 | if test -z "$CC_FOR_BUILD"; then | |
5480 | if test -n "$ac_tool_prefix"; then | |
5481 | for ac_prog in cl.exe | |
5482 | do | |
5483 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5484 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5486 | $as_echo_n "checking for $ac_word... " >&6; } | |
5487 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5488 | $as_echo_n "(cached) " >&6 | |
5489 | else | |
5490 | if test -n "$CC_FOR_BUILD"; then | |
5491 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5492 | else | |
5493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5494 | for as_dir in $PATH | |
5495 | do | |
5496 | IFS=$as_save_IFS | |
5497 | test -z "$as_dir" && as_dir=. | |
5498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5500 | ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog" | |
5501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5502 | break 2 | |
5503 | fi | |
5504 | done | |
5505 | done | |
5506 | IFS=$as_save_IFS | |
5507 | ||
5508 | fi | |
5509 | fi | |
5510 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5511 | if test -n "$CC_FOR_BUILD"; then | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5513 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5514 | else | |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5516 | $as_echo "no" >&6; } | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | test -n "$CC_FOR_BUILD" && break | |
5521 | done | |
5522 | fi | |
5523 | if test -z "$CC_FOR_BUILD"; then | |
5524 | ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD | |
5525 | for ac_prog in cl.exe | |
5526 | do | |
5527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5528 | set dummy $ac_prog; ac_word=$2 | |
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5530 | $as_echo_n "checking for $ac_word... " >&6; } | |
5531 | if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : | |
5532 | $as_echo_n "(cached) " >&6 | |
5533 | else | |
5534 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5535 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. | |
5536 | else | |
5537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5538 | for as_dir in $PATH | |
5539 | do | |
5540 | IFS=$as_save_IFS | |
5541 | test -z "$as_dir" && as_dir=. | |
5542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5544 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" | |
5545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5546 | break 2 | |
5547 | fi | |
5548 | done | |
5549 | done | |
5550 | IFS=$as_save_IFS | |
5551 | ||
5552 | fi | |
5553 | fi | |
5554 | ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD | |
5555 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 | |
5557 | $as_echo "$ac_ct_CC_FOR_BUILD" >&6; } | |
5558 | else | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5560 | $as_echo "no" >&6; } | |
5561 | fi | |
5562 | ||
5563 | ||
5564 | test -n "$ac_ct_CC_FOR_BUILD" && break | |
5565 | done | |
5566 | ||
5567 | if test "x$ac_ct_CC_FOR_BUILD" = x; then | |
5568 | CC_FOR_BUILD="" | |
5569 | else | |
5570 | case $cross_compiling:$ac_tool_warned in | |
5571 | yes:) | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
5573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
5574 | ac_tool_warned=yes ;; | |
5575 | esac | |
5576 | CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD | |
5577 | fi | |
5578 | fi | |
5579 | ||
5580 | fi | |
5581 | ||
5582 | ||
5583 | test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5585 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
5586 | See \`config.log' for more details" "$LINENO" 5; } | |
5587 | ||
5588 | # Provide some information about the compiler. | |
5589 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5590 | set X $ac_build_compile | |
5591 | ac_compiler=$2 | |
5592 | for ac_option in --version -v -V -qversion; do | |
5593 | { { ac_try="$ac_compiler $ac_option >&5" | |
5594 | case "(($ac_try" in | |
5595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5596 | *) ac_try_echo=$ac_try;; | |
5597 | esac | |
5598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5599 | $as_echo "$ac_try_echo"; } >&5 | |
5600 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5601 | ac_status=$? | |
5602 | if test -s conftest.err; then | |
5603 | sed '10a\ | |
5604 | ... rest of stderr output deleted ... | |
5605 | 10q' conftest.err >conftest.er1 | |
5606 | cat conftest.er1 >&5 | |
5607 | fi | |
5608 | rm -f conftest.er1 conftest.err | |
5609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5610 | test $ac_status = 0; } | |
5611 | done | |
5612 | ||
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5614 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5615 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
5616 | $as_echo_n "(cached) " >&6 | |
5617 | else | |
5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5619 | /* end confdefs.h. */ | |
5620 | ||
5621 | int | |
5622 | main () | |
5623 | { | |
5624 | #ifndef __GNUC__ | |
5625 | choke me | |
5626 | #endif | |
5627 | ||
5628 | ; | |
5629 | return 0; | |
5630 | } | |
5631 | _ACEOF | |
5632 | if ac_fn_c_try_compile "$LINENO"; then : | |
5633 | ac_compiler_gnu=yes | |
5634 | else | |
5635 | ac_compiler_gnu=no | |
5636 | fi | |
5637 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5638 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5639 | ||
5640 | fi | |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5642 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5643 | if test $ac_compiler_gnu = yes; then | |
5644 | GCC=yes | |
5645 | else | |
5646 | GCC= | |
5647 | fi | |
5648 | ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} | |
5649 | ac_save_CFLAGS=$CFLAGS_FOR_BUILD | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 | |
5651 | $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } | |
5652 | if ${ac_cv_build_prog_cc_g+:} false; then : | |
5653 | $as_echo_n "(cached) " >&6 | |
5654 | else | |
5655 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5656 | ac_c_werror_flag=yes | |
5657 | ac_cv_build_prog_cc_g=no | |
5658 | CFLAGS_FOR_BUILD="-g" | |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5660 | /* end confdefs.h. */ | |
5661 | ||
5662 | int | |
5663 | main () | |
5664 | { | |
5665 | ||
5666 | ; | |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | if ac_fn_c_try_compile "$LINENO"; then : | |
5671 | ac_cv_build_prog_cc_g=yes | |
5672 | else | |
5673 | CFLAGS_FOR_BUILD="" | |
5674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5675 | /* end confdefs.h. */ | |
5676 | ||
5677 | int | |
5678 | main () | |
5679 | { | |
5680 | ||
5681 | ; | |
5682 | return 0; | |
5683 | } | |
5684 | _ACEOF | |
5685 | if ac_fn_c_try_compile "$LINENO"; then : | |
5686 | ||
5687 | else | |
5688 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5689 | CFLAGS_FOR_BUILD="-g" | |
5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5691 | /* end confdefs.h. */ | |
5692 | ||
5693 | int | |
5694 | main () | |
5695 | { | |
5696 | ||
5697 | ; | |
5698 | return 0; | |
5699 | } | |
5700 | _ACEOF | |
5701 | if ac_fn_c_try_compile "$LINENO"; then : | |
5702 | ac_cv_build_prog_cc_g=yes | |
5703 | fi | |
5704 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5705 | fi | |
5706 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5707 | fi | |
5708 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5709 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5710 | fi | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 | |
5712 | $as_echo "$ac_cv_build_prog_cc_g" >&6; } | |
5713 | if test "$ac_test_CFLAGS" = set; then | |
5714 | CFLAGS_FOR_BUILD=$ac_save_CFLAGS | |
5715 | elif test $ac_cv_build_prog_cc_g = yes; then | |
5716 | if test "$GCC" = yes; then | |
5717 | CFLAGS_FOR_BUILD="-g -O2" | |
5718 | else | |
5719 | CFLAGS_FOR_BUILD="-g" | |
5720 | fi | |
5721 | else | |
5722 | if test "$GCC" = yes; then | |
5723 | CFLAGS_FOR_BUILD="-O2" | |
5724 | else | |
5725 | CFLAGS_FOR_BUILD= | |
5726 | fi | |
5727 | fi | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 | |
5729 | $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } | |
5730 | if ${ac_cv_prog_cc_c89+:} false; then : | |
5731 | $as_echo_n "(cached) " >&6 | |
5732 | else | |
5733 | ac_cv_prog_cc_c89=no | |
5734 | ac_save_CC=$CC_FOR_BUILD | |
5735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5736 | /* end confdefs.h. */ | |
5737 | #include <stdarg.h> | |
5738 | #include <stdio.h> | |
5739 | struct stat; | |
5740 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5741 | struct buf { int x; }; | |
5742 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5743 | static char *e (p, i) | |
5744 | char **p; | |
5745 | int i; | |
5746 | { | |
5747 | return p[i]; | |
5748 | } | |
5749 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5750 | { | |
5751 | char *s; | |
5752 | va_list v; | |
5753 | va_start (v,p); | |
5754 | s = g (p, va_arg (v,int)); | |
5755 | va_end (v); | |
5756 | return s; | |
5757 | } | |
5758 | ||
5759 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5760 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5761 | These don't provoke an error unfortunately, instead are silently treated | |
5762 | as 'x'. The following induces an error, until -std is added to get | |
5763 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5764 | array size at least. It's necessary to write '\x00'==0 to get something | |
5765 | that's true only with -std. */ | |
5766 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5767 | ||
5768 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5769 | inside strings and character constants. */ | |
5770 | #define FOO(x) 'x' | |
5771 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5772 | ||
5773 | int test (int i, double x); | |
5774 | struct s1 {int (*f) (int a);}; | |
5775 | struct s2 {int (*f) (double a);}; | |
5776 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5777 | int argc; | |
5778 | char **argv; | |
5779 | int | |
5780 | main () | |
5781 | { | |
5782 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5783 | ; | |
5784 | return 0; | |
5785 | } | |
5786 | _ACEOF | |
5787 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5788 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5789 | do | |
5790 | CC_FOR_BUILD="$ac_save_CC $ac_arg" | |
5791 | if ac_fn_c_try_compile "$LINENO"; then : | |
5792 | ac_cv_prog_cc_c89=$ac_arg | |
5793 | fi | |
5794 | rm -f core conftest.err conftest.$ac_build_objext | |
5795 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5796 | done | |
5797 | rm -f conftest.$ac_ext | |
5798 | CC_FOR_BUILD=$ac_save_CC | |
5799 | ||
5800 | fi | |
5801 | # AC_CACHE_VAL | |
5802 | case "x$ac_cv_prog_cc_c89" in | |
5803 | x) | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5805 | $as_echo "none needed" >&6; } ;; | |
5806 | xno) | |
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5808 | $as_echo "unsupported" >&6; } ;; | |
5809 | *) | |
5810 | CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89" | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5812 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5813 | esac | |
5814 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5815 | ||
5816 | fi | |
5817 | ||
5818 | ac_ext=c | |
5819 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5820 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5821 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
5822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5823 | ||
5824 | ac_ext=c | |
5825 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5826 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5827 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
5828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 | |
5830 | $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } | |
5831 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5832 | $as_echo_n "(cached) " >&6 | |
5833 | else | |
5834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5835 | /* end confdefs.h. */ | |
5836 | ||
5837 | int | |
5838 | main () | |
5839 | { | |
5840 | ||
5841 | ; | |
5842 | return 0; | |
5843 | } | |
5844 | _ACEOF | |
5845 | # Make sure it works both with $CC and with simple cc. | |
5846 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5847 | # compilers refuse to overwrite an existing .o file with -o, | |
5848 | # though they will create one. | |
5849 | am_cv_prog_cc_c_o=yes | |
5850 | for am_i in 1 2; do | |
5851 | if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 | |
5852 | ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 | |
5853 | ac_status=$? | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5855 | (exit $ac_status); } \ | |
5856 | && test -f conftest2.$ac_build_objext; then | |
5857 | : OK | |
5858 | else | |
5859 | am_cv_prog_cc_c_o=no | |
5860 | break | |
5861 | fi | |
5862 | done | |
5863 | rm -f core conftest* | |
5864 | unset am_i | |
5865 | fi | |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5867 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5868 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5869 | # Losing compiler, so override with the script. | |
5870 | # FIXME: It is wrong to rewrite CC. | |
5871 | # But if we don't then we get into trouble of one sort or another. | |
5872 | # A longer-term fix would be to have automake use am__CC in this case, | |
5873 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5874 | CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" | |
5875 | fi | |
5876 | ac_ext=c | |
5877 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5878 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5879 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
5880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5881 | ||
5882 | ||
5883 | depcc="$CC_FOR_BUILD" am_compiler_list= | |
5884 | ||
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5886 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5887 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5891 | # We make a subdir and do the tests there. Otherwise we can end up | |
5892 | # making bogus files that we don't know about and never remove. For | |
5893 | # instance it was reported that on HP-UX the gcc test will end up | |
5894 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
5895 | # in D". | |
5896 | rm -rf conftest.dir | |
5897 | mkdir conftest.dir | |
5898 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5899 | # using a relative directory. | |
5900 | cp "$am_depcomp" conftest.dir | |
5901 | cd conftest.dir | |
5902 | # We will build objects and dependencies in a subdirectory because | |
5903 | # it helps to detect inapplicable dependency modes. For instance | |
5904 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5905 | # side effect of compilation, but ICC will put the dependencies in | |
5906 | # the current directory while Tru64 will put them in the object | |
5907 | # directory. | |
5908 | mkdir sub | |
5909 | ||
5910 | am_cv_CC_dependencies_compiler_type=none | |
5911 | if test "$am_compiler_list" = ""; then | |
5912 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5913 | fi | |
5914 | am__universal=false | |
5915 | case " $depcc " in #( | |
5916 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5917 | esac | |
5918 | ||
5919 | for depmode in $am_compiler_list; do | |
5920 | # Setup a source with many dependencies, because some compilers | |
5921 | # like to wrap large dependency lists on column 80 (with \), and | |
5922 | # we should not choose a depcomp mode which is confused by this. | |
5923 | # | |
5924 | # We need to recreate these files for each test, as the compiler may | |
5925 | # overwrite some of them when testing with obscure command lines. | |
5926 | # This happens at least with the AIX C compiler. | |
5927 | : > sub/conftest.c | |
5928 | for i in 1 2 3 4 5 6; do | |
5929 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5930 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
5931 | # Solaris 10 /bin/sh. | |
5932 | echo '/* dummy */' > sub/conftst$i.h | |
5933 | done | |
5934 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5935 | ||
5936 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
5937 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5938 | # handle '-M -o', and we need to detect this. Also, some Intel | |
5939 | # versions had trouble with output in subdirs. | |
5940 | am__obj=sub/conftest.${OBJEXT-o} | |
5941 | am__minus_obj="-o $am__obj" | |
5942 | case $depmode in | |
5943 | gcc) | |
5944 | # This depmode causes a compiler race in universal mode. | |
5945 | test "$am__universal" = false || continue | |
5946 | ;; | |
5947 | nosideeffect) | |
5948 | # After this tag, mechanisms are not by side-effect, so they'll | |
5949 | # only be used when explicitly requested. | |
5950 | if test "x$enable_dependency_tracking" = xyes; then | |
5951 | continue | |
5952 | else | |
5953 | break | |
5954 | fi | |
5955 | ;; | |
5956 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5957 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5958 | # not run yet. These depmodes are late enough in the game, and | |
5959 | # so weak that their functioning should not be impacted. | |
5960 | am__obj=conftest.${OBJEXT-o} | |
5961 | am__minus_obj= | |
5962 | ;; | |
5963 | none) break ;; | |
5964 | esac | |
5965 | if depmode=$depmode \ | |
5966 | source=sub/conftest.c object=$am__obj \ | |
5967 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5968 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5969 | >/dev/null 2>conftest.err && | |
5970 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5971 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5972 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5973 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5974 | # icc doesn't choke on unknown options, it will just issue warnings | |
5975 | # or remarks (even with -Werror). So we grep stderr for any message | |
5976 | # that says an option was ignored or not supported. | |
5977 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5978 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5979 | # The diagnosis changed in icc 8.0: | |
5980 | # icc: Command line remark: option '-MP' not supported | |
5981 | if (grep 'ignoring option' conftest.err || | |
5982 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5983 | am_cv_CC_dependencies_compiler_type=$depmode | |
5984 | break | |
5985 | fi | |
5986 | fi | |
5987 | done | |
5988 | ||
5989 | cd .. | |
5990 | rm -rf conftest.dir | |
5991 | else | |
5992 | am_cv_CC_dependencies_compiler_type=none | |
5993 | fi | |
5994 | ||
5995 | fi | |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5997 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5998 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5999 | ||
6000 | if | |
6001 | test "x$enable_dependency_tracking" != xno \ | |
6002 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6003 | am__fastdepCC_TRUE= | |
6004 | am__fastdepCC_FALSE='#' | |
6005 | else | |
6006 | am__fastdepCC_TRUE='#' | |
6007 | am__fastdepCC_FALSE= | |
6008 | fi | |
6009 | ||
6010 | ||
6011 | ac_ext=c | |
6012 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6013 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6014 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
6015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6017 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6018 | # On Suns, sometimes $CPP names a directory. | |
6019 | if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then | |
6020 | CPP_FOR_BUILD= | |
6021 | fi | |
6022 | if test -z "$CPP_FOR_BUILD"; then | |
6023 | if ${ac_cv_build_prog_CPP+:} false; then : | |
6024 | $as_echo_n "(cached) " >&6 | |
6025 | else | |
6026 | # Double quotes because CPP needs to be expanded | |
6027 | for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" | |
6028 | do | |
6029 | ac_preproc_ok=false | |
6030 | for ac_c_preproc_warn_flag in '' yes | |
6031 | do | |
6032 | # Use a header file that comes with gcc, so configuring glibc | |
6033 | # with a fresh cross-compiler works. | |
6034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6035 | # <limits.h> exists even on freestanding compilers. | |
6036 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6037 | # not just through cpp. "Syntax error" is here to catch this case. | |
6038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6039 | /* end confdefs.h. */ | |
6040 | #ifdef __STDC__ | |
6041 | # include <limits.h> | |
6042 | #else | |
6043 | # include <assert.h> | |
6044 | #endif | |
6045 | Syntax error | |
6046 | _ACEOF | |
6047 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6048 | ||
6049 | else | |
6050 | # Broken: fails on valid input. | |
6051 | continue | |
6052 | fi | |
6053 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6054 | ||
6055 | # OK, works on sane cases. Now check whether nonexistent headers | |
6056 | # can be detected and how. | |
6057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6058 | /* end confdefs.h. */ | |
6059 | #include <ac_nonexistent.h> | |
6060 | _ACEOF | |
6061 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6062 | # Broken: success on invalid input. | |
6063 | continue | |
6064 | else | |
6065 | # Passes both tests. | |
6066 | ac_preproc_ok=: | |
6067 | break | |
6068 | fi | |
6069 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6070 | ||
6071 | done | |
6072 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6073 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6074 | if $ac_preproc_ok; then : | |
6075 | break | |
6076 | fi | |
6077 | ||
6078 | done | |
6079 | ac_cv_build_prog_CPP=$CPP_FOR_BUILD | |
6080 | ||
6081 | fi | |
6082 | CPP_FOR_BUILD=$ac_cv_build_prog_CPP | |
6083 | else | |
6084 | ac_cv_build_prog_CPP=$CPP_FOR_BUILD | |
6085 | fi | |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 | |
6087 | $as_echo "$CPP_FOR_BUILD" >&6; } | |
6088 | ac_preproc_ok=false | |
6089 | for ac_c_preproc_warn_flag in '' yes | |
6090 | do | |
6091 | # Use a header file that comes with gcc, so configuring glibc | |
6092 | # with a fresh cross-compiler works. | |
6093 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6094 | # <limits.h> exists even on freestanding compilers. | |
6095 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6096 | # not just through cpp. "Syntax error" is here to catch this case. | |
6097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6098 | /* end confdefs.h. */ | |
6099 | #ifdef __STDC__ | |
6100 | # include <limits.h> | |
6101 | #else | |
6102 | # include <assert.h> | |
6103 | #endif | |
6104 | Syntax error | |
6105 | _ACEOF | |
6106 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6107 | ||
6108 | else | |
6109 | # Broken: fails on valid input. | |
6110 | continue | |
6111 | fi | |
6112 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6113 | ||
6114 | # OK, works on sane cases. Now check whether nonexistent headers | |
6115 | # can be detected and how. | |
6116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6117 | /* end confdefs.h. */ | |
6118 | #include <ac_nonexistent.h> | |
6119 | _ACEOF | |
6120 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6121 | # Broken: success on invalid input. | |
6122 | continue | |
6123 | else | |
6124 | # Passes both tests. | |
6125 | ac_preproc_ok=: | |
6126 | break | |
6127 | fi | |
6128 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6129 | ||
6130 | done | |
6131 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6132 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6133 | if $ac_preproc_ok; then : | |
6134 | ||
6135 | else | |
6136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6138 | as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check | |
6139 | See \`config.log' for more details" "$LINENO" 5; } | |
6140 | fi | |
6141 | ||
6142 | ac_ext=c | |
6143 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6144 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6145 | ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' | |
6146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6147 | ||
6148 | ||
6149 | ||
6150 | ac_tool_prefix=$save_ac_tool_prefix | |
6151 | cross_compiling=$save_cross_compiling | |
6152 | ||
6153 | ||
6154 | BUILD_EXEEXT=$ac_build_exeext | |
6155 | BUILD_OBJEXT=$ac_build_objext | |
6156 | ||
6157 | ac_ext=cpp | |
6158 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6159 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6160 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6161 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6163 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6164 | if test -z "$CXXCPP"; then | |
6165 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
6166 | $as_echo_n "(cached) " >&6 | |
6167 | else | |
6168 | # Double quotes because CXXCPP needs to be expanded | |
6169 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6170 | do | |
6171 | ac_preproc_ok=false | |
6172 | for ac_cxx_preproc_warn_flag in '' yes | |
6173 | do | |
6174 | # Use a header file that comes with gcc, so configuring glibc | |
6175 | # with a fresh cross-compiler works. | |
6176 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6177 | # <limits.h> exists even on freestanding compilers. | |
6178 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6179 | # not just through cpp. "Syntax error" is here to catch this case. | |
6180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6181 | /* end confdefs.h. */ | |
6182 | #ifdef __STDC__ | |
6183 | # include <limits.h> | |
6184 | #else | |
6185 | # include <assert.h> | |
6186 | #endif | |
6187 | Syntax error | |
6188 | _ACEOF | |
6189 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6190 | ||
6191 | else | |
6192 | # Broken: fails on valid input. | |
6193 | continue | |
6194 | fi | |
6195 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6196 | ||
6197 | # OK, works on sane cases. Now check whether nonexistent headers | |
6198 | # can be detected and how. | |
6199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6200 | /* end confdefs.h. */ | |
6201 | #include <ac_nonexistent.h> | |
6202 | _ACEOF | |
6203 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6204 | # Broken: success on invalid input. | |
6205 | continue | |
6206 | else | |
6207 | # Passes both tests. | |
6208 | ac_preproc_ok=: | |
6209 | break | |
6210 | fi | |
6211 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6212 | ||
6213 | done | |
6214 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6215 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6216 | if $ac_preproc_ok; then : | |
6217 | break | |
6218 | fi | |
6219 | ||
6220 | done | |
6221 | ac_cv_prog_CXXCPP=$CXXCPP | |
6222 | ||
6223 | fi | |
6224 | CXXCPP=$ac_cv_prog_CXXCPP | |
6225 | else | |
6226 | ac_cv_prog_CXXCPP=$CXXCPP | |
6227 | fi | |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6229 | $as_echo "$CXXCPP" >&6; } | |
6230 | ac_preproc_ok=false | |
6231 | for ac_cxx_preproc_warn_flag in '' yes | |
6232 | do | |
6233 | # Use a header file that comes with gcc, so configuring glibc | |
6234 | # with a fresh cross-compiler works. | |
6235 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6236 | # <limits.h> exists even on freestanding compilers. | |
6237 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6238 | # not just through cpp. "Syntax error" is here to catch this case. | |
6239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6240 | /* end confdefs.h. */ | |
6241 | #ifdef __STDC__ | |
6242 | # include <limits.h> | |
6243 | #else | |
6244 | # include <assert.h> | |
6245 | #endif | |
6246 | Syntax error | |
6247 | _ACEOF | |
6248 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6249 | ||
6250 | else | |
6251 | # Broken: fails on valid input. | |
6252 | continue | |
6253 | fi | |
6254 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6255 | ||
6256 | # OK, works on sane cases. Now check whether nonexistent headers | |
6257 | # can be detected and how. | |
6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6259 | /* end confdefs.h. */ | |
6260 | #include <ac_nonexistent.h> | |
6261 | _ACEOF | |
6262 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6263 | # Broken: success on invalid input. | |
6264 | continue | |
6265 | else | |
6266 | # Passes both tests. | |
6267 | ac_preproc_ok=: | |
6268 | break | |
6269 | fi | |
6270 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6271 | ||
6272 | done | |
6273 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6274 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6275 | if $ac_preproc_ok; then : | |
6276 | ||
6277 | else | |
6278 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6280 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6281 | See \`config.log' for more details" "$LINENO" 5; } | |
6282 | fi | |
6283 | ||
6284 | ac_ext=c | |
6285 | ac_cpp='$CPP $CPPFLAGS' | |
6286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6289 | ||
6290 | ||
6291 | ||
6292 | save_cross_compiling=$cross_compiling | |
6293 | save_ac_tool_prefix=$ac_tool_prefix | |
6294 | cross_compiling=no | |
6295 | ac_tool_prefix= | |
6296 | ||
6297 | ac_ext=cpp | |
6298 | ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6299 | ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6300 | ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6301 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6302 | if test -z "$CXX_FOR_BUILD"; then | |
6303 | if test -n "$CCC"; then | |
6304 | CXX_FOR_BUILD=$CCC | |
6305 | else | |
6306 | if test -n "$ac_tool_prefix"; then | |
6307 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6308 | do | |
6309 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6310 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6312 | $as_echo_n "checking for $ac_word... " >&6; } | |
6313 | if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then : | |
6314 | $as_echo_n "(cached) " >&6 | |
6315 | else | |
6316 | if test -n "$CXX_FOR_BUILD"; then | |
6317 | ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test. | |
6318 | else | |
6319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6320 | for as_dir in $PATH | |
6321 | do | |
6322 | IFS=$as_save_IFS | |
6323 | test -z "$as_dir" && as_dir=. | |
6324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6326 | ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog" | |
6327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6328 | break 2 | |
6329 | fi | |
6330 | done | |
6331 | done | |
6332 | IFS=$as_save_IFS | |
6333 | ||
6334 | fi | |
6335 | fi | |
6336 | CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD | |
6337 | if test -n "$CXX_FOR_BUILD"; then | |
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5 | |
6339 | $as_echo "$CXX_FOR_BUILD" >&6; } | |
6340 | else | |
6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6342 | $as_echo "no" >&6; } | |
6343 | fi | |
6344 | ||
6345 | ||
6346 | test -n "$CXX_FOR_BUILD" && break | |
6347 | done | |
6348 | fi | |
6349 | if test -z "$CXX_FOR_BUILD"; then | |
6350 | ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD | |
6351 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6352 | do | |
6353 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6354 | set dummy $ac_prog; ac_word=$2 | |
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6356 | $as_echo_n "checking for $ac_word... " >&6; } | |
6357 | if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then : | |
6358 | $as_echo_n "(cached) " >&6 | |
6359 | else | |
6360 | if test -n "$ac_ct_CXX_FOR_BUILD"; then | |
6361 | ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test. | |
6362 | else | |
6363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6364 | for as_dir in $PATH | |
6365 | do | |
6366 | IFS=$as_save_IFS | |
6367 | test -z "$as_dir" && as_dir=. | |
6368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6370 | ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog" | |
6371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6372 | break 2 | |
6373 | fi | |
6374 | done | |
6375 | done | |
6376 | IFS=$as_save_IFS | |
6377 | ||
6378 | fi | |
6379 | fi | |
6380 | ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD | |
6381 | if test -n "$ac_ct_CXX_FOR_BUILD"; then | |
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5 | |
6383 | $as_echo "$ac_ct_CXX_FOR_BUILD" >&6; } | |
6384 | else | |
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6386 | $as_echo "no" >&6; } | |
6387 | fi | |
6388 | ||
6389 | ||
6390 | test -n "$ac_ct_CXX_FOR_BUILD" && break | |
6391 | done | |
6392 | ||
6393 | if test "x$ac_ct_CXX_FOR_BUILD" = x; then | |
6394 | CXX_FOR_BUILD="g++" | |
6395 | else | |
6396 | case $cross_compiling:$ac_tool_warned in | |
6397 | yes:) | |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
6399 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
6400 | ac_tool_warned=yes ;; | |
6401 | esac | |
6402 | CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD | |
6403 | fi | |
6404 | fi | |
6405 | ||
6406 | fi | |
6407 | fi | |
6408 | # Provide some information about the compiler. | |
6409 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
6410 | set X $ac_build_compile | |
6411 | ac_compiler=$2 | |
6412 | for ac_option in --version -v -V -qversion; do | |
6413 | { { ac_try="$ac_compiler $ac_option >&5" | |
6414 | case "(($ac_try" in | |
6415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6416 | *) ac_try_echo=$ac_try;; | |
6417 | esac | |
6418 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6419 | $as_echo "$ac_try_echo"; } >&5 | |
6420 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6421 | ac_status=$? | |
6422 | if test -s conftest.err; then | |
6423 | sed '10a\ | |
6424 | ... rest of stderr output deleted ... | |
6425 | 10q' conftest.err >conftest.er1 | |
6426 | cat conftest.er1 >&5 | |
6427 | fi | |
6428 | rm -f conftest.er1 conftest.err | |
6429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6430 | test $ac_status = 0; } | |
6431 | done | |
6432 | ||
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
6434 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
6435 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
6436 | $as_echo_n "(cached) " >&6 | |
6437 | else | |
6438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6439 | /* end confdefs.h. */ | |
6440 | ||
6441 | int | |
6442 | main () | |
6443 | { | |
6444 | #ifndef __GNUC__ | |
6445 | choke me | |
6446 | #endif | |
6447 | ||
6448 | ; | |
6449 | return 0; | |
6450 | } | |
6451 | _ACEOF | |
6452 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6453 | ac_compiler_gnu=yes | |
6454 | else | |
6455 | ac_compiler_gnu=no | |
6456 | fi | |
6457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6458 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
6459 | ||
6460 | fi | |
6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
6462 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
6463 | if test $ac_compiler_gnu = yes; then | |
6464 | GXX=yes | |
6465 | else | |
6466 | GXX= | |
6467 | fi | |
6468 | ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set} | |
6469 | ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD | |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5 | |
6471 | $as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; } | |
6472 | if ${ac_cv_build_prog_cxx_g+:} false; then : | |
6473 | $as_echo_n "(cached) " >&6 | |
6474 | else | |
6475 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
6476 | ac_cxx_werror_flag=yes | |
6477 | ac_cv_build_prog_cxx_g=no | |
6478 | CXXFLAGS_FOR_BUILD="-g" | |
6479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6480 | /* end confdefs.h. */ | |
6481 | ||
6482 | int | |
6483 | main () | |
6484 | { | |
6485 | ||
6486 | ; | |
6487 | return 0; | |
6488 | } | |
6489 | _ACEOF | |
6490 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6491 | ac_cv_build_prog_cxx_g=yes | |
6492 | else | |
6493 | CXXFLAGS_FOR_BUILD="" | |
6494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6495 | /* end confdefs.h. */ | |
6496 | ||
6497 | int | |
6498 | main () | |
6499 | { | |
6500 | ||
6501 | ; | |
6502 | return 0; | |
6503 | } | |
6504 | _ACEOF | |
6505 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6506 | ||
6507 | else | |
6508 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6509 | CXXFLAGS_FOR_BUILD="-g" | |
6510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6511 | /* end confdefs.h. */ | |
6512 | ||
6513 | int | |
6514 | main () | |
6515 | { | |
6516 | ||
6517 | ; | |
6518 | return 0; | |
6519 | } | |
6520 | _ACEOF | |
6521 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6522 | ac_cv_build_prog_cxx_g=yes | |
6523 | fi | |
6524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6525 | fi | |
6526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6527 | fi | |
6528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6529 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6530 | fi | |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5 | |
6532 | $as_echo "$ac_cv_build_prog_cxx_g" >&6; } | |
6533 | if test "$ac_test_CXXFLAGS" = set; then | |
6534 | CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS | |
6535 | elif test $ac_cv_build_prog_cxx_g = yes; then | |
6536 | if test "$GXX" = yes; then | |
6537 | CXXFLAGS_FOR_BUILD="-g -O2" | |
6538 | else | |
6539 | CXXFLAGS_FOR_BUILD="-g" | |
6540 | fi | |
6541 | else | |
6542 | if test "$GXX" = yes; then | |
6543 | CXXFLAGS_FOR_BUILD="-O2" | |
6544 | else | |
6545 | CXXFLAGS_FOR_BUILD= | |
6546 | fi | |
6547 | fi | |
6548 | ac_ext=c | |
6549 | ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' | |
6550 | ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6551 | ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6553 | ||
6554 | depcc="$CXX_FOR_BUILD" am_compiler_list= | |
6555 | ||
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6557 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
6558 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
6559 | $as_echo_n "(cached) " >&6 | |
6560 | else | |
6561 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6562 | # We make a subdir and do the tests there. Otherwise we can end up | |
6563 | # making bogus files that we don't know about and never remove. For | |
6564 | # instance it was reported that on HP-UX the gcc test will end up | |
6565 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
6566 | # in D". | |
6567 | rm -rf conftest.dir | |
6568 | mkdir conftest.dir | |
6569 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6570 | # using a relative directory. | |
6571 | cp "$am_depcomp" conftest.dir | |
6572 | cd conftest.dir | |
6573 | # We will build objects and dependencies in a subdirectory because | |
6574 | # it helps to detect inapplicable dependency modes. For instance | |
6575 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6576 | # side effect of compilation, but ICC will put the dependencies in | |
6577 | # the current directory while Tru64 will put them in the object | |
6578 | # directory. | |
6579 | mkdir sub | |
6580 | ||
6581 | am_cv_CXX_dependencies_compiler_type=none | |
6582 | if test "$am_compiler_list" = ""; then | |
6583 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6584 | fi | |
6585 | am__universal=false | |
6586 | case " $depcc " in #( | |
6587 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6588 | esac | |
6589 | ||
6590 | for depmode in $am_compiler_list; do | |
6591 | # Setup a source with many dependencies, because some compilers | |
6592 | # like to wrap large dependency lists on column 80 (with \), and | |
6593 | # we should not choose a depcomp mode which is confused by this. | |
6594 | # | |
6595 | # We need to recreate these files for each test, as the compiler may | |
6596 | # overwrite some of them when testing with obscure command lines. | |
6597 | # This happens at least with the AIX C compiler. | |
6598 | : > sub/conftest.c | |
6599 | for i in 1 2 3 4 5 6; do | |
6600 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6601 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
6602 | # Solaris 10 /bin/sh. | |
6603 | echo '/* dummy */' > sub/conftst$i.h | |
6604 | done | |
6605 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6606 | ||
6607 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
6608 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6609 | # handle '-M -o', and we need to detect this. Also, some Intel | |
6610 | # versions had trouble with output in subdirs. | |
6611 | am__obj=sub/conftest.${OBJEXT-o} | |
6612 | am__minus_obj="-o $am__obj" | |
6613 | case $depmode in | |
6614 | gcc) | |
6615 | # This depmode causes a compiler race in universal mode. | |
6616 | test "$am__universal" = false || continue | |
6617 | ;; | |
6618 | nosideeffect) | |
6619 | # After this tag, mechanisms are not by side-effect, so they'll | |
6620 | # only be used when explicitly requested. | |
6621 | if test "x$enable_dependency_tracking" = xyes; then | |
6622 | continue | |
6623 | else | |
6624 | break | |
6625 | fi | |
6626 | ;; | |
6627 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
6628 | # This compiler won't grok '-c -o', but also, the minuso test has | |
6629 | # not run yet. These depmodes are late enough in the game, and | |
6630 | # so weak that their functioning should not be impacted. | |
6631 | am__obj=conftest.${OBJEXT-o} | |
6632 | am__minus_obj= | |
6633 | ;; | |
6634 | none) break ;; | |
6635 | esac | |
6636 | if depmode=$depmode \ | |
6637 | source=sub/conftest.c object=$am__obj \ | |
6638 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6639 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6640 | >/dev/null 2>conftest.err && | |
6641 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6642 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6643 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6644 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6645 | # icc doesn't choke on unknown options, it will just issue warnings | |
6646 | # or remarks (even with -Werror). So we grep stderr for any message | |
6647 | # that says an option was ignored or not supported. | |
6648 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6649 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6650 | # The diagnosis changed in icc 8.0: | |
6651 | # icc: Command line remark: option '-MP' not supported | |
6652 | if (grep 'ignoring option' conftest.err || | |
6653 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6654 | am_cv_CXX_dependencies_compiler_type=$depmode | |
6655 | break | |
6656 | fi | |
6657 | fi | |
6658 | done | |
6659 | ||
6660 | cd .. | |
6661 | rm -rf conftest.dir | |
6662 | else | |
6663 | am_cv_CXX_dependencies_compiler_type=none | |
6664 | fi | |
6665 | ||
6666 | fi | |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
6668 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
6669 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
6670 | ||
6671 | if | |
6672 | test "x$enable_dependency_tracking" != xno \ | |
6673 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
6674 | am__fastdepCXX_TRUE= | |
6675 | am__fastdepCXX_FALSE='#' | |
6676 | else | |
6677 | am__fastdepCXX_TRUE='#' | |
6678 | am__fastdepCXX_FALSE= | |
6679 | fi | |
6680 | ||
6681 | ||
6682 | ac_ext=cpp | |
6683 | ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6684 | ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6685 | ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6686 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6688 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6689 | if test -z "$CXXCPP_FOR_BUILD"; then | |
6690 | if ${ac_cv_build_prog_CXXCPP+:} false; then : | |
6691 | $as_echo_n "(cached) " >&6 | |
6692 | else | |
6693 | # Double quotes because CXXCPP needs to be expanded | |
6694 | for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp" | |
6695 | do | |
6696 | ac_preproc_ok=false | |
6697 | for ac_cxx_preproc_warn_flag in '' yes | |
6698 | do | |
6699 | # Use a header file that comes with gcc, so configuring glibc | |
6700 | # with a fresh cross-compiler works. | |
6701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6702 | # <limits.h> exists even on freestanding compilers. | |
6703 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6704 | # not just through cpp. "Syntax error" is here to catch this case. | |
6705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6706 | /* end confdefs.h. */ | |
6707 | #ifdef __STDC__ | |
6708 | # include <limits.h> | |
6709 | #else | |
6710 | # include <assert.h> | |
6711 | #endif | |
6712 | Syntax error | |
6713 | _ACEOF | |
6714 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6715 | ||
6716 | else | |
6717 | # Broken: fails on valid input. | |
6718 | continue | |
6719 | fi | |
6720 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6721 | ||
6722 | # OK, works on sane cases. Now check whether nonexistent headers | |
6723 | # can be detected and how. | |
6724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6725 | /* end confdefs.h. */ | |
6726 | #include <ac_nonexistent.h> | |
6727 | _ACEOF | |
6728 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6729 | # Broken: success on invalid input. | |
6730 | continue | |
6731 | else | |
6732 | # Passes both tests. | |
6733 | ac_preproc_ok=: | |
6734 | break | |
6735 | fi | |
6736 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6737 | ||
6738 | done | |
6739 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6740 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6741 | if $ac_preproc_ok; then : | |
6742 | break | |
6743 | fi | |
6744 | ||
6745 | done | |
6746 | ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD | |
6747 | ||
6748 | fi | |
6749 | CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP | |
6750 | else | |
6751 | ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD | |
6752 | fi | |
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5 | |
6754 | $as_echo "$CXXCPP_FOR_BUILD" >&6; } | |
6755 | ac_preproc_ok=false | |
6756 | for ac_cxx_preproc_warn_flag in '' yes | |
6757 | do | |
6758 | # Use a header file that comes with gcc, so configuring glibc | |
6759 | # with a fresh cross-compiler works. | |
6760 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6761 | # <limits.h> exists even on freestanding compilers. | |
6762 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6763 | # not just through cpp. "Syntax error" is here to catch this case. | |
6764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6765 | /* end confdefs.h. */ | |
6766 | #ifdef __STDC__ | |
6767 | # include <limits.h> | |
6768 | #else | |
6769 | # include <assert.h> | |
6770 | #endif | |
6771 | Syntax error | |
6772 | _ACEOF | |
6773 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6774 | ||
6775 | else | |
6776 | # Broken: fails on valid input. | |
6777 | continue | |
6778 | fi | |
6779 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6780 | ||
6781 | # OK, works on sane cases. Now check whether nonexistent headers | |
6782 | # can be detected and how. | |
6783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6784 | /* end confdefs.h. */ | |
6785 | #include <ac_nonexistent.h> | |
6786 | _ACEOF | |
6787 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6788 | # Broken: success on invalid input. | |
6789 | continue | |
6790 | else | |
6791 | # Passes both tests. | |
6792 | ac_preproc_ok=: | |
6793 | break | |
6794 | fi | |
6795 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6796 | ||
6797 | done | |
6798 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6799 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6800 | if $ac_preproc_ok; then : | |
6801 | ||
6802 | else | |
6803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6805 | as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check | |
6806 | See \`config.log' for more details" "$LINENO" 5; } | |
6807 | fi | |
6808 | ||
6809 | ac_ext=c | |
6810 | ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' | |
6811 | ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6812 | ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6814 | ||
6815 | ||
6816 | ac_tool_prefix=$save_ac_tool_prefix | |
6817 | cross_compiling=$save_cross_compiling | |
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | if test -n "$ac_tool_prefix"; then | |
6824 | for ac_prog in ar lib "link -lib" | |
6825 | do | |
6826 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6827 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6829 | $as_echo_n "checking for $ac_word... " >&6; } | |
6830 | if ${ac_cv_prog_AR+:} false; then : | |
6831 | $as_echo_n "(cached) " >&6 | |
6832 | else | |
6833 | if test -n "$AR"; then | |
6834 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6835 | else | |
6836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6837 | for as_dir in $PATH | |
6838 | do | |
6839 | IFS=$as_save_IFS | |
6840 | test -z "$as_dir" && as_dir=. | |
6841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6843 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6845 | break 2 | |
6846 | fi | |
6847 | done | |
6848 | done | |
6849 | IFS=$as_save_IFS | |
6850 | ||
6851 | fi | |
6852 | fi | |
6853 | AR=$ac_cv_prog_AR | |
6854 | if test -n "$AR"; then | |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6856 | $as_echo "$AR" >&6; } | |
6857 | else | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6859 | $as_echo "no" >&6; } | |
6860 | fi | |
6861 | ||
6862 | ||
6863 | test -n "$AR" && break | |
6864 | done | |
a243b558 JF |
6865 | fi |
6866 | if test -z "$AR"; then | |
6867 | ac_ct_AR=$AR | |
6868 | for ac_prog in ar lib "link -lib" | |
6869 | do | |
6870 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6871 | set dummy $ac_prog; ac_word=$2 | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6873 | $as_echo_n "checking for $ac_word... " >&6; } | |
6874 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6875 | $as_echo_n "(cached) " >&6 | |
6876 | else | |
6877 | if test -n "$ac_ct_AR"; then | |
6878 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6879 | else | |
6880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6881 | for as_dir in $PATH | |
6882 | do | |
6883 | IFS=$as_save_IFS | |
6884 | test -z "$as_dir" && as_dir=. | |
6885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6887 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6889 | break 2 | |
6890 | fi | |
6891 | done | |
6892 | done | |
6893 | IFS=$as_save_IFS | |
6894 | ||
6895 | fi | |
6896 | fi | |
6897 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6898 | if test -n "$ac_ct_AR"; then | |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6900 | $as_echo "$ac_ct_AR" >&6; } | |
6901 | else | |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6903 | $as_echo "no" >&6; } | |
6904 | fi | |
6905 | ||
6906 | ||
6907 | test -n "$ac_ct_AR" && break | |
6908 | done | |
6909 | ||
6910 | if test "x$ac_ct_AR" = x; then | |
6911 | AR="false" | |
9c60689e DWT |
6912 | else |
6913 | case $cross_compiling:$ac_tool_warned in | |
6914 | yes:) | |
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6916 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6917 | ac_tool_warned=yes ;; | |
35fa52c0 | 6918 | esac |
a243b558 | 6919 | AR=$ac_ct_AR |
9c60689e | 6920 | fi |
a243b558 JF |
6921 | fi |
6922 | ||
6923 | : ${AR=ar} | |
6924 | ||
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
6926 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
6927 | if ${am_cv_ar_interface+:} false; then : | |
6928 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6929 | else |
a93f15c0 JF |
6930 | ac_ext=c |
6931 | ac_cpp='$CPP $CPPFLAGS' | |
6932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6935 | ||
6936 | am_cv_ar_interface=ar | |
a243b558 JF |
6937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6938 | /* end confdefs.h. */ | |
6939 | int some_variable = 0; | |
6940 | _ACEOF | |
6941 | if ac_fn_c_try_compile "$LINENO"; then : | |
6942 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
6943 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
6944 | (eval $am_ar_try) 2>&5 | |
6945 | ac_status=$? | |
6946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6947 | test $ac_status = 0; } | |
6948 | if test "$ac_status" -eq 0; then | |
6949 | am_cv_ar_interface=ar | |
6950 | else | |
6951 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
6952 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
6953 | (eval $am_ar_try) 2>&5 | |
6954 | ac_status=$? | |
6955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6956 | test $ac_status = 0; } | |
6957 | if test "$ac_status" -eq 0; then | |
6958 | am_cv_ar_interface=lib | |
6959 | else | |
6960 | am_cv_ar_interface=unknown | |
6961 | fi | |
6962 | fi | |
6963 | rm -f conftest.lib libconftest.a | |
6964 | ||
35fa52c0 | 6965 | fi |
a243b558 | 6966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
6967 | ac_ext=c |
6968 | ac_cpp='$CPP $CPPFLAGS' | |
6969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 6972 | |
a243b558 JF |
6973 | fi |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
6975 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 6976 | |
a243b558 JF |
6977 | case $am_cv_ar_interface in |
6978 | ar) | |
6979 | ;; | |
6980 | lib) | |
6981 | # Microsoft lib, so override with the ar-lib wrapper script. | |
6982 | # FIXME: It is wrong to rewrite AR. | |
6983 | # But if we don't then we get into trouble of one sort or another. | |
6984 | # A longer-term fix would be to have automake use am__AR in this case, | |
6985 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
6986 | # similar. | |
6987 | AR="$am_aux_dir/ar-lib $AR" | |
6988 | ;; | |
6989 | unknown) | |
6990 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
6991 | ;; | |
6992 | esac | |
35fa52c0 | 6993 | |
35fa52c0 | 6994 | |
35fa52c0 | 6995 | |
a243b558 JF |
6996 | case `pwd` in |
6997 | *\ * | *\ *) | |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6999 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
7000 | esac | |
35fa52c0 DWT |
7001 | |
7002 | ||
7003 | ||
9d54db95 JF |
7004 | macro_version='2.4.6' |
7005 | macro_revision='2.4.6' | |
35fa52c0 DWT |
7006 | |
7007 | ||
7008 | ||
7009 | ||
7010 | ||
7011 | ||
7012 | ||
7013 | ||
7014 | ||
8d20f0f1 JF |
7015 | |
7016 | ||
7017 | ||
7018 | ||
7019 | ltmain=$ac_aux_dir/ltmain.sh | |
7020 | ||
a243b558 JF |
7021 | # Backslashify metacharacters that are still active within |
7022 | # double-quoted strings. | |
7023 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 7024 | |
a243b558 JF |
7025 | # Same as above, but do not quote variable references. |
7026 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 7027 | |
a243b558 JF |
7028 | # Sed substitution to delay expansion of an escaped shell variable in a |
7029 | # double_quote_subst'ed string. | |
7030 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 7031 | |
a243b558 JF |
7032 | # Sed substitution to delay expansion of an escaped single quote. |
7033 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 7034 | |
a243b558 JF |
7035 | # Sed substitution to avoid accidental globbing in evaled expressions |
7036 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 7037 | |
a243b558 JF |
7038 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
7039 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
7040 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 7041 | |
a243b558 JF |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
7043 | $as_echo_n "checking how to print strings... " >&6; } | |
7044 | # Test print first, because it will be a builtin if present. | |
7045 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
7046 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
7047 | ECHO='print -r --' | |
7048 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
7049 | ECHO='printf %s\n' | |
7050 | else | |
7051 | # Use this function as a fallback that always works. | |
7052 | func_fallback_echo () | |
7053 | { | |
7054 | eval 'cat <<_LTECHO_EOF | |
7055 | $1 | |
7056 | _LTECHO_EOF' | |
7057 | } | |
7058 | ECHO='func_fallback_echo' | |
ee134472 JF |
7059 | fi |
7060 | ||
a243b558 JF |
7061 | # func_echo_all arg... |
7062 | # Invoke $ECHO with all args, space-separated. | |
7063 | func_echo_all () | |
7064 | { | |
7065 | $ECHO "" | |
7066 | } | |
35fa52c0 | 7067 | |
9d54db95 | 7068 | case $ECHO in |
a243b558 JF |
7069 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
7070 | $as_echo "printf" >&6; } ;; | |
7071 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
7072 | $as_echo "print -r" >&6; } ;; | |
7073 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
7074 | $as_echo "cat" >&6; } ;; | |
7075 | esac | |
35fa52c0 | 7076 | |
35fa52c0 | 7077 | |
ee134472 JF |
7078 | |
7079 | ||
7080 | ||
7081 | ||
7082 | ||
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | ||
35fa52c0 | 7088 | |
9c60689e | 7089 | |
a243b558 JF |
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
7091 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
7092 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
7093 | $as_echo_n "(cached) " >&6 |
7094 | else | |
a243b558 JF |
7095 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
7096 | for ac_i in 1 2 3 4 5 6 7; do | |
7097 | ac_script="$ac_script$as_nl$ac_script" | |
7098 | done | |
7099 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
7100 | { ac_script=; unset ac_script;} | |
7101 | if test -z "$SED"; then | |
7102 | ac_path_SED_found=false | |
7103 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
7105 | for as_dir in $PATH |
7106 | do | |
7107 | IFS=$as_save_IFS | |
7108 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7109 | for ac_prog in sed gsed; do |
9c60689e | 7110 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7111 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
7112 | as_fn_executable_p "$ac_path_SED" || continue | |
7113 | # Check for GNU ac_path_SED and select it if it is found. | |
7114 | # Check for GNU $ac_path_SED | |
7115 | case `"$ac_path_SED" --version 2>&1` in | |
7116 | *GNU*) | |
7117 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
7118 | *) | |
7119 | ac_count=0 | |
7120 | $as_echo_n 0123456789 >"conftest.in" | |
7121 | while : | |
7122 | do | |
7123 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7124 | mv "conftest.tmp" "conftest.in" | |
7125 | cp "conftest.in" "conftest.nl" | |
7126 | $as_echo '' >> "conftest.nl" | |
7127 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7128 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7129 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7130 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
7131 | # Best one so far, save it but keep looking for a better one | |
7132 | ac_cv_path_SED="$ac_path_SED" | |
7133 | ac_path_SED_max=$ac_count | |
7134 | fi | |
7135 | # 10*(2^10) chars as input seems more than enough | |
7136 | test $ac_count -gt 10 && break | |
35fa52c0 | 7137 | done |
a243b558 JF |
7138 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7139 | esac | |
9c60689e | 7140 | |
a243b558 JF |
7141 | $ac_path_SED_found && break 3 |
7142 | done | |
7143 | done | |
9c60689e DWT |
7144 | done |
7145 | IFS=$as_save_IFS | |
a243b558 JF |
7146 | if test -z "$ac_cv_path_SED"; then |
7147 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
7148 | fi |
7149 | else | |
a243b558 | 7150 | ac_cv_path_SED=$SED |
9c60689e DWT |
7151 | fi |
7152 | ||
a243b558 JF |
7153 | fi |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
7155 | $as_echo "$ac_cv_path_SED" >&6; } | |
7156 | SED="$ac_cv_path_SED" | |
7157 | rm -f conftest.sed | |
9c60689e | 7158 | |
a243b558 JF |
7159 | test -z "$SED" && SED=sed |
7160 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 7161 | |
ee134472 | 7162 | |
ee134472 | 7163 | |
9c60689e DWT |
7164 | |
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
a243b558 JF |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
7173 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7174 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
7175 | $as_echo_n "(cached) " >&6 |
7176 | else | |
a243b558 JF |
7177 | if test -z "$GREP"; then |
7178 | ac_path_GREP_found=false | |
7179 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7181 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
7182 | do |
7183 | IFS=$as_save_IFS | |
7184 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7185 | for ac_prog in grep ggrep; do |
9c60689e | 7186 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7187 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
7188 | as_fn_executable_p "$ac_path_GREP" || continue | |
7189 | # Check for GNU ac_path_GREP and select it if it is found. | |
7190 | # Check for GNU $ac_path_GREP | |
7191 | case `"$ac_path_GREP" --version 2>&1` in | |
7192 | *GNU*) | |
7193 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7194 | *) | |
7195 | ac_count=0 | |
7196 | $as_echo_n 0123456789 >"conftest.in" | |
7197 | while : | |
7198 | do | |
7199 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7200 | mv "conftest.tmp" "conftest.in" | |
7201 | cp "conftest.in" "conftest.nl" | |
7202 | $as_echo 'GREP' >> "conftest.nl" | |
7203 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7204 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7205 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7206 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7207 | # Best one so far, save it but keep looking for a better one | |
7208 | ac_cv_path_GREP="$ac_path_GREP" | |
7209 | ac_path_GREP_max=$ac_count | |
7210 | fi | |
7211 | # 10*(2^10) chars as input seems more than enough | |
7212 | test $ac_count -gt 10 && break | |
7213 | done | |
7214 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7215 | esac | |
9c60689e | 7216 | |
a243b558 JF |
7217 | $ac_path_GREP_found && break 3 |
7218 | done | |
ee134472 | 7219 | done |
a243b558 JF |
7220 | done |
7221 | IFS=$as_save_IFS | |
7222 | if test -z "$ac_cv_path_GREP"; then | |
7223 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7224 | fi | |
7225 | else | |
7226 | ac_cv_path_GREP=$GREP | |
9c60689e | 7227 | fi |
a243b558 JF |
7228 | |
7229 | fi | |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
7231 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7232 | GREP="$ac_cv_path_GREP" | |
7233 | ||
7234 | ||
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
7236 | $as_echo_n "checking for egrep... " >&6; } | |
7237 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
7238 | $as_echo_n "(cached) " >&6 |
7239 | else | |
a243b558 JF |
7240 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
7241 | then ac_cv_path_EGREP="$GREP -E" | |
7242 | else | |
7243 | if test -z "$EGREP"; then | |
7244 | ac_path_EGREP_found=false | |
7245 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7247 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
7248 | do |
7249 | IFS=$as_save_IFS | |
7250 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7251 | for ac_prog in egrep; do |
9c60689e | 7252 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7253 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
7254 | as_fn_executable_p "$ac_path_EGREP" || continue | |
7255 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7256 | # Check for GNU $ac_path_EGREP | |
7257 | case `"$ac_path_EGREP" --version 2>&1` in | |
7258 | *GNU*) | |
7259 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
7260 | *) | |
7261 | ac_count=0 | |
7262 | $as_echo_n 0123456789 >"conftest.in" | |
7263 | while : | |
7264 | do | |
7265 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7266 | mv "conftest.tmp" "conftest.in" | |
7267 | cp "conftest.in" "conftest.nl" | |
7268 | $as_echo 'EGREP' >> "conftest.nl" | |
7269 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7270 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7271 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7272 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
7273 | # Best one so far, save it but keep looking for a better one | |
7274 | ac_cv_path_EGREP="$ac_path_EGREP" | |
7275 | ac_path_EGREP_max=$ac_count | |
7276 | fi | |
7277 | # 10*(2^10) chars as input seems more than enough | |
7278 | test $ac_count -gt 10 && break | |
9c60689e | 7279 | done |
a243b558 JF |
7280 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7281 | esac | |
9c60689e | 7282 | |
a243b558 JF |
7283 | $ac_path_EGREP_found && break 3 |
7284 | done | |
7285 | done | |
7286 | done | |
7287 | IFS=$as_save_IFS | |
7288 | if test -z "$ac_cv_path_EGREP"; then | |
7289 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7290 | fi | |
9c60689e | 7291 | else |
a243b558 | 7292 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
7293 | fi |
7294 | ||
a243b558 JF |
7295 | fi |
7296 | fi | |
7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
7298 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7299 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 7300 | |
ee134472 | 7301 | |
a243b558 JF |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
7303 | $as_echo_n "checking for fgrep... " >&6; } | |
7304 | if ${ac_cv_path_FGREP+:} false; then : | |
7305 | $as_echo_n "(cached) " >&6 | |
7306 | else | |
7307 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
7308 | then ac_cv_path_FGREP="$GREP -F" | |
7309 | else | |
7310 | if test -z "$FGREP"; then | |
7311 | ac_path_FGREP_found=false | |
7312 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7314 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7315 | do | |
7316 | IFS=$as_save_IFS | |
7317 | test -z "$as_dir" && as_dir=. | |
7318 | for ac_prog in fgrep; do | |
7319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7320 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
7321 | as_fn_executable_p "$ac_path_FGREP" || continue | |
7322 | # Check for GNU ac_path_FGREP and select it if it is found. | |
7323 | # Check for GNU $ac_path_FGREP | |
7324 | case `"$ac_path_FGREP" --version 2>&1` in | |
7325 | *GNU*) | |
7326 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
7327 | *) | |
7328 | ac_count=0 | |
7329 | $as_echo_n 0123456789 >"conftest.in" | |
7330 | while : | |
7331 | do | |
7332 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7333 | mv "conftest.tmp" "conftest.in" | |
7334 | cp "conftest.in" "conftest.nl" | |
7335 | $as_echo 'FGREP' >> "conftest.nl" | |
7336 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7337 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7338 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7339 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
7340 | # Best one so far, save it but keep looking for a better one | |
7341 | ac_cv_path_FGREP="$ac_path_FGREP" | |
7342 | ac_path_FGREP_max=$ac_count | |
7343 | fi | |
7344 | # 10*(2^10) chars as input seems more than enough | |
7345 | test $ac_count -gt 10 && break | |
7346 | done | |
7347 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 7348 | esac |
a243b558 JF |
7349 | |
7350 | $ac_path_FGREP_found && break 3 | |
7351 | done | |
7352 | done | |
7353 | done | |
7354 | IFS=$as_save_IFS | |
7355 | if test -z "$ac_cv_path_FGREP"; then | |
7356 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 7357 | fi |
a243b558 JF |
7358 | else |
7359 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
7360 | fi |
7361 | ||
a243b558 JF |
7362 | fi |
7363 | fi | |
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
7365 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
7366 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
7367 | |
7368 | ||
a243b558 | 7369 | test -z "$GREP" && GREP=grep |
ee134472 JF |
7370 | |
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
ee134472 | 7377 | |
ee134472 | 7378 | |
ee134472 | 7379 | |
ee134472 | 7380 | |
ee134472 | 7381 | |
ee134472 JF |
7382 | |
7383 | ||
7384 | ||
7385 | ||
7386 | ||
7387 | ||
7388 | ||
a243b558 JF |
7389 | # Check whether --with-gnu-ld was given. |
7390 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 7391 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
a243b558 JF |
7392 | else |
7393 | with_gnu_ld=no | |
7394 | fi | |
7395 | ||
7396 | ac_prog=ld | |
9d54db95 | 7397 | if test yes = "$GCC"; then |
a243b558 JF |
7398 | # Check if gcc -print-prog-name=ld gives a path. |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
7400 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7401 | case $host in | |
7402 | *-*-mingw*) | |
9d54db95 | 7403 | # gcc leaves a trailing carriage return, which upsets mingw |
a243b558 JF |
7404 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
7405 | *) | |
7406 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7407 | esac | |
7408 | case $ac_prog in | |
7409 | # Accept absolute paths. | |
7410 | [\\/]* | ?:[\\/]*) | |
7411 | re_direlt='/[^/][^/]*/\.\./' | |
7412 | # Canonicalize the pathname of ld | |
7413 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
7414 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
7415 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
7416 | done | |
9d54db95 | 7417 | test -z "$LD" && LD=$ac_prog |
a243b558 JF |
7418 | ;; |
7419 | "") | |
7420 | # If it fails, then pretend we aren't using GCC. | |
7421 | ac_prog=ld | |
7422 | ;; | |
7423 | *) | |
7424 | # If it is relative, then search for the first ld in PATH. | |
7425 | with_gnu_ld=unknown | |
7426 | ;; | |
7427 | esac | |
9d54db95 | 7428 | elif test yes = "$with_gnu_ld"; then |
a243b558 JF |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
7430 | $as_echo_n "checking for GNU ld... " >&6; } | |
7431 | else | |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7433 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7434 | fi | |
7435 | if ${lt_cv_path_LD+:} false; then : | |
7436 | $as_echo_n "(cached) " >&6 | |
7437 | else | |
7438 | if test -z "$LD"; then | |
9d54db95 | 7439 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 7440 | for ac_dir in $PATH; do |
9d54db95 | 7441 | IFS=$lt_save_ifs |
a243b558 JF |
7442 | test -z "$ac_dir" && ac_dir=. |
7443 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 7444 | lt_cv_path_LD=$ac_dir/$ac_prog |
a243b558 JF |
7445 | # Check to see if the program is GNU ld. I'd rather use --version, |
7446 | # but apparently some variants of GNU ld only accept -v. | |
7447 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7448 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
7449 | *GNU* | *'with BFD'*) | |
9d54db95 | 7450 | test no != "$with_gnu_ld" && break |
a243b558 JF |
7451 | ;; |
7452 | *) | |
9d54db95 | 7453 | test yes != "$with_gnu_ld" && break |
a243b558 JF |
7454 | ;; |
7455 | esac | |
7456 | fi | |
7457 | done | |
9d54db95 | 7458 | IFS=$lt_save_ifs |
a243b558 | 7459 | else |
9d54db95 | 7460 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
a243b558 JF |
7461 | fi |
7462 | fi | |
7463 | ||
9d54db95 | 7464 | LD=$lt_cv_path_LD |
a243b558 JF |
7465 | if test -n "$LD"; then |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7467 | $as_echo "$LD" >&6; } | |
7468 | else | |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7470 | $as_echo "no" >&6; } | |
7471 | fi | |
7472 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7474 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7475 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
7476 | $as_echo_n "(cached) " >&6 | |
7477 | else | |
7478 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
7479 | case `$LD -v 2>&1 </dev/null` in | |
7480 | *GNU* | *'with BFD'*) | |
7481 | lt_cv_prog_gnu_ld=yes | |
7482 | ;; | |
7483 | *) | |
7484 | lt_cv_prog_gnu_ld=no | |
7485 | ;; | |
7486 | esac | |
7487 | fi | |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
7489 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7490 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
7501 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
7502 | if ${lt_cv_path_NM+:} false; then : | |
7503 | $as_echo_n "(cached) " >&6 | |
7504 | else | |
7505 | if test -n "$NM"; then | |
7506 | # Let the user override the test. | |
9d54db95 | 7507 | lt_cv_path_NM=$NM |
a243b558 | 7508 | else |
9d54db95 | 7509 | lt_nm_to_check=${ac_tool_prefix}nm |
a243b558 JF |
7510 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
7511 | lt_nm_to_check="$lt_nm_to_check nm" | |
7512 | fi | |
7513 | for lt_tmp_nm in $lt_nm_to_check; do | |
9d54db95 | 7514 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 7515 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
9d54db95 | 7516 | IFS=$lt_save_ifs |
a243b558 | 7517 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
7518 | tmp_nm=$ac_dir/$lt_tmp_nm |
7519 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
a243b558 | 7520 | # Check to see if the nm accepts a BSD-compat flag. |
9d54db95 | 7521 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
a243b558 JF |
7522 | # nm: unknown option "B" ignored |
7523 | # Tru64's nm complains that /dev/null is an invalid object file | |
9d54db95 JF |
7524 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
7525 | case $build_os in | |
7526 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
7527 | *) lt_bad_file=/dev/null ;; | |
7528 | esac | |
7529 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
7530 | *$lt_bad_file* | *'Invalid file or object type'*) | |
a243b558 | 7531 | lt_cv_path_NM="$tmp_nm -B" |
9d54db95 | 7532 | break 2 |
a243b558 JF |
7533 | ;; |
7534 | *) | |
7535 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7536 | */dev/null*) | |
7537 | lt_cv_path_NM="$tmp_nm -p" | |
9d54db95 | 7538 | break 2 |
a243b558 JF |
7539 | ;; |
7540 | *) | |
7541 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7542 | continue # so that we can try to find one that supports BSD flags | |
7543 | ;; | |
7544 | esac | |
7545 | ;; | |
7546 | esac | |
7547 | fi | |
7548 | done | |
9d54db95 | 7549 | IFS=$lt_save_ifs |
a243b558 JF |
7550 | done |
7551 | : ${lt_cv_path_NM=no} | |
7552 | fi | |
7553 | fi | |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
7555 | $as_echo "$lt_cv_path_NM" >&6; } | |
9d54db95 JF |
7556 | if test no != "$lt_cv_path_NM"; then |
7557 | NM=$lt_cv_path_NM | |
a243b558 JF |
7558 | else |
7559 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
7560 | if test -n "$DUMPBIN"; then : | |
7561 | # Let the user override the test. | |
7562 | else | |
7563 | if test -n "$ac_tool_prefix"; then | |
7564 | for ac_prog in dumpbin "link -dump" | |
7565 | do | |
7566 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7567 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7569 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7570 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
7571 | $as_echo_n "(cached) " >&6 |
7572 | else | |
a243b558 JF |
7573 | if test -n "$DUMPBIN"; then |
7574 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
7575 | else |
7576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7577 | for as_dir in $PATH | |
7578 | do | |
7579 | IFS=$as_save_IFS | |
7580 | test -z "$as_dir" && as_dir=. | |
7581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7583 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
7584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7585 | break 2 | |
7586 | fi | |
7587 | done | |
7588 | done | |
7589 | IFS=$as_save_IFS | |
7590 | ||
7591 | fi | |
7592 | fi | |
a243b558 JF |
7593 | DUMPBIN=$ac_cv_prog_DUMPBIN |
7594 | if test -n "$DUMPBIN"; then | |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
7596 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
7597 | else |
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7599 | $as_echo "no" >&6; } | |
7600 | fi | |
7601 | ||
7602 | ||
a243b558 JF |
7603 | test -n "$DUMPBIN" && break |
7604 | done | |
ee134472 | 7605 | fi |
a243b558 JF |
7606 | if test -z "$DUMPBIN"; then |
7607 | ac_ct_DUMPBIN=$DUMPBIN | |
7608 | for ac_prog in dumpbin "link -dump" | |
7609 | do | |
7610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7611 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7613 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7614 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
7615 | $as_echo_n "(cached) " >&6 |
7616 | else | |
a243b558 JF |
7617 | if test -n "$ac_ct_DUMPBIN"; then |
7618 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
7619 | else |
7620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7621 | for as_dir in $PATH | |
7622 | do | |
7623 | IFS=$as_save_IFS | |
7624 | test -z "$as_dir" && as_dir=. | |
7625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7627 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
7628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7629 | break 2 | |
7630 | fi | |
7631 | done | |
7632 | done | |
7633 | IFS=$as_save_IFS | |
7634 | ||
7635 | fi | |
7636 | fi | |
a243b558 JF |
7637 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
7638 | if test -n "$ac_ct_DUMPBIN"; then | |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
7640 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
7641 | else |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7643 | $as_echo "no" >&6; } | |
7644 | fi | |
7645 | ||
a243b558 JF |
7646 | |
7647 | test -n "$ac_ct_DUMPBIN" && break | |
7648 | done | |
7649 | ||
7650 | if test "x$ac_ct_DUMPBIN" = x; then | |
7651 | DUMPBIN=":" | |
ee134472 JF |
7652 | else |
7653 | case $cross_compiling:$ac_tool_warned in | |
7654 | yes:) | |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7657 | ac_tool_warned=yes ;; | |
7658 | esac | |
a243b558 | 7659 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 7660 | fi |
9c60689e DWT |
7661 | fi |
7662 | ||
9d54db95 | 7663 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
a243b558 | 7664 | *COFF*) |
9d54db95 | 7665 | DUMPBIN="$DUMPBIN -symbols -headers" |
a243b558 JF |
7666 | ;; |
7667 | *) | |
7668 | DUMPBIN=: | |
7669 | ;; | |
7670 | esac | |
7671 | fi | |
9c60689e | 7672 | |
9d54db95 JF |
7673 | if test : != "$DUMPBIN"; then |
7674 | NM=$DUMPBIN | |
a243b558 JF |
7675 | fi |
7676 | fi | |
7677 | test -z "$NM" && NM=nm | |
9c60689e DWT |
7678 | |
7679 | ||
7680 | ||
7681 | ||
7682 | ||
a243b558 JF |
7683 | |
7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
7685 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
7686 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
7687 | $as_echo_n "(cached) " >&6 |
7688 | else | |
a243b558 JF |
7689 | lt_cv_nm_interface="BSD nm" |
7690 | echo "int some_variable = 0;" > conftest.$ac_ext | |
7691 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
7692 | (eval "$ac_compile" 2>conftest.err) | |
7693 | cat conftest.err >&5 | |
7694 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
7695 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
7696 | cat conftest.err >&5 | |
7697 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
7698 | cat conftest.out >&5 | |
7699 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7700 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 7701 | fi |
00a96142 | 7702 | rm -rf conftest* |
9c60689e | 7703 | fi |
a243b558 JF |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7705 | $as_echo "$lt_cv_nm_interface" >&6; } | |
7706 | ||
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
7708 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7709 | LN_S=$as_ln_s | |
7710 | if test "$LN_S" = "ln -s"; then | |
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7712 | $as_echo "yes" >&6; } | |
9c60689e | 7713 | else |
a243b558 JF |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7715 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
7716 | fi |
7717 | ||
a243b558 JF |
7718 | # find the maximum length of command line arguments |
7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
7720 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
7721 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
7722 | $as_echo_n "(cached) " >&6 |
7723 | else | |
a243b558 | 7724 | i=0 |
9d54db95 | 7725 | teststring=ABCD |
9c60689e | 7726 | |
a243b558 JF |
7727 | case $build_os in |
7728 | msdosdjgpp*) | |
7729 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7730 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7731 | # during glob expansion). Even if it were fixed, the result of this | |
7732 | # check would be larger than it should be. | |
7733 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7734 | ;; | |
9c60689e | 7735 | |
a243b558 JF |
7736 | gnu*) |
7737 | # Under GNU Hurd, this test is not required because there is | |
7738 | # no limit to the length of command line arguments. | |
7739 | # Libtool will interpret -1 as no limit whatsoever | |
7740 | lt_cv_sys_max_cmd_len=-1; | |
7741 | ;; | |
9c60689e | 7742 | |
a243b558 JF |
7743 | cygwin* | mingw* | cegcc*) |
7744 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
7745 | # about 5 minutes as the teststring grows exponentially. | |
7746 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7747 | # you end up with a "frozen" computer, even though with patience | |
7748 | # the test eventually succeeds (with a max line length of 256k). | |
7749 | # Instead, let's just punt: use the minimum linelength reported by | |
7750 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7751 | lt_cv_sys_max_cmd_len=8192; | |
7752 | ;; | |
9c60689e | 7753 | |
a243b558 JF |
7754 | mint*) |
7755 | # On MiNT this can take a long time and run out of memory. | |
7756 | lt_cv_sys_max_cmd_len=8192; | |
7757 | ;; | |
9c60689e | 7758 | |
a243b558 JF |
7759 | amigaos*) |
7760 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7761 | # So we just punt and use a minimum line length of 8192. | |
7762 | lt_cv_sys_max_cmd_len=8192; | |
7763 | ;; | |
9c60689e | 7764 | |
9d54db95 | 7765 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
a243b558 JF |
7766 | # This has been around since 386BSD, at least. Likely further. |
7767 | if test -x /sbin/sysctl; then | |
7768 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7769 | elif test -x /usr/sbin/sysctl; then | |
7770 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7771 | else | |
7772 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7773 | fi | |
7774 | # And add a safety zone | |
7775 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7776 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7777 | ;; | |
9c60689e | 7778 | |
a243b558 JF |
7779 | interix*) |
7780 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7781 | lt_cv_sys_max_cmd_len=196608 | |
7782 | ;; | |
9c60689e | 7783 | |
a243b558 JF |
7784 | os2*) |
7785 | # The test takes a long time on OS/2. | |
7786 | lt_cv_sys_max_cmd_len=8192 | |
7787 | ;; | |
9c60689e | 7788 | |
a243b558 JF |
7789 | osf*) |
7790 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7791 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7792 | # nice to cause kernel panics so lets avoid the loop below. | |
7793 | # First set a reasonable default. | |
7794 | lt_cv_sys_max_cmd_len=16384 | |
7795 | # | |
7796 | if test -x /sbin/sysconfig; then | |
7797 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7798 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7799 | esac | |
7800 | fi | |
7801 | ;; | |
7802 | sco3.2v5*) | |
7803 | lt_cv_sys_max_cmd_len=102400 | |
7804 | ;; | |
7805 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7806 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7807 | if test -n "$kargmax"; then | |
7808 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7809 | else | |
7810 | lt_cv_sys_max_cmd_len=32768 | |
7811 | fi | |
9c60689e DWT |
7812 | ;; |
7813 | *) | |
a243b558 | 7814 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
9d54db95 JF |
7815 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
7816 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
a243b558 JF |
7817 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7818 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7819 | else | |
7820 | # Make teststring a little bigger before we do anything with it. | |
7821 | # a 1K string should be a reasonable start. | |
9d54db95 | 7822 | for i in 1 2 3 4 5 6 7 8; do |
a243b558 JF |
7823 | teststring=$teststring$teststring |
7824 | done | |
7825 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7826 | # If test is not a shell built-in, we'll probably end up computing a | |
7827 | # maximum length that is only half of the actual maximum length, but | |
7828 | # we can't tell. | |
9d54db95 | 7829 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
a243b558 | 7830 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
9d54db95 | 7831 | test 17 != "$i" # 1/2 MB should be enough |
a243b558 JF |
7832 | do |
7833 | i=`expr $i + 1` | |
7834 | teststring=$teststring$teststring | |
7835 | done | |
7836 | # Only check the string length outside the loop. | |
7837 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7838 | teststring= | |
7839 | # Add a significant safety factor because C++ compilers can tack on | |
7840 | # massive amounts of additional arguments before passing them to the | |
7841 | # linker. It appears as though 1/2 is a usable value. | |
7842 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7843 | fi | |
9c60689e DWT |
7844 | ;; |
7845 | esac | |
ee134472 | 7846 | |
a243b558 | 7847 | fi |
ee134472 | 7848 | |
9d54db95 | 7849 | if test -n "$lt_cv_sys_max_cmd_len"; then |
a243b558 JF |
7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7851 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7852 | else | |
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
7854 | $as_echo "none" >&6; } | |
7855 | fi | |
7856 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
7857 | |
7858 | ||
9c60689e DWT |
7859 | |
7860 | ||
7861 | ||
7862 | ||
a243b558 JF |
7863 | : ${CP="cp -f"} |
7864 | : ${MV="mv -f"} | |
7865 | : ${RM="rm -f"} | |
9c60689e | 7866 | |
a243b558 JF |
7867 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7868 | lt_unset=unset | |
7869 | else | |
7870 | lt_unset=false | |
7871 | fi | |
9c60689e DWT |
7872 | |
7873 | ||
7874 | ||
7875 | ||
7876 | ||
a243b558 JF |
7877 | # test EBCDIC or ASCII |
7878 | case `echo X|tr X '\101'` in | |
7879 | A) # ASCII based system | |
7880 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7881 | lt_SP2NL='tr \040 \012' | |
7882 | lt_NL2SP='tr \015\012 \040\040' | |
7883 | ;; | |
7884 | *) # EBCDIC based system | |
7885 | lt_SP2NL='tr \100 \n' | |
7886 | lt_NL2SP='tr \r\n \100\100' | |
7887 | ;; | |
7888 | esac | |
9c60689e DWT |
7889 | |
7890 | ||
7891 | ||
7892 | ||
7893 | ||
7894 | ||
7895 | ||
7896 | ||
7897 | ||
a243b558 JF |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
7899 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
7900 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
7901 | $as_echo_n "(cached) " >&6 | |
7902 | else | |
7903 | case $host in | |
7904 | *-*-mingw* ) | |
7905 | case $build in | |
7906 | *-*-mingw* ) # actually msys | |
7907 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
7908 | ;; | |
7909 | *-*-cygwin* ) | |
7910 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
7911 | ;; | |
7912 | * ) # otherwise, assume *nix | |
7913 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
7914 | ;; | |
7915 | esac | |
7916 | ;; | |
7917 | *-*-cygwin* ) | |
7918 | case $build in | |
7919 | *-*-mingw* ) # actually msys | |
7920 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
7921 | ;; | |
7922 | *-*-cygwin* ) | |
7923 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7924 | ;; | |
7925 | * ) # otherwise, assume *nix | |
7926 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
7927 | ;; | |
7928 | esac | |
7929 | ;; | |
7930 | * ) # unhandled hosts (and "normal" native builds) | |
7931 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7932 | ;; | |
7933 | esac | |
9c60689e | 7934 | |
a243b558 | 7935 | fi |
9c60689e | 7936 | |
a243b558 JF |
7937 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
7939 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
7940 | |
7941 | ||
7942 | ||
7943 | ||
7944 | ||
a243b558 JF |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
7946 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
7947 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
7948 | $as_echo_n "(cached) " >&6 | |
7949 | else | |
7950 | #assume ordinary cross tools, or native build. | |
7951 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
7952 | case $host in | |
7953 | *-*-mingw* ) | |
7954 | case $build in | |
7955 | *-*-mingw* ) # actually msys | |
7956 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
7957 | ;; | |
7958 | esac | |
7959 | ;; | |
7960 | esac | |
9c60689e | 7961 | |
a243b558 | 7962 | fi |
9c60689e | 7963 | |
a243b558 JF |
7964 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
7966 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 7967 | |
9c60689e | 7968 | |
9c60689e | 7969 | |
9c60689e DWT |
7970 | |
7971 | ||
a243b558 JF |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7973 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
7974 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
7975 | $as_echo_n "(cached) " >&6 |
7976 | else | |
a243b558 JF |
7977 | lt_cv_ld_reload_flag='-r' |
7978 | fi | |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
7980 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7981 | reload_flag=$lt_cv_ld_reload_flag | |
7982 | case $reload_flag in | |
7983 | "" | " "*) ;; | |
7984 | *) reload_flag=" $reload_flag" ;; | |
7985 | esac | |
7986 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 7987 | case $host_os in |
a243b558 | 7988 | cygwin* | mingw* | pw32* | cegcc*) |
9d54db95 | 7989 | if test yes != "$GCC"; then |
a243b558 JF |
7990 | reload_cmds=false |
7991 | fi | |
7992 | ;; | |
7993 | darwin*) | |
9d54db95 JF |
7994 | if test yes = "$GCC"; then |
7995 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
a243b558 JF |
7996 | else |
7997 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7998 | fi | |
7999 | ;; | |
9c60689e DWT |
8000 | esac |
8001 | ||
9c60689e | 8002 | |
9c60689e | 8003 | |
9c60689e | 8004 | |
9c60689e | 8005 | |
9c60689e | 8006 | |
9c60689e | 8007 | |
9c60689e | 8008 | |
9c60689e | 8009 | |
a243b558 JF |
8010 | if test -n "$ac_tool_prefix"; then |
8011 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
8012 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8014 | $as_echo_n "checking for $ac_word... " >&6; } | |
8015 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
8016 | $as_echo_n "(cached) " >&6 | |
8017 | else | |
8018 | if test -n "$OBJDUMP"; then | |
8019 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
8020 | else | |
8021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8022 | for as_dir in $PATH | |
8023 | do | |
8024 | IFS=$as_save_IFS | |
8025 | test -z "$as_dir" && as_dir=. | |
8026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8028 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
8029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8030 | break 2 | |
8031 | fi | |
8032 | done | |
8033 | done | |
8034 | IFS=$as_save_IFS | |
9c60689e | 8035 | |
a243b558 JF |
8036 | fi |
8037 | fi | |
8038 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
8039 | if test -n "$OBJDUMP"; then | |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
8041 | $as_echo "$OBJDUMP" >&6; } | |
8042 | else | |
8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8044 | $as_echo "no" >&6; } | |
8045 | fi | |
9c60689e | 8046 | |
9c60689e | 8047 | |
a243b558 JF |
8048 | fi |
8049 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
8050 | ac_ct_OBJDUMP=$OBJDUMP | |
8051 | # Extract the first word of "objdump", so it can be a program name with args. | |
8052 | set dummy objdump; ac_word=$2 | |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8054 | $as_echo_n "checking for $ac_word... " >&6; } | |
8055 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
8056 | $as_echo_n "(cached) " >&6 | |
8057 | else | |
8058 | if test -n "$ac_ct_OBJDUMP"; then | |
8059 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
8060 | else | |
8061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8062 | for as_dir in $PATH | |
8063 | do | |
8064 | IFS=$as_save_IFS | |
8065 | test -z "$as_dir" && as_dir=. | |
8066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8068 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
8069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8070 | break 2 | |
9c60689e DWT |
8071 | fi |
8072 | done | |
a243b558 JF |
8073 | done |
8074 | IFS=$as_save_IFS | |
9c60689e DWT |
8075 | |
8076 | fi | |
9c60689e | 8077 | fi |
a243b558 JF |
8078 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
8079 | if test -n "$ac_ct_OBJDUMP"; then | |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
8081 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 8082 | else |
a243b558 JF |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8084 | $as_echo "no" >&6; } | |
9c60689e DWT |
8085 | fi |
8086 | ||
a243b558 JF |
8087 | if test "x$ac_ct_OBJDUMP" = x; then |
8088 | OBJDUMP="false" | |
8089 | else | |
8090 | case $cross_compiling:$ac_tool_warned in | |
8091 | yes:) | |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8093 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8094 | ac_tool_warned=yes ;; | |
8095 | esac | |
8096 | OBJDUMP=$ac_ct_OBJDUMP | |
8097 | fi | |
8098 | else | |
8099 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
8100 | fi |
8101 | ||
a243b558 | 8102 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
8103 | |
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
a243b558 JF |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8113 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
8114 | if ${lt_cv_deplibs_check_method+:} false; then : | |
8115 | $as_echo_n "(cached) " >&6 | |
8116 | else | |
8117 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
8118 | lt_cv_file_magic_test_file= | |
8119 | lt_cv_deplibs_check_method='unknown' | |
8120 | # Need to set the preceding variable on all platforms that support | |
8121 | # interlibrary dependencies. | |
8122 | # 'none' -- dependencies not supported. | |
9d54db95 | 8123 | # 'unknown' -- same as none, but documents that we really don't know. |
a243b558 JF |
8124 | # 'pass_all' -- all dependencies passed with no checks. |
8125 | # 'test_compile' -- check by making test program. | |
8126 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
9d54db95 JF |
8127 | # that responds to the $file_magic_cmd with a given extended regex. |
8128 | # If you have 'file' or equivalent on your system and you're not sure | |
8129 | # whether 'pass_all' will *always* work, you probably want this one. | |
9c60689e | 8130 | |
a243b558 JF |
8131 | case $host_os in |
8132 | aix[4-9]*) | |
8133 | lt_cv_deplibs_check_method=pass_all | |
8134 | ;; | |
9c60689e | 8135 | |
a243b558 JF |
8136 | beos*) |
8137 | lt_cv_deplibs_check_method=pass_all | |
8138 | ;; | |
9c60689e | 8139 | |
a243b558 JF |
8140 | bsdi[45]*) |
8141 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
8142 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
8143 | lt_cv_file_magic_test_file=/shlib/libc.so | |
8144 | ;; | |
9c60689e | 8145 | |
a243b558 JF |
8146 | cygwin*) |
8147 | # func_win32_libid is a shell function defined in ltmain.sh | |
8148 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
8149 | lt_cv_file_magic_cmd='func_win32_libid' | |
8150 | ;; | |
9c60689e | 8151 | |
a243b558 JF |
8152 | mingw* | pw32*) |
8153 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
8154 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
8155 | # unless we find 'file', for example because we are cross-compiling. | |
9d54db95 | 8156 | if ( file / ) >/dev/null 2>&1; then |
a243b558 JF |
8157 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
8158 | lt_cv_file_magic_cmd='func_win32_libid' | |
8159 | else | |
8160 | # Keep this pattern in sync with the one in func_win32_libid. | |
8161 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8162 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
8163 | fi | |
8164 | ;; | |
9c60689e | 8165 | |
a243b558 JF |
8166 | cegcc*) |
8167 | # use the weaker test based on 'objdump'. See mingw*. | |
8168 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
8169 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
8170 | ;; | |
9c60689e | 8171 | |
a243b558 JF |
8172 | darwin* | rhapsody*) |
8173 | lt_cv_deplibs_check_method=pass_all | |
8174 | ;; | |
9c60689e | 8175 | |
a243b558 JF |
8176 | freebsd* | dragonfly*) |
8177 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
8178 | case $host_cpu in | |
8179 | i*86 ) | |
8180 | # Not sure whether the presence of OpenBSD here was a mistake. | |
8181 | # Let's accept both of them until this is cleared up. | |
8182 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
8183 | lt_cv_file_magic_cmd=/usr/bin/file | |
8184 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
8185 | ;; | |
8186 | esac | |
8187 | else | |
8188 | lt_cv_deplibs_check_method=pass_all | |
8189 | fi | |
8190 | ;; | |
9c60689e | 8191 | |
a243b558 JF |
8192 | haiku*) |
8193 | lt_cv_deplibs_check_method=pass_all | |
8194 | ;; | |
9c60689e | 8195 | |
a243b558 JF |
8196 | hpux10.20* | hpux11*) |
8197 | lt_cv_file_magic_cmd=/usr/bin/file | |
8198 | case $host_cpu in | |
8199 | ia64*) | |
8200 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
8201 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
8202 | ;; | |
8203 | hppa*64*) | |
8204 | 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]' | |
8205 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
8206 | ;; | |
8207 | *) | |
8208 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
8209 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
8210 | ;; | |
8211 | esac | |
8212 | ;; | |
9c60689e | 8213 | |
a243b558 JF |
8214 | interix[3-9]*) |
8215 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
8216 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
8217 | ;; | |
9c60689e | 8218 | |
a243b558 JF |
8219 | irix5* | irix6* | nonstopux*) |
8220 | case $LD in | |
8221 | *-32|*"-32 ") libmagic=32-bit;; | |
8222 | *-n32|*"-n32 ") libmagic=N32;; | |
8223 | *-64|*"-64 ") libmagic=64-bit;; | |
8224 | *) libmagic=never-match;; | |
8225 | esac | |
8226 | lt_cv_deplibs_check_method=pass_all | |
8227 | ;; | |
9c60689e | 8228 | |
a243b558 | 8229 | # This must be glibc/ELF. |
9d54db95 | 8230 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
8231 | lt_cv_deplibs_check_method=pass_all |
8232 | ;; | |
9c60689e | 8233 | |
a243b558 JF |
8234 | netbsd*) |
8235 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
8236 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
8237 | else | |
8238 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
8239 | fi | |
8240 | ;; | |
9c60689e | 8241 | |
a243b558 JF |
8242 | newos6*) |
8243 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
8244 | lt_cv_file_magic_cmd=/usr/bin/file | |
8245 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
8246 | ;; | |
9c60689e | 8247 | |
a243b558 JF |
8248 | *nto* | *qnx*) |
8249 | lt_cv_deplibs_check_method=pass_all | |
8250 | ;; | |
9c60689e | 8251 | |
9d54db95 JF |
8252 | openbsd* | bitrig*) |
8253 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
a243b558 JF |
8254 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
8255 | else | |
8256 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
8257 | fi | |
8258 | ;; | |
9c60689e | 8259 | |
a243b558 JF |
8260 | osf3* | osf4* | osf5*) |
8261 | lt_cv_deplibs_check_method=pass_all | |
8262 | ;; | |
9c60689e | 8263 | |
a243b558 JF |
8264 | rdos*) |
8265 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 8266 | ;; |
a243b558 JF |
8267 | |
8268 | solaris*) | |
8269 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
8270 | ;; |
8271 | ||
a243b558 JF |
8272 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8273 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
8274 | ;; |
8275 | ||
a243b558 JF |
8276 | sysv4 | sysv4.3*) |
8277 | case $host_vendor in | |
8278 | motorola) | |
8279 | 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]' | |
8280 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
8281 | ;; | |
8282 | ncr) | |
8283 | lt_cv_deplibs_check_method=pass_all | |
8284 | ;; | |
8285 | sequent) | |
8286 | lt_cv_file_magic_cmd='/bin/file' | |
8287 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
8288 | ;; | |
8289 | sni) | |
8290 | lt_cv_file_magic_cmd='/bin/file' | |
8291 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
8292 | lt_cv_file_magic_test_file=/lib/libc.so | |
8293 | ;; | |
8294 | siemens) | |
8295 | lt_cv_deplibs_check_method=pass_all | |
8296 | ;; | |
8297 | pc) | |
8298 | lt_cv_deplibs_check_method=pass_all | |
8299 | ;; | |
8300 | esac | |
8301 | ;; | |
9c60689e | 8302 | |
a243b558 JF |
8303 | tpf*) |
8304 | lt_cv_deplibs_check_method=pass_all | |
8305 | ;; | |
9d54db95 JF |
8306 | os2*) |
8307 | lt_cv_deplibs_check_method=pass_all | |
8308 | ;; | |
a243b558 | 8309 | esac |
9c60689e | 8310 | |
a243b558 JF |
8311 | fi |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
8313 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 8314 | |
a243b558 JF |
8315 | file_magic_glob= |
8316 | want_nocaseglob=no | |
8317 | if test "$build" = "$host"; then | |
8318 | case $host_os in | |
8319 | mingw* | pw32*) | |
8320 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
8321 | want_nocaseglob=yes | |
8322 | else | |
8323 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
8324 | fi | |
8325 | ;; | |
8326 | esac | |
9c60689e | 8327 | fi |
9c60689e | 8328 | |
a243b558 JF |
8329 | file_magic_cmd=$lt_cv_file_magic_cmd |
8330 | deplibs_check_method=$lt_cv_deplibs_check_method | |
8331 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
9c60689e | 8352 | |
9c60689e | 8353 | |
ee134472 | 8354 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
8355 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
8356 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8358 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8359 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
8360 | $as_echo_n "(cached) " >&6 |
8361 | else | |
a243b558 JF |
8362 | if test -n "$DLLTOOL"; then |
8363 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
8364 | else |
8365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8366 | for as_dir in $PATH | |
8367 | do | |
8368 | IFS=$as_save_IFS | |
8369 | test -z "$as_dir" && as_dir=. | |
8370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8372 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
8373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8374 | break 2 | |
8375 | fi | |
8376 | done | |
8377 | done | |
8378 | IFS=$as_save_IFS | |
8379 | ||
8380 | fi | |
8381 | fi | |
a243b558 JF |
8382 | DLLTOOL=$ac_cv_prog_DLLTOOL |
8383 | if test -n "$DLLTOOL"; then | |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8385 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
8386 | else |
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8388 | $as_echo "no" >&6; } | |
8389 | fi | |
8390 | ||
8391 | ||
8392 | fi | |
a243b558 JF |
8393 | if test -z "$ac_cv_prog_DLLTOOL"; then |
8394 | ac_ct_DLLTOOL=$DLLTOOL | |
8395 | # Extract the first word of "dlltool", so it can be a program name with args. | |
8396 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8398 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8399 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
8400 | $as_echo_n "(cached) " >&6 |
8401 | else | |
a243b558 JF |
8402 | if test -n "$ac_ct_DLLTOOL"; then |
8403 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
8404 | else |
8405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8406 | for as_dir in $PATH | |
8407 | do | |
8408 | IFS=$as_save_IFS | |
8409 | test -z "$as_dir" && as_dir=. | |
8410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8412 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
8413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8414 | break 2 | |
8415 | fi | |
8416 | done | |
8417 | done | |
8418 | IFS=$as_save_IFS | |
8419 | ||
8420 | fi | |
8421 | fi | |
a243b558 JF |
8422 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
8423 | if test -n "$ac_ct_DLLTOOL"; then | |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
8425 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
8426 | else |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8428 | $as_echo "no" >&6; } | |
8429 | fi | |
8430 | ||
a243b558 JF |
8431 | if test "x$ac_ct_DLLTOOL" = x; then |
8432 | DLLTOOL="false" | |
ee134472 JF |
8433 | else |
8434 | case $cross_compiling:$ac_tool_warned in | |
8435 | yes:) | |
8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8437 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8438 | ac_tool_warned=yes ;; | |
8439 | esac | |
a243b558 | 8440 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
8441 | fi |
8442 | else | |
a243b558 | 8443 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
8444 | fi |
8445 | ||
a243b558 JF |
8446 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
8458 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
8459 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
8460 | $as_echo_n "(cached) " >&6 |
8461 | else | |
a243b558 JF |
8462 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
8463 | ||
8464 | case $host_os in | |
8465 | cygwin* | mingw* | pw32* | cegcc*) | |
9d54db95 JF |
8466 | # two different shell functions defined in ltmain.sh; |
8467 | # decide which one to use based on capabilities of $DLLTOOL | |
a243b558 JF |
8468 | case `$DLLTOOL --help 2>&1` in |
8469 | *--identify-strict*) | |
8470 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8471 | ;; | |
8472 | *) | |
8473 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8474 | ;; | |
8475 | esac | |
8476 | ;; | |
8477 | *) | |
8478 | # fallback: assume linklib IS sharedlib | |
9d54db95 | 8479 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
a243b558 JF |
8480 | ;; |
8481 | esac | |
8482 | ||
ee134472 | 8483 | fi |
a243b558 JF |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
8485 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
8486 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
8487 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
8488 | |
8489 | ||
8490 | ||
8491 | ||
8492 | ||
9c60689e | 8493 | |
a243b558 JF |
8494 | |
8495 | if test -n "$ac_tool_prefix"; then | |
8496 | for ac_prog in ar | |
8497 | do | |
8498 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
8499 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8501 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8502 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
8503 | $as_echo_n "(cached) " >&6 |
8504 | else | |
a243b558 JF |
8505 | if test -n "$AR"; then |
8506 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
8507 | else |
8508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8509 | for as_dir in $PATH | |
8510 | do | |
8511 | IFS=$as_save_IFS | |
8512 | test -z "$as_dir" && as_dir=. | |
8513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8515 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
8516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8517 | break 2 | |
8518 | fi | |
8519 | done | |
8520 | done | |
8521 | IFS=$as_save_IFS | |
8522 | ||
8523 | fi | |
8524 | fi | |
a243b558 JF |
8525 | AR=$ac_cv_prog_AR |
8526 | if test -n "$AR"; then | |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
8528 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
8529 | else |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8531 | $as_echo "no" >&6; } | |
8532 | fi | |
8533 | ||
8534 | ||
a243b558 JF |
8535 | test -n "$AR" && break |
8536 | done | |
9c60689e | 8537 | fi |
a243b558 JF |
8538 | if test -z "$AR"; then |
8539 | ac_ct_AR=$AR | |
8540 | for ac_prog in ar | |
8541 | do | |
8542 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8543 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8545 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8546 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
8547 | $as_echo_n "(cached) " >&6 |
8548 | else | |
a243b558 JF |
8549 | if test -n "$ac_ct_AR"; then |
8550 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
8551 | else |
8552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8553 | for as_dir in $PATH | |
8554 | do | |
8555 | IFS=$as_save_IFS | |
8556 | test -z "$as_dir" && as_dir=. | |
8557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8559 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
8560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8561 | break 2 | |
8562 | fi | |
8563 | done | |
8564 | done | |
8565 | IFS=$as_save_IFS | |
8566 | ||
8567 | fi | |
8568 | fi | |
a243b558 JF |
8569 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
8570 | if test -n "$ac_ct_AR"; then | |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
8572 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
8573 | else |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8575 | $as_echo "no" >&6; } | |
8576 | fi | |
8577 | ||
a243b558 JF |
8578 | |
8579 | test -n "$ac_ct_AR" && break | |
8580 | done | |
8581 | ||
8582 | if test "x$ac_ct_AR" = x; then | |
8583 | AR="false" | |
9c60689e DWT |
8584 | else |
8585 | case $cross_compiling:$ac_tool_warned in | |
8586 | yes:) | |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8588 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8589 | ac_tool_warned=yes ;; | |
8590 | esac | |
a243b558 | 8591 | AR=$ac_ct_AR |
9c60689e | 8592 | fi |
a243b558 JF |
8593 | fi |
8594 | ||
8595 | : ${AR=ar} | |
8596 | : ${AR_FLAGS=cru} | |
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
8609 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
8610 | if ${lt_cv_ar_at_file+:} false; then : | |
8611 | $as_echo_n "(cached) " >&6 | |
9c60689e | 8612 | else |
a243b558 JF |
8613 | lt_cv_ar_at_file=no |
8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8615 | /* end confdefs.h. */ | |
8616 | ||
8617 | int | |
8618 | main () | |
8619 | { | |
8620 | ||
8621 | ; | |
8622 | return 0; | |
8623 | } | |
8624 | _ACEOF | |
8625 | if ac_fn_c_try_compile "$LINENO"; then : | |
8626 | echo conftest.$ac_objext > conftest.lst | |
8627 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
8628 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
8629 | (eval $lt_ar_try) 2>&5 | |
8630 | ac_status=$? | |
8631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8632 | test $ac_status = 0; } | |
9d54db95 | 8633 | if test 0 -eq "$ac_status"; then |
a243b558 JF |
8634 | # Ensure the archiver fails upon bogus file names. |
8635 | rm -f conftest.$ac_objext libconftest.a | |
8636 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
8637 | (eval $lt_ar_try) 2>&5 | |
8638 | ac_status=$? | |
8639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8640 | test $ac_status = 0; } | |
9d54db95 | 8641 | if test 0 -ne "$ac_status"; then |
a243b558 JF |
8642 | lt_cv_ar_at_file=@ |
8643 | fi | |
8644 | fi | |
8645 | rm -f conftest.* libconftest.a | |
8646 | ||
9c60689e | 8647 | fi |
a243b558 | 8648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 8649 | |
a243b558 JF |
8650 | fi |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
8652 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
8653 | ||
9d54db95 | 8654 | if test no = "$lt_cv_ar_at_file"; then |
a243b558 JF |
8655 | archiver_list_spec= |
8656 | else | |
8657 | archiver_list_spec=$lt_cv_ar_at_file | |
8658 | fi | |
8659 | ||
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | if test -n "$ac_tool_prefix"; then | |
8667 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
8668 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8670 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8671 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
8672 | $as_echo_n "(cached) " >&6 |
8673 | else | |
a243b558 JF |
8674 | if test -n "$STRIP"; then |
8675 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
8676 | else |
8677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8678 | for as_dir in $PATH | |
8679 | do | |
8680 | IFS=$as_save_IFS | |
8681 | test -z "$as_dir" && as_dir=. | |
8682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8684 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
8685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8686 | break 2 | |
8687 | fi | |
8688 | done | |
8689 | done | |
8690 | IFS=$as_save_IFS | |
8691 | ||
8692 | fi | |
8693 | fi | |
a243b558 JF |
8694 | STRIP=$ac_cv_prog_STRIP |
8695 | if test -n "$STRIP"; then | |
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8697 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
8698 | else |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8700 | $as_echo "no" >&6; } | |
8701 | fi | |
8702 | ||
8703 | ||
8704 | fi | |
a243b558 JF |
8705 | if test -z "$ac_cv_prog_STRIP"; then |
8706 | ac_ct_STRIP=$STRIP | |
8707 | # Extract the first word of "strip", so it can be a program name with args. | |
8708 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8710 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8711 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
8712 | $as_echo_n "(cached) " >&6 |
8713 | else | |
a243b558 JF |
8714 | if test -n "$ac_ct_STRIP"; then |
8715 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
8716 | else |
8717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8718 | for as_dir in $PATH | |
8719 | do | |
8720 | IFS=$as_save_IFS | |
8721 | test -z "$as_dir" && as_dir=. | |
8722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8724 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
8725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8726 | break 2 | |
8727 | fi | |
8728 | done | |
8729 | done | |
8730 | IFS=$as_save_IFS | |
8731 | ||
8732 | fi | |
8733 | fi | |
a243b558 JF |
8734 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
8735 | if test -n "$ac_ct_STRIP"; then | |
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
8737 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
8738 | else |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8740 | $as_echo "no" >&6; } | |
8741 | fi | |
8742 | ||
a243b558 JF |
8743 | if test "x$ac_ct_STRIP" = x; then |
8744 | STRIP=":" | |
9c60689e DWT |
8745 | else |
8746 | case $cross_compiling:$ac_tool_warned in | |
8747 | yes:) | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8749 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8750 | ac_tool_warned=yes ;; | |
8751 | esac | |
a243b558 | 8752 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
8753 | fi |
8754 | else | |
a243b558 | 8755 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
8756 | fi |
8757 | ||
a243b558 JF |
8758 | test -z "$STRIP" && STRIP=: |
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | if test -n "$ac_tool_prefix"; then | |
8766 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8767 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8769 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8770 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
8771 | $as_echo_n "(cached) " >&6 |
8772 | else | |
a243b558 JF |
8773 | if test -n "$RANLIB"; then |
8774 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
8775 | else |
8776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8777 | for as_dir in $PATH | |
8778 | do | |
8779 | IFS=$as_save_IFS | |
8780 | test -z "$as_dir" && as_dir=. | |
8781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8783 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
8784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8785 | break 2 | |
8786 | fi | |
8787 | done | |
8788 | done | |
8789 | IFS=$as_save_IFS | |
8790 | ||
8791 | fi | |
8792 | fi | |
a243b558 JF |
8793 | RANLIB=$ac_cv_prog_RANLIB |
8794 | if test -n "$RANLIB"; then | |
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8796 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
8797 | else |
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8799 | $as_echo "no" >&6; } | |
8800 | fi | |
8801 | ||
8802 | ||
8803 | fi | |
a243b558 JF |
8804 | if test -z "$ac_cv_prog_RANLIB"; then |
8805 | ac_ct_RANLIB=$RANLIB | |
8806 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8807 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8809 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8810 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
8811 | $as_echo_n "(cached) " >&6 |
8812 | else | |
a243b558 JF |
8813 | if test -n "$ac_ct_RANLIB"; then |
8814 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
8815 | else |
8816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8817 | for as_dir in $PATH | |
8818 | do | |
8819 | IFS=$as_save_IFS | |
8820 | test -z "$as_dir" && as_dir=. | |
8821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8823 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
8824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8825 | break 2 | |
8826 | fi | |
8827 | done | |
8828 | done | |
8829 | IFS=$as_save_IFS | |
8830 | ||
8831 | fi | |
8832 | fi | |
a243b558 JF |
8833 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
8834 | if test -n "$ac_ct_RANLIB"; then | |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
8836 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
8837 | else |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8839 | $as_echo "no" >&6; } | |
8840 | fi | |
8841 | ||
a243b558 JF |
8842 | if test "x$ac_ct_RANLIB" = x; then |
8843 | RANLIB=":" | |
9c60689e DWT |
8844 | else |
8845 | case $cross_compiling:$ac_tool_warned in | |
8846 | yes:) | |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8849 | ac_tool_warned=yes ;; | |
8850 | esac | |
a243b558 | 8851 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
8852 | fi |
8853 | else | |
a243b558 | 8854 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
8855 | fi |
8856 | ||
a243b558 JF |
8857 | test -z "$RANLIB" && RANLIB=: |
8858 | ||
8859 | ||
9c60689e | 8860 | |
9c60689e DWT |
8861 | |
8862 | ||
a243b558 JF |
8863 | |
8864 | # Determine commands to create old-style static archives. | |
8865 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
8866 | old_postinstall_cmds='chmod 644 $oldlib' | |
8867 | old_postuninstall_cmds= | |
8868 | ||
8869 | if test -n "$RANLIB"; then | |
8870 | case $host_os in | |
9d54db95 | 8871 | bitrig* | openbsd*) |
a243b558 JF |
8872 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8873 | ;; | |
8874 | *) | |
8875 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
8876 | ;; | |
8877 | esac | |
8878 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
8879 | fi |
8880 | ||
a243b558 JF |
8881 | case $host_os in |
8882 | darwin*) | |
8883 | lock_old_archive_extraction=yes ;; | |
8884 | *) | |
8885 | lock_old_archive_extraction=no ;; | |
9c60689e | 8886 | esac |
9c60689e | 8887 | |
9c60689e | 8888 | |
9c60689e DWT |
8889 | |
8890 | ||
9c60689e | 8891 | |
9c60689e | 8892 | |
9c60689e DWT |
8893 | |
8894 | ||
8895 | ||
8896 | ||
8897 | ||
8898 | ||
8899 | ||
8900 | ||
8901 | ||
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | ||
8919 | ||
53ba6704 | 8920 | |
9c60689e | 8921 | |
9c60689e | 8922 | |
9c60689e | 8923 | |
53ba6704 | 8924 | |
a243b558 JF |
8925 | |
8926 | # If no C compiler was specified, use CC. | |
8927 | LTCC=${LTCC-"$CC"} | |
8928 | ||
8929 | # If no C compiler flags were specified, use CFLAGS. | |
8930 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8931 | ||
8932 | # Allow CC to be a program name with arguments. | |
8933 | compiler=$CC | |
8934 | ||
8935 | ||
8936 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
8938 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
8939 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
8940 | $as_echo_n "(cached) " >&6 |
8941 | else | |
ee134472 | 8942 | |
a243b558 JF |
8943 | # These are sane defaults that work on at least a few old systems. |
8944 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 8945 | |
a243b558 JF |
8946 | # Character class describing NM global symbol codes. |
8947 | symcode='[BCDEGRST]' | |
9c60689e | 8948 | |
a243b558 JF |
8949 | # Regexp to match symbols that can be accessed directly from C. |
8950 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 8951 | |
a243b558 JF |
8952 | # Define system-specific variables. |
8953 | case $host_os in | |
8954 | aix*) | |
8955 | symcode='[BCDT]' | |
8956 | ;; | |
8957 | cygwin* | mingw* | pw32* | cegcc*) | |
8958 | symcode='[ABCDGISTW]' | |
8959 | ;; | |
8960 | hpux*) | |
9d54db95 | 8961 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
8962 | symcode='[ABCDEGRST]' |
8963 | fi | |
8964 | ;; | |
8965 | irix* | nonstopux*) | |
8966 | symcode='[BCDEGRST]' | |
8967 | ;; | |
8968 | osf*) | |
8969 | symcode='[BCDEGQRST]' | |
8970 | ;; | |
8971 | solaris*) | |
8972 | symcode='[BDRT]' | |
8973 | ;; | |
8974 | sco3.2v5*) | |
8975 | symcode='[DT]' | |
8976 | ;; | |
8977 | sysv4.2uw2*) | |
8978 | symcode='[DT]' | |
8979 | ;; | |
8980 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8981 | symcode='[ABDT]' | |
8982 | ;; | |
8983 | sysv4) | |
8984 | symcode='[DFNSTU]' | |
8985 | ;; | |
8986 | esac | |
9c60689e | 8987 | |
a243b558 JF |
8988 | # If we're using GNU nm, then use its standard symbol codes. |
8989 | case `$NM -V 2>&1` in | |
8990 | *GNU* | *'with BFD'*) | |
8991 | symcode='[ABCDGIRSTW]' ;; | |
8992 | esac | |
9c60689e | 8993 | |
9d54db95 JF |
8994 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
8995 | # Gets list of data symbols to import. | |
8996 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
8997 | # Adjust the below global symbol transforms to fixup imported variables. | |
8998 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
8999 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
9000 | lt_c_name_lib_hook="\ | |
9001 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
9002 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
9003 | else | |
9004 | # Disable hooks by default. | |
9005 | lt_cv_sys_global_symbol_to_import= | |
9006 | lt_cdecl_hook= | |
9007 | lt_c_name_hook= | |
9008 | lt_c_name_lib_hook= | |
9009 | fi | |
9010 | ||
a243b558 JF |
9011 | # Transform an extracted symbol line into a proper C declaration. |
9012 | # Some systems (esp. on ia64) link data and code symbols differently, | |
9013 | # so use this general approach. | |
9d54db95 JF |
9014 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
9015 | $lt_cdecl_hook\ | |
9016 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
9017 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 9018 | |
a243b558 | 9019 | # Transform an extracted symbol line into symbol name and symbol address |
9d54db95 JF |
9020 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
9021 | $lt_c_name_hook\ | |
9022 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
9023 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
9024 | ||
9025 | # Transform an extracted symbol line into symbol name with lib prefix and | |
9026 | # symbol address. | |
9027 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
9028 | $lt_c_name_lib_hook\ | |
9029 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
9030 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
9031 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
9c60689e | 9032 | |
a243b558 JF |
9033 | # Handle CRLF in mingw tool chain |
9034 | opt_cr= | |
9035 | case $build_os in | |
9036 | mingw*) | |
9037 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
9038 | ;; | |
9039 | esac | |
9c60689e | 9040 | |
a243b558 JF |
9041 | # Try without a prefix underscore, then with it. |
9042 | for ac_symprfx in "" "_"; do | |
9c60689e | 9043 | |
a243b558 JF |
9044 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
9045 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 9046 | |
a243b558 JF |
9047 | # Write the raw and C identifiers. |
9048 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9d54db95 JF |
9049 | # Fake it for dumpbin and say T for any non-static function, |
9050 | # D for any global variable and I for any imported variable. | |
a243b558 JF |
9051 | # Also find C++ and __fastcall symbols from MSVC++, |
9052 | # which start with @ or ?. | |
9053 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
9054 | " {last_section=section; section=\$ 3};"\ | |
9055 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
9056 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
9d54db95 JF |
9057 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
9058 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
9059 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
a243b558 JF |
9060 | " \$ 0!~/External *\|/{next};"\ |
9061 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
9062 | " {if(hide[section]) next};"\ | |
9d54db95 JF |
9063 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
9064 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
9065 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
9066 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
a243b558 JF |
9067 | " ' prfx=^$ac_symprfx" |
9068 | else | |
9069 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
9070 | fi | |
9071 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 9072 | |
a243b558 JF |
9073 | # Check to see that the pipe works correctly. |
9074 | pipe_works=no | |
9c60689e | 9075 | |
00a96142 | 9076 | rm -rf conftest* |
a243b558 JF |
9077 | cat > conftest.$ac_ext <<_LT_EOF |
9078 | #ifdef __cplusplus | |
9079 | extern "C" { | |
9080 | #endif | |
9081 | char nm_test_var; | |
9082 | void nm_test_func(void); | |
9083 | void nm_test_func(void){} | |
9084 | #ifdef __cplusplus | |
9085 | } | |
9086 | #endif | |
9087 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
9088 | _LT_EOF | |
9c60689e | 9089 | |
a243b558 JF |
9090 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
9091 | (eval $ac_compile) 2>&5 | |
9092 | ac_status=$? | |
9093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9094 | test $ac_status = 0; }; then | |
9095 | # Now try to grab the symbols. | |
9096 | nlist=conftest.nm | |
9097 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
9098 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
9099 | ac_status=$? | |
9100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9101 | test $ac_status = 0; } && test -s "$nlist"; then | |
9102 | # Try sorting and uniquifying the output. | |
9103 | if sort "$nlist" | uniq > "$nlist"T; then | |
9104 | mv -f "$nlist"T "$nlist" | |
9105 | else | |
9106 | rm -f "$nlist"T | |
9107 | fi | |
9c60689e | 9108 | |
a243b558 JF |
9109 | # Make sure that we snagged all the symbols we need. |
9110 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
9111 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
9112 | cat <<_LT_EOF > conftest.$ac_ext | |
9113 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
9d54db95 JF |
9114 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
9115 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
a243b558 JF |
9116 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
9117 | # define LT_DLSYM_CONST | |
9d54db95 | 9118 | #elif defined __osf__ |
a243b558 JF |
9119 | /* This system does not cope well with relocations in const data. */ |
9120 | # define LT_DLSYM_CONST | |
9121 | #else | |
9122 | # define LT_DLSYM_CONST const | |
9123 | #endif | |
9c60689e | 9124 | |
a243b558 JF |
9125 | #ifdef __cplusplus |
9126 | extern "C" { | |
9127 | #endif | |
9c60689e | 9128 | |
a243b558 JF |
9129 | _LT_EOF |
9130 | # Now generate the symbol file. | |
9131 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 9132 | |
a243b558 | 9133 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 9134 | |
a243b558 JF |
9135 | /* The mapping between symbol names and symbols. */ |
9136 | LT_DLSYM_CONST struct { | |
9137 | const char *name; | |
9138 | void *address; | |
9139 | } | |
9140 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
9141 | { | |
9142 | { "@PROGRAM@", (void *) 0 }, | |
9143 | _LT_EOF | |
9d54db95 | 9144 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
a243b558 JF |
9145 | cat <<\_LT_EOF >> conftest.$ac_ext |
9146 | {0, (void *) 0} | |
9147 | }; | |
9c60689e | 9148 | |
a243b558 JF |
9149 | /* This works around a problem in FreeBSD linker */ |
9150 | #ifdef FREEBSD_WORKAROUND | |
9151 | static const void *lt_preloaded_setup() { | |
9152 | return lt__PROGRAM__LTX_preloaded_symbols; | |
9153 | } | |
9154 | #endif | |
9c60689e | 9155 | |
a243b558 JF |
9156 | #ifdef __cplusplus |
9157 | } | |
9158 | #endif | |
9159 | _LT_EOF | |
9160 | # Now try linking the two files. | |
9161 | mv conftest.$ac_objext conftstm.$ac_objext | |
9162 | lt_globsym_save_LIBS=$LIBS | |
9163 | lt_globsym_save_CFLAGS=$CFLAGS | |
9d54db95 | 9164 | LIBS=conftstm.$ac_objext |
a243b558 JF |
9165 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
9166 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9167 | (eval $ac_link) 2>&5 | |
9168 | ac_status=$? | |
9169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 9170 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
a243b558 JF |
9171 | pipe_works=yes |
9172 | fi | |
9173 | LIBS=$lt_globsym_save_LIBS | |
9174 | CFLAGS=$lt_globsym_save_CFLAGS | |
9175 | else | |
9176 | echo "cannot find nm_test_func in $nlist" >&5 | |
9177 | fi | |
9178 | else | |
9179 | echo "cannot find nm_test_var in $nlist" >&5 | |
9180 | fi | |
9181 | else | |
9182 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
9183 | fi | |
9184 | else | |
9185 | echo "$progname: failed program was:" >&5 | |
9186 | cat conftest.$ac_ext >&5 | |
9187 | fi | |
9188 | rm -rf conftest* conftst* | |
9c60689e | 9189 | |
a243b558 | 9190 | # Do not use the global_symbol_pipe unless it works. |
9d54db95 | 9191 | if test yes = "$pipe_works"; then |
a243b558 JF |
9192 | break |
9193 | else | |
9194 | lt_cv_sys_global_symbol_pipe= | |
9195 | fi | |
9196 | done | |
9c60689e | 9197 | |
9c60689e | 9198 | fi |
9c60689e | 9199 | |
a243b558 JF |
9200 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
9201 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 9202 | fi |
a243b558 JF |
9203 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
9205 | $as_echo "failed" >&6; } | |
9c60689e | 9206 | else |
a243b558 JF |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9208 | $as_echo "ok" >&6; } | |
9c60689e DWT |
9209 | fi |
9210 | ||
a243b558 JF |
9211 | # Response file support. |
9212 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9213 | nm_file_list_spec='@' | |
9214 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
9215 | nm_file_list_spec='@' | |
9c60689e | 9216 | fi |
9c60689e | 9217 | |
9c60689e | 9218 | |
9c60689e | 9219 | |
9c60689e | 9220 | |
9c60689e | 9221 | |
9c60689e DWT |
9222 | |
9223 | ||
9c60689e | 9224 | |
9c60689e | 9225 | |
9c60689e DWT |
9226 | |
9227 | ||
9228 | ||
ee134472 JF |
9229 | |
9230 | ||
9c60689e DWT |
9231 | |
9232 | ||
9d54db95 JF |
9233 | |
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | ||
9c60689e DWT |
9243 | |
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | ||
549f29b5 | 9250 | |
549f29b5 DWT |
9251 | |
9252 | ||
549f29b5 | 9253 | |
a243b558 JF |
9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
9255 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 9256 | |
a243b558 JF |
9257 | # Check whether --with-sysroot was given. |
9258 | if test "${with_sysroot+set}" = set; then : | |
9259 | withval=$with_sysroot; | |
9c60689e | 9260 | else |
a243b558 | 9261 | with_sysroot=no |
9c60689e DWT |
9262 | fi |
9263 | ||
9264 | ||
a243b558 | 9265 | lt_sysroot= |
9d54db95 | 9266 | case $with_sysroot in #( |
a243b558 | 9267 | yes) |
9d54db95 | 9268 | if test yes = "$GCC"; then |
a243b558 JF |
9269 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
9270 | fi | |
9271 | ;; #( | |
9272 | /*) | |
9273 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
9274 | ;; #( | |
9275 | no|'') | |
9276 | ;; #( | |
9277 | *) | |
9d54db95 JF |
9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
9279 | $as_echo "$with_sysroot" >&6; } | |
a243b558 JF |
9280 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
9281 | ;; | |
9282 | esac | |
9c60689e | 9283 | |
a243b558 JF |
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
9285 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
9286 | |
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9d54db95 JF |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
9292 | $as_echo_n "checking for a working dd... " >&6; } | |
9293 | if ${ac_cv_path_lt_DD+:} false; then : | |
9294 | $as_echo_n "(cached) " >&6 | |
9295 | else | |
9296 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
9297 | cat conftest.i conftest.i >conftest2.i | |
9298 | : ${lt_DD:=$DD} | |
9299 | if test -z "$lt_DD"; then | |
9300 | ac_path_lt_DD_found=false | |
9301 | # Loop through the user's path and test for each of PROGNAME-LIST | |
9302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9303 | for as_dir in $PATH | |
9304 | do | |
9305 | IFS=$as_save_IFS | |
9306 | test -z "$as_dir" && as_dir=. | |
9307 | for ac_prog in dd; do | |
9308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9309 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
9310 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
9311 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
9312 | cmp -s conftest.i conftest.out \ | |
9313 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
9314 | fi | |
9315 | $ac_path_lt_DD_found && break 3 | |
9316 | done | |
9317 | done | |
9318 | done | |
9319 | IFS=$as_save_IFS | |
9320 | if test -z "$ac_cv_path_lt_DD"; then | |
9321 | : | |
9322 | fi | |
9323 | else | |
9324 | ac_cv_path_lt_DD=$lt_DD | |
9325 | fi | |
9326 | ||
9327 | rm -f conftest.i conftest2.i conftest.out | |
9328 | fi | |
9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
9330 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
9331 | ||
9332 | ||
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
9334 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
9335 | if ${lt_cv_truncate_bin+:} false; then : | |
9336 | $as_echo_n "(cached) " >&6 | |
9337 | else | |
9338 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
9339 | cat conftest.i conftest.i >conftest2.i | |
9340 | lt_cv_truncate_bin= | |
9341 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
9342 | cmp -s conftest.i conftest.out \ | |
9343 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
9344 | fi | |
9345 | rm -f conftest.i conftest2.i conftest.out | |
9346 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
9347 | fi | |
9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
9349 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
9358 | func_cc_basename () | |
9359 | { | |
9360 | for cc_temp in $*""; do | |
9361 | case $cc_temp in | |
9362 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9363 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9364 | \-*) ;; | |
9365 | *) break;; | |
9366 | esac | |
9367 | done | |
9368 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9369 | } | |
9370 | ||
a243b558 JF |
9371 | # Check whether --enable-libtool-lock was given. |
9372 | if test "${enable_libtool_lock+set}" = set; then : | |
9373 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
9374 | fi |
9375 | ||
9d54db95 | 9376 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
9c60689e | 9377 | |
a243b558 JF |
9378 | # Some flags need to be propagated to the compiler or linker for good |
9379 | # libtool support. | |
9380 | case $host in | |
9381 | ia64-*-hpux*) | |
9d54db95 JF |
9382 | # Find out what ABI is being produced by ac_compile, and set mode |
9383 | # options accordingly. | |
a243b558 JF |
9384 | echo 'int i;' > conftest.$ac_ext |
9385 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9386 | (eval $ac_compile) 2>&5 | |
9387 | ac_status=$? | |
9388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9389 | test $ac_status = 0; }; then | |
9390 | case `/usr/bin/file conftest.$ac_objext` in | |
9391 | *ELF-32*) | |
9d54db95 | 9392 | HPUX_IA64_MODE=32 |
a243b558 JF |
9393 | ;; |
9394 | *ELF-64*) | |
9d54db95 | 9395 | HPUX_IA64_MODE=64 |
a243b558 JF |
9396 | ;; |
9397 | esac | |
9398 | fi | |
9399 | rm -rf conftest* | |
9400 | ;; | |
9401 | *-*-irix6*) | |
9d54db95 JF |
9402 | # Find out what ABI is being produced by ac_compile, and set linker |
9403 | # options accordingly. | |
a243b558 JF |
9404 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
9405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9406 | (eval $ac_compile) 2>&5 | |
9407 | ac_status=$? | |
9408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9409 | test $ac_status = 0; }; then | |
9d54db95 | 9410 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
9411 | case `/usr/bin/file conftest.$ac_objext` in |
9412 | *32-bit*) | |
9413 | LD="${LD-ld} -melf32bsmip" | |
9414 | ;; | |
9415 | *N32*) | |
9416 | LD="${LD-ld} -melf32bmipn32" | |
9417 | ;; | |
9418 | *64-bit*) | |
9419 | LD="${LD-ld} -melf64bmip" | |
9420 | ;; | |
9421 | esac | |
9422 | else | |
9423 | case `/usr/bin/file conftest.$ac_objext` in | |
9424 | *32-bit*) | |
9425 | LD="${LD-ld} -32" | |
9426 | ;; | |
9427 | *N32*) | |
9428 | LD="${LD-ld} -n32" | |
9429 | ;; | |
9430 | *64-bit*) | |
9431 | LD="${LD-ld} -64" | |
9432 | ;; | |
9433 | esac | |
9434 | fi | |
9435 | fi | |
9436 | rm -rf conftest* | |
9437 | ;; | |
9c60689e | 9438 | |
9d54db95 JF |
9439 | mips64*-*linux*) |
9440 | # Find out what ABI is being produced by ac_compile, and set linker | |
9441 | # options accordingly. | |
9442 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
9443 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9444 | (eval $ac_compile) 2>&5 | |
9445 | ac_status=$? | |
9446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9447 | test $ac_status = 0; }; then | |
9448 | emul=elf | |
9449 | case `/usr/bin/file conftest.$ac_objext` in | |
9450 | *32-bit*) | |
9451 | emul="${emul}32" | |
9452 | ;; | |
9453 | *64-bit*) | |
9454 | emul="${emul}64" | |
9455 | ;; | |
9456 | esac | |
9457 | case `/usr/bin/file conftest.$ac_objext` in | |
9458 | *MSB*) | |
9459 | emul="${emul}btsmip" | |
9460 | ;; | |
9461 | *LSB*) | |
9462 | emul="${emul}ltsmip" | |
9463 | ;; | |
9464 | esac | |
9465 | case `/usr/bin/file conftest.$ac_objext` in | |
9466 | *N32*) | |
9467 | emul="${emul}n32" | |
9468 | ;; | |
9469 | esac | |
9470 | LD="${LD-ld} -m $emul" | |
9471 | fi | |
9472 | rm -rf conftest* | |
9473 | ;; | |
9474 | ||
9475 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
a243b558 | 9476 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
9d54db95 JF |
9477 | # Find out what ABI is being produced by ac_compile, and set linker |
9478 | # options accordingly. Note that the listed cases only cover the | |
9479 | # situations where additional linker options are needed (such as when | |
9480 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
9481 | # vice versa); the common cases where no linker options are needed do | |
9482 | # not appear in the list. | |
a243b558 JF |
9483 | echo 'int i;' > conftest.$ac_ext |
9484 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9485 | (eval $ac_compile) 2>&5 | |
9486 | ac_status=$? | |
9487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9488 | test $ac_status = 0; }; then | |
9489 | case `/usr/bin/file conftest.o` in | |
9490 | *32-bit*) | |
9491 | case $host in | |
9492 | x86_64-*kfreebsd*-gnu) | |
9493 | LD="${LD-ld} -m elf_i386_fbsd" | |
9494 | ;; | |
9495 | x86_64-*linux*) | |
9d54db95 JF |
9496 | case `/usr/bin/file conftest.o` in |
9497 | *x86-64*) | |
9498 | LD="${LD-ld} -m elf32_x86_64" | |
9499 | ;; | |
9500 | *) | |
9501 | LD="${LD-ld} -m elf_i386" | |
9502 | ;; | |
9503 | esac | |
a243b558 | 9504 | ;; |
9d54db95 JF |
9505 | powerpc64le-*linux*) |
9506 | LD="${LD-ld} -m elf32lppclinux" | |
9507 | ;; | |
9508 | powerpc64-*linux*) | |
a243b558 JF |
9509 | LD="${LD-ld} -m elf32ppclinux" |
9510 | ;; | |
9511 | s390x-*linux*) | |
9512 | LD="${LD-ld} -m elf_s390" | |
9513 | ;; | |
9514 | sparc64-*linux*) | |
9515 | LD="${LD-ld} -m elf32_sparc" | |
9516 | ;; | |
9517 | esac | |
9518 | ;; | |
9519 | *64-bit*) | |
9520 | case $host in | |
9521 | x86_64-*kfreebsd*-gnu) | |
9522 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
9523 | ;; | |
9524 | x86_64-*linux*) | |
9525 | LD="${LD-ld} -m elf_x86_64" | |
9526 | ;; | |
9d54db95 JF |
9527 | powerpcle-*linux*) |
9528 | LD="${LD-ld} -m elf64lppc" | |
9529 | ;; | |
9530 | powerpc-*linux*) | |
a243b558 JF |
9531 | LD="${LD-ld} -m elf64ppc" |
9532 | ;; | |
9533 | s390*-*linux*|s390*-*tpf*) | |
9534 | LD="${LD-ld} -m elf64_s390" | |
9535 | ;; | |
9536 | sparc*-*linux*) | |
9537 | LD="${LD-ld} -m elf64_sparc" | |
9538 | ;; | |
9539 | esac | |
9540 | ;; | |
9541 | esac | |
9542 | fi | |
9543 | rm -rf conftest* | |
9544 | ;; | |
9c60689e | 9545 | |
a243b558 JF |
9546 | *-*-sco3.2v5*) |
9547 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
9d54db95 | 9548 | SAVE_CFLAGS=$CFLAGS |
a243b558 JF |
9549 | CFLAGS="$CFLAGS -belf" |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
9551 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
9552 | if ${lt_cv_cc_needs_belf+:} false; then : | |
9553 | $as_echo_n "(cached) " >&6 | |
9554 | else | |
9555 | ac_ext=c | |
9556 | ac_cpp='$CPP $CPPFLAGS' | |
9557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 9560 | |
a243b558 JF |
9561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9562 | /* end confdefs.h. */ | |
9c60689e | 9563 | |
a243b558 JF |
9564 | int |
9565 | main () | |
9566 | { | |
9c60689e | 9567 | |
a243b558 JF |
9568 | ; |
9569 | return 0; | |
9570 | } | |
9571 | _ACEOF | |
9572 | if ac_fn_c_try_link "$LINENO"; then : | |
9573 | lt_cv_cc_needs_belf=yes | |
9c60689e | 9574 | else |
a243b558 | 9575 | lt_cv_cc_needs_belf=no |
9c60689e | 9576 | fi |
a243b558 JF |
9577 | rm -f core conftest.err conftest.$ac_objext \ |
9578 | conftest$ac_exeext conftest.$ac_ext | |
9579 | ac_ext=c | |
9580 | ac_cpp='$CPP $CPPFLAGS' | |
9581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 9584 | |
a243b558 JF |
9585 | fi |
9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
9587 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
9d54db95 | 9588 | if test yes != "$lt_cv_cc_needs_belf"; then |
a243b558 | 9589 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
9d54db95 | 9590 | CFLAGS=$SAVE_CFLAGS |
a243b558 JF |
9591 | fi |
9592 | ;; | |
9593 | *-*solaris*) | |
9d54db95 JF |
9594 | # Find out what ABI is being produced by ac_compile, and set linker |
9595 | # options accordingly. | |
a243b558 JF |
9596 | echo 'int i;' > conftest.$ac_ext |
9597 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9598 | (eval $ac_compile) 2>&5 | |
9599 | ac_status=$? | |
9600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9601 | test $ac_status = 0; }; then | |
9602 | case `/usr/bin/file conftest.o` in | |
9603 | *64-bit*) | |
9604 | case $lt_cv_prog_gnu_ld in | |
9605 | yes*) | |
9606 | case $host in | |
9d54db95 | 9607 | i?86-*-solaris*|x86_64-*-solaris*) |
a243b558 JF |
9608 | LD="${LD-ld} -m elf_x86_64" |
9609 | ;; | |
9610 | sparc*-*-solaris*) | |
9611 | LD="${LD-ld} -m elf64_sparc" | |
9612 | ;; | |
9613 | esac | |
9614 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
9615 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
9d54db95 | 9616 | LD=${LD-ld}_sol2 |
a243b558 JF |
9617 | fi |
9618 | ;; | |
9619 | *) | |
9620 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
9621 | LD="${LD-ld} -64" | |
9622 | fi | |
9623 | ;; | |
9624 | esac | |
9625 | ;; | |
9626 | esac | |
9627 | fi | |
9628 | rm -rf conftest* | |
9629 | ;; | |
9630 | esac | |
9c60689e | 9631 | |
9d54db95 | 9632 | need_locks=$enable_libtool_lock |
9c60689e | 9633 | |
a243b558 JF |
9634 | if test -n "$ac_tool_prefix"; then |
9635 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
9636 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9638 | $as_echo_n "checking for $ac_word... " >&6; } | |
9639 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
9640 | $as_echo_n "(cached) " >&6 | |
9641 | else | |
9642 | if test -n "$MANIFEST_TOOL"; then | |
9643 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
9644 | else | |
9645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9646 | for as_dir in $PATH | |
9647 | do | |
9648 | IFS=$as_save_IFS | |
9649 | test -z "$as_dir" && as_dir=. | |
9650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9652 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
9653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9654 | break 2 | |
9655 | fi | |
9656 | done | |
9657 | done | |
9658 | IFS=$as_save_IFS | |
9c60689e | 9659 | |
a243b558 JF |
9660 | fi |
9661 | fi | |
9662 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
9663 | if test -n "$MANIFEST_TOOL"; then | |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
9665 | $as_echo "$MANIFEST_TOOL" >&6; } | |
9666 | else | |
9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9668 | $as_echo "no" >&6; } | |
9669 | fi | |
9c60689e DWT |
9670 | |
9671 | ||
a243b558 JF |
9672 | fi |
9673 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
9674 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
9675 | # Extract the first word of "mt", so it can be a program name with args. | |
9676 | set dummy mt; ac_word=$2 | |
9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9678 | $as_echo_n "checking for $ac_word... " >&6; } | |
9679 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
9680 | $as_echo_n "(cached) " >&6 | |
9681 | else | |
9682 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
9683 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
9684 | else | |
9685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9686 | for as_dir in $PATH | |
9687 | do | |
9688 | IFS=$as_save_IFS | |
9689 | test -z "$as_dir" && as_dir=. | |
9690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9692 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
9693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9694 | break 2 | |
9695 | fi | |
9696 | done | |
9697 | done | |
9698 | IFS=$as_save_IFS | |
9c60689e | 9699 | |
a243b558 JF |
9700 | fi |
9701 | fi | |
9702 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
9703 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
9705 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
9706 | else | |
9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9708 | $as_echo "no" >&6; } | |
9709 | fi | |
9c60689e | 9710 | |
a243b558 JF |
9711 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
9712 | MANIFEST_TOOL=":" | |
9713 | else | |
9714 | case $cross_compiling:$ac_tool_warned in | |
9715 | yes:) | |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9717 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9718 | ac_tool_warned=yes ;; | |
9719 | esac | |
9720 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
9721 | fi | |
9722 | else | |
9723 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
9724 | fi | |
9c60689e | 9725 | |
a243b558 JF |
9726 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
9728 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
9729 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
9730 | $as_echo_n "(cached) " >&6 | |
9731 | else | |
9732 | lt_cv_path_mainfest_tool=no | |
9733 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
9734 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
9735 | cat conftest.err >&5 | |
9736 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
9737 | lt_cv_path_mainfest_tool=yes | |
9738 | fi | |
00a96142 | 9739 | rm -rf conftest* |
a243b558 JF |
9740 | fi |
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
9742 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
9d54db95 | 9743 | if test yes != "$lt_cv_path_mainfest_tool"; then |
a243b558 JF |
9744 | MANIFEST_TOOL=: |
9745 | fi | |
9c60689e DWT |
9746 | |
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
a243b558 JF |
9752 | case $host_os in |
9753 | rhapsody* | darwin*) | |
9754 | if test -n "$ac_tool_prefix"; then | |
9755 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
9756 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9758 | $as_echo_n "checking for $ac_word... " >&6; } | |
9759 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
9760 | $as_echo_n "(cached) " >&6 | |
9761 | else | |
9762 | if test -n "$DSYMUTIL"; then | |
9763 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
9764 | else | |
9765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9766 | for as_dir in $PATH | |
9767 | do | |
9768 | IFS=$as_save_IFS | |
9769 | test -z "$as_dir" && as_dir=. | |
9770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9772 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
9773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9774 | break 2 | |
9775 | fi | |
9776 | done | |
9777 | done | |
9778 | IFS=$as_save_IFS | |
9c60689e | 9779 | |
a243b558 JF |
9780 | fi |
9781 | fi | |
9782 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
9783 | if test -n "$DSYMUTIL"; then | |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
9785 | $as_echo "$DSYMUTIL" >&6; } | |
9786 | else | |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9788 | $as_echo "no" >&6; } | |
9789 | fi | |
9c60689e DWT |
9790 | |
9791 | ||
9c60689e | 9792 | fi |
a243b558 JF |
9793 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
9794 | ac_ct_DSYMUTIL=$DSYMUTIL | |
9795 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
9796 | set dummy dsymutil; ac_word=$2 | |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9798 | $as_echo_n "checking for $ac_word... " >&6; } | |
9799 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
9800 | $as_echo_n "(cached) " >&6 |
9801 | else | |
a243b558 JF |
9802 | if test -n "$ac_ct_DSYMUTIL"; then |
9803 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 9804 | else |
a243b558 JF |
9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9806 | for as_dir in $PATH | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
9810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9812 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
9813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9814 | break 2 | |
9815 | fi | |
9816 | done | |
9817 | done | |
9818 | IFS=$as_save_IFS | |
9819 | ||
9c60689e | 9820 | fi |
9c60689e | 9821 | fi |
a243b558 JF |
9822 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
9823 | if test -n "$ac_ct_DSYMUTIL"; then | |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
9825 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
9826 | else | |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9828 | $as_echo "no" >&6; } | |
9829 | fi | |
9c60689e | 9830 | |
a243b558 JF |
9831 | if test "x$ac_ct_DSYMUTIL" = x; then |
9832 | DSYMUTIL=":" | |
9833 | else | |
9834 | case $cross_compiling:$ac_tool_warned in | |
9835 | yes:) | |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9838 | ac_tool_warned=yes ;; | |
9c60689e | 9839 | esac |
a243b558 JF |
9840 | DSYMUTIL=$ac_ct_DSYMUTIL |
9841 | fi | |
9842 | else | |
9843 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
9844 | fi | |
9c60689e | 9845 | |
a243b558 JF |
9846 | if test -n "$ac_tool_prefix"; then |
9847 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
9848 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9850 | $as_echo_n "checking for $ac_word... " >&6; } | |
9851 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
9852 | $as_echo_n "(cached) " >&6 |
9853 | else | |
a243b558 JF |
9854 | if test -n "$NMEDIT"; then |
9855 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
9856 | else | |
9857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9858 | for as_dir in $PATH | |
9859 | do | |
9860 | IFS=$as_save_IFS | |
9861 | test -z "$as_dir" && as_dir=. | |
9862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9864 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
9865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9866 | break 2 | |
9867 | fi | |
9868 | done | |
9c60689e | 9869 | done |
a243b558 | 9870 | IFS=$as_save_IFS |
9c60689e | 9871 | |
a243b558 JF |
9872 | fi |
9873 | fi | |
9874 | NMEDIT=$ac_cv_prog_NMEDIT | |
9875 | if test -n "$NMEDIT"; then | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
9877 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
9878 | else |
9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9880 | $as_echo "no" >&6; } | |
9881 | fi | |
9882 | ||
9883 | ||
a243b558 JF |
9884 | fi |
9885 | if test -z "$ac_cv_prog_NMEDIT"; then | |
9886 | ac_ct_NMEDIT=$NMEDIT | |
9887 | # Extract the first word of "nmedit", so it can be a program name with args. | |
9888 | set dummy nmedit; ac_word=$2 | |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9890 | $as_echo_n "checking for $ac_word... " >&6; } | |
9891 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
9892 | $as_echo_n "(cached) " >&6 |
9893 | else | |
a243b558 JF |
9894 | if test -n "$ac_ct_NMEDIT"; then |
9895 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
9896 | else | |
9897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9898 | for as_dir in $PATH | |
9899 | do | |
9900 | IFS=$as_save_IFS | |
9901 | test -z "$as_dir" && as_dir=. | |
9902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9904 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
9905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9906 | break 2 | |
9907 | fi | |
9908 | done | |
9c60689e | 9909 | done |
a243b558 | 9910 | IFS=$as_save_IFS |
9c60689e | 9911 | |
a243b558 JF |
9912 | fi |
9913 | fi | |
9914 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
9915 | if test -n "$ac_ct_NMEDIT"; then | |
9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
9917 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
9918 | else |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9920 | $as_echo "no" >&6; } | |
9921 | fi | |
9922 | ||
a243b558 JF |
9923 | if test "x$ac_ct_NMEDIT" = x; then |
9924 | NMEDIT=":" | |
9c60689e | 9925 | else |
a243b558 JF |
9926 | case $cross_compiling:$ac_tool_warned in |
9927 | yes:) | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9929 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9930 | ac_tool_warned=yes ;; | |
9931 | esac | |
9932 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 9933 | fi |
a243b558 JF |
9934 | else |
9935 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
9936 | fi |
9937 | ||
a243b558 JF |
9938 | if test -n "$ac_tool_prefix"; then |
9939 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
9940 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9942 | $as_echo_n "checking for $ac_word... " >&6; } | |
9943 | if ${ac_cv_prog_LIPO+:} false; then : | |
9944 | $as_echo_n "(cached) " >&6 | |
9945 | else | |
9946 | if test -n "$LIPO"; then | |
9947 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9948 | else | |
9949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9950 | for as_dir in $PATH | |
9951 | do | |
9952 | IFS=$as_save_IFS | |
9953 | test -z "$as_dir" && as_dir=. | |
9954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9956 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
9957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9958 | break 2 | |
9959 | fi | |
9960 | done | |
9961 | done | |
9962 | IFS=$as_save_IFS | |
9c60689e | 9963 | |
a243b558 JF |
9964 | fi |
9965 | fi | |
9966 | LIPO=$ac_cv_prog_LIPO | |
9967 | if test -n "$LIPO"; then | |
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
9969 | $as_echo "$LIPO" >&6; } | |
9970 | else | |
9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9972 | $as_echo "no" >&6; } | |
9973 | fi | |
9c60689e | 9974 | |
9c60689e | 9975 | |
a243b558 JF |
9976 | fi |
9977 | if test -z "$ac_cv_prog_LIPO"; then | |
9978 | ac_ct_LIPO=$LIPO | |
9979 | # Extract the first word of "lipo", so it can be a program name with args. | |
9980 | set dummy lipo; ac_word=$2 | |
9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9982 | $as_echo_n "checking for $ac_word... " >&6; } | |
9983 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
9984 | $as_echo_n "(cached) " >&6 |
9985 | else | |
a243b558 JF |
9986 | if test -n "$ac_ct_LIPO"; then |
9987 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
9988 | else | |
9989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9990 | for as_dir in $PATH | |
9991 | do | |
9992 | IFS=$as_save_IFS | |
9993 | test -z "$as_dir" && as_dir=. | |
9994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9996 | ac_cv_prog_ac_ct_LIPO="lipo" | |
9997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9998 | break 2 | |
9999 | fi | |
10000 | done | |
10001 | done | |
10002 | IFS=$as_save_IFS | |
9c60689e DWT |
10003 | |
10004 | fi | |
a243b558 JF |
10005 | fi |
10006 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
10007 | if test -n "$ac_ct_LIPO"; then | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
10009 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 10010 | else |
a243b558 JF |
10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10012 | $as_echo "no" >&6; } | |
9c60689e DWT |
10013 | fi |
10014 | ||
a243b558 JF |
10015 | if test "x$ac_ct_LIPO" = x; then |
10016 | LIPO=":" | |
10017 | else | |
10018 | case $cross_compiling:$ac_tool_warned in | |
10019 | yes:) | |
10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10022 | ac_tool_warned=yes ;; | |
10023 | esac | |
10024 | LIPO=$ac_ct_LIPO | |
10025 | fi | |
10026 | else | |
10027 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
10028 | fi |
10029 | ||
a243b558 JF |
10030 | if test -n "$ac_tool_prefix"; then |
10031 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
10032 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10034 | $as_echo_n "checking for $ac_word... " >&6; } | |
10035 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10036 | $as_echo_n "(cached) " >&6 | |
10037 | else | |
10038 | if test -n "$OTOOL"; then | |
10039 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10040 | else | |
10041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10042 | for as_dir in $PATH | |
10043 | do | |
10044 | IFS=$as_save_IFS | |
10045 | test -z "$as_dir" && as_dir=. | |
10046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10048 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
10049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10050 | break 2 | |
10051 | fi | |
10052 | done | |
10053 | done | |
10054 | IFS=$as_save_IFS | |
9c60689e | 10055 | |
a243b558 JF |
10056 | fi |
10057 | fi | |
10058 | OTOOL=$ac_cv_prog_OTOOL | |
10059 | if test -n "$OTOOL"; then | |
10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10061 | $as_echo "$OTOOL" >&6; } | |
10062 | else | |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10064 | $as_echo "no" >&6; } | |
10065 | fi | |
9c60689e DWT |
10066 | |
10067 | ||
a243b558 JF |
10068 | fi |
10069 | if test -z "$ac_cv_prog_OTOOL"; then | |
10070 | ac_ct_OTOOL=$OTOOL | |
10071 | # Extract the first word of "otool", so it can be a program name with args. | |
10072 | set dummy otool; ac_word=$2 | |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10074 | $as_echo_n "checking for $ac_word... " >&6; } | |
10075 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
10076 | $as_echo_n "(cached) " >&6 | |
10077 | else | |
10078 | if test -n "$ac_ct_OTOOL"; then | |
10079 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
10080 | else | |
10081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10082 | for as_dir in $PATH | |
10083 | do | |
10084 | IFS=$as_save_IFS | |
10085 | test -z "$as_dir" && as_dir=. | |
10086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10088 | ac_cv_prog_ac_ct_OTOOL="otool" | |
10089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10090 | break 2 | |
10091 | fi | |
10092 | done | |
10093 | done | |
10094 | IFS=$as_save_IFS | |
9c60689e | 10095 | |
a243b558 JF |
10096 | fi |
10097 | fi | |
10098 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
10099 | if test -n "$ac_ct_OTOOL"; then | |
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
10101 | $as_echo "$ac_ct_OTOOL" >&6; } | |
10102 | else | |
10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10104 | $as_echo "no" >&6; } | |
10105 | fi | |
9c60689e | 10106 | |
a243b558 JF |
10107 | if test "x$ac_ct_OTOOL" = x; then |
10108 | OTOOL=":" | |
10109 | else | |
10110 | case $cross_compiling:$ac_tool_warned in | |
10111 | yes:) | |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10113 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10114 | ac_tool_warned=yes ;; | |
10115 | esac | |
10116 | OTOOL=$ac_ct_OTOOL | |
10117 | fi | |
10118 | else | |
10119 | OTOOL="$ac_cv_prog_OTOOL" | |
10120 | fi | |
9c60689e | 10121 | |
a243b558 JF |
10122 | if test -n "$ac_tool_prefix"; then |
10123 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
10124 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10126 | $as_echo_n "checking for $ac_word... " >&6; } | |
10127 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
10128 | $as_echo_n "(cached) " >&6 | |
10129 | else | |
10130 | if test -n "$OTOOL64"; then | |
10131 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
10132 | else | |
10133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10134 | for as_dir in $PATH | |
10135 | do | |
10136 | IFS=$as_save_IFS | |
10137 | test -z "$as_dir" && as_dir=. | |
10138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10140 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
10141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10142 | break 2 | |
10143 | fi | |
10144 | done | |
10145 | done | |
10146 | IFS=$as_save_IFS | |
9c60689e | 10147 | |
a243b558 JF |
10148 | fi |
10149 | fi | |
10150 | OTOOL64=$ac_cv_prog_OTOOL64 | |
10151 | if test -n "$OTOOL64"; then | |
10152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
10153 | $as_echo "$OTOOL64" >&6; } | |
10154 | else | |
10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10156 | $as_echo "no" >&6; } | |
10157 | fi | |
9c60689e | 10158 | |
9c60689e | 10159 | |
a243b558 JF |
10160 | fi |
10161 | if test -z "$ac_cv_prog_OTOOL64"; then | |
10162 | ac_ct_OTOOL64=$OTOOL64 | |
10163 | # Extract the first word of "otool64", so it can be a program name with args. | |
10164 | set dummy otool64; ac_word=$2 | |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10166 | $as_echo_n "checking for $ac_word... " >&6; } | |
10167 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
10168 | $as_echo_n "(cached) " >&6 | |
10169 | else | |
10170 | if test -n "$ac_ct_OTOOL64"; then | |
10171 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
10172 | else | |
10173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10174 | for as_dir in $PATH | |
10175 | do | |
10176 | IFS=$as_save_IFS | |
10177 | test -z "$as_dir" && as_dir=. | |
10178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10180 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
10181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10182 | break 2 | |
10183 | fi | |
10184 | done | |
10185 | done | |
10186 | IFS=$as_save_IFS | |
9c60689e | 10187 | |
a243b558 JF |
10188 | fi |
10189 | fi | |
10190 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
10191 | if test -n "$ac_ct_OTOOL64"; then | |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
10193 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
10194 | else | |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10196 | $as_echo "no" >&6; } | |
10197 | fi | |
9c60689e | 10198 | |
a243b558 JF |
10199 | if test "x$ac_ct_OTOOL64" = x; then |
10200 | OTOOL64=":" | |
10201 | else | |
10202 | case $cross_compiling:$ac_tool_warned in | |
10203 | yes:) | |
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10205 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10206 | ac_tool_warned=yes ;; | |
10207 | esac | |
10208 | OTOOL64=$ac_ct_OTOOL64 | |
10209 | fi | |
10210 | else | |
10211 | OTOOL64="$ac_cv_prog_OTOOL64" | |
10212 | fi | |
ee134472 | 10213 | |
9c60689e | 10214 | |
9c60689e | 10215 | |
9c60689e | 10216 | |
9c60689e | 10217 | |
9c60689e | 10218 | |
ee134472 | 10219 | |
9c60689e | 10220 | |
9c60689e | 10221 | |
9c60689e | 10222 | |
9c60689e | 10223 | |
9c60689e | 10224 | |
9c60689e | 10225 | |
9c60689e | 10226 | |
9c60689e | 10227 | |
9c60689e | 10228 | |
9c60689e | 10229 | |
9c60689e | 10230 | |
9c60689e | 10231 | |
9c60689e | 10232 | |
9c60689e | 10233 | |
9c60689e | 10234 | |
9c60689e | 10235 | |
9c60689e | 10236 | |
9c60689e | 10237 | |
a243b558 JF |
10238 | |
10239 | ||
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
10241 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
10242 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
10243 | $as_echo_n "(cached) " >&6 |
10244 | else | |
a243b558 | 10245 | lt_cv_apple_cc_single_mod=no |
9d54db95 | 10246 | if test -z "$LT_MULTI_MODULE"; then |
a243b558 JF |
10247 | # By default we will add the -single_module flag. You can override |
10248 | # by either setting the environment variable LT_MULTI_MODULE | |
10249 | # non-empty at configure time, or by adding -multi_module to the | |
10250 | # link flags. | |
10251 | rm -rf libconftest.dylib* | |
10252 | echo "int foo(void){return 1;}" > conftest.c | |
10253 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
10254 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
10255 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
10256 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
10257 | _lt_result=$? | |
10258 | # If there is a non-empty error log, and "single_module" | |
10259 | # appears in it, assume the flag caused a linker warning | |
10260 | if test -s conftest.err && $GREP single_module conftest.err; then | |
10261 | cat conftest.err >&5 | |
10262 | # Otherwise, if the output was created with a 0 exit code from | |
10263 | # the compiler, it worked. | |
9d54db95 | 10264 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
a243b558 JF |
10265 | lt_cv_apple_cc_single_mod=yes |
10266 | else | |
10267 | cat conftest.err >&5 | |
10268 | fi | |
10269 | rm -rf libconftest.dylib* | |
10270 | rm -f conftest.* | |
10271 | fi | |
ee134472 | 10272 | fi |
a243b558 JF |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
10274 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 10275 | |
a243b558 JF |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
10277 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
10278 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
10279 | $as_echo_n "(cached) " >&6 |
10280 | else | |
a243b558 JF |
10281 | lt_cv_ld_exported_symbols_list=no |
10282 | save_LDFLAGS=$LDFLAGS | |
10283 | echo "_main" > conftest.sym | |
10284 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
10285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10286 | /* end confdefs.h. */ | |
9c60689e | 10287 | |
a243b558 JF |
10288 | int |
10289 | main () | |
10290 | { | |
9c60689e | 10291 | |
a243b558 JF |
10292 | ; |
10293 | return 0; | |
10294 | } | |
10295 | _ACEOF | |
10296 | if ac_fn_c_try_link "$LINENO"; then : | |
10297 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 10298 | else |
a243b558 | 10299 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 10300 | fi |
a243b558 JF |
10301 | rm -f core conftest.err conftest.$ac_objext \ |
10302 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 10303 | LDFLAGS=$save_LDFLAGS |
9c60689e DWT |
10304 | |
10305 | fi | |
a243b558 JF |
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
10307 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 10308 | |
a243b558 JF |
10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
10310 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
10311 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
10312 | $as_echo_n "(cached) " >&6 |
10313 | else | |
a243b558 JF |
10314 | lt_cv_ld_force_load=no |
10315 | cat > conftest.c << _LT_EOF | |
10316 | int forced_loaded() { return 2;} | |
10317 | _LT_EOF | |
10318 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
10319 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
10320 | echo "$AR cru libconftest.a conftest.o" >&5 | |
10321 | $AR cru libconftest.a conftest.o 2>&5 | |
10322 | echo "$RANLIB libconftest.a" >&5 | |
10323 | $RANLIB libconftest.a 2>&5 | |
10324 | cat > conftest.c << _LT_EOF | |
10325 | int main() { return 0;} | |
10326 | _LT_EOF | |
10327 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
10328 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
10329 | _lt_result=$? | |
10330 | if test -s conftest.err && $GREP force_load conftest.err; then | |
10331 | cat conftest.err >&5 | |
9d54db95 | 10332 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
a243b558 JF |
10333 | lt_cv_ld_force_load=yes |
10334 | else | |
10335 | cat conftest.err >&5 | |
10336 | fi | |
10337 | rm -f conftest.err libconftest.a conftest conftest.c | |
10338 | rm -rf conftest.dSYM | |
9c60689e DWT |
10339 | |
10340 | fi | |
a243b558 JF |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
10342 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
10343 | case $host_os in | |
10344 | rhapsody* | darwin1.[012]) | |
9d54db95 | 10345 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
a243b558 | 10346 | darwin1.*) |
9d54db95 | 10347 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
a243b558 JF |
10348 | darwin*) # darwin 5.x on |
10349 | # if running on 10.5 or later, the deployment target defaults | |
10350 | # to the OS version, if on x86, and 10.4, the deployment | |
10351 | # target defaults to 10.4. Don't you love it? | |
10352 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
10353 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9d54db95 JF |
10354 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
10355 | 10.[012][,.]*) | |
10356 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
a243b558 | 10357 | 10.*) |
9d54db95 | 10358 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
a243b558 JF |
10359 | esac |
10360 | ;; | |
10361 | esac | |
9d54db95 | 10362 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
a243b558 JF |
10363 | _lt_dar_single_mod='$single_module' |
10364 | fi | |
9d54db95 JF |
10365 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
10366 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
a243b558 | 10367 | else |
9d54db95 | 10368 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
a243b558 | 10369 | fi |
9d54db95 | 10370 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
a243b558 JF |
10371 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
10372 | else | |
10373 | _lt_dsymutil= | |
10374 | fi | |
10375 | ;; | |
10376 | esac | |
9c60689e | 10377 | |
9d54db95 JF |
10378 | # func_munge_path_list VARIABLE PATH |
10379 | # ----------------------------------- | |
10380 | # VARIABLE is name of variable containing _space_ separated list of | |
10381 | # directories to be munged by the contents of PATH, which is string | |
10382 | # having a format: | |
10383 | # "DIR[:DIR]:" | |
10384 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
10385 | # ":DIR[:DIR]" | |
10386 | # string "DIR[ DIR]" will be appended to VARIABLE | |
10387 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
10388 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
10389 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
10390 | # "DIR[:DIR]" | |
10391 | # VARIABLE will be replaced by "DIR[ DIR]" | |
10392 | func_munge_path_list () | |
10393 | { | |
10394 | case x$2 in | |
10395 | x) | |
10396 | ;; | |
10397 | *:) | |
10398 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
10399 | ;; | |
10400 | x:*) | |
10401 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
10402 | ;; | |
10403 | *::*) | |
10404 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
10405 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
10406 | ;; | |
10407 | *) | |
10408 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
10409 | ;; | |
10410 | esac | |
10411 | } | |
10412 | ||
9c60689e | 10413 | |
a243b558 JF |
10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
10415 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
10416 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
10417 | $as_echo_n "(cached) " >&6 |
10418 | else | |
a243b558 JF |
10419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10420 | /* end confdefs.h. */ | |
10421 | #include <stdlib.h> | |
10422 | #include <stdarg.h> | |
10423 | #include <string.h> | |
10424 | #include <float.h> | |
9c60689e | 10425 | |
a243b558 JF |
10426 | int |
10427 | main () | |
10428 | { | |
9c60689e | 10429 | |
a243b558 JF |
10430 | ; |
10431 | return 0; | |
10432 | } | |
10433 | _ACEOF | |
10434 | if ac_fn_c_try_compile "$LINENO"; then : | |
10435 | ac_cv_header_stdc=yes | |
10436 | else | |
10437 | ac_cv_header_stdc=no | |
9c60689e | 10438 | fi |
a243b558 JF |
10439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10440 | ||
10441 | if test $ac_cv_header_stdc = yes; then | |
10442 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
10443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10444 | /* end confdefs.h. */ | |
10445 | #include <string.h> | |
9c60689e | 10446 | |
a243b558 JF |
10447 | _ACEOF |
10448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10449 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 10450 | |
a243b558 JF |
10451 | else |
10452 | ac_cv_header_stdc=no | |
10453 | fi | |
10454 | rm -f conftest* | |
9c60689e | 10455 | |
a243b558 JF |
10456 | fi |
10457 | ||
10458 | if test $ac_cv_header_stdc = yes; then | |
10459 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
10460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10461 | /* end confdefs.h. */ | |
10462 | #include <stdlib.h> | |
10463 | ||
10464 | _ACEOF | |
10465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10466 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 10467 | |
9c60689e | 10468 | else |
a243b558 | 10469 | ac_cv_header_stdc=no |
9c60689e | 10470 | fi |
a243b558 | 10471 | rm -f conftest* |
9c60689e | 10472 | |
a243b558 | 10473 | fi |
9c60689e | 10474 | |
a243b558 JF |
10475 | if test $ac_cv_header_stdc = yes; then |
10476 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
10477 | if test "$cross_compiling" = yes; then : | |
10478 | : | |
10479 | else | |
10480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10481 | /* end confdefs.h. */ | |
10482 | #include <ctype.h> | |
10483 | #include <stdlib.h> | |
10484 | #if ((' ' & 0x0FF) == 0x020) | |
10485 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
10486 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
10487 | #else | |
10488 | # define ISLOWER(c) \ | |
10489 | (('a' <= (c) && (c) <= 'i') \ | |
10490 | || ('j' <= (c) && (c) <= 'r') \ | |
10491 | || ('s' <= (c) && (c) <= 'z')) | |
10492 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
10493 | #endif | |
9c60689e | 10494 | |
a243b558 JF |
10495 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
10496 | int | |
10497 | main () | |
10498 | { | |
10499 | int i; | |
10500 | for (i = 0; i < 256; i++) | |
10501 | if (XOR (islower (i), ISLOWER (i)) | |
10502 | || toupper (i) != TOUPPER (i)) | |
10503 | return 2; | |
10504 | return 0; | |
10505 | } | |
10506 | _ACEOF | |
10507 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 10508 | |
a243b558 JF |
10509 | else |
10510 | ac_cv_header_stdc=no | |
10511 | fi | |
10512 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
10513 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10514 | fi | |
9c60689e | 10515 | |
a243b558 JF |
10516 | fi |
10517 | fi | |
10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
10519 | $as_echo "$ac_cv_header_stdc" >&6; } | |
10520 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 10521 | |
a243b558 | 10522 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 10523 | |
a243b558 | 10524 | fi |
9c60689e | 10525 | |
a243b558 JF |
10526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
10527 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
10528 | inttypes.h stdint.h unistd.h | |
10529 | do : | |
10530 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10531 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
10532 | " | |
10533 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10534 | cat >>confdefs.h <<_ACEOF | |
10535 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10536 | _ACEOF | |
9c60689e | 10537 | |
a243b558 | 10538 | fi |
ee134472 | 10539 | |
a243b558 | 10540 | done |
ee134472 | 10541 | |
9c60689e | 10542 | |
a243b558 JF |
10543 | for ac_header in dlfcn.h |
10544 | do : | |
10545 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
10546 | " | |
10547 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
10548 | cat >>confdefs.h <<_ACEOF | |
10549 | #define HAVE_DLFCN_H 1 | |
10550 | _ACEOF | |
9c60689e | 10551 | |
a243b558 | 10552 | fi |
9c60689e | 10553 | |
a243b558 | 10554 | done |
9c60689e | 10555 | |
9c60689e | 10556 | |
9c60689e | 10557 | |
9c60689e | 10558 | |
a243b558 JF |
10559 | func_stripname_cnf () |
10560 | { | |
9d54db95 JF |
10561 | case $2 in |
10562 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
10563 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
a243b558 JF |
10564 | esac |
10565 | } # func_stripname_cnf | |
9c60689e | 10566 | |
9c60689e | 10567 | |
ee134472 | 10568 | |
a243b558 JF |
10569 | |
10570 | ||
10571 | # Set options | |
10572 | # Check whether --enable-static was given. | |
10573 | if test "${enable_static+set}" = set; then : | |
10574 | enableval=$enable_static; p=${PACKAGE-default} | |
10575 | case $enableval in | |
10576 | yes) enable_static=yes ;; | |
10577 | no) enable_static=no ;; | |
10578 | *) | |
10579 | enable_static=no | |
10580 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10581 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10582 | for pkg in $enableval; do |
9d54db95 | 10583 | IFS=$lt_save_ifs |
a243b558 JF |
10584 | if test "X$pkg" = "X$p"; then |
10585 | enable_static=yes | |
10586 | fi | |
10587 | done | |
9d54db95 | 10588 | IFS=$lt_save_ifs |
9c60689e | 10589 | ;; |
a243b558 JF |
10590 | esac |
10591 | else | |
10592 | enable_static=no | |
10593 | fi | |
9c60689e | 10594 | |
9c60689e | 10595 | |
9c60689e | 10596 | |
9c60689e | 10597 | |
9c60689e | 10598 | |
9c60689e | 10599 | |
9c60689e | 10600 | |
9c60689e | 10601 | |
9c60689e | 10602 | |
9c60689e | 10603 | |
a243b558 | 10604 | enable_dlopen=no |
9c60689e | 10605 | |
9c60689e | 10606 | |
a243b558 JF |
10607 | enable_win32_dll=no |
10608 | ||
10609 | ||
10610 | # Check whether --enable-shared was given. | |
10611 | if test "${enable_shared+set}" = set; then : | |
10612 | enableval=$enable_shared; p=${PACKAGE-default} | |
10613 | case $enableval in | |
10614 | yes) enable_shared=yes ;; | |
10615 | no) enable_shared=no ;; | |
9c60689e | 10616 | *) |
a243b558 JF |
10617 | enable_shared=no |
10618 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10619 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10620 | for pkg in $enableval; do |
9d54db95 | 10621 | IFS=$lt_save_ifs |
a243b558 JF |
10622 | if test "X$pkg" = "X$p"; then |
10623 | enable_shared=yes | |
10624 | fi | |
10625 | done | |
9d54db95 | 10626 | IFS=$lt_save_ifs |
9c60689e DWT |
10627 | ;; |
10628 | esac | |
a243b558 JF |
10629 | else |
10630 | enable_shared=yes | |
10631 | fi | |
9c60689e | 10632 | |
9c60689e | 10633 | |
9c60689e | 10634 | |
9c60689e | 10635 | |
9c60689e | 10636 | |
9c60689e | 10637 | |
9c60689e | 10638 | |
9c60689e | 10639 | |
9c60689e | 10640 | |
9c60689e | 10641 | |
9c60689e | 10642 | |
a243b558 JF |
10643 | # Check whether --with-pic was given. |
10644 | if test "${with_pic+set}" = set; then : | |
10645 | withval=$with_pic; lt_p=${PACKAGE-default} | |
10646 | case $withval in | |
10647 | yes|no) pic_mode=$withval ;; | |
10648 | *) | |
10649 | pic_mode=default | |
10650 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10651 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10652 | for lt_pkg in $withval; do |
9d54db95 | 10653 | IFS=$lt_save_ifs |
a243b558 JF |
10654 | if test "X$lt_pkg" = "X$lt_p"; then |
10655 | pic_mode=yes | |
10656 | fi | |
10657 | done | |
9d54db95 | 10658 | IFS=$lt_save_ifs |
a243b558 JF |
10659 | ;; |
10660 | esac | |
10661 | else | |
10662 | pic_mode=default | |
9c60689e | 10663 | fi |
ee134472 | 10664 | |
ee134472 | 10665 | |
9c60689e | 10666 | |
9c60689e | 10667 | |
9c60689e | 10668 | |
ee134472 | 10669 | |
ee134472 | 10670 | |
9c60689e | 10671 | |
a243b558 JF |
10672 | # Check whether --enable-fast-install was given. |
10673 | if test "${enable_fast_install+set}" = set; then : | |
10674 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
10675 | case $enableval in | |
10676 | yes) enable_fast_install=yes ;; | |
10677 | no) enable_fast_install=no ;; | |
10678 | *) | |
10679 | enable_fast_install=no | |
10680 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10681 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10682 | for pkg in $enableval; do |
9d54db95 | 10683 | IFS=$lt_save_ifs |
a243b558 JF |
10684 | if test "X$pkg" = "X$p"; then |
10685 | enable_fast_install=yes | |
9c60689e | 10686 | fi |
a243b558 | 10687 | done |
9d54db95 | 10688 | IFS=$lt_save_ifs |
9c60689e | 10689 | ;; |
a243b558 JF |
10690 | esac |
10691 | else | |
10692 | enable_fast_install=yes | |
10693 | fi | |
9c60689e | 10694 | |
9c60689e | 10695 | |
9c60689e | 10696 | |
9c60689e | 10697 | |
9c60689e DWT |
10698 | |
10699 | ||
53ba6704 | 10700 | |
9c60689e | 10701 | |
9d54db95 JF |
10702 | shared_archive_member_spec= |
10703 | case $host,$enable_shared in | |
10704 | power*-*-aix[5-9]*,yes) | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
10706 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
10707 | ||
10708 | # Check whether --with-aix-soname was given. | |
10709 | if test "${with_aix_soname+set}" = set; then : | |
10710 | withval=$with_aix_soname; case $withval in | |
10711 | aix|svr4|both) | |
10712 | ;; | |
10713 | *) | |
10714 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
10715 | ;; | |
10716 | esac | |
10717 | lt_cv_with_aix_soname=$with_aix_soname | |
10718 | else | |
10719 | if ${lt_cv_with_aix_soname+:} false; then : | |
10720 | $as_echo_n "(cached) " >&6 | |
10721 | else | |
10722 | lt_cv_with_aix_soname=aix | |
10723 | fi | |
10724 | ||
10725 | with_aix_soname=$lt_cv_with_aix_soname | |
10726 | fi | |
10727 | ||
10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
10729 | $as_echo "$with_aix_soname" >&6; } | |
10730 | if test aix != "$with_aix_soname"; then | |
10731 | # For the AIX way of multilib, we name the shared archive member | |
10732 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
10733 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
10734 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
10735 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
10736 | if test 64 = "${OBJECT_MODE-32}"; then | |
10737 | shared_archive_member_spec=shr_64 | |
10738 | else | |
10739 | shared_archive_member_spec=shr | |
10740 | fi | |
10741 | fi | |
10742 | ;; | |
10743 | *) | |
10744 | with_aix_soname=aix | |
10745 | ;; | |
10746 | esac | |
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
9c60689e | 10754 | |
9c60689e | 10755 | |
9c60689e | 10756 | |
a243b558 | 10757 | # This can be used to rebuild libtool when needed |
9d54db95 | 10758 | LIBTOOL_DEPS=$ltmain |
9c60689e | 10759 | |
a243b558 JF |
10760 | # Always use our own libtool. |
10761 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 10762 | |
9c60689e | 10763 | |
9c60689e | 10764 | |
9c60689e | 10765 | |
9c60689e | 10766 | |
ee134472 | 10767 | |
ee134472 | 10768 | |
ee134472 | 10769 | |
ee134472 | 10770 | |
9c60689e | 10771 | |
9c60689e | 10772 | |
9c60689e | 10773 | |
9c60689e | 10774 | |
9c60689e | 10775 | |
9c60689e | 10776 | |
9c60689e | 10777 | |
9c60689e | 10778 | |
9c60689e | 10779 | |
9c60689e | 10780 | |
9c60689e | 10781 | |
9c60689e | 10782 | |
9c60689e | 10783 | |
9c60689e | 10784 | |
9c60689e | 10785 | |
9c60689e | 10786 | |
9c60689e | 10787 | |
9c60689e | 10788 | |
9c60689e | 10789 | |
9c60689e | 10790 | |
9c60689e | 10791 | |
a243b558 | 10792 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
10793 | |
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
9d54db95 | 10807 | if test -n "${ZSH_VERSION+set}"; then |
a243b558 JF |
10808 | setopt NO_GLOB_SUBST |
10809 | fi | |
9c60689e | 10810 | |
a243b558 JF |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
10812 | $as_echo_n "checking for objdir... " >&6; } | |
10813 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
10814 | $as_echo_n "(cached) " >&6 |
10815 | else | |
a243b558 JF |
10816 | rm -f .libs 2>/dev/null |
10817 | mkdir .libs 2>/dev/null | |
10818 | if test -d .libs; then | |
10819 | lt_cv_objdir=.libs | |
10820 | else | |
10821 | # MS-DOS does not allow filenames that begin with a dot. | |
10822 | lt_cv_objdir=_libs | |
ee134472 | 10823 | fi |
a243b558 JF |
10824 | rmdir .libs 2>/dev/null |
10825 | fi | |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
10827 | $as_echo "$lt_cv_objdir" >&6; } | |
10828 | objdir=$lt_cv_objdir | |
9c60689e DWT |
10829 | |
10830 | ||
10831 | ||
10832 | ||
10833 | ||
a243b558 JF |
10834 | cat >>confdefs.h <<_ACEOF |
10835 | #define LT_OBJDIR "$lt_cv_objdir/" | |
10836 | _ACEOF | |
9c60689e DWT |
10837 | |
10838 | ||
10839 | ||
10840 | ||
a243b558 JF |
10841 | case $host_os in |
10842 | aix3*) | |
10843 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10844 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10845 | # vanish in a puff of smoke. | |
9d54db95 | 10846 | if test set != "${COLLECT_NAMES+set}"; then |
a243b558 JF |
10847 | COLLECT_NAMES= |
10848 | export COLLECT_NAMES | |
10849 | fi | |
10850 | ;; | |
10851 | esac | |
9c60689e | 10852 | |
a243b558 JF |
10853 | # Global variables: |
10854 | ofile=libtool | |
10855 | can_build_shared=yes | |
9c60689e | 10856 | |
9d54db95 | 10857 | # All known linkers require a '.a' archive for static linking (except MSVC, |
a243b558 JF |
10858 | # which needs '.lib'). |
10859 | libext=a | |
9c60689e | 10860 | |
9d54db95 | 10861 | with_gnu_ld=$lt_cv_prog_gnu_ld |
9c60689e | 10862 | |
9d54db95 JF |
10863 | old_CC=$CC |
10864 | old_CFLAGS=$CFLAGS | |
9c60689e | 10865 | |
a243b558 JF |
10866 | # Set sane defaults for various variables |
10867 | test -z "$CC" && CC=cc | |
10868 | test -z "$LTCC" && LTCC=$CC | |
10869 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
10870 | test -z "$LD" && LD=ld | |
10871 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 10872 | |
9d54db95 JF |
10873 | func_cc_basename $compiler |
10874 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
10875 | |
10876 | ||
a243b558 JF |
10877 | # Only perform the check for file, if the check method requires it |
10878 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
10879 | case $deplibs_check_method in | |
10880 | file_magic*) | |
10881 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
10883 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
10884 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
10885 | $as_echo_n "(cached) " >&6 | |
10886 | else | |
10887 | case $MAGIC_CMD in | |
10888 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 10889 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
10890 | ;; |
10891 | *) | |
9d54db95 JF |
10892 | lt_save_MAGIC_CMD=$MAGIC_CMD |
10893 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
10894 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
10895 | for ac_dir in $ac_dummy; do | |
9d54db95 | 10896 | IFS=$lt_save_ifs |
a243b558 | 10897 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
10898 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
10899 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
a243b558 JF |
10900 | if test -n "$file_magic_test_file"; then |
10901 | case $deplibs_check_method in | |
10902 | "file_magic "*) | |
10903 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 10904 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10905 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
10906 | $EGREP "$file_magic_regex" > /dev/null; then | |
10907 | : | |
10908 | else | |
10909 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10910 | |
a243b558 JF |
10911 | *** Warning: the command libtool uses to detect shared libraries, |
10912 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10913 | *** The result is that libtool may fail to recognize shared libraries | |
10914 | *** as such. This will affect the creation of libtool libraries that | |
10915 | *** depend on shared libraries, but programs linked with such libtool | |
10916 | *** libraries will work regardless of this problem. Nevertheless, you | |
10917 | *** may want to report the problem to your system manager and/or to | |
10918 | *** bug-libtool@gnu.org | |
9c60689e | 10919 | |
a243b558 JF |
10920 | _LT_EOF |
10921 | fi ;; | |
10922 | esac | |
10923 | fi | |
10924 | break | |
10925 | fi | |
10926 | done | |
9d54db95 JF |
10927 | IFS=$lt_save_ifs |
10928 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
10929 | ;; |
10930 | esac | |
10931 | fi | |
9c60689e | 10932 | |
9d54db95 | 10933 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10934 | if test -n "$MAGIC_CMD"; then |
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
10936 | $as_echo "$MAGIC_CMD" >&6; } | |
10937 | else | |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10939 | $as_echo "no" >&6; } | |
10940 | fi | |
9c60689e DWT |
10941 | |
10942 | ||
10943 | ||
10944 | ||
10945 | ||
a243b558 JF |
10946 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
10947 | if test -n "$ac_tool_prefix"; then | |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
10949 | $as_echo_n "checking for file... " >&6; } | |
10950 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
10951 | $as_echo_n "(cached) " >&6 | |
10952 | else | |
10953 | case $MAGIC_CMD in | |
10954 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 10955 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
10956 | ;; |
10957 | *) | |
9d54db95 JF |
10958 | lt_save_MAGIC_CMD=$MAGIC_CMD |
10959 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
10960 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
10961 | for ac_dir in $ac_dummy; do | |
9d54db95 | 10962 | IFS=$lt_save_ifs |
a243b558 | 10963 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
10964 | if test -f "$ac_dir/file"; then |
10965 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
a243b558 JF |
10966 | if test -n "$file_magic_test_file"; then |
10967 | case $deplibs_check_method in | |
10968 | "file_magic "*) | |
10969 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 10970 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10971 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
10972 | $EGREP "$file_magic_regex" > /dev/null; then | |
10973 | : | |
10974 | else | |
10975 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10976 | |
a243b558 JF |
10977 | *** Warning: the command libtool uses to detect shared libraries, |
10978 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10979 | *** The result is that libtool may fail to recognize shared libraries | |
10980 | *** as such. This will affect the creation of libtool libraries that | |
10981 | *** depend on shared libraries, but programs linked with such libtool | |
10982 | *** libraries will work regardless of this problem. Nevertheless, you | |
10983 | *** may want to report the problem to your system manager and/or to | |
10984 | *** bug-libtool@gnu.org | |
9c60689e | 10985 | |
a243b558 JF |
10986 | _LT_EOF |
10987 | fi ;; | |
10988 | esac | |
10989 | fi | |
10990 | break | |
10991 | fi | |
10992 | done | |
9d54db95 JF |
10993 | IFS=$lt_save_ifs |
10994 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
10995 | ;; |
10996 | esac | |
10997 | fi | |
9c60689e | 10998 | |
9d54db95 | 10999 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
11000 | if test -n "$MAGIC_CMD"; then |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
11002 | $as_echo "$MAGIC_CMD" >&6; } | |
11003 | else | |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11005 | $as_echo "no" >&6; } | |
11006 | fi | |
9c60689e DWT |
11007 | |
11008 | ||
a243b558 JF |
11009 | else |
11010 | MAGIC_CMD=: | |
11011 | fi | |
11012 | fi | |
9c60689e | 11013 | |
a243b558 JF |
11014 | fi |
11015 | ;; | |
11016 | esac | |
9c60689e | 11017 | |
a243b558 | 11018 | # Use C for the default configuration in the libtool script |
9c60689e | 11019 | |
9d54db95 | 11020 | lt_save_CC=$CC |
a243b558 JF |
11021 | ac_ext=c |
11022 | ac_cpp='$CPP $CPPFLAGS' | |
11023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
11026 | |
11027 | ||
a243b558 JF |
11028 | # Source file extension for C test sources. |
11029 | ac_ext=c | |
9c60689e | 11030 | |
a243b558 JF |
11031 | # Object file extension for compiled C test sources. |
11032 | objext=o | |
11033 | objext=$objext | |
9c60689e | 11034 | |
a243b558 JF |
11035 | # Code to be used in simple compile tests |
11036 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 11037 | |
a243b558 JF |
11038 | # Code to be used in simple link tests |
11039 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
11040 | |
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
a243b558 JF |
11047 | # If no C compiler was specified, use CC. |
11048 | LTCC=${LTCC-"$CC"} | |
9c60689e | 11049 | |
a243b558 JF |
11050 | # If no C compiler flags were specified, use CFLAGS. |
11051 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 11052 | |
a243b558 JF |
11053 | # Allow CC to be a program name with arguments. |
11054 | compiler=$CC | |
9c60689e | 11055 | |
a243b558 JF |
11056 | # Save the default compiler, since it gets overwritten when the other |
11057 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
11058 | compiler_DEFAULT=$CC | |
9c60689e | 11059 | |
a243b558 JF |
11060 | # save warnings/boilerplate of simple test code |
11061 | ac_outfile=conftest.$ac_objext | |
11062 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11063 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11064 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 11065 | $RM -r conftest* |
9c60689e | 11066 | |
a243b558 JF |
11067 | ac_outfile=conftest.$ac_objext |
11068 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11069 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11070 | _lt_linker_boilerplate=`cat conftest.err` | |
11071 | $RM -r conftest* | |
9c60689e DWT |
11072 | |
11073 | ||
a243b558 JF |
11074 | ## CAVEAT EMPTOR: |
11075 | ## There is no encapsulation within the following macros, do not change | |
11076 | ## the running order or otherwise move them around unless you know exactly | |
11077 | ## what you are doing... | |
11078 | if test -n "$compiler"; then | |
9c60689e | 11079 | |
a243b558 | 11080 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 11081 | |
9d54db95 | 11082 | if test yes = "$GCC"; then |
a243b558 JF |
11083 | case $cc_basename in |
11084 | nvcc*) | |
11085 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
11086 | *) | |
11087 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
11088 | esac | |
9c60689e | 11089 | |
a243b558 JF |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
11091 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
11092 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
11093 | $as_echo_n "(cached) " >&6 | |
11094 | else | |
11095 | lt_cv_prog_compiler_rtti_exceptions=no | |
11096 | ac_outfile=conftest.$ac_objext | |
11097 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 11098 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
11099 | # Insert the option either (1) after the last *FLAGS variable, or |
11100 | # (2) before a word containing "conftest.", or (3) at the end. | |
11101 | # Note that $ac_compile itself does not contain backslashes and begins | |
11102 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11103 | # The option is referenced via a variable to avoid confusing sed. | |
11104 | lt_compile=`echo "$ac_compile" | $SED \ | |
11105 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11106 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11107 | -e 's:$: $lt_compiler_flag:'` | |
11108 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11109 | (eval "$lt_compile" 2>conftest.err) | |
11110 | ac_status=$? | |
11111 | cat conftest.err >&5 | |
11112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11113 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11114 | # The compiler can only warn and ignore the option if not recognized | |
11115 | # So say no if there are warnings other than the usual output. | |
11116 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11117 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11118 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11119 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11120 | fi | |
11121 | fi | |
00a96142 | 11122 | $RM -r conftest* |
9c60689e | 11123 | |
a243b558 JF |
11124 | fi |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11126 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 11127 | |
9d54db95 | 11128 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
a243b558 JF |
11129 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
11130 | else | |
11131 | : | |
11132 | fi | |
9c60689e | 11133 | |
a243b558 | 11134 | fi |
9c60689e DWT |
11135 | |
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
a243b558 JF |
11141 | lt_prog_compiler_wl= |
11142 | lt_prog_compiler_pic= | |
11143 | lt_prog_compiler_static= | |
9c60689e DWT |
11144 | |
11145 | ||
9d54db95 | 11146 | if test yes = "$GCC"; then |
a243b558 JF |
11147 | lt_prog_compiler_wl='-Wl,' |
11148 | lt_prog_compiler_static='-static' | |
9c60689e | 11149 | |
a243b558 JF |
11150 | case $host_os in |
11151 | aix*) | |
11152 | # All AIX code is PIC. | |
9d54db95 | 11153 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
11154 | # AIX 5 now supports IA64 processor |
11155 | lt_prog_compiler_static='-Bstatic' | |
11156 | fi | |
9d54db95 | 11157 | lt_prog_compiler_pic='-fPIC' |
a243b558 | 11158 | ;; |
9c60689e | 11159 | |
a243b558 JF |
11160 | amigaos*) |
11161 | case $host_cpu in | |
11162 | powerpc) | |
11163 | # see comment about AmigaOS4 .so support | |
11164 | lt_prog_compiler_pic='-fPIC' | |
11165 | ;; | |
11166 | m68k) | |
11167 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
11168 | # adding the '-m68020' flag to GCC prevents building anything better, |
11169 | # like '-m68040'. | |
a243b558 JF |
11170 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
11171 | ;; | |
11172 | esac | |
11173 | ;; | |
9c60689e | 11174 | |
a243b558 JF |
11175 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11176 | # PIC is the default for these OSes. | |
11177 | ;; | |
9c60689e | 11178 | |
a243b558 JF |
11179 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
11180 | # This hack is so that the source file can tell whether it is being | |
11181 | # built for inclusion in a dll (and should export symbols for example). | |
11182 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
11183 | # (--disable-auto-import) libraries | |
11184 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
11185 | case $host_os in |
11186 | os2*) | |
11187 | lt_prog_compiler_static='$wl-static' | |
11188 | ;; | |
11189 | esac | |
a243b558 | 11190 | ;; |
9c60689e | 11191 | |
a243b558 JF |
11192 | darwin* | rhapsody*) |
11193 | # PIC is the default on this platform | |
11194 | # Common symbols not allowed in MH_DYLIB files | |
11195 | lt_prog_compiler_pic='-fno-common' | |
11196 | ;; | |
9c60689e | 11197 | |
a243b558 JF |
11198 | haiku*) |
11199 | # PIC is the default for Haiku. | |
11200 | # The "-static" flag exists, but is broken. | |
11201 | lt_prog_compiler_static= | |
11202 | ;; | |
9c60689e | 11203 | |
a243b558 JF |
11204 | hpux*) |
11205 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
11206 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
11207 | # sets the default TLS model and affects inlining. | |
11208 | case $host_cpu in | |
11209 | hppa*64*) | |
11210 | # +Z the default | |
11211 | ;; | |
11212 | *) | |
11213 | lt_prog_compiler_pic='-fPIC' | |
11214 | ;; | |
11215 | esac | |
11216 | ;; | |
9c60689e | 11217 | |
a243b558 JF |
11218 | interix[3-9]*) |
11219 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11220 | # Instead, we relocate shared libraries at runtime. | |
11221 | ;; | |
9c60689e | 11222 | |
a243b558 JF |
11223 | msdosdjgpp*) |
11224 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11225 | # on systems that don't support them. | |
11226 | lt_prog_compiler_can_build_shared=no | |
11227 | enable_shared=no | |
11228 | ;; | |
9c60689e | 11229 | |
a243b558 JF |
11230 | *nto* | *qnx*) |
11231 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11232 | # it will coredump. | |
11233 | lt_prog_compiler_pic='-fPIC -shared' | |
11234 | ;; | |
9c60689e | 11235 | |
a243b558 JF |
11236 | sysv4*MP*) |
11237 | if test -d /usr/nec; then | |
11238 | lt_prog_compiler_pic=-Kconform_pic | |
11239 | fi | |
11240 | ;; | |
9c60689e | 11241 | |
a243b558 JF |
11242 | *) |
11243 | lt_prog_compiler_pic='-fPIC' | |
11244 | ;; | |
11245 | esac | |
9c60689e | 11246 | |
a243b558 JF |
11247 | case $cc_basename in |
11248 | nvcc*) # Cuda Compiler Driver 2.2 | |
11249 | lt_prog_compiler_wl='-Xlinker ' | |
11250 | if test -n "$lt_prog_compiler_pic"; then | |
11251 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
11252 | fi | |
11253 | ;; | |
11254 | esac | |
11255 | else | |
11256 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11257 | case $host_os in | |
11258 | aix*) | |
11259 | lt_prog_compiler_wl='-Wl,' | |
9d54db95 | 11260 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
11261 | # AIX 5 now supports IA64 processor |
11262 | lt_prog_compiler_static='-Bstatic' | |
11263 | else | |
11264 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
11265 | fi | |
11266 | ;; | |
9c60689e | 11267 | |
9d54db95 JF |
11268 | darwin* | rhapsody*) |
11269 | # PIC is the default on this platform | |
11270 | # Common symbols not allowed in MH_DYLIB files | |
11271 | lt_prog_compiler_pic='-fno-common' | |
11272 | case $cc_basename in | |
11273 | nagfor*) | |
11274 | # NAG Fortran compiler | |
11275 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
11276 | lt_prog_compiler_pic='-PIC' | |
11277 | lt_prog_compiler_static='-Bstatic' | |
11278 | ;; | |
11279 | esac | |
11280 | ;; | |
11281 | ||
a243b558 JF |
11282 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
11283 | # This hack is so that the source file can tell whether it is being | |
11284 | # built for inclusion in a dll (and should export symbols for example). | |
11285 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
11286 | case $host_os in |
11287 | os2*) | |
11288 | lt_prog_compiler_static='$wl-static' | |
11289 | ;; | |
11290 | esac | |
a243b558 | 11291 | ;; |
9c60689e | 11292 | |
a243b558 JF |
11293 | hpux9* | hpux10* | hpux11*) |
11294 | lt_prog_compiler_wl='-Wl,' | |
11295 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11296 | # not for PA HP-UX. | |
11297 | case $host_cpu in | |
11298 | hppa*64*|ia64*) | |
11299 | # +Z the default | |
11300 | ;; | |
11301 | *) | |
11302 | lt_prog_compiler_pic='+Z' | |
11303 | ;; | |
11304 | esac | |
11305 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9d54db95 | 11306 | lt_prog_compiler_static='$wl-a ${wl}archive' |
a243b558 | 11307 | ;; |
9c60689e | 11308 | |
a243b558 JF |
11309 | irix5* | irix6* | nonstopux*) |
11310 | lt_prog_compiler_wl='-Wl,' | |
11311 | # PIC (with -KPIC) is the default. | |
11312 | lt_prog_compiler_static='-non_shared' | |
11313 | ;; | |
9c60689e | 11314 | |
9d54db95 | 11315 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 | 11316 | case $cc_basename in |
9d54db95 | 11317 | # old Intel for x86_64, which still supported -KPIC. |
a243b558 JF |
11318 | ecc*) |
11319 | lt_prog_compiler_wl='-Wl,' | |
11320 | lt_prog_compiler_pic='-KPIC' | |
11321 | lt_prog_compiler_static='-static' | |
11322 | ;; | |
11323 | # icc used to be incompatible with GCC. | |
11324 | # ICC 10 doesn't accept -KPIC any more. | |
11325 | icc* | ifort*) | |
11326 | lt_prog_compiler_wl='-Wl,' | |
11327 | lt_prog_compiler_pic='-fPIC' | |
11328 | lt_prog_compiler_static='-static' | |
11329 | ;; | |
11330 | # Lahey Fortran 8.1. | |
11331 | lf95*) | |
11332 | lt_prog_compiler_wl='-Wl,' | |
11333 | lt_prog_compiler_pic='--shared' | |
11334 | lt_prog_compiler_static='--static' | |
11335 | ;; | |
11336 | nagfor*) | |
11337 | # NAG Fortran compiler | |
11338 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
11339 | lt_prog_compiler_pic='-PIC' | |
11340 | lt_prog_compiler_static='-Bstatic' | |
11341 | ;; | |
9d54db95 JF |
11342 | tcc*) |
11343 | # Fabrice Bellard et al's Tiny C Compiler | |
11344 | lt_prog_compiler_wl='-Wl,' | |
11345 | lt_prog_compiler_pic='-fPIC' | |
11346 | lt_prog_compiler_static='-static' | |
11347 | ;; | |
a243b558 JF |
11348 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
11349 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
11350 | # which looks to be a dead project) | |
11351 | lt_prog_compiler_wl='-Wl,' | |
11352 | lt_prog_compiler_pic='-fpic' | |
11353 | lt_prog_compiler_static='-Bstatic' | |
11354 | ;; | |
11355 | ccc*) | |
11356 | lt_prog_compiler_wl='-Wl,' | |
11357 | # All Alpha code is PIC. | |
11358 | lt_prog_compiler_static='-non_shared' | |
11359 | ;; | |
11360 | xl* | bgxl* | bgf* | mpixl*) | |
11361 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
11362 | lt_prog_compiler_wl='-Wl,' | |
11363 | lt_prog_compiler_pic='-qpic' | |
11364 | lt_prog_compiler_static='-qstaticlink' | |
11365 | ;; | |
11366 | *) | |
11367 | case `$CC -V 2>&1 | sed 5q` in | |
11368 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
11369 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
11370 | lt_prog_compiler_pic='-KPIC' | |
11371 | lt_prog_compiler_static='-Bstatic' | |
11372 | lt_prog_compiler_wl='' | |
11373 | ;; | |
11374 | *Sun\ F* | *Sun*Fortran*) | |
11375 | lt_prog_compiler_pic='-KPIC' | |
11376 | lt_prog_compiler_static='-Bstatic' | |
11377 | lt_prog_compiler_wl='-Qoption ld ' | |
11378 | ;; | |
11379 | *Sun\ C*) | |
11380 | # Sun C 5.9 | |
11381 | lt_prog_compiler_pic='-KPIC' | |
11382 | lt_prog_compiler_static='-Bstatic' | |
11383 | lt_prog_compiler_wl='-Wl,' | |
11384 | ;; | |
11385 | *Intel*\ [CF]*Compiler*) | |
11386 | lt_prog_compiler_wl='-Wl,' | |
11387 | lt_prog_compiler_pic='-fPIC' | |
11388 | lt_prog_compiler_static='-static' | |
11389 | ;; | |
11390 | *Portland\ Group*) | |
11391 | lt_prog_compiler_wl='-Wl,' | |
11392 | lt_prog_compiler_pic='-fpic' | |
11393 | lt_prog_compiler_static='-Bstatic' | |
11394 | ;; | |
11395 | esac | |
11396 | ;; | |
11397 | esac | |
11398 | ;; | |
9c60689e | 11399 | |
a243b558 JF |
11400 | newsos6) |
11401 | lt_prog_compiler_pic='-KPIC' | |
11402 | lt_prog_compiler_static='-Bstatic' | |
11403 | ;; | |
9c60689e | 11404 | |
a243b558 JF |
11405 | *nto* | *qnx*) |
11406 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11407 | # it will coredump. | |
11408 | lt_prog_compiler_pic='-fPIC -shared' | |
11409 | ;; | |
9c60689e | 11410 | |
a243b558 JF |
11411 | osf3* | osf4* | osf5*) |
11412 | lt_prog_compiler_wl='-Wl,' | |
11413 | # All OSF/1 code is PIC. | |
11414 | lt_prog_compiler_static='-non_shared' | |
11415 | ;; | |
9c60689e | 11416 | |
a243b558 JF |
11417 | rdos*) |
11418 | lt_prog_compiler_static='-non_shared' | |
11419 | ;; | |
9c60689e | 11420 | |
a243b558 JF |
11421 | solaris*) |
11422 | lt_prog_compiler_pic='-KPIC' | |
11423 | lt_prog_compiler_static='-Bstatic' | |
11424 | case $cc_basename in | |
11425 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
11426 | lt_prog_compiler_wl='-Qoption ld ';; | |
11427 | *) | |
11428 | lt_prog_compiler_wl='-Wl,';; | |
11429 | esac | |
11430 | ;; | |
9c60689e | 11431 | |
a243b558 JF |
11432 | sunos4*) |
11433 | lt_prog_compiler_wl='-Qoption ld ' | |
11434 | lt_prog_compiler_pic='-PIC' | |
11435 | lt_prog_compiler_static='-Bstatic' | |
11436 | ;; | |
9c60689e | 11437 | |
a243b558 JF |
11438 | sysv4 | sysv4.2uw2* | sysv4.3*) |
11439 | lt_prog_compiler_wl='-Wl,' | |
11440 | lt_prog_compiler_pic='-KPIC' | |
11441 | lt_prog_compiler_static='-Bstatic' | |
11442 | ;; | |
9c60689e | 11443 | |
a243b558 | 11444 | sysv4*MP*) |
9d54db95 | 11445 | if test -d /usr/nec; then |
a243b558 JF |
11446 | lt_prog_compiler_pic='-Kconform_pic' |
11447 | lt_prog_compiler_static='-Bstatic' | |
11448 | fi | |
11449 | ;; | |
9c60689e | 11450 | |
a243b558 JF |
11451 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11452 | lt_prog_compiler_wl='-Wl,' | |
11453 | lt_prog_compiler_pic='-KPIC' | |
11454 | lt_prog_compiler_static='-Bstatic' | |
11455 | ;; | |
9c60689e | 11456 | |
a243b558 JF |
11457 | unicos*) |
11458 | lt_prog_compiler_wl='-Wl,' | |
11459 | lt_prog_compiler_can_build_shared=no | |
11460 | ;; | |
9c60689e | 11461 | |
a243b558 JF |
11462 | uts4*) |
11463 | lt_prog_compiler_pic='-pic' | |
11464 | lt_prog_compiler_static='-Bstatic' | |
11465 | ;; | |
9c60689e | 11466 | |
a243b558 JF |
11467 | *) |
11468 | lt_prog_compiler_can_build_shared=no | |
11469 | ;; | |
11470 | esac | |
11471 | fi | |
9c60689e | 11472 | |
a243b558 | 11473 | case $host_os in |
9d54db95 | 11474 | # For platforms that do not support PIC, -DPIC is meaningless: |
a243b558 JF |
11475 | *djgpp*) |
11476 | lt_prog_compiler_pic= | |
11477 | ;; | |
11478 | *) | |
11479 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
11480 | ;; | |
11481 | esac | |
9c60689e | 11482 | |
a243b558 JF |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
11484 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
11485 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
11486 | $as_echo_n "(cached) " >&6 | |
11487 | else | |
11488 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
11489 | fi | |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
11491 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
11492 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 11493 | |
a243b558 JF |
11494 | # |
11495 | # Check to make sure the PIC flag actually works. | |
11496 | # | |
11497 | if test -n "$lt_prog_compiler_pic"; then | |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
11499 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
11500 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
11501 | $as_echo_n "(cached) " >&6 | |
11502 | else | |
11503 | lt_cv_prog_compiler_pic_works=no | |
11504 | ac_outfile=conftest.$ac_objext | |
11505 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 11506 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
11507 | # Insert the option either (1) after the last *FLAGS variable, or |
11508 | # (2) before a word containing "conftest.", or (3) at the end. | |
11509 | # Note that $ac_compile itself does not contain backslashes and begins | |
11510 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11511 | # The option is referenced via a variable to avoid confusing sed. | |
11512 | lt_compile=`echo "$ac_compile" | $SED \ | |
11513 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11514 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11515 | -e 's:$: $lt_compiler_flag:'` | |
11516 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11517 | (eval "$lt_compile" 2>conftest.err) | |
11518 | ac_status=$? | |
11519 | cat conftest.err >&5 | |
11520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11521 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11522 | # The compiler can only warn and ignore the option if not recognized | |
11523 | # So say no if there are warnings other than the usual output. | |
11524 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11525 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11526 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11527 | lt_cv_prog_compiler_pic_works=yes | |
11528 | fi | |
11529 | fi | |
00a96142 | 11530 | $RM -r conftest* |
9c60689e | 11531 | |
a243b558 JF |
11532 | fi |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
11534 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 11535 | |
9d54db95 | 11536 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
a243b558 JF |
11537 | case $lt_prog_compiler_pic in |
11538 | "" | " "*) ;; | |
11539 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
11540 | esac | |
11541 | else | |
11542 | lt_prog_compiler_pic= | |
11543 | lt_prog_compiler_can_build_shared=no | |
11544 | fi | |
9c60689e | 11545 | |
a243b558 | 11546 | fi |
9c60689e DWT |
11547 | |
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
9c60689e DWT |
11553 | |
11554 | ||
11555 | ||
11556 | ||
11557 | ||
a243b558 JF |
11558 | # |
11559 | # Check to make sure the static flag actually works. | |
11560 | # | |
11561 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11563 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
11564 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
11565 | $as_echo_n "(cached) " >&6 | |
11566 | else | |
11567 | lt_cv_prog_compiler_static_works=no | |
9d54db95 | 11568 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
11569 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11570 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11571 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11572 | # The linker can only warn and ignore the option if not recognized | |
11573 | # So say no if there are warnings | |
11574 | if test -s conftest.err; then | |
11575 | # Append any errors to the config.log. | |
11576 | cat conftest.err 1>&5 | |
11577 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11578 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11579 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11580 | lt_cv_prog_compiler_static_works=yes | |
11581 | fi | |
11582 | else | |
11583 | lt_cv_prog_compiler_static_works=yes | |
11584 | fi | |
11585 | fi | |
11586 | $RM -r conftest* | |
9d54db95 | 11587 | LDFLAGS=$save_LDFLAGS |
9c60689e | 11588 | |
a243b558 JF |
11589 | fi |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
11591 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 11592 | |
9d54db95 | 11593 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
a243b558 | 11594 | : |
9c60689e | 11595 | else |
a243b558 | 11596 | lt_prog_compiler_static= |
9c60689e | 11597 | fi |
9c60689e | 11598 | |
9c60689e | 11599 | |
9c60689e | 11600 | |
9c60689e | 11601 | |
9c60689e | 11602 | |
9c60689e | 11603 | |
9c60689e | 11604 | |
a243b558 JF |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11606 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
11607 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
11608 | $as_echo_n "(cached) " >&6 | |
11609 | else | |
11610 | lt_cv_prog_compiler_c_o=no | |
11611 | $RM -r conftest 2>/dev/null | |
11612 | mkdir conftest | |
11613 | cd conftest | |
11614 | mkdir out | |
11615 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 11616 | |
a243b558 JF |
11617 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11618 | # Insert the option either (1) after the last *FLAGS variable, or | |
11619 | # (2) before a word containing "conftest.", or (3) at the end. | |
11620 | # Note that $ac_compile itself does not contain backslashes and begins | |
11621 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11622 | lt_compile=`echo "$ac_compile" | $SED \ | |
11623 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11624 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11625 | -e 's:$: $lt_compiler_flag:'` | |
11626 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11627 | (eval "$lt_compile" 2>out/conftest.err) | |
11628 | ac_status=$? | |
11629 | cat out/conftest.err >&5 | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11632 | then | |
11633 | # The compiler can only warn and ignore the option if not recognized | |
11634 | # So say no if there are warnings | |
11635 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
11636 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11637 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11638 | lt_cv_prog_compiler_c_o=yes | |
11639 | fi | |
11640 | fi | |
11641 | chmod u+w . 2>&5 | |
00a96142 | 11642 | $RM -r conftest* |
a243b558 JF |
11643 | # SGI C++ compiler will create directory out/ii_files/ for |
11644 | # template instantiation | |
11645 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11646 | $RM out/* && rmdir out | |
11647 | cd .. | |
11648 | $RM -r conftest | |
00a96142 | 11649 | $RM -r conftest* |
9c60689e | 11650 | |
a243b558 JF |
11651 | fi |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
11653 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 11654 | |
ee134472 | 11655 | |
ee134472 | 11656 | |
ee134472 | 11657 | |
ee134472 | 11658 | |
9c60689e | 11659 | |
a243b558 JF |
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11661 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
11662 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
11663 | $as_echo_n "(cached) " >&6 | |
11664 | else | |
11665 | lt_cv_prog_compiler_c_o=no | |
11666 | $RM -r conftest 2>/dev/null | |
11667 | mkdir conftest | |
11668 | cd conftest | |
11669 | mkdir out | |
11670 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 11671 | |
a243b558 JF |
11672 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11673 | # Insert the option either (1) after the last *FLAGS variable, or | |
11674 | # (2) before a word containing "conftest.", or (3) at the end. | |
11675 | # Note that $ac_compile itself does not contain backslashes and begins | |
11676 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11677 | lt_compile=`echo "$ac_compile" | $SED \ | |
11678 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11679 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11680 | -e 's:$: $lt_compiler_flag:'` | |
11681 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11682 | (eval "$lt_compile" 2>out/conftest.err) | |
11683 | ac_status=$? | |
11684 | cat out/conftest.err >&5 | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11686 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11687 | then | |
11688 | # The compiler can only warn and ignore the option if not recognized | |
11689 | # So say no if there are warnings | |
11690 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
11691 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11692 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11693 | lt_cv_prog_compiler_c_o=yes | |
11694 | fi | |
11695 | fi | |
11696 | chmod u+w . 2>&5 | |
00a96142 | 11697 | $RM -r conftest* |
a243b558 JF |
11698 | # SGI C++ compiler will create directory out/ii_files/ for |
11699 | # template instantiation | |
11700 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11701 | $RM out/* && rmdir out | |
11702 | cd .. | |
11703 | $RM -r conftest | |
00a96142 | 11704 | $RM -r conftest* |
9c60689e | 11705 | |
a243b558 JF |
11706 | fi |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
11708 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 11709 | |
9c60689e | 11710 | |
a243b558 JF |
11711 | |
11712 | ||
9d54db95 JF |
11713 | hard_links=nottested |
11714 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
a243b558 JF |
11715 | # do not overwrite the value of need_locks provided by the user |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
11717 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
11718 | hard_links=yes | |
00a96142 | 11719 | $RM -r conftest* |
a243b558 JF |
11720 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11721 | touch conftest.a | |
11722 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11723 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
11725 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
11726 | if test no = "$hard_links"; then |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
11728 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
a243b558 | 11729 | need_locks=warn |
9c60689e | 11730 | fi |
a243b558 JF |
11731 | else |
11732 | need_locks=no | |
11733 | fi | |
9c60689e | 11734 | |
ee134472 | 11735 | |
9c60689e | 11736 | |
9c60689e | 11737 | |
9c60689e | 11738 | |
a243b558 JF |
11739 | |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11741 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11742 | ||
11743 | runpath_var= | |
11744 | allow_undefined_flag= | |
11745 | always_export_symbols=no | |
11746 | archive_cmds= | |
11747 | archive_expsym_cmds= | |
11748 | compiler_needs_object=no | |
11749 | enable_shared_with_static_runtimes=no | |
11750 | export_dynamic_flag_spec= | |
11751 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11752 | hardcode_automatic=no | |
11753 | hardcode_direct=no | |
11754 | hardcode_direct_absolute=no | |
11755 | hardcode_libdir_flag_spec= | |
11756 | hardcode_libdir_separator= | |
11757 | hardcode_minus_L=no | |
11758 | hardcode_shlibpath_var=unsupported | |
11759 | inherit_rpath=no | |
11760 | link_all_deplibs=unknown | |
11761 | module_cmds= | |
11762 | module_expsym_cmds= | |
11763 | old_archive_from_new_cmds= | |
11764 | old_archive_from_expsyms_cmds= | |
11765 | thread_safe_flag_spec= | |
11766 | whole_archive_flag_spec= | |
11767 | # include_expsyms should be a list of space-separated symbols to be *always* | |
11768 | # included in the symbol list | |
11769 | include_expsyms= | |
11770 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9d54db95 JF |
11771 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
11772 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
11773 | # as well as any symbol that contains 'd'. | |
a243b558 JF |
11774 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
11775 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
11776 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
11777 | # the symbol is explicitly referenced. Since portable code cannot | |
11778 | # rely on this symbol name, it's probably fine to never include it in | |
11779 | # preloaded symbol tables. | |
11780 | # Exclude shared library initialization/finalization symbols. | |
11781 | extract_expsyms_cmds= | |
11782 | ||
9c60689e | 11783 | case $host_os in |
a243b558 JF |
11784 | cygwin* | mingw* | pw32* | cegcc*) |
11785 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
11786 | # When not using gcc, we currently assume that we are using | |
11787 | # Microsoft Visual C++. | |
9d54db95 | 11788 | if test yes != "$GCC"; then |
a243b558 JF |
11789 | with_gnu_ld=no |
11790 | fi | |
9c60689e | 11791 | ;; |
a243b558 JF |
11792 | interix*) |
11793 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
11794 | with_gnu_ld=yes | |
11795 | ;; | |
9d54db95 | 11796 | openbsd* | bitrig*) |
a243b558 | 11797 | with_gnu_ld=no |
9c60689e DWT |
11798 | ;; |
11799 | esac | |
9c60689e | 11800 | |
a243b558 | 11801 | ld_shlibs=yes |
ee134472 | 11802 | |
a243b558 JF |
11803 | # On some targets, GNU ld is compatible enough with the native linker |
11804 | # that we're better off using the native interface for both. | |
11805 | lt_use_gnu_ld_interface=no | |
9d54db95 | 11806 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
11807 | case $host_os in |
11808 | aix*) | |
11809 | # The AIX port of GNU ld has always aspired to compatibility | |
11810 | # with the native linker. However, as the warning in the GNU ld | |
11811 | # block says, versions before 2.19.5* couldn't really create working | |
11812 | # shared libraries, regardless of the interface used. | |
11813 | case `$LD -v 2>&1` in | |
11814 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
11815 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
11816 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
11817 | *) | |
11818 | lt_use_gnu_ld_interface=yes | |
11819 | ;; | |
11820 | esac | |
11821 | ;; | |
11822 | *) | |
11823 | lt_use_gnu_ld_interface=yes | |
11824 | ;; | |
11825 | esac | |
11826 | fi | |
9c60689e | 11827 | |
9d54db95 | 11828 | if test yes = "$lt_use_gnu_ld_interface"; then |
a243b558 | 11829 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9d54db95 | 11830 | wlarc='$wl' |
9c60689e | 11831 | |
a243b558 JF |
11832 | # Set some defaults for GNU ld with shared library support. These |
11833 | # are reset later if shared libraries are not supported. Putting them | |
11834 | # here allows them to be overridden if necessary. | |
11835 | runpath_var=LD_RUN_PATH | |
9d54db95 JF |
11836 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
11837 | export_dynamic_flag_spec='$wl--export-dynamic' | |
a243b558 JF |
11838 | # ancient GNU ld didn't support --whole-archive et. al. |
11839 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 11840 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
a243b558 JF |
11841 | else |
11842 | whole_archive_flag_spec= | |
11843 | fi | |
11844 | supports_anon_versioning=no | |
9d54db95 | 11845 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
a243b558 JF |
11846 | *GNU\ gold*) supports_anon_versioning=yes ;; |
11847 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
11848 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
11849 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
11850 | *\ 2.11.*) ;; # other 2.11 versions | |
11851 | *) supports_anon_versioning=yes ;; | |
11852 | esac | |
ee134472 | 11853 | |
a243b558 JF |
11854 | # See if GNU ld supports shared libraries. |
11855 | case $host_os in | |
11856 | aix[3-9]*) | |
11857 | # On AIX/PPC, the GNU linker is very broken | |
9d54db95 | 11858 | if test ia64 != "$host_cpu"; then |
a243b558 JF |
11859 | ld_shlibs=no |
11860 | cat <<_LT_EOF 1>&2 | |
ee134472 | 11861 | |
a243b558 JF |
11862 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
11863 | *** to be unable to reliably create shared libraries on AIX. | |
11864 | *** Therefore, libtool is disabling shared libraries support. If you | |
11865 | *** really care for shared libraries, you may want to install binutils | |
11866 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
11867 | *** You will then need to restart the configuration process. | |
9c60689e | 11868 | |
a243b558 JF |
11869 | _LT_EOF |
11870 | fi | |
11871 | ;; | |
9c60689e | 11872 | |
a243b558 JF |
11873 | amigaos*) |
11874 | case $host_cpu in | |
11875 | powerpc) | |
11876 | # see comment about AmigaOS4 .so support | |
9d54db95 | 11877 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11878 | archive_expsym_cmds='' |
11879 | ;; | |
11880 | m68k) | |
11881 | 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)' | |
11882 | hardcode_libdir_flag_spec='-L$libdir' | |
11883 | hardcode_minus_L=yes | |
11884 | ;; | |
11885 | esac | |
11886 | ;; | |
9c60689e | 11887 | |
a243b558 JF |
11888 | beos*) |
11889 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11890 | allow_undefined_flag=unsupported | |
11891 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11892 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 11893 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11894 | else |
11895 | ld_shlibs=no | |
11896 | fi | |
11897 | ;; | |
9c60689e | 11898 | |
a243b558 JF |
11899 | cygwin* | mingw* | pw32* | cegcc*) |
11900 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
11901 | # as there is no search path for DLLs. | |
11902 | hardcode_libdir_flag_spec='-L$libdir' | |
9d54db95 | 11903 | export_dynamic_flag_spec='$wl--export-all-symbols' |
a243b558 JF |
11904 | allow_undefined_flag=unsupported |
11905 | always_export_symbols=no | |
11906 | enable_shared_with_static_runtimes=yes | |
11907 | 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' | |
11908 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 11909 | |
a243b558 | 11910 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9d54db95 JF |
11911 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11912 | # If the export-symbols file already is a .def file, use it as | |
11913 | # is; otherwise, prepend EXPORTS... | |
11914 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
11915 | cp $export_symbols $output_objdir/$soname.def; | |
11916 | else | |
11917 | echo EXPORTS > $output_objdir/$soname.def; | |
11918 | cat $export_symbols >> $output_objdir/$soname.def; | |
11919 | fi~ | |
11920 | $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 |
11921 | else |
11922 | ld_shlibs=no | |
11923 | fi | |
11924 | ;; | |
9c60689e | 11925 | |
a243b558 | 11926 | haiku*) |
9d54db95 | 11927 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11928 | link_all_deplibs=yes |
11929 | ;; | |
9c60689e | 11930 | |
9d54db95 JF |
11931 | os2*) |
11932 | hardcode_libdir_flag_spec='-L$libdir' | |
11933 | hardcode_minus_L=yes | |
11934 | allow_undefined_flag=unsupported | |
11935 | shrext_cmds=.dll | |
11936 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11937 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11938 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11939 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11940 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11941 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11942 | emximp -o $lib $output_objdir/$libname.def' | |
11943 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11944 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11945 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11946 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11947 | prefix_cmds="$SED"~ | |
11948 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11949 | prefix_cmds="$prefix_cmds -e 1d"; | |
11950 | fi~ | |
11951 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11952 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11953 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11954 | emximp -o $lib $output_objdir/$libname.def' | |
11955 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11956 | enable_shared_with_static_runtimes=yes | |
11957 | ;; | |
11958 | ||
a243b558 JF |
11959 | interix[3-9]*) |
11960 | hardcode_direct=no | |
11961 | hardcode_shlibpath_var=no | |
9d54db95 JF |
11962 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
11963 | export_dynamic_flag_spec='$wl-E' | |
a243b558 JF |
11964 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11965 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11966 | # default) and relocated if they conflict, which is a slow very memory | |
11967 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11968 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11969 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
11970 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11971 | 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 | 11972 | ;; |
9c60689e | 11973 | |
a243b558 JF |
11974 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
11975 | tmp_diet=no | |
9d54db95 | 11976 | if test linux-dietlibc = "$host_os"; then |
a243b558 JF |
11977 | case $cc_basename in |
11978 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
11979 | esac | |
11980 | fi | |
11981 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9d54db95 | 11982 | && test no = "$tmp_diet" |
a243b558 JF |
11983 | then |
11984 | tmp_addflag=' $pic_flag' | |
11985 | tmp_sharedflag='-shared' | |
11986 | case $cc_basename,$host_cpu in | |
11987 | pgcc*) # Portland Group C compiler | |
9d54db95 | 11988 | 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 |
11989 | tmp_addflag=' $pic_flag' |
11990 | ;; | |
11991 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
11992 | # Portland Group f77 and f90 compilers | |
9d54db95 | 11993 | 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 |
11994 | tmp_addflag=' $pic_flag -Mnomain' ;; |
11995 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
11996 | tmp_addflag=' -i_dynamic' ;; | |
11997 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
11998 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
11999 | ifc* | ifort*) # Intel Fortran compiler | |
12000 | tmp_addflag=' -nofor_main' ;; | |
12001 | lf95*) # Lahey Fortran 8.1 | |
12002 | whole_archive_flag_spec= | |
12003 | tmp_sharedflag='--shared' ;; | |
9d54db95 JF |
12004 | nagfor*) # NAGFOR 5.3 |
12005 | tmp_sharedflag='-Wl,-shared' ;; | |
a243b558 JF |
12006 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
12007 | tmp_sharedflag='-qmkshrobj' | |
12008 | tmp_addflag= ;; | |
12009 | nvcc*) # Cuda Compiler Driver 2.2 | |
9d54db95 | 12010 | 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 |
12011 | compiler_needs_object=yes |
12012 | ;; | |
12013 | esac | |
12014 | case `$CC -V 2>&1 | sed 5q` in | |
12015 | *Sun\ C*) # Sun C 5.9 | |
9d54db95 | 12016 | 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 |
12017 | compiler_needs_object=yes |
12018 | tmp_sharedflag='-G' ;; | |
12019 | *Sun\ F*) # Sun Fortran 8.3 | |
12020 | tmp_sharedflag='-G' ;; | |
12021 | esac | |
9d54db95 | 12022 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9c60689e | 12023 | |
9d54db95 | 12024 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 12025 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
12026 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
12027 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12028 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
a243b558 | 12029 | fi |
9c60689e | 12030 | |
a243b558 | 12031 | case $cc_basename in |
9d54db95 JF |
12032 | tcc*) |
12033 | export_dynamic_flag_spec='-rdynamic' | |
12034 | ;; | |
a243b558 JF |
12035 | xlf* | bgf* | bgxlf* | mpixlf*) |
12036 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
12037 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9d54db95 | 12038 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 | 12039 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9d54db95 | 12040 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 12041 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
12042 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
12043 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12044 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
a243b558 JF |
12045 | fi |
12046 | ;; | |
12047 | esac | |
12048 | else | |
12049 | ld_shlibs=no | |
12050 | fi | |
12051 | ;; | |
9c60689e | 12052 | |
a243b558 JF |
12053 | netbsd*) |
12054 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12055 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12056 | wlarc= | |
12057 | else | |
9d54db95 JF |
12058 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
12059 | 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 |
12060 | fi |
12061 | ;; | |
9c60689e | 12062 | |
a243b558 JF |
12063 | solaris*) |
12064 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
12065 | ld_shlibs=no | |
12066 | cat <<_LT_EOF 1>&2 | |
9c60689e | 12067 | |
a243b558 JF |
12068 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
12069 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12070 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12071 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12072 | *** your PATH or compiler configuration so that the native linker is | |
12073 | *** used, and then restart. | |
9c60689e | 12074 | |
a243b558 JF |
12075 | _LT_EOF |
12076 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12077 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
12078 | 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 |
12079 | else |
12080 | ld_shlibs=no | |
12081 | fi | |
12082 | ;; | |
9c60689e | 12083 | |
a243b558 JF |
12084 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
12085 | case `$LD -v 2>&1` in | |
12086 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12087 | ld_shlibs=no | |
12088 | cat <<_LT_EOF 1>&2 | |
9c60689e | 12089 | |
9d54db95 | 12090 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
a243b558 JF |
12091 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
12092 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12093 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12094 | *** your PATH or compiler configuration so that the native linker is | |
12095 | *** used, and then restart. | |
9c60689e | 12096 | |
a243b558 JF |
12097 | _LT_EOF |
12098 | ;; | |
12099 | *) | |
12100 | # For security reasons, it is highly recommended that you always | |
12101 | # use absolute paths for naming shared libraries, and exclude the | |
12102 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12103 | # requires that you compile everything twice, which is a pain. | |
12104 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12105 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
12106 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
12107 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
12108 | else |
12109 | ld_shlibs=no | |
12110 | fi | |
12111 | ;; | |
12112 | esac | |
12113 | ;; | |
9c60689e | 12114 | |
a243b558 JF |
12115 | sunos4*) |
12116 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12117 | wlarc= | |
12118 | hardcode_direct=yes | |
12119 | hardcode_shlibpath_var=no | |
12120 | ;; | |
9c60689e | 12121 | |
a243b558 JF |
12122 | *) |
12123 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12124 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
12125 | 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 |
12126 | else |
12127 | ld_shlibs=no | |
12128 | fi | |
12129 | ;; | |
12130 | esac | |
9c60689e | 12131 | |
9d54db95 | 12132 | if test no = "$ld_shlibs"; then |
a243b558 JF |
12133 | runpath_var= |
12134 | hardcode_libdir_flag_spec= | |
12135 | export_dynamic_flag_spec= | |
12136 | whole_archive_flag_spec= | |
12137 | fi | |
12138 | else | |
12139 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12140 | case $host_os in | |
12141 | aix3*) | |
12142 | allow_undefined_flag=unsupported | |
12143 | always_export_symbols=yes | |
12144 | 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' | |
12145 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12146 | # are no directories specified by -L. | |
12147 | hardcode_minus_L=yes | |
9d54db95 | 12148 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
a243b558 JF |
12149 | # Neither direct hardcoding nor static linking is supported with a |
12150 | # broken collect2. | |
12151 | hardcode_direct=unsupported | |
12152 | fi | |
12153 | ;; | |
9c60689e | 12154 | |
a243b558 | 12155 | aix[4-9]*) |
9d54db95 | 12156 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
12157 | # On IA64, the linker does run time linking by default, so we don't |
12158 | # have to do anything special. | |
12159 | aix_use_runtimelinking=no | |
12160 | exp_sym_flag='-Bexport' | |
9d54db95 | 12161 | no_entry_flag= |
a243b558 JF |
12162 | else |
12163 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
12164 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
12165 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
12166 | # weak defined symbols like other global defined symbols, whereas | |
12167 | # GNU nm marks them as "W". | |
12168 | # While the 'weak' keyword is ignored in the Export File, we need | |
12169 | # it in the Import File for the 'aix-soname' feature, so we have | |
12170 | # to replace the "-B" option with "-P" for AIX nm. | |
a243b558 | 12171 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 12172 | 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 | 12173 | else |
9d54db95 | 12174 | 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 |
12175 | fi |
12176 | aix_use_runtimelinking=no | |
9c60689e | 12177 | |
a243b558 JF |
12178 | # Test if we are trying to use run time linking or normal |
12179 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
12180 | # have runtime linking enabled, and use it for executables. |
12181 | # For shared libraries, we enable/disable runtime linking | |
12182 | # depending on the kind of the shared library created - | |
12183 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
12184 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
12185 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
12186 | # lib.a static archive | |
12187 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
12188 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
12189 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
12190 | # lib.a(lib.so.V) shared, rtl:no | |
12191 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
12192 | # lib.a static archive | |
a243b558 JF |
12193 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
12194 | for ld_flag in $LDFLAGS; do | |
9d54db95 | 12195 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
a243b558 JF |
12196 | aix_use_runtimelinking=yes |
12197 | break | |
12198 | fi | |
12199 | done | |
9d54db95 JF |
12200 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
12201 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
12202 | # so we don't have lib.a shared libs to link our executables. | |
12203 | # We have to force runtime linking in this case. | |
12204 | aix_use_runtimelinking=yes | |
12205 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
12206 | fi | |
a243b558 JF |
12207 | ;; |
12208 | esac | |
9c60689e | 12209 | |
a243b558 JF |
12210 | exp_sym_flag='-bexport' |
12211 | no_entry_flag='-bnoentry' | |
12212 | fi | |
9c60689e | 12213 | |
a243b558 JF |
12214 | # When large executables or shared objects are built, AIX ld can |
12215 | # have problems creating the table of contents. If linking a library | |
12216 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12217 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12218 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 12219 | |
a243b558 JF |
12220 | archive_cmds='' |
12221 | hardcode_direct=yes | |
12222 | hardcode_direct_absolute=yes | |
12223 | hardcode_libdir_separator=':' | |
12224 | link_all_deplibs=yes | |
9d54db95 JF |
12225 | file_list_spec='$wl-f,' |
12226 | case $with_aix_soname,$aix_use_runtimelinking in | |
12227 | aix,*) ;; # traditional, no import file | |
12228 | svr4,* | *,yes) # use import file | |
12229 | # The Import File defines what to hardcode. | |
12230 | hardcode_direct=no | |
12231 | hardcode_direct_absolute=no | |
12232 | ;; | |
12233 | esac | |
9c60689e | 12234 | |
9d54db95 | 12235 | if test yes = "$GCC"; then |
a243b558 JF |
12236 | case $host_os in aix4.[012]|aix4.[012].*) |
12237 | # We only want to do this on AIX 4.2 and lower, the check | |
12238 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 12239 | collect2name=`$CC -print-prog-name=collect2` |
a243b558 JF |
12240 | if test -f "$collect2name" && |
12241 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12242 | then | |
12243 | # We have reworked collect2 | |
12244 | : | |
12245 | else | |
12246 | # We have old collect2 | |
12247 | hardcode_direct=unsupported | |
12248 | # It fails to find uninstalled libraries when the uninstalled | |
12249 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12250 | # to unsupported forces relinking | |
12251 | hardcode_minus_L=yes | |
12252 | hardcode_libdir_flag_spec='-L$libdir' | |
12253 | hardcode_libdir_separator= | |
12254 | fi | |
12255 | ;; | |
12256 | esac | |
12257 | shared_flag='-shared' | |
9d54db95 JF |
12258 | if test yes = "$aix_use_runtimelinking"; then |
12259 | shared_flag="$shared_flag "'$wl-G' | |
a243b558 | 12260 | fi |
9d54db95 JF |
12261 | # Need to ensure runtime linking is disabled for the traditional |
12262 | # shared library, or the linker may eventually find shared libraries | |
12263 | # /with/ Import File - we do not want to mix them. | |
12264 | shared_flag_aix='-shared' | |
12265 | shared_flag_svr4='-shared $wl-G' | |
a243b558 JF |
12266 | else |
12267 | # not using gcc | |
9d54db95 | 12268 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
12269 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
12270 | # chokes on -Wl,-G. The following line is correct: | |
12271 | shared_flag='-G' | |
12272 | else | |
9d54db95 JF |
12273 | if test yes = "$aix_use_runtimelinking"; then |
12274 | shared_flag='$wl-G' | |
a243b558 | 12275 | else |
9d54db95 | 12276 | shared_flag='$wl-bM:SRE' |
a243b558 | 12277 | fi |
9d54db95 JF |
12278 | shared_flag_aix='$wl-bM:SRE' |
12279 | shared_flag_svr4='$wl-G' | |
a243b558 JF |
12280 | fi |
12281 | fi | |
9c60689e | 12282 | |
9d54db95 | 12283 | export_dynamic_flag_spec='$wl-bexpall' |
a243b558 JF |
12284 | # It seems that -bexpall does not export symbols beginning with |
12285 | # underscore (_), so it is better to generate a list of symbols to export. | |
12286 | always_export_symbols=yes | |
9d54db95 | 12287 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
a243b558 JF |
12288 | # Warning - without using the other runtime loading flags (-brtl), |
12289 | # -berok will link without error, but may produce a broken library. | |
12290 | allow_undefined_flag='-berok' | |
12291 | # Determine the default libpath from the value encoded in an | |
12292 | # empty executable. | |
9d54db95 | 12293 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 12294 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 12295 | else |
a243b558 | 12296 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
12297 | $as_echo_n "(cached) " >&6 |
12298 | else | |
a243b558 | 12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
12300 | /* end confdefs.h. */ |
12301 | ||
9c60689e DWT |
12302 | int |
12303 | main () | |
12304 | { | |
a243b558 | 12305 | |
9c60689e DWT |
12306 | ; |
12307 | return 0; | |
12308 | } | |
12309 | _ACEOF | |
12310 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
12311 | |
12312 | lt_aix_libpath_sed=' | |
12313 | /Import File Strings/,/^$/ { | |
12314 | /^0/ { | |
12315 | s/^0 *\([^ ]*\) *$/\1/ | |
12316 | p | |
12317 | } | |
12318 | }' | |
12319 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12320 | # Check for a 64-bit object if we didn't find anything. | |
12321 | if test -z "$lt_cv_aix_libpath_"; then | |
12322 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12323 | fi | |
9c60689e DWT |
12324 | fi |
12325 | rm -f core conftest.err conftest.$ac_objext \ | |
12326 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 12327 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 12328 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 | 12329 | fi |
9c60689e DWT |
12330 | |
12331 | fi | |
12332 | ||
a243b558 JF |
12333 | aix_libpath=$lt_cv_aix_libpath_ |
12334 | fi | |
9c60689e | 12335 | |
9d54db95 JF |
12336 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
12337 | 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 | 12338 | else |
9d54db95 JF |
12339 | if test ia64 = "$host_cpu"; then |
12340 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
a243b558 | 12341 | allow_undefined_flag="-z nodefs" |
9d54db95 | 12342 | 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 |
12343 | else |
12344 | # Determine the default libpath from the value encoded in an | |
12345 | # empty executable. | |
9d54db95 | 12346 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 12347 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 12348 | else |
a243b558 | 12349 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
12350 | $as_echo_n "(cached) " >&6 |
12351 | else | |
a243b558 | 12352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
12353 | /* end confdefs.h. */ |
12354 | ||
9c60689e DWT |
12355 | int |
12356 | main () | |
12357 | { | |
a243b558 | 12358 | |
9c60689e DWT |
12359 | ; |
12360 | return 0; | |
12361 | } | |
12362 | _ACEOF | |
12363 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 12364 | |
a243b558 JF |
12365 | lt_aix_libpath_sed=' |
12366 | /Import File Strings/,/^$/ { | |
12367 | /^0/ { | |
12368 | s/^0 *\([^ ]*\) *$/\1/ | |
12369 | p | |
12370 | } | |
12371 | }' | |
12372 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12373 | # Check for a 64-bit object if we didn't find anything. | |
12374 | if test -z "$lt_cv_aix_libpath_"; then | |
12375 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12376 | fi | |
9c60689e DWT |
12377 | fi |
12378 | rm -f core conftest.err conftest.$ac_objext \ | |
12379 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 12380 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 12381 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 JF |
12382 | fi |
12383 | ||
9c60689e | 12384 | fi |
9c60689e | 12385 | |
a243b558 JF |
12386 | aix_libpath=$lt_cv_aix_libpath_ |
12387 | fi | |
12388 | ||
9d54db95 | 12389 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
a243b558 JF |
12390 | # Warning - without using the other run time loading flags, |
12391 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
12392 | no_undefined_flag=' $wl-bernotok' |
12393 | allow_undefined_flag=' $wl-berok' | |
12394 | if test yes = "$with_gnu_ld"; then | |
a243b558 | 12395 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 12396 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
a243b558 JF |
12397 | else |
12398 | # Exported symbols can be pulled into shared objects from archives | |
12399 | whole_archive_flag_spec='$convenience' | |
12400 | fi | |
12401 | archive_cmds_need_lc=yes | |
9d54db95 JF |
12402 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
12403 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
12404 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
12405 | if test svr4 != "$with_aix_soname"; then | |
12406 | # This is similar to how AIX traditionally builds its shared libraries. | |
12407 | 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' | |
12408 | fi | |
12409 | if test aix != "$with_aix_soname"; then | |
12410 | 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' | |
12411 | else | |
12412 | # used by -dlpreopen to get the symbols | |
12413 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
12414 | fi | |
12415 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
a243b558 JF |
12416 | fi |
12417 | fi | |
12418 | ;; | |
12419 | ||
12420 | amigaos*) | |
12421 | case $host_cpu in | |
12422 | powerpc) | |
12423 | # see comment about AmigaOS4 .so support | |
9d54db95 | 12424 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
12425 | archive_expsym_cmds='' |
12426 | ;; | |
12427 | m68k) | |
12428 | 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)' | |
12429 | hardcode_libdir_flag_spec='-L$libdir' | |
12430 | hardcode_minus_L=yes | |
12431 | ;; | |
12432 | esac | |
12433 | ;; | |
12434 | ||
12435 | bsdi[45]*) | |
12436 | export_dynamic_flag_spec=-rdynamic | |
12437 | ;; | |
12438 | ||
12439 | cygwin* | mingw* | pw32* | cegcc*) | |
12440 | # When not using gcc, we currently assume that we are using | |
12441 | # Microsoft Visual C++. | |
12442 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12443 | # no search path for DLLs. | |
12444 | case $cc_basename in | |
12445 | cl*) | |
12446 | # Native MSVC | |
12447 | hardcode_libdir_flag_spec=' ' | |
12448 | allow_undefined_flag=unsupported | |
12449 | always_export_symbols=yes | |
12450 | file_list_spec='@' | |
12451 | # Tell ltmain to make .lib files, not .a files. | |
12452 | libext=lib | |
12453 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 12454 | shrext_cmds=.dll |
a243b558 | 12455 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
12456 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
12457 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
12458 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
12459 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
12460 | else | |
12461 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
12462 | fi~ | |
12463 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
12464 | linknames=' | |
a243b558 JF |
12465 | # The linker will not automatically build a static lib if we build a DLL. |
12466 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
12467 | enable_shared_with_static_runtimes=yes | |
12468 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
12469 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12470 | # Don't use ranlib | |
12471 | old_postinstall_cmds='chmod 644 $oldlib' | |
12472 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
12473 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
12474 | case $lt_outputfile in | |
12475 | *.exe|*.EXE) ;; | |
12476 | *) | |
12477 | lt_outputfile=$lt_outputfile.exe | |
12478 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
12479 | ;; | |
12480 | esac~ | |
12481 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
12482 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
12483 | $RM "$lt_outputfile.manifest"; | |
12484 | fi' | |
a243b558 JF |
12485 | ;; |
12486 | *) | |
12487 | # Assume MSVC wrapper | |
12488 | hardcode_libdir_flag_spec=' ' | |
12489 | allow_undefined_flag=unsupported | |
12490 | # Tell ltmain to make .lib files, not .a files. | |
12491 | libext=lib | |
12492 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 12493 | shrext_cmds=.dll |
a243b558 JF |
12494 | # FIXME: Setting linknames here is a bad hack. |
12495 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12496 | # The linker will automatically build a .lib file if we build a DLL. | |
12497 | old_archive_from_new_cmds='true' | |
12498 | # FIXME: Should let the user specify the lib program. | |
12499 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
12500 | enable_shared_with_static_runtimes=yes | |
12501 | ;; | |
12502 | esac | |
12503 | ;; | |
12504 | ||
12505 | darwin* | rhapsody*) | |
12506 | ||
12507 | ||
12508 | archive_cmds_need_lc=no | |
12509 | hardcode_direct=no | |
12510 | hardcode_automatic=yes | |
12511 | hardcode_shlibpath_var=unsupported | |
9d54db95 JF |
12512 | if test yes = "$lt_cv_ld_force_load"; then |
12513 | 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 |
12514 | |
12515 | else | |
12516 | whole_archive_flag_spec='' | |
12517 | fi | |
12518 | link_all_deplibs=yes | |
9d54db95 | 12519 | allow_undefined_flag=$_lt_dar_allow_undefined |
a243b558 | 12520 | case $cc_basename in |
9d54db95 | 12521 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
a243b558 JF |
12522 | *) _lt_dar_can_shared=$GCC ;; |
12523 | esac | |
9d54db95 | 12524 | if test yes = "$_lt_dar_can_shared"; then |
a243b558 | 12525 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
12526 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
12527 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
12528 | 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" | |
12529 | 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 |
12530 | |
12531 | else | |
12532 | ld_shlibs=no | |
12533 | fi | |
12534 | ||
12535 | ;; | |
12536 | ||
12537 | dgux*) | |
12538 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12539 | hardcode_libdir_flag_spec='-L$libdir' | |
12540 | hardcode_shlibpath_var=no | |
12541 | ;; | |
12542 | ||
12543 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12544 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12545 | # does not break anything, and helps significantly (at the cost of a little | |
12546 | # extra space). | |
12547 | freebsd2.2*) | |
12548 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12549 | hardcode_libdir_flag_spec='-R$libdir' | |
12550 | hardcode_direct=yes | |
12551 | hardcode_shlibpath_var=no | |
12552 | ;; | |
12553 | ||
12554 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12555 | freebsd2.*) | |
12556 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12557 | hardcode_direct=yes | |
12558 | hardcode_minus_L=yes | |
12559 | hardcode_shlibpath_var=no | |
12560 | ;; | |
12561 | ||
12562 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12563 | freebsd* | dragonfly*) | |
12564 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12565 | hardcode_libdir_flag_spec='-R$libdir' | |
12566 | hardcode_direct=yes | |
12567 | hardcode_shlibpath_var=no | |
12568 | ;; | |
12569 | ||
12570 | hpux9*) | |
9d54db95 JF |
12571 | if test yes = "$GCC"; then |
12572 | 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 | 12573 | else |
9d54db95 | 12574 | 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 | 12575 | fi |
9d54db95 | 12576 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
a243b558 JF |
12577 | hardcode_libdir_separator=: |
12578 | hardcode_direct=yes | |
12579 | ||
12580 | # hardcode_minus_L: Not really in the search PATH, | |
12581 | # but as the default location of the library. | |
12582 | hardcode_minus_L=yes | |
9d54db95 | 12583 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12584 | ;; |
12585 | ||
12586 | hpux10*) | |
9d54db95 JF |
12587 | if test yes,no = "$GCC,$with_gnu_ld"; then |
12588 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12589 | else |
12590 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12591 | fi | |
9d54db95 JF |
12592 | if test no = "$with_gnu_ld"; then |
12593 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
12594 | hardcode_libdir_separator=: |
12595 | hardcode_direct=yes | |
12596 | hardcode_direct_absolute=yes | |
9d54db95 | 12597 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12598 | # hardcode_minus_L: Not really in the search PATH, |
12599 | # but as the default location of the library. | |
12600 | hardcode_minus_L=yes | |
12601 | fi | |
12602 | ;; | |
12603 | ||
12604 | hpux11*) | |
9d54db95 | 12605 | if test yes,no = "$GCC,$with_gnu_ld"; then |
a243b558 JF |
12606 | case $host_cpu in |
12607 | hppa*64*) | |
9d54db95 | 12608 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12609 | ;; |
12610 | ia64*) | |
9d54db95 | 12611 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12612 | ;; |
12613 | *) | |
9d54db95 | 12614 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12615 | ;; |
12616 | esac | |
12617 | else | |
12618 | case $host_cpu in | |
12619 | hppa*64*) | |
9d54db95 | 12620 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12621 | ;; |
12622 | ia64*) | |
9d54db95 | 12623 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12624 | ;; |
12625 | *) | |
12626 | ||
12627 | # Older versions of the 11.00 compiler do not understand -b yet | |
12628 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
12630 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
12631 | if ${lt_cv_prog_compiler__b+:} false; then : | |
12632 | $as_echo_n "(cached) " >&6 | |
12633 | else | |
12634 | lt_cv_prog_compiler__b=no | |
9d54db95 | 12635 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
12636 | LDFLAGS="$LDFLAGS -b" |
12637 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12638 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12639 | # The linker can only warn and ignore the option if not recognized | |
12640 | # So say no if there are warnings | |
12641 | if test -s conftest.err; then | |
12642 | # Append any errors to the config.log. | |
12643 | cat conftest.err 1>&5 | |
12644 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
12645 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12646 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12647 | lt_cv_prog_compiler__b=yes | |
12648 | fi | |
12649 | else | |
12650 | lt_cv_prog_compiler__b=yes | |
12651 | fi | |
12652 | fi | |
12653 | $RM -r conftest* | |
9d54db95 | 12654 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
12655 | |
12656 | fi | |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
12658 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
12659 | ||
9d54db95 JF |
12660 | if test yes = "$lt_cv_prog_compiler__b"; then |
12661 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12662 | else |
12663 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12664 | fi | |
12665 | ||
12666 | ;; | |
12667 | esac | |
12668 | fi | |
9d54db95 JF |
12669 | if test no = "$with_gnu_ld"; then |
12670 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
12671 | hardcode_libdir_separator=: |
12672 | ||
12673 | case $host_cpu in | |
12674 | hppa*64*|ia64*) | |
12675 | hardcode_direct=no | |
12676 | hardcode_shlibpath_var=no | |
12677 | ;; | |
12678 | *) | |
12679 | hardcode_direct=yes | |
12680 | hardcode_direct_absolute=yes | |
9d54db95 | 12681 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12682 | |
12683 | # hardcode_minus_L: Not really in the search PATH, | |
12684 | # but as the default location of the library. | |
12685 | hardcode_minus_L=yes | |
12686 | ;; | |
12687 | esac | |
12688 | fi | |
12689 | ;; | |
12690 | ||
12691 | irix5* | irix6* | nonstopux*) | |
9d54db95 JF |
12692 | if test yes = "$GCC"; then |
12693 | 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 |
12694 | # Try to use the -exported_symbol ld option, if it does not |
12695 | # work, assume that -exports_file does not work either and | |
12696 | # implicitly export all symbols. | |
12697 | # This should be the same for all languages, so no per-tag cache variable. | |
12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
12699 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
12700 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
12701 | $as_echo_n "(cached) " >&6 | |
12702 | else | |
9d54db95 JF |
12703 | save_LDFLAGS=$LDFLAGS |
12704 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
a243b558 JF |
12705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12706 | /* end confdefs.h. */ | |
12707 | int foo (void) { return 0; } | |
12708 | _ACEOF | |
12709 | if ac_fn_c_try_link "$LINENO"; then : | |
12710 | lt_cv_irix_exported_symbol=yes | |
12711 | else | |
12712 | lt_cv_irix_exported_symbol=no | |
12713 | fi | |
12714 | rm -f core conftest.err conftest.$ac_objext \ | |
12715 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 12716 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
12717 | fi |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
12719 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9d54db95 JF |
12720 | if test yes = "$lt_cv_irix_exported_symbol"; then |
12721 | 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 |
12722 | fi |
12723 | else | |
9d54db95 JF |
12724 | 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' |
12725 | 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 |
12726 | fi |
12727 | archive_cmds_need_lc='no' | |
9d54db95 | 12728 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12729 | hardcode_libdir_separator=: |
12730 | inherit_rpath=yes | |
12731 | link_all_deplibs=yes | |
12732 | ;; | |
12733 | ||
9d54db95 JF |
12734 | linux*) |
12735 | case $cc_basename in | |
12736 | tcc*) | |
12737 | # Fabrice Bellard et al's Tiny C Compiler | |
12738 | ld_shlibs=yes | |
12739 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12740 | ;; | |
12741 | esac | |
12742 | ;; | |
12743 | ||
a243b558 JF |
12744 | netbsd*) |
12745 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12746 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12747 | else | |
12748 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12749 | fi | |
12750 | hardcode_libdir_flag_spec='-R$libdir' | |
12751 | hardcode_direct=yes | |
12752 | hardcode_shlibpath_var=no | |
12753 | ;; | |
12754 | ||
12755 | newsos6) | |
12756 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12757 | hardcode_direct=yes | |
9d54db95 | 12758 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12759 | hardcode_libdir_separator=: |
12760 | hardcode_shlibpath_var=no | |
12761 | ;; | |
12762 | ||
12763 | *nto* | *qnx*) | |
12764 | ;; | |
12765 | ||
9d54db95 | 12766 | openbsd* | bitrig*) |
a243b558 JF |
12767 | if test -f /usr/libexec/ld.so; then |
12768 | hardcode_direct=yes | |
12769 | hardcode_shlibpath_var=no | |
12770 | hardcode_direct_absolute=yes | |
9d54db95 | 12771 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
a243b558 | 12772 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9d54db95 JF |
12773 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
12774 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
12775 | export_dynamic_flag_spec='$wl-E' | |
a243b558 | 12776 | else |
9d54db95 JF |
12777 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
12778 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
a243b558 JF |
12779 | fi |
12780 | else | |
12781 | ld_shlibs=no | |
12782 | fi | |
12783 | ;; | |
12784 | ||
12785 | os2*) | |
12786 | hardcode_libdir_flag_spec='-L$libdir' | |
12787 | hardcode_minus_L=yes | |
12788 | allow_undefined_flag=unsupported | |
9d54db95 JF |
12789 | shrext_cmds=.dll |
12790 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
12791 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
12792 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
12793 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
12794 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
12795 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
12796 | emximp -o $lib $output_objdir/$libname.def' | |
12797 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
12798 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
12799 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
12800 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
12801 | prefix_cmds="$SED"~ | |
12802 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
12803 | prefix_cmds="$prefix_cmds -e 1d"; | |
12804 | fi~ | |
12805 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
12806 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
12807 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
12808 | emximp -o $lib $output_objdir/$libname.def' | |
12809 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
12810 | enable_shared_with_static_runtimes=yes | |
a243b558 JF |
12811 | ;; |
12812 | ||
12813 | osf3*) | |
9d54db95 JF |
12814 | if test yes = "$GCC"; then |
12815 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
12816 | 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 |
12817 | else |
12818 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 12819 | 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 |
12820 | fi |
12821 | archive_cmds_need_lc='no' | |
9d54db95 | 12822 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12823 | hardcode_libdir_separator=: |
12824 | ;; | |
12825 | ||
12826 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9d54db95 JF |
12827 | if test yes = "$GCC"; then |
12828 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
12829 | 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' | |
12830 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
a243b558 JF |
12831 | else |
12832 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 12833 | 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 | 12834 | 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 | 12835 | $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 |
12836 | |
12837 | # Both c and cxx compiler support -rpath directly | |
12838 | hardcode_libdir_flag_spec='-rpath $libdir' | |
12839 | fi | |
12840 | archive_cmds_need_lc='no' | |
12841 | hardcode_libdir_separator=: | |
12842 | ;; | |
12843 | ||
12844 | solaris*) | |
12845 | no_undefined_flag=' -z defs' | |
9d54db95 JF |
12846 | if test yes = "$GCC"; then |
12847 | wlarc='$wl' | |
12848 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12849 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12850 | $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 |
12851 | else |
12852 | case `$CC -V 2>&1` in | |
12853 | *"Compilers 5.0"*) | |
12854 | wlarc='' | |
9d54db95 | 12855 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
a243b558 | 12856 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12857 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
a243b558 JF |
12858 | ;; |
12859 | *) | |
9d54db95 JF |
12860 | wlarc='$wl' |
12861 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12862 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12863 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a243b558 JF |
12864 | ;; |
12865 | esac | |
12866 | fi | |
12867 | hardcode_libdir_flag_spec='-R$libdir' | |
12868 | hardcode_shlibpath_var=no | |
12869 | case $host_os in | |
12870 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12871 | *) | |
12872 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 12873 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
a243b558 JF |
12874 | # but is careful enough not to reorder. |
12875 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9d54db95 JF |
12876 | if test yes = "$GCC"; then |
12877 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
a243b558 JF |
12878 | else |
12879 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
12880 | fi | |
12881 | ;; | |
12882 | esac | |
12883 | link_all_deplibs=yes | |
12884 | ;; | |
12885 | ||
12886 | sunos4*) | |
9d54db95 | 12887 | if test sequent = "$host_vendor"; then |
a243b558 JF |
12888 | # Use $CC to link under sequent, because it throws in some extra .o |
12889 | # files that make .init and .fini sections work. | |
9d54db95 | 12890 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12891 | else |
12892 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12893 | fi | |
12894 | hardcode_libdir_flag_spec='-L$libdir' | |
12895 | hardcode_direct=yes | |
12896 | hardcode_minus_L=yes | |
12897 | hardcode_shlibpath_var=no | |
12898 | ;; | |
12899 | ||
12900 | sysv4) | |
12901 | case $host_vendor in | |
12902 | sni) | |
12903 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12904 | hardcode_direct=yes # is this really true??? | |
12905 | ;; | |
12906 | siemens) | |
12907 | ## LD is ld it makes a PLAMLIB | |
12908 | ## CC just makes a GrossModule. | |
12909 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12910 | reload_cmds='$CC -r -o $output$reload_objs' | |
12911 | hardcode_direct=no | |
12912 | ;; | |
12913 | motorola) | |
12914 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12915 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
12916 | ;; | |
12917 | esac | |
12918 | runpath_var='LD_RUN_PATH' | |
12919 | hardcode_shlibpath_var=no | |
12920 | ;; | |
12921 | ||
12922 | sysv4.3*) | |
12923 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12924 | hardcode_shlibpath_var=no | |
12925 | export_dynamic_flag_spec='-Bexport' | |
12926 | ;; | |
12927 | ||
12928 | sysv4*MP*) | |
12929 | if test -d /usr/nec; then | |
12930 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12931 | hardcode_shlibpath_var=no | |
12932 | runpath_var=LD_RUN_PATH | |
12933 | hardcode_runpath_var=yes | |
12934 | ld_shlibs=yes | |
12935 | fi | |
12936 | ;; | |
12937 | ||
12938 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9d54db95 | 12939 | no_undefined_flag='$wl-z,text' |
a243b558 JF |
12940 | archive_cmds_need_lc=no |
12941 | hardcode_shlibpath_var=no | |
12942 | runpath_var='LD_RUN_PATH' | |
12943 | ||
9d54db95 JF |
12944 | if test yes = "$GCC"; then |
12945 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12946 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12947 | else |
9d54db95 JF |
12948 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12949 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12950 | fi |
12951 | ;; | |
12952 | ||
12953 | sysv5* | sco3.2v5* | sco5v6*) | |
9d54db95 | 12954 | # Note: We CANNOT use -z defs as we might desire, because we do not |
a243b558 JF |
12955 | # link with -lc, and that would cause any symbols used from libc to |
12956 | # always be unresolved, which means just about no library would | |
12957 | # ever link correctly. If we're not using GNU ld we use -z text | |
12958 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12959 | # as -z defs. | |
9d54db95 JF |
12960 | no_undefined_flag='$wl-z,text' |
12961 | allow_undefined_flag='$wl-z,nodefs' | |
a243b558 JF |
12962 | archive_cmds_need_lc=no |
12963 | hardcode_shlibpath_var=no | |
9d54db95 | 12964 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
a243b558 JF |
12965 | hardcode_libdir_separator=':' |
12966 | link_all_deplibs=yes | |
9d54db95 | 12967 | export_dynamic_flag_spec='$wl-Bexport' |
a243b558 JF |
12968 | runpath_var='LD_RUN_PATH' |
12969 | ||
9d54db95 JF |
12970 | if test yes = "$GCC"; then |
12971 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12972 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12973 | else |
9d54db95 JF |
12974 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12975 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12976 | fi |
12977 | ;; | |
12978 | ||
12979 | uts4*) | |
12980 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12981 | hardcode_libdir_flag_spec='-L$libdir' | |
12982 | hardcode_shlibpath_var=no | |
12983 | ;; | |
12984 | ||
12985 | *) | |
12986 | ld_shlibs=no | |
12987 | ;; | |
12988 | esac | |
12989 | ||
9d54db95 | 12990 | if test sni = "$host_vendor"; then |
a243b558 JF |
12991 | case $host in |
12992 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9d54db95 | 12993 | export_dynamic_flag_spec='$wl-Blargedynsym' |
a243b558 JF |
12994 | ;; |
12995 | esac | |
12996 | fi | |
12997 | fi | |
12998 | ||
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
13000 | $as_echo "$ld_shlibs" >&6; } | |
9d54db95 | 13001 | test no = "$ld_shlibs" && can_build_shared=no |
a243b558 JF |
13002 | |
13003 | with_gnu_ld=$with_gnu_ld | |
13004 | ||
13005 | ||
13006 | ||
13007 | ||
13008 | ||
13009 | ||
13010 | ||
13011 | ||
13012 | ||
13013 | ||
13014 | ||
13015 | ||
13016 | ||
13017 | ||
13018 | ||
13019 | # | |
13020 | # Do we need to explicitly link libc? | |
13021 | # | |
13022 | case "x$archive_cmds_need_lc" in | |
13023 | x|xyes) | |
13024 | # Assume -lc should be added | |
13025 | archive_cmds_need_lc=yes | |
13026 | ||
9d54db95 | 13027 | if test yes,yes = "$GCC,$enable_shared"; then |
a243b558 JF |
13028 | case $archive_cmds in |
13029 | *'~'*) | |
13030 | # FIXME: we may have to deal with multi-command sequences. | |
13031 | ;; | |
13032 | '$CC '*) | |
13033 | # Test whether the compiler implicitly links with -lc since on some | |
13034 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13035 | # to ld, don't add -lc before -lgcc. | |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13037 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13038 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
13039 | $as_echo_n "(cached) " >&6 | |
13040 | else | |
00a96142 | 13041 | $RM -r conftest* |
a243b558 JF |
13042 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
13043 | ||
13044 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13045 | (eval $ac_compile) 2>&5 | |
13046 | ac_status=$? | |
13047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13048 | test $ac_status = 0; } 2>conftest.err; then | |
13049 | soname=conftest | |
13050 | lib=conftest | |
13051 | libobjs=conftest.$ac_objext | |
13052 | deplibs= | |
13053 | wl=$lt_prog_compiler_wl | |
13054 | pic_flag=$lt_prog_compiler_pic | |
13055 | compiler_flags=-v | |
13056 | linker_flags=-v | |
13057 | verstring= | |
13058 | output_objdir=. | |
13059 | libname=conftest | |
13060 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
13061 | allow_undefined_flag= | |
13062 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13063 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13064 | ac_status=$? | |
13065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13066 | test $ac_status = 0; } | |
13067 | then | |
13068 | lt_cv_archive_cmds_need_lc=no | |
13069 | else | |
13070 | lt_cv_archive_cmds_need_lc=yes | |
13071 | fi | |
13072 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
13073 | else | |
13074 | cat conftest.err 1>&5 | |
13075 | fi | |
00a96142 | 13076 | $RM -r conftest* |
a243b558 JF |
13077 | |
13078 | fi | |
13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
13080 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
13081 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
13082 | ;; | |
13083 | esac | |
13084 | fi | |
13085 | ;; | |
13086 | esac | |
13087 | ||
13088 | ||
13089 | ||
13090 | ||
13091 | ||
13092 | ||
13093 | ||
13094 | ||
13095 | ||
13096 | ||
13097 | ||
13098 | ||
13099 | ||
13100 | ||
13101 | ||
13102 | ||
13103 | ||
13104 | ||
13105 | ||
13106 | ||
13107 | ||
13108 | ||
13109 | ||
13110 | ||
13111 | ||
13112 | ||
13113 | ||
13114 | ||
13115 | ||
13116 | ||
13117 | ||
13118 | ||
13119 | ||
13120 | ||
13121 | ||
13122 | ||
13123 | ||
13124 | ||
13125 | ||
13126 | ||
13127 | ||
13128 | ||
13129 | ||
13130 | ||
13131 | ||
13132 | ||
13133 | ||
13134 | ||
13135 | ||
13136 | ||
13137 | ||
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | ||
13143 | ||
13144 | ||
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | ||
13150 | ||
13151 | ||
13152 | ||
13153 | ||
13154 | ||
13155 | ||
13156 | ||
13157 | ||
13158 | ||
13159 | ||
13160 | ||
13161 | ||
13162 | ||
13163 | ||
13164 | ||
13165 | ||
13166 | ||
13167 | ||
13168 | ||
13169 | ||
13170 | ||
13171 | ||
13172 | ||
13173 | ||
13174 | ||
13175 | ||
13176 | ||
13177 | ||
13178 | ||
13179 | ||
13180 | ||
13181 | ||
13182 | ||
13183 | ||
13184 | ||
13185 | ||
13186 | ||
13187 | ||
13188 | ||
13189 | ||
13190 | ||
13191 | ||
13192 | ||
13193 | ||
13194 | ||
13195 | ||
13196 | ||
13197 | ||
13198 | ||
13199 | ||
13200 | ||
13201 | ||
13202 | ||
13203 | ||
13204 | ||
13205 | ||
13206 | ||
13207 | ||
13208 | ||
13209 | ||
13210 | ||
13211 | ||
13212 | ||
13213 | ||
13214 | ||
13215 | ||
13216 | ||
13217 | ||
13218 | ||
13219 | ||
13220 | ||
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | ||
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13240 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13241 | ||
9d54db95 | 13242 | if test yes = "$GCC"; then |
a243b558 | 13243 | case $host_os in |
9d54db95 JF |
13244 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
13245 | *) lt_awk_arg='/^libraries:/' ;; | |
a243b558 JF |
13246 | esac |
13247 | case $host_os in | |
9d54db95 JF |
13248 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
13249 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
a243b558 JF |
13250 | esac |
13251 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
13252 | case $lt_search_path_spec in | |
13253 | *\;*) | |
13254 | # if the path contains ";" then we assume it to be the separator | |
13255 | # otherwise default to the standard path separator (i.e. ":") - it is | |
13256 | # assumed that no part of a normal pathname contains ";" but that should | |
13257 | # okay in the real world where ";" in dirpaths is itself problematic. | |
13258 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
13259 | ;; | |
13260 | *) | |
13261 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
13262 | ;; | |
13263 | esac | |
13264 | # Ok, now we have the path, separated by spaces, we can step through it | |
9d54db95 | 13265 | # and add multilib dir if necessary... |
a243b558 | 13266 | lt_tmp_lt_search_path_spec= |
9d54db95 JF |
13267 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
13268 | # ...but if some path component already ends with the multilib dir we assume | |
13269 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
13270 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
13271 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
13272 | lt_multi_os_dir= | |
13273 | ;; | |
13274 | esac | |
a243b558 | 13275 | for lt_sys_path in $lt_search_path_spec; do |
9d54db95 JF |
13276 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
13277 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
13278 | elif test -n "$lt_multi_os_dir"; then | |
a243b558 JF |
13279 | test -d "$lt_sys_path" && \ |
13280 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
13281 | fi | |
13282 | done | |
13283 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9d54db95 JF |
13284 | BEGIN {RS = " "; FS = "/|\n";} { |
13285 | lt_foo = ""; | |
13286 | lt_count = 0; | |
a243b558 JF |
13287 | for (lt_i = NF; lt_i > 0; lt_i--) { |
13288 | if ($lt_i != "" && $lt_i != ".") { | |
13289 | if ($lt_i == "..") { | |
13290 | lt_count++; | |
13291 | } else { | |
13292 | if (lt_count == 0) { | |
9d54db95 | 13293 | lt_foo = "/" $lt_i lt_foo; |
a243b558 JF |
13294 | } else { |
13295 | lt_count--; | |
13296 | } | |
13297 | } | |
13298 | } | |
13299 | } | |
13300 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
13301 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
13302 | }'` | |
13303 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
13304 | # for these hosts. | |
13305 | case $host_os in | |
13306 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9d54db95 | 13307 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
a243b558 JF |
13308 | esac |
13309 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
13310 | else | |
13311 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
13312 | fi | |
13313 | library_names_spec= | |
13314 | libname_spec='lib$name' | |
13315 | soname_spec= | |
9d54db95 | 13316 | shrext_cmds=.so |
a243b558 JF |
13317 | postinstall_cmds= |
13318 | postuninstall_cmds= | |
13319 | finish_cmds= | |
13320 | finish_eval= | |
13321 | shlibpath_var= | |
13322 | shlibpath_overrides_runpath=unknown | |
13323 | version_type=none | |
13324 | dynamic_linker="$host_os ld.so" | |
13325 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13326 | need_lib_prefix=unknown | |
13327 | hardcode_into_libs=no | |
13328 | ||
13329 | # when you set need_version to no, make sure it does not cause -set_version | |
13330 | # flags to be left without arguments | |
13331 | need_version=unknown | |
13332 | ||
9d54db95 JF |
13333 | |
13334 | ||
a243b558 JF |
13335 | case $host_os in |
13336 | aix3*) | |
13337 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 13338 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
a243b558 JF |
13339 | shlibpath_var=LIBPATH |
13340 | ||
13341 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 13342 | soname_spec='$libname$release$shared_ext$major' |
a243b558 JF |
13343 | ;; |
13344 | ||
13345 | aix[4-9]*) | |
13346 | version_type=linux # correct to gnu/linux during the next big refactor | |
13347 | need_lib_prefix=no | |
13348 | need_version=no | |
13349 | hardcode_into_libs=yes | |
9d54db95 | 13350 | if test ia64 = "$host_cpu"; then |
a243b558 | 13351 | # AIX 5 supports IA64 |
9d54db95 | 13352 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
a243b558 JF |
13353 | shlibpath_var=LD_LIBRARY_PATH |
13354 | else | |
13355 | # With GCC up to 2.95.x, collect2 would create an import file | |
13356 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
13357 | # the line '#! .'. This would cause the generated library to |
13358 | # depend on '.', always an invalid library. This was fixed in | |
a243b558 JF |
13359 | # development snapshots of GCC prior to 3.0. |
13360 | case $host_os in | |
13361 | aix4 | aix4.[01] | aix4.[01].*) | |
13362 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13363 | echo ' yes ' | |
9d54db95 | 13364 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
a243b558 JF |
13365 | : |
13366 | else | |
13367 | can_build_shared=no | |
13368 | fi | |
13369 | ;; | |
13370 | esac | |
9d54db95 JF |
13371 | # Using Import Files as archive members, it is possible to support |
13372 | # filename-based versioning of shared library archives on AIX. While | |
13373 | # this would work for both with and without runtime linking, it will | |
13374 | # prevent static linking of such archives. So we do filename-based | |
13375 | # shared library versioning with .so extension only, which is used | |
13376 | # when both runtime linking and shared linking is enabled. | |
13377 | # Unfortunately, runtime linking may impact performance, so we do | |
13378 | # not want this to be the default eventually. Also, we use the | |
13379 | # versioned .so libs for executables only if there is the -brtl | |
13380 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
13381 | # To allow for filename-based versioning support, we need to create | |
13382 | # libNAME.so.V as an archive file, containing: | |
13383 | # *) an Import File, referring to the versioned filename of the | |
13384 | # archive as well as the shared archive member, telling the | |
13385 | # bitwidth (32 or 64) of that shared object, and providing the | |
13386 | # list of exported symbols of that shared object, eventually | |
13387 | # decorated with the 'weak' keyword | |
13388 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
13389 | # it being seen by the linker. | |
13390 | # At run time we better use the real file rather than another symlink, | |
13391 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
13392 | ||
13393 | case $with_aix_soname,$aix_use_runtimelinking in | |
13394 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
a243b558 JF |
13395 | # soname into executable. Probably we can add versioning support to |
13396 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
13397 | aix,yes) # traditional libtool |
13398 | dynamic_linker='AIX unversionable lib.so' | |
a243b558 JF |
13399 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
13400 | # instead of lib<name>.a to let people know that these are not | |
13401 | # typical AIX shared libraries. | |
9d54db95 JF |
13402 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13403 | ;; | |
13404 | aix,no) # traditional AIX only | |
13405 | dynamic_linker='AIX lib.a(lib.so.V)' | |
a243b558 JF |
13406 | # We preserve .a as extension for shared libraries through AIX4.2 |
13407 | # and later when we are not doing run time linking. | |
9d54db95 JF |
13408 | library_names_spec='$libname$release.a $libname.a' |
13409 | soname_spec='$libname$release$shared_ext$major' | |
13410 | ;; | |
13411 | svr4,*) # full svr4 only | |
13412 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
13413 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
13414 | # We do not specify a path in Import Files, so LIBPATH fires. | |
13415 | shlibpath_overrides_runpath=yes | |
13416 | ;; | |
13417 | *,yes) # both, prefer svr4 | |
13418 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
13419 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
13420 | # unpreferred sharedlib libNAME.a needs extra handling | |
13421 | 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"' | |
13422 | 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"' | |
13423 | # We do not specify a path in Import Files, so LIBPATH fires. | |
13424 | shlibpath_overrides_runpath=yes | |
13425 | ;; | |
13426 | *,no) # both, prefer aix | |
13427 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
13428 | library_names_spec='$libname$release.a $libname.a' | |
13429 | soname_spec='$libname$release$shared_ext$major' | |
13430 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
13431 | 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)' | |
13432 | 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"' | |
13433 | ;; | |
13434 | esac | |
a243b558 JF |
13435 | shlibpath_var=LIBPATH |
13436 | fi | |
13437 | ;; | |
13438 | ||
13439 | amigaos*) | |
13440 | case $host_cpu in | |
13441 | powerpc) | |
13442 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13443 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 13444 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
13445 | ;; |
13446 | m68k) | |
13447 | library_names_spec='$libname.ixlibrary $libname.a' | |
13448 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 13449 | 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 |
13450 | ;; |
13451 | esac | |
13452 | ;; | |
13453 | ||
13454 | beos*) | |
9d54db95 | 13455 | library_names_spec='$libname$shared_ext' |
a243b558 JF |
13456 | dynamic_linker="$host_os ld.so" |
13457 | shlibpath_var=LIBRARY_PATH | |
13458 | ;; | |
13459 | ||
13460 | bsdi[45]*) | |
13461 | version_type=linux # correct to gnu/linux during the next big refactor | |
13462 | need_version=no | |
9d54db95 JF |
13463 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13464 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
13466 | shlibpath_var=LD_LIBRARY_PATH | |
13467 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13468 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13469 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13470 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13471 | # libtool to hard-code these into programs | |
13472 | ;; | |
13473 | ||
13474 | cygwin* | mingw* | pw32* | cegcc*) | |
13475 | version_type=windows | |
9d54db95 | 13476 | shrext_cmds=.dll |
a243b558 JF |
13477 | need_version=no |
13478 | need_lib_prefix=no | |
9c60689e | 13479 | |
a243b558 JF |
13480 | case $GCC,$cc_basename in |
13481 | yes,*) | |
13482 | # gcc | |
13483 | library_names_spec='$libname.dll.a' | |
13484 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
13485 | postinstall_cmds='base_file=`basename \$file`~ |
13486 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
13487 | dldir=$destdir/`dirname \$dlpath`~ |
13488 | test -d \$dldir || mkdir -p \$dldir~ | |
13489 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13490 | chmod a+x \$dldir/$dlname~ | |
13491 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13492 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13493 | fi' | |
13494 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13495 | dlpath=$dir/\$dldll~ | |
13496 | $RM \$dlpath' | |
13497 | shlibpath_overrides_runpath=yes | |
9c60689e | 13498 | |
a243b558 JF |
13499 | case $host_os in |
13500 | cygwin*) | |
13501 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 13502 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
9c60689e | 13503 | |
a243b558 JF |
13504 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
13505 | ;; | |
13506 | mingw* | cegcc*) | |
13507 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 13508 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
13509 | ;; |
13510 | pw32*) | |
13511 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 13512 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
13513 | ;; |
13514 | esac | |
13515 | dynamic_linker='Win32 ld.exe' | |
13516 | ;; | |
9c60689e | 13517 | |
a243b558 JF |
13518 | *,cl*) |
13519 | # Native MSVC | |
13520 | libname_spec='$name' | |
9d54db95 JF |
13521 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
13522 | library_names_spec='$libname.dll.lib' | |
9c60689e | 13523 | |
a243b558 JF |
13524 | case $build_os in |
13525 | mingw*) | |
13526 | sys_lib_search_path_spec= | |
13527 | lt_save_ifs=$IFS | |
13528 | IFS=';' | |
13529 | for lt_path in $LIB | |
13530 | do | |
13531 | IFS=$lt_save_ifs | |
13532 | # Let DOS variable expansion print the short 8.3 style file name. | |
13533 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
13534 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
13535 | done | |
13536 | IFS=$lt_save_ifs | |
13537 | # Convert to MSYS style. | |
13538 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
13539 | ;; | |
13540 | cygwin*) | |
13541 | # Convert to unix form, then to dos form, then back to unix form | |
13542 | # but this time dos style (no spaces!) so that the unix form looks | |
13543 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
13544 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
13545 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
13546 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13547 | ;; | |
13548 | *) | |
9d54db95 | 13549 | sys_lib_search_path_spec=$LIB |
a243b558 JF |
13550 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
13551 | # It is most probably a Windows format PATH. | |
13552 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13553 | else | |
13554 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13555 | fi | |
13556 | # FIXME: find the short name or the path components, as spaces are | |
13557 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
13558 | ;; | |
13559 | esac | |
13560 | ||
13561 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
13562 | postinstall_cmds='base_file=`basename \$file`~ |
13563 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
13564 | dldir=$destdir/`dirname \$dlpath`~ |
13565 | test -d \$dldir || mkdir -p \$dldir~ | |
13566 | $install_prog $dir/$dlname \$dldir/$dlname' | |
13567 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13568 | dlpath=$dir/\$dldll~ | |
13569 | $RM \$dlpath' | |
13570 | shlibpath_overrides_runpath=yes | |
13571 | dynamic_linker='Win32 link.exe' | |
13572 | ;; | |
9c60689e | 13573 | |
a243b558 JF |
13574 | *) |
13575 | # Assume MSVC wrapper | |
9d54db95 | 13576 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
a243b558 JF |
13577 | dynamic_linker='Win32 ld.exe' |
13578 | ;; | |
13579 | esac | |
13580 | # FIXME: first we should search . and the directory the executable is in | |
13581 | shlibpath_var=PATH | |
13582 | ;; | |
9c60689e | 13583 | |
a243b558 JF |
13584 | darwin* | rhapsody*) |
13585 | dynamic_linker="$host_os dyld" | |
13586 | version_type=darwin | |
13587 | need_lib_prefix=no | |
13588 | need_version=no | |
9d54db95 JF |
13589 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
13590 | soname_spec='$libname$release$major$shared_ext' | |
a243b558 JF |
13591 | shlibpath_overrides_runpath=yes |
13592 | shlibpath_var=DYLD_LIBRARY_PATH | |
13593 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13594 | |
a243b558 JF |
13595 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
13596 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13597 | ;; | |
9c60689e | 13598 | |
a243b558 JF |
13599 | dgux*) |
13600 | version_type=linux # correct to gnu/linux during the next big refactor | |
13601 | need_lib_prefix=no | |
13602 | need_version=no | |
9d54db95 JF |
13603 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13604 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13605 | shlibpath_var=LD_LIBRARY_PATH |
13606 | ;; | |
13607 | ||
13608 | freebsd* | dragonfly*) | |
13609 | # DragonFly does not have aout. When/if they implement a new | |
13610 | # versioning mechanism, adjust this. | |
13611 | if test -x /usr/bin/objformat; then | |
13612 | objformat=`/usr/bin/objformat` | |
13613 | else | |
13614 | case $host_os in | |
13615 | freebsd[23].*) objformat=aout ;; | |
13616 | *) objformat=elf ;; | |
13617 | esac | |
13618 | fi | |
13619 | version_type=freebsd-$objformat | |
13620 | case $version_type in | |
13621 | freebsd-elf*) | |
9d54db95 JF |
13622 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13623 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13624 | need_version=no |
13625 | need_lib_prefix=no | |
13626 | ;; | |
13627 | freebsd-*) | |
9d54db95 | 13628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13629 | need_version=yes |
13630 | ;; | |
13631 | esac | |
13632 | shlibpath_var=LD_LIBRARY_PATH | |
13633 | case $host_os in | |
13634 | freebsd2.*) | |
13635 | shlibpath_overrides_runpath=yes | |
13636 | ;; | |
13637 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13638 | shlibpath_overrides_runpath=yes | |
13639 | hardcode_into_libs=yes | |
13640 | ;; | |
13641 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13642 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13643 | shlibpath_overrides_runpath=no | |
13644 | hardcode_into_libs=yes | |
13645 | ;; | |
13646 | *) # from 4.6 on, and DragonFly | |
13647 | shlibpath_overrides_runpath=yes | |
13648 | hardcode_into_libs=yes | |
13649 | ;; | |
13650 | esac | |
13651 | ;; | |
9c60689e | 13652 | |
a243b558 JF |
13653 | haiku*) |
13654 | version_type=linux # correct to gnu/linux during the next big refactor | |
13655 | need_lib_prefix=no | |
13656 | need_version=no | |
13657 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
13658 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13659 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 13660 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 13661 | shlibpath_overrides_runpath=no |
a243b558 JF |
13662 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
13663 | hardcode_into_libs=yes | |
13664 | ;; | |
9c60689e | 13665 | |
a243b558 JF |
13666 | hpux9* | hpux10* | hpux11*) |
13667 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13668 | # link against other versions. | |
13669 | version_type=sunos | |
13670 | need_lib_prefix=no | |
13671 | need_version=no | |
13672 | case $host_cpu in | |
13673 | ia64*) | |
13674 | shrext_cmds='.so' | |
13675 | hardcode_into_libs=yes | |
13676 | dynamic_linker="$host_os dld.so" | |
13677 | shlibpath_var=LD_LIBRARY_PATH | |
13678 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
13679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13680 | soname_spec='$libname$release$shared_ext$major' | |
13681 | if test 32 = "$HPUX_IA64_MODE"; then | |
a243b558 | 13682 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 13683 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
a243b558 JF |
13684 | else |
13685 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 13686 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
a243b558 | 13687 | fi |
a243b558 JF |
13688 | ;; |
13689 | hppa*64*) | |
13690 | shrext_cmds='.sl' | |
13691 | hardcode_into_libs=yes | |
13692 | dynamic_linker="$host_os dld.sl" | |
13693 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13694 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
13695 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13696 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13697 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13698 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13699 | ;; | |
13700 | *) | |
13701 | shrext_cmds='.sl' | |
13702 | dynamic_linker="$host_os dld.sl" | |
13703 | shlibpath_var=SHLIB_PATH | |
13704 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
13705 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13706 | soname_spec='$libname$release$shared_ext$major' | |
9c60689e DWT |
13707 | ;; |
13708 | esac | |
a243b558 JF |
13709 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
13710 | postinstall_cmds='chmod 555 $lib' | |
13711 | # or fails outright, so override atomically: | |
13712 | install_override_mode=555 | |
13713 | ;; | |
9c60689e | 13714 | |
a243b558 JF |
13715 | interix[3-9]*) |
13716 | version_type=linux # correct to gnu/linux during the next big refactor | |
13717 | need_lib_prefix=no | |
13718 | need_version=no | |
9d54db95 JF |
13719 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13720 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13721 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13722 | shlibpath_var=LD_LIBRARY_PATH | |
13723 | shlibpath_overrides_runpath=no | |
13724 | hardcode_into_libs=yes | |
13725 | ;; | |
9c60689e | 13726 | |
a243b558 JF |
13727 | irix5* | irix6* | nonstopux*) |
13728 | case $host_os in | |
13729 | nonstopux*) version_type=nonstopux ;; | |
13730 | *) | |
9d54db95 | 13731 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
13732 | version_type=linux # correct to gnu/linux during the next big refactor |
13733 | else | |
13734 | version_type=irix | |
13735 | fi ;; | |
13736 | esac | |
13737 | need_lib_prefix=no | |
13738 | need_version=no | |
9d54db95 JF |
13739 | soname_spec='$libname$release$shared_ext$major' |
13740 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
a243b558 JF |
13741 | case $host_os in |
13742 | irix5* | nonstopux*) | |
13743 | libsuff= shlibsuff= | |
13744 | ;; | |
13745 | *) | |
13746 | case $LD in # libtool.m4 will add one of these switches to LD | |
13747 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13748 | libsuff= shlibsuff= libmagic=32-bit;; | |
13749 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13750 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13751 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13752 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13753 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13754 | esac | |
13755 | ;; | |
13756 | esac | |
13757 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13758 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
13759 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
13760 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
a243b558 JF |
13761 | hardcode_into_libs=yes |
13762 | ;; | |
9c60689e | 13763 | |
a243b558 JF |
13764 | # No shared lib support for Linux oldld, aout, or coff. |
13765 | linux*oldld* | linux*aout* | linux*coff*) | |
13766 | dynamic_linker=no | |
13767 | ;; | |
9c60689e | 13768 | |
9d54db95 JF |
13769 | linux*android*) |
13770 | version_type=none # Android doesn't support versioned libraries. | |
13771 | need_lib_prefix=no | |
13772 | need_version=no | |
13773 | library_names_spec='$libname$release$shared_ext' | |
13774 | soname_spec='$libname$release$shared_ext' | |
13775 | finish_cmds= | |
13776 | shlibpath_var=LD_LIBRARY_PATH | |
13777 | shlibpath_overrides_runpath=yes | |
13778 | ||
13779 | # This implies no fast_install, which is unacceptable. | |
13780 | # Some rework will be needed to allow for fast_install | |
13781 | # before this can be enabled. | |
13782 | hardcode_into_libs=yes | |
13783 | ||
13784 | dynamic_linker='Android linker' | |
13785 | # Don't embed -rpath directories since the linker doesn't support them. | |
13786 | hardcode_libdir_flag_spec='-L$libdir' | |
13787 | ;; | |
13788 | ||
a243b558 | 13789 | # This must be glibc/ELF. |
9d54db95 | 13790 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
13791 | version_type=linux # correct to gnu/linux during the next big refactor |
13792 | need_lib_prefix=no | |
13793 | need_version=no | |
9d54db95 JF |
13794 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13795 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13796 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13797 | shlibpath_var=LD_LIBRARY_PATH | |
13798 | shlibpath_overrides_runpath=no | |
9c60689e | 13799 | |
a243b558 JF |
13800 | # Some binutils ld are patched to set DT_RUNPATH |
13801 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
13802 | $as_echo_n "(cached) " >&6 |
13803 | else | |
a243b558 JF |
13804 | lt_cv_shlibpath_overrides_runpath=no |
13805 | save_LDFLAGS=$LDFLAGS | |
13806 | save_libdir=$libdir | |
13807 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
13808 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
13809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13810 | /* end confdefs.h. */ | |
ee134472 | 13811 | |
a243b558 JF |
13812 | int |
13813 | main () | |
9c60689e | 13814 | { |
9c60689e | 13815 | |
a243b558 JF |
13816 | ; |
13817 | return 0; | |
13818 | } | |
13819 | _ACEOF | |
13820 | if ac_fn_c_try_link "$LINENO"; then : | |
13821 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13822 | lt_cv_shlibpath_overrides_runpath=yes | |
13823 | fi | |
13824 | fi | |
13825 | rm -f core conftest.err conftest.$ac_objext \ | |
13826 | conftest$ac_exeext conftest.$ac_ext | |
13827 | LDFLAGS=$save_LDFLAGS | |
13828 | libdir=$save_libdir | |
9c60689e | 13829 | |
a243b558 | 13830 | fi |
9c60689e | 13831 | |
a243b558 | 13832 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 13833 | |
a243b558 JF |
13834 | # This implies no fast_install, which is unacceptable. |
13835 | # Some rework will be needed to allow for fast_install | |
13836 | # before this can be enabled. | |
13837 | hardcode_into_libs=yes | |
9c60689e | 13838 | |
9d54db95 JF |
13839 | # Ideally, we could use ldconfig to report *all* directores which are |
13840 | # searched for libraries, however this is still not possible. Aside from not | |
13841 | # being certain /sbin/ldconfig is available, command | |
13842 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
13843 | # even though it is searched at run-time. Try to do the best guess by | |
13844 | # appending ld.so.conf contents (and includes) to the search path. | |
a243b558 JF |
13845 | if test -f /etc/ld.so.conf; then |
13846 | 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' ' '` | |
13847 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13848 | fi | |
ee134472 | 13849 | |
a243b558 JF |
13850 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13851 | # powerpc, because MkLinux only supported shared libraries with the | |
13852 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13853 | # most powerpc-linux boxes support dynamic linking these days and | |
13854 | # people can always --disable-shared, the test was removed, and we | |
13855 | # assume the GNU/Linux dynamic linker is in use. | |
13856 | dynamic_linker='GNU/Linux ld.so' | |
13857 | ;; | |
9c60689e | 13858 | |
a243b558 JF |
13859 | netbsd*) |
13860 | version_type=sunos | |
13861 | need_lib_prefix=no | |
13862 | need_version=no | |
13863 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 13864 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13865 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13866 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 13867 | else |
9d54db95 JF |
13868 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13869 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 13870 | dynamic_linker='NetBSD ld.elf_so' |
9c60689e | 13871 | fi |
a243b558 JF |
13872 | shlibpath_var=LD_LIBRARY_PATH |
13873 | shlibpath_overrides_runpath=yes | |
13874 | hardcode_into_libs=yes | |
13875 | ;; | |
9c60689e | 13876 | |
a243b558 JF |
13877 | newsos6) |
13878 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 13879 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
13880 | shlibpath_var=LD_LIBRARY_PATH |
13881 | shlibpath_overrides_runpath=yes | |
13882 | ;; | |
9c60689e | 13883 | |
a243b558 JF |
13884 | *nto* | *qnx*) |
13885 | version_type=qnx | |
13886 | need_lib_prefix=no | |
13887 | need_version=no | |
9d54db95 JF |
13888 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13889 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13890 | shlibpath_var=LD_LIBRARY_PATH |
13891 | shlibpath_overrides_runpath=no | |
13892 | hardcode_into_libs=yes | |
13893 | dynamic_linker='ldqnx.so' | |
13894 | ;; | |
9c60689e | 13895 | |
9d54db95 | 13896 | openbsd* | bitrig*) |
a243b558 | 13897 | version_type=sunos |
9d54db95 | 13898 | sys_lib_dlsearch_path_spec=/usr/lib |
a243b558 | 13899 | need_lib_prefix=no |
9d54db95 JF |
13900 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
13901 | need_version=no | |
a243b558 | 13902 | else |
9d54db95 | 13903 | need_version=yes |
a243b558 | 13904 | fi |
9d54db95 JF |
13905 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
13906 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13907 | shlibpath_var=LD_LIBRARY_PATH | |
13908 | shlibpath_overrides_runpath=yes | |
a243b558 | 13909 | ;; |
9c60689e | 13910 | |
a243b558 JF |
13911 | os2*) |
13912 | libname_spec='$name' | |
9d54db95 JF |
13913 | version_type=windows |
13914 | shrext_cmds=.dll | |
13915 | need_version=no | |
a243b558 | 13916 | need_lib_prefix=no |
9d54db95 JF |
13917 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
13918 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
13919 | v=$($ECHO $release$versuffix | tr -d .-); | |
13920 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
13921 | $ECHO $n$v`$shared_ext' | |
13922 | library_names_spec='${libname}_dll.$libext' | |
a243b558 | 13923 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
13924 | shlibpath_var=BEGINLIBPATH |
13925 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
13926 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13927 | postinstall_cmds='base_file=`basename \$file`~ | |
13928 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
13929 | dldir=$destdir/`dirname \$dlpath`~ | |
13930 | test -d \$dldir || mkdir -p \$dldir~ | |
13931 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13932 | chmod a+x \$dldir/$dlname~ | |
13933 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13934 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13935 | fi' | |
13936 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
13937 | dlpath=$dir/\$dldll~ | |
13938 | $RM \$dlpath' | |
a243b558 | 13939 | ;; |
9c60689e | 13940 | |
a243b558 JF |
13941 | osf3* | osf4* | osf5*) |
13942 | version_type=osf | |
13943 | need_lib_prefix=no | |
13944 | need_version=no | |
9d54db95 JF |
13945 | soname_spec='$libname$release$shared_ext$major' |
13946 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
a243b558 JF |
13947 | shlibpath_var=LD_LIBRARY_PATH |
13948 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 13949 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
a243b558 JF |
13950 | ;; |
13951 | ||
13952 | rdos*) | |
13953 | dynamic_linker=no | |
13954 | ;; | |
13955 | ||
13956 | solaris*) | |
13957 | version_type=linux # correct to gnu/linux during the next big refactor | |
13958 | need_lib_prefix=no | |
13959 | need_version=no | |
9d54db95 JF |
13960 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13961 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13962 | shlibpath_var=LD_LIBRARY_PATH |
13963 | shlibpath_overrides_runpath=yes | |
13964 | hardcode_into_libs=yes | |
13965 | # ldd complains unless libraries are executable | |
13966 | postinstall_cmds='chmod +x $lib' | |
13967 | ;; | |
9c60689e | 13968 | |
a243b558 JF |
13969 | sunos4*) |
13970 | version_type=sunos | |
9d54db95 | 13971 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13972 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13973 | shlibpath_var=LD_LIBRARY_PATH | |
13974 | shlibpath_overrides_runpath=yes | |
9d54db95 | 13975 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
13976 | need_lib_prefix=no |
13977 | fi | |
13978 | need_version=yes | |
13979 | ;; | |
9c60689e | 13980 | |
a243b558 JF |
13981 | sysv4 | sysv4.3*) |
13982 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
13983 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13984 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13985 | shlibpath_var=LD_LIBRARY_PATH |
13986 | case $host_vendor in | |
13987 | sni) | |
13988 | shlibpath_overrides_runpath=no | |
13989 | need_lib_prefix=no | |
13990 | runpath_var=LD_RUN_PATH | |
13991 | ;; | |
13992 | siemens) | |
13993 | need_lib_prefix=no | |
13994 | ;; | |
13995 | motorola) | |
13996 | need_lib_prefix=no | |
13997 | need_version=no | |
13998 | shlibpath_overrides_runpath=no | |
13999 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14000 | ;; | |
14001 | esac | |
14002 | ;; | |
9c60689e | 14003 | |
a243b558 | 14004 | sysv4*MP*) |
9d54db95 | 14005 | if test -d /usr/nec; then |
a243b558 | 14006 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
14007 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
14008 | soname_spec='$libname$shared_ext.$major' | |
a243b558 JF |
14009 | shlibpath_var=LD_LIBRARY_PATH |
14010 | fi | |
14011 | ;; | |
9c60689e | 14012 | |
a243b558 | 14013 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 14014 | version_type=sco |
a243b558 JF |
14015 | need_lib_prefix=no |
14016 | need_version=no | |
9d54db95 JF |
14017 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
14018 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
14019 | shlibpath_var=LD_LIBRARY_PATH |
14020 | shlibpath_overrides_runpath=yes | |
14021 | hardcode_into_libs=yes | |
9d54db95 | 14022 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
14023 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
14024 | else | |
14025 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14026 | case $host_os in | |
14027 | sco3.2v5*) | |
14028 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14029 | ;; | |
14030 | esac | |
14031 | fi | |
14032 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14033 | ;; | |
9c60689e | 14034 | |
a243b558 JF |
14035 | tpf*) |
14036 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14037 | version_type=linux # correct to gnu/linux during the next big refactor | |
14038 | need_lib_prefix=no | |
14039 | need_version=no | |
9d54db95 | 14040 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
14041 | shlibpath_var=LD_LIBRARY_PATH |
14042 | shlibpath_overrides_runpath=no | |
14043 | hardcode_into_libs=yes | |
14044 | ;; | |
9c60689e | 14045 | |
a243b558 JF |
14046 | uts4*) |
14047 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
14048 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
14049 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
14050 | shlibpath_var=LD_LIBRARY_PATH |
14051 | ;; | |
9c60689e | 14052 | |
a243b558 JF |
14053 | *) |
14054 | dynamic_linker=no | |
14055 | ;; | |
14056 | esac | |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14058 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 14059 | test no = "$dynamic_linker" && can_build_shared=no |
9c60689e | 14060 | |
a243b558 | 14061 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9d54db95 | 14062 | if test yes = "$GCC"; then |
a243b558 JF |
14063 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
14064 | fi | |
9c60689e | 14065 | |
9d54db95 JF |
14066 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
14067 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
a243b558 | 14068 | fi |
9d54db95 JF |
14069 | |
14070 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
14071 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
a243b558 | 14072 | fi |
9c60689e | 14073 | |
9d54db95 JF |
14074 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
14075 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
14076 | ||
14077 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
14078 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
14079 | ||
14080 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
14081 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
14082 | ||
14083 | ||
14084 | ||
14085 | ||
14086 | ||
14087 | ||
9c60689e DWT |
14088 | |
14089 | ||
14090 | ||
14091 | ||
14092 | ||
14093 | ||
14094 | ||
9c60689e DWT |
14095 | |
14096 | ||
14097 | ||
14098 | ||
14099 | ||
14100 | ||
14101 | ||
14102 | ||
14103 | ||
14104 | ||
14105 | ||
14106 | ||
9c60689e | 14107 | |
9c60689e | 14108 | |
9c60689e | 14109 | |
9c60689e | 14110 | |
9c60689e DWT |
14111 | |
14112 | ||
14113 | ||
14114 | ||
9c60689e | 14115 | |
9c60689e DWT |
14116 | |
14117 | ||
14118 | ||
14119 | ||
14120 | ||
14121 | ||
14122 | ||
14123 | ||
14124 | ||
14125 | ||
14126 | ||
14127 | ||
14128 | ||
53ba6704 JF |
14129 | |
14130 | ||
9c60689e DWT |
14131 | |
14132 | ||
14133 | ||
14134 | ||
9c60689e DWT |
14135 | |
14136 | ||
3fd51f51 | 14137 | |
66170b30 JF |
14138 | |
14139 | ||
14140 | ||
3fd51f51 | 14141 | |
12833ad8 JF |
14142 | |
14143 | ||
14144 | ||
14145 | ||
3fd51f51 | 14146 | |
3fd51f51 DWT |
14147 | |
14148 | ||
3fd51f51 | 14149 | |
3fd51f51 | 14150 | |
3fd51f51 | 14151 | |
66170b30 | 14152 | |
632b71ea | 14153 | |
632b71ea DWT |
14154 | |
14155 | ||
790e5246 | 14156 | |
66170b30 | 14157 | |
9c60689e | 14158 | |
9c60689e DWT |
14159 | |
14160 | ||
9c60689e | 14161 | |
9c60689e DWT |
14162 | |
14163 | ||
66170b30 | 14164 | |
66170b30 | 14165 | |
9c60689e | 14166 | |
e9c9a47c DWT |
14167 | |
14168 | ||
14169 | ||
66170b30 JF |
14170 | |
14171 | ||
66170b30 | 14172 | |
e9c9a47c | 14173 | |
a243b558 JF |
14174 | |
14175 | ||
14176 | ||
14177 | ||
14178 | ||
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14180 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14181 | hardcode_action= | |
14182 | if test -n "$hardcode_libdir_flag_spec" || | |
14183 | test -n "$runpath_var" || | |
9d54db95 | 14184 | test yes = "$hardcode_automatic"; then |
a243b558 JF |
14185 | |
14186 | # We can hardcode non-existent directories. | |
9d54db95 | 14187 | if test no != "$hardcode_direct" && |
a243b558 JF |
14188 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
14189 | # have to relink, otherwise we might link with an installed library | |
14190 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
14191 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
14192 | test no != "$hardcode_minus_L"; then | |
a243b558 JF |
14193 | # Linking always hardcodes the temporary library directory. |
14194 | hardcode_action=relink | |
14195 | else | |
14196 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14197 | hardcode_action=immediate | |
9c60689e | 14198 | fi |
e9c9a47c | 14199 | else |
a243b558 JF |
14200 | # We cannot hardcode anything, or else we can only hardcode existing |
14201 | # directories. | |
14202 | hardcode_action=unsupported | |
14203 | fi | |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
14205 | $as_echo "$hardcode_action" >&6; } | |
14206 | ||
9d54db95 JF |
14207 | if test relink = "$hardcode_action" || |
14208 | test yes = "$inherit_rpath"; then | |
a243b558 JF |
14209 | # Fast installation is not supported |
14210 | enable_fast_install=no | |
9d54db95 JF |
14211 | elif test yes = "$shlibpath_overrides_runpath" || |
14212 | test no = "$enable_shared"; then | |
a243b558 JF |
14213 | # Fast installation is not necessary |
14214 | enable_fast_install=needless | |
9c60689e | 14215 | fi |
9c60689e | 14216 | |
9c60689e | 14217 | |
66170b30 | 14218 | |
66170b30 | 14219 | |
9c60689e | 14220 | |
a243b558 | 14221 | |
9d54db95 | 14222 | if test yes != "$enable_dlopen"; then |
a243b558 JF |
14223 | enable_dlopen=unknown |
14224 | enable_dlopen_self=unknown | |
14225 | enable_dlopen_self_static=unknown | |
66170b30 | 14226 | else |
a243b558 JF |
14227 | lt_cv_dlopen=no |
14228 | lt_cv_dlopen_libs= | |
66170b30 | 14229 | |
a243b558 JF |
14230 | case $host_os in |
14231 | beos*) | |
9d54db95 | 14232 | lt_cv_dlopen=load_add_on |
a243b558 JF |
14233 | lt_cv_dlopen_libs= |
14234 | lt_cv_dlopen_self=yes | |
14235 | ;; | |
66170b30 | 14236 | |
a243b558 | 14237 | mingw* | pw32* | cegcc*) |
9d54db95 | 14238 | lt_cv_dlopen=LoadLibrary |
a243b558 JF |
14239 | lt_cv_dlopen_libs= |
14240 | ;; | |
66170b30 | 14241 | |
a243b558 | 14242 | cygwin*) |
9d54db95 | 14243 | lt_cv_dlopen=dlopen |
a243b558 JF |
14244 | lt_cv_dlopen_libs= |
14245 | ;; | |
66170b30 | 14246 | |
a243b558 | 14247 | darwin*) |
9d54db95 | 14248 | # if libdl is installed we need to link against it |
a243b558 JF |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
14250 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
14251 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
14252 | $as_echo_n "(cached) " >&6 | |
14253 | else | |
14254 | ac_check_lib_save_LIBS=$LIBS | |
14255 | LIBS="-ldl $LIBS" | |
14256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14257 | /* end confdefs.h. */ | |
66170b30 | 14258 | |
a243b558 JF |
14259 | /* Override any GCC internal prototype to avoid an error. |
14260 | Use char because int might match the return type of a GCC | |
14261 | builtin and then its argument prototype would still apply. */ | |
14262 | #ifdef __cplusplus | |
14263 | extern "C" | |
14264 | #endif | |
14265 | char dlopen (); | |
14266 | int | |
14267 | main () | |
14268 | { | |
14269 | return dlopen (); | |
14270 | ; | |
14271 | return 0; | |
14272 | } | |
14273 | _ACEOF | |
14274 | if ac_fn_c_try_link "$LINENO"; then : | |
14275 | ac_cv_lib_dl_dlopen=yes | |
14276 | else | |
14277 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 14278 | fi |
a243b558 JF |
14279 | rm -f core conftest.err conftest.$ac_objext \ |
14280 | conftest$ac_exeext conftest.$ac_ext | |
14281 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 14282 | fi |
a243b558 JF |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
14284 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14285 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 14286 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 | 14287 | else |
66170b30 | 14288 | |
9d54db95 | 14289 | lt_cv_dlopen=dyld |
a243b558 JF |
14290 | lt_cv_dlopen_libs= |
14291 | lt_cv_dlopen_self=yes | |
66170b30 | 14292 | |
a243b558 | 14293 | fi |
9c60689e | 14294 | |
a243b558 | 14295 | ;; |
9c60689e | 14296 | |
9d54db95 JF |
14297 | tpf*) |
14298 | # Don't try to run any link tests for TPF. We know it's impossible | |
14299 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
14300 | lt_cv_dlopen=dlopen | |
14301 | lt_cv_dlopen_libs= | |
14302 | lt_cv_dlopen_self=no | |
14303 | ;; | |
14304 | ||
a243b558 JF |
14305 | *) |
14306 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
14307 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
9d54db95 | 14308 | lt_cv_dlopen=shl_load |
a243b558 JF |
14309 | else |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
14311 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
14312 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
14313 | $as_echo_n "(cached) " >&6 | |
14314 | else | |
14315 | ac_check_lib_save_LIBS=$LIBS | |
14316 | LIBS="-ldld $LIBS" | |
14317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14318 | /* end confdefs.h. */ | |
66170b30 | 14319 | |
a243b558 JF |
14320 | /* Override any GCC internal prototype to avoid an error. |
14321 | Use char because int might match the return type of a GCC | |
14322 | builtin and then its argument prototype would still apply. */ | |
14323 | #ifdef __cplusplus | |
14324 | extern "C" | |
14325 | #endif | |
14326 | char shl_load (); | |
14327 | int | |
14328 | main () | |
14329 | { | |
14330 | return shl_load (); | |
14331 | ; | |
14332 | return 0; | |
14333 | } | |
14334 | _ACEOF | |
14335 | if ac_fn_c_try_link "$LINENO"; then : | |
14336 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 14337 | else |
a243b558 JF |
14338 | ac_cv_lib_dld_shl_load=no |
14339 | fi | |
14340 | rm -f core conftest.err conftest.$ac_objext \ | |
14341 | conftest$ac_exeext conftest.$ac_ext | |
14342 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 14343 | fi |
a243b558 JF |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
14345 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
14346 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
9d54db95 | 14347 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
a243b558 JF |
14348 | else |
14349 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
14350 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
9d54db95 | 14351 | lt_cv_dlopen=dlopen |
a243b558 JF |
14352 | else |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
14354 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
14355 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
14356 | $as_echo_n "(cached) " >&6 | |
14357 | else | |
14358 | ac_check_lib_save_LIBS=$LIBS | |
14359 | LIBS="-ldl $LIBS" | |
14360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14361 | /* end confdefs.h. */ | |
e9c9a47c | 14362 | |
a243b558 JF |
14363 | /* Override any GCC internal prototype to avoid an error. |
14364 | Use char because int might match the return type of a GCC | |
14365 | builtin and then its argument prototype would still apply. */ | |
14366 | #ifdef __cplusplus | |
14367 | extern "C" | |
14368 | #endif | |
14369 | char dlopen (); | |
14370 | int | |
14371 | main () | |
14372 | { | |
14373 | return dlopen (); | |
14374 | ; | |
14375 | return 0; | |
14376 | } | |
14377 | _ACEOF | |
14378 | if ac_fn_c_try_link "$LINENO"; then : | |
14379 | ac_cv_lib_dl_dlopen=yes | |
14380 | else | |
14381 | ac_cv_lib_dl_dlopen=no | |
14382 | fi | |
14383 | rm -f core conftest.err conftest.$ac_objext \ | |
14384 | conftest$ac_exeext conftest.$ac_ext | |
14385 | LIBS=$ac_check_lib_save_LIBS | |
14386 | fi | |
14387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
14388 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14389 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 14390 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 JF |
14391 | else |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
14393 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
14394 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
14395 | $as_echo_n "(cached) " >&6 | |
14396 | else | |
14397 | ac_check_lib_save_LIBS=$LIBS | |
14398 | LIBS="-lsvld $LIBS" | |
14399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14400 | /* end confdefs.h. */ | |
14401 | ||
14402 | /* Override any GCC internal prototype to avoid an error. | |
14403 | Use char because int might match the return type of a GCC | |
14404 | builtin and then its argument prototype would still apply. */ | |
14405 | #ifdef __cplusplus | |
14406 | extern "C" | |
14407 | #endif | |
14408 | char dlopen (); | |
14409 | int | |
14410 | main () | |
14411 | { | |
14412 | return dlopen (); | |
14413 | ; | |
14414 | return 0; | |
14415 | } | |
14416 | _ACEOF | |
14417 | if ac_fn_c_try_link "$LINENO"; then : | |
14418 | ac_cv_lib_svld_dlopen=yes | |
14419 | else | |
14420 | ac_cv_lib_svld_dlopen=no | |
14421 | fi | |
14422 | rm -f core conftest.err conftest.$ac_objext \ | |
14423 | conftest$ac_exeext conftest.$ac_ext | |
14424 | LIBS=$ac_check_lib_save_LIBS | |
14425 | fi | |
14426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
14427 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
14428 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
9d54db95 | 14429 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
a243b558 JF |
14430 | else |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
14432 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
14433 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
14434 | $as_echo_n "(cached) " >&6 | |
14435 | else | |
14436 | ac_check_lib_save_LIBS=$LIBS | |
14437 | LIBS="-ldld $LIBS" | |
14438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14439 | /* end confdefs.h. */ | |
14440 | ||
14441 | /* Override any GCC internal prototype to avoid an error. | |
14442 | Use char because int might match the return type of a GCC | |
14443 | builtin and then its argument prototype would still apply. */ | |
14444 | #ifdef __cplusplus | |
14445 | extern "C" | |
14446 | #endif | |
14447 | char dld_link (); | |
14448 | int | |
14449 | main () | |
14450 | { | |
14451 | return dld_link (); | |
14452 | ; | |
14453 | return 0; | |
14454 | } | |
14455 | _ACEOF | |
14456 | if ac_fn_c_try_link "$LINENO"; then : | |
14457 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 14458 | else |
a243b558 JF |
14459 | ac_cv_lib_dld_dld_link=no |
14460 | fi | |
14461 | rm -f core conftest.err conftest.$ac_objext \ | |
14462 | conftest$ac_exeext conftest.$ac_ext | |
14463 | LIBS=$ac_check_lib_save_LIBS | |
14464 | fi | |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
14466 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
14467 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
9d54db95 | 14468 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
9c60689e DWT |
14469 | fi |
14470 | ||
14471 | ||
a243b558 | 14472 | fi |
66170b30 | 14473 | |
66170b30 | 14474 | |
a243b558 | 14475 | fi |
66170b30 | 14476 | |
66170b30 JF |
14477 | |
14478 | fi | |
e9c9a47c | 14479 | |
66170b30 | 14480 | |
a243b558 | 14481 | fi |
66170b30 | 14482 | |
66170b30 | 14483 | |
66170b30 | 14484 | fi |
e9c9a47c | 14485 | |
a243b558 JF |
14486 | ;; |
14487 | esac | |
9c60689e | 14488 | |
9d54db95 | 14489 | if test no = "$lt_cv_dlopen"; then |
a243b558 | 14490 | enable_dlopen=no |
9d54db95 JF |
14491 | else |
14492 | enable_dlopen=yes | |
a243b558 | 14493 | fi |
9c60689e | 14494 | |
a243b558 JF |
14495 | case $lt_cv_dlopen in |
14496 | dlopen) | |
9d54db95 JF |
14497 | save_CPPFLAGS=$CPPFLAGS |
14498 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 14499 | |
9d54db95 | 14500 | save_LDFLAGS=$LDFLAGS |
a243b558 | 14501 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
66170b30 | 14502 | |
9d54db95 | 14503 | save_LIBS=$LIBS |
a243b558 | 14504 | LIBS="$lt_cv_dlopen_libs $LIBS" |
3fd51f51 | 14505 | |
a243b558 JF |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
14507 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
14508 | if ${lt_cv_dlopen_self+:} false; then : | |
14509 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 14510 | else |
9d54db95 | 14511 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
14512 | lt_cv_dlopen_self=cross |
14513 | else | |
14514 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
14515 | lt_status=$lt_dlunknown | |
14516 | cat > conftest.$ac_ext <<_LT_EOF | |
14517 | #line $LINENO "configure" | |
14518 | #include "confdefs.h" | |
e9c9a47c | 14519 | |
a243b558 JF |
14520 | #if HAVE_DLFCN_H |
14521 | #include <dlfcn.h> | |
14522 | #endif | |
e9c9a47c | 14523 | |
a243b558 | 14524 | #include <stdio.h> |
66170b30 | 14525 | |
a243b558 JF |
14526 | #ifdef RTLD_GLOBAL |
14527 | # define LT_DLGLOBAL RTLD_GLOBAL | |
14528 | #else | |
14529 | # ifdef DL_GLOBAL | |
14530 | # define LT_DLGLOBAL DL_GLOBAL | |
14531 | # else | |
14532 | # define LT_DLGLOBAL 0 | |
14533 | # endif | |
14534 | #endif | |
66170b30 | 14535 | |
a243b558 JF |
14536 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14537 | find out it does not work in some platform. */ | |
14538 | #ifndef LT_DLLAZY_OR_NOW | |
14539 | # ifdef RTLD_LAZY | |
14540 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
14541 | # else | |
14542 | # ifdef DL_LAZY | |
14543 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
14544 | # else | |
14545 | # ifdef RTLD_NOW | |
14546 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
14547 | # else | |
14548 | # ifdef DL_NOW | |
14549 | # define LT_DLLAZY_OR_NOW DL_NOW | |
14550 | # else | |
14551 | # define LT_DLLAZY_OR_NOW 0 | |
14552 | # endif | |
14553 | # endif | |
14554 | # endif | |
14555 | # endif | |
14556 | #endif | |
e9c9a47c | 14557 | |
9d54db95 | 14558 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 14559 | correspondingly for the symbols needed. */ |
9d54db95 | 14560 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
14561 | int fnord () __attribute__((visibility("default"))); |
14562 | #endif | |
e9c9a47c | 14563 | |
a243b558 JF |
14564 | int fnord () { return 42; } |
14565 | int main () | |
14566 | { | |
14567 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14568 | int status = $lt_dlunknown; | |
e9c9a47c | 14569 | |
a243b558 JF |
14570 | if (self) |
14571 | { | |
14572 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14573 | else | |
14574 | { | |
14575 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14576 | else puts (dlerror ()); | |
14577 | } | |
14578 | /* dlclose (self); */ | |
14579 | } | |
14580 | else | |
14581 | puts (dlerror ()); | |
e9c9a47c | 14582 | |
a243b558 JF |
14583 | return status; |
14584 | } | |
14585 | _LT_EOF | |
14586 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14587 | (eval $ac_link) 2>&5 | |
14588 | ac_status=$? | |
14589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 14590 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
14591 | (./conftest; exit; ) >&5 2>/dev/null |
14592 | lt_status=$? | |
14593 | case x$lt_status in | |
14594 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
14595 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
14596 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
14597 | esac | |
14598 | else : | |
14599 | # compilation failed | |
14600 | lt_cv_dlopen_self=no | |
14601 | fi | |
14602 | fi | |
14603 | rm -fr conftest* | |
e9c9a47c | 14604 | |
e9c9a47c | 14605 | |
e9c9a47c | 14606 | fi |
a243b558 JF |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
14608 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 14609 | |
9d54db95 | 14610 | if test yes = "$lt_cv_dlopen_self"; then |
a243b558 JF |
14611 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
14613 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
14614 | if ${lt_cv_dlopen_self_static+:} false; then : | |
14615 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 14616 | else |
9d54db95 | 14617 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
14618 | lt_cv_dlopen_self_static=cross |
14619 | else | |
14620 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
14621 | lt_status=$lt_dlunknown | |
14622 | cat > conftest.$ac_ext <<_LT_EOF | |
14623 | #line $LINENO "configure" | |
14624 | #include "confdefs.h" | |
14625 | ||
14626 | #if HAVE_DLFCN_H | |
14627 | #include <dlfcn.h> | |
14628 | #endif | |
14629 | ||
14630 | #include <stdio.h> | |
e9c9a47c | 14631 | |
a243b558 JF |
14632 | #ifdef RTLD_GLOBAL |
14633 | # define LT_DLGLOBAL RTLD_GLOBAL | |
14634 | #else | |
14635 | # ifdef DL_GLOBAL | |
14636 | # define LT_DLGLOBAL DL_GLOBAL | |
14637 | # else | |
14638 | # define LT_DLGLOBAL 0 | |
14639 | # endif | |
14640 | #endif | |
e9c9a47c | 14641 | |
a243b558 JF |
14642 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14643 | find out it does not work in some platform. */ | |
14644 | #ifndef LT_DLLAZY_OR_NOW | |
14645 | # ifdef RTLD_LAZY | |
14646 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
14647 | # else | |
14648 | # ifdef DL_LAZY | |
14649 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
14650 | # else | |
14651 | # ifdef RTLD_NOW | |
14652 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
14653 | # else | |
14654 | # ifdef DL_NOW | |
14655 | # define LT_DLLAZY_OR_NOW DL_NOW | |
14656 | # else | |
14657 | # define LT_DLLAZY_OR_NOW 0 | |
14658 | # endif | |
14659 | # endif | |
14660 | # endif | |
14661 | # endif | |
14662 | #endif | |
66170b30 | 14663 | |
9d54db95 | 14664 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 14665 | correspondingly for the symbols needed. */ |
9d54db95 | 14666 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
14667 | int fnord () __attribute__((visibility("default"))); |
14668 | #endif | |
e9c9a47c | 14669 | |
a243b558 JF |
14670 | int fnord () { return 42; } |
14671 | int main () | |
14672 | { | |
14673 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14674 | int status = $lt_dlunknown; | |
e9c9a47c | 14675 | |
a243b558 JF |
14676 | if (self) |
14677 | { | |
14678 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14679 | else | |
14680 | { | |
14681 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14682 | else puts (dlerror ()); | |
14683 | } | |
14684 | /* dlclose (self); */ | |
14685 | } | |
14686 | else | |
14687 | puts (dlerror ()); | |
e9c9a47c | 14688 | |
a243b558 JF |
14689 | return status; |
14690 | } | |
14691 | _LT_EOF | |
14692 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14693 | (eval $ac_link) 2>&5 | |
14694 | ac_status=$? | |
14695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 14696 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
14697 | (./conftest; exit; ) >&5 2>/dev/null |
14698 | lt_status=$? | |
14699 | case x$lt_status in | |
14700 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
14701 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
14702 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
14703 | esac | |
14704 | else : | |
14705 | # compilation failed | |
14706 | lt_cv_dlopen_self_static=no | |
14707 | fi | |
14708 | fi | |
14709 | rm -fr conftest* | |
e9c9a47c | 14710 | |
b65019fe | 14711 | |
a243b558 JF |
14712 | fi |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
14714 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
14715 | fi | |
66170b30 | 14716 | |
9d54db95 JF |
14717 | CPPFLAGS=$save_CPPFLAGS |
14718 | LDFLAGS=$save_LDFLAGS | |
14719 | LIBS=$save_LIBS | |
a243b558 JF |
14720 | ;; |
14721 | esac | |
66170b30 | 14722 | |
a243b558 JF |
14723 | case $lt_cv_dlopen_self in |
14724 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
14725 | *) enable_dlopen_self=unknown ;; | |
14726 | esac | |
14727 | ||
14728 | case $lt_cv_dlopen_self_static in | |
14729 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
14730 | *) enable_dlopen_self_static=unknown ;; | |
14731 | esac | |
b65019fe DWT |
14732 | fi |
14733 | ||
14734 | ||
66170b30 | 14735 | |
b65019fe | 14736 | |
e9c9a47c | 14737 | |
e9c9a47c DWT |
14738 | |
14739 | ||
e9c9a47c | 14740 | |
e9c9a47c DWT |
14741 | |
14742 | ||
e9c9a47c | 14743 | |
e9c9a47c | 14744 | |
3530897b | 14745 | |
47aaa820 | 14746 | |
47aaa820 | 14747 | |
a243b558 JF |
14748 | |
14749 | ||
14750 | striplib= | |
14751 | old_striplib= | |
14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
14753 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
14754 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
14755 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
14756 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14758 | $as_echo "yes" >&6; } | |
47aaa820 | 14759 | else |
a243b558 JF |
14760 | # FIXME - insert some real tests, host_os isn't really good enough |
14761 | case $host_os in | |
14762 | darwin*) | |
9d54db95 | 14763 | if test -n "$STRIP"; then |
a243b558 JF |
14764 | striplib="$STRIP -x" |
14765 | old_striplib="$STRIP -S" | |
14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14767 | $as_echo "yes" >&6; } | |
14768 | else | |
14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14770 | $as_echo "no" >&6; } | |
14771 | fi | |
14772 | ;; | |
14773 | *) | |
14774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14775 | $as_echo "no" >&6; } | |
14776 | ;; | |
14777 | esac | |
3530897b | 14778 | fi |
47aaa820 | 14779 | |
3530897b DWT |
14780 | |
14781 | ||
9c60689e | 14782 | |
9c60689e | 14783 | |
9c60689e | 14784 | |
9c60689e | 14785 | |
9c60689e | 14786 | |
66170b30 | 14787 | |
66170b30 | 14788 | |
66170b30 | 14789 | |
66170b30 | 14790 | |
9d54db95 | 14791 | # Report what library types will actually be built |
a243b558 JF |
14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
14793 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
14794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
14795 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 14796 | |
a243b558 JF |
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
14798 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9d54db95 | 14799 | test no = "$can_build_shared" && enable_shared=no |
66170b30 | 14800 | |
a243b558 JF |
14801 | # On AIX, shared libraries and static libraries use the same namespace, and |
14802 | # are all built from PIC. | |
14803 | case $host_os in | |
14804 | aix3*) | |
9d54db95 | 14805 | test yes = "$enable_shared" && enable_static=no |
a243b558 JF |
14806 | if test -n "$RANLIB"; then |
14807 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
14808 | postinstall_cmds='$RANLIB $lib' | |
14809 | fi | |
14810 | ;; | |
66170b30 | 14811 | |
a243b558 | 14812 | aix[4-9]*) |
9d54db95 JF |
14813 | if test ia64 != "$host_cpu"; then |
14814 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
14815 | yes,aix,yes) ;; # shared object as lib.so file only | |
14816 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
14817 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
14818 | esac | |
a243b558 JF |
14819 | fi |
14820 | ;; | |
14821 | esac | |
14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
14823 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 14824 | |
a243b558 JF |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
14826 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
14827 | # Make sure either enable_shared or enable_static is yes. | |
9d54db95 | 14828 | test yes = "$enable_shared" || enable_static=yes |
a243b558 JF |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
14830 | $as_echo "$enable_static" >&6; } | |
66170b30 | 14831 | |
9c60689e | 14832 | |
e9c9a47c | 14833 | |
9c60689e | 14834 | |
a243b558 JF |
14835 | fi |
14836 | ac_ext=c | |
14837 | ac_cpp='$CPP $CPPFLAGS' | |
14838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14841 | ||
9d54db95 | 14842 | CC=$lt_save_CC |
e9c9a47c | 14843 | |
9d54db95 JF |
14844 | if test -n "$CXX" && ( test no != "$CXX" && |
14845 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
14846 | (test g++ != "$CXX"))); then | |
e9c9a47c DWT |
14847 | ac_ext=cpp |
14848 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14849 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14850 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14851 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
14853 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
14854 | if test -z "$CXXCPP"; then | |
ee134472 | 14855 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
14856 | $as_echo_n "(cached) " >&6 |
14857 | else | |
14858 | # Double quotes because CXXCPP needs to be expanded | |
14859 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
14860 | do | |
14861 | ac_preproc_ok=false | |
14862 | for ac_cxx_preproc_warn_flag in '' yes | |
14863 | do | |
14864 | # Use a header file that comes with gcc, so configuring glibc | |
14865 | # with a fresh cross-compiler works. | |
14866 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14867 | # <limits.h> exists even on freestanding compilers. | |
14868 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
14869 | # not just through cpp. "Syntax error" is here to catch this case. | |
14870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14871 | /* end confdefs.h. */ | |
14872 | #ifdef __STDC__ | |
14873 | # include <limits.h> | |
14874 | #else | |
14875 | # include <assert.h> | |
14876 | #endif | |
14877 | Syntax error | |
14878 | _ACEOF | |
14879 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14880 | ||
14881 | else | |
14882 | # Broken: fails on valid input. | |
14883 | continue | |
14884 | fi | |
12833ad8 | 14885 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14886 | |
14887 | # OK, works on sane cases. Now check whether nonexistent headers | |
14888 | # can be detected and how. | |
14889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14890 | /* end confdefs.h. */ | |
14891 | #include <ac_nonexistent.h> | |
14892 | _ACEOF | |
14893 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14894 | # Broken: success on invalid input. | |
14895 | continue | |
14896 | else | |
14897 | # Passes both tests. | |
14898 | ac_preproc_ok=: | |
14899 | break | |
14900 | fi | |
12833ad8 | 14901 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14902 | |
14903 | done | |
14904 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 14905 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
14906 | if $ac_preproc_ok; then : |
14907 | break | |
14908 | fi | |
14909 | ||
14910 | done | |
14911 | ac_cv_prog_CXXCPP=$CXXCPP | |
14912 | ||
14913 | fi | |
14914 | CXXCPP=$ac_cv_prog_CXXCPP | |
14915 | else | |
14916 | ac_cv_prog_CXXCPP=$CXXCPP | |
14917 | fi | |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
14919 | $as_echo "$CXXCPP" >&6; } | |
14920 | ac_preproc_ok=false | |
14921 | for ac_cxx_preproc_warn_flag in '' yes | |
14922 | do | |
14923 | # Use a header file that comes with gcc, so configuring glibc | |
14924 | # with a fresh cross-compiler works. | |
14925 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14926 | # <limits.h> exists even on freestanding compilers. | |
14927 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
14928 | # not just through cpp. "Syntax error" is here to catch this case. | |
14929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14930 | /* end confdefs.h. */ | |
14931 | #ifdef __STDC__ | |
14932 | # include <limits.h> | |
14933 | #else | |
14934 | # include <assert.h> | |
14935 | #endif | |
14936 | Syntax error | |
14937 | _ACEOF | |
14938 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14939 | ||
14940 | else | |
14941 | # Broken: fails on valid input. | |
14942 | continue | |
14943 | fi | |
12833ad8 | 14944 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14945 | |
14946 | # OK, works on sane cases. Now check whether nonexistent headers | |
14947 | # can be detected and how. | |
14948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14949 | /* end confdefs.h. */ | |
14950 | #include <ac_nonexistent.h> | |
14951 | _ACEOF | |
14952 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14953 | # Broken: success on invalid input. | |
14954 | continue | |
14955 | else | |
14956 | # Passes both tests. | |
14957 | ac_preproc_ok=: | |
14958 | break | |
14959 | fi | |
12833ad8 | 14960 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14961 | |
14962 | done | |
14963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 14964 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
14965 | if $ac_preproc_ok; then : |
14966 | ||
14967 | else | |
14968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
14970 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
14971 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
14972 | fi |
14973 | ||
a243b558 JF |
14974 | ac_ext=c |
14975 | ac_cpp='$CPP $CPPFLAGS' | |
14976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
14979 | |
14980 | else | |
e9c9a47c DWT |
14981 | _lt_caught_CXX_error=yes |
14982 | fi | |
14983 | ||
9c60689e DWT |
14984 | ac_ext=cpp |
14985 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14986 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14987 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14988 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 14989 | |
47aaa820 DWT |
14990 | archive_cmds_need_lc_CXX=no |
14991 | allow_undefined_flag_CXX= | |
14992 | always_export_symbols_CXX=no | |
14993 | archive_expsym_cmds_CXX= | |
14994 | compiler_needs_object_CXX=no | |
14995 | export_dynamic_flag_spec_CXX= | |
14996 | hardcode_direct_CXX=no | |
14997 | hardcode_direct_absolute_CXX=no | |
14998 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
14999 | hardcode_libdir_separator_CXX= |
15000 | hardcode_minus_L_CXX=no | |
15001 | hardcode_shlibpath_var_CXX=unsupported | |
15002 | hardcode_automatic_CXX=no | |
15003 | inherit_rpath_CXX=no | |
15004 | module_cmds_CXX= | |
15005 | module_expsym_cmds_CXX= | |
15006 | link_all_deplibs_CXX=unknown | |
15007 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
15008 | reload_flag_CXX=$reload_flag |
15009 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
15010 | no_undefined_flag_CXX= |
15011 | whole_archive_flag_spec_CXX= | |
15012 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 15013 | |
47aaa820 DWT |
15014 | # Source file extension for C++ test sources. |
15015 | ac_ext=cpp | |
9c60689e | 15016 | |
47aaa820 DWT |
15017 | # Object file extension for compiled C++ test sources. |
15018 | objext=o | |
15019 | objext_CXX=$objext | |
9c60689e | 15020 | |
47aaa820 DWT |
15021 | # No sense in running all these tests if we already determined that |
15022 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
15023 | # are currently assumed to apply to all compilers on this platform, | |
15024 | # and will be corrupted by setting them based on a non-working compiler. | |
9d54db95 | 15025 | if test yes != "$_lt_caught_CXX_error"; then |
47aaa820 DWT |
15026 | # Code to be used in simple compile tests |
15027 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 15028 | |
47aaa820 DWT |
15029 | # Code to be used in simple link tests |
15030 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 15031 | |
47aaa820 | 15032 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 15033 | |
9c60689e | 15034 | |
9c60689e | 15035 | |
9c60689e | 15036 | |
9c60689e | 15037 | |
9c60689e | 15038 | |
47aaa820 DWT |
15039 | # If no C compiler was specified, use CC. |
15040 | LTCC=${LTCC-"$CC"} | |
9c60689e | 15041 | |
47aaa820 DWT |
15042 | # If no C compiler flags were specified, use CFLAGS. |
15043 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 15044 | |
47aaa820 DWT |
15045 | # Allow CC to be a program name with arguments. |
15046 | compiler=$CC | |
9c60689e | 15047 | |
9c60689e | 15048 | |
47aaa820 DWT |
15049 | # save warnings/boilerplate of simple test code |
15050 | ac_outfile=conftest.$ac_objext | |
15051 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15052 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15053 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 15054 | $RM -r conftest* |
9c60689e | 15055 | |
47aaa820 DWT |
15056 | ac_outfile=conftest.$ac_objext |
15057 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
15058 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15059 | _lt_linker_boilerplate=`cat conftest.err` | |
15060 | $RM -r conftest* | |
9c60689e | 15061 | |
9c60689e | 15062 | |
47aaa820 DWT |
15063 | # Allow CC to be a program name with arguments. |
15064 | lt_save_CC=$CC | |
ee134472 | 15065 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
15066 | lt_save_LD=$LD |
15067 | lt_save_GCC=$GCC | |
15068 | GCC=$GXX | |
15069 | lt_save_with_gnu_ld=$with_gnu_ld | |
15070 | lt_save_path_LD=$lt_cv_path_LD | |
15071 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
15072 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 15073 | else |
47aaa820 | 15074 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 15075 | fi |
47aaa820 DWT |
15076 | if test -n "${lt_cv_path_LDCXX+set}"; then |
15077 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 15078 | else |
47aaa820 | 15079 | $as_unset lt_cv_path_LD |
9c60689e | 15080 | fi |
47aaa820 DWT |
15081 | test -z "${LDCXX+set}" || LD=$LDCXX |
15082 | CC=${CXX-"c++"} | |
ee134472 | 15083 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
15084 | compiler=$CC |
15085 | compiler_CXX=$CC | |
9d54db95 JF |
15086 | func_cc_basename $compiler |
15087 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
15088 | |
15089 | ||
47aaa820 DWT |
15090 | if test -n "$compiler"; then |
15091 | # We don't want -fno-exception when compiling C++ code, so set the | |
15092 | # no_builtin_flag separately | |
9d54db95 | 15093 | if test yes = "$GXX"; then |
47aaa820 DWT |
15094 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
15095 | else | |
15096 | lt_prog_compiler_no_builtin_flag_CXX= | |
15097 | fi | |
9c60689e | 15098 | |
9d54db95 | 15099 | if test yes = "$GXX"; then |
47aaa820 DWT |
15100 | # Set up default GNU C++ configuration |
15101 | ||
15102 | ||
15103 | ||
15104 | # Check whether --with-gnu-ld was given. | |
15105 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 15106 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
9c60689e | 15107 | else |
47aaa820 | 15108 | with_gnu_ld=no |
9c60689e DWT |
15109 | fi |
15110 | ||
47aaa820 | 15111 | ac_prog=ld |
9d54db95 | 15112 | if test yes = "$GCC"; then |
47aaa820 DWT |
15113 | # Check if gcc -print-prog-name=ld gives a path. |
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
15115 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
15116 | case $host in | |
15117 | *-*-mingw*) | |
9d54db95 | 15118 | # gcc leaves a trailing carriage return, which upsets mingw |
47aaa820 DWT |
15119 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
15120 | *) | |
15121 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15122 | esac | |
15123 | case $ac_prog in | |
15124 | # Accept absolute paths. | |
15125 | [\\/]* | ?:[\\/]*) | |
15126 | re_direlt='/[^/][^/]*/\.\./' | |
15127 | # Canonicalize the pathname of ld | |
15128 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
15129 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
15130 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
15131 | done | |
9d54db95 | 15132 | test -z "$LD" && LD=$ac_prog |
47aaa820 DWT |
15133 | ;; |
15134 | "") | |
15135 | # If it fails, then pretend we aren't using GCC. | |
15136 | ac_prog=ld | |
15137 | ;; | |
15138 | *) | |
15139 | # If it is relative, then search for the first ld in PATH. | |
15140 | with_gnu_ld=unknown | |
15141 | ;; | |
15142 | esac | |
9d54db95 | 15143 | elif test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
15145 | $as_echo_n "checking for GNU ld... " >&6; } | |
15146 | else | |
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
15148 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 15149 | fi |
ee134472 | 15150 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
15151 | $as_echo_n "(cached) " >&6 |
15152 | else | |
47aaa820 | 15153 | if test -z "$LD"; then |
9d54db95 | 15154 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
47aaa820 | 15155 | for ac_dir in $PATH; do |
9d54db95 | 15156 | IFS=$lt_save_ifs |
47aaa820 DWT |
15157 | test -z "$ac_dir" && ac_dir=. |
15158 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 15159 | lt_cv_path_LD=$ac_dir/$ac_prog |
47aaa820 DWT |
15160 | # Check to see if the program is GNU ld. I'd rather use --version, |
15161 | # but apparently some variants of GNU ld only accept -v. | |
15162 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15163 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
15164 | *GNU* | *'with BFD'*) | |
9d54db95 | 15165 | test no != "$with_gnu_ld" && break |
47aaa820 DWT |
15166 | ;; |
15167 | *) | |
9d54db95 | 15168 | test yes != "$with_gnu_ld" && break |
47aaa820 DWT |
15169 | ;; |
15170 | esac | |
15171 | fi | |
9c60689e | 15172 | done |
9d54db95 | 15173 | IFS=$lt_save_ifs |
47aaa820 | 15174 | else |
9d54db95 | 15175 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
9c60689e DWT |
15176 | fi |
15177 | fi | |
47aaa820 | 15178 | |
9d54db95 | 15179 | LD=$lt_cv_path_LD |
47aaa820 DWT |
15180 | if test -n "$LD"; then |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
15182 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
15183 | else |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15185 | $as_echo "no" >&6; } | |
15186 | fi | |
12833ad8 | 15187 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
15189 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 15190 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
15191 | $as_echo_n "(cached) " >&6 |
15192 | else | |
15193 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
15194 | case `$LD -v 2>&1 </dev/null` in | |
15195 | *GNU* | *'with BFD'*) | |
15196 | lt_cv_prog_gnu_ld=yes | |
15197 | ;; | |
15198 | *) | |
15199 | lt_cv_prog_gnu_ld=no | |
15200 | ;; | |
15201 | esac | |
15202 | fi | |
15203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
15204 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
15205 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
15206 | |
15207 | ||
9c60689e | 15208 | |
9c60689e | 15209 | |
9c60689e | 15210 | |
9c60689e | 15211 | |
9c60689e | 15212 | |
47aaa820 DWT |
15213 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
15214 | # archiving commands below assume that GNU ld is being used. | |
9d54db95 JF |
15215 | if test yes = "$with_gnu_ld"; then |
15216 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
15217 | 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 | 15218 | |
9d54db95 JF |
15219 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
15220 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 15221 | |
47aaa820 DWT |
15222 | # If archive_cmds runs LD, not CC, wlarc should be empty |
15223 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
15224 | # investigate it a little bit more. (MM) | |
9d54db95 | 15225 | wlarc='$wl' |
9c60689e | 15226 | |
47aaa820 DWT |
15227 | # ancient GNU ld didn't support --whole-archive et. al. |
15228 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
15229 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 15230 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
47aaa820 DWT |
15231 | else |
15232 | whole_archive_flag_spec_CXX= | |
15233 | fi | |
15234 | else | |
15235 | with_gnu_ld=no | |
15236 | wlarc= | |
15237 | ||
15238 | # A generic and very simple default shared library creation | |
15239 | # command for GNU C++ for the case where it uses the native | |
15240 | # linker, instead of GNU ld. If possible, this setting should | |
15241 | # overridden to take advantage of the native linker features on | |
15242 | # the platform it is being used on. | |
15243 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
15244 | fi | |
15245 | ||
15246 | # Commands to make compiler produce verbose output that lists | |
15247 | # what "hidden" libraries, object files and flags are used when | |
15248 | # linking a shared library. | |
ee134472 | 15249 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
15250 | |
15251 | else | |
15252 | GXX=no | |
15253 | with_gnu_ld=no | |
15254 | wlarc= | |
15255 | fi | |
15256 | ||
15257 | # PORTME: fill in a description of your system's C++ link characteristics | |
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15259 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15260 | ld_shlibs_CXX=yes | |
15261 | case $host_os in | |
15262 | aix3*) | |
15263 | # FIXME: insert proper C++ library support | |
15264 | ld_shlibs_CXX=no | |
15265 | ;; | |
15266 | aix[4-9]*) | |
9d54db95 | 15267 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
15268 | # On IA64, the linker does run time linking by default, so we don't |
15269 | # have to do anything special. | |
15270 | aix_use_runtimelinking=no | |
15271 | exp_sym_flag='-Bexport' | |
9d54db95 | 15272 | no_entry_flag= |
47aaa820 DWT |
15273 | else |
15274 | aix_use_runtimelinking=no | |
15275 | ||
15276 | # Test if we are trying to use run time linking or normal | |
15277 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
15278 | # have runtime linking enabled, and use it for executables. |
15279 | # For shared libraries, we enable/disable runtime linking | |
15280 | # depending on the kind of the shared library created - | |
15281 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
15282 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
15283 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
15284 | # lib.a static archive | |
15285 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
15286 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
15287 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
15288 | # lib.a(lib.so.V) shared, rtl:no | |
15289 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
15290 | # lib.a static archive | |
47aaa820 DWT |
15291 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
15292 | for ld_flag in $LDFLAGS; do | |
15293 | case $ld_flag in | |
15294 | *-brtl*) | |
15295 | aix_use_runtimelinking=yes | |
15296 | break | |
15297 | ;; | |
15298 | esac | |
15299 | done | |
9d54db95 JF |
15300 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
15301 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
15302 | # so we don't have lib.a shared libs to link our executables. | |
15303 | # We have to force runtime linking in this case. | |
15304 | aix_use_runtimelinking=yes | |
15305 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
15306 | fi | |
47aaa820 DWT |
15307 | ;; |
15308 | esac | |
15309 | ||
15310 | exp_sym_flag='-bexport' | |
15311 | no_entry_flag='-bnoentry' | |
15312 | fi | |
15313 | ||
15314 | # When large executables or shared objects are built, AIX ld can | |
15315 | # have problems creating the table of contents. If linking a library | |
15316 | # or program results in "error TOC overflow" add -mminimal-toc to | |
15317 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
15318 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
15319 | ||
15320 | archive_cmds_CXX='' | |
15321 | hardcode_direct_CXX=yes | |
15322 | hardcode_direct_absolute_CXX=yes | |
15323 | hardcode_libdir_separator_CXX=':' | |
15324 | link_all_deplibs_CXX=yes | |
9d54db95 JF |
15325 | file_list_spec_CXX='$wl-f,' |
15326 | case $with_aix_soname,$aix_use_runtimelinking in | |
15327 | aix,*) ;; # no import file | |
15328 | svr4,* | *,yes) # use import file | |
15329 | # The Import File defines what to hardcode. | |
15330 | hardcode_direct_CXX=no | |
15331 | hardcode_direct_absolute_CXX=no | |
15332 | ;; | |
15333 | esac | |
47aaa820 | 15334 | |
9d54db95 | 15335 | if test yes = "$GXX"; then |
47aaa820 DWT |
15336 | case $host_os in aix4.[012]|aix4.[012].*) |
15337 | # We only want to do this on AIX 4.2 and lower, the check | |
15338 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 15339 | collect2name=`$CC -print-prog-name=collect2` |
47aaa820 DWT |
15340 | if test -f "$collect2name" && |
15341 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
15342 | then | |
15343 | # We have reworked collect2 | |
15344 | : | |
15345 | else | |
15346 | # We have old collect2 | |
15347 | hardcode_direct_CXX=unsupported | |
15348 | # It fails to find uninstalled libraries when the uninstalled | |
15349 | # path is not listed in the libpath. Setting hardcode_minus_L | |
15350 | # to unsupported forces relinking | |
15351 | hardcode_minus_L_CXX=yes | |
15352 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
15353 | hardcode_libdir_separator_CXX= | |
15354 | fi | |
15355 | esac | |
15356 | shared_flag='-shared' | |
9d54db95 JF |
15357 | if test yes = "$aix_use_runtimelinking"; then |
15358 | shared_flag=$shared_flag' $wl-G' | |
47aaa820 | 15359 | fi |
9d54db95 JF |
15360 | # Need to ensure runtime linking is disabled for the traditional |
15361 | # shared library, or the linker may eventually find shared libraries | |
15362 | # /with/ Import File - we do not want to mix them. | |
15363 | shared_flag_aix='-shared' | |
15364 | shared_flag_svr4='-shared $wl-G' | |
47aaa820 DWT |
15365 | else |
15366 | # not using gcc | |
9d54db95 | 15367 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
15368 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
15369 | # chokes on -Wl,-G. The following line is correct: | |
15370 | shared_flag='-G' | |
15371 | else | |
9d54db95 JF |
15372 | if test yes = "$aix_use_runtimelinking"; then |
15373 | shared_flag='$wl-G' | |
47aaa820 | 15374 | else |
9d54db95 | 15375 | shared_flag='$wl-bM:SRE' |
47aaa820 | 15376 | fi |
9d54db95 JF |
15377 | shared_flag_aix='$wl-bM:SRE' |
15378 | shared_flag_svr4='$wl-G' | |
47aaa820 DWT |
15379 | fi |
15380 | fi | |
15381 | ||
9d54db95 | 15382 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
47aaa820 DWT |
15383 | # It seems that -bexpall does not export symbols beginning with |
15384 | # underscore (_), so it is better to generate a list of symbols to | |
15385 | # export. | |
15386 | always_export_symbols_CXX=yes | |
9d54db95 | 15387 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
47aaa820 DWT |
15388 | # Warning - without using the other runtime loading flags (-brtl), |
15389 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
15390 | # The "-G" linker flag allows undefined symbols. |
15391 | no_undefined_flag_CXX='-bernotok' | |
47aaa820 DWT |
15392 | # Determine the default libpath from the value encoded in an empty |
15393 | # executable. | |
9d54db95 | 15394 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
15395 | aix_libpath=$lt_cv_aix_libpath |
15396 | else | |
15397 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
15398 | $as_echo_n "(cached) " >&6 | |
15399 | else | |
15400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
15401 | /* end confdefs.h. */ |
15402 | ||
15403 | int | |
15404 | main () | |
15405 | { | |
15406 | ||
15407 | ; | |
15408 | return 0; | |
15409 | } | |
15410 | _ACEOF | |
47aaa820 | 15411 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 15412 | |
ee134472 JF |
15413 | lt_aix_libpath_sed=' |
15414 | /Import File Strings/,/^$/ { | |
15415 | /^0/ { | |
15416 | s/^0 *\([^ ]*\) *$/\1/ | |
15417 | p | |
15418 | } | |
15419 | }' | |
15420 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15421 | # Check for a 64-bit object if we didn't find anything. | |
15422 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
15423 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15424 | fi | |
47aaa820 DWT |
15425 | fi |
15426 | rm -f core conftest.err conftest.$ac_objext \ | |
15427 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 15428 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 15429 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
15430 | fi |
15431 | ||
15432 | fi | |
15433 | ||
15434 | aix_libpath=$lt_cv_aix_libpath__CXX | |
15435 | fi | |
47aaa820 | 15436 | |
9d54db95 | 15437 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 | 15438 | |
9d54db95 | 15439 | 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 | 15440 | else |
9d54db95 JF |
15441 | if test ia64 = "$host_cpu"; then |
15442 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
47aaa820 | 15443 | allow_undefined_flag_CXX="-z nodefs" |
9d54db95 | 15444 | 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 |
15445 | else |
15446 | # Determine the default libpath from the value encoded in an | |
15447 | # empty executable. | |
9d54db95 | 15448 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
15449 | aix_libpath=$lt_cv_aix_libpath |
15450 | else | |
15451 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
15452 | $as_echo_n "(cached) " >&6 | |
15453 | else | |
15454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
15455 | /* end confdefs.h. */ |
15456 | ||
15457 | int | |
15458 | main () | |
15459 | { | |
15460 | ||
15461 | ; | |
15462 | return 0; | |
15463 | } | |
15464 | _ACEOF | |
47aaa820 | 15465 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 15466 | |
ee134472 JF |
15467 | lt_aix_libpath_sed=' |
15468 | /Import File Strings/,/^$/ { | |
15469 | /^0/ { | |
15470 | s/^0 *\([^ ]*\) *$/\1/ | |
15471 | p | |
15472 | } | |
15473 | }' | |
15474 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15475 | # Check for a 64-bit object if we didn't find anything. | |
15476 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
15477 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15478 | fi | |
9c60689e | 15479 | fi |
47aaa820 DWT |
15480 | rm -f core conftest.err conftest.$ac_objext \ |
15481 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 15482 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 15483 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
15484 | fi |
15485 | ||
15486 | fi | |
15487 | ||
15488 | aix_libpath=$lt_cv_aix_libpath__CXX | |
15489 | fi | |
9c60689e | 15490 | |
9d54db95 | 15491 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 DWT |
15492 | # Warning - without using the other run time loading flags, |
15493 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
15494 | no_undefined_flag_CXX=' $wl-bernotok' |
15495 | allow_undefined_flag_CXX=' $wl-berok' | |
15496 | if test yes = "$with_gnu_ld"; then | |
ee134472 | 15497 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 15498 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
ee134472 JF |
15499 | else |
15500 | # Exported symbols can be pulled into shared objects from archives | |
15501 | whole_archive_flag_spec_CXX='$convenience' | |
15502 | fi | |
47aaa820 | 15503 | archive_cmds_need_lc_CXX=yes |
9d54db95 JF |
15504 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
15505 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
15506 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
15507 | if test svr4 != "$with_aix_soname"; then | |
15508 | # This is similar to how AIX traditionally builds its shared | |
15509 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
15510 | 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' | |
15511 | fi | |
15512 | if test aix != "$with_aix_soname"; then | |
15513 | 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' | |
15514 | else | |
15515 | # used by -dlpreopen to get the symbols | |
15516 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
15517 | fi | |
15518 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
47aaa820 DWT |
15519 | fi |
15520 | fi | |
15521 | ;; | |
9c60689e | 15522 | |
47aaa820 DWT |
15523 | beos*) |
15524 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
15525 | allow_undefined_flag_CXX=unsupported | |
15526 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15527 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 15528 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
47aaa820 DWT |
15529 | else |
15530 | ld_shlibs_CXX=no | |
15531 | fi | |
15532 | ;; | |
9c60689e | 15533 | |
47aaa820 DWT |
15534 | chorus*) |
15535 | case $cc_basename in | |
15536 | *) | |
15537 | # FIXME: insert proper C++ library support | |
15538 | ld_shlibs_CXX=no | |
15539 | ;; | |
15540 | esac | |
15541 | ;; | |
9c60689e | 15542 | |
47aaa820 | 15543 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
15544 | case $GXX,$cc_basename in |
15545 | ,cl* | no,cl*) | |
15546 | # Native MSVC | |
15547 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
15548 | # no search path for DLLs. | |
15549 | hardcode_libdir_flag_spec_CXX=' ' | |
15550 | allow_undefined_flag_CXX=unsupported | |
15551 | always_export_symbols_CXX=yes | |
15552 | file_list_spec_CXX='@' | |
15553 | # Tell ltmain to make .lib files, not .a files. | |
15554 | libext=lib | |
15555 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 15556 | shrext_cmds=.dll |
ee134472 | 15557 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
15558 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
15559 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
15560 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
15561 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
15562 | else | |
15563 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
15564 | fi~ | |
15565 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
15566 | linknames=' | |
ee134472 JF |
15567 | # The linker will not automatically build a static lib if we build a DLL. |
15568 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
15569 | enable_shared_with_static_runtimes_CXX=yes | |
15570 | # Don't use ranlib | |
15571 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
15572 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
15573 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
15574 | case $lt_outputfile in | |
15575 | *.exe|*.EXE) ;; | |
15576 | *) | |
15577 | lt_outputfile=$lt_outputfile.exe | |
15578 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
15579 | ;; | |
15580 | esac~ | |
15581 | func_to_tool_file "$lt_outputfile"~ | |
15582 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
15583 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
15584 | $RM "$lt_outputfile.manifest"; | |
15585 | fi' | |
ee134472 JF |
15586 | ;; |
15587 | *) | |
15588 | # g++ | |
15589 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
15590 | # as there is no search path for DLLs. | |
15591 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9d54db95 | 15592 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
ee134472 JF |
15593 | allow_undefined_flag_CXX=unsupported |
15594 | always_export_symbols_CXX=no | |
15595 | enable_shared_with_static_runtimes_CXX=yes | |
15596 | ||
15597 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9d54db95 JF |
15598 | 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' |
15599 | # If the export-symbols file already is a .def file, use it as | |
15600 | # is; otherwise, prepend EXPORTS... | |
15601 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
15602 | cp $export_symbols $output_objdir/$soname.def; | |
15603 | else | |
15604 | echo EXPORTS > $output_objdir/$soname.def; | |
15605 | cat $export_symbols >> $output_objdir/$soname.def; | |
15606 | fi~ | |
15607 | $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 |
15608 | else |
15609 | ld_shlibs_CXX=no | |
15610 | fi | |
15611 | ;; | |
15612 | esac | |
15613 | ;; | |
47aaa820 | 15614 | darwin* | rhapsody*) |
9c60689e | 15615 | |
9c60689e | 15616 | |
47aaa820 DWT |
15617 | archive_cmds_need_lc_CXX=no |
15618 | hardcode_direct_CXX=no | |
15619 | hardcode_automatic_CXX=yes | |
15620 | hardcode_shlibpath_var_CXX=unsupported | |
9d54db95 JF |
15621 | if test yes = "$lt_cv_ld_force_load"; then |
15622 | 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 | 15623 | |
ee134472 JF |
15624 | else |
15625 | whole_archive_flag_spec_CXX='' | |
15626 | fi | |
47aaa820 | 15627 | link_all_deplibs_CXX=yes |
9d54db95 | 15628 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
47aaa820 | 15629 | case $cc_basename in |
9d54db95 | 15630 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
47aaa820 DWT |
15631 | *) _lt_dar_can_shared=$GCC ;; |
15632 | esac | |
9d54db95 | 15633 | if test yes = "$_lt_dar_can_shared"; then |
ee134472 | 15634 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
15635 | 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" |
15636 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
15637 | 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" | |
15638 | 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" | |
15639 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
15640 | 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" | |
15641 | 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 | 15642 | fi |
9c60689e | 15643 | |
47aaa820 DWT |
15644 | else |
15645 | ld_shlibs_CXX=no | |
15646 | fi | |
9c60689e | 15647 | |
47aaa820 | 15648 | ;; |
9c60689e | 15649 | |
9d54db95 JF |
15650 | os2*) |
15651 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
15652 | hardcode_minus_L_CXX=yes | |
15653 | allow_undefined_flag_CXX=unsupported | |
15654 | shrext_cmds=.dll | |
15655 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
15656 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
15657 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
15658 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
15659 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
15660 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
15661 | emximp -o $lib $output_objdir/$libname.def' | |
15662 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
15663 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
15664 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
15665 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
15666 | prefix_cmds="$SED"~ | |
15667 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
15668 | prefix_cmds="$prefix_cmds -e 1d"; | |
15669 | fi~ | |
15670 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
15671 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
15672 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
15673 | emximp -o $lib $output_objdir/$libname.def' | |
15674 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
15675 | enable_shared_with_static_runtimes_CXX=yes | |
15676 | ;; | |
15677 | ||
47aaa820 DWT |
15678 | dgux*) |
15679 | case $cc_basename in | |
15680 | ec++*) | |
15681 | # FIXME: insert proper C++ library support | |
15682 | ld_shlibs_CXX=no | |
15683 | ;; | |
15684 | ghcx*) | |
15685 | # Green Hills C++ Compiler | |
15686 | # FIXME: insert proper C++ library support | |
15687 | ld_shlibs_CXX=no | |
15688 | ;; | |
15689 | *) | |
15690 | # FIXME: insert proper C++ library support | |
15691 | ld_shlibs_CXX=no | |
15692 | ;; | |
15693 | esac | |
15694 | ;; | |
9c60689e | 15695 | |
53ba6704 | 15696 | freebsd2.*) |
47aaa820 DWT |
15697 | # C++ shared libraries reported to be fairly broken before |
15698 | # switch to ELF | |
15699 | ld_shlibs_CXX=no | |
15700 | ;; | |
9c60689e | 15701 | |
47aaa820 DWT |
15702 | freebsd-elf*) |
15703 | archive_cmds_need_lc_CXX=no | |
15704 | ;; | |
9c60689e | 15705 | |
47aaa820 DWT |
15706 | freebsd* | dragonfly*) |
15707 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
15708 | # conventions | |
15709 | ld_shlibs_CXX=yes | |
15710 | ;; | |
9c60689e | 15711 | |
ee134472 | 15712 | haiku*) |
9d54db95 | 15713 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
ee134472 JF |
15714 | link_all_deplibs_CXX=yes |
15715 | ;; | |
15716 | ||
47aaa820 | 15717 | hpux9*) |
9d54db95 | 15718 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
47aaa820 | 15719 | hardcode_libdir_separator_CXX=: |
9d54db95 | 15720 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
15721 | hardcode_direct_CXX=yes |
15722 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
15723 | # but as the default | |
15724 | # location of the library. | |
9c60689e | 15725 | |
47aaa820 DWT |
15726 | case $cc_basename in |
15727 | CC*) | |
15728 | # FIXME: insert proper C++ library support | |
15729 | ld_shlibs_CXX=no | |
15730 | ;; | |
15731 | aCC*) | |
9d54db95 | 15732 | 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 |
15733 | # Commands to make compiler produce verbose output that lists |
15734 | # what "hidden" libraries, object files and flags are used when | |
15735 | # linking a shared library. | |
15736 | # | |
15737 | # There doesn't appear to be a way to prevent this compiler from | |
15738 | # explicitly linking system object files so we need to strip them | |
15739 | # from the output so that they don't get included in the library | |
15740 | # dependencies. | |
9d54db95 | 15741 | 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 |
15742 | ;; |
15743 | *) | |
9d54db95 JF |
15744 | if test yes = "$GXX"; then |
15745 | 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 |
15746 | else |
15747 | # FIXME: insert proper C++ library support | |
15748 | ld_shlibs_CXX=no | |
15749 | fi | |
15750 | ;; | |
15751 | esac | |
15752 | ;; | |
9c60689e | 15753 | |
47aaa820 | 15754 | hpux10*|hpux11*) |
9d54db95 JF |
15755 | if test no = "$with_gnu_ld"; then |
15756 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
47aaa820 | 15757 | hardcode_libdir_separator_CXX=: |
9c60689e | 15758 | |
47aaa820 DWT |
15759 | case $host_cpu in |
15760 | hppa*64*|ia64*) | |
15761 | ;; | |
15762 | *) | |
9d54db95 | 15763 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
15764 | ;; |
15765 | esac | |
15766 | fi | |
15767 | case $host_cpu in | |
15768 | hppa*64*|ia64*) | |
15769 | hardcode_direct_CXX=no | |
15770 | hardcode_shlibpath_var_CXX=no | |
15771 | ;; | |
15772 | *) | |
15773 | hardcode_direct_CXX=yes | |
15774 | hardcode_direct_absolute_CXX=yes | |
15775 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
15776 | # but as the default | |
15777 | # location of the library. | |
15778 | ;; | |
15779 | esac | |
9c60689e | 15780 | |
47aaa820 DWT |
15781 | case $cc_basename in |
15782 | CC*) | |
15783 | # FIXME: insert proper C++ library support | |
15784 | ld_shlibs_CXX=no | |
15785 | ;; | |
15786 | aCC*) | |
15787 | case $host_cpu in | |
15788 | hppa*64*) | |
9d54db95 | 15789 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15790 | ;; |
15791 | ia64*) | |
9d54db95 | 15792 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15793 | ;; |
15794 | *) | |
9d54db95 | 15795 | 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 |
15796 | ;; |
15797 | esac | |
15798 | # Commands to make compiler produce verbose output that lists | |
15799 | # what "hidden" libraries, object files and flags are used when | |
15800 | # linking a shared library. | |
15801 | # | |
15802 | # There doesn't appear to be a way to prevent this compiler from | |
15803 | # explicitly linking system object files so we need to strip them | |
15804 | # from the output so that they don't get included in the library | |
15805 | # dependencies. | |
9d54db95 | 15806 | 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 |
15807 | ;; |
15808 | *) | |
9d54db95 JF |
15809 | if test yes = "$GXX"; then |
15810 | if test no = "$with_gnu_ld"; then | |
47aaa820 DWT |
15811 | case $host_cpu in |
15812 | hppa*64*) | |
9d54db95 | 15813 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15814 | ;; |
15815 | ia64*) | |
9d54db95 | 15816 | 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 |
15817 | ;; |
15818 | *) | |
9d54db95 | 15819 | 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 |
15820 | ;; |
15821 | esac | |
15822 | fi | |
15823 | else | |
15824 | # FIXME: insert proper C++ library support | |
15825 | ld_shlibs_CXX=no | |
15826 | fi | |
15827 | ;; | |
15828 | esac | |
15829 | ;; | |
9c60689e | 15830 | |
47aaa820 DWT |
15831 | interix[3-9]*) |
15832 | hardcode_direct_CXX=no | |
15833 | hardcode_shlibpath_var_CXX=no | |
9d54db95 JF |
15834 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15835 | export_dynamic_flag_spec_CXX='$wl-E' | |
47aaa820 DWT |
15836 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
15837 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
15838 | # default) and relocated if they conflict, which is a slow very memory | |
15839 | # consuming and fragmenting process. To avoid this, we pick a random, | |
15840 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
15841 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
15842 | 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' |
15843 | 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 |
15844 | ;; |
15845 | irix5* | irix6*) | |
15846 | case $cc_basename in | |
15847 | CC*) | |
15848 | # SGI C++ | |
9d54db95 | 15849 | 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 | 15850 | |
47aaa820 DWT |
15851 | # Archives containing C++ object files must be created using |
15852 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
15853 | # necessary to make sure instantiated templates are included | |
15854 | # in the archive. | |
15855 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
15856 | ;; | |
15857 | *) | |
9d54db95 JF |
15858 | if test yes = "$GXX"; then |
15859 | if test no = "$with_gnu_ld"; then | |
15860 | 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 | 15861 | else |
9d54db95 | 15862 | 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 |
15863 | fi |
15864 | fi | |
15865 | link_all_deplibs_CXX=yes | |
15866 | ;; | |
15867 | esac | |
9d54db95 | 15868 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 DWT |
15869 | hardcode_libdir_separator_CXX=: |
15870 | inherit_rpath_CXX=yes | |
15871 | ;; | |
9c60689e | 15872 | |
9d54db95 | 15873 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
47aaa820 DWT |
15874 | case $cc_basename in |
15875 | KCC*) | |
15876 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 15877 | |
47aaa820 DWT |
15878 | # KCC will only create a shared library if the output file |
15879 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
15880 | # to its proper name (with version) after linking. | |
9d54db95 JF |
15881 | 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' |
15882 | 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 |
15883 | # Commands to make compiler produce verbose output that lists |
15884 | # what "hidden" libraries, object files and flags are used when | |
15885 | # linking a shared library. | |
15886 | # | |
15887 | # There doesn't appear to be a way to prevent this compiler from | |
15888 | # explicitly linking system object files so we need to strip them | |
15889 | # from the output so that they don't get included in the library | |
15890 | # dependencies. | |
9d54db95 | 15891 | 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 | 15892 | |
9d54db95 JF |
15893 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15894 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 15895 | |
47aaa820 DWT |
15896 | # Archives containing C++ object files must be created using |
15897 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
15898 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
15899 | ;; | |
15900 | icpc* | ecpc* ) | |
15901 | # Intel C++ | |
15902 | with_gnu_ld=yes | |
15903 | # version 8.0 and above of icpc choke on multiply defined symbols | |
15904 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
15905 | # earlier do not add the objects themselves. | |
15906 | case `$CC -V 2>&1` in | |
15907 | *"Version 7."*) | |
9d54db95 JF |
15908 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15909 | 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 |
15910 | ;; |
15911 | *) # Version 8.0 or newer | |
15912 | tmp_idyn= | |
15913 | case $host_cpu in | |
15914 | ia64*) tmp_idyn=' -i_dynamic';; | |
15915 | esac | |
9d54db95 JF |
15916 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
15917 | 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 |
15918 | ;; |
15919 | esac | |
15920 | archive_cmds_need_lc_CXX=no | |
9d54db95 JF |
15921 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15922 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15923 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
47aaa820 DWT |
15924 | ;; |
15925 | pgCC* | pgcpp*) | |
15926 | # Portland Group C++ compiler | |
15927 | case `$CC -V` in | |
ee134472 | 15928 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 | 15929 | prelink_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15930 | rm -rf $tpldir~ |
15931 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
15932 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
47aaa820 | 15933 | old_archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15934 | rm -rf $tpldir~ |
15935 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
15936 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
15937 | $RANLIB $oldlib' | |
47aaa820 | 15938 | archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15939 | rm -rf $tpldir~ |
15940 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
15941 | $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 | 15942 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15943 | rm -rf $tpldir~ |
15944 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
15945 | $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 | 15946 | ;; |
ee134472 | 15947 | *) # Version 6 and above use weak symbols |
9d54db95 JF |
15948 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15949 | 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 |
15950 | ;; |
15951 | esac | |
9c60689e | 15952 | |
9d54db95 JF |
15953 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
15954 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15955 | 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 |
15956 | ;; |
15957 | cxx*) | |
15958 | # Compaq C++ | |
9d54db95 JF |
15959 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15960 | 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 | 15961 | |
47aaa820 DWT |
15962 | runpath_var=LD_RUN_PATH |
15963 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
15964 | hardcode_libdir_separator_CXX=: | |
9c60689e | 15965 | |
47aaa820 DWT |
15966 | # Commands to make compiler produce verbose output that lists |
15967 | # what "hidden" libraries, object files and flags are used when | |
15968 | # linking a shared library. | |
15969 | # | |
15970 | # There doesn't appear to be a way to prevent this compiler from | |
15971 | # explicitly linking system object files so we need to strip them | |
15972 | # from the output so that they don't get included in the library | |
15973 | # dependencies. | |
9d54db95 | 15974 | 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 | 15975 | ;; |
ee134472 | 15976 | xl* | mpixl* | bgxl*) |
47aaa820 | 15977 | # IBM XL 8.0 on PPC, with GNU ld |
9d54db95 JF |
15978 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
15979 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15980 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
15981 | if test yes = "$supports_anon_versioning"; then | |
47aaa820 | 15982 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
15983 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
15984 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
15985 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
47aaa820 DWT |
15986 | fi |
15987 | ;; | |
15988 | *) | |
15989 | case `$CC -V 2>&1 | sed 5q` in | |
15990 | *Sun\ C*) | |
15991 | # Sun C++ 5.9 | |
15992 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 JF |
15993 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
15994 | 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 | 15995 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
9d54db95 | 15996 | 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 | 15997 | compiler_needs_object_CXX=yes |
9c60689e | 15998 | |
47aaa820 DWT |
15999 | # Not sure whether something based on |
16000 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
16001 | # would be better. | |
ee134472 | 16002 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 16003 | |
47aaa820 DWT |
16004 | # Archives containing C++ object files must be created using |
16005 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
16006 | # necessary to make sure instantiated templates are included | |
16007 | # in the archive. | |
16008 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
16009 | ;; | |
16010 | esac | |
16011 | ;; | |
16012 | esac | |
16013 | ;; | |
9c60689e | 16014 | |
47aaa820 DWT |
16015 | lynxos*) |
16016 | # FIXME: insert proper C++ library support | |
16017 | ld_shlibs_CXX=no | |
16018 | ;; | |
9c60689e | 16019 | |
47aaa820 DWT |
16020 | m88k*) |
16021 | # FIXME: insert proper C++ library support | |
16022 | ld_shlibs_CXX=no | |
16023 | ;; | |
9c60689e | 16024 | |
47aaa820 DWT |
16025 | mvs*) |
16026 | case $cc_basename in | |
16027 | cxx*) | |
16028 | # FIXME: insert proper C++ library support | |
16029 | ld_shlibs_CXX=no | |
16030 | ;; | |
16031 | *) | |
16032 | # FIXME: insert proper C++ library support | |
16033 | ld_shlibs_CXX=no | |
16034 | ;; | |
16035 | esac | |
16036 | ;; | |
9c60689e | 16037 | |
47aaa820 DWT |
16038 | netbsd*) |
16039 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
16040 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
16041 | wlarc= | |
16042 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
16043 | hardcode_direct_CXX=yes | |
16044 | hardcode_shlibpath_var_CXX=no | |
16045 | fi | |
16046 | # Workaround some broken pre-1.5 toolchains | |
16047 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 16048 | ;; |
47aaa820 DWT |
16049 | |
16050 | *nto* | *qnx*) | |
16051 | ld_shlibs_CXX=yes | |
9c60689e | 16052 | ;; |
9c60689e | 16053 | |
9d54db95 | 16054 | openbsd* | bitrig*) |
47aaa820 DWT |
16055 | if test -f /usr/libexec/ld.so; then |
16056 | hardcode_direct_CXX=yes | |
16057 | hardcode_shlibpath_var_CXX=no | |
16058 | hardcode_direct_absolute_CXX=yes | |
16059 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9d54db95 JF |
16060 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
16061 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
16062 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
16063 | export_dynamic_flag_spec_CXX='$wl-E' | |
16064 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
47aaa820 | 16065 | fi |
ee134472 | 16066 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
16067 | else |
16068 | ld_shlibs_CXX=no | |
16069 | fi | |
16070 | ;; | |
9c60689e | 16071 | |
47aaa820 DWT |
16072 | osf3* | osf4* | osf5*) |
16073 | case $cc_basename in | |
16074 | KCC*) | |
16075 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 16076 | |
47aaa820 DWT |
16077 | # KCC will only create a shared library if the output file |
16078 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
16079 | # to its proper name (with version) after linking. | |
9d54db95 | 16080 | 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 | 16081 | |
9d54db95 | 16082 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
47aaa820 | 16083 | hardcode_libdir_separator_CXX=: |
9c60689e | 16084 | |
47aaa820 DWT |
16085 | # Archives containing C++ object files must be created using |
16086 | # the KAI C++ compiler. | |
16087 | case $host in | |
16088 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
16089 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
16090 | esac | |
16091 | ;; | |
16092 | RCC*) | |
16093 | # Rational C++ 2.4.1 | |
16094 | # FIXME: insert proper C++ library support | |
16095 | ld_shlibs_CXX=no | |
16096 | ;; | |
16097 | cxx*) | |
16098 | case $host in | |
16099 | osf3*) | |
9d54db95 JF |
16100 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
16101 | 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' | |
16102 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
47aaa820 DWT |
16103 | ;; |
16104 | *) | |
16105 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9d54db95 | 16106 | 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 | 16107 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
9d54db95 JF |
16108 | echo "-hidden">> $lib.exp~ |
16109 | $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~ | |
16110 | $RM $lib.exp' | |
47aaa820 DWT |
16111 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
16112 | ;; | |
16113 | esac | |
9c60689e | 16114 | |
47aaa820 | 16115 | hardcode_libdir_separator_CXX=: |
9c60689e | 16116 | |
47aaa820 DWT |
16117 | # Commands to make compiler produce verbose output that lists |
16118 | # what "hidden" libraries, object files and flags are used when | |
16119 | # linking a shared library. | |
16120 | # | |
16121 | # There doesn't appear to be a way to prevent this compiler from | |
16122 | # explicitly linking system object files so we need to strip them | |
16123 | # from the output so that they don't get included in the library | |
16124 | # dependencies. | |
9d54db95 | 16125 | 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 |
16126 | ;; |
16127 | *) | |
9d54db95 JF |
16128 | if test yes,no = "$GXX,$with_gnu_ld"; then |
16129 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
47aaa820 DWT |
16130 | case $host in |
16131 | osf3*) | |
9d54db95 | 16132 | 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 |
16133 | ;; |
16134 | *) | |
9d54db95 | 16135 | 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 |
16136 | ;; |
16137 | esac | |
9c60689e | 16138 | |
9d54db95 | 16139 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 | 16140 | hardcode_libdir_separator_CXX=: |
9c60689e | 16141 | |
47aaa820 DWT |
16142 | # Commands to make compiler produce verbose output that lists |
16143 | # what "hidden" libraries, object files and flags are used when | |
16144 | # linking a shared library. | |
ee134472 | 16145 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 16146 | |
47aaa820 DWT |
16147 | else |
16148 | # FIXME: insert proper C++ library support | |
16149 | ld_shlibs_CXX=no | |
16150 | fi | |
16151 | ;; | |
16152 | esac | |
16153 | ;; | |
9c60689e | 16154 | |
47aaa820 | 16155 | psos*) |
9c60689e DWT |
16156 | # FIXME: insert proper C++ library support |
16157 | ld_shlibs_CXX=no | |
16158 | ;; | |
9c60689e | 16159 | |
47aaa820 DWT |
16160 | sunos4*) |
16161 | case $cc_basename in | |
16162 | CC*) | |
16163 | # Sun C++ 4.x | |
16164 | # FIXME: insert proper C++ library support | |
16165 | ld_shlibs_CXX=no | |
9c60689e | 16166 | ;; |
47aaa820 DWT |
16167 | lcc*) |
16168 | # Lucid | |
16169 | # FIXME: insert proper C++ library support | |
16170 | ld_shlibs_CXX=no | |
16171 | ;; | |
16172 | *) | |
16173 | # FIXME: insert proper C++ library support | |
16174 | ld_shlibs_CXX=no | |
16175 | ;; | |
16176 | esac | |
16177 | ;; | |
9c60689e | 16178 | |
47aaa820 DWT |
16179 | solaris*) |
16180 | case $cc_basename in | |
ee134472 | 16181 | CC* | sunCC*) |
47aaa820 DWT |
16182 | # Sun C++ 4.2, 5.x and Centerline C++ |
16183 | archive_cmds_need_lc_CXX=yes | |
16184 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 | 16185 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 | 16186 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16187 | $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 | 16188 | |
47aaa820 DWT |
16189 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
16190 | hardcode_shlibpath_var_CXX=no | |
16191 | case $host_os in | |
16192 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16193 | *) | |
16194 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 16195 | # but understands '-z linker_flag'. |
47aaa820 DWT |
16196 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16197 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
16198 | ;; | |
16199 | esac | |
16200 | link_all_deplibs_CXX=yes | |
9c60689e | 16201 | |
ee134472 | 16202 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 16203 | |
47aaa820 DWT |
16204 | # Archives containing C++ object files must be created using |
16205 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
16206 | # necessary to make sure instantiated templates are included | |
16207 | # in the archive. | |
16208 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
16209 | ;; | |
16210 | gcx*) | |
16211 | # Green Hills C++ Compiler | |
9d54db95 | 16212 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
9c60689e | 16213 | |
47aaa820 DWT |
16214 | # The C++ compiler must be used to create the archive. |
16215 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
16216 | ;; | |
16217 | *) | |
16218 | # GNU C++ compiler with Solaris linker | |
9d54db95 JF |
16219 | if test yes,no = "$GXX,$with_gnu_ld"; then |
16220 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
47aaa820 | 16221 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
9d54db95 | 16222 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 16223 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16224 | $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 | 16225 | |
47aaa820 DWT |
16226 | # Commands to make compiler produce verbose output that lists |
16227 | # what "hidden" libraries, object files and flags are used when | |
16228 | # linking a shared library. | |
ee134472 | 16229 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 16230 | else |
9d54db95 | 16231 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
47aaa820 | 16232 | # platform. |
9d54db95 | 16233 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 16234 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16235 | $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 | 16236 | |
47aaa820 DWT |
16237 | # Commands to make compiler produce verbose output that lists |
16238 | # what "hidden" libraries, object files and flags are used when | |
16239 | # linking a shared library. | |
ee134472 | 16240 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 16241 | fi |
9c60689e | 16242 | |
9d54db95 | 16243 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
47aaa820 DWT |
16244 | case $host_os in |
16245 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16246 | *) | |
9d54db95 | 16247 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
47aaa820 DWT |
16248 | ;; |
16249 | esac | |
16250 | fi | |
16251 | ;; | |
16252 | esac | |
16253 | ;; | |
9c60689e | 16254 | |
47aaa820 | 16255 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9d54db95 | 16256 | no_undefined_flag_CXX='$wl-z,text' |
47aaa820 DWT |
16257 | archive_cmds_need_lc_CXX=no |
16258 | hardcode_shlibpath_var_CXX=no | |
16259 | runpath_var='LD_RUN_PATH' | |
9c60689e | 16260 | |
47aaa820 DWT |
16261 | case $cc_basename in |
16262 | CC*) | |
9d54db95 JF |
16263 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16264 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16265 | ;; |
16266 | *) | |
9d54db95 JF |
16267 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16268 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16269 | ;; |
16270 | esac | |
16271 | ;; | |
9c60689e | 16272 | |
47aaa820 | 16273 | sysv5* | sco3.2v5* | sco5v6*) |
9d54db95 | 16274 | # Note: We CANNOT use -z defs as we might desire, because we do not |
47aaa820 DWT |
16275 | # link with -lc, and that would cause any symbols used from libc to |
16276 | # always be unresolved, which means just about no library would | |
16277 | # ever link correctly. If we're not using GNU ld we use -z text | |
16278 | # though, which does catch some bad symbols but isn't as heavy-handed | |
16279 | # as -z defs. | |
9d54db95 JF |
16280 | no_undefined_flag_CXX='$wl-z,text' |
16281 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
47aaa820 DWT |
16282 | archive_cmds_need_lc_CXX=no |
16283 | hardcode_shlibpath_var_CXX=no | |
9d54db95 | 16284 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
47aaa820 DWT |
16285 | hardcode_libdir_separator_CXX=':' |
16286 | link_all_deplibs_CXX=yes | |
9d54db95 | 16287 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
47aaa820 | 16288 | runpath_var='LD_RUN_PATH' |
9c60689e | 16289 | |
47aaa820 DWT |
16290 | case $cc_basename in |
16291 | CC*) | |
9d54db95 JF |
16292 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16293 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 | 16294 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
9d54db95 | 16295 | '"$old_archive_cmds_CXX" |
ee134472 | 16296 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
9d54db95 | 16297 | '"$reload_cmds_CXX" |
47aaa820 DWT |
16298 | ;; |
16299 | *) | |
9d54db95 JF |
16300 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16301 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16302 | ;; |
16303 | esac | |
16304 | ;; | |
9c60689e | 16305 | |
47aaa820 | 16306 | tandem*) |
9c60689e | 16307 | case $cc_basename in |
47aaa820 DWT |
16308 | NCC*) |
16309 | # NonStop-UX NCC 3.20 | |
16310 | # FIXME: insert proper C++ library support | |
16311 | ld_shlibs_CXX=no | |
16312 | ;; | |
9c60689e | 16313 | *) |
47aaa820 DWT |
16314 | # FIXME: insert proper C++ library support |
16315 | ld_shlibs_CXX=no | |
16316 | ;; | |
9c60689e DWT |
16317 | esac |
16318 | ;; | |
16319 | ||
47aaa820 DWT |
16320 | vxworks*) |
16321 | # FIXME: insert proper C++ library support | |
16322 | ld_shlibs_CXX=no | |
16323 | ;; | |
9c60689e | 16324 | |
47aaa820 DWT |
16325 | *) |
16326 | # FIXME: insert proper C++ library support | |
16327 | ld_shlibs_CXX=no | |
9c60689e | 16328 | ;; |
47aaa820 | 16329 | esac |
9c60689e | 16330 | |
47aaa820 DWT |
16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
16332 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 16333 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
9c60689e | 16334 | |
9d54db95 JF |
16335 | GCC_CXX=$GXX |
16336 | LD_CXX=$LD | |
9c60689e | 16337 | |
47aaa820 DWT |
16338 | ## CAVEAT EMPTOR: |
16339 | ## There is no encapsulation within the following macros, do not change | |
16340 | ## the running order or otherwise move them around unless you know exactly | |
16341 | ## what you are doing... | |
16342 | # Dependencies to place before and after the object being linked: | |
16343 | predep_objects_CXX= | |
16344 | postdep_objects_CXX= | |
16345 | predeps_CXX= | |
16346 | postdeps_CXX= | |
16347 | compiler_lib_search_path_CXX= | |
9c60689e | 16348 | |
47aaa820 DWT |
16349 | cat > conftest.$ac_ext <<_LT_EOF |
16350 | class Foo | |
16351 | { | |
16352 | public: | |
16353 | Foo (void) { a = 0; } | |
16354 | private: | |
16355 | int a; | |
16356 | }; | |
16357 | _LT_EOF | |
9c60689e | 16358 | |
ee134472 JF |
16359 | |
16360 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
16361 | case "$CC $CFLAGS " in #( | |
16362 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
16363 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 16364 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
16365 | esac |
16366 | ||
47aaa820 DWT |
16367 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
16368 | (eval $ac_compile) 2>&5 | |
16369 | ac_status=$? | |
16370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16371 | test $ac_status = 0; }; then | |
16372 | # Parse the compiler output and extract the necessary | |
16373 | # objects, libraries and library flags. | |
9c60689e | 16374 | |
47aaa820 DWT |
16375 | # Sentinel used to keep track of whether or not we are before |
16376 | # the conftest object file. | |
16377 | pre_test_object_deps_done=no | |
9c60689e | 16378 | |
47aaa820 | 16379 | for p in `eval "$output_verbose_link_cmd"`; do |
9d54db95 | 16380 | case $prev$p in |
9c60689e | 16381 | |
47aaa820 DWT |
16382 | -L* | -R* | -l*) |
16383 | # Some compilers place space between "-{L,R}" and the path. | |
16384 | # Remove the space. | |
9d54db95 JF |
16385 | if test x-L = "$p" || |
16386 | test x-R = "$p"; then | |
47aaa820 DWT |
16387 | prev=$p |
16388 | continue | |
47aaa820 | 16389 | fi |
9c60689e | 16390 | |
ee134472 JF |
16391 | # Expand the sysroot to ease extracting the directories later. |
16392 | if test -z "$prev"; then | |
16393 | case $p in | |
16394 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
16395 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
16396 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
16397 | esac | |
16398 | fi | |
16399 | case $p in | |
16400 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
16401 | esac | |
9d54db95 JF |
16402 | if test no = "$pre_test_object_deps_done"; then |
16403 | case $prev in | |
ee134472 | 16404 | -L | -R) |
47aaa820 DWT |
16405 | # Internal compiler library paths should come after those |
16406 | # provided the user. The postdeps already come after the | |
16407 | # user supplied libs so there is no need to process them. | |
16408 | if test -z "$compiler_lib_search_path_CXX"; then | |
9d54db95 | 16409 | compiler_lib_search_path_CXX=$prev$p |
47aaa820 | 16410 | else |
9d54db95 | 16411 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
47aaa820 DWT |
16412 | fi |
16413 | ;; | |
16414 | # The "-l" case would never come before the object being | |
16415 | # linked, so don't bother handling this case. | |
16416 | esac | |
16417 | else | |
16418 | if test -z "$postdeps_CXX"; then | |
9d54db95 | 16419 | postdeps_CXX=$prev$p |
47aaa820 | 16420 | else |
9d54db95 | 16421 | postdeps_CXX="${postdeps_CXX} $prev$p" |
47aaa820 DWT |
16422 | fi |
16423 | fi | |
ee134472 | 16424 | prev= |
47aaa820 | 16425 | ;; |
9c60689e | 16426 | |
ee134472 | 16427 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
16428 | *.$objext) |
16429 | # This assumes that the test object file only shows up | |
16430 | # once in the compiler output. | |
16431 | if test "$p" = "conftest.$objext"; then | |
16432 | pre_test_object_deps_done=yes | |
16433 | continue | |
16434 | fi | |
9c60689e | 16435 | |
9d54db95 | 16436 | if test no = "$pre_test_object_deps_done"; then |
47aaa820 | 16437 | if test -z "$predep_objects_CXX"; then |
9d54db95 | 16438 | predep_objects_CXX=$p |
47aaa820 DWT |
16439 | else |
16440 | predep_objects_CXX="$predep_objects_CXX $p" | |
16441 | fi | |
16442 | else | |
16443 | if test -z "$postdep_objects_CXX"; then | |
9d54db95 | 16444 | postdep_objects_CXX=$p |
47aaa820 DWT |
16445 | else |
16446 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
16447 | fi | |
16448 | fi | |
16449 | ;; | |
9c60689e | 16450 | |
47aaa820 | 16451 | *) ;; # Ignore the rest. |
9c60689e | 16452 | |
47aaa820 DWT |
16453 | esac |
16454 | done | |
9c60689e | 16455 | |
47aaa820 DWT |
16456 | # Clean up. |
16457 | rm -f a.out a.exe | |
16458 | else | |
16459 | echo "libtool.m4: error: problem compiling CXX test program" | |
16460 | fi | |
9c60689e | 16461 | |
47aaa820 | 16462 | $RM -f confest.$objext |
ee134472 | 16463 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 16464 | |
47aaa820 DWT |
16465 | # PORTME: override above test on systems where it is broken |
16466 | case $host_os in | |
16467 | interix[3-9]*) | |
16468 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
16469 | # hack all around it, let's just trust "g++" to DTRT. | |
16470 | predep_objects_CXX= | |
16471 | postdep_objects_CXX= | |
16472 | postdeps_CXX= | |
16473 | ;; | |
47aaa820 | 16474 | esac |
9c60689e | 16475 | |
9c60689e | 16476 | |
47aaa820 DWT |
16477 | case " $postdeps_CXX " in |
16478 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
16479 | esac | |
16480 | compiler_lib_search_dirs_CXX= | |
16481 | if test -n "${compiler_lib_search_path_CXX}"; then | |
9d54db95 | 16482 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
47aaa820 | 16483 | fi |
9c60689e | 16484 | |
9c60689e | 16485 | |
9c60689e | 16486 | |
9c60689e | 16487 | |
9c60689e | 16488 | |
9c60689e | 16489 | |
9c60689e | 16490 | |
9c60689e | 16491 | |
9c60689e | 16492 | |
9c60689e | 16493 | |
9c60689e | 16494 | |
9c60689e | 16495 | |
9c60689e | 16496 | |
9c60689e | 16497 | |
9c60689e | 16498 | |
9c60689e | 16499 | |
9c60689e | 16500 | |
9c60689e | 16501 | |
9c60689e | 16502 | |
9c60689e | 16503 | |
9c60689e | 16504 | |
9c60689e | 16505 | |
9c60689e | 16506 | |
9c60689e | 16507 | |
9c60689e | 16508 | |
9c60689e | 16509 | |
9c60689e | 16510 | |
9c60689e | 16511 | |
9c60689e | 16512 | |
9c60689e | 16513 | |
9c60689e | 16514 | |
47aaa820 DWT |
16515 | lt_prog_compiler_wl_CXX= |
16516 | lt_prog_compiler_pic_CXX= | |
16517 | lt_prog_compiler_static_CXX= | |
9c60689e | 16518 | |
9c60689e DWT |
16519 | |
16520 | # C++ specific cases for pic, static, wl, etc. | |
9d54db95 | 16521 | if test yes = "$GXX"; then |
9c60689e DWT |
16522 | lt_prog_compiler_wl_CXX='-Wl,' |
16523 | lt_prog_compiler_static_CXX='-static' | |
16524 | ||
16525 | case $host_os in | |
16526 | aix*) | |
16527 | # All AIX code is PIC. | |
9d54db95 | 16528 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
16529 | # AIX 5 now supports IA64 processor |
16530 | lt_prog_compiler_static_CXX='-Bstatic' | |
16531 | fi | |
9d54db95 | 16532 | lt_prog_compiler_pic_CXX='-fPIC' |
9c60689e DWT |
16533 | ;; |
16534 | ||
16535 | amigaos*) | |
16536 | case $host_cpu in | |
16537 | powerpc) | |
16538 | # see comment about AmigaOS4 .so support | |
16539 | lt_prog_compiler_pic_CXX='-fPIC' | |
16540 | ;; | |
16541 | m68k) | |
16542 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
16543 | # adding the '-m68020' flag to GCC prevents building anything better, |
16544 | # like '-m68040'. | |
9c60689e DWT |
16545 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
16546 | ;; | |
16547 | esac | |
16548 | ;; | |
16549 | ||
16550 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16551 | # PIC is the default for these OSes. | |
16552 | ;; | |
16553 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
16554 | # This hack is so that the source file can tell whether it is being | |
16555 | # built for inclusion in a dll (and should export symbols for example). | |
16556 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
16557 | # (--disable-auto-import) libraries | |
16558 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9d54db95 JF |
16559 | case $host_os in |
16560 | os2*) | |
16561 | lt_prog_compiler_static_CXX='$wl-static' | |
16562 | ;; | |
16563 | esac | |
9c60689e DWT |
16564 | ;; |
16565 | darwin* | rhapsody*) | |
16566 | # PIC is the default on this platform | |
16567 | # Common symbols not allowed in MH_DYLIB files | |
16568 | lt_prog_compiler_pic_CXX='-fno-common' | |
16569 | ;; | |
16570 | *djgpp*) | |
16571 | # DJGPP does not support shared libraries at all | |
16572 | lt_prog_compiler_pic_CXX= | |
16573 | ;; | |
ee134472 JF |
16574 | haiku*) |
16575 | # PIC is the default for Haiku. | |
16576 | # The "-static" flag exists, but is broken. | |
16577 | lt_prog_compiler_static_CXX= | |
16578 | ;; | |
9c60689e DWT |
16579 | interix[3-9]*) |
16580 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16581 | # Instead, we relocate shared libraries at runtime. | |
16582 | ;; | |
16583 | sysv4*MP*) | |
16584 | if test -d /usr/nec; then | |
16585 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
16586 | fi | |
16587 | ;; | |
16588 | hpux*) | |
16589 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
16590 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
16591 | # sets the default TLS model and affects inlining. | |
16592 | case $host_cpu in | |
16593 | hppa*64*) | |
16594 | ;; | |
16595 | *) | |
16596 | lt_prog_compiler_pic_CXX='-fPIC' | |
16597 | ;; | |
16598 | esac | |
16599 | ;; | |
16600 | *qnx* | *nto*) | |
16601 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16602 | # it will coredump. | |
16603 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
16604 | ;; | |
16605 | *) | |
16606 | lt_prog_compiler_pic_CXX='-fPIC' | |
16607 | ;; | |
16608 | esac | |
16609 | else | |
16610 | case $host_os in | |
16611 | aix[4-9]*) | |
16612 | # All AIX code is PIC. | |
9d54db95 | 16613 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
16614 | # AIX 5 now supports IA64 processor |
16615 | lt_prog_compiler_static_CXX='-Bstatic' | |
16616 | else | |
16617 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
16618 | fi | |
16619 | ;; | |
16620 | chorus*) | |
16621 | case $cc_basename in | |
16622 | cxch68*) | |
16623 | # Green Hills C++ Compiler | |
16624 | # _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" | |
16625 | ;; | |
16626 | esac | |
16627 | ;; | |
ee134472 JF |
16628 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
16629 | # This hack is so that the source file can tell whether it is being | |
16630 | # built for inclusion in a dll (and should export symbols for example). | |
16631 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
16632 | ;; | |
9c60689e DWT |
16633 | dgux*) |
16634 | case $cc_basename in | |
16635 | ec++*) | |
16636 | lt_prog_compiler_pic_CXX='-KPIC' | |
16637 | ;; | |
16638 | ghcx*) | |
16639 | # Green Hills C++ Compiler | |
16640 | lt_prog_compiler_pic_CXX='-pic' | |
16641 | ;; | |
16642 | *) | |
16643 | ;; | |
16644 | esac | |
16645 | ;; | |
16646 | freebsd* | dragonfly*) | |
16647 | # FreeBSD uses GNU C++ | |
16648 | ;; | |
16649 | hpux9* | hpux10* | hpux11*) | |
16650 | case $cc_basename in | |
16651 | CC*) | |
16652 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 JF |
16653 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
16654 | if test ia64 != "$host_cpu"; then | |
9c60689e DWT |
16655 | lt_prog_compiler_pic_CXX='+Z' |
16656 | fi | |
16657 | ;; | |
16658 | aCC*) | |
16659 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 | 16660 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
9c60689e DWT |
16661 | case $host_cpu in |
16662 | hppa*64*|ia64*) | |
16663 | # +Z the default | |
16664 | ;; | |
16665 | *) | |
16666 | lt_prog_compiler_pic_CXX='+Z' | |
16667 | ;; | |
16668 | esac | |
16669 | ;; | |
16670 | *) | |
16671 | ;; | |
16672 | esac | |
16673 | ;; | |
16674 | interix*) | |
16675 | # This is c89, which is MS Visual C++ (no shared libs) | |
16676 | # Anyone wants to do a port? | |
16677 | ;; | |
16678 | irix5* | irix6* | nonstopux*) | |
16679 | case $cc_basename in | |
16680 | CC*) | |
16681 | lt_prog_compiler_wl_CXX='-Wl,' | |
16682 | lt_prog_compiler_static_CXX='-non_shared' | |
16683 | # CC pic flag -KPIC is the default. | |
16684 | ;; | |
16685 | *) | |
16686 | ;; | |
16687 | esac | |
16688 | ;; | |
9d54db95 | 16689 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9c60689e DWT |
16690 | case $cc_basename in |
16691 | KCC*) | |
16692 | # KAI C++ Compiler | |
16693 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
16694 | lt_prog_compiler_pic_CXX='-fPIC' | |
16695 | ;; | |
16696 | ecpc* ) | |
9d54db95 | 16697 | # old Intel C++ for x86_64, which still supported -KPIC. |
9c60689e DWT |
16698 | lt_prog_compiler_wl_CXX='-Wl,' |
16699 | lt_prog_compiler_pic_CXX='-KPIC' | |
16700 | lt_prog_compiler_static_CXX='-static' | |
16701 | ;; | |
16702 | icpc* ) | |
16703 | # Intel C++, used to be incompatible with GCC. | |
16704 | # ICC 10 doesn't accept -KPIC any more. | |
16705 | lt_prog_compiler_wl_CXX='-Wl,' | |
16706 | lt_prog_compiler_pic_CXX='-fPIC' | |
16707 | lt_prog_compiler_static_CXX='-static' | |
16708 | ;; | |
16709 | pgCC* | pgcpp*) | |
16710 | # Portland Group C++ compiler | |
16711 | lt_prog_compiler_wl_CXX='-Wl,' | |
16712 | lt_prog_compiler_pic_CXX='-fpic' | |
16713 | lt_prog_compiler_static_CXX='-Bstatic' | |
16714 | ;; | |
16715 | cxx*) | |
16716 | # Compaq C++ | |
16717 | # Make sure the PIC flag is empty. It appears that all Alpha | |
16718 | # Linux and Compaq Tru64 Unix objects are PIC. | |
16719 | lt_prog_compiler_pic_CXX= | |
16720 | lt_prog_compiler_static_CXX='-non_shared' | |
16721 | ;; | |
ee134472 JF |
16722 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
16723 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
16724 | lt_prog_compiler_wl_CXX='-Wl,' |
16725 | lt_prog_compiler_pic_CXX='-qpic' | |
16726 | lt_prog_compiler_static_CXX='-qstaticlink' | |
16727 | ;; | |
16728 | *) | |
16729 | case `$CC -V 2>&1 | sed 5q` in | |
16730 | *Sun\ C*) | |
16731 | # Sun C++ 5.9 | |
16732 | lt_prog_compiler_pic_CXX='-KPIC' | |
16733 | lt_prog_compiler_static_CXX='-Bstatic' | |
16734 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
16735 | ;; | |
16736 | esac | |
16737 | ;; | |
16738 | esac | |
16739 | ;; | |
16740 | lynxos*) | |
16741 | ;; | |
16742 | m88k*) | |
16743 | ;; | |
16744 | mvs*) | |
16745 | case $cc_basename in | |
16746 | cxx*) | |
16747 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
16748 | ;; | |
16749 | *) | |
16750 | ;; | |
16751 | esac | |
16752 | ;; | |
53ba6704 | 16753 | netbsd*) |
9c60689e DWT |
16754 | ;; |
16755 | *qnx* | *nto*) | |
16756 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16757 | # it will coredump. | |
16758 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
16759 | ;; | |
16760 | osf3* | osf4* | osf5*) | |
16761 | case $cc_basename in | |
16762 | KCC*) | |
16763 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
16764 | ;; | |
16765 | RCC*) | |
16766 | # Rational C++ 2.4.1 | |
16767 | lt_prog_compiler_pic_CXX='-pic' | |
16768 | ;; | |
16769 | cxx*) | |
16770 | # Digital/Compaq C++ | |
16771 | lt_prog_compiler_wl_CXX='-Wl,' | |
16772 | # Make sure the PIC flag is empty. It appears that all Alpha | |
16773 | # Linux and Compaq Tru64 Unix objects are PIC. | |
16774 | lt_prog_compiler_pic_CXX= | |
16775 | lt_prog_compiler_static_CXX='-non_shared' | |
16776 | ;; | |
16777 | *) | |
16778 | ;; | |
16779 | esac | |
16780 | ;; | |
16781 | psos*) | |
16782 | ;; | |
16783 | solaris*) | |
16784 | case $cc_basename in | |
ee134472 | 16785 | CC* | sunCC*) |
9c60689e DWT |
16786 | # Sun C++ 4.2, 5.x and Centerline C++ |
16787 | lt_prog_compiler_pic_CXX='-KPIC' | |
16788 | lt_prog_compiler_static_CXX='-Bstatic' | |
16789 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
16790 | ;; | |
16791 | gcx*) | |
16792 | # Green Hills C++ Compiler | |
16793 | lt_prog_compiler_pic_CXX='-PIC' | |
16794 | ;; | |
16795 | *) | |
16796 | ;; | |
16797 | esac | |
16798 | ;; | |
16799 | sunos4*) | |
16800 | case $cc_basename in | |
16801 | CC*) | |
16802 | # Sun C++ 4.x | |
16803 | lt_prog_compiler_pic_CXX='-pic' | |
16804 | lt_prog_compiler_static_CXX='-Bstatic' | |
16805 | ;; | |
16806 | lcc*) | |
16807 | # Lucid | |
16808 | lt_prog_compiler_pic_CXX='-pic' | |
16809 | ;; | |
16810 | *) | |
16811 | ;; | |
16812 | esac | |
16813 | ;; | |
16814 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16815 | case $cc_basename in | |
16816 | CC*) | |
16817 | lt_prog_compiler_wl_CXX='-Wl,' | |
16818 | lt_prog_compiler_pic_CXX='-KPIC' | |
16819 | lt_prog_compiler_static_CXX='-Bstatic' | |
16820 | ;; | |
16821 | esac | |
16822 | ;; | |
16823 | tandem*) | |
16824 | case $cc_basename in | |
16825 | NCC*) | |
16826 | # NonStop-UX NCC 3.20 | |
16827 | lt_prog_compiler_pic_CXX='-KPIC' | |
16828 | ;; | |
16829 | *) | |
16830 | ;; | |
16831 | esac | |
16832 | ;; | |
16833 | vxworks*) | |
16834 | ;; | |
16835 | *) | |
16836 | lt_prog_compiler_can_build_shared_CXX=no | |
16837 | ;; | |
16838 | esac | |
16839 | fi | |
16840 | ||
16841 | case $host_os in | |
9d54db95 | 16842 | # For platforms that do not support PIC, -DPIC is meaningless: |
9c60689e DWT |
16843 | *djgpp*) |
16844 | lt_prog_compiler_pic_CXX= | |
16845 | ;; | |
16846 | *) | |
16847 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
16848 | ;; | |
16849 | esac | |
9c60689e | 16850 | |
ee134472 JF |
16851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
16852 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
16853 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
16854 | $as_echo_n "(cached) " >&6 | |
16855 | else | |
16856 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
16857 | fi | |
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
16859 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
16860 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
16861 | |
16862 | # | |
16863 | # Check to make sure the PIC flag actually works. | |
16864 | # | |
16865 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
16867 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 16868 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
16869 | $as_echo_n "(cached) " >&6 |
16870 | else | |
16871 | lt_cv_prog_compiler_pic_works_CXX=no | |
16872 | ac_outfile=conftest.$ac_objext | |
16873 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 16874 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
9c60689e DWT |
16875 | # Insert the option either (1) after the last *FLAGS variable, or |
16876 | # (2) before a word containing "conftest.", or (3) at the end. | |
16877 | # Note that $ac_compile itself does not contain backslashes and begins | |
16878 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16879 | # The option is referenced via a variable to avoid confusing sed. | |
16880 | lt_compile=`echo "$ac_compile" | $SED \ | |
16881 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16882 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16883 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 16884 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
16885 | (eval "$lt_compile" 2>conftest.err) |
16886 | ac_status=$? | |
16887 | cat conftest.err >&5 | |
ee134472 | 16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
16889 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16890 | # The compiler can only warn and ignore the option if not recognized | |
16891 | # So say no if there are warnings other than the usual output. | |
ee134472 | 16892 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
16893 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16894 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16895 | lt_cv_prog_compiler_pic_works_CXX=yes | |
16896 | fi | |
16897 | fi | |
00a96142 | 16898 | $RM -r conftest* |
9c60689e DWT |
16899 | |
16900 | fi | |
16901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
16902 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
16903 | ||
9d54db95 | 16904 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
9c60689e DWT |
16905 | case $lt_prog_compiler_pic_CXX in |
16906 | "" | " "*) ;; | |
16907 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
16908 | esac | |
16909 | else | |
16910 | lt_prog_compiler_pic_CXX= | |
16911 | lt_prog_compiler_can_build_shared_CXX=no | |
16912 | fi | |
16913 | ||
16914 | fi | |
16915 | ||
16916 | ||
16917 | ||
ee134472 JF |
16918 | |
16919 | ||
47aaa820 DWT |
16920 | # |
16921 | # Check to make sure the static flag actually works. | |
16922 | # | |
16923 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
16924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16925 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 16926 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
16927 | $as_echo_n "(cached) " >&6 |
16928 | else | |
16929 | lt_cv_prog_compiler_static_works_CXX=no | |
9d54db95 | 16930 | save_LDFLAGS=$LDFLAGS |
47aaa820 DWT |
16931 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16932 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
16933 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16934 | # The linker can only warn and ignore the option if not recognized | |
16935 | # So say no if there are warnings | |
16936 | if test -s conftest.err; then | |
16937 | # Append any errors to the config.log. | |
16938 | cat conftest.err 1>&5 | |
ee134472 | 16939 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
16940 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16941 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16942 | lt_cv_prog_compiler_static_works_CXX=yes | |
16943 | fi | |
16944 | else | |
16945 | lt_cv_prog_compiler_static_works_CXX=yes | |
16946 | fi | |
16947 | fi | |
16948 | $RM -r conftest* | |
9d54db95 | 16949 | LDFLAGS=$save_LDFLAGS |
47aaa820 DWT |
16950 | |
16951 | fi | |
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
16953 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
16954 | ||
9d54db95 | 16955 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
47aaa820 DWT |
16956 | : |
16957 | else | |
16958 | lt_prog_compiler_static_CXX= | |
16959 | fi | |
16960 | ||
16961 | ||
16962 | ||
16963 | ||
16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16965 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 16966 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
16967 | $as_echo_n "(cached) " >&6 |
16968 | else | |
16969 | lt_cv_prog_compiler_c_o_CXX=no | |
16970 | $RM -r conftest 2>/dev/null | |
16971 | mkdir conftest | |
16972 | cd conftest | |
16973 | mkdir out | |
16974 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16975 | ||
16976 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16977 | # Insert the option either (1) after the last *FLAGS variable, or | |
16978 | # (2) before a word containing "conftest.", or (3) at the end. | |
16979 | # Note that $ac_compile itself does not contain backslashes and begins | |
16980 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16981 | lt_compile=`echo "$ac_compile" | $SED \ | |
16982 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16983 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16984 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 16985 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
16986 | (eval "$lt_compile" 2>out/conftest.err) |
16987 | ac_status=$? | |
16988 | cat out/conftest.err >&5 | |
ee134472 | 16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
16990 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16991 | then | |
16992 | # The compiler can only warn and ignore the option if not recognized | |
16993 | # So say no if there are warnings | |
ee134472 | 16994 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
16995 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16996 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16997 | lt_cv_prog_compiler_c_o_CXX=yes | |
16998 | fi | |
16999 | fi | |
17000 | chmod u+w . 2>&5 | |
00a96142 | 17001 | $RM -r conftest* |
47aaa820 DWT |
17002 | # SGI C++ compiler will create directory out/ii_files/ for |
17003 | # template instantiation | |
17004 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17005 | $RM out/* && rmdir out | |
17006 | cd .. | |
17007 | $RM -r conftest | |
00a96142 | 17008 | $RM -r conftest* |
47aaa820 DWT |
17009 | |
17010 | fi | |
17011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
17012 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
17013 | ||
17014 | ||
17015 | ||
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
17017 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 17018 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
17019 | $as_echo_n "(cached) " >&6 |
17020 | else | |
17021 | lt_cv_prog_compiler_c_o_CXX=no | |
17022 | $RM -r conftest 2>/dev/null | |
17023 | mkdir conftest | |
17024 | cd conftest | |
17025 | mkdir out | |
17026 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17027 | ||
17028 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17029 | # Insert the option either (1) after the last *FLAGS variable, or | |
17030 | # (2) before a word containing "conftest.", or (3) at the end. | |
17031 | # Note that $ac_compile itself does not contain backslashes and begins | |
17032 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17033 | lt_compile=`echo "$ac_compile" | $SED \ | |
17034 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17035 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17036 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 17037 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
17038 | (eval "$lt_compile" 2>out/conftest.err) |
17039 | ac_status=$? | |
17040 | cat out/conftest.err >&5 | |
ee134472 | 17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
17042 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17043 | then | |
17044 | # The compiler can only warn and ignore the option if not recognized | |
17045 | # So say no if there are warnings | |
ee134472 | 17046 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
17047 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
17048 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17049 | lt_cv_prog_compiler_c_o_CXX=yes | |
17050 | fi | |
17051 | fi | |
17052 | chmod u+w . 2>&5 | |
00a96142 | 17053 | $RM -r conftest* |
47aaa820 DWT |
17054 | # SGI C++ compiler will create directory out/ii_files/ for |
17055 | # template instantiation | |
17056 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17057 | $RM out/* && rmdir out | |
17058 | cd .. | |
17059 | $RM -r conftest | |
00a96142 | 17060 | $RM -r conftest* |
47aaa820 DWT |
17061 | |
17062 | fi | |
17063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
17064 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
17065 | ||
17066 | ||
17067 | ||
17068 | ||
9d54db95 JF |
17069 | hard_links=nottested |
17070 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
47aaa820 DWT |
17071 | # do not overwrite the value of need_locks provided by the user |
17072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
17073 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
17074 | hard_links=yes | |
00a96142 | 17075 | $RM -r conftest* |
47aaa820 DWT |
17076 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17077 | touch conftest.a | |
17078 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
17079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
17081 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
17082 | if test no = "$hard_links"; then |
17083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
17084 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
47aaa820 DWT |
17085 | need_locks=warn |
17086 | fi | |
17087 | else | |
17088 | need_locks=no | |
17089 | fi | |
17090 | ||
17091 | ||
17092 | ||
17093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17094 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
17095 | ||
17096 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 17097 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
17098 | case $host_os in |
17099 | aix[4-9]*) | |
17100 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
17101 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
17102 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
17103 | # weak defined symbols like other global defined symbols, whereas | |
17104 | # GNU nm marks them as "W". | |
17105 | # While the 'weak' keyword is ignored in the Export File, we need | |
17106 | # it in the Import File for the 'aix-soname' feature, so we have | |
17107 | # to replace the "-B" option with "-P" for AIX nm. | |
47aaa820 | 17108 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 17109 | 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 | 17110 | else |
9d54db95 | 17111 | 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 |
17112 | fi |
17113 | ;; | |
17114 | pw32*) | |
9d54db95 | 17115 | export_symbols_cmds_CXX=$ltdll_cmds |
ee134472 | 17116 | ;; |
47aaa820 | 17117 | cygwin* | mingw* | cegcc*) |
ee134472 | 17118 | case $cc_basename in |
53ba6704 JF |
17119 | cl*) |
17120 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
17121 | ;; | |
ee134472 JF |
17122 | *) |
17123 | 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' | |
17124 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
17125 | ;; | |
17126 | esac | |
17127 | ;; | |
47aaa820 DWT |
17128 | *) |
17129 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 17130 | ;; |
47aaa820 | 17131 | esac |
47aaa820 DWT |
17132 | |
17133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
17134 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 17135 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
47aaa820 DWT |
17136 | |
17137 | with_gnu_ld_CXX=$with_gnu_ld | |
17138 | ||
17139 | ||
17140 | ||
17141 | ||
17142 | ||
17143 | ||
17144 | # | |
17145 | # Do we need to explicitly link libc? | |
17146 | # | |
17147 | case "x$archive_cmds_need_lc_CXX" in | |
17148 | x|xyes) | |
17149 | # Assume -lc should be added | |
17150 | archive_cmds_need_lc_CXX=yes | |
17151 | ||
9d54db95 | 17152 | if test yes,yes = "$GCC,$enable_shared"; then |
47aaa820 DWT |
17153 | case $archive_cmds_CXX in |
17154 | *'~'*) | |
17155 | # FIXME: we may have to deal with multi-command sequences. | |
17156 | ;; | |
17157 | '$CC '*) | |
17158 | # Test whether the compiler implicitly links with -lc since on some | |
17159 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17160 | # to ld, don't add -lc before -lgcc. | |
17161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
17162 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
17163 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
17164 | $as_echo_n "(cached) " >&6 | |
17165 | else | |
00a96142 | 17166 | $RM -r conftest* |
ee134472 | 17167 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 17168 | |
ee134472 | 17169 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
17170 | (eval $ac_compile) 2>&5 |
17171 | ac_status=$? | |
17172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17173 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
17174 | soname=conftest |
17175 | lib=conftest | |
17176 | libobjs=conftest.$ac_objext | |
17177 | deplibs= | |
17178 | wl=$lt_prog_compiler_wl_CXX | |
17179 | pic_flag=$lt_prog_compiler_pic_CXX | |
17180 | compiler_flags=-v | |
17181 | linker_flags=-v | |
17182 | verstring= | |
17183 | output_objdir=. | |
17184 | libname=conftest | |
17185 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
17186 | allow_undefined_flag_CXX= | |
17187 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
17188 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17189 | ac_status=$? | |
17190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17191 | test $ac_status = 0; } | |
ee134472 JF |
17192 | then |
17193 | lt_cv_archive_cmds_need_lc_CXX=no | |
17194 | else | |
17195 | lt_cv_archive_cmds_need_lc_CXX=yes | |
17196 | fi | |
17197 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
17198 | else | |
17199 | cat conftest.err 1>&5 | |
17200 | fi | |
00a96142 | 17201 | $RM -r conftest* |
ee134472 JF |
17202 | |
17203 | fi | |
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
17205 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
17206 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
17207 | ;; |
17208 | esac | |
17209 | fi | |
17210 | ;; | |
17211 | esac | |
17212 | ||
17213 | ||
17214 | ||
17215 | ||
17216 | ||
17217 | ||
17218 | ||
17219 | ||
17220 | ||
17221 | ||
17222 | ||
17223 | ||
17224 | ||
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
17236 | ||
17237 | ||
17238 | ||
17239 | ||
17240 | ||
17241 | ||
17242 | ||
17243 | ||
17244 | ||
17245 | ||
17246 | ||
17247 | ||
17248 | ||
17249 | ||
17250 | ||
17251 | ||
17252 | ||
17253 | ||
17254 | ||
17255 | ||
17256 | ||
17257 | ||
17258 | ||
17259 | ||
17260 | ||
17261 | ||
17262 | ||
17263 | ||
17264 | ||
17265 | ||
17266 | ||
17267 | ||
17268 | ||
17269 | ||
17270 | ||
47aaa820 DWT |
17271 | |
17272 | ||
17273 | ||
17274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
17275 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
17276 | ||
17277 | library_names_spec= | |
17278 | libname_spec='lib$name' | |
17279 | soname_spec= | |
9d54db95 | 17280 | shrext_cmds=.so |
47aaa820 DWT |
17281 | postinstall_cmds= |
17282 | postuninstall_cmds= | |
17283 | finish_cmds= | |
17284 | finish_eval= | |
17285 | shlibpath_var= | |
17286 | shlibpath_overrides_runpath=unknown | |
17287 | version_type=none | |
17288 | dynamic_linker="$host_os ld.so" | |
17289 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17290 | need_lib_prefix=unknown | |
17291 | hardcode_into_libs=no | |
17292 | ||
17293 | # when you set need_version to no, make sure it does not cause -set_version | |
17294 | # flags to be left without arguments | |
17295 | need_version=unknown | |
17296 | ||
9d54db95 JF |
17297 | |
17298 | ||
47aaa820 DWT |
17299 | case $host_os in |
17300 | aix3*) | |
53ba6704 | 17301 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 17302 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
47aaa820 DWT |
17303 | shlibpath_var=LIBPATH |
17304 | ||
17305 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 17306 | soname_spec='$libname$release$shared_ext$major' |
47aaa820 DWT |
17307 | ;; |
17308 | ||
17309 | aix[4-9]*) | |
53ba6704 | 17310 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17311 | need_lib_prefix=no |
17312 | need_version=no | |
17313 | hardcode_into_libs=yes | |
9d54db95 | 17314 | if test ia64 = "$host_cpu"; then |
47aaa820 | 17315 | # AIX 5 supports IA64 |
9d54db95 | 17316 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
47aaa820 DWT |
17317 | shlibpath_var=LD_LIBRARY_PATH |
17318 | else | |
17319 | # With GCC up to 2.95.x, collect2 would create an import file | |
17320 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
17321 | # the line '#! .'. This would cause the generated library to |
17322 | # depend on '.', always an invalid library. This was fixed in | |
47aaa820 DWT |
17323 | # development snapshots of GCC prior to 3.0. |
17324 | case $host_os in | |
17325 | aix4 | aix4.[01] | aix4.[01].*) | |
17326 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17327 | echo ' yes ' | |
9d54db95 | 17328 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
47aaa820 DWT |
17329 | : |
17330 | else | |
17331 | can_build_shared=no | |
17332 | fi | |
17333 | ;; | |
17334 | esac | |
9d54db95 JF |
17335 | # Using Import Files as archive members, it is possible to support |
17336 | # filename-based versioning of shared library archives on AIX. While | |
17337 | # this would work for both with and without runtime linking, it will | |
17338 | # prevent static linking of such archives. So we do filename-based | |
17339 | # shared library versioning with .so extension only, which is used | |
17340 | # when both runtime linking and shared linking is enabled. | |
17341 | # Unfortunately, runtime linking may impact performance, so we do | |
17342 | # not want this to be the default eventually. Also, we use the | |
17343 | # versioned .so libs for executables only if there is the -brtl | |
17344 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
17345 | # To allow for filename-based versioning support, we need to create | |
17346 | # libNAME.so.V as an archive file, containing: | |
17347 | # *) an Import File, referring to the versioned filename of the | |
17348 | # archive as well as the shared archive member, telling the | |
17349 | # bitwidth (32 or 64) of that shared object, and providing the | |
17350 | # list of exported symbols of that shared object, eventually | |
17351 | # decorated with the 'weak' keyword | |
17352 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
17353 | # it being seen by the linker. | |
17354 | # At run time we better use the real file rather than another symlink, | |
17355 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
17356 | ||
17357 | case $with_aix_soname,$aix_use_runtimelinking in | |
17358 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
47aaa820 DWT |
17359 | # soname into executable. Probably we can add versioning support to |
17360 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
17361 | aix,yes) # traditional libtool |
17362 | dynamic_linker='AIX unversionable lib.so' | |
47aaa820 DWT |
17363 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17364 | # instead of lib<name>.a to let people know that these are not | |
17365 | # typical AIX shared libraries. | |
9d54db95 JF |
17366 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17367 | ;; | |
17368 | aix,no) # traditional AIX only | |
17369 | dynamic_linker='AIX lib.a(lib.so.V)' | |
47aaa820 DWT |
17370 | # We preserve .a as extension for shared libraries through AIX4.2 |
17371 | # and later when we are not doing run time linking. | |
9d54db95 JF |
17372 | library_names_spec='$libname$release.a $libname.a' |
17373 | soname_spec='$libname$release$shared_ext$major' | |
17374 | ;; | |
17375 | svr4,*) # full svr4 only | |
17376 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
17377 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
17378 | # We do not specify a path in Import Files, so LIBPATH fires. | |
17379 | shlibpath_overrides_runpath=yes | |
17380 | ;; | |
17381 | *,yes) # both, prefer svr4 | |
17382 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
17383 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
17384 | # unpreferred sharedlib libNAME.a needs extra handling | |
17385 | 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"' | |
17386 | 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"' | |
17387 | # We do not specify a path in Import Files, so LIBPATH fires. | |
17388 | shlibpath_overrides_runpath=yes | |
17389 | ;; | |
17390 | *,no) # both, prefer aix | |
17391 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
17392 | library_names_spec='$libname$release.a $libname.a' | |
17393 | soname_spec='$libname$release$shared_ext$major' | |
17394 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
17395 | 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)' | |
17396 | 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"' | |
17397 | ;; | |
17398 | esac | |
47aaa820 DWT |
17399 | shlibpath_var=LIBPATH |
17400 | fi | |
17401 | ;; | |
17402 | ||
17403 | amigaos*) | |
17404 | case $host_cpu in | |
17405 | powerpc) | |
17406 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
17407 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 17408 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
17409 | ;; |
17410 | m68k) | |
17411 | library_names_spec='$libname.ixlibrary $libname.a' | |
17412 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 17413 | 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 |
17414 | ;; |
17415 | esac | |
17416 | ;; | |
17417 | ||
17418 | beos*) | |
9d54db95 | 17419 | library_names_spec='$libname$shared_ext' |
47aaa820 DWT |
17420 | dynamic_linker="$host_os ld.so" |
17421 | shlibpath_var=LIBRARY_PATH | |
17422 | ;; | |
17423 | ||
17424 | bsdi[45]*) | |
53ba6704 | 17425 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 | 17426 | need_version=no |
9d54db95 JF |
17427 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17428 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17429 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17430 | shlibpath_var=LD_LIBRARY_PATH | |
17431 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17432 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17433 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17434 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17435 | # libtool to hard-code these into programs | |
17436 | ;; | |
9c60689e | 17437 | |
47aaa820 DWT |
17438 | cygwin* | mingw* | pw32* | cegcc*) |
17439 | version_type=windows | |
9d54db95 | 17440 | shrext_cmds=.dll |
47aaa820 DWT |
17441 | need_version=no |
17442 | need_lib_prefix=no | |
9c60689e | 17443 | |
ee134472 JF |
17444 | case $GCC,$cc_basename in |
17445 | yes,*) | |
17446 | # gcc | |
47aaa820 DWT |
17447 | library_names_spec='$libname.dll.a' |
17448 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
17449 | postinstall_cmds='base_file=`basename \$file`~ |
17450 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
47aaa820 DWT |
17451 | dldir=$destdir/`dirname \$dlpath`~ |
17452 | test -d \$dldir || mkdir -p \$dldir~ | |
17453 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17454 | chmod a+x \$dldir/$dlname~ | |
17455 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
17456 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
17457 | fi' | |
17458 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17459 | dlpath=$dir/\$dldll~ | |
17460 | $RM \$dlpath' | |
17461 | shlibpath_overrides_runpath=yes | |
9c60689e | 17462 | |
47aaa820 DWT |
17463 | case $host_os in |
17464 | cygwin*) | |
17465 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 17466 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
ee134472 | 17467 | |
47aaa820 DWT |
17468 | ;; |
17469 | mingw* | cegcc*) | |
17470 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 17471 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
17472 | ;; |
17473 | pw32*) | |
17474 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 17475 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
17476 | ;; |
17477 | esac | |
ee134472 JF |
17478 | dynamic_linker='Win32 ld.exe' |
17479 | ;; | |
17480 | ||
17481 | *,cl*) | |
17482 | # Native MSVC | |
17483 | libname_spec='$name' | |
9d54db95 JF |
17484 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
17485 | library_names_spec='$libname.dll.lib' | |
ee134472 JF |
17486 | |
17487 | case $build_os in | |
17488 | mingw*) | |
17489 | sys_lib_search_path_spec= | |
17490 | lt_save_ifs=$IFS | |
17491 | IFS=';' | |
17492 | for lt_path in $LIB | |
17493 | do | |
17494 | IFS=$lt_save_ifs | |
17495 | # Let DOS variable expansion print the short 8.3 style file name. | |
17496 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
17497 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
17498 | done | |
17499 | IFS=$lt_save_ifs | |
17500 | # Convert to MSYS style. | |
17501 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
17502 | ;; | |
17503 | cygwin*) | |
17504 | # Convert to unix form, then to dos form, then back to unix form | |
17505 | # but this time dos style (no spaces!) so that the unix form looks | |
17506 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
17507 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
17508 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
17509 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17510 | ;; | |
17511 | *) | |
9d54db95 | 17512 | sys_lib_search_path_spec=$LIB |
ee134472 JF |
17513 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
17514 | # It is most probably a Windows format PATH. | |
17515 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17516 | else | |
17517 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17518 | fi | |
17519 | # FIXME: find the short name or the path components, as spaces are | |
17520 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
17521 | ;; | |
17522 | esac | |
17523 | ||
17524 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
17525 | postinstall_cmds='base_file=`basename \$file`~ |
17526 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
ee134472 JF |
17527 | dldir=$destdir/`dirname \$dlpath`~ |
17528 | test -d \$dldir || mkdir -p \$dldir~ | |
17529 | $install_prog $dir/$dlname \$dldir/$dlname' | |
17530 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17531 | dlpath=$dir/\$dldll~ | |
17532 | $RM \$dlpath' | |
17533 | shlibpath_overrides_runpath=yes | |
17534 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 17535 | ;; |
9c60689e | 17536 | |
47aaa820 | 17537 | *) |
ee134472 | 17538 | # Assume MSVC wrapper |
9d54db95 | 17539 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
ee134472 | 17540 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
17541 | ;; |
17542 | esac | |
47aaa820 DWT |
17543 | # FIXME: first we should search . and the directory the executable is in |
17544 | shlibpath_var=PATH | |
17545 | ;; | |
9c60689e | 17546 | |
47aaa820 DWT |
17547 | darwin* | rhapsody*) |
17548 | dynamic_linker="$host_os dyld" | |
17549 | version_type=darwin | |
17550 | need_lib_prefix=no | |
17551 | need_version=no | |
9d54db95 JF |
17552 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
17553 | soname_spec='$libname$release$major$shared_ext' | |
47aaa820 DWT |
17554 | shlibpath_overrides_runpath=yes |
17555 | shlibpath_var=DYLD_LIBRARY_PATH | |
17556 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 17557 | |
47aaa820 DWT |
17558 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17559 | ;; | |
9c60689e | 17560 | |
47aaa820 | 17561 | dgux*) |
53ba6704 | 17562 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17563 | need_lib_prefix=no |
17564 | need_version=no | |
9d54db95 JF |
17565 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17566 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17567 | shlibpath_var=LD_LIBRARY_PATH |
17568 | ;; | |
9c60689e | 17569 | |
47aaa820 DWT |
17570 | freebsd* | dragonfly*) |
17571 | # DragonFly does not have aout. When/if they implement a new | |
17572 | # versioning mechanism, adjust this. | |
17573 | if test -x /usr/bin/objformat; then | |
17574 | objformat=`/usr/bin/objformat` | |
17575 | else | |
17576 | case $host_os in | |
53ba6704 | 17577 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
17578 | *) objformat=elf ;; |
17579 | esac | |
17580 | fi | |
17581 | version_type=freebsd-$objformat | |
17582 | case $version_type in | |
17583 | freebsd-elf*) | |
9d54db95 JF |
17584 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17585 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17586 | need_version=no |
17587 | need_lib_prefix=no | |
17588 | ;; | |
17589 | freebsd-*) | |
9d54db95 | 17590 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17591 | need_version=yes |
17592 | ;; | |
17593 | esac | |
17594 | shlibpath_var=LD_LIBRARY_PATH | |
17595 | case $host_os in | |
53ba6704 | 17596 | freebsd2.*) |
47aaa820 DWT |
17597 | shlibpath_overrides_runpath=yes |
17598 | ;; | |
17599 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17600 | shlibpath_overrides_runpath=yes | |
17601 | hardcode_into_libs=yes | |
17602 | ;; | |
17603 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17604 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17605 | shlibpath_overrides_runpath=no | |
17606 | hardcode_into_libs=yes | |
17607 | ;; | |
17608 | *) # from 4.6 on, and DragonFly | |
17609 | shlibpath_overrides_runpath=yes | |
17610 | hardcode_into_libs=yes | |
17611 | ;; | |
17612 | esac | |
17613 | ;; | |
9c60689e | 17614 | |
ee134472 | 17615 | haiku*) |
53ba6704 | 17616 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
17617 | need_lib_prefix=no |
17618 | need_version=no | |
17619 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
17620 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17621 | soname_spec='$libname$release$shared_ext$major' | |
ee134472 | 17622 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 17623 | shlibpath_overrides_runpath=no |
ee134472 | 17624 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
47aaa820 DWT |
17625 | hardcode_into_libs=yes |
17626 | ;; | |
9c60689e | 17627 | |
47aaa820 DWT |
17628 | hpux9* | hpux10* | hpux11*) |
17629 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17630 | # link against other versions. | |
17631 | version_type=sunos | |
17632 | need_lib_prefix=no | |
17633 | need_version=no | |
17634 | case $host_cpu in | |
17635 | ia64*) | |
17636 | shrext_cmds='.so' | |
17637 | hardcode_into_libs=yes | |
17638 | dynamic_linker="$host_os dld.so" | |
17639 | shlibpath_var=LD_LIBRARY_PATH | |
17640 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
17641 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17642 | soname_spec='$libname$release$shared_ext$major' | |
17643 | if test 32 = "$HPUX_IA64_MODE"; then | |
47aaa820 | 17644 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 17645 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
47aaa820 DWT |
17646 | else |
17647 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 17648 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
47aaa820 | 17649 | fi |
47aaa820 DWT |
17650 | ;; |
17651 | hppa*64*) | |
17652 | shrext_cmds='.sl' | |
17653 | hardcode_into_libs=yes | |
17654 | dynamic_linker="$host_os dld.sl" | |
17655 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17656 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
17657 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17658 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17659 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17660 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17661 | ;; | |
17662 | *) | |
17663 | shrext_cmds='.sl' | |
17664 | dynamic_linker="$host_os dld.sl" | |
17665 | shlibpath_var=SHLIB_PATH | |
17666 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
17667 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17668 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17669 | ;; |
17670 | esac | |
ee134472 | 17671 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 17672 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
17673 | # or fails outright, so override atomically: |
17674 | install_override_mode=555 | |
47aaa820 | 17675 | ;; |
9c60689e | 17676 | |
47aaa820 | 17677 | interix[3-9]*) |
53ba6704 | 17678 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17679 | need_lib_prefix=no |
17680 | need_version=no | |
9d54db95 JF |
17681 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17682 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17683 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17684 | shlibpath_var=LD_LIBRARY_PATH | |
17685 | shlibpath_overrides_runpath=no | |
17686 | hardcode_into_libs=yes | |
17687 | ;; | |
9c60689e | 17688 | |
47aaa820 DWT |
17689 | irix5* | irix6* | nonstopux*) |
17690 | case $host_os in | |
17691 | nonstopux*) version_type=nonstopux ;; | |
17692 | *) | |
9d54db95 | 17693 | if test yes = "$lt_cv_prog_gnu_ld"; then |
53ba6704 | 17694 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17695 | else |
17696 | version_type=irix | |
17697 | fi ;; | |
17698 | esac | |
17699 | need_lib_prefix=no | |
17700 | need_version=no | |
9d54db95 JF |
17701 | soname_spec='$libname$release$shared_ext$major' |
17702 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
47aaa820 DWT |
17703 | case $host_os in |
17704 | irix5* | nonstopux*) | |
17705 | libsuff= shlibsuff= | |
17706 | ;; | |
17707 | *) | |
17708 | case $LD in # libtool.m4 will add one of these switches to LD | |
17709 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17710 | libsuff= shlibsuff= libmagic=32-bit;; | |
17711 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17712 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17713 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17714 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17715 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17716 | esac | |
17717 | ;; | |
17718 | esac | |
17719 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17720 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
17721 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
17722 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
47aaa820 DWT |
17723 | hardcode_into_libs=yes |
17724 | ;; | |
9c60689e | 17725 | |
47aaa820 DWT |
17726 | # No shared lib support for Linux oldld, aout, or coff. |
17727 | linux*oldld* | linux*aout* | linux*coff*) | |
17728 | dynamic_linker=no | |
17729 | ;; | |
9c60689e | 17730 | |
9d54db95 JF |
17731 | linux*android*) |
17732 | version_type=none # Android doesn't support versioned libraries. | |
17733 | need_lib_prefix=no | |
17734 | need_version=no | |
17735 | library_names_spec='$libname$release$shared_ext' | |
17736 | soname_spec='$libname$release$shared_ext' | |
17737 | finish_cmds= | |
17738 | shlibpath_var=LD_LIBRARY_PATH | |
17739 | shlibpath_overrides_runpath=yes | |
17740 | ||
17741 | # This implies no fast_install, which is unacceptable. | |
17742 | # Some rework will be needed to allow for fast_install | |
17743 | # before this can be enabled. | |
17744 | hardcode_into_libs=yes | |
17745 | ||
17746 | dynamic_linker='Android linker' | |
17747 | # Don't embed -rpath directories since the linker doesn't support them. | |
17748 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
17749 | ;; | |
17750 | ||
53ba6704 | 17751 | # This must be glibc/ELF. |
9d54db95 | 17752 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
53ba6704 | 17753 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17754 | need_lib_prefix=no |
17755 | need_version=no | |
9d54db95 JF |
17756 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17757 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17758 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17759 | shlibpath_var=LD_LIBRARY_PATH | |
17760 | shlibpath_overrides_runpath=no | |
ee134472 | 17761 | |
47aaa820 | 17762 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
17763 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
17764 | $as_echo_n "(cached) " >&6 | |
17765 | else | |
17766 | lt_cv_shlibpath_overrides_runpath=no | |
17767 | save_LDFLAGS=$LDFLAGS | |
17768 | save_libdir=$libdir | |
17769 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
17770 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
17771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 17772 | /* end confdefs.h. */ |
9c60689e | 17773 | |
47aaa820 DWT |
17774 | int |
17775 | main () | |
17776 | { | |
9c60689e | 17777 | |
47aaa820 DWT |
17778 | ; |
17779 | return 0; | |
17780 | } | |
17781 | _ACEOF | |
17782 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17783 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 17784 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 17785 | fi |
47aaa820 DWT |
17786 | fi |
17787 | rm -f core conftest.err conftest.$ac_objext \ | |
17788 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
17789 | LDFLAGS=$save_LDFLAGS |
17790 | libdir=$save_libdir | |
17791 | ||
17792 | fi | |
17793 | ||
17794 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 17795 | |
47aaa820 DWT |
17796 | # This implies no fast_install, which is unacceptable. |
17797 | # Some rework will be needed to allow for fast_install | |
17798 | # before this can be enabled. | |
17799 | hardcode_into_libs=yes | |
9c60689e | 17800 | |
9d54db95 JF |
17801 | # Ideally, we could use ldconfig to report *all* directores which are |
17802 | # searched for libraries, however this is still not possible. Aside from not | |
17803 | # being certain /sbin/ldconfig is available, command | |
17804 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
17805 | # even though it is searched at run-time. Try to do the best guess by | |
17806 | # appending ld.so.conf contents (and includes) to the search path. | |
47aaa820 | 17807 | if test -f /etc/ld.so.conf; then |
ee134472 | 17808 | 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 |
17809 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
17810 | fi | |
9c60689e | 17811 | |
47aaa820 DWT |
17812 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17813 | # powerpc, because MkLinux only supported shared libraries with the | |
17814 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17815 | # most powerpc-linux boxes support dynamic linking these days and | |
17816 | # people can always --disable-shared, the test was removed, and we | |
17817 | # assume the GNU/Linux dynamic linker is in use. | |
17818 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 17819 | ;; |
47aaa820 | 17820 | |
47aaa820 DWT |
17821 | netbsd*) |
17822 | version_type=sunos | |
17823 | need_lib_prefix=no | |
17824 | need_version=no | |
17825 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 17826 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17827 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17828 | dynamic_linker='NetBSD (a.out) ld.so' | |
17829 | else | |
9d54db95 JF |
17830 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17831 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17832 | dynamic_linker='NetBSD ld.elf_so' |
17833 | fi | |
17834 | shlibpath_var=LD_LIBRARY_PATH | |
17835 | shlibpath_overrides_runpath=yes | |
17836 | hardcode_into_libs=yes | |
9c60689e | 17837 | ;; |
9c60689e | 17838 | |
47aaa820 | 17839 | newsos6) |
53ba6704 | 17840 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 17841 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
17842 | shlibpath_var=LD_LIBRARY_PATH |
17843 | shlibpath_overrides_runpath=yes | |
17844 | ;; | |
9c60689e | 17845 | |
47aaa820 DWT |
17846 | *nto* | *qnx*) |
17847 | version_type=qnx | |
17848 | need_lib_prefix=no | |
17849 | need_version=no | |
9d54db95 JF |
17850 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17851 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17852 | shlibpath_var=LD_LIBRARY_PATH |
17853 | shlibpath_overrides_runpath=no | |
17854 | hardcode_into_libs=yes | |
17855 | dynamic_linker='ldqnx.so' | |
17856 | ;; | |
9c60689e | 17857 | |
9d54db95 | 17858 | openbsd* | bitrig*) |
47aaa820 | 17859 | version_type=sunos |
9d54db95 | 17860 | sys_lib_dlsearch_path_spec=/usr/lib |
47aaa820 | 17861 | need_lib_prefix=no |
9d54db95 JF |
17862 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
17863 | need_version=no | |
47aaa820 | 17864 | else |
9d54db95 | 17865 | need_version=yes |
47aaa820 | 17866 | fi |
9d54db95 JF |
17867 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
17868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17869 | shlibpath_var=LD_LIBRARY_PATH | |
17870 | shlibpath_overrides_runpath=yes | |
47aaa820 | 17871 | ;; |
9c60689e | 17872 | |
47aaa820 DWT |
17873 | os2*) |
17874 | libname_spec='$name' | |
9d54db95 JF |
17875 | version_type=windows |
17876 | shrext_cmds=.dll | |
17877 | need_version=no | |
47aaa820 | 17878 | need_lib_prefix=no |
9d54db95 JF |
17879 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
17880 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
17881 | v=$($ECHO $release$versuffix | tr -d .-); | |
17882 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
17883 | $ECHO $n$v`$shared_ext' | |
17884 | library_names_spec='${libname}_dll.$libext' | |
47aaa820 | 17885 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
17886 | shlibpath_var=BEGINLIBPATH |
17887 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17888 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17889 | postinstall_cmds='base_file=`basename \$file`~ | |
17890 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
17891 | dldir=$destdir/`dirname \$dlpath`~ | |
17892 | test -d \$dldir || mkdir -p \$dldir~ | |
17893 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17894 | chmod a+x \$dldir/$dlname~ | |
17895 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
17896 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
17897 | fi' | |
17898 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
17899 | dlpath=$dir/\$dldll~ | |
17900 | $RM \$dlpath' | |
47aaa820 | 17901 | ;; |
9c60689e | 17902 | |
47aaa820 DWT |
17903 | osf3* | osf4* | osf5*) |
17904 | version_type=osf | |
17905 | need_lib_prefix=no | |
17906 | need_version=no | |
9d54db95 JF |
17907 | soname_spec='$libname$release$shared_ext$major' |
17908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
47aaa820 DWT |
17909 | shlibpath_var=LD_LIBRARY_PATH |
17910 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 17911 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
47aaa820 | 17912 | ;; |
9c60689e | 17913 | |
47aaa820 DWT |
17914 | rdos*) |
17915 | dynamic_linker=no | |
17916 | ;; | |
9c60689e | 17917 | |
47aaa820 | 17918 | solaris*) |
53ba6704 | 17919 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17920 | need_lib_prefix=no |
17921 | need_version=no | |
9d54db95 JF |
17922 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17923 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17924 | shlibpath_var=LD_LIBRARY_PATH |
17925 | shlibpath_overrides_runpath=yes | |
17926 | hardcode_into_libs=yes | |
17927 | # ldd complains unless libraries are executable | |
17928 | postinstall_cmds='chmod +x $lib' | |
17929 | ;; | |
9c60689e | 17930 | |
47aaa820 DWT |
17931 | sunos4*) |
17932 | version_type=sunos | |
9d54db95 | 17933 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17934 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17935 | shlibpath_var=LD_LIBRARY_PATH | |
17936 | shlibpath_overrides_runpath=yes | |
9d54db95 | 17937 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
17938 | need_lib_prefix=no |
17939 | fi | |
17940 | need_version=yes | |
17941 | ;; | |
9c60689e | 17942 | |
47aaa820 | 17943 | sysv4 | sysv4.3*) |
53ba6704 | 17944 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
17945 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17946 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17947 | shlibpath_var=LD_LIBRARY_PATH |
17948 | case $host_vendor in | |
17949 | sni) | |
17950 | shlibpath_overrides_runpath=no | |
17951 | need_lib_prefix=no | |
17952 | runpath_var=LD_RUN_PATH | |
9c60689e | 17953 | ;; |
47aaa820 DWT |
17954 | siemens) |
17955 | need_lib_prefix=no | |
9c60689e | 17956 | ;; |
47aaa820 DWT |
17957 | motorola) |
17958 | need_lib_prefix=no | |
17959 | need_version=no | |
17960 | shlibpath_overrides_runpath=no | |
17961 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17962 | ;; | |
17963 | esac | |
9c60689e | 17964 | ;; |
9c60689e | 17965 | |
47aaa820 | 17966 | sysv4*MP*) |
9d54db95 | 17967 | if test -d /usr/nec; then |
53ba6704 | 17968 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
17969 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
17970 | soname_spec='$libname$shared_ext.$major' | |
47aaa820 DWT |
17971 | shlibpath_var=LD_LIBRARY_PATH |
17972 | fi | |
17973 | ;; | |
9c60689e | 17974 | |
47aaa820 | 17975 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 17976 | version_type=sco |
47aaa820 DWT |
17977 | need_lib_prefix=no |
17978 | need_version=no | |
9d54db95 JF |
17979 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
17980 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17981 | shlibpath_var=LD_LIBRARY_PATH |
17982 | shlibpath_overrides_runpath=yes | |
17983 | hardcode_into_libs=yes | |
9d54db95 | 17984 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
17985 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17986 | else | |
17987 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17988 | case $host_os in | |
17989 | sco3.2v5*) | |
17990 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17991 | ;; | |
17992 | esac | |
17993 | fi | |
17994 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17995 | ;; | |
9c60689e | 17996 | |
47aaa820 DWT |
17997 | tpf*) |
17998 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 17999 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
18000 | need_lib_prefix=no |
18001 | need_version=no | |
9d54db95 | 18002 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
18003 | shlibpath_var=LD_LIBRARY_PATH |
18004 | shlibpath_overrides_runpath=no | |
18005 | hardcode_into_libs=yes | |
18006 | ;; | |
9c60689e | 18007 | |
47aaa820 | 18008 | uts4*) |
53ba6704 | 18009 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
18010 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
18011 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
18012 | shlibpath_var=LD_LIBRARY_PATH |
18013 | ;; | |
9c60689e | 18014 | |
47aaa820 DWT |
18015 | *) |
18016 | dynamic_linker=no | |
e9c9a47c DWT |
18017 | ;; |
18018 | esac | |
18019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
18020 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 18021 | test no = "$dynamic_linker" && can_build_shared=no |
e9c9a47c DWT |
18022 | |
18023 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9d54db95 | 18024 | if test yes = "$GCC"; then |
e9c9a47c | 18025 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
47aaa820 | 18026 | fi |
9c60689e | 18027 | |
9d54db95 JF |
18028 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
18029 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
47aaa820 | 18030 | fi |
9d54db95 JF |
18031 | |
18032 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
18033 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
47aaa820 | 18034 | fi |
9c60689e | 18035 | |
9d54db95 JF |
18036 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
18037 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
18038 | ||
18039 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
18040 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
18041 | ||
18042 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
18043 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
18044 | ||
18045 | ||
18046 | ||
9c60689e | 18047 | |
9c60689e | 18048 | |
9c60689e | 18049 | |
47aaa820 | 18050 | |
47aaa820 | 18051 | |
47aaa820 | 18052 | |
9c60689e | 18053 | |
9c60689e | 18054 | |
47aaa820 | 18055 | |
47aaa820 | 18056 | |
47aaa820 | 18057 | |
47aaa820 | 18058 | |
47aaa820 | 18059 | |
47aaa820 | 18060 | |
47aaa820 | 18061 | |
47aaa820 | 18062 | |
9c60689e | 18063 | |
9c60689e | 18064 | |
9c60689e | 18065 | |
9c60689e | 18066 | |
9c60689e | 18067 | |
e9c9a47c DWT |
18068 | |
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | ||
18074 | ||
18075 | ||
18076 | ||
18077 | ||
18078 | ||
ee134472 JF |
18079 | |
18080 | ||
e9c9a47c DWT |
18081 | |
18082 | ||
18083 | ||
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
18085 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
18086 | hardcode_action_CXX= | |
18087 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
18088 | test -n "$runpath_var_CXX" || | |
9d54db95 | 18089 | test yes = "$hardcode_automatic_CXX"; then |
e9c9a47c DWT |
18090 | |
18091 | # We can hardcode non-existent directories. | |
9d54db95 | 18092 | if test no != "$hardcode_direct_CXX" && |
e9c9a47c DWT |
18093 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18094 | # have to relink, otherwise we might link with an installed library | |
18095 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
18096 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
18097 | test no != "$hardcode_minus_L_CXX"; then | |
e9c9a47c DWT |
18098 | # Linking always hardcodes the temporary library directory. |
18099 | hardcode_action_CXX=relink | |
18100 | else | |
18101 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18102 | hardcode_action_CXX=immediate | |
18103 | fi | |
18104 | else | |
18105 | # We cannot hardcode anything, or else we can only hardcode existing | |
18106 | # directories. | |
18107 | hardcode_action_CXX=unsupported | |
18108 | fi | |
18109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
18110 | $as_echo "$hardcode_action_CXX" >&6; } | |
18111 | ||
9d54db95 JF |
18112 | if test relink = "$hardcode_action_CXX" || |
18113 | test yes = "$inherit_rpath_CXX"; then | |
e9c9a47c DWT |
18114 | # Fast installation is not supported |
18115 | enable_fast_install=no | |
9d54db95 JF |
18116 | elif test yes = "$shlibpath_overrides_runpath" || |
18117 | test no = "$enable_shared"; then | |
e9c9a47c DWT |
18118 | # Fast installation is not necessary |
18119 | enable_fast_install=needless | |
47aaa820 | 18120 | fi |
9c60689e | 18121 | |
47aaa820 | 18122 | |
47aaa820 | 18123 | |
e9c9a47c DWT |
18124 | |
18125 | ||
18126 | ||
18127 | ||
a243b558 JF |
18128 | fi # test -n "$compiler" |
18129 | ||
18130 | CC=$lt_save_CC | |
18131 | CFLAGS=$lt_save_CFLAGS | |
18132 | LDCXX=$LD | |
18133 | LD=$lt_save_LD | |
18134 | GCC=$lt_save_GCC | |
18135 | with_gnu_ld=$lt_save_with_gnu_ld | |
18136 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
18137 | lt_cv_path_LD=$lt_save_path_LD | |
18138 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
18139 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
9d54db95 | 18140 | fi # test yes != "$_lt_caught_CXX_error" |
a243b558 JF |
18141 | |
18142 | ac_ext=c | |
18143 | ac_cpp='$CPP $CPPFLAGS' | |
18144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18147 | ||
18148 | ||
18149 | ||
18150 | ||
18151 | ||
18152 | ||
18153 | ||
18154 | ||
18155 | ||
18156 | ||
18157 | ||
18158 | ||
18159 | ||
18160 | ||
18161 | ||
18162 | ac_config_commands="$ac_config_commands libtool" | |
18163 | ||
18164 | ||
18165 | ||
18166 | ||
18167 | # Only expand once: | |
18168 | ||
18169 | ||
18170 | ||
18171 | ac_ext=cpp | |
18172 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18173 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18174 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18175 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18176 | ||
18177 | ||
1771224f JF |
18178 | ax_cxx_compile_cxx11_required=true |
18179 | ac_ext=cpp | |
18180 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18184 | ac_success=no | |
18185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
18186 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
18187 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
18188 | $as_echo_n "(cached) " >&6 | |
18189 | else | |
18190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18191 | /* end confdefs.h. */ | |
18192 | ||
18193 | template <typename T> | |
18194 | struct check | |
18195 | { | |
18196 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
18197 | }; | |
18198 | ||
18199 | struct Base { | |
18200 | virtual void f() {} | |
18201 | }; | |
18202 | struct Child : public Base { | |
18203 | virtual void f() override {} | |
18204 | }; | |
18205 | ||
18206 | typedef check<check<bool>> right_angle_brackets; | |
18207 | ||
18208 | int a; | |
18209 | decltype(a) b; | |
18210 | ||
18211 | typedef check<int> check_type; | |
18212 | check_type c; | |
18213 | check_type&& cr = static_cast<check_type&&>(c); | |
18214 | ||
18215 | auto d = a; | |
18216 | auto l = [](){}; | |
18217 | ||
18218 | _ACEOF | |
18219 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18220 | ax_cv_cxx_compile_cxx11=yes | |
18221 | else | |
18222 | ax_cv_cxx_compile_cxx11=no | |
18223 | fi | |
18224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18225 | fi | |
18226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
18227 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
18228 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
18229 | ac_success=yes | |
18230 | fi | |
18231 | ||
18232 | if test x$ac_success = xno; then | |
18233 | for switch in -std=gnu++11 -std=gnu++0x; do | |
18234 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
18235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
18236 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
18237 | if eval \${$cachevar+:} false; then : | |
18238 | $as_echo_n "(cached) " >&6 | |
18239 | else | |
18240 | ac_save_CXXFLAGS="$CXXFLAGS" | |
18241 | CXXFLAGS="$CXXFLAGS $switch" | |
18242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18243 | /* end confdefs.h. */ | |
18244 | ||
18245 | template <typename T> | |
18246 | struct check | |
18247 | { | |
18248 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
18249 | }; | |
18250 | ||
18251 | struct Base { | |
18252 | virtual void f() {} | |
18253 | }; | |
18254 | struct Child : public Base { | |
18255 | virtual void f() override {} | |
18256 | }; | |
18257 | ||
18258 | typedef check<check<bool>> right_angle_brackets; | |
18259 | ||
18260 | int a; | |
18261 | decltype(a) b; | |
18262 | ||
18263 | typedef check<int> check_type; | |
18264 | check_type c; | |
18265 | check_type&& cr = static_cast<check_type&&>(c); | |
18266 | ||
18267 | auto d = a; | |
18268 | auto l = [](){}; | |
18269 | ||
18270 | _ACEOF | |
18271 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18272 | eval $cachevar=yes | |
18273 | else | |
18274 | eval $cachevar=no | |
18275 | fi | |
18276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18277 | CXXFLAGS="$ac_save_CXXFLAGS" | |
18278 | fi | |
18279 | eval ac_res=\$$cachevar | |
18280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
18281 | $as_echo "$ac_res" >&6; } | |
18282 | if eval test x\$$cachevar = xyes; then | |
18283 | CXXFLAGS="$CXXFLAGS $switch" | |
18284 | ac_success=yes | |
18285 | break | |
18286 | fi | |
18287 | done | |
18288 | fi | |
18289 | ||
18290 | ||
18291 | ac_ext=cpp | |
18292 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18296 | ||
18297 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
18298 | if test x$ac_success = xno; then | |
18299 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
18300 | fi | |
18301 | else | |
18302 | if test x$ac_success = xno; then | |
18303 | HAVE_CXX11=0 | |
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
18305 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
18306 | else | |
18307 | HAVE_CXX11=1 | |
18308 | ||
18309 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
18310 | ||
18311 | fi | |
18312 | ||
18313 | ||
18314 | fi | |
18315 | ||
18316 | OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}" | |
18317 | ||
a243b558 JF |
18318 | |
18319 | ||
18320 | ||
18321 | ||
18322 | ||
18323 | ||
83c6fec8 | 18324 | |
a243b558 JF |
18325 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
18326 | if test -n "$ac_tool_prefix"; then | |
18327 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
18328 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18330 | $as_echo_n "checking for $ac_word... " >&6; } | |
18331 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
18332 | $as_echo_n "(cached) " >&6 | |
18333 | else | |
18334 | case $PKG_CONFIG in | |
18335 | [\\/]* | ?:[\\/]*) | |
18336 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
18337 | ;; | |
18338 | *) | |
18339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18340 | for as_dir in $PATH | |
18341 | do | |
18342 | IFS=$as_save_IFS | |
18343 | test -z "$as_dir" && as_dir=. | |
18344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18346 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18348 | break 2 | |
18349 | fi | |
18350 | done | |
18351 | done | |
18352 | IFS=$as_save_IFS | |
18353 | ||
18354 | ;; | |
18355 | esac | |
18356 | fi | |
18357 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
18358 | if test -n "$PKG_CONFIG"; then | |
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
18360 | $as_echo "$PKG_CONFIG" >&6; } | |
18361 | else | |
18362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18363 | $as_echo "no" >&6; } | |
18364 | fi | |
18365 | ||
18366 | ||
18367 | fi | |
18368 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
18369 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
18370 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
18371 | set dummy pkg-config; ac_word=$2 | |
18372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18373 | $as_echo_n "checking for $ac_word... " >&6; } | |
18374 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
18375 | $as_echo_n "(cached) " >&6 | |
18376 | else | |
18377 | case $ac_pt_PKG_CONFIG in | |
18378 | [\\/]* | ?:[\\/]*) | |
18379 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
18380 | ;; | |
18381 | *) | |
18382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18383 | for as_dir in $PATH | |
18384 | do | |
18385 | IFS=$as_save_IFS | |
18386 | test -z "$as_dir" && as_dir=. | |
18387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18389 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18391 | break 2 | |
18392 | fi | |
18393 | done | |
18394 | done | |
18395 | IFS=$as_save_IFS | |
18396 | ||
18397 | ;; | |
18398 | esac | |
18399 | fi | |
18400 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
18401 | if test -n "$ac_pt_PKG_CONFIG"; then | |
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
18403 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
18404 | else | |
18405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18406 | $as_echo "no" >&6; } | |
18407 | fi | |
18408 | ||
18409 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
18410 | PKG_CONFIG="" | |
18411 | else | |
18412 | case $cross_compiling:$ac_tool_warned in | |
18413 | yes:) | |
18414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
18415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
18416 | ac_tool_warned=yes ;; | |
18417 | esac | |
18418 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
18419 | fi | |
18420 | else | |
18421 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
18422 | fi | |
18423 | ||
18424 | fi | |
18425 | if test -n "$PKG_CONFIG"; then | |
18426 | _pkg_min_version=0.22 | |
18427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
18428 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
18429 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
18430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18431 | $as_echo "yes" >&6; } | |
18432 | else | |
18433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18434 | $as_echo "no" >&6; } | |
18435 | PKG_CONFIG="" | |
18436 | fi | |
18437 | fi | |
18438 | ||
a243b558 JF |
18439 | # Extract the first word of "git", so it can be a program name with args. |
18440 | set dummy git; ac_word=$2 | |
18441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18442 | $as_echo_n "checking for $ac_word... " >&6; } | |
18443 | if ${ac_cv_path_GIT+:} false; then : | |
18444 | $as_echo_n "(cached) " >&6 | |
18445 | else | |
18446 | case $GIT in | |
18447 | [\\/]* | ?:[\\/]*) | |
18448 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
18449 | ;; | |
18450 | *) | |
18451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18452 | for as_dir in $PATH | |
18453 | do | |
18454 | IFS=$as_save_IFS | |
18455 | test -z "$as_dir" && as_dir=. | |
18456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18458 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
18459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18460 | break 2 | |
18461 | fi | |
18462 | done | |
18463 | done | |
18464 | IFS=$as_save_IFS | |
e9c9a47c | 18465 | |
a243b558 JF |
18466 | ;; |
18467 | esac | |
18468 | fi | |
18469 | GIT=$ac_cv_path_GIT | |
18470 | if test -n "$GIT"; then | |
18471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
18472 | $as_echo "$GIT" >&6; } | |
18473 | else | |
18474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18475 | $as_echo "no" >&6; } | |
18476 | fi | |
e9c9a47c DWT |
18477 | |
18478 | ||
a243b558 JF |
18479 | # Extract the first word of "time", so it can be a program name with args. |
18480 | set dummy time; ac_word=$2 | |
632b71ea DWT |
18481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
18482 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 18483 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
18484 | $as_echo_n "(cached) " >&6 |
18485 | else | |
a243b558 JF |
18486 | case $TIME in |
18487 | [\\/]* | ?:[\\/]*) | |
18488 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
18489 | ;; | |
18490 | *) | |
18491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
18492 | for as_dir in $PATH |
18493 | do | |
18494 | IFS=$as_save_IFS | |
18495 | test -z "$as_dir" && as_dir=. | |
18496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 18497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 18498 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
18499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18500 | break 2 | |
18501 | fi | |
18502 | done | |
18503 | done | |
18504 | IFS=$as_save_IFS | |
18505 | ||
a243b558 JF |
18506 | ;; |
18507 | esac | |
632b71ea | 18508 | fi |
a243b558 JF |
18509 | TIME=$ac_cv_path_TIME |
18510 | if test -n "$TIME"; then | |
18511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
18512 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
18513 | else |
18514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18515 | $as_echo "no" >&6; } | |
18516 | fi | |
18517 | ||
18518 | ||
a243b558 JF |
18519 | |
18520 | ||
18521 | ||
18522 | ||
18523 | ||
6ce9ac92 JF |
18524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5 |
18525 | $as_echo_n "checking for bison >= 3.0... " >&6; } | |
a243b558 JF |
18526 | if test -z "$BISON"; then |
18527 | ac_path_BISON_found=false | |
18528 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18530 | for as_dir in $PATH | |
18531 | do | |
18532 | IFS=$as_save_IFS | |
18533 | test -z "$as_dir" && as_dir=. | |
18534 | for ac_prog in bison; do | |
18535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18536 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
18537 | as_fn_executable_p "$ac_path_BISON" || continue | |
18538 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
18539 | if ${version:+false} :; then : | |
18540 | ||
18541 | else | |
18542 | as_awk_strverscmp=' | |
18543 | # Use only awk features that work with 7th edition Unix awk (1978). | |
18544 | # My, what an old awk you have, Mr. Solaris! | |
18545 | END { | |
18546 | while (length(v1) && length(v2)) { | |
18547 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
18548 | # Normally this is a single character, but if v1 and v2 contain digits, | |
18549 | # compare them as integers and fractions as strverscmp does. | |
18550 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
18551 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
18552 | # and advance v1 and v2 past the leading digit strings. | |
18553 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
18554 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
18555 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
18556 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
18557 | if (d1 ~ /^0/) { | |
18558 | if (d2 ~ /^0/) { | |
18559 | # Compare two fractions. | |
18560 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
18561 | d1 = substr(d1, 2); len1-- | |
18562 | d2 = substr(d2, 2); len2-- | |
18563 | } | |
18564 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
18565 | # The two components differ in length, and the common prefix | |
18566 | # contains only leading zeros. Consider the longer to be less. | |
18567 | d1 = -len1 | |
18568 | d2 = -len2 | |
18569 | } else { | |
18570 | # Otherwise, compare as strings. | |
18571 | d1 = "x" d1 | |
18572 | d2 = "x" d2 | |
18573 | } | |
18574 | } else { | |
18575 | # A fraction is less than an integer. | |
18576 | exit 1 | |
18577 | } | |
18578 | } else { | |
18579 | if (d2 ~ /^0/) { | |
18580 | # An integer is greater than a fraction. | |
18581 | exit 2 | |
18582 | } else { | |
18583 | # Compare two integers. | |
18584 | d1 += 0 | |
18585 | d2 += 0 | |
18586 | } | |
18587 | } | |
18588 | } else { | |
18589 | # The normal case, without worrying about digits. | |
18590 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
18591 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
18592 | } | |
18593 | if (d1 < d2) exit 1 | |
18594 | if (d1 > d2) exit 2 | |
18595 | } | |
18596 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
18597 | # which mishandles some comparisons of empty strings to integers. | |
18598 | if (length(v2)) exit 1 | |
18599 | if (length(v1)) exit 2 | |
18600 | } | |
18601 | ' | |
18602 | as_arg_v1=$version | |
6ce9ac92 | 18603 | as_arg_v2=3.0 |
a243b558 JF |
18604 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
18605 | case $? in #( | |
18606 | 1) : | |
18607 | ;; #( | |
18608 | 0) : | |
18609 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
18610 | 2) : | |
18611 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
18612 | *) : | |
18613 | ;; | |
18614 | esac | |
18615 | fi | |
18616 | ||
18617 | $ac_path_BISON_found && break 3 | |
18618 | done | |
18619 | done | |
e9c9a47c | 18620 | done |
a243b558 JF |
18621 | IFS=$as_save_IFS |
18622 | if test -z "$ac_cv_path_BISON"; then | |
18623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18624 | $as_echo "no" >&6; } | |
18625 | fi | |
18626 | else | |
18627 | ac_cv_path_BISON=$BISON | |
632b71ea | 18628 | fi |
a243b558 JF |
18629 | |
18630 | ||
18631 | if true; then : | |
18632 | ||
18633 | BISON=$ac_cv_path_BISON | |
18634 | ||
18635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
18636 | $as_echo "$BISON" >&6; } | |
18637 | ||
47aaa820 | 18638 | else |
a243b558 JF |
18639 | if true; then : |
18640 | ||
6ce9ac92 | 18641 | as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5 |
a243b558 | 18642 | |
47aaa820 | 18643 | else |
a243b558 JF |
18644 | |
18645 | BISON=: | |
18646 | ||
18647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18648 | $as_echo "no" >&6; } | |
18649 | ||
18650 | fi | |
18651 | fi | |
18652 | ||
18653 | ||
18654 | ||
18655 | ||
18656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
18657 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
18658 | if test -z "$FLEX"; then | |
18659 | ac_path_FLEX_found=false | |
18660 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
18662 | for as_dir in $PATH |
18663 | do | |
18664 | IFS=$as_save_IFS | |
18665 | test -z "$as_dir" && as_dir=. | |
a243b558 | 18666 | for ac_prog in flex; do |
47aaa820 | 18667 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
18668 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
18669 | as_fn_executable_p "$ac_path_FLEX" || continue | |
18670 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
18671 | if ${version:+false} :; then : | |
9c60689e | 18672 | |
47aaa820 | 18673 | else |
a243b558 JF |
18674 | as_arg_v1=$version |
18675 | as_arg_v2=2.5.33 | |
18676 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18677 | case $? in #( | |
18678 | 1) : | |
18679 | ;; #( | |
18680 | 0) : | |
18681 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
18682 | 2) : | |
18683 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
18684 | *) : | |
18685 | ;; | |
18686 | esac | |
18687 | fi | |
18688 | ||
18689 | $ac_path_FLEX_found && break 3 | |
18690 | done | |
18691 | done | |
18692 | done | |
18693 | IFS=$as_save_IFS | |
18694 | if test -z "$ac_cv_path_FLEX"; then | |
18695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 18696 | $as_echo "no" >&6; } |
a243b558 JF |
18697 | fi |
18698 | else | |
18699 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
18700 | fi |
18701 | ||
18702 | ||
a243b558 | 18703 | if true; then : |
e9c9a47c | 18704 | |
a243b558 | 18705 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 18706 | |
a243b558 JF |
18707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
18708 | $as_echo "$FLEX" >&6; } | |
9c60689e | 18709 | |
632b71ea | 18710 | else |
a243b558 | 18711 | if true; then : |
e9c9a47c | 18712 | |
a243b558 | 18713 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 18714 | |
e9c9a47c | 18715 | else |
a243b558 JF |
18716 | |
18717 | FLEX=: | |
18718 | ||
18719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18720 | $as_echo "no" >&6; } | |
9c60689e | 18721 | |
632b71ea | 18722 | fi |
a243b558 JF |
18723 | fi |
18724 | ||
18725 | ||
18726 | ||
18727 | ||
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
18729 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
18730 | if test -z "$GPERF"; then | |
18731 | ac_path_GPERF_found=false | |
18732 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18734 | for as_dir in $PATH | |
18735 | do | |
18736 | IFS=$as_save_IFS | |
18737 | test -z "$as_dir" && as_dir=. | |
18738 | for ac_prog in gperf; do | |
18739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18740 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
18741 | as_fn_executable_p "$ac_path_GPERF" || continue | |
18742 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
18743 | if ${version:+false} :; then : | |
18744 | ||
e9c9a47c | 18745 | else |
a243b558 JF |
18746 | as_arg_v1=$version |
18747 | as_arg_v2=3.0.3 | |
18748 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18749 | case $? in #( | |
18750 | 1) : | |
18751 | ;; #( | |
18752 | 0) : | |
18753 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
18754 | 2) : | |
18755 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
18756 | *) : | |
18757 | ;; | |
18758 | esac | |
632b71ea | 18759 | fi |
a243b558 JF |
18760 | |
18761 | $ac_path_GPERF_found && break 3 | |
18762 | done | |
18763 | done | |
18764 | done | |
18765 | IFS=$as_save_IFS | |
18766 | if test -z "$ac_cv_path_GPERF"; then | |
18767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18768 | $as_echo "no" >&6; } | |
18769 | fi | |
47aaa820 | 18770 | else |
a243b558 JF |
18771 | ac_cv_path_GPERF=$GPERF |
18772 | fi | |
9c60689e DWT |
18773 | |
18774 | ||
a243b558 | 18775 | if true; then : |
9c60689e | 18776 | |
a243b558 | 18777 | GPERF=$ac_cv_path_GPERF |
9c60689e | 18778 | |
a243b558 JF |
18779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
18780 | $as_echo "$GPERF" >&6; } | |
9c60689e | 18781 | |
47aaa820 | 18782 | else |
a243b558 | 18783 | if true; then : |
9c60689e | 18784 | |
a243b558 JF |
18785 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
18786 | ||
18787 | else | |
18788 | ||
18789 | GPERF=: | |
18790 | ||
18791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18792 | $as_echo "no" >&6; } | |
9c60689e | 18793 | |
47aaa820 | 18794 | fi |
47aaa820 | 18795 | fi |
a243b558 JF |
18796 | |
18797 | ||
18798 | ||
18799 | ||
18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
18801 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
18802 | if test -z "$GNUTAR"; then | |
18803 | ac_path_GNUTAR_found=false | |
18804 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18806 | for as_dir in $PATH | |
18807 | do | |
18808 | IFS=$as_save_IFS | |
18809 | test -z "$as_dir" && as_dir=. | |
18810 | for ac_prog in tar gtar gnutar; do | |
18811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18812 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
18813 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
18814 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
18815 | if ${version:+false} :; then : | |
18816 | ||
18817 | else | |
18818 | as_arg_v1=$version | |
18819 | as_arg_v2=1.19 | |
18820 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18821 | case $? in #( | |
18822 | 1) : | |
18823 | ;; #( | |
18824 | 0) : | |
18825 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
18826 | 2) : | |
18827 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
18828 | *) : | |
18829 | ;; | |
18830 | esac | |
790e5246 | 18831 | fi |
a243b558 JF |
18832 | |
18833 | $ac_path_GNUTAR_found && break 3 | |
18834 | done | |
18835 | done | |
18836 | done | |
18837 | IFS=$as_save_IFS | |
18838 | if test -z "$ac_cv_path_GNUTAR"; then | |
18839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18840 | $as_echo "no" >&6; } | |
632b71ea | 18841 | fi |
632b71ea | 18842 | else |
a243b558 | 18843 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 18844 | fi |
66170b30 | 18845 | |
66170b30 | 18846 | |
a243b558 | 18847 | if true; then : |
66170b30 | 18848 | |
a243b558 | 18849 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 18850 | |
a243b558 JF |
18851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
18852 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 18853 | |
a243b558 JF |
18854 | else |
18855 | if true; then : | |
66170b30 | 18856 | |
a243b558 | 18857 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 18858 | |
66170b30 | 18859 | else |
66170b30 | 18860 | |
a243b558 | 18861 | GNUTAR=: |
66170b30 | 18862 | |
a243b558 JF |
18863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18864 | $as_echo "no" >&6; } | |
66170b30 | 18865 | |
a243b558 JF |
18866 | fi |
18867 | fi | |
66170b30 JF |
18868 | |
18869 | ||
18870 | ||
18871 | ||
18872 | ||
18873 | ||
18874 | ||
77578fdd JF |
18875 | if test "x$LFLAGS" = x; then : |
18876 | LFLAGS="--full --ecs" | |
18877 | fi | |
18878 | ||
18879 | ||
66170b30 JF |
18880 | |
18881 | ||
18882 | ||
e9c9a47c DWT |
18883 | ac_ext=c |
18884 | ac_cpp='$CPP $CPPFLAGS' | |
18885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 18888 | |
66170b30 JF |
18889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
18890 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
18891 | if ${ac_cv_cflags_warn_all+:} false; then : | |
18892 | $as_echo_n "(cached) " >&6 | |
18893 | else | |
18894 | ac_cv_cflags_warn_all="no, unknown" | |
18895 | ac_save_CFLAGS="$CFLAGS" | |
18896 | 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" # | |
18897 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
18898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18899 | /* end confdefs.h. */ | |
18900 | ||
18901 | int | |
18902 | main () | |
18903 | { | |
18904 | ||
18905 | ; | |
18906 | return 0; | |
18907 | } | |
18908 | _ACEOF | |
18909 | if ac_fn_c_try_compile "$LINENO"; then : | |
18910 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
18911 | fi | |
18912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18913 | done | |
18914 | CFLAGS="$ac_save_CFLAGS" | |
18915 | ||
18916 | fi | |
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
18918 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
18919 | ||
83c6fec8 | 18920 | |
66170b30 JF |
18921 | case ".$ac_cv_cflags_warn_all" in |
18922 | .ok|.ok,*) ;; | |
18923 | .|.no|.no,*) ;; | |
18924 | *) if ${CFLAGS+:} false; then : | |
18925 | case " $CFLAGS " in | |
18926 | *" $ac_cv_cflags_warn_all "*) | |
18927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
18928 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
18929 | ac_status=$? | |
18930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18931 | test $ac_status = 0; } | |
18932 | ;; | |
18933 | *) | |
18934 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
18935 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
18936 | ac_status=$? | |
18937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18938 | test $ac_status = 0; } | |
18939 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
18940 | ;; | |
18941 | esac | |
18942 | else | |
18943 | CFLAGS="$ac_cv_cflags_warn_all" | |
18944 | fi | |
18945 | ;; | |
18946 | esac | |
18947 | ||
b816329d JF |
18948 | ac_ext=cpp |
18949 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18953 | ||
9c60689e | 18954 | |
66170b30 JF |
18955 | ac_ext=cpp |
18956 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 18960 | |
66170b30 JF |
18961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
18962 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
18963 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
18964 | $as_echo_n "(cached) " >&6 | |
18965 | else | |
18966 | ac_cv_cxxflags_warn_all="no, unknown" | |
18967 | ac_save_CXXFLAGS="$CXXFLAGS" | |
18968 | 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" # | |
18969 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
18970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18971 | /* end confdefs.h. */ | |
1504c9b8 | 18972 | |
66170b30 JF |
18973 | int |
18974 | main () | |
18975 | { | |
1504c9b8 | 18976 | |
66170b30 JF |
18977 | ; |
18978 | return 0; | |
18979 | } | |
18980 | _ACEOF | |
18981 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18982 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
18983 | fi | |
18984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18985 | done | |
18986 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 18987 | |
66170b30 JF |
18988 | fi |
18989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
18990 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
18991 | ||
83c6fec8 | 18992 | |
66170b30 JF |
18993 | case ".$ac_cv_cxxflags_warn_all" in |
18994 | .ok|.ok,*) ;; | |
18995 | .|.no|.no,*) ;; | |
18996 | *) if ${CXXFLAGS+:} false; then : | |
18997 | case " $CXXFLAGS " in | |
18998 | *" $ac_cv_cxxflags_warn_all "*) | |
18999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
19000 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
19001 | ac_status=$? | |
19002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19003 | test $ac_status = 0; } | |
19004 | ;; | |
19005 | *) | |
19006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
19007 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
19008 | ac_status=$? | |
19009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19010 | test $ac_status = 0; } | |
19011 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
19012 | ;; | |
19013 | esac | |
19014 | else | |
19015 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
19016 | fi | |
19017 | ;; | |
19018 | esac | |
19019 | ||
19020 | ac_ext=cpp | |
19021 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19022 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19023 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19024 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19025 | ||
19026 | ||
babf7fe8 JF |
19027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
19028 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
19029 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
19030 | $as_echo_n "(cached) " >&6 | |
19031 | else | |
19032 | ac_cv_cxxflags_warn_all="no, unknown" | |
19033 | ac_save_CXXFLAGS="$CXXFLAGS" | |
19034 | 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" # | |
19035 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
19036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19037 | /* end confdefs.h. */ | |
19038 | ||
19039 | int | |
19040 | main () | |
19041 | { | |
19042 | ||
19043 | ; | |
19044 | return 0; | |
19045 | } | |
19046 | _ACEOF | |
19047 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19048 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
19049 | fi | |
19050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19051 | done | |
19052 | CXXFLAGS="$ac_save_CXXFLAGS" | |
19053 | ||
19054 | fi | |
19055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
19056 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
19057 | ||
83c6fec8 | 19058 | |
babf7fe8 JF |
19059 | case ".$ac_cv_cxxflags_warn_all" in |
19060 | .ok|.ok,*) ;; | |
19061 | .|.no|.no,*) ;; | |
19062 | *) if ${CXXFLAGS+:} false; then : | |
19063 | case " $CXXFLAGS " in | |
19064 | *" $ac_cv_cxxflags_warn_all "*) | |
19065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
19066 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
19067 | ac_status=$? | |
19068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19069 | test $ac_status = 0; } | |
19070 | ;; | |
19071 | *) | |
19072 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
19073 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
19074 | ac_status=$? | |
19075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19076 | test $ac_status = 0; } | |
19077 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
19078 | ;; | |
19079 | esac | |
19080 | else | |
19081 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
19082 | fi | |
19083 | ;; | |
19084 | esac | |
19085 | ||
66170b30 JF |
19086 | |
19087 | ||
66170b30 | 19088 | |
66170b30 | 19089 | |
c10a2228 JF |
19090 | ac_ext=c |
19091 | ac_cpp='$CPP $CPPFLAGS' | |
19092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19095 | ||
babf7fe8 JF |
19096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
19097 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
19098 | |
19099 | cy_save=$CFLAGS | |
19100 | ||
babf7fe8 | 19101 | for element in -Werror; do |
c10a2228 JF |
19102 | haveit= |
19103 | for x in $CFLAGS; 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 | CFLAGS="${CFLAGS}${CFLAGS:+ }$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_c_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 | CFLAGS=$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 | ||
babf7fe8 | 19140 | for element in -Werror; do |
c10a2228 JF |
19141 | haveit= |
19142 | for x in $CFLAGS; 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 | CFLAGS="${CFLAGS}${CFLAGS:+ }$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=cpp | |
19177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19178 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19179 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19180 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19181 | ||
babf7fe8 JF |
19182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
19183 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
19184 | |
19185 | cy_save=$CXXFLAGS | |
19186 | ||
babf7fe8 | 19187 | for element in -Werror; do |
c10a2228 JF |
19188 | haveit= |
19189 | for x in $CXXFLAGS; 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 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$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_cxx_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 | CXXFLAGS=$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 | ||
babf7fe8 | 19226 | for element in -Werror; do |
c10a2228 JF |
19227 | haveit= |
19228 | for x in $CXXFLAGS; do | |
19229 | ||
19230 | acl_save_prefix="$prefix" | |
19231 | prefix="$acl_final_prefix" | |
19232 | acl_save_exec_prefix="$exec_prefix" | |
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 | |
19244 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19245 | fi | |
19246 | done | |
19247 | ||
19248 | ||
19249 | else | |
19250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19251 | $as_echo "no" >&6; } | |
19252 | fi | |
19253 | ||
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 | ||
19261 | ||
19262 | ac_ext=mm | |
19263 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19264 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19265 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19266 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19267 | ||
babf7fe8 JF |
19268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
19269 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
19270 | |
19271 | cy_save=$OBJCXXFLAGS | |
19272 | ||
babf7fe8 | 19273 | for element in -Werror; do |
c10a2228 JF |
19274 | haveit= |
19275 | for x in $OBJCXXFLAGS; do | |
19276 | ||
19277 | acl_save_prefix="$prefix" | |
19278 | prefix="$acl_final_prefix" | |
19279 | acl_save_exec_prefix="$exec_prefix" | |
19280 | exec_prefix="$acl_final_exec_prefix" | |
19281 | eval x=\"$x\" | |
19282 | exec_prefix="$acl_save_exec_prefix" | |
19283 | prefix="$acl_save_prefix" | |
19284 | ||
19285 | if test "X$x" = "X$element"; then | |
19286 | haveit=yes | |
19287 | break | |
19288 | fi | |
19289 | done | |
19290 | if test -z "$haveit"; then | |
19291 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19292 | fi | |
19293 | done | |
19294 | ||
19295 | ||
19296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19297 | /* end confdefs.h. */ | |
19298 | ||
19299 | _ACEOF | |
19300 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19301 | cy_good=1 | |
19302 | else | |
19303 | cy_good=0 | |
19304 | fi | |
19305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19306 | ||
19307 | OBJCXXFLAGS=$cy_save | |
19308 | if test "x$cy_good" = x1; then : | |
19309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19310 | $as_echo "yes" >&6; } | |
19311 | ||
babf7fe8 | 19312 | for element in -Werror; do |
c10a2228 JF |
19313 | haveit= |
19314 | for x in $OBJCXXFLAGS; do | |
19315 | ||
19316 | acl_save_prefix="$prefix" | |
19317 | prefix="$acl_final_prefix" | |
19318 | acl_save_exec_prefix="$exec_prefix" | |
19319 | exec_prefix="$acl_final_exec_prefix" | |
19320 | eval x=\"$x\" | |
19321 | exec_prefix="$acl_save_exec_prefix" | |
19322 | prefix="$acl_save_prefix" | |
19323 | ||
19324 | if test "X$x" = "X$element"; then | |
19325 | haveit=yes | |
19326 | break | |
19327 | fi | |
19328 | done | |
19329 | if test -z "$haveit"; then | |
19330 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19331 | fi | |
19332 | done | |
19333 | ||
19334 | ||
19335 | else | |
19336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19337 | $as_echo "no" >&6; } | |
19338 | fi | |
19339 | ||
19340 | ac_ext=cpp | |
19341 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19342 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19343 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19344 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19345 | ||
19346 | ||
19347 | ||
19348 | ||
19349 | ||
19350 | ||
19351 | ac_ext=c | |
19352 | ac_cpp='$CPP $CPPFLAGS' | |
19353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19356 | ||
babf7fe8 JF |
19357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
19358 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19359 | |
19360 | cy_save=$CFLAGS | |
19361 | ||
babf7fe8 | 19362 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19363 | haveit= |
19364 | for x in $CFLAGS; do | |
19365 | ||
19366 | acl_save_prefix="$prefix" | |
19367 | prefix="$acl_final_prefix" | |
19368 | acl_save_exec_prefix="$exec_prefix" | |
19369 | exec_prefix="$acl_final_exec_prefix" | |
19370 | eval x=\"$x\" | |
19371 | exec_prefix="$acl_save_exec_prefix" | |
19372 | prefix="$acl_save_prefix" | |
19373 | ||
19374 | if test "X$x" = "X$element"; then | |
19375 | haveit=yes | |
19376 | break | |
19377 | fi | |
19378 | done | |
19379 | if test -z "$haveit"; then | |
19380 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19381 | fi | |
19382 | done | |
19383 | ||
19384 | ||
19385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19386 | /* end confdefs.h. */ | |
19387 | ||
19388 | _ACEOF | |
19389 | if ac_fn_c_try_compile "$LINENO"; then : | |
19390 | cy_good=1 | |
19391 | else | |
19392 | cy_good=0 | |
19393 | fi | |
19394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19395 | ||
19396 | CFLAGS=$cy_save | |
19397 | if test "x$cy_good" = x1; then : | |
19398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19399 | $as_echo "yes" >&6; } | |
19400 | ||
babf7fe8 | 19401 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19402 | haveit= |
19403 | for x in $CFLAGS; do | |
19404 | ||
19405 | acl_save_prefix="$prefix" | |
19406 | prefix="$acl_final_prefix" | |
19407 | acl_save_exec_prefix="$exec_prefix" | |
19408 | exec_prefix="$acl_final_exec_prefix" | |
19409 | eval x=\"$x\" | |
19410 | exec_prefix="$acl_save_exec_prefix" | |
19411 | prefix="$acl_save_prefix" | |
19412 | ||
19413 | if test "X$x" = "X$element"; then | |
19414 | haveit=yes | |
19415 | break | |
19416 | fi | |
19417 | done | |
19418 | if test -z "$haveit"; then | |
19419 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19420 | fi | |
19421 | done | |
19422 | ||
19423 | ||
19424 | else | |
19425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19426 | $as_echo "no" >&6; } | |
19427 | fi | |
19428 | ||
19429 | ac_ext=cpp | |
19430 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19431 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19432 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19433 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19434 | ||
19435 | ||
19436 | ||
19437 | ac_ext=cpp | |
19438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19439 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19440 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19441 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19442 | ||
babf7fe8 JF |
19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
19444 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19445 | |
19446 | cy_save=$CXXFLAGS | |
19447 | ||
babf7fe8 | 19448 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19449 | haveit= |
19450 | for x in $CXXFLAGS; do | |
19451 | ||
19452 | acl_save_prefix="$prefix" | |
19453 | prefix="$acl_final_prefix" | |
19454 | acl_save_exec_prefix="$exec_prefix" | |
19455 | exec_prefix="$acl_final_exec_prefix" | |
19456 | eval x=\"$x\" | |
19457 | exec_prefix="$acl_save_exec_prefix" | |
19458 | prefix="$acl_save_prefix" | |
19459 | ||
19460 | if test "X$x" = "X$element"; then | |
19461 | haveit=yes | |
19462 | break | |
19463 | fi | |
19464 | done | |
19465 | if test -z "$haveit"; then | |
19466 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19467 | fi | |
19468 | done | |
19469 | ||
19470 | ||
19471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19472 | /* end confdefs.h. */ | |
19473 | ||
19474 | _ACEOF | |
19475 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19476 | cy_good=1 | |
19477 | else | |
19478 | cy_good=0 | |
19479 | fi | |
19480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19481 | ||
19482 | CXXFLAGS=$cy_save | |
19483 | if test "x$cy_good" = x1; then : | |
19484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19485 | $as_echo "yes" >&6; } | |
19486 | ||
babf7fe8 | 19487 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19488 | haveit= |
19489 | for x in $CXXFLAGS; do | |
19490 | ||
19491 | acl_save_prefix="$prefix" | |
19492 | prefix="$acl_final_prefix" | |
19493 | acl_save_exec_prefix="$exec_prefix" | |
19494 | exec_prefix="$acl_final_exec_prefix" | |
19495 | eval x=\"$x\" | |
19496 | exec_prefix="$acl_save_exec_prefix" | |
19497 | prefix="$acl_save_prefix" | |
19498 | ||
19499 | if test "X$x" = "X$element"; then | |
19500 | haveit=yes | |
19501 | break | |
19502 | fi | |
19503 | done | |
19504 | if test -z "$haveit"; then | |
19505 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19506 | fi | |
19507 | done | |
19508 | ||
19509 | ||
19510 | else | |
19511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19512 | $as_echo "no" >&6; } | |
19513 | fi | |
19514 | ||
19515 | ac_ext=cpp | |
19516 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19517 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19518 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19519 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19520 | ||
19521 | ||
19522 | ||
19523 | ac_ext=mm | |
19524 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19525 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19526 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19527 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19528 | ||
babf7fe8 JF |
19529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
19530 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19531 | |
19532 | cy_save=$OBJCXXFLAGS | |
19533 | ||
babf7fe8 | 19534 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19535 | haveit= |
19536 | for x in $OBJCXXFLAGS; do | |
19537 | ||
19538 | acl_save_prefix="$prefix" | |
19539 | prefix="$acl_final_prefix" | |
19540 | acl_save_exec_prefix="$exec_prefix" | |
19541 | exec_prefix="$acl_final_exec_prefix" | |
19542 | eval x=\"$x\" | |
19543 | exec_prefix="$acl_save_exec_prefix" | |
19544 | prefix="$acl_save_prefix" | |
19545 | ||
19546 | if test "X$x" = "X$element"; then | |
19547 | haveit=yes | |
19548 | break | |
19549 | fi | |
19550 | done | |
19551 | if test -z "$haveit"; then | |
19552 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19553 | fi | |
19554 | done | |
19555 | ||
19556 | ||
19557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19558 | /* end confdefs.h. */ | |
19559 | ||
19560 | _ACEOF | |
19561 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19562 | cy_good=1 | |
19563 | else | |
19564 | cy_good=0 | |
19565 | fi | |
19566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19567 | ||
19568 | OBJCXXFLAGS=$cy_save | |
19569 | if test "x$cy_good" = x1; then : | |
19570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19571 | $as_echo "yes" >&6; } | |
19572 | ||
babf7fe8 | 19573 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19574 | haveit= |
19575 | for x in $OBJCXXFLAGS; do | |
19576 | ||
19577 | acl_save_prefix="$prefix" | |
19578 | prefix="$acl_final_prefix" | |
19579 | acl_save_exec_prefix="$exec_prefix" | |
19580 | exec_prefix="$acl_final_exec_prefix" | |
19581 | eval x=\"$x\" | |
19582 | exec_prefix="$acl_save_exec_prefix" | |
19583 | prefix="$acl_save_prefix" | |
19584 | ||
19585 | if test "X$x" = "X$element"; then | |
19586 | haveit=yes | |
19587 | break | |
19588 | fi | |
19589 | done | |
19590 | if test -z "$haveit"; then | |
19591 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19592 | fi | |
19593 | done | |
19594 | ||
19595 | ||
19596 | else | |
19597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19598 | $as_echo "no" >&6; } | |
19599 | fi | |
19600 | ||
19601 | ac_ext=cpp | |
19602 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19603 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19604 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19605 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19606 | ||
19607 | ||
19608 | ||
19609 | ||
19610 | ||
babf7fe8 | 19611 | |
c10a2228 JF |
19612 | ac_ext=c |
19613 | ac_cpp='$CPP $CPPFLAGS' | |
19614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19617 | ||
babf7fe8 JF |
19618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
19619 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19620 | |
19621 | cy_save=$CFLAGS | |
19622 | ||
babf7fe8 | 19623 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19624 | haveit= |
19625 | for x in $CFLAGS; do | |
19626 | ||
19627 | acl_save_prefix="$prefix" | |
19628 | prefix="$acl_final_prefix" | |
19629 | acl_save_exec_prefix="$exec_prefix" | |
19630 | exec_prefix="$acl_final_exec_prefix" | |
19631 | eval x=\"$x\" | |
19632 | exec_prefix="$acl_save_exec_prefix" | |
19633 | prefix="$acl_save_prefix" | |
19634 | ||
19635 | if test "X$x" = "X$element"; then | |
19636 | haveit=yes | |
19637 | break | |
19638 | fi | |
19639 | done | |
19640 | if test -z "$haveit"; then | |
19641 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19642 | fi | |
19643 | done | |
19644 | ||
19645 | ||
19646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19647 | /* end confdefs.h. */ | |
19648 | ||
19649 | _ACEOF | |
19650 | if ac_fn_c_try_compile "$LINENO"; then : | |
19651 | cy_good=1 | |
19652 | else | |
19653 | cy_good=0 | |
19654 | fi | |
19655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19656 | ||
19657 | CFLAGS=$cy_save | |
19658 | if test "x$cy_good" = x1; then : | |
19659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19660 | $as_echo "yes" >&6; } | |
19661 | ||
babf7fe8 | 19662 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19663 | haveit= |
19664 | for x in $CFLAGS; do | |
19665 | ||
19666 | acl_save_prefix="$prefix" | |
19667 | prefix="$acl_final_prefix" | |
19668 | acl_save_exec_prefix="$exec_prefix" | |
19669 | exec_prefix="$acl_final_exec_prefix" | |
19670 | eval x=\"$x\" | |
19671 | exec_prefix="$acl_save_exec_prefix" | |
19672 | prefix="$acl_save_prefix" | |
19673 | ||
19674 | if test "X$x" = "X$element"; then | |
19675 | haveit=yes | |
19676 | break | |
19677 | fi | |
19678 | done | |
19679 | if test -z "$haveit"; then | |
19680 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19681 | fi | |
19682 | done | |
19683 | ||
19684 | ||
19685 | else | |
19686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19687 | $as_echo "no" >&6; } | |
19688 | fi | |
19689 | ||
19690 | ac_ext=cpp | |
19691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19695 | ||
19696 | ||
19697 | ||
19698 | ac_ext=cpp | |
19699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19703 | ||
babf7fe8 JF |
19704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
19705 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19706 | |
19707 | cy_save=$CXXFLAGS | |
19708 | ||
babf7fe8 | 19709 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19710 | haveit= |
19711 | for x in $CXXFLAGS; do | |
19712 | ||
19713 | acl_save_prefix="$prefix" | |
19714 | prefix="$acl_final_prefix" | |
19715 | acl_save_exec_prefix="$exec_prefix" | |
19716 | exec_prefix="$acl_final_exec_prefix" | |
19717 | eval x=\"$x\" | |
19718 | exec_prefix="$acl_save_exec_prefix" | |
19719 | prefix="$acl_save_prefix" | |
19720 | ||
19721 | if test "X$x" = "X$element"; then | |
19722 | haveit=yes | |
19723 | break | |
19724 | fi | |
19725 | done | |
19726 | if test -z "$haveit"; then | |
19727 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19728 | fi | |
19729 | done | |
19730 | ||
19731 | ||
19732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19733 | /* end confdefs.h. */ | |
19734 | ||
19735 | _ACEOF | |
19736 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19737 | cy_good=1 | |
19738 | else | |
19739 | cy_good=0 | |
19740 | fi | |
19741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19742 | ||
19743 | CXXFLAGS=$cy_save | |
19744 | if test "x$cy_good" = x1; then : | |
19745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19746 | $as_echo "yes" >&6; } | |
19747 | ||
babf7fe8 | 19748 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19749 | haveit= |
19750 | for x in $CXXFLAGS; do | |
19751 | ||
19752 | acl_save_prefix="$prefix" | |
19753 | prefix="$acl_final_prefix" | |
19754 | acl_save_exec_prefix="$exec_prefix" | |
19755 | exec_prefix="$acl_final_exec_prefix" | |
19756 | eval x=\"$x\" | |
19757 | exec_prefix="$acl_save_exec_prefix" | |
19758 | prefix="$acl_save_prefix" | |
19759 | ||
19760 | if test "X$x" = "X$element"; then | |
19761 | haveit=yes | |
19762 | break | |
19763 | fi | |
19764 | done | |
19765 | if test -z "$haveit"; then | |
19766 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19767 | fi | |
19768 | done | |
19769 | ||
19770 | ||
19771 | else | |
19772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19773 | $as_echo "no" >&6; } | |
19774 | fi | |
19775 | ||
19776 | ac_ext=cpp | |
19777 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19778 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19779 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19780 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19781 | ||
19782 | ||
19783 | ||
19784 | ac_ext=mm | |
19785 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19786 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19787 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19788 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19789 | ||
babf7fe8 JF |
19790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
19791 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19792 | |
19793 | cy_save=$OBJCXXFLAGS | |
19794 | ||
babf7fe8 | 19795 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19796 | haveit= |
19797 | for x in $OBJCXXFLAGS; do | |
19798 | ||
19799 | acl_save_prefix="$prefix" | |
19800 | prefix="$acl_final_prefix" | |
19801 | acl_save_exec_prefix="$exec_prefix" | |
19802 | exec_prefix="$acl_final_exec_prefix" | |
19803 | eval x=\"$x\" | |
19804 | exec_prefix="$acl_save_exec_prefix" | |
19805 | prefix="$acl_save_prefix" | |
19806 | ||
19807 | if test "X$x" = "X$element"; then | |
19808 | haveit=yes | |
19809 | break | |
19810 | fi | |
19811 | done | |
19812 | if test -z "$haveit"; then | |
19813 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19814 | fi | |
19815 | done | |
19816 | ||
19817 | ||
19818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19819 | /* end confdefs.h. */ | |
19820 | ||
19821 | _ACEOF | |
19822 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19823 | cy_good=1 | |
19824 | else | |
19825 | cy_good=0 | |
19826 | fi | |
19827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19828 | ||
19829 | OBJCXXFLAGS=$cy_save | |
19830 | if test "x$cy_good" = x1; then : | |
19831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19832 | $as_echo "yes" >&6; } | |
19833 | ||
babf7fe8 | 19834 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19835 | haveit= |
19836 | for x in $OBJCXXFLAGS; do | |
19837 | ||
19838 | acl_save_prefix="$prefix" | |
19839 | prefix="$acl_final_prefix" | |
19840 | acl_save_exec_prefix="$exec_prefix" | |
19841 | exec_prefix="$acl_final_exec_prefix" | |
19842 | eval x=\"$x\" | |
19843 | exec_prefix="$acl_save_exec_prefix" | |
19844 | prefix="$acl_save_prefix" | |
19845 | ||
19846 | if test "X$x" = "X$element"; then | |
19847 | haveit=yes | |
19848 | break | |
19849 | fi | |
19850 | done | |
19851 | if test -z "$haveit"; then | |
19852 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19853 | fi | |
19854 | done | |
19855 | ||
19856 | ||
19857 | else | |
19858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19859 | $as_echo "no" >&6; } | |
19860 | fi | |
19861 | ||
19862 | ac_ext=cpp | |
19863 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19867 | ||
19868 | ||
19869 | ||
19870 | ||
19871 | ||
2ada0541 JF |
19872 | ac_ext=c |
19873 | ac_cpp='$CPP $CPPFLAGS' | |
19874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19877 | ||
19878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5 | |
19879 | $as_echo_n "checking for cc -Wno-empty-body... " >&6; } | |
19880 | ||
19881 | cy_save=$CFLAGS | |
19882 | ||
19883 | for element in -Wno-empty-body; do | |
19884 | haveit= | |
19885 | for x in $CFLAGS; do | |
19886 | ||
19887 | acl_save_prefix="$prefix" | |
19888 | prefix="$acl_final_prefix" | |
19889 | acl_save_exec_prefix="$exec_prefix" | |
19890 | exec_prefix="$acl_final_exec_prefix" | |
19891 | eval x=\"$x\" | |
19892 | exec_prefix="$acl_save_exec_prefix" | |
19893 | prefix="$acl_save_prefix" | |
19894 | ||
19895 | if test "X$x" = "X$element"; then | |
19896 | haveit=yes | |
19897 | break | |
19898 | fi | |
19899 | done | |
19900 | if test -z "$haveit"; then | |
19901 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19902 | fi | |
19903 | done | |
19904 | ||
19905 | ||
19906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19907 | /* end confdefs.h. */ | |
19908 | ||
19909 | _ACEOF | |
19910 | if ac_fn_c_try_compile "$LINENO"; then : | |
19911 | cy_good=1 | |
19912 | else | |
19913 | cy_good=0 | |
19914 | fi | |
19915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19916 | ||
19917 | CFLAGS=$cy_save | |
19918 | if test "x$cy_good" = x1; then : | |
19919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19920 | $as_echo "yes" >&6; } | |
19921 | ||
19922 | for element in -Wno-empty-body; do | |
19923 | haveit= | |
19924 | for x in $CFLAGS; do | |
19925 | ||
19926 | acl_save_prefix="$prefix" | |
19927 | prefix="$acl_final_prefix" | |
19928 | acl_save_exec_prefix="$exec_prefix" | |
19929 | exec_prefix="$acl_final_exec_prefix" | |
19930 | eval x=\"$x\" | |
19931 | exec_prefix="$acl_save_exec_prefix" | |
19932 | prefix="$acl_save_prefix" | |
19933 | ||
19934 | if test "X$x" = "X$element"; then | |
19935 | haveit=yes | |
19936 | break | |
19937 | fi | |
19938 | done | |
19939 | if test -z "$haveit"; then | |
19940 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19941 | fi | |
19942 | done | |
19943 | ||
19944 | ||
19945 | else | |
19946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19947 | $as_echo "no" >&6; } | |
19948 | fi | |
19949 | ||
19950 | ac_ext=cpp | |
19951 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19955 | ||
19956 | ||
19957 | ||
19958 | ac_ext=cpp | |
19959 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19960 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19961 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19962 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19963 | ||
19964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5 | |
19965 | $as_echo_n "checking for c++ -Wno-empty-body... " >&6; } | |
19966 | ||
19967 | cy_save=$CXXFLAGS | |
19968 | ||
19969 | for element in -Wno-empty-body; do | |
19970 | haveit= | |
19971 | for x in $CXXFLAGS; do | |
19972 | ||
19973 | acl_save_prefix="$prefix" | |
19974 | prefix="$acl_final_prefix" | |
19975 | acl_save_exec_prefix="$exec_prefix" | |
19976 | exec_prefix="$acl_final_exec_prefix" | |
19977 | eval x=\"$x\" | |
19978 | exec_prefix="$acl_save_exec_prefix" | |
19979 | prefix="$acl_save_prefix" | |
19980 | ||
19981 | if test "X$x" = "X$element"; then | |
19982 | haveit=yes | |
19983 | break | |
19984 | fi | |
19985 | done | |
19986 | if test -z "$haveit"; then | |
19987 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19988 | fi | |
19989 | done | |
19990 | ||
19991 | ||
19992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19993 | /* end confdefs.h. */ | |
19994 | ||
19995 | _ACEOF | |
19996 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19997 | cy_good=1 | |
19998 | else | |
19999 | cy_good=0 | |
20000 | fi | |
20001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20002 | ||
20003 | CXXFLAGS=$cy_save | |
20004 | if test "x$cy_good" = x1; then : | |
20005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20006 | $as_echo "yes" >&6; } | |
20007 | ||
20008 | for element in -Wno-empty-body; do | |
20009 | haveit= | |
20010 | for x in $CXXFLAGS; do | |
20011 | ||
20012 | acl_save_prefix="$prefix" | |
20013 | prefix="$acl_final_prefix" | |
20014 | acl_save_exec_prefix="$exec_prefix" | |
20015 | exec_prefix="$acl_final_exec_prefix" | |
20016 | eval x=\"$x\" | |
20017 | exec_prefix="$acl_save_exec_prefix" | |
20018 | prefix="$acl_save_prefix" | |
20019 | ||
20020 | if test "X$x" = "X$element"; then | |
20021 | haveit=yes | |
20022 | break | |
20023 | fi | |
20024 | done | |
20025 | if test -z "$haveit"; then | |
20026 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20027 | fi | |
20028 | done | |
20029 | ||
20030 | ||
20031 | else | |
20032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20033 | $as_echo "no" >&6; } | |
20034 | fi | |
20035 | ||
20036 | ac_ext=cpp | |
20037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20041 | ||
20042 | ||
20043 | ||
20044 | ac_ext=mm | |
20045 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20046 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20047 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20048 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20049 | ||
20050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5 | |
20051 | $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; } | |
20052 | ||
20053 | cy_save=$OBJCXXFLAGS | |
20054 | ||
20055 | for element in -Wno-empty-body; do | |
20056 | haveit= | |
20057 | for x in $OBJCXXFLAGS; do | |
20058 | ||
20059 | acl_save_prefix="$prefix" | |
20060 | prefix="$acl_final_prefix" | |
20061 | acl_save_exec_prefix="$exec_prefix" | |
20062 | exec_prefix="$acl_final_exec_prefix" | |
20063 | eval x=\"$x\" | |
20064 | exec_prefix="$acl_save_exec_prefix" | |
20065 | prefix="$acl_save_prefix" | |
20066 | ||
20067 | if test "X$x" = "X$element"; then | |
20068 | haveit=yes | |
20069 | break | |
20070 | fi | |
20071 | done | |
20072 | if test -z "$haveit"; then | |
20073 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20074 | fi | |
20075 | done | |
20076 | ||
20077 | ||
20078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20079 | /* end confdefs.h. */ | |
20080 | ||
20081 | _ACEOF | |
20082 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20083 | cy_good=1 | |
20084 | else | |
20085 | cy_good=0 | |
20086 | fi | |
20087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20088 | ||
20089 | OBJCXXFLAGS=$cy_save | |
20090 | if test "x$cy_good" = x1; then : | |
20091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20092 | $as_echo "yes" >&6; } | |
20093 | ||
20094 | for element in -Wno-empty-body; do | |
20095 | haveit= | |
20096 | for x in $OBJCXXFLAGS; do | |
20097 | ||
20098 | acl_save_prefix="$prefix" | |
20099 | prefix="$acl_final_prefix" | |
20100 | acl_save_exec_prefix="$exec_prefix" | |
20101 | exec_prefix="$acl_final_exec_prefix" | |
20102 | eval x=\"$x\" | |
20103 | exec_prefix="$acl_save_exec_prefix" | |
20104 | prefix="$acl_save_prefix" | |
20105 | ||
20106 | if test "X$x" = "X$element"; then | |
20107 | haveit=yes | |
20108 | break | |
20109 | fi | |
20110 | done | |
20111 | if test -z "$haveit"; then | |
20112 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20113 | fi | |
20114 | done | |
20115 | ||
20116 | ||
20117 | else | |
20118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20119 | $as_echo "no" >&6; } | |
20120 | fi | |
20121 | ||
20122 | ac_ext=cpp | |
20123 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20127 | ||
20128 | ||
20129 | ||
20130 | ||
20131 | ||
c10a2228 JF |
20132 | ac_ext=c |
20133 | ac_cpp='$CPP $CPPFLAGS' | |
20134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20137 | ||
babf7fe8 JF |
20138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
20139 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
20140 | |
20141 | cy_save=$CFLAGS | |
20142 | ||
babf7fe8 | 20143 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 20144 | haveit= |
c10a2228 | 20145 | for x in $CFLAGS; do |
1504c9b8 DWT |
20146 | |
20147 | acl_save_prefix="$prefix" | |
20148 | prefix="$acl_final_prefix" | |
20149 | acl_save_exec_prefix="$exec_prefix" | |
20150 | exec_prefix="$acl_final_exec_prefix" | |
20151 | eval x=\"$x\" | |
20152 | exec_prefix="$acl_save_exec_prefix" | |
20153 | prefix="$acl_save_prefix" | |
20154 | ||
20155 | if test "X$x" = "X$element"; then | |
20156 | haveit=yes | |
20157 | break | |
20158 | fi | |
20159 | done | |
20160 | if test -z "$haveit"; then | |
c10a2228 | 20161 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20162 | fi |
20163 | done | |
20164 | ||
66170b30 JF |
20165 | |
20166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
20167 | /* end confdefs.h. */ |
20168 | ||
66170b30 | 20169 | _ACEOF |
c10a2228 | 20170 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
20171 | cy_good=1 |
20172 | else | |
20173 | cy_good=0 | |
20174 | fi | |
20175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20176 | ||
c10a2228 | 20177 | CFLAGS=$cy_save |
66170b30 JF |
20178 | if test "x$cy_good" = x1; then : |
20179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20180 | $as_echo "yes" >&6; } | |
20181 | ||
babf7fe8 | 20182 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
20183 | haveit= |
20184 | for x in $CFLAGS; do | |
20185 | ||
20186 | acl_save_prefix="$prefix" | |
20187 | prefix="$acl_final_prefix" | |
20188 | acl_save_exec_prefix="$exec_prefix" | |
20189 | exec_prefix="$acl_final_exec_prefix" | |
20190 | eval x=\"$x\" | |
20191 | exec_prefix="$acl_save_exec_prefix" | |
20192 | prefix="$acl_save_prefix" | |
20193 | ||
20194 | if test "X$x" = "X$element"; then | |
20195 | haveit=yes | |
20196 | break | |
20197 | fi | |
20198 | done | |
20199 | if test -z "$haveit"; then | |
20200 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20201 | fi | |
20202 | done | |
20203 | ||
20204 | ||
c10a2228 JF |
20205 | else |
20206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20207 | $as_echo "no" >&6; } | |
20208 | fi | |
20209 | ||
20210 | ac_ext=cpp | |
20211 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20215 | ||
20216 | ||
20217 | ||
20218 | ac_ext=cpp | |
20219 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20220 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20221 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20222 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20223 | ||
babf7fe8 JF |
20224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
20225 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
20226 | |
20227 | cy_save=$CXXFLAGS | |
20228 | ||
babf7fe8 | 20229 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
20230 | haveit= |
20231 | for x in $CXXFLAGS; do | |
20232 | ||
20233 | acl_save_prefix="$prefix" | |
20234 | prefix="$acl_final_prefix" | |
20235 | acl_save_exec_prefix="$exec_prefix" | |
20236 | exec_prefix="$acl_final_exec_prefix" | |
20237 | eval x=\"$x\" | |
20238 | exec_prefix="$acl_save_exec_prefix" | |
20239 | prefix="$acl_save_prefix" | |
20240 | ||
20241 | if test "X$x" = "X$element"; then | |
20242 | haveit=yes | |
20243 | break | |
20244 | fi | |
20245 | done | |
20246 | if test -z "$haveit"; then | |
20247 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20248 | fi | |
20249 | done | |
20250 | ||
20251 | ||
c10a2228 JF |
20252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20253 | /* end confdefs.h. */ | |
20254 | ||
20255 | _ACEOF | |
20256 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20257 | cy_good=1 | |
20258 | else | |
20259 | cy_good=0 | |
20260 | fi | |
20261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20262 | ||
20263 | CXXFLAGS=$cy_save | |
20264 | if test "x$cy_good" = x1; then : | |
20265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20266 | $as_echo "yes" >&6; } | |
20267 | ||
babf7fe8 | 20268 | for element in -Wno-overloaded-virtual; do |
66170b30 | 20269 | haveit= |
c10a2228 | 20270 | for x in $CXXFLAGS; do |
66170b30 JF |
20271 | |
20272 | acl_save_prefix="$prefix" | |
20273 | prefix="$acl_final_prefix" | |
20274 | acl_save_exec_prefix="$exec_prefix" | |
20275 | exec_prefix="$acl_final_exec_prefix" | |
20276 | eval x=\"$x\" | |
20277 | exec_prefix="$acl_save_exec_prefix" | |
20278 | prefix="$acl_save_prefix" | |
20279 | ||
20280 | if test "X$x" = "X$element"; then | |
20281 | haveit=yes | |
20282 | break | |
20283 | fi | |
20284 | done | |
20285 | if test -z "$haveit"; then | |
c10a2228 | 20286 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
20287 | fi |
20288 | done | |
20289 | ||
20290 | ||
66170b30 JF |
20291 | else |
20292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20293 | $as_echo "no" >&6; } | |
20294 | fi | |
20295 | ||
c10a2228 JF |
20296 | ac_ext=cpp |
20297 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20301 | ||
66170b30 JF |
20302 | |
20303 | ||
c10a2228 JF |
20304 | ac_ext=mm |
20305 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20306 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20307 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20308 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20309 | ||
babf7fe8 JF |
20310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
20311 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 20312 | |
c10a2228 | 20313 | cy_save=$OBJCXXFLAGS |
66170b30 | 20314 | |
babf7fe8 | 20315 | for element in -Wno-overloaded-virtual; do |
66170b30 | 20316 | haveit= |
c10a2228 | 20317 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
20318 | |
20319 | acl_save_prefix="$prefix" | |
20320 | prefix="$acl_final_prefix" | |
20321 | acl_save_exec_prefix="$exec_prefix" | |
20322 | exec_prefix="$acl_final_exec_prefix" | |
20323 | eval x=\"$x\" | |
20324 | exec_prefix="$acl_save_exec_prefix" | |
20325 | prefix="$acl_save_prefix" | |
20326 | ||
20327 | if test "X$x" = "X$element"; then | |
20328 | haveit=yes | |
20329 | break | |
20330 | fi | |
20331 | done | |
20332 | if test -z "$haveit"; then | |
c10a2228 | 20333 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
20334 | fi |
20335 | done | |
20336 | ||
20337 | ||
20338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20339 | /* end confdefs.h. */ | |
1504c9b8 | 20340 | |
1504c9b8 | 20341 | _ACEOF |
c10a2228 | 20342 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
20343 | cy_good=1 |
20344 | else | |
20345 | cy_good=0 | |
20346 | fi | |
20347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20348 | ||
c10a2228 | 20349 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
20350 | if test "x$cy_good" = x1; then : |
20351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20352 | $as_echo "yes" >&6; } | |
1504c9b8 | 20353 | |
babf7fe8 | 20354 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 20355 | haveit= |
c10a2228 | 20356 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20357 | |
20358 | acl_save_prefix="$prefix" | |
20359 | prefix="$acl_final_prefix" | |
20360 | acl_save_exec_prefix="$exec_prefix" | |
20361 | exec_prefix="$acl_final_exec_prefix" | |
20362 | eval x=\"$x\" | |
20363 | exec_prefix="$acl_save_exec_prefix" | |
20364 | prefix="$acl_save_prefix" | |
20365 | ||
20366 | if test "X$x" = "X$element"; then | |
20367 | haveit=yes | |
20368 | break | |
20369 | fi | |
20370 | done | |
20371 | if test -z "$haveit"; then | |
c10a2228 | 20372 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20373 | fi |
20374 | done | |
20375 | ||
20376 | ||
c10a2228 JF |
20377 | else |
20378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20379 | $as_echo "no" >&6; } | |
20380 | fi | |
20381 | ||
20382 | ac_ext=cpp | |
20383 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20384 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20385 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20386 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20387 | ||
20388 | ||
20389 | ||
20390 | ||
20391 | ||
20392 | ac_ext=c | |
20393 | ac_cpp='$CPP $CPPFLAGS' | |
20394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20397 | ||
babf7fe8 JF |
20398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
20399 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
20400 | |
20401 | cy_save=$CFLAGS | |
20402 | ||
babf7fe8 | 20403 | for element in -Wno-parentheses; do |
66170b30 | 20404 | haveit= |
c10a2228 | 20405 | for x in $CFLAGS; do |
66170b30 JF |
20406 | |
20407 | acl_save_prefix="$prefix" | |
20408 | prefix="$acl_final_prefix" | |
20409 | acl_save_exec_prefix="$exec_prefix" | |
20410 | exec_prefix="$acl_final_exec_prefix" | |
20411 | eval x=\"$x\" | |
20412 | exec_prefix="$acl_save_exec_prefix" | |
20413 | prefix="$acl_save_prefix" | |
20414 | ||
20415 | if test "X$x" = "X$element"; then | |
20416 | haveit=yes | |
20417 | break | |
20418 | fi | |
20419 | done | |
20420 | if test -z "$haveit"; then | |
c10a2228 | 20421 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
20422 | fi |
20423 | done | |
20424 | ||
20425 | ||
c10a2228 JF |
20426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20427 | /* end confdefs.h. */ | |
20428 | ||
20429 | _ACEOF | |
20430 | if ac_fn_c_try_compile "$LINENO"; then : | |
20431 | cy_good=1 | |
20432 | else | |
20433 | cy_good=0 | |
20434 | fi | |
20435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20436 | ||
20437 | CFLAGS=$cy_save | |
20438 | if test "x$cy_good" = x1; then : | |
20439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20440 | $as_echo "yes" >&6; } | |
20441 | ||
babf7fe8 | 20442 | for element in -Wno-parentheses; do |
66170b30 | 20443 | haveit= |
c10a2228 | 20444 | for x in $CFLAGS; do |
66170b30 JF |
20445 | |
20446 | acl_save_prefix="$prefix" | |
20447 | prefix="$acl_final_prefix" | |
20448 | acl_save_exec_prefix="$exec_prefix" | |
20449 | exec_prefix="$acl_final_exec_prefix" | |
20450 | eval x=\"$x\" | |
20451 | exec_prefix="$acl_save_exec_prefix" | |
20452 | prefix="$acl_save_prefix" | |
20453 | ||
20454 | if test "X$x" = "X$element"; then | |
20455 | haveit=yes | |
20456 | break | |
20457 | fi | |
20458 | done | |
20459 | if test -z "$haveit"; then | |
c10a2228 | 20460 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
20461 | fi |
20462 | done | |
20463 | ||
20464 | ||
66170b30 JF |
20465 | else |
20466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20467 | $as_echo "no" >&6; } | |
20468 | fi | |
20469 | ||
c10a2228 JF |
20470 | ac_ext=cpp |
20471 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20472 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20473 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20474 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20475 | ||
66170b30 JF |
20476 | |
20477 | ||
c10a2228 JF |
20478 | ac_ext=cpp |
20479 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20483 | ||
babf7fe8 JF |
20484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
20485 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
20486 | |
20487 | cy_save=$CXXFLAGS | |
20488 | ||
babf7fe8 | 20489 | for element in -Wno-parentheses; do |
66170b30 JF |
20490 | haveit= |
20491 | for x in $CXXFLAGS; do | |
20492 | ||
20493 | acl_save_prefix="$prefix" | |
20494 | prefix="$acl_final_prefix" | |
20495 | acl_save_exec_prefix="$exec_prefix" | |
20496 | exec_prefix="$acl_final_exec_prefix" | |
20497 | eval x=\"$x\" | |
20498 | exec_prefix="$acl_save_exec_prefix" | |
20499 | prefix="$acl_save_prefix" | |
20500 | ||
20501 | if test "X$x" = "X$element"; then | |
20502 | haveit=yes | |
20503 | break | |
20504 | fi | |
20505 | done | |
20506 | if test -z "$haveit"; then | |
20507 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20508 | fi | |
20509 | done | |
20510 | ||
20511 | ||
20512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20513 | /* end confdefs.h. */ | |
20514 | ||
20515 | _ACEOF | |
20516 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20517 | cy_good=1 | |
20518 | else | |
20519 | cy_good=0 | |
20520 | fi | |
20521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20522 | ||
20523 | CXXFLAGS=$cy_save | |
20524 | if test "x$cy_good" = x1; then : | |
20525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20526 | $as_echo "yes" >&6; } | |
20527 | ||
babf7fe8 | 20528 | for element in -Wno-parentheses; do |
1504c9b8 | 20529 | haveit= |
c10a2228 | 20530 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
20531 | |
20532 | acl_save_prefix="$prefix" | |
20533 | prefix="$acl_final_prefix" | |
20534 | acl_save_exec_prefix="$exec_prefix" | |
20535 | exec_prefix="$acl_final_exec_prefix" | |
20536 | eval x=\"$x\" | |
20537 | exec_prefix="$acl_save_exec_prefix" | |
20538 | prefix="$acl_save_prefix" | |
20539 | ||
20540 | if test "X$x" = "X$element"; then | |
20541 | haveit=yes | |
20542 | break | |
20543 | fi | |
20544 | done | |
20545 | if test -z "$haveit"; then | |
c10a2228 | 20546 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
20547 | fi |
20548 | done | |
20549 | ||
20550 | ||
c10a2228 JF |
20551 | else |
20552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20553 | $as_echo "no" >&6; } | |
20554 | fi | |
20555 | ||
20556 | ac_ext=cpp | |
20557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20561 | ||
20562 | ||
20563 | ||
20564 | ac_ext=mm | |
20565 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20566 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20567 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20568 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20569 | ||
babf7fe8 JF |
20570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
20571 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
20572 | |
20573 | cy_save=$OBJCXXFLAGS | |
20574 | ||
babf7fe8 | 20575 | for element in -Wno-parentheses; do |
1504c9b8 | 20576 | haveit= |
c10a2228 | 20577 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20578 | |
20579 | acl_save_prefix="$prefix" | |
20580 | prefix="$acl_final_prefix" | |
20581 | acl_save_exec_prefix="$exec_prefix" | |
20582 | exec_prefix="$acl_final_exec_prefix" | |
20583 | eval x=\"$x\" | |
20584 | exec_prefix="$acl_save_exec_prefix" | |
20585 | prefix="$acl_save_prefix" | |
20586 | ||
20587 | if test "X$x" = "X$element"; then | |
20588 | haveit=yes | |
20589 | break | |
20590 | fi | |
20591 | done | |
20592 | if test -z "$haveit"; then | |
c10a2228 | 20593 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20594 | fi |
20595 | done | |
20596 | ||
20597 | ||
c10a2228 JF |
20598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20599 | /* end confdefs.h. */ | |
20600 | ||
20601 | _ACEOF | |
20602 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20603 | cy_good=1 | |
20604 | else | |
20605 | cy_good=0 | |
20606 | fi | |
20607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20608 | ||
20609 | OBJCXXFLAGS=$cy_save | |
20610 | if test "x$cy_good" = x1; then : | |
20611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20612 | $as_echo "yes" >&6; } | |
20613 | ||
babf7fe8 | 20614 | for element in -Wno-parentheses; do |
1504c9b8 | 20615 | haveit= |
c10a2228 | 20616 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20617 | |
20618 | acl_save_prefix="$prefix" | |
20619 | prefix="$acl_final_prefix" | |
20620 | acl_save_exec_prefix="$exec_prefix" | |
2ada0541 JF |
20621 | exec_prefix="$acl_final_exec_prefix" |
20622 | eval x=\"$x\" | |
20623 | exec_prefix="$acl_save_exec_prefix" | |
20624 | prefix="$acl_save_prefix" | |
20625 | ||
20626 | if test "X$x" = "X$element"; then | |
20627 | haveit=yes | |
20628 | break | |
20629 | fi | |
20630 | done | |
20631 | if test -z "$haveit"; then | |
20632 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20633 | fi | |
20634 | done | |
20635 | ||
20636 | ||
20637 | else | |
20638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20639 | $as_echo "no" >&6; } | |
20640 | fi | |
20641 | ||
20642 | ac_ext=cpp | |
20643 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20644 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20645 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20646 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20647 | ||
20648 | ||
20649 | ||
20650 | ||
20651 | ||
20652 | ac_ext=c | |
20653 | ac_cpp='$CPP $CPPFLAGS' | |
20654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20657 | ||
20658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5 | |
20659 | $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; } | |
20660 | ||
20661 | cy_save=$CFLAGS | |
20662 | ||
20663 | for element in -Wno-tautological-undefined-compare; do | |
20664 | haveit= | |
20665 | for x in $CFLAGS; do | |
20666 | ||
20667 | acl_save_prefix="$prefix" | |
20668 | prefix="$acl_final_prefix" | |
20669 | acl_save_exec_prefix="$exec_prefix" | |
20670 | exec_prefix="$acl_final_exec_prefix" | |
20671 | eval x=\"$x\" | |
20672 | exec_prefix="$acl_save_exec_prefix" | |
20673 | prefix="$acl_save_prefix" | |
20674 | ||
20675 | if test "X$x" = "X$element"; then | |
20676 | haveit=yes | |
20677 | break | |
20678 | fi | |
20679 | done | |
20680 | if test -z "$haveit"; then | |
20681 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20682 | fi | |
20683 | done | |
20684 | ||
20685 | ||
20686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20687 | /* end confdefs.h. */ | |
20688 | ||
20689 | _ACEOF | |
20690 | if ac_fn_c_try_compile "$LINENO"; then : | |
20691 | cy_good=1 | |
20692 | else | |
20693 | cy_good=0 | |
20694 | fi | |
20695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20696 | ||
20697 | CFLAGS=$cy_save | |
20698 | if test "x$cy_good" = x1; then : | |
20699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20700 | $as_echo "yes" >&6; } | |
20701 | ||
20702 | for element in -Wno-tautological-undefined-compare; do | |
20703 | haveit= | |
20704 | for x in $CFLAGS; do | |
20705 | ||
20706 | acl_save_prefix="$prefix" | |
20707 | prefix="$acl_final_prefix" | |
20708 | acl_save_exec_prefix="$exec_prefix" | |
20709 | exec_prefix="$acl_final_exec_prefix" | |
20710 | eval x=\"$x\" | |
20711 | exec_prefix="$acl_save_exec_prefix" | |
20712 | prefix="$acl_save_prefix" | |
20713 | ||
20714 | if test "X$x" = "X$element"; then | |
20715 | haveit=yes | |
20716 | break | |
20717 | fi | |
20718 | done | |
20719 | if test -z "$haveit"; then | |
20720 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20721 | fi | |
20722 | done | |
20723 | ||
20724 | ||
20725 | else | |
20726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20727 | $as_echo "no" >&6; } | |
20728 | fi | |
20729 | ||
20730 | ac_ext=cpp | |
20731 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20732 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20733 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20734 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20735 | ||
20736 | ||
20737 | ||
20738 | ac_ext=cpp | |
20739 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20743 | ||
20744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5 | |
20745 | $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; } | |
20746 | ||
20747 | cy_save=$CXXFLAGS | |
20748 | ||
20749 | for element in -Wno-tautological-undefined-compare; do | |
20750 | haveit= | |
20751 | for x in $CXXFLAGS; do | |
20752 | ||
20753 | acl_save_prefix="$prefix" | |
20754 | prefix="$acl_final_prefix" | |
20755 | acl_save_exec_prefix="$exec_prefix" | |
20756 | exec_prefix="$acl_final_exec_prefix" | |
20757 | eval x=\"$x\" | |
20758 | exec_prefix="$acl_save_exec_prefix" | |
20759 | prefix="$acl_save_prefix" | |
20760 | ||
20761 | if test "X$x" = "X$element"; then | |
20762 | haveit=yes | |
20763 | break | |
20764 | fi | |
20765 | done | |
20766 | if test -z "$haveit"; then | |
20767 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20768 | fi | |
20769 | done | |
20770 | ||
20771 | ||
20772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20773 | /* end confdefs.h. */ | |
20774 | ||
20775 | _ACEOF | |
20776 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20777 | cy_good=1 | |
20778 | else | |
20779 | cy_good=0 | |
20780 | fi | |
20781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20782 | ||
20783 | CXXFLAGS=$cy_save | |
20784 | if test "x$cy_good" = x1; then : | |
20785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20786 | $as_echo "yes" >&6; } | |
20787 | ||
20788 | for element in -Wno-tautological-undefined-compare; do | |
20789 | haveit= | |
20790 | for x in $CXXFLAGS; do | |
20791 | ||
20792 | acl_save_prefix="$prefix" | |
20793 | prefix="$acl_final_prefix" | |
20794 | acl_save_exec_prefix="$exec_prefix" | |
20795 | exec_prefix="$acl_final_exec_prefix" | |
20796 | eval x=\"$x\" | |
20797 | exec_prefix="$acl_save_exec_prefix" | |
20798 | prefix="$acl_save_prefix" | |
20799 | ||
20800 | if test "X$x" = "X$element"; then | |
20801 | haveit=yes | |
20802 | break | |
20803 | fi | |
20804 | done | |
20805 | if test -z "$haveit"; then | |
20806 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20807 | fi | |
20808 | done | |
20809 | ||
20810 | ||
20811 | else | |
20812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20813 | $as_echo "no" >&6; } | |
20814 | fi | |
20815 | ||
20816 | ac_ext=cpp | |
20817 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20818 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20819 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20820 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20821 | ||
20822 | ||
20823 | ||
20824 | ac_ext=mm | |
20825 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20826 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20827 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20828 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20829 | ||
20830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5 | |
20831 | $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; } | |
20832 | ||
20833 | cy_save=$OBJCXXFLAGS | |
20834 | ||
20835 | for element in -Wno-tautological-undefined-compare; do | |
20836 | haveit= | |
20837 | for x in $OBJCXXFLAGS; do | |
20838 | ||
20839 | acl_save_prefix="$prefix" | |
20840 | prefix="$acl_final_prefix" | |
20841 | acl_save_exec_prefix="$exec_prefix" | |
20842 | exec_prefix="$acl_final_exec_prefix" | |
20843 | eval x=\"$x\" | |
20844 | exec_prefix="$acl_save_exec_prefix" | |
20845 | prefix="$acl_save_prefix" | |
20846 | ||
20847 | if test "X$x" = "X$element"; then | |
20848 | haveit=yes | |
20849 | break | |
20850 | fi | |
20851 | done | |
20852 | if test -z "$haveit"; then | |
20853 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20854 | fi | |
20855 | done | |
20856 | ||
20857 | ||
20858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20859 | /* end confdefs.h. */ | |
20860 | ||
20861 | _ACEOF | |
20862 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20863 | cy_good=1 | |
20864 | else | |
20865 | cy_good=0 | |
20866 | fi | |
20867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20868 | ||
20869 | OBJCXXFLAGS=$cy_save | |
20870 | if test "x$cy_good" = x1; then : | |
20871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20872 | $as_echo "yes" >&6; } | |
20873 | ||
20874 | for element in -Wno-tautological-undefined-compare; do | |
20875 | haveit= | |
20876 | for x in $OBJCXXFLAGS; do | |
20877 | ||
20878 | acl_save_prefix="$prefix" | |
20879 | prefix="$acl_final_prefix" | |
20880 | acl_save_exec_prefix="$exec_prefix" | |
1504c9b8 DWT |
20881 | exec_prefix="$acl_final_exec_prefix" |
20882 | eval x=\"$x\" | |
20883 | exec_prefix="$acl_save_exec_prefix" | |
20884 | prefix="$acl_save_prefix" | |
20885 | ||
20886 | if test "X$x" = "X$element"; then | |
20887 | haveit=yes | |
20888 | break | |
20889 | fi | |
20890 | done | |
20891 | if test -z "$haveit"; then | |
c10a2228 | 20892 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20893 | fi |
20894 | done | |
20895 | ||
20896 | ||
66170b30 JF |
20897 | else |
20898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20899 | $as_echo "no" >&6; } | |
1504c9b8 | 20900 | fi |
1504c9b8 | 20901 | |
c10a2228 JF |
20902 | ac_ext=cpp |
20903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20907 | ||
20908 | ||
1504c9b8 | 20909 | |
1504c9b8 | 20910 | |
1504c9b8 | 20911 | |
babf7fe8 JF |
20912 | ac_ext=c |
20913 | ac_cpp='$CPP $CPPFLAGS' | |
20914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 20917 | |
babf7fe8 JF |
20918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
20919 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
20920 | ||
20921 | cy_save=$CFLAGS | |
20922 | ||
20923 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 20924 | haveit= |
babf7fe8 | 20925 | for x in $CFLAGS; do |
1504c9b8 DWT |
20926 | |
20927 | acl_save_prefix="$prefix" | |
20928 | prefix="$acl_final_prefix" | |
20929 | acl_save_exec_prefix="$exec_prefix" | |
20930 | exec_prefix="$acl_final_exec_prefix" | |
20931 | eval x=\"$x\" | |
20932 | exec_prefix="$acl_save_exec_prefix" | |
20933 | prefix="$acl_save_prefix" | |
20934 | ||
20935 | if test "X$x" = "X$element"; then | |
20936 | haveit=yes | |
20937 | break | |
20938 | fi | |
20939 | done | |
20940 | if test -z "$haveit"; then | |
babf7fe8 | 20941 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20942 | fi |
20943 | done | |
20944 | ||
66170b30 JF |
20945 | |
20946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
20947 | /* end confdefs.h. */ |
20948 | ||
a243b558 | 20949 | _ACEOF |
babf7fe8 | 20950 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
20951 | cy_good=1 |
20952 | else | |
20953 | cy_good=0 | |
20954 | fi | |
babf7fe8 | 20955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 20956 | |
babf7fe8 | 20957 | CFLAGS=$cy_save |
a243b558 JF |
20958 | if test "x$cy_good" = x1; then : |
20959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20960 | $as_echo "yes" >&6; } | |
66170b30 | 20961 | |
babf7fe8 | 20962 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 20963 | haveit= |
babf7fe8 | 20964 | for x in $CFLAGS; do |
1504c9b8 DWT |
20965 | |
20966 | acl_save_prefix="$prefix" | |
20967 | prefix="$acl_final_prefix" | |
20968 | acl_save_exec_prefix="$exec_prefix" | |
20969 | exec_prefix="$acl_final_exec_prefix" | |
20970 | eval x=\"$x\" | |
20971 | exec_prefix="$acl_save_exec_prefix" | |
20972 | prefix="$acl_save_prefix" | |
20973 | ||
20974 | if test "X$x" = "X$element"; then | |
20975 | haveit=yes | |
20976 | break | |
20977 | fi | |
20978 | done | |
20979 | if test -z "$haveit"; then | |
babf7fe8 | 20980 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20981 | fi |
20982 | done | |
20983 | ||
20984 | ||
20985 | else | |
66170b30 JF |
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20987 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
20988 | fi |
20989 | ||
babf7fe8 JF |
20990 | ac_ext=cpp |
20991 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20992 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20993 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20994 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 20995 | |
9c60689e | 20996 | |
632b71ea | 20997 | |
babf7fe8 JF |
20998 | ac_ext=cpp |
20999 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21000 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21001 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21002 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 21003 | |
babf7fe8 JF |
21004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
21005 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 21006 | |
babf7fe8 | 21007 | cy_save=$CXXFLAGS |
9c60689e | 21008 | |
babf7fe8 JF |
21009 | for element in -Wno-unneeded-internal-declaration; do |
21010 | haveit= | |
21011 | for x in $CXXFLAGS; do | |
9c60689e | 21012 | |
babf7fe8 JF |
21013 | acl_save_prefix="$prefix" |
21014 | prefix="$acl_final_prefix" | |
21015 | acl_save_exec_prefix="$exec_prefix" | |
21016 | exec_prefix="$acl_final_exec_prefix" | |
21017 | eval x=\"$x\" | |
21018 | exec_prefix="$acl_save_exec_prefix" | |
21019 | prefix="$acl_save_prefix" | |
66170b30 | 21020 | |
babf7fe8 JF |
21021 | if test "X$x" = "X$element"; then |
21022 | haveit=yes | |
21023 | break | |
21024 | fi | |
21025 | done | |
21026 | if test -z "$haveit"; then | |
21027 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
21028 | fi | |
21029 | done | |
7eda51e0 | 21030 | |
7eda51e0 | 21031 | |
babf7fe8 JF |
21032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21033 | /* end confdefs.h. */ | |
7eda51e0 | 21034 | |
7eda51e0 | 21035 | _ACEOF |
babf7fe8 JF |
21036 | if ac_fn_cxx_try_compile "$LINENO"; then : |
21037 | cy_good=1 | |
9c60689e | 21038 | else |
babf7fe8 | 21039 | cy_good=0 |
9c60689e | 21040 | fi |
babf7fe8 | 21041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 21042 | |
babf7fe8 JF |
21043 | CXXFLAGS=$cy_save |
21044 | if test "x$cy_good" = x1; then : | |
21045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21046 | $as_echo "yes" >&6; } | |
7eda51e0 | 21047 | |
babf7fe8 | 21048 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 21049 | haveit= |
babf7fe8 | 21050 | for x in $CXXFLAGS; do |
9c60689e | 21051 | |
7eda51e0 JF |
21052 | acl_save_prefix="$prefix" |
21053 | prefix="$acl_final_prefix" | |
21054 | acl_save_exec_prefix="$exec_prefix" | |
21055 | exec_prefix="$acl_final_exec_prefix" | |
21056 | eval x=\"$x\" | |
21057 | exec_prefix="$acl_save_exec_prefix" | |
21058 | prefix="$acl_save_prefix" | |
9c60689e | 21059 | |
7eda51e0 JF |
21060 | if test "X$x" = "X$element"; then |
21061 | haveit=yes | |
21062 | break | |
21063 | fi | |
21064 | done | |
21065 | if test -z "$haveit"; then | |
babf7fe8 | 21066 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
21067 | fi |
21068 | done | |
9c60689e | 21069 | |
9c60689e | 21070 | |
5053a6d1 | 21071 | else |
babf7fe8 JF |
21072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21073 | $as_echo "no" >&6; } | |
632b71ea DWT |
21074 | fi |
21075 | ||
babf7fe8 JF |
21076 | ac_ext=cpp |
21077 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21078 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21079 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21080 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
21081 | |
21082 | ||
5053a6d1 | 21083 | |
babf7fe8 JF |
21084 | ac_ext=mm |
21085 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
21086 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21087 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21088 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 21089 | |
babf7fe8 JF |
21090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
21091 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 21092 | |
babf7fe8 | 21093 | cy_save=$OBJCXXFLAGS |
632b71ea | 21094 | |
babf7fe8 | 21095 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 21096 | haveit= |
babf7fe8 | 21097 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
21098 | |
21099 | acl_save_prefix="$prefix" | |
21100 | prefix="$acl_final_prefix" | |
21101 | acl_save_exec_prefix="$exec_prefix" | |
21102 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 21103 | eval x=\"$x\" |
632b71ea DWT |
21104 | exec_prefix="$acl_save_exec_prefix" |
21105 | prefix="$acl_save_prefix" | |
21106 | ||
5053a6d1 DWT |
21107 | if test "X$x" = "X$element"; then |
21108 | haveit=yes | |
21109 | break | |
21110 | fi | |
21111 | done | |
21112 | if test -z "$haveit"; then | |
babf7fe8 | 21113 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
21114 | fi |
21115 | done | |
21116 | ||
66170b30 | 21117 | |
babf7fe8 JF |
21118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21119 | /* end confdefs.h. */ | |
21120 | ||
21121 | _ACEOF | |
21122 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
21123 | cy_good=1 | |
21124 | else | |
21125 | cy_good=0 | |
21126 | fi | |
21127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21128 | ||
21129 | OBJCXXFLAGS=$cy_save | |
21130 | if test "x$cy_good" = x1; then : | |
21131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21132 | $as_echo "yes" >&6; } | |
21133 | ||
21134 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 21135 | haveit= |
babf7fe8 | 21136 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
21137 | |
21138 | acl_save_prefix="$prefix" | |
21139 | prefix="$acl_final_prefix" | |
21140 | acl_save_exec_prefix="$exec_prefix" | |
21141 | exec_prefix="$acl_final_exec_prefix" | |
21142 | eval x=\"$x\" | |
21143 | exec_prefix="$acl_save_exec_prefix" | |
21144 | prefix="$acl_save_prefix" | |
21145 | ||
21146 | if test "X$x" = "X$element"; then | |
21147 | haveit=yes | |
21148 | break | |
21149 | fi | |
21150 | done | |
21151 | if test -z "$haveit"; then | |
babf7fe8 | 21152 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
21153 | fi |
21154 | done | |
66170b30 JF |
21155 | |
21156 | ||
babf7fe8 JF |
21157 | else |
21158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21159 | $as_echo "no" >&6; } | |
5053a6d1 | 21160 | fi |
7eda51e0 | 21161 | |
babf7fe8 JF |
21162 | ac_ext=cpp |
21163 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 21167 | |
5053a6d1 DWT |
21168 | |
21169 | ||
5053a6d1 | 21170 | |
babf7fe8 JF |
21171 | |
21172 | ||
2ca4dab3 | 21173 | |
be2fde87 JF |
21174 | ac_ext=c |
21175 | ac_cpp='$CPP $CPPFLAGS' | |
21176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21179 | ||
21180 | ax_pthread_ok=no | |
21181 | ||
21182 | # We used to check for pthread.h first, but this fails if pthread.h | |
2ca4dab3 | 21183 | # requires special compiler flags (e.g. on Tru64 or Sequent). |
be2fde87 JF |
21184 | # It gets checked for in the link test anyway. |
21185 | ||
21186 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
21187 | # etcetera environment variables, and if threads linking works using | |
21188 | # them: | |
21189 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
21190 | save_CFLAGS="$CFLAGS" | |
21191 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21192 | save_LIBS="$LIBS" | |
21193 | LIBS="$PTHREAD_LIBS $LIBS" | |
2ca4dab3 JF |
21194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
21195 | $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
be2fde87 JF |
21196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21197 | /* end confdefs.h. */ | |
21198 | ||
21199 | /* Override any GCC internal prototype to avoid an error. | |
21200 | Use char because int might match the return type of a GCC | |
21201 | builtin and then its argument prototype would still apply. */ | |
21202 | #ifdef __cplusplus | |
21203 | extern "C" | |
21204 | #endif | |
21205 | char pthread_join (); | |
21206 | int | |
21207 | main () | |
21208 | { | |
21209 | return pthread_join (); | |
21210 | ; | |
21211 | return 0; | |
21212 | } | |
21213 | _ACEOF | |
21214 | if ac_fn_c_try_link "$LINENO"; then : | |
21215 | ax_pthread_ok=yes | |
21216 | fi | |
21217 | rm -f core conftest.err conftest.$ac_objext \ | |
21218 | conftest$ac_exeext conftest.$ac_ext | |
21219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
21220 | $as_echo "$ax_pthread_ok" >&6; } | |
21221 | if test x"$ax_pthread_ok" = xno; then | |
21222 | PTHREAD_LIBS="" | |
21223 | PTHREAD_CFLAGS="" | |
21224 | fi | |
21225 | LIBS="$save_LIBS" | |
21226 | CFLAGS="$save_CFLAGS" | |
21227 | fi | |
21228 | ||
21229 | # We must check for the threads library under a number of different | |
21230 | # names; the ordering is very important because some systems | |
21231 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
21232 | # libraries is broken (non-POSIX). | |
21233 | ||
21234 | # Create a list of thread flags to try. Items starting with a "-" are | |
21235 | # C compiler flags, and other items are library names, except for "none" | |
21236 | # which indicates that we try without any flags at all, and "pthread-config" | |
21237 | # which is a program returning the flags for the Pth emulation library. | |
21238 | ||
2ca4dab3 | 21239 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" |
be2fde87 JF |
21240 | |
21241 | # The ordering *is* (sometimes) important. Some notes on the | |
21242 | # individual items follow: | |
21243 | ||
21244 | # pthreads: AIX (must check this before -lpthread) | |
21245 | # none: in case threads are in libc; should be tried before -Kthread and | |
21246 | # other compiler flags to prevent continual compiler warnings | |
21247 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
21248 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
21249 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
2ca4dab3 | 21250 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
be2fde87 | 21251 | # -pthreads: Solaris/gcc |
be2fde87 | 21252 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
2ca4dab3 JF |
21253 | # doesn't hurt to check since this sometimes defines pthreads and |
21254 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
21255 | # is present but should not be used directly) | |
21256 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
be2fde87 JF |
21257 | # pthread: Linux, etcetera |
21258 | # --thread-safe: KAI C++ | |
21259 | # pthread-config: use pthread-config program (for GNU Pth library) | |
21260 | ||
2ca4dab3 JF |
21261 | case $host_os in |
21262 | ||
21263 | hpux*) | |
21264 | ||
21265 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable | |
21266 | # multi-threading and also sets -lpthread." | |
21267 | ||
21268 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" | |
21269 | ;; | |
21270 | ||
21271 | openedition*) | |
21272 | ||
21273 | # IBM z/OS requires a feature-test macro to be defined in order to | |
21274 | # enable POSIX threads at all, so give the user a hint if this is | |
21275 | # not set. (We don't define these ourselves, as they can affect | |
21276 | # other portions of the system API in unpredictable ways.) | |
21277 | ||
21278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21279 | /* end confdefs.h. */ | |
21280 | ||
21281 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
21282 | AX_PTHREAD_ZOS_MISSING | |
21283 | # endif | |
21284 | ||
21285 | _ACEOF | |
21286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21287 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : | |
21288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
21289 | $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
21290 | fi | |
21291 | rm -f conftest* | |
21292 | ||
21293 | ;; | |
21294 | ||
be2fde87 JF |
21295 | solaris*) |
21296 | ||
2ca4dab3 JF |
21297 | # Newer versions of Solaris require the "-mt -lpthread" pair, and we |
21298 | # check that first. On some older versions, libc contains stubbed | |
be2fde87 JF |
21299 | # (non-functional) versions of the pthreads routines, so link-based |
21300 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
21301 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
21302 | # a function called by this macro, so we could check for that, but | |
2ca4dab3 JF |
21303 | # who knows whether they'll stub that too in a future libc.) So |
21304 | # we'll look for -pthreads and -lpthread shortly thereafter. | |
be2fde87 | 21305 | |
2ca4dab3 | 21306 | ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags" |
be2fde87 JF |
21307 | ;; |
21308 | esac | |
21309 | ||
2ca4dab3 JF |
21310 | # Older versions of Clang only give a warning instead of an error for an |
21311 | # unrecognized option, unless we specify -Werror. (We throw in some extra | |
21312 | # Clang warning flags for good measure.) | |
be2fde87 | 21313 | |
2ca4dab3 JF |
21314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5 |
21315 | $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; } | |
21316 | if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then : | |
21317 | $as_echo_n "(cached) " >&6 | |
21318 | else | |
21319 | ax_cv_PTHREAD_REJECT_UNKNOWN=unknown | |
21320 | save_CFLAGS="$CFLAGS" | |
21321 | ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument" | |
21322 | CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz" | |
21323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
21324 | /* end confdefs.h. */ |
21325 | int foo(void); | |
21326 | int | |
21327 | main () | |
21328 | { | |
21329 | foo() | |
21330 | ; | |
21331 | return 0; | |
21332 | } | |
21333 | _ACEOF | |
21334 | if ac_fn_c_try_compile "$LINENO"; then : | |
2ca4dab3 | 21335 | ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags" |
be2fde87 | 21336 | else |
2ca4dab3 | 21337 | ax_cv_PTHREAD_REJECT_UNKNOWN=no |
be2fde87 JF |
21338 | fi |
21339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ca4dab3 JF |
21340 | CFLAGS="$save_CFLAGS" |
21341 | ||
21342 | fi | |
21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5 | |
21344 | $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; } | |
21345 | ax_pthread_extra_flags= | |
21346 | if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then : | |
21347 | ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN" | |
21348 | fi | |
be2fde87 JF |
21349 | |
21350 | if test x"$ax_pthread_ok" = xno; then | |
21351 | for flag in $ax_pthread_flags; do | |
21352 | ||
21353 | case $flag in | |
21354 | none) | |
21355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
21356 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
21357 | ;; | |
21358 | ||
2ca4dab3 JF |
21359 | -mt,pthread) |
21360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 | |
21361 | $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } | |
21362 | PTHREAD_CFLAGS="-mt" | |
21363 | PTHREAD_LIBS="-lpthread" | |
21364 | ;; | |
21365 | ||
be2fde87 JF |
21366 | -*) |
21367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
21368 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
21369 | PTHREAD_CFLAGS="$flag" | |
21370 | ;; | |
21371 | ||
21372 | pthread-config) | |
21373 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
21374 | set dummy pthread-config; ac_word=$2 | |
21375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21376 | $as_echo_n "checking for $ac_word... " >&6; } | |
21377 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | |
21378 | $as_echo_n "(cached) " >&6 | |
21379 | else | |
21380 | if test -n "$ax_pthread_config"; then | |
21381 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
21382 | else | |
21383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21384 | for as_dir in $PATH | |
21385 | do | |
21386 | IFS=$as_save_IFS | |
21387 | test -z "$as_dir" && as_dir=. | |
21388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21390 | ac_cv_prog_ax_pthread_config="yes" | |
21391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21392 | break 2 | |
21393 | fi | |
21394 | done | |
21395 | done | |
21396 | IFS=$as_save_IFS | |
21397 | ||
21398 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
21399 | fi | |
21400 | fi | |
21401 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
21402 | if test -n "$ax_pthread_config"; then | |
21403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | |
21404 | $as_echo "$ax_pthread_config" >&6; } | |
21405 | else | |
21406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21407 | $as_echo "no" >&6; } | |
21408 | fi | |
21409 | ||
21410 | ||
21411 | if test x"$ax_pthread_config" = xno; then continue; fi | |
21412 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
21413 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
21414 | ;; | |
21415 | ||
21416 | *) | |
21417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
21418 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
21419 | PTHREAD_LIBS="-l$flag" | |
21420 | ;; | |
21421 | esac | |
21422 | ||
21423 | save_LIBS="$LIBS" | |
21424 | save_CFLAGS="$CFLAGS" | |
21425 | LIBS="$PTHREAD_LIBS $LIBS" | |
21426 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" | |
21427 | ||
21428 | # Check for various functions. We must include pthread.h, | |
21429 | # since some functions may be macros. (On the Sequent, we | |
21430 | # need a special flag -Kthread to make this header compile.) | |
21431 | # We check for pthread_join because it is in -lpthread on IRIX | |
21432 | # while pthread_create is in libc. We check for pthread_attr_init | |
21433 | # due to DEC craziness with -lpthreads. We check for | |
21434 | # pthread_cleanup_push because it is one of the few pthread | |
21435 | # functions on Solaris that doesn't have a non-functional libc stub. | |
21436 | # We try pthread_create on general principles. | |
21437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21438 | /* end confdefs.h. */ | |
21439 | #include <pthread.h> | |
21440 | static void routine(void *a) { a = 0; } | |
21441 | static void *start_routine(void *a) { return a; } | |
21442 | int | |
21443 | main () | |
21444 | { | |
21445 | pthread_t th; pthread_attr_t attr; | |
21446 | pthread_create(&th, 0, start_routine, 0); | |
21447 | pthread_join(th, 0); | |
21448 | pthread_attr_init(&attr); | |
21449 | pthread_cleanup_push(routine, 0); | |
21450 | pthread_cleanup_pop(0) /* ; */ | |
21451 | ; | |
21452 | return 0; | |
21453 | } | |
21454 | _ACEOF | |
21455 | if ac_fn_c_try_link "$LINENO"; then : | |
21456 | ax_pthread_ok=yes | |
21457 | fi | |
21458 | rm -f core conftest.err conftest.$ac_objext \ | |
21459 | conftest$ac_exeext conftest.$ac_ext | |
21460 | ||
21461 | LIBS="$save_LIBS" | |
21462 | CFLAGS="$save_CFLAGS" | |
21463 | ||
21464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
21465 | $as_echo "$ax_pthread_ok" >&6; } | |
21466 | if test "x$ax_pthread_ok" = xyes; then | |
21467 | break; | |
21468 | fi | |
21469 | ||
21470 | PTHREAD_LIBS="" | |
21471 | PTHREAD_CFLAGS="" | |
21472 | done | |
21473 | fi | |
21474 | ||
21475 | # Various other checks: | |
21476 | if test "x$ax_pthread_ok" = xyes; then | |
21477 | save_LIBS="$LIBS" | |
21478 | LIBS="$PTHREAD_LIBS $LIBS" | |
21479 | save_CFLAGS="$CFLAGS" | |
21480 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21481 | ||
21482 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
21483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
21484 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
2ca4dab3 JF |
21485 | if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : |
21486 | $as_echo_n "(cached) " >&6 | |
21487 | else | |
21488 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown | |
21489 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
21490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
21491 | /* end confdefs.h. */ |
21492 | #include <pthread.h> | |
21493 | int | |
21494 | main () | |
21495 | { | |
21496 | int attr = $attr; return attr /* ; */ | |
21497 | ; | |
21498 | return 0; | |
21499 | } | |
21500 | _ACEOF | |
21501 | if ac_fn_c_try_link "$LINENO"; then : | |
2ca4dab3 | 21502 | ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break |
be2fde87 JF |
21503 | fi |
21504 | rm -f core conftest.err conftest.$ac_objext \ | |
21505 | conftest$ac_exeext conftest.$ac_ext | |
2ca4dab3 JF |
21506 | done |
21507 | ||
21508 | fi | |
21509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 | |
21510 | $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
21511 | if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \ | |
21512 | test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then : | |
be2fde87 JF |
21513 | |
21514 | cat >>confdefs.h <<_ACEOF | |
2ca4dab3 | 21515 | #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR |
be2fde87 JF |
21516 | _ACEOF |
21517 | ||
2ca4dab3 | 21518 | fi |
be2fde87 JF |
21519 | |
21520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
21521 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
2ca4dab3 JF |
21522 | if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : |
21523 | $as_echo_n "(cached) " >&6 | |
21524 | else | |
21525 | ax_cv_PTHREAD_SPECIAL_FLAGS=no | |
21526 | ax_pthread_special_flags_added=no | |
21527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21528 | /* end confdefs.h. */ | |
21529 | ||
21530 | # if !defined(_REENTRANT) && !defined(_THREAD_SAFE) | |
21531 | AX_PTHREAD_NEED_SPECIAL_FLAG | |
21532 | # endif | |
21533 | ||
21534 | _ACEOF | |
21535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21536 | $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then : | |
21537 | case $host_os in | |
21538 | aix* | freebsd*) | |
21539 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE" | |
21540 | ;; | |
21541 | darwin* | hpux* | osf* | solaris*) | |
21542 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT" | |
21543 | ;; | |
21544 | esac | |
21545 | ||
21546 | fi | |
21547 | rm -f conftest* | |
21548 | ||
21549 | ||
21550 | fi | |
21551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 | |
21552 | $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
21553 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ | |
21554 | test "x$ax_pthread_special_flags_added" != "xyes"; then : | |
21555 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" | |
21556 | ax_pthread_special_flags_added=yes | |
21557 | fi | |
be2fde87 JF |
21558 | |
21559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | |
21560 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
21561 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | |
21562 | $as_echo_n "(cached) " >&6 | |
21563 | else | |
2ca4dab3 | 21564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be2fde87 JF |
21565 | /* end confdefs.h. */ |
21566 | #include <pthread.h> | |
21567 | int | |
21568 | main () | |
21569 | { | |
21570 | int i = PTHREAD_PRIO_INHERIT; | |
21571 | ; | |
21572 | return 0; | |
21573 | } | |
21574 | _ACEOF | |
21575 | if ac_fn_c_try_link "$LINENO"; then : | |
21576 | ax_cv_PTHREAD_PRIO_INHERIT=yes | |
21577 | else | |
21578 | ax_cv_PTHREAD_PRIO_INHERIT=no | |
21579 | fi | |
21580 | rm -f core conftest.err conftest.$ac_objext \ | |
21581 | conftest$ac_exeext conftest.$ac_ext | |
21582 | ||
21583 | fi | |
21584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | |
21585 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
21586 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | |
21587 | ||
21588 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | |
21589 | ||
21590 | fi | |
21591 | ||
21592 | LIBS="$save_LIBS" | |
21593 | CFLAGS="$save_CFLAGS" | |
21594 | ||
21595 | # More AIX lossage: compile with *_r variant | |
21596 | if test "x$GCC" != xyes; then | |
21597 | case $host_os in | |
21598 | aix*) | |
21599 | case "x/$CC" in #( | |
21600 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
21601 | #handle absolute path differently from PATH based program lookup | |
21602 | case "x$CC" in #( | |
21603 | x/*) : | |
21604 | if as_fn_executable_p ${CC}_r; then : | |
21605 | PTHREAD_CC="${CC}_r" | |
21606 | fi ;; #( | |
21607 | *) : | |
21608 | for ac_prog in ${CC}_r | |
21609 | do | |
21610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21611 | set dummy $ac_prog; ac_word=$2 | |
21612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21613 | $as_echo_n "checking for $ac_word... " >&6; } | |
21614 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
21615 | $as_echo_n "(cached) " >&6 | |
21616 | else | |
21617 | if test -n "$PTHREAD_CC"; then | |
21618 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
21619 | else | |
21620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21621 | for as_dir in $PATH | |
21622 | do | |
21623 | IFS=$as_save_IFS | |
21624 | test -z "$as_dir" && as_dir=. | |
21625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21627 | ac_cv_prog_PTHREAD_CC="$ac_prog" | |
21628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21629 | break 2 | |
21630 | fi | |
21631 | done | |
21632 | done | |
21633 | IFS=$as_save_IFS | |
21634 | ||
21635 | fi | |
21636 | fi | |
21637 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
21638 | if test -n "$PTHREAD_CC"; then | |
21639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
21640 | $as_echo "$PTHREAD_CC" >&6; } | |
21641 | else | |
21642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21643 | $as_echo "no" >&6; } | |
21644 | fi | |
21645 | ||
21646 | ||
21647 | test -n "$PTHREAD_CC" && break | |
21648 | done | |
21649 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
21650 | ;; | |
21651 | esac ;; #( | |
21652 | *) : | |
21653 | ;; | |
21654 | esac | |
21655 | ;; | |
21656 | esac | |
21657 | fi | |
21658 | fi | |
21659 | ||
21660 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
21661 | ||
21662 | ||
21663 | ||
21664 | ||
21665 | ||
21666 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
21667 | if test x"$ax_pthread_ok" = xyes; then | |
21668 | ||
21669 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | |
21670 | ||
21671 | : | |
21672 | else | |
21673 | ax_pthread_ok=no | |
21674 | ||
21675 | fi | |
21676 | ac_ext=cpp | |
21677 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21681 | ||
21682 | ||
21683 | ||
21684 | ||
21685 | ||
babf7fe8 JF |
21686 | |
21687 | ||
21688 | ||
21689 | ||
21690 | # Check whether --enable-javascript was given. | |
21691 | if test "${enable_javascript+set}" = set; then : | |
21692 | enableval=$enable_javascript; | |
21693 | case $enableval in #( | |
21694 | yes) : | |
21695 | ||
21696 | ||
21697 | ||
21698 | ||
21699 | cy_save=$LIBS | |
21700 | LIBS= | |
9918a0fa JF |
21701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
21702 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
21703 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21704 | $as_echo_n "(cached) " >&6 | |
21705 | else | |
21706 | ac_func_search_save_LIBS=$LIBS | |
21707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21708 | /* end confdefs.h. */ | |
21709 | ||
21710 | /* Override any GCC internal prototype to avoid an error. | |
21711 | Use char because int might match the return type of a GCC | |
21712 | builtin and then its argument prototype would still apply. */ | |
21713 | #ifdef __cplusplus | |
21714 | extern "C" | |
21715 | #endif | |
21716 | char JSEvaluateScript (); | |
21717 | int | |
21718 | main () | |
21719 | { | |
21720 | return JSEvaluateScript (); | |
21721 | ; | |
21722 | return 0; | |
21723 | } | |
21724 | _ACEOF | |
21725 | for ac_lib in '' JavaScriptCore; do | |
21726 | if test -z "$ac_lib"; then | |
21727 | ac_res="none required" | |
21728 | else | |
21729 | ac_res=-l$ac_lib | |
21730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21731 | fi | |
21732 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21733 | ac_cv_search_JSEvaluateScript=$ac_res | |
21734 | fi | |
21735 | rm -f core conftest.err conftest.$ac_objext \ | |
21736 | conftest$ac_exeext | |
21737 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21738 | break | |
21739 | fi | |
21740 | done | |
21741 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21742 | ||
21743 | else | |
21744 | ac_cv_search_JSEvaluateScript=no | |
21745 | fi | |
21746 | rm conftest.$ac_ext | |
21747 | LIBS=$ac_func_search_save_LIBS | |
21748 | fi | |
21749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
21750 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
21751 | ac_res=$ac_cv_search_JSEvaluateScript | |
21752 | if test "$ac_res" != no; then : | |
21753 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21754 | ||
21755 | CY_EXECUTE=1 | |
21756 | ||
21757 | ||
21758 | else | |
babf7fe8 JF |
21759 | |
21760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
21761 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
21762 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
21763 | $as_echo_n "(cached) " >&6 | |
21764 | else | |
21765 | ||
21766 | ac_check_framework_save_LIBS=$LIBS | |
21767 | LIBS="-framework JavaScriptCore $LIBS" | |
21768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21769 | /* end confdefs.h. */ | |
21770 | ||
21771 | #include <JavaScriptCore/JSBase.h> | |
21772 | ||
21773 | int | |
21774 | main () | |
21775 | { | |
21776 | ||
21777 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
21778 | ||
21779 | ; | |
21780 | return 0; | |
21781 | } | |
21782 | _ACEOF | |
21783 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21784 | ||
21785 | ac_cv_framework_JavaScriptCore=yes | |
21786 | ||
21787 | else | |
21788 | ac_cv_framework_JavaScriptCore=no | |
21789 | fi | |
21790 | rm -f core conftest.err conftest.$ac_objext \ | |
21791 | conftest$ac_exeext conftest.$ac_ext | |
21792 | LIBS=$ac_check_framework_save_LIBS | |
21793 | ||
21794 | fi | |
21795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
21796 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
21797 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
21798 | ||
21799 | ||
21800 | for element in "-framework JavaScriptCore"; do | |
21801 | haveit= | |
21802 | for x in $LIBS; do | |
21803 | ||
21804 | acl_save_prefix="$prefix" | |
21805 | prefix="$acl_final_prefix" | |
21806 | acl_save_exec_prefix="$exec_prefix" | |
21807 | exec_prefix="$acl_final_exec_prefix" | |
21808 | eval x=\"$x\" | |
21809 | exec_prefix="$acl_save_exec_prefix" | |
21810 | prefix="$acl_save_prefix" | |
21811 | ||
21812 | if test "X$x" = "X$element"; then | |
21813 | haveit=yes | |
21814 | break | |
21815 | fi | |
21816 | done | |
21817 | if test -z "$haveit"; then | |
21818 | LIBS="${LIBS}${LIBS:+ }$element" | |
21819 | fi | |
21820 | done | |
21821 | ||
21822 | ||
21823 | CY_EXECUTE=1 | |
21824 | ||
21825 | ||
21826 | ||
21827 | else | |
21828 | ||
ccb4e34c | 21829 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
21830 | |
21831 | pkg_failed=no | |
21832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 21833 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 21834 | |
7eda51e0 JF |
21835 | if test -n "$WEBKIT_CFLAGS"; then |
21836 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
21837 | elif test -n "$PKG_CONFIG"; then | |
21838 | if test -n "$PKG_CONFIG" && \ | |
21839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
21840 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
21841 | ac_status=$? | |
21842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21843 | test $ac_status = 0; }; then | |
21844 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 21845 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
21846 | else |
21847 | pkg_failed=yes | |
21848 | fi | |
21849 | else | |
21850 | pkg_failed=untried | |
21851 | fi | |
21852 | if test -n "$WEBKIT_LIBS"; then | |
21853 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
21854 | elif test -n "$PKG_CONFIG"; then | |
21855 | if test -n "$PKG_CONFIG" && \ | |
21856 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
21857 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
21858 | ac_status=$? | |
21859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21860 | test $ac_status = 0; }; then | |
21861 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 21862 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
21863 | else |
21864 | pkg_failed=yes | |
21865 | fi | |
21866 | else | |
21867 | pkg_failed=untried | |
21868 | fi | |
632b71ea | 21869 | |
7eda51e0 JF |
21870 | |
21871 | ||
21872 | if test $pkg_failed = yes; then | |
21873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21874 | $as_echo "no" >&6; } | |
21875 | ||
21876 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21877 | _pkg_short_errors_supported=yes | |
21878 | else | |
21879 | _pkg_short_errors_supported=no | |
21880 | fi | |
21881 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 21882 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 21883 | else |
83c6fec8 | 21884 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
21885 | fi |
21886 | # Put the nasty error message in config.log where it belongs | |
21887 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
21888 | ||
21889 | : | |
21890 | elif test $pkg_failed = untried; then | |
21891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21892 | $as_echo "no" >&6; } | |
21893 | : | |
21894 | else | |
21895 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
21896 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
21897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21898 | $as_echo "yes" >&6; } | |
21899 | ||
21900 | CY_EXECUTE=1 | |
21901 | ||
21902 | ||
7eda51e0 JF |
21903 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
21904 | haveit= | |
d70419f1 | 21905 | for x in $CPPFLAGS; do |
5053a6d1 | 21906 | |
7eda51e0 JF |
21907 | acl_save_prefix="$prefix" |
21908 | prefix="$acl_final_prefix" | |
21909 | acl_save_exec_prefix="$exec_prefix" | |
21910 | exec_prefix="$acl_final_exec_prefix" | |
21911 | eval x=\"$x\" | |
21912 | exec_prefix="$acl_save_exec_prefix" | |
21913 | prefix="$acl_save_prefix" | |
5053a6d1 | 21914 | |
7eda51e0 JF |
21915 | if test "X$x" = "X$element"; then |
21916 | haveit=yes | |
21917 | break | |
21918 | fi | |
21919 | done | |
21920 | if test -z "$haveit"; then | |
d70419f1 | 21921 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
21922 | fi |
21923 | done | |
5053a6d1 | 21924 | |
5053a6d1 | 21925 | |
7eda51e0 | 21926 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 21927 | haveit= |
5053a6d1 | 21928 | for x in $LIBS; do |
9c60689e | 21929 | |
632b71ea DWT |
21930 | acl_save_prefix="$prefix" |
21931 | prefix="$acl_final_prefix" | |
21932 | acl_save_exec_prefix="$exec_prefix" | |
21933 | exec_prefix="$acl_final_exec_prefix" | |
21934 | eval x=\"$x\" | |
21935 | exec_prefix="$acl_save_exec_prefix" | |
21936 | prefix="$acl_save_prefix" | |
21937 | ||
21938 | if test "X$x" = "X$element"; then | |
21939 | haveit=yes | |
21940 | break | |
21941 | fi | |
21942 | done | |
21943 | if test -z "$haveit"; then | |
5053a6d1 | 21944 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
21945 | fi |
21946 | done | |
b128dfee | 21947 | |
66170b30 | 21948 | |
7eda51e0 JF |
21949 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
21950 | done | |
5053a6d1 DWT |
21951 | |
21952 | fi | |
9918a0fa JF |
21953 | fi |
21954 | ||
babf7fe8 JF |
21955 | LTJAVASCRIPTCORE=$LIBS |
21956 | LIBS=$cy_save | |
21957 | ||
21958 | ||
7eda51e0 | 21959 | ;; #( |
babf7fe8 | 21960 | no) : |
7eda51e0 | 21961 | |
babf7fe8 JF |
21962 | CY_EXECUTE=0 |
21963 | ;; #( | |
21964 | JavaScriptCore) : | |
c823f118 | 21965 | |
5053a6d1 DWT |
21966 | |
21967 | ||
babf7fe8 JF |
21968 | cy_save=$LIBS |
21969 | LIBS= | |
9918a0fa JF |
21970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
21971 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
21972 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21973 | $as_echo_n "(cached) " >&6 | |
21974 | else | |
21975 | ac_func_search_save_LIBS=$LIBS | |
21976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21977 | /* end confdefs.h. */ | |
21978 | ||
21979 | /* Override any GCC internal prototype to avoid an error. | |
21980 | Use char because int might match the return type of a GCC | |
21981 | builtin and then its argument prototype would still apply. */ | |
21982 | #ifdef __cplusplus | |
21983 | extern "C" | |
21984 | #endif | |
21985 | char JSEvaluateScript (); | |
21986 | int | |
21987 | main () | |
21988 | { | |
21989 | return JSEvaluateScript (); | |
21990 | ; | |
21991 | return 0; | |
21992 | } | |
21993 | _ACEOF | |
21994 | for ac_lib in '' JavaScriptCore; do | |
21995 | if test -z "$ac_lib"; then | |
21996 | ac_res="none required" | |
21997 | else | |
21998 | ac_res=-l$ac_lib | |
21999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22000 | fi | |
22001 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22002 | ac_cv_search_JSEvaluateScript=$ac_res | |
22003 | fi | |
22004 | rm -f core conftest.err conftest.$ac_objext \ | |
22005 | conftest$ac_exeext | |
22006 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22007 | break | |
22008 | fi | |
22009 | done | |
22010 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22011 | ||
22012 | else | |
22013 | ac_cv_search_JSEvaluateScript=no | |
22014 | fi | |
22015 | rm conftest.$ac_ext | |
22016 | LIBS=$ac_func_search_save_LIBS | |
22017 | fi | |
22018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
22019 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
22020 | ac_res=$ac_cv_search_JSEvaluateScript | |
22021 | if test "$ac_res" != no; then : | |
22022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22023 | ||
22024 | CY_EXECUTE=1 | |
22025 | ||
22026 | ||
22027 | else | |
babf7fe8 | 22028 | |
5053a6d1 DWT |
22029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
22030 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 22031 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
22032 | $as_echo_n "(cached) " >&6 |
22033 | else | |
22034 | ||
5053a6d1 DWT |
22035 | ac_check_framework_save_LIBS=$LIBS |
22036 | LIBS="-framework JavaScriptCore $LIBS" | |
22037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 22038 | /* end confdefs.h. */ |
5053a6d1 | 22039 | |
7eda51e0 | 22040 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 22041 | |
632b71ea DWT |
22042 | int |
22043 | main () | |
22044 | { | |
66170b30 | 22045 | |
7eda51e0 | 22046 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 22047 | |
632b71ea DWT |
22048 | ; |
22049 | return 0; | |
22050 | } | |
22051 | _ACEOF | |
5053a6d1 DWT |
22052 | if ac_fn_cxx_try_link "$LINENO"; then : |
22053 | ||
22054 | ac_cv_framework_JavaScriptCore=yes | |
22055 | ||
22056 | else | |
22057 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
22058 | fi |
22059 | rm -f core conftest.err conftest.$ac_objext \ | |
22060 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 22061 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 22062 | |
c823f118 | 22063 | fi |
5053a6d1 DWT |
22064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
22065 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
22066 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
22067 | |
22068 | ||
7eda51e0 | 22069 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
22070 | haveit= |
22071 | for x in $LIBS; do | |
22072 | ||
22073 | acl_save_prefix="$prefix" | |
22074 | prefix="$acl_final_prefix" | |
22075 | acl_save_exec_prefix="$exec_prefix" | |
22076 | exec_prefix="$acl_final_exec_prefix" | |
22077 | eval x=\"$x\" | |
22078 | exec_prefix="$acl_save_exec_prefix" | |
22079 | prefix="$acl_save_prefix" | |
22080 | ||
22081 | if test "X$x" = "X$element"; then | |
22082 | haveit=yes | |
22083 | break | |
22084 | fi | |
22085 | done | |
22086 | if test -z "$haveit"; then | |
22087 | LIBS="${LIBS}${LIBS:+ }$element" | |
22088 | fi | |
22089 | done | |
c823f118 | 22090 | |
66170b30 | 22091 | |
7eda51e0 JF |
22092 | CY_EXECUTE=1 |
22093 | ||
22094 | ||
22095 | ||
22096 | else | |
22097 | ||
ccb4e34c | 22098 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
7eda51e0 JF |
22099 | |
22100 | pkg_failed=no | |
22101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
22102 | $as_echo_n "checking for WEBKIT... " >&6; } | |
22103 | ||
22104 | if test -n "$WEBKIT_CFLAGS"; then | |
22105 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
22106 | elif test -n "$PKG_CONFIG"; then | |
22107 | if test -n "$PKG_CONFIG" && \ | |
22108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22109 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22110 | ac_status=$? | |
22111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22112 | test $ac_status = 0; }; then | |
22113 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22114 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
22115 | else |
22116 | pkg_failed=yes | |
22117 | fi | |
22118 | else | |
22119 | pkg_failed=untried | |
22120 | fi | |
22121 | if test -n "$WEBKIT_LIBS"; then | |
22122 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
22123 | elif test -n "$PKG_CONFIG"; then | |
22124 | if test -n "$PKG_CONFIG" && \ | |
22125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22126 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22127 | ac_status=$? | |
22128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22129 | test $ac_status = 0; }; then | |
22130 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22131 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
22132 | else |
22133 | pkg_failed=yes | |
22134 | fi | |
22135 | else | |
22136 | pkg_failed=untried | |
22137 | fi | |
22138 | ||
66170b30 JF |
22139 | |
22140 | ||
7eda51e0 JF |
22141 | if test $pkg_failed = yes; then |
22142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22143 | $as_echo "no" >&6; } | |
b128dfee | 22144 | |
7eda51e0 JF |
22145 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
22146 | _pkg_short_errors_supported=yes | |
22147 | else | |
22148 | _pkg_short_errors_supported=no | |
632b71ea | 22149 | fi |
7eda51e0 | 22150 | if test $_pkg_short_errors_supported = yes; then |
83c6fec8 | 22151 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 22152 | else |
83c6fec8 | 22153 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
22154 | fi |
22155 | # Put the nasty error message in config.log where it belongs | |
22156 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 22157 | |
7eda51e0 JF |
22158 | : |
22159 | elif test $pkg_failed = untried; then | |
22160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22161 | $as_echo "no" >&6; } | |
22162 | : | |
5053a6d1 DWT |
22163 | else |
22164 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
22165 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
22166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22167 | $as_echo "yes" >&6; } | |
c823f118 | 22168 | |
7eda51e0 JF |
22169 | CY_EXECUTE=1 |
22170 | ||
66170b30 | 22171 | |
7eda51e0 | 22172 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 22173 | haveit= |
d70419f1 | 22174 | for x in $CPPFLAGS; do |
c823f118 | 22175 | |
5053a6d1 DWT |
22176 | acl_save_prefix="$prefix" |
22177 | prefix="$acl_final_prefix" | |
22178 | acl_save_exec_prefix="$exec_prefix" | |
22179 | exec_prefix="$acl_final_exec_prefix" | |
22180 | eval x=\"$x\" | |
22181 | exec_prefix="$acl_save_exec_prefix" | |
22182 | prefix="$acl_save_prefix" | |
c823f118 | 22183 | |
5053a6d1 DWT |
22184 | if test "X$x" = "X$element"; then |
22185 | haveit=yes | |
22186 | break | |
22187 | fi | |
22188 | done | |
22189 | if test -z "$haveit"; then | |
d70419f1 | 22190 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
22191 | fi |
22192 | done | |
c823f118 | 22193 | |
b66977f1 | 22194 | |
7eda51e0 | 22195 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
22196 | haveit= |
22197 | for x in $LIBS; do | |
22198 | ||
22199 | acl_save_prefix="$prefix" | |
22200 | prefix="$acl_final_prefix" | |
22201 | acl_save_exec_prefix="$exec_prefix" | |
22202 | exec_prefix="$acl_final_exec_prefix" | |
22203 | eval x=\"$x\" | |
22204 | exec_prefix="$acl_save_exec_prefix" | |
22205 | prefix="$acl_save_prefix" | |
22206 | ||
22207 | if test "X$x" = "X$element"; then | |
22208 | haveit=yes | |
22209 | break | |
22210 | fi | |
22211 | done | |
22212 | if test -z "$haveit"; then | |
22213 | LIBS="${LIBS}${LIBS:+ }$element" | |
22214 | fi | |
22215 | done | |
22216 | ||
22217 | ||
7eda51e0 JF |
22218 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
22219 | done | |
22220 | ||
5053a6d1 | 22221 | fi |
9918a0fa JF |
22222 | fi |
22223 | ||
babf7fe8 JF |
22224 | LTJAVASCRIPTCORE=$LIBS |
22225 | LIBS=$cy_save | |
5053a6d1 | 22226 | |
b66977f1 | 22227 | |
babf7fe8 JF |
22228 | ;; #( |
22229 | *) : | |
22230 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
22231 | esac | |
b66977f1 | 22232 | |
babf7fe8 | 22233 | else |
b66977f1 | 22234 | |
7eda51e0 | 22235 | |
7eda51e0 | 22236 | |
babf7fe8 JF |
22237 | cy_save=$LIBS |
22238 | LIBS= | |
9918a0fa JF |
22239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
22240 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
22241 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22242 | $as_echo_n "(cached) " >&6 | |
22243 | else | |
22244 | ac_func_search_save_LIBS=$LIBS | |
22245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22246 | /* end confdefs.h. */ | |
22247 | ||
22248 | /* Override any GCC internal prototype to avoid an error. | |
22249 | Use char because int might match the return type of a GCC | |
22250 | builtin and then its argument prototype would still apply. */ | |
22251 | #ifdef __cplusplus | |
22252 | extern "C" | |
22253 | #endif | |
22254 | char JSEvaluateScript (); | |
22255 | int | |
22256 | main () | |
22257 | { | |
22258 | return JSEvaluateScript (); | |
22259 | ; | |
22260 | return 0; | |
22261 | } | |
22262 | _ACEOF | |
22263 | for ac_lib in '' JavaScriptCore; do | |
22264 | if test -z "$ac_lib"; then | |
22265 | ac_res="none required" | |
22266 | else | |
22267 | ac_res=-l$ac_lib | |
22268 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22269 | fi | |
22270 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22271 | ac_cv_search_JSEvaluateScript=$ac_res | |
22272 | fi | |
22273 | rm -f core conftest.err conftest.$ac_objext \ | |
22274 | conftest$ac_exeext | |
22275 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22276 | break | |
22277 | fi | |
22278 | done | |
22279 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22280 | ||
22281 | else | |
22282 | ac_cv_search_JSEvaluateScript=no | |
22283 | fi | |
22284 | rm conftest.$ac_ext | |
22285 | LIBS=$ac_func_search_save_LIBS | |
22286 | fi | |
22287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
22288 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
22289 | ac_res=$ac_cv_search_JSEvaluateScript | |
22290 | if test "$ac_res" != no; then : | |
22291 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22292 | ||
22293 | CY_EXECUTE=1 | |
22294 | ||
22295 | ||
22296 | else | |
7eda51e0 | 22297 | |
babf7fe8 JF |
22298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
22299 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
22300 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
22301 | $as_echo_n "(cached) " >&6 | |
22302 | else | |
7eda51e0 | 22303 | |
babf7fe8 JF |
22304 | ac_check_framework_save_LIBS=$LIBS |
22305 | LIBS="-framework JavaScriptCore $LIBS" | |
22306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22307 | /* end confdefs.h. */ | |
7eda51e0 | 22308 | |
babf7fe8 | 22309 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 22310 | |
babf7fe8 JF |
22311 | int |
22312 | main () | |
22313 | { | |
7eda51e0 | 22314 | |
babf7fe8 | 22315 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 22316 | |
babf7fe8 JF |
22317 | ; |
22318 | return 0; | |
22319 | } | |
22320 | _ACEOF | |
22321 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 22322 | |
babf7fe8 | 22323 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 22324 | |
b66977f1 | 22325 | else |
babf7fe8 JF |
22326 | ac_cv_framework_JavaScriptCore=no |
22327 | fi | |
22328 | rm -f core conftest.err conftest.$ac_objext \ | |
22329 | conftest$ac_exeext conftest.$ac_ext | |
22330 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 22331 | |
babf7fe8 JF |
22332 | fi |
22333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
22334 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
22335 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 22336 | |
7eda51e0 | 22337 | |
babf7fe8 JF |
22338 | for element in "-framework JavaScriptCore"; do |
22339 | haveit= | |
22340 | for x in $LIBS; do | |
22341 | ||
22342 | acl_save_prefix="$prefix" | |
22343 | prefix="$acl_final_prefix" | |
22344 | acl_save_exec_prefix="$exec_prefix" | |
22345 | exec_prefix="$acl_final_exec_prefix" | |
22346 | eval x=\"$x\" | |
22347 | exec_prefix="$acl_save_exec_prefix" | |
22348 | prefix="$acl_save_prefix" | |
22349 | ||
22350 | if test "X$x" = "X$element"; then | |
22351 | haveit=yes | |
22352 | break | |
22353 | fi | |
22354 | done | |
22355 | if test -z "$haveit"; then | |
22356 | LIBS="${LIBS}${LIBS:+ }$element" | |
22357 | fi | |
22358 | done | |
22359 | ||
22360 | ||
22361 | CY_EXECUTE=1 | |
22362 | ||
22363 | ||
22364 | ||
22365 | else | |
22366 | ||
ccb4e34c | 22367 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
22368 | |
22369 | pkg_failed=no | |
22370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
22371 | $as_echo_n "checking for WEBKIT... " >&6; } | |
22372 | ||
22373 | if test -n "$WEBKIT_CFLAGS"; then | |
22374 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
22375 | elif test -n "$PKG_CONFIG"; then | |
22376 | if test -n "$PKG_CONFIG" && \ | |
22377 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22378 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22379 | ac_status=$? | |
22380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22381 | test $ac_status = 0; }; then | |
22382 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22383 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
22384 | else |
22385 | pkg_failed=yes | |
22386 | fi | |
22387 | else | |
22388 | pkg_failed=untried | |
22389 | fi | |
22390 | if test -n "$WEBKIT_LIBS"; then | |
22391 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
22392 | elif test -n "$PKG_CONFIG"; then | |
22393 | if test -n "$PKG_CONFIG" && \ | |
22394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22395 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22396 | ac_status=$? | |
22397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22398 | test $ac_status = 0; }; then | |
22399 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22400 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
22401 | else |
22402 | pkg_failed=yes | |
22403 | fi | |
22404 | else | |
22405 | pkg_failed=untried | |
22406 | fi | |
22407 | ||
22408 | ||
22409 | ||
22410 | if test $pkg_failed = yes; then | |
22411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22412 | $as_echo "no" >&6; } | |
22413 | ||
22414 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22415 | _pkg_short_errors_supported=yes | |
22416 | else | |
22417 | _pkg_short_errors_supported=no | |
22418 | fi | |
22419 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22420 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 22421 | else |
83c6fec8 | 22422 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
22423 | fi |
22424 | # Put the nasty error message in config.log where it belongs | |
22425 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
22426 | ||
22427 | : | |
22428 | elif test $pkg_failed = untried; then | |
22429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22430 | $as_echo "no" >&6; } | |
22431 | : | |
22432 | else | |
22433 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
22434 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
22435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22436 | $as_echo "yes" >&6; } | |
22437 | ||
22438 | CY_EXECUTE=1 | |
22439 | ||
22440 | ||
22441 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
22442 | haveit= | |
22443 | for x in $CPPFLAGS; do | |
22444 | ||
22445 | acl_save_prefix="$prefix" | |
22446 | prefix="$acl_final_prefix" | |
22447 | acl_save_exec_prefix="$exec_prefix" | |
22448 | exec_prefix="$acl_final_exec_prefix" | |
22449 | eval x=\"$x\" | |
22450 | exec_prefix="$acl_save_exec_prefix" | |
22451 | prefix="$acl_save_prefix" | |
22452 | ||
22453 | if test "X$x" = "X$element"; then | |
22454 | haveit=yes | |
22455 | break | |
22456 | fi | |
22457 | done | |
22458 | if test -z "$haveit"; then | |
22459 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
22460 | fi | |
22461 | done | |
22462 | ||
22463 | ||
22464 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
22465 | haveit= | |
22466 | for x in $LIBS; do | |
22467 | ||
22468 | acl_save_prefix="$prefix" | |
22469 | prefix="$acl_final_prefix" | |
22470 | acl_save_exec_prefix="$exec_prefix" | |
22471 | exec_prefix="$acl_final_exec_prefix" | |
22472 | eval x=\"$x\" | |
22473 | exec_prefix="$acl_save_exec_prefix" | |
22474 | prefix="$acl_save_prefix" | |
22475 | ||
22476 | if test "X$x" = "X$element"; then | |
22477 | haveit=yes | |
22478 | break | |
22479 | fi | |
22480 | done | |
22481 | if test -z "$haveit"; then | |
22482 | LIBS="${LIBS}${LIBS:+ }$element" | |
22483 | fi | |
22484 | done | |
22485 | ||
22486 | ||
22487 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
22488 | done | |
22489 | ||
22490 | fi | |
9918a0fa JF |
22491 | fi |
22492 | ||
babf7fe8 JF |
22493 | LTJAVASCRIPTCORE=$LIBS |
22494 | LIBS=$cy_save | |
22495 | ||
22496 | ||
22497 | ||
22498 | fi | |
22499 | ||
22500 | ||
a93f15c0 JF |
22501 | # Check whether --enable-console was given. |
22502 | if test "${enable_console+set}" = set; then : | |
22503 | enableval=$enable_console; | |
22504 | fi | |
22505 | ||
22506 | if test "x$enable_console" != "xno"; then | |
22507 | CY_CONSOLE_TRUE= | |
22508 | CY_CONSOLE_FALSE='#' | |
22509 | else | |
22510 | CY_CONSOLE_TRUE='#' | |
22511 | CY_CONSOLE_FALSE= | |
22512 | fi | |
22513 | ||
22514 | ||
a4287117 JF |
22515 | # Check whether --enable-attach was given. |
22516 | if test "${enable_attach+set}" = set; then : | |
22517 | enableval=$enable_attach; | |
22518 | fi | |
22519 | ||
22520 | if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then | |
22521 | CY_ATTACH_TRUE= | |
22522 | CY_ATTACH_FALSE='#' | |
22523 | else | |
22524 | CY_ATTACH_TRUE='#' | |
22525 | CY_ATTACH_FALSE= | |
22526 | fi | |
22527 | ||
22528 | ||
7eda51e0 JF |
22529 | |
22530 | ||
22531 | if test "x$CY_EXECUTE" = x1; then | |
22532 | CY_EXECUTE_TRUE= | |
22533 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 22534 | else |
7eda51e0 JF |
22535 | CY_EXECUTE_TRUE='#' |
22536 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
22537 | fi |
22538 | ||
22539 | ||
8d20f0f1 JF |
22540 | if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi |
22541 | ||
22542 | ||
b66977f1 | 22543 | |
7eda51e0 JF |
22544 | case $CY_EXECUTE in #( |
22545 | 1) : | |
22546 | ||
ae1b611e JF |
22547 | |
22548 | cy_save=$LIBS | |
22549 | LIBS= | |
22550 | for ac_header in uv.h | |
22551 | do : | |
22552 | ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" | |
22553 | if test "x$ac_cv_header_uv_h" = xyes; then : | |
22554 | cat >>confdefs.h <<_ACEOF | |
22555 | #define HAVE_UV_H 1 | |
22556 | _ACEOF | |
22557 | ||
22558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5 | |
22559 | $as_echo_n "checking for library containing uv_loop_init... " >&6; } | |
22560 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22561 | $as_echo_n "(cached) " >&6 | |
22562 | else | |
22563 | ac_func_search_save_LIBS=$LIBS | |
22564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22565 | /* end confdefs.h. */ | |
22566 | ||
22567 | /* Override any GCC internal prototype to avoid an error. | |
22568 | Use char because int might match the return type of a GCC | |
22569 | builtin and then its argument prototype would still apply. */ | |
22570 | #ifdef __cplusplus | |
22571 | extern "C" | |
22572 | #endif | |
22573 | char uv_loop_init (); | |
22574 | int | |
22575 | main () | |
22576 | { | |
22577 | return uv_loop_init (); | |
22578 | ; | |
22579 | return 0; | |
22580 | } | |
22581 | _ACEOF | |
22582 | for ac_lib in '' uv; do | |
22583 | if test -z "$ac_lib"; then | |
22584 | ac_res="none required" | |
22585 | else | |
22586 | ac_res=-l$ac_lib | |
22587 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22588 | fi | |
22589 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22590 | ac_cv_search_uv_loop_init=$ac_res | |
22591 | fi | |
22592 | rm -f core conftest.err conftest.$ac_objext \ | |
22593 | conftest$ac_exeext | |
22594 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22595 | break | |
22596 | fi | |
22597 | done | |
22598 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22599 | ||
22600 | else | |
22601 | ac_cv_search_uv_loop_init=no | |
22602 | fi | |
22603 | rm conftest.$ac_ext | |
22604 | LIBS=$ac_func_search_save_LIBS | |
22605 | fi | |
22606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5 | |
22607 | $as_echo "$ac_cv_search_uv_loop_init" >&6; } | |
22608 | ac_res=$ac_cv_search_uv_loop_init | |
22609 | if test "$ac_res" != no; then : | |
22610 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22611 | ||
22612 | fi | |
22613 | ||
22614 | ||
22615 | fi | |
22616 | ||
22617 | done | |
22618 | ||
22619 | LTLIBUV=$LIBS | |
22620 | LIBS=$cy_save | |
22621 | ||
22622 | ||
22623 | ||
8d20f0f1 JF |
22624 | |
22625 | cy_save=$LIBS | |
22626 | LIBS= | |
22627 | for ac_header in sqlite3.h | |
22628 | do : | |
22629 | ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" | |
22630 | if test "x$ac_cv_header_sqlite3_h" = xyes; then : | |
22631 | cat >>confdefs.h <<_ACEOF | |
22632 | #define HAVE_SQLITE3_H 1 | |
22633 | _ACEOF | |
22634 | ||
22635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5 | |
22636 | $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; } | |
22637 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22638 | $as_echo_n "(cached) " >&6 | |
22639 | else | |
22640 | ac_func_search_save_LIBS=$LIBS | |
22641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22642 | /* end confdefs.h. */ | |
22643 | ||
22644 | /* Override any GCC internal prototype to avoid an error. | |
22645 | Use char because int might match the return type of a GCC | |
22646 | builtin and then its argument prototype would still apply. */ | |
22647 | #ifdef __cplusplus | |
22648 | extern "C" | |
22649 | #endif | |
22650 | char sqlite3_open_v2 (); | |
22651 | int | |
22652 | main () | |
22653 | { | |
22654 | return sqlite3_open_v2 (); | |
22655 | ; | |
22656 | return 0; | |
22657 | } | |
22658 | _ACEOF | |
22659 | for ac_lib in '' sqlite3; do | |
22660 | if test -z "$ac_lib"; then | |
22661 | ac_res="none required" | |
22662 | else | |
22663 | ac_res=-l$ac_lib | |
22664 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22665 | fi | |
22666 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22667 | ac_cv_search_sqlite3_open_v2=$ac_res | |
22668 | fi | |
22669 | rm -f core conftest.err conftest.$ac_objext \ | |
22670 | conftest$ac_exeext | |
22671 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22672 | break | |
22673 | fi | |
22674 | done | |
22675 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22676 | ||
22677 | else | |
22678 | ac_cv_search_sqlite3_open_v2=no | |
22679 | fi | |
22680 | rm conftest.$ac_ext | |
22681 | LIBS=$ac_func_search_save_LIBS | |
22682 | fi | |
22683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5 | |
22684 | $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; } | |
22685 | ac_res=$ac_cv_search_sqlite3_open_v2 | |
22686 | if test "$ac_res" != no; then : | |
22687 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22688 | ||
22689 | fi | |
22690 | ||
22691 | ||
22692 | fi | |
22693 | ||
22694 | done | |
22695 | ||
22696 | LTLIBSQLITE3=$LIBS | |
22697 | LIBS=$cy_save | |
22698 | ||
22699 | ||
22700 | ||
7eda51e0 JF |
22701 | for ac_header in ffi.h ffi/ffi.h |
22702 | do : | |
22703 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22704 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22705 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
22706 | cat >>confdefs.h <<_ACEOF | |
22707 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22708 | _ACEOF | |
22709 | break | |
b66977f1 | 22710 | fi |
7eda51e0 JF |
22711 | |
22712 | done | |
22713 | ||
296ee9a6 JF |
22714 | |
22715 | ||
22716 | cy_save=$LIBS | |
22717 | LIBS= | |
7eda51e0 | 22718 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 22719 | |
b66977f1 DWT |
22720 | |
22721 | ||
22722 | pkg_failed=no | |
7eda51e0 JF |
22723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
22724 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 22725 | |
7eda51e0 JF |
22726 | if test -n "$LIBFFI_CFLAGS"; then |
22727 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
22728 | elif test -n "$PKG_CONFIG"; then |
22729 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22730 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22731 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22732 | ac_status=$? |
22733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22734 | test $ac_status = 0; }; then | |
7eda51e0 | 22735 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 22736 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22737 | else |
22738 | pkg_failed=yes | |
22739 | fi | |
12833ad8 JF |
22740 | else |
22741 | pkg_failed=untried | |
b66977f1 | 22742 | fi |
7eda51e0 JF |
22743 | if test -n "$LIBFFI_LIBS"; then |
22744 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
22745 | elif test -n "$PKG_CONFIG"; then |
22746 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22748 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22749 | ac_status=$? |
22750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22751 | test $ac_status = 0; }; then | |
7eda51e0 | 22752 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 22753 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22754 | else |
22755 | pkg_failed=yes | |
22756 | fi | |
12833ad8 JF |
22757 | else |
22758 | pkg_failed=untried | |
b66977f1 DWT |
22759 | fi |
22760 | ||
22761 | ||
22762 | ||
22763 | if test $pkg_failed = yes; then | |
12833ad8 JF |
22764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22765 | $as_echo "no" >&6; } | |
b66977f1 DWT |
22766 | |
22767 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22768 | _pkg_short_errors_supported=yes | |
22769 | else | |
22770 | _pkg_short_errors_supported=no | |
22771 | fi | |
22772 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22773 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 22774 | else |
83c6fec8 | 22775 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
22776 | fi |
22777 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 22778 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 22779 | |
7eda51e0 JF |
22780 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
22781 | elif test $pkg_failed = untried; then | |
22782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22783 | $as_echo "no" >&6; } | |
22784 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
22785 | else | |
22786 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
22787 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
22788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22789 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
22790 | |
22791 | ||
7eda51e0 | 22792 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 22793 | haveit= |
d70419f1 | 22794 | for x in $CPPFLAGS; do |
b66977f1 DWT |
22795 | |
22796 | acl_save_prefix="$prefix" | |
22797 | prefix="$acl_final_prefix" | |
22798 | acl_save_exec_prefix="$exec_prefix" | |
22799 | exec_prefix="$acl_final_exec_prefix" | |
22800 | eval x=\"$x\" | |
22801 | exec_prefix="$acl_save_exec_prefix" | |
22802 | prefix="$acl_save_prefix" | |
22803 | ||
22804 | if test "X$x" = "X$element"; then | |
22805 | haveit=yes | |
22806 | break | |
22807 | fi | |
22808 | done | |
22809 | if test -z "$haveit"; then | |
d70419f1 | 22810 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
22811 | fi |
22812 | done | |
22813 | ||
22814 | ||
7eda51e0 | 22815 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
22816 | haveit= |
22817 | for x in $LIBS; do | |
22818 | ||
22819 | acl_save_prefix="$prefix" | |
22820 | prefix="$acl_final_prefix" | |
22821 | acl_save_exec_prefix="$exec_prefix" | |
22822 | exec_prefix="$acl_final_exec_prefix" | |
22823 | eval x=\"$x\" | |
22824 | exec_prefix="$acl_save_exec_prefix" | |
22825 | prefix="$acl_save_prefix" | |
22826 | ||
22827 | if test "X$x" = "X$element"; then | |
22828 | haveit=yes | |
22829 | break | |
22830 | fi | |
22831 | done | |
22832 | if test -z "$haveit"; then | |
22833 | LIBS="${LIBS}${LIBS:+ }$element" | |
22834 | fi | |
22835 | done | |
22836 | ||
22837 | ||
22838 | fi | |
22839 | ||
7eda51e0 JF |
22840 | else |
22841 | ||
22842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
22843 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
22844 | if ${ac_cv_search_ffi_call+:} false; then : | |
22845 | $as_echo_n "(cached) " >&6 | |
22846 | else | |
22847 | ac_func_search_save_LIBS=$LIBS | |
22848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22849 | /* end confdefs.h. */ | |
22850 | ||
22851 | /* Override any GCC internal prototype to avoid an error. | |
22852 | Use char because int might match the return type of a GCC | |
22853 | builtin and then its argument prototype would still apply. */ | |
22854 | #ifdef __cplusplus | |
22855 | extern "C" | |
22856 | #endif | |
22857 | char ffi_call (); | |
22858 | int | |
22859 | main () | |
22860 | { | |
22861 | return ffi_call (); | |
22862 | ; | |
22863 | return 0; | |
22864 | } | |
22865 | _ACEOF | |
22866 | for ac_lib in '' ffi; do | |
22867 | if test -z "$ac_lib"; then | |
22868 | ac_res="none required" | |
22869 | else | |
22870 | ac_res=-l$ac_lib | |
22871 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22872 | fi | |
22873 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22874 | ac_cv_search_ffi_call=$ac_res | |
22875 | fi | |
22876 | rm -f core conftest.err conftest.$ac_objext \ | |
22877 | conftest$ac_exeext | |
22878 | if ${ac_cv_search_ffi_call+:} false; then : | |
22879 | break | |
22880 | fi | |
22881 | done | |
22882 | if ${ac_cv_search_ffi_call+:} false; then : | |
22883 | ||
22884 | else | |
22885 | ac_cv_search_ffi_call=no | |
22886 | fi | |
22887 | rm conftest.$ac_ext | |
22888 | LIBS=$ac_func_search_save_LIBS | |
22889 | fi | |
22890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
22891 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
22892 | ac_res=$ac_cv_search_ffi_call | |
22893 | if test "$ac_res" != no; then : | |
22894 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22895 | ||
22896 | fi | |
22897 | ||
22898 | case $ac_cv_search_ffi_call in #( | |
22899 | no) : | |
b66977f1 DWT |
22900 | |
22901 | ||
22902 | pkg_failed=no | |
7eda51e0 JF |
22903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
22904 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 22905 | |
7eda51e0 JF |
22906 | if test -n "$LIBFFI_CFLAGS"; then |
22907 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
22908 | elif test -n "$PKG_CONFIG"; then |
22909 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22911 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22912 | ac_status=$? |
22913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22914 | test $ac_status = 0; }; then | |
7eda51e0 | 22915 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 22916 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22917 | else |
22918 | pkg_failed=yes | |
22919 | fi | |
12833ad8 JF |
22920 | else |
22921 | pkg_failed=untried | |
b66977f1 | 22922 | fi |
7eda51e0 JF |
22923 | if test -n "$LIBFFI_LIBS"; then |
22924 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
22925 | elif test -n "$PKG_CONFIG"; then |
22926 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22928 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22929 | ac_status=$? |
22930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22931 | test $ac_status = 0; }; then | |
7eda51e0 | 22932 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 22933 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22934 | else |
22935 | pkg_failed=yes | |
22936 | fi | |
12833ad8 JF |
22937 | else |
22938 | pkg_failed=untried | |
b66977f1 DWT |
22939 | fi |
22940 | ||
22941 | ||
22942 | ||
22943 | if test $pkg_failed = yes; then | |
12833ad8 JF |
22944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22945 | $as_echo "no" >&6; } | |
b66977f1 DWT |
22946 | |
22947 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22948 | _pkg_short_errors_supported=yes | |
22949 | else | |
22950 | _pkg_short_errors_supported=no | |
22951 | fi | |
22952 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22953 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 22954 | else |
83c6fec8 | 22955 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
22956 | fi |
22957 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 22958 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 22959 | |
7eda51e0 JF |
22960 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
22961 | elif test $pkg_failed = untried; then | |
22962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22963 | $as_echo "no" >&6; } | |
22964 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 22965 | else |
7eda51e0 JF |
22966 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
22967 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
22968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22969 | $as_echo "yes" >&6; } | |
b66977f1 | 22970 | |
b66977f1 | 22971 | |
7eda51e0 | 22972 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 22973 | haveit= |
d70419f1 | 22974 | for x in $CPPFLAGS; do |
7eda51e0 JF |
22975 | |
22976 | acl_save_prefix="$prefix" | |
22977 | prefix="$acl_final_prefix" | |
22978 | acl_save_exec_prefix="$exec_prefix" | |
22979 | exec_prefix="$acl_final_exec_prefix" | |
22980 | eval x=\"$x\" | |
22981 | exec_prefix="$acl_save_exec_prefix" | |
22982 | prefix="$acl_save_prefix" | |
22983 | ||
22984 | if test "X$x" = "X$element"; then | |
22985 | haveit=yes | |
22986 | break | |
22987 | fi | |
22988 | done | |
22989 | if test -z "$haveit"; then | |
d70419f1 | 22990 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
22991 | fi |
22992 | done | |
22993 | ||
22994 | ||
7eda51e0 JF |
22995 | for element in `$PKG_CONFIG --libs libffi`; do |
22996 | haveit= | |
22997 | for x in $LIBS; do | |
22998 | ||
22999 | acl_save_prefix="$prefix" | |
23000 | prefix="$acl_final_prefix" | |
23001 | acl_save_exec_prefix="$exec_prefix" | |
23002 | exec_prefix="$acl_final_exec_prefix" | |
23003 | eval x=\"$x\" | |
23004 | exec_prefix="$acl_save_exec_prefix" | |
23005 | prefix="$acl_save_prefix" | |
23006 | ||
23007 | if test "X$x" = "X$element"; then | |
23008 | haveit=yes | |
23009 | break | |
23010 | fi | |
23011 | done | |
23012 | if test -z "$haveit"; then | |
23013 | LIBS="${LIBS}${LIBS:+ }$element" | |
23014 | fi | |
23015 | done | |
23016 | ||
23017 | ||
23018 | fi ;; #( | |
23019 | *) : | |
23020 | ;; | |
23021 | esac | |
574d4720 JF |
23022 | for ac_func in ffi_prep_cif_var |
23023 | do : | |
23024 | ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var" | |
23025 | if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then : | |
23026 | cat >>confdefs.h <<_ACEOF | |
23027 | #define HAVE_FFI_PREP_CIF_VAR 1 | |
23028 | _ACEOF | |
23029 | ||
23030 | fi | |
23031 | done | |
23032 | ||
7eda51e0 JF |
23033 | |
23034 | fi | |
296ee9a6 JF |
23035 | LTLIBFFI=$LIBS |
23036 | LIBS=$cy_save | |
23037 | ||
23038 | ||
7eda51e0 | 23039 | |
def90846 JF |
23040 | |
23041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5 | |
23042 | $as_echo_n "checking for framework JavaVM... " >&6; } | |
23043 | if ${ac_cv_framework_JavaVM+:} false; then : | |
23044 | $as_echo_n "(cached) " >&6 | |
23045 | else | |
23046 | ||
23047 | ac_check_framework_save_LIBS=$LIBS | |
23048 | LIBS="-framework JavaVM $LIBS" | |
23049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23050 | /* end confdefs.h. */ | |
23051 | ||
23052 | #include <JavaVM/jni.h> | |
23053 | ||
23054 | int | |
23055 | main () | |
23056 | { | |
23057 | JNI_GetCreatedJavaVMs(NULL, 0, NULL); | |
23058 | ; | |
23059 | return 0; | |
23060 | } | |
23061 | _ACEOF | |
23062 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23063 | ||
23064 | ac_cv_framework_JavaVM=yes | |
23065 | ||
23066 | else | |
23067 | ac_cv_framework_JavaVM=no | |
23068 | fi | |
23069 | rm -f core conftest.err conftest.$ac_objext \ | |
23070 | conftest$ac_exeext conftest.$ac_ext | |
23071 | LIBS=$ac_check_framework_save_LIBS | |
23072 | ||
23073 | fi | |
23074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5 | |
23075 | $as_echo "$ac_cv_framework_JavaVM" >&6; } | |
23076 | if test $ac_cv_framework_JavaVM = yes; then : | |
23077 | ||
23078 | ||
23079 | for element in "-framework JavaVM"; do | |
23080 | haveit= | |
23081 | for x in $LIBS; do | |
23082 | ||
23083 | acl_save_prefix="$prefix" | |
23084 | prefix="$acl_final_prefix" | |
23085 | acl_save_exec_prefix="$exec_prefix" | |
23086 | exec_prefix="$acl_final_exec_prefix" | |
23087 | eval x=\"$x\" | |
23088 | exec_prefix="$acl_save_exec_prefix" | |
23089 | prefix="$acl_save_prefix" | |
23090 | ||
23091 | if test "X$x" = "X$element"; then | |
23092 | haveit=yes | |
23093 | break | |
23094 | fi | |
23095 | done | |
23096 | if test -z "$haveit"; then | |
23097 | LIBS="${LIBS}${LIBS:+ }$element" | |
23098 | fi | |
23099 | done | |
23100 | ||
23101 | ||
23102 | CY_JAVA=1 | |
23103 | ||
23104 | ||
23105 | ||
23106 | else | |
23107 | ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" | |
39ed1631 JF |
23108 | if test "x$ac_cv_header_jni_h" = xyes; then : |
23109 | ||
23110 | CY_JAVA=1 | |
23111 | ||
23112 | ||
23113 | cy_save=$LIBS | |
23114 | LIBS= | |
23115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5 | |
23116 | $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; } | |
23117 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23118 | $as_echo_n "(cached) " >&6 | |
23119 | else | |
23120 | ac_func_search_save_LIBS=$LIBS | |
23121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23122 | /* end confdefs.h. */ | |
23123 | ||
23124 | /* Override any GCC internal prototype to avoid an error. | |
23125 | Use char because int might match the return type of a GCC | |
23126 | builtin and then its argument prototype would still apply. */ | |
23127 | #ifdef __cplusplus | |
23128 | extern "C" | |
23129 | #endif | |
23130 | char JNI_GetCreatedJavaVMs (); | |
23131 | int | |
23132 | main () | |
23133 | { | |
23134 | return JNI_GetCreatedJavaVMs (); | |
23135 | ; | |
23136 | return 0; | |
23137 | } | |
23138 | _ACEOF | |
23139 | for ac_lib in '' dvm; do | |
23140 | if test -z "$ac_lib"; then | |
23141 | ac_res="none required" | |
23142 | else | |
23143 | ac_res=-l$ac_lib | |
23144 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23145 | fi | |
23146 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23147 | ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res | |
23148 | fi | |
23149 | rm -f core conftest.err conftest.$ac_objext \ | |
23150 | conftest$ac_exeext | |
23151 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23152 | break | |
23153 | fi | |
23154 | done | |
23155 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23156 | ||
23157 | else | |
23158 | ac_cv_search_JNI_GetCreatedJavaVMs=no | |
23159 | fi | |
23160 | rm conftest.$ac_ext | |
23161 | LIBS=$ac_func_search_save_LIBS | |
23162 | fi | |
23163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5 | |
23164 | $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; } | |
23165 | ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs | |
23166 | if test "$ac_res" != no; then : | |
23167 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23168 | ||
23169 | ||
23170 | fi | |
23171 | ||
23172 | LTJAVA=$LIBS | |
23173 | LIBS=$cy_save | |
23174 | ||
23175 | ||
23176 | ||
23177 | else | |
23178 | ||
23179 | CY_JAVA=0 | |
23180 | ||
23181 | ||
23182 | fi | |
23183 | ||
23184 | ||
5f29ae16 JF |
23185 | fi |
23186 | ||
23187 | ||
23188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Ruby" >&5 | |
23189 | $as_echo_n "checking for framework Ruby... " >&6; } | |
23190 | if ${ac_cv_framework_Ruby+:} false; then : | |
23191 | $as_echo_n "(cached) " >&6 | |
23192 | else | |
23193 | ||
23194 | ac_check_framework_save_LIBS=$LIBS | |
23195 | LIBS="-framework Ruby $LIBS" | |
23196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23197 | /* end confdefs.h. */ | |
23198 | ||
23199 | #include <Ruby/ruby.h> | |
23200 | ||
23201 | int | |
23202 | main () | |
23203 | { | |
23204 | ruby_init(); | |
23205 | ; | |
23206 | return 0; | |
23207 | } | |
23208 | _ACEOF | |
23209 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23210 | ||
23211 | ac_cv_framework_Ruby=yes | |
23212 | ||
23213 | else | |
23214 | ac_cv_framework_Ruby=no | |
23215 | fi | |
23216 | rm -f core conftest.err conftest.$ac_objext \ | |
23217 | conftest$ac_exeext conftest.$ac_ext | |
23218 | LIBS=$ac_check_framework_save_LIBS | |
23219 | ||
23220 | fi | |
23221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ruby" >&5 | |
23222 | $as_echo "$ac_cv_framework_Ruby" >&6; } | |
23223 | if test $ac_cv_framework_Ruby = yes; then : | |
23224 | ||
23225 | ||
23226 | for element in "-framework Ruby"; do | |
23227 | haveit= | |
23228 | for x in $LIBS; do | |
23229 | ||
23230 | acl_save_prefix="$prefix" | |
23231 | prefix="$acl_final_prefix" | |
23232 | acl_save_exec_prefix="$exec_prefix" | |
23233 | exec_prefix="$acl_final_exec_prefix" | |
23234 | eval x=\"$x\" | |
23235 | exec_prefix="$acl_save_exec_prefix" | |
23236 | prefix="$acl_save_prefix" | |
23237 | ||
23238 | if test "X$x" = "X$element"; then | |
23239 | haveit=yes | |
23240 | break | |
23241 | fi | |
23242 | done | |
23243 | if test -z "$haveit"; then | |
23244 | LIBS="${LIBS}${LIBS:+ }$element" | |
23245 | fi | |
23246 | done | |
23247 | ||
23248 | ||
23249 | CY_RUBY=1 | |
23250 | ||
23251 | ||
23252 | ||
23253 | else | |
23254 | for ac_header in ruby.h | |
23255 | do : | |
23256 | ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default" | |
23257 | if test "x$ac_cv_header_ruby_h" = xyes; then : | |
23258 | cat >>confdefs.h <<_ACEOF | |
23259 | #define HAVE_RUBY_H 1 | |
23260 | _ACEOF | |
23261 | ||
23262 | CY_RUBY=1 | |
23263 | ||
23264 | ||
23265 | cy_save=$LIBS | |
23266 | LIBS= | |
23267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ruby_init" >&5 | |
23268 | $as_echo_n "checking for library containing ruby_init... " >&6; } | |
23269 | if ${ac_cv_search_ruby_init+:} false; then : | |
23270 | $as_echo_n "(cached) " >&6 | |
23271 | else | |
23272 | ac_func_search_save_LIBS=$LIBS | |
23273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23274 | /* end confdefs.h. */ | |
23275 | ||
23276 | /* Override any GCC internal prototype to avoid an error. | |
23277 | Use char because int might match the return type of a GCC | |
23278 | builtin and then its argument prototype would still apply. */ | |
23279 | #ifdef __cplusplus | |
23280 | extern "C" | |
23281 | #endif | |
23282 | char ruby_init (); | |
23283 | int | |
23284 | main () | |
23285 | { | |
23286 | return ruby_init (); | |
23287 | ; | |
23288 | return 0; | |
23289 | } | |
23290 | _ACEOF | |
23291 | for ac_lib in '' ruby; do | |
23292 | if test -z "$ac_lib"; then | |
23293 | ac_res="none required" | |
23294 | else | |
23295 | ac_res=-l$ac_lib | |
23296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23297 | fi | |
23298 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23299 | ac_cv_search_ruby_init=$ac_res | |
23300 | fi | |
23301 | rm -f core conftest.err conftest.$ac_objext \ | |
23302 | conftest$ac_exeext | |
23303 | if ${ac_cv_search_ruby_init+:} false; then : | |
23304 | break | |
23305 | fi | |
23306 | done | |
23307 | if ${ac_cv_search_ruby_init+:} false; then : | |
23308 | ||
23309 | else | |
23310 | ac_cv_search_ruby_init=no | |
23311 | fi | |
23312 | rm conftest.$ac_ext | |
23313 | LIBS=$ac_func_search_save_LIBS | |
23314 | fi | |
23315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ruby_init" >&5 | |
23316 | $as_echo "$ac_cv_search_ruby_init" >&6; } | |
23317 | ac_res=$ac_cv_search_ruby_init | |
23318 | if test "$ac_res" != no; then : | |
23319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23320 | ||
23321 | fi | |
23322 | ||
23323 | LTRUBY=$LIBS | |
23324 | LIBS=$cy_save | |
23325 | ||
23326 | ||
23327 | ||
23328 | else | |
23329 | ||
23330 | CY_RUBY=0 | |
23331 | ||
23332 | ||
23333 | fi | |
23334 | ||
23335 | done | |
23336 | ||
def90846 | 23337 | fi |
39ed1631 | 23338 | |
7eda51e0 JF |
23339 | ac_ext=mm |
23340 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
23341 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23342 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23343 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
23344 | ||
23345 | ||
23346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
23347 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
23348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23349 | /* end confdefs.h. */ | |
23350 | ||
23351 | _ACEOF | |
23352 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
23353 | ||
23354 | CY_OBJECTIVEC=1 | |
23355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23356 | $as_echo "yes" >&6; } | |
23357 | ||
23358 | else | |
23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 23360 | $as_echo "no" >&6; } |
7eda51e0 JF |
23361 | fi |
23362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 23363 | |
7eda51e0 | 23364 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 23365 | |
7eda51e0 | 23366 | |
babf7fe8 JF |
23367 | cy_save=$LIBS |
23368 | LIBS= | |
23369 | ||
7eda51e0 JF |
23370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
23371 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
23372 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
23373 | $as_echo_n "(cached) " >&6 |
23374 | else | |
23375 | ||
23376 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 23377 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
23378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23379 | /* end confdefs.h. */ | |
23380 | ||
7eda51e0 | 23381 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
23382 | |
23383 | int | |
23384 | main () | |
23385 | { | |
7eda51e0 | 23386 | CFAllocatorGetDefault(); |
b66977f1 DWT |
23387 | ; |
23388 | return 0; | |
23389 | } | |
23390 | _ACEOF | |
7eda51e0 | 23391 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 23392 | |
7eda51e0 | 23393 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
23394 | |
23395 | else | |
7eda51e0 | 23396 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
23397 | fi |
23398 | rm -f core conftest.err conftest.$ac_objext \ | |
23399 | conftest$ac_exeext conftest.$ac_ext | |
23400 | LIBS=$ac_check_framework_save_LIBS | |
23401 | ||
23402 | fi | |
7eda51e0 JF |
23403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
23404 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
23405 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
23406 | |
23407 | ||
7eda51e0 | 23408 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
23409 | haveit= |
23410 | for x in $LIBS; do | |
23411 | ||
23412 | acl_save_prefix="$prefix" | |
23413 | prefix="$acl_final_prefix" | |
23414 | acl_save_exec_prefix="$exec_prefix" | |
23415 | exec_prefix="$acl_final_exec_prefix" | |
23416 | eval x=\"$x\" | |
23417 | exec_prefix="$acl_save_exec_prefix" | |
23418 | prefix="$acl_save_prefix" | |
23419 | ||
23420 | if test "X$x" = "X$element"; then | |
23421 | haveit=yes | |
23422 | break | |
23423 | fi | |
23424 | done | |
23425 | if test -z "$haveit"; then | |
23426 | LIBS="${LIBS}${LIBS:+ }$element" | |
23427 | fi | |
23428 | done | |
23429 | ||
66170b30 | 23430 | |
66170b30 JF |
23431 | |
23432 | ||
b66977f1 | 23433 | |
b66977f1 | 23434 | |
7eda51e0 JF |
23435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
23436 | $as_echo_n "checking for framework Foundation... " >&6; } | |
23437 | if ${ac_cv_framework_Foundation+:} false; then : | |
23438 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 23439 | else |
b66977f1 | 23440 | |
7eda51e0 JF |
23441 | ac_check_framework_save_LIBS=$LIBS |
23442 | LIBS="-framework Foundation $LIBS" | |
23443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23444 | /* end confdefs.h. */ | |
66170b30 | 23445 | |
7eda51e0 | 23446 | #include <Foundation/NSObject.h> |
b66977f1 | 23447 | |
7eda51e0 JF |
23448 | int |
23449 | main () | |
23450 | { | |
23451 | [[NSObject alloc] init]; | |
23452 | ; | |
23453 | return 0; | |
23454 | } | |
23455 | _ACEOF | |
23456 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 23457 | |
7eda51e0 | 23458 | ac_cv_framework_Foundation=yes |
b66977f1 | 23459 | |
7eda51e0 JF |
23460 | else |
23461 | ac_cv_framework_Foundation=no | |
23462 | fi | |
23463 | rm -f core conftest.err conftest.$ac_objext \ | |
23464 | conftest$ac_exeext conftest.$ac_ext | |
23465 | LIBS=$ac_check_framework_save_LIBS | |
23466 | ||
23467 | fi | |
23468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
23469 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
23470 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
23471 | |
23472 | ||
7eda51e0 | 23473 | for element in "-framework Foundation"; do |
b66977f1 DWT |
23474 | haveit= |
23475 | for x in $LIBS; do | |
23476 | ||
23477 | acl_save_prefix="$prefix" | |
23478 | prefix="$acl_final_prefix" | |
23479 | acl_save_exec_prefix="$exec_prefix" | |
23480 | exec_prefix="$acl_final_exec_prefix" | |
23481 | eval x=\"$x\" | |
23482 | exec_prefix="$acl_save_exec_prefix" | |
23483 | prefix="$acl_save_prefix" | |
23484 | ||
23485 | if test "X$x" = "X$element"; then | |
23486 | haveit=yes | |
23487 | break | |
23488 | fi | |
23489 | done | |
23490 | if test -z "$haveit"; then | |
23491 | LIBS="${LIBS}${LIBS:+ }$element" | |
23492 | fi | |
23493 | done | |
23494 | ||
7eda51e0 JF |
23495 | cat >>confdefs.h <<_ACEOF |
23496 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
23497 | _ACEOF | |
23498 | ||
b66977f1 | 23499 | |
7eda51e0 | 23500 | fi |
b66977f1 DWT |
23501 | |
23502 | ||
7eda51e0 | 23503 | else |
b66977f1 | 23504 | |
b66977f1 | 23505 | |
7eda51e0 JF |
23506 | for ac_prog in gnustep-config |
23507 | do | |
23508 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23509 | set dummy $ac_prog; ac_word=$2 | |
23510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
23511 | $as_echo_n "checking for $ac_word... " >&6; } | |
23512 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
23513 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 23514 | else |
7eda51e0 JF |
23515 | if test -n "$GNUSTEP_CONFIG"; then |
23516 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 23517 | else |
7eda51e0 JF |
23518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23519 | for as_dir in $PATH | |
23520 | do | |
23521 | IFS=$as_save_IFS | |
23522 | test -z "$as_dir" && as_dir=. | |
23523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23524 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23525 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
23526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23527 | break 2 | |
23528 | fi | |
23529 | done | |
23530 | done | |
23531 | IFS=$as_save_IFS | |
b66977f1 | 23532 | |
b66977f1 | 23533 | fi |
b66977f1 | 23534 | fi |
7eda51e0 JF |
23535 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
23536 | if test -n "$GNUSTEP_CONFIG"; then | |
23537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
23538 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 23539 | else |
7eda51e0 | 23540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 23541 | $as_echo "no" >&6; } |
b66977f1 | 23542 | fi |
66170b30 | 23543 | |
66170b30 | 23544 | |
7eda51e0 JF |
23545 | test -n "$GNUSTEP_CONFIG" && break |
23546 | done | |
b66977f1 | 23547 | |
b66977f1 | 23548 | |
7eda51e0 | 23549 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 23550 | |
b66977f1 DWT |
23551 | |
23552 | ||
7eda51e0 | 23553 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 23554 | haveit= |
7eda51e0 | 23555 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
23556 | |
23557 | acl_save_prefix="$prefix" | |
23558 | prefix="$acl_final_prefix" | |
23559 | acl_save_exec_prefix="$exec_prefix" | |
23560 | exec_prefix="$acl_final_exec_prefix" | |
23561 | eval x=\"$x\" | |
23562 | exec_prefix="$acl_save_exec_prefix" | |
23563 | prefix="$acl_save_prefix" | |
23564 | ||
23565 | if test "X$x" = "X$element"; then | |
23566 | haveit=yes | |
23567 | break | |
23568 | fi | |
23569 | done | |
babf7fe8 JF |
23570 | if test -z "$haveit"; then |
23571 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
23572 | fi | |
23573 | done | |
a667869d | 23574 | |
a667869d | 23575 | |
babf7fe8 | 23576 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 23577 | haveit= |
babf7fe8 | 23578 | for x in $LIBS; do |
a667869d | 23579 | |
632b71ea DWT |
23580 | acl_save_prefix="$prefix" |
23581 | prefix="$acl_final_prefix" | |
23582 | acl_save_exec_prefix="$exec_prefix" | |
23583 | exec_prefix="$acl_final_exec_prefix" | |
23584 | eval x=\"$x\" | |
23585 | exec_prefix="$acl_save_exec_prefix" | |
23586 | prefix="$acl_save_prefix" | |
23587 | ||
23588 | if test "X$x" = "X$element"; then | |
23589 | haveit=yes | |
23590 | break | |
23591 | fi | |
23592 | done | |
23593 | if test -z "$haveit"; then | |
babf7fe8 | 23594 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
23595 | fi |
23596 | done | |
23597 | ||
5053a6d1 | 23598 | |
babf7fe8 JF |
23599 | else |
23600 | CY_OBJECTIVEC=0 | |
23601 | ||
23602 | fi | |
23603 | ||
23604 | fi | |
23605 | LTOBJECTIVEC=$LIBS | |
23606 | LIBS=$cy_save | |
23607 | ||
23608 | ||
23609 | ||
23610 | fi | |
23611 | ||
23612 | ac_ext=cpp | |
23613 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23617 | ||
23618 | ;; #( | |
23619 | *) : | |
23620 | ;; | |
23621 | esac | |
23622 | ||
39ed1631 JF |
23623 | if test "x$CY_JAVA" = x1; then |
23624 | CY_JAVA_TRUE= | |
23625 | CY_JAVA_FALSE='#' | |
23626 | else | |
23627 | CY_JAVA_TRUE='#' | |
23628 | CY_JAVA_FALSE= | |
23629 | fi | |
23630 | ||
5f29ae16 JF |
23631 | if test "x$CY_RUBY" = x1; then |
23632 | CY_RUBY_TRUE= | |
23633 | CY_RUBY_FALSE='#' | |
23634 | else | |
23635 | CY_RUBY_TRUE='#' | |
23636 | CY_RUBY_FALSE= | |
23637 | fi | |
23638 | ||
babf7fe8 JF |
23639 | if test "x$CY_OBJECTIVEC" = x1; then |
23640 | CY_OBJECTIVEC_TRUE= | |
23641 | CY_OBJECTIVEC_FALSE='#' | |
23642 | else | |
23643 | CY_OBJECTIVEC_TRUE='#' | |
23644 | CY_OBJECTIVEC_FALSE= | |
23645 | fi | |
23646 | ||
23647 | ||
23648 | ||
8d20f0f1 JF |
23649 | # Check whether --with-libclang was given. |
23650 | if test "${with_libclang+set}" = set; then : | |
23651 | withval=$with_libclang; | |
23652 | else | |
23653 | with_libclang=no | |
23654 | fi | |
23655 | ||
23656 | ||
23657 | if test "x$with_libclang" != "xno"; then : | |
23658 | ||
23659 | CY_LIBCLANG="$with_libclang" | |
23660 | ||
23661 | fi | |
23662 | if test "x$with_libclang" != "xno"; then | |
23663 | CY_PRELINK_TRUE= | |
23664 | CY_PRELINK_FALSE='#' | |
23665 | else | |
23666 | CY_PRELINK_TRUE='#' | |
23667 | CY_PRELINK_FALSE= | |
23668 | fi | |
23669 | ||
23670 | ||
23671 | ||
babf7fe8 JF |
23672 | cy_save=$LIBS |
23673 | LIBS= | |
23674 | ||
23675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
23676 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
23677 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 23678 | $as_echo_n "(cached) " >&6 |
a667869d | 23679 | else |
632b71ea | 23680 | |
babf7fe8 JF |
23681 | ORIG_LIBS="$LIBS" |
23682 | for readline_lib in readline edit editline; do | |
23683 | for termcap_lib in "" termcap curses ncurses; do | |
23684 | if test -z "$termcap_lib"; then | |
23685 | TRY_LIB="-l$readline_lib" | |
23686 | else | |
23687 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
23688 | fi | |
23689 | LIBS="$ORIG_LIBS $TRY_LIB" | |
23690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 23691 | /* end confdefs.h. */ |
632b71ea | 23692 | |
babf7fe8 JF |
23693 | /* Override any GCC internal prototype to avoid an error. |
23694 | Use char because int might match the return type of a GCC | |
23695 | builtin and then its argument prototype would still apply. */ | |
23696 | #ifdef __cplusplus | |
23697 | extern "C" | |
23698 | #endif | |
23699 | char readline (); | |
5053a6d1 DWT |
23700 | int |
23701 | main () | |
23702 | { | |
babf7fe8 | 23703 | return readline (); |
5053a6d1 DWT |
23704 | ; |
23705 | return 0; | |
23706 | } | |
23707 | _ACEOF | |
babf7fe8 JF |
23708 | if ac_fn_cxx_try_link "$LINENO"; then : |
23709 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
23710 | fi |
23711 | rm -f core conftest.err conftest.$ac_objext \ | |
23712 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
23713 | if test -n "$ax_cv_lib_readline"; then |
23714 | break | |
23715 | fi | |
23716 | done | |
23717 | if test -n "$ax_cv_lib_readline"; then | |
23718 | break | |
23719 | fi | |
23720 | done | |
23721 | if test -z "$ax_cv_lib_readline"; then | |
23722 | ax_cv_lib_readline="no" | |
23723 | fi | |
23724 | LIBS="$ORIG_LIBS" | |
23725 | ||
23726 | fi | |
23727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
23728 | $as_echo "$ax_cv_lib_readline" >&6; } | |
23729 | ||
23730 | if test "$ax_cv_lib_readline" != "no"; then | |
23731 | LIBS="$LIBS $ax_cv_lib_readline" | |
23732 | ||
23733 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
23734 | ||
23735 | for ac_header in readline.h readline/readline.h | |
23736 | do : | |
23737 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23738 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23739 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
23740 | cat >>confdefs.h <<_ACEOF | |
23741 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23742 | _ACEOF | |
23743 | ||
23744 | fi | |
23745 | ||
23746 | done | |
23747 | ||
23748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
23749 | $as_echo_n "checking whether readline supports history... " >&6; } | |
23750 | if ${ax_cv_lib_readline_history+:} false; then : | |
23751 | $as_echo_n "(cached) " >&6 | |
23752 | else | |
23753 | ||
23754 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
23755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23756 | /* end confdefs.h. */ | |
5053a6d1 | 23757 | |
babf7fe8 JF |
23758 | /* Override any GCC internal prototype to avoid an error. |
23759 | Use char because int might match the return type of a GCC | |
23760 | builtin and then its argument prototype would still apply. */ | |
23761 | #ifdef __cplusplus | |
23762 | extern "C" | |
23763 | #endif | |
23764 | char add_history (); | |
058f1bc8 DWT |
23765 | int |
23766 | main () | |
23767 | { | |
babf7fe8 | 23768 | return add_history (); |
058f1bc8 DWT |
23769 | ; |
23770 | return 0; | |
23771 | } | |
23772 | _ACEOF | |
babf7fe8 JF |
23773 | if ac_fn_cxx_try_link "$LINENO"; then : |
23774 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
23775 | fi |
23776 | rm -f core conftest.err conftest.$ac_objext \ | |
23777 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 23778 | |
a667869d | 23779 | fi |
babf7fe8 JF |
23780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
23781 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
23782 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 23783 | |
babf7fe8 | 23784 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 23785 | |
babf7fe8 JF |
23786 | for ac_header in history.h readline/history.h |
23787 | do : | |
23788 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23789 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23790 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
23791 | cat >>confdefs.h <<_ACEOF | |
23792 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 23793 | _ACEOF |
babf7fe8 | 23794 | |
7eda51e0 | 23795 | fi |
058f1bc8 | 23796 | |
babf7fe8 | 23797 | done |
058f1bc8 | 23798 | |
babf7fe8 | 23799 | fi |
7eda51e0 | 23800 | fi |
058f1bc8 | 23801 | |
babf7fe8 JF |
23802 | LTLIBREADLINE=$LIBS |
23803 | LIBS=$cy_save | |
058f1bc8 | 23804 | |
058f1bc8 | 23805 | |
babf7fe8 JF |
23806 | case $ax_cv_lib_readline in #( |
23807 | no) : | |
23808 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
23809 | *) : | |
23810 | ;; | |
23811 | esac | |
058f1bc8 DWT |
23812 | |
23813 | ||
babf7fe8 JF |
23814 | cy_save=$LIBS |
23815 | LIBS= | |
23816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
23817 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
23818 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
23819 | $as_echo_n "(cached) " >&6 |
23820 | else | |
babf7fe8 JF |
23821 | ac_func_search_save_LIBS=$LIBS |
23822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
23823 | /* end confdefs.h. */ |
23824 | ||
babf7fe8 JF |
23825 | /* Override any GCC internal prototype to avoid an error. |
23826 | Use char because int might match the return type of a GCC | |
23827 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 23828 | #ifdef __cplusplus |
babf7fe8 | 23829 | extern "C" |
7eda51e0 | 23830 | #endif |
babf7fe8 | 23831 | char cur_term (); |
7eda51e0 JF |
23832 | int |
23833 | main () | |
23834 | { | |
babf7fe8 | 23835 | return cur_term (); |
7eda51e0 JF |
23836 | ; |
23837 | return 0; | |
23838 | } | |
23839 | _ACEOF | |
a93f15c0 | 23840 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
23841 | if test -z "$ac_lib"; then |
23842 | ac_res="none required" | |
23843 | else | |
23844 | ac_res=-l$ac_lib | |
23845 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23846 | fi | |
23847 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23848 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 23849 | fi |
babf7fe8 JF |
23850 | rm -f core conftest.err conftest.$ac_objext \ |
23851 | conftest$ac_exeext | |
23852 | if ${ac_cv_search_cur_term+:} false; then : | |
23853 | break | |
7eda51e0 | 23854 | fi |
babf7fe8 JF |
23855 | done |
23856 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 23857 | |
babf7fe8 JF |
23858 | else |
23859 | ac_cv_search_cur_term=no | |
23860 | fi | |
23861 | rm conftest.$ac_ext | |
23862 | LIBS=$ac_func_search_save_LIBS | |
23863 | fi | |
23864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
23865 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
23866 | ac_res=$ac_cv_search_cur_term | |
23867 | if test "$ac_res" != no; then : | |
23868 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 23869 | |
babf7fe8 | 23870 | fi |
058f1bc8 | 23871 | |
babf7fe8 JF |
23872 | LTLIBTERMCAP=$LIBS |
23873 | LIBS=$cy_save | |
058f1bc8 | 23874 | |
058f1bc8 | 23875 | |
66170b30 JF |
23876 | |
23877 | ||
3615a2f7 JF |
23878 | |
23879 | ||
9777bd50 JF |
23880 | SO=$acl_shlibext |
23881 | ||
e1cce270 | 23882 | |
a243b558 JF |
23883 | ac_config_files="$ac_config_files Makefile" |
23884 | ||
9c60689e DWT |
23885 | cat >confcache <<\_ACEOF |
23886 | # This file is a shell script that caches the results of configure | |
23887 | # tests run on this system so they can be shared between configure | |
23888 | # scripts and configure runs, see configure's option --config-cache. | |
23889 | # It is not useful on other systems. If it contains results you don't | |
23890 | # want to keep, you may remove or edit it. | |
23891 | # | |
23892 | # config.status only pays attention to the cache file if you give it | |
23893 | # the --recheck option to rerun configure. | |
23894 | # | |
23895 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23896 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23897 | # following values. | |
23898 | ||
23899 | _ACEOF | |
23900 | ||
23901 | # The following way of writing the cache mishandles newlines in values, | |
23902 | # but we know of no workaround that is simple, portable, and efficient. | |
23903 | # So, we kill variables containing newlines. | |
23904 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23905 | # and sets the high bit in the cache file unless we assign to the vars. | |
23906 | ( | |
23907 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23908 | eval ac_val=\$$ac_var | |
23909 | case $ac_val in #( | |
23910 | *${as_nl}*) | |
23911 | case $ac_var in #( | |
23912 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
23913 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
23914 | esac | |
23915 | case $ac_var in #( | |
23916 | _ | IFS | as_nl) ;; #( | |
23917 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
23918 | *) { eval $ac_var=; unset $ac_var;} ;; | |
23919 | esac ;; | |
23920 | esac | |
23921 | done | |
23922 | ||
23923 | (set) 2>&1 | | |
23924 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
23925 | *${as_nl}ac_space=\ *) | |
23926 | # `set' does not quote correctly, so add quotes: double-quote | |
23927 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
23928 | sed -n \ | |
23929 | "s/'/'\\\\''/g; | |
23930 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
23931 | ;; #( | |
23932 | *) | |
23933 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23934 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
23935 | ;; | |
23936 | esac | | |
23937 | sort | |
23938 | ) | | |
23939 | sed ' | |
23940 | /^ac_cv_env_/b end | |
23941 | t clear | |
23942 | :clear | |
23943 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23944 | t end | |
23945 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23946 | :end' >>confcache | |
23947 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
23948 | if test -w "$cache_file"; then | |
ee134472 | 23949 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
23950 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
23951 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
23952 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
23953 | cat confcache >"$cache_file" | |
23954 | else | |
23955 | case $cache_file in #( | |
23956 | */* | ?:*) | |
23957 | mv -f confcache "$cache_file"$$ && | |
23958 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
23959 | *) | |
23960 | mv -f confcache "$cache_file" ;; | |
23961 | esac | |
23962 | fi | |
23963 | fi | |
9c60689e DWT |
23964 | else |
23965 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
23966 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
23967 | fi | |
23968 | fi | |
23969 | rm -f confcache | |
23970 | ||
23971 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23972 | # Let make expand exec_prefix. | |
23973 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23974 | ||
296ee9a6 | 23975 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
23976 | |
23977 | ac_libobjs= | |
23978 | ac_ltlibobjs= | |
12833ad8 | 23979 | U= |
9c60689e DWT |
23980 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
23981 | # 1. Remove the extension, and $U if already installed. | |
23982 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
23983 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
23984 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23985 | # will be set to the directory where LIBOBJS objects are built. | |
23986 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23987 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
23988 | done | |
23989 | LIBOBJS=$ac_libobjs | |
23990 | ||
23991 | LTLIBOBJS=$ac_ltlibobjs | |
23992 | ||
23993 | ||
66170b30 JF |
23994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
23995 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
23996 | if test -n "$am_sleep_pid"; then | |
23997 | # Hide warnings about reused PIDs. | |
23998 | wait $am_sleep_pid 2>/dev/null | |
23999 | fi | |
24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
24001 | $as_echo "done" >&6; } | |
24002 | if test -n "$EXEEXT"; then | |
24003 | am__EXEEXT_TRUE= | |
24004 | am__EXEEXT_FALSE='#' | |
24005 | else | |
24006 | am__EXEEXT_TRUE='#' | |
24007 | am__EXEEXT_FALSE= | |
24008 | fi | |
24009 | ||
babf7fe8 JF |
24010 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
24011 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
24012 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24013 | fi | |
66170b30 JF |
24014 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
24015 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
24016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24017 | fi | |
a93f15c0 JF |
24018 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
24019 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
24020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24021 | fi | |
66170b30 JF |
24022 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
24023 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
24024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24025 | fi | |
24026 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
24027 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
24028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24029 | fi | |
8d20f0f1 JF |
24030 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
24031 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
24032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24033 | fi | |
24034 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
24035 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
24036 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24037 | fi | |
a93f15c0 JF |
24038 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
24039 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
24040 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
24041 | fi | |
a4287117 JF |
24042 | if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then |
24043 | as_fn_error $? "conditional \"CY_ATTACH\" was never defined. | |
24044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24045 | fi | |
a243b558 JF |
24046 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
24047 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
24048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24049 | fi | |
39ed1631 JF |
24050 | if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then |
24051 | as_fn_error $? "conditional \"CY_JAVA\" was never defined. | |
24052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24053 | fi | |
5f29ae16 JF |
24054 | if test -z "${CY_RUBY_TRUE}" && test -z "${CY_RUBY_FALSE}"; then |
24055 | as_fn_error $? "conditional \"CY_RUBY\" was never defined. | |
24056 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24057 | fi | |
a243b558 JF |
24058 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then |
24059 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
24060 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24061 | fi | |
8d20f0f1 JF |
24062 | if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then |
24063 | as_fn_error $? "conditional \"CY_PRELINK\" was never defined. | |
24064 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
24065 | fi | |
9c60689e | 24066 | |
ee134472 | 24067 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
24068 | ac_write_fail=0 |
24069 | ac_clean_files_save=$ac_clean_files | |
24070 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
24071 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
24072 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
24073 | as_write_fail=0 | |
24074 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
24075 | #! $SHELL | |
24076 | # Generated by $as_me. | |
24077 | # Run this file to recreate the current configuration. | |
24078 | # Compiler output produced by configure, useful for debugging | |
24079 | # configure, is in config.log if it exists. | |
24080 | ||
24081 | debug=false | |
24082 | ac_cs_recheck=false | |
24083 | ac_cs_silent=false | |
24084 | ||
24085 | SHELL=\${CONFIG_SHELL-$SHELL} | |
24086 | export SHELL | |
24087 | _ASEOF | |
24088 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
24089 | ## -------------------- ## | |
24090 | ## M4sh Initialization. ## | |
24091 | ## -------------------- ## | |
24092 | ||
24093 | # Be more Bourne compatible | |
24094 | DUALCASE=1; export DUALCASE # for MKS sh | |
24095 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
24096 | emulate sh | |
24097 | NULLCMD=: | |
24098 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
24099 | # is contrary to our usage. Disable this feature. | |
24100 | alias -g '${1+"$@"}'='"$@"' | |
24101 | setopt NO_GLOB_SUBST | |
24102 | else | |
24103 | case `(set -o) 2>/dev/null` in #( | |
24104 | *posix*) : | |
24105 | set -o posix ;; #( | |
24106 | *) : | |
24107 | ;; | |
24108 | esac | |
24109 | fi | |
24110 | ||
24111 | ||
24112 | as_nl=' | |
24113 | ' | |
24114 | export as_nl | |
24115 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
24116 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
24117 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
24118 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
24119 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
24120 | # but without wasting forks for bash or zsh. | |
24121 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
24122 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
24123 | as_echo='print -r --' | |
24124 | as_echo_n='print -rn --' | |
24125 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
24126 | as_echo='printf %s\n' | |
24127 | as_echo_n='printf %s' | |
24128 | else | |
24129 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
24130 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
24131 | as_echo_n='/usr/ucb/echo -n' | |
24132 | else | |
24133 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
24134 | as_echo_n_body='eval | |
24135 | arg=$1; | |
24136 | case $arg in #( | |
24137 | *"$as_nl"*) | |
24138 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
24139 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
24140 | esac; | |
24141 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
24142 | ' | |
24143 | export as_echo_n_body | |
24144 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
24145 | fi | |
24146 | export as_echo_body | |
24147 | as_echo='sh -c $as_echo_body as_echo' | |
24148 | fi | |
24149 | ||
24150 | # The user is always right. | |
24151 | if test "${PATH_SEPARATOR+set}" != set; then | |
24152 | PATH_SEPARATOR=: | |
24153 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
24154 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
24155 | PATH_SEPARATOR=';' | |
24156 | } | |
24157 | fi | |
24158 | ||
24159 | ||
24160 | # IFS | |
24161 | # We need space, tab and new line, in precisely that order. Quoting is | |
24162 | # there to prevent editors from complaining about space-tab. | |
24163 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
24164 | # splitting by setting IFS to empty value.) | |
24165 | IFS=" "" $as_nl" | |
24166 | ||
24167 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 24168 | as_myself= |
9c60689e DWT |
24169 | case $0 in #(( |
24170 | *[\\/]* ) as_myself=$0 ;; | |
24171 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24172 | for as_dir in $PATH | |
24173 | do | |
24174 | IFS=$as_save_IFS | |
24175 | test -z "$as_dir" && as_dir=. | |
24176 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24177 | done | |
24178 | IFS=$as_save_IFS | |
24179 | ||
24180 | ;; | |
24181 | esac | |
24182 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24183 | # in which case we are not to be found in the path. | |
24184 | if test "x$as_myself" = x; then | |
24185 | as_myself=$0 | |
24186 | fi | |
24187 | if test ! -f "$as_myself"; then | |
24188 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
24189 | exit 1 | |
24190 | fi | |
24191 | ||
24192 | # Unset variables that we do not need and which cause bugs (e.g. in | |
24193 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
24194 | # suppresses any "Segmentation fault" message there. '((' could | |
24195 | # trigger a bug in pdksh 5.2.14. | |
24196 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
24197 | do eval test x\${$as_var+set} = xset \ | |
24198 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
24199 | done | |
24200 | PS1='$ ' | |
24201 | PS2='> ' | |
24202 | PS4='+ ' | |
24203 | ||
24204 | # NLS nuisances. | |
24205 | LC_ALL=C | |
24206 | export LC_ALL | |
24207 | LANGUAGE=C | |
24208 | export LANGUAGE | |
24209 | ||
24210 | # CDPATH. | |
24211 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
24212 | ||
24213 | ||
12833ad8 JF |
24214 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
24215 | # ---------------------------------------- | |
9c60689e DWT |
24216 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
24217 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 24218 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
24219 | as_fn_error () |
24220 | { | |
12833ad8 JF |
24221 | as_status=$1; test $as_status -eq 0 && as_status=1 |
24222 | if test "$4"; then | |
24223 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
24224 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 24225 | fi |
12833ad8 | 24226 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
24227 | as_fn_exit $as_status |
24228 | } # as_fn_error | |
24229 | ||
24230 | ||
24231 | # as_fn_set_status STATUS | |
24232 | # ----------------------- | |
24233 | # Set $? to STATUS, without forking. | |
24234 | as_fn_set_status () | |
24235 | { | |
24236 | return $1 | |
24237 | } # as_fn_set_status | |
24238 | ||
24239 | # as_fn_exit STATUS | |
24240 | # ----------------- | |
24241 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
24242 | as_fn_exit () | |
24243 | { | |
24244 | set +e | |
24245 | as_fn_set_status $1 | |
24246 | exit $1 | |
24247 | } # as_fn_exit | |
24248 | ||
24249 | # as_fn_unset VAR | |
24250 | # --------------- | |
24251 | # Portably unset VAR. | |
24252 | as_fn_unset () | |
24253 | { | |
24254 | { eval $1=; unset $1;} | |
24255 | } | |
24256 | as_unset=as_fn_unset | |
24257 | # as_fn_append VAR VALUE | |
24258 | # ---------------------- | |
24259 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
24260 | # advantage of any shell optimizations that allow amortized linear growth over | |
24261 | # repeated appends, instead of the typical quadratic growth present in naive | |
24262 | # implementations. | |
24263 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
24264 | eval 'as_fn_append () | |
24265 | { | |
24266 | eval $1+=\$2 | |
24267 | }' | |
24268 | else | |
24269 | as_fn_append () | |
24270 | { | |
24271 | eval $1=\$$1\$2 | |
24272 | } | |
24273 | fi # as_fn_append | |
24274 | ||
24275 | # as_fn_arith ARG... | |
24276 | # ------------------ | |
24277 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
24278 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
24279 | # must be portable across $(()) and expr. | |
24280 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
24281 | eval 'as_fn_arith () | |
24282 | { | |
24283 | as_val=$(( $* )) | |
24284 | }' | |
24285 | else | |
24286 | as_fn_arith () | |
24287 | { | |
24288 | as_val=`expr "$@" || test $? -eq 1` | |
24289 | } | |
24290 | fi # as_fn_arith | |
24291 | ||
24292 | ||
24293 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
24294 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
24295 | as_expr=expr | |
24296 | else | |
24297 | as_expr=false | |
24298 | fi | |
24299 | ||
24300 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
24301 | as_basename=basename | |
24302 | else | |
24303 | as_basename=false | |
24304 | fi | |
24305 | ||
24306 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
24307 | as_dirname=dirname | |
24308 | else | |
24309 | as_dirname=false | |
24310 | fi | |
24311 | ||
24312 | as_me=`$as_basename -- "$0" || | |
24313 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
24314 | X"$0" : 'X\(//\)$' \| \ | |
24315 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
24316 | $as_echo X/"$0" | | |
24317 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
24318 | s//\1/ | |
24319 | q | |
24320 | } | |
24321 | /^X\/\(\/\/\)$/{ | |
24322 | s//\1/ | |
24323 | q | |
24324 | } | |
24325 | /^X\/\(\/\).*/{ | |
24326 | s//\1/ | |
24327 | q | |
24328 | } | |
24329 | s/.*/./; q'` | |
24330 | ||
24331 | # Avoid depending upon Character Ranges. | |
24332 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24333 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24334 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24335 | as_cr_digits='0123456789' | |
24336 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24337 | ||
24338 | ECHO_C= ECHO_N= ECHO_T= | |
24339 | case `echo -n x` in #((((( | |
24340 | -n*) | |
24341 | case `echo 'xy\c'` in | |
24342 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24343 | xy) ECHO_C='\c';; | |
24344 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
24345 | ECHO_T=' ';; | |
24346 | esac;; | |
24347 | *) | |
24348 | ECHO_N='-n';; | |
24349 | esac | |
24350 | ||
24351 | rm -f conf$$ conf$$.exe conf$$.file | |
24352 | if test -d conf$$.dir; then | |
24353 | rm -f conf$$.dir/conf$$.file | |
24354 | else | |
24355 | rm -f conf$$.dir | |
24356 | mkdir conf$$.dir 2>/dev/null | |
24357 | fi | |
24358 | if (echo >conf$$.file) 2>/dev/null; then | |
24359 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
24360 | as_ln_s='ln -s' | |
24361 | # ... but there are two gotchas: | |
24362 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24363 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 24364 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 24365 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 24366 | as_ln_s='cp -pR' |
9c60689e DWT |
24367 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24368 | as_ln_s=ln | |
24369 | else | |
53ba6704 | 24370 | as_ln_s='cp -pR' |
9c60689e DWT |
24371 | fi |
24372 | else | |
53ba6704 | 24373 | as_ln_s='cp -pR' |
9c60689e DWT |
24374 | fi |
24375 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
24376 | rmdir conf$$.dir 2>/dev/null | |
24377 | ||
24378 | ||
24379 | # as_fn_mkdir_p | |
24380 | # ------------- | |
24381 | # Create "$as_dir" as a directory, including parents if necessary. | |
24382 | as_fn_mkdir_p () | |
24383 | { | |
24384 | ||
24385 | case $as_dir in #( | |
24386 | -*) as_dir=./$as_dir;; | |
24387 | esac | |
24388 | test -d "$as_dir" || eval $as_mkdir_p || { | |
24389 | as_dirs= | |
24390 | while :; do | |
24391 | case $as_dir in #( | |
24392 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
24393 | *) as_qdir=$as_dir;; | |
24394 | esac | |
24395 | as_dirs="'$as_qdir' $as_dirs" | |
24396 | as_dir=`$as_dirname -- "$as_dir" || | |
24397 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24398 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24399 | X"$as_dir" : 'X\(//\)$' \| \ | |
24400 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
24401 | $as_echo X"$as_dir" | | |
24402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24403 | s//\1/ | |
24404 | q | |
24405 | } | |
24406 | /^X\(\/\/\)[^/].*/{ | |
24407 | s//\1/ | |
24408 | q | |
24409 | } | |
24410 | /^X\(\/\/\)$/{ | |
24411 | s//\1/ | |
24412 | q | |
24413 | } | |
24414 | /^X\(\/\).*/{ | |
24415 | s//\1/ | |
24416 | q | |
24417 | } | |
24418 | s/.*/./; q'` | |
24419 | test -d "$as_dir" && break | |
24420 | done | |
24421 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 24422 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
24423 | |
24424 | ||
24425 | } # as_fn_mkdir_p | |
24426 | if mkdir -p . 2>/dev/null; then | |
24427 | as_mkdir_p='mkdir -p "$as_dir"' | |
24428 | else | |
24429 | test -d ./-p && rmdir ./-p | |
24430 | as_mkdir_p=false | |
24431 | fi | |
24432 | ||
53ba6704 JF |
24433 | |
24434 | # as_fn_executable_p FILE | |
24435 | # ----------------------- | |
24436 | # Test if FILE is an executable regular file. | |
24437 | as_fn_executable_p () | |
24438 | { | |
24439 | test -f "$1" && test -x "$1" | |
24440 | } # as_fn_executable_p | |
24441 | as_test_x='test -x' | |
24442 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
24443 | |
24444 | # Sed expression to map a string onto a valid CPP name. | |
24445 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24446 | ||
24447 | # Sed expression to map a string onto a valid variable name. | |
24448 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24449 | ||
24450 | ||
24451 | exec 6>&1 | |
24452 | ## ----------------------------------- ## | |
24453 | ## Main body of $CONFIG_STATUS script. ## | |
24454 | ## ----------------------------------- ## | |
24455 | _ASEOF | |
24456 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
24457 | ||
24458 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24459 | # Save the log message, to keep $0 and so on meaningful, and to | |
24460 | # report actual input values of CONFIG_FILES etc. instead of their | |
24461 | # values after options handling. | |
24462 | ac_log=" | |
24463 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 24464 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
24465 | |
24466 | CONFIG_FILES = $CONFIG_FILES | |
24467 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24468 | CONFIG_LINKS = $CONFIG_LINKS | |
24469 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24470 | $ $0 $@ | |
24471 | ||
24472 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
24473 | " | |
24474 | ||
24475 | _ACEOF | |
24476 | ||
24477 | case $ac_config_files in *" | |
24478 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
24479 | esac | |
24480 | ||
296ee9a6 JF |
24481 | case $ac_config_headers in *" |
24482 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
24483 | esac | |
9c60689e DWT |
24484 | |
24485 | ||
24486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24487 | # Files that config.status was made for. | |
24488 | config_files="$ac_config_files" | |
296ee9a6 | 24489 | config_headers="$ac_config_headers" |
9c60689e DWT |
24490 | config_commands="$ac_config_commands" |
24491 | ||
24492 | _ACEOF | |
24493 | ||
24494 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24495 | ac_cs_usage="\ | |
24496 | \`$as_me' instantiates files and other configuration actions | |
24497 | from templates according to the current configuration. Unless the files | |
24498 | and actions are specified as TAGs, all are instantiated by default. | |
24499 | ||
24500 | Usage: $0 [OPTION]... [TAG]... | |
24501 | ||
24502 | -h, --help print this help, then exit | |
24503 | -V, --version print version number and configuration settings, then exit | |
24504 | --config print configuration, then exit | |
24505 | -q, --quiet, --silent | |
24506 | do not print progress messages | |
24507 | -d, --debug don't remove temporary files | |
24508 | --recheck update $as_me by reconfiguring in the same conditions | |
24509 | --file=FILE[:TEMPLATE] | |
24510 | instantiate the configuration file FILE | |
296ee9a6 JF |
24511 | --header=FILE[:TEMPLATE] |
24512 | instantiate the configuration header FILE | |
9c60689e DWT |
24513 | |
24514 | Configuration files: | |
24515 | $config_files | |
24516 | ||
296ee9a6 JF |
24517 | Configuration headers: |
24518 | $config_headers | |
24519 | ||
9c60689e DWT |
24520 | Configuration commands: |
24521 | $config_commands | |
24522 | ||
24523 | Report bugs to <saurik@saurik.com>. | |
24524 | Cycript home page: <http://www.cycript.org/>." | |
24525 | ||
24526 | _ACEOF | |
24527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24528 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
24529 | ac_cs_version="\\ | |
24530 | Cycript config.status 0.9 | |
53ba6704 | 24531 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
24532 | with options \\"\$ac_cs_config\\" |
24533 | ||
53ba6704 | 24534 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
24535 | This config.status script is free software; the Free Software Foundation |
24536 | gives unlimited permission to copy, distribute and modify it." | |
24537 | ||
24538 | ac_pwd='$ac_pwd' | |
24539 | srcdir='$srcdir' | |
24540 | INSTALL='$INSTALL' | |
66170b30 JF |
24541 | MKDIR_P='$MKDIR_P' |
24542 | AWK='$AWK' | |
9c60689e DWT |
24543 | test -n "\$AWK" || AWK=awk |
24544 | _ACEOF | |
24545 | ||
24546 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24547 | # The default lists apply if the user does not specify any file. | |
24548 | ac_need_defaults=: | |
24549 | while test $# != 0 | |
24550 | do | |
24551 | case $1 in | |
12833ad8 | 24552 | --*=?*) |
9c60689e DWT |
24553 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24554 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
24555 | ac_shift=: | |
24556 | ;; | |
12833ad8 JF |
24557 | --*=) |
24558 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
24559 | ac_optarg= | |
24560 | ac_shift=: | |
24561 | ;; | |
9c60689e DWT |
24562 | *) |
24563 | ac_option=$1 | |
24564 | ac_optarg=$2 | |
24565 | ac_shift=shift | |
24566 | ;; | |
24567 | esac | |
24568 | ||
24569 | case $ac_option in | |
24570 | # Handling of the options. | |
24571 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24572 | ac_cs_recheck=: ;; | |
24573 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
24574 | $as_echo "$ac_cs_version"; exit ;; | |
24575 | --config | --confi | --conf | --con | --co | --c ) | |
24576 | $as_echo "$ac_cs_config"; exit ;; | |
24577 | --debug | --debu | --deb | --de | --d | -d ) | |
24578 | debug=: ;; | |
24579 | --file | --fil | --fi | --f ) | |
24580 | $ac_shift | |
24581 | case $ac_optarg in | |
24582 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 24583 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
24584 | esac |
24585 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
24586 | ac_need_defaults=false;; | |
296ee9a6 JF |
24587 | --header | --heade | --head | --hea ) |
24588 | $ac_shift | |
24589 | case $ac_optarg in | |
24590 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
24591 | esac | |
24592 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
24593 | ac_need_defaults=false;; | |
24594 | --he | --h) | |
24595 | # Conflict between --help and --header | |
24596 | as_fn_error $? "ambiguous option: \`$1' | |
24597 | Try \`$0 --help' for more information.";; | |
24598 | --help | --hel | -h ) | |
9c60689e DWT |
24599 | $as_echo "$ac_cs_usage"; exit ;; |
24600 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24601 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24602 | ac_cs_silent=: ;; | |
24603 | ||
24604 | # This is an error. | |
12833ad8 | 24605 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
24606 | Try \`$0 --help' for more information." ;; |
24607 | ||
24608 | *) as_fn_append ac_config_targets " $1" | |
24609 | ac_need_defaults=false ;; | |
24610 | ||
24611 | esac | |
24612 | shift | |
24613 | done | |
24614 | ||
24615 | ac_configure_extra_args= | |
24616 | ||
24617 | if $ac_cs_silent; then | |
24618 | exec 6>/dev/null | |
24619 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24620 | fi | |
24621 | ||
24622 | _ACEOF | |
24623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24624 | if \$ac_cs_recheck; then | |
53ba6704 | 24625 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
24626 | shift |
24627 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
24628 | CONFIG_SHELL='$SHELL' | |
24629 | export CONFIG_SHELL | |
24630 | exec "\$@" | |
24631 | fi | |
24632 | ||
24633 | _ACEOF | |
24634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24635 | exec 5>>config.log | |
24636 | { | |
24637 | echo | |
24638 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24639 | ## Running $as_me. ## | |
24640 | _ASBOX | |
24641 | $as_echo "$ac_log" | |
24642 | } >&5 | |
24643 | ||
24644 | _ACEOF | |
24645 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24646 | # | |
24647 | # INIT-COMMANDS | |
24648 | # | |
66170b30 | 24649 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
24650 | |
24651 | ||
24652 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
24653 | # if CDPATH is set. | |
24654 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
24655 | ||
24656 | sed_quote_subst='$sed_quote_subst' | |
24657 | double_quote_subst='$double_quote_subst' | |
24658 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
24659 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
24660 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
24661 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
24662 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
24663 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
24664 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24665 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24666 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
24667 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 24668 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24669 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
24670 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
24671 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
24672 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
24673 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
24674 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
24675 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
24676 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
24677 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
24678 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
24679 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
24680 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
24681 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
24682 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
24683 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
24684 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
24685 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
24686 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
24687 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
24688 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
24689 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
24690 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
24691 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
24692 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
24693 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
24694 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
24695 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
24696 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
24697 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
24698 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
24699 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
24700 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
24701 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
24702 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
24703 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
24704 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
24705 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24706 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24707 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
24708 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
24709 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
24710 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
24711 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
24712 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
24713 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
24714 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24715 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24716 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
24717 | 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 | 24718 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24719 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
24720 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24721 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24722 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
24723 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
24724 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
24725 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
24726 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
24727 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
24728 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
24729 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
24730 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
24731 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
24732 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
24733 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
24734 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
24735 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
24736 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
24737 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
24738 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
24739 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
24740 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
24741 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
24742 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
24743 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
24744 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
24745 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
24746 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
24747 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
24748 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
24749 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
24750 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
24751 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
24752 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
24753 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24754 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
24755 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
24756 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
24757 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
24758 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
24759 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
24760 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
24761 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
24762 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
24763 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
24764 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
24765 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
24766 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
24767 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
24768 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
24769 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
24770 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
24771 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
24772 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
24773 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
24774 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
24775 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
24776 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
24777 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
24778 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
24779 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
24780 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24781 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24782 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
24783 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
24784 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
24785 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
9d54db95 JF |
24786 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
24787 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24788 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
24789 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
24790 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
24791 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
24792 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
24793 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
24794 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
24795 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
24796 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
24797 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
24798 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
24799 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
24800 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
24801 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24802 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24803 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24804 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
24805 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
24806 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24807 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
24808 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
24809 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
24810 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
24811 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
24812 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
24813 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24814 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24815 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
24816 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24817 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24818 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24819 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24820 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24821 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24822 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
24823 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24824 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24825 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24826 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
24827 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
24828 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
24829 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
24830 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
24831 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
24832 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
24833 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
24834 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
24835 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24836 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
24837 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
24838 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24839 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24840 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24841 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
24842 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
24843 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
24844 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
24845 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
24846 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
24847 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
24848 | |
24849 | LTCC='$LTCC' | |
24850 | LTCFLAGS='$LTCFLAGS' | |
24851 | compiler='$compiler_DEFAULT' | |
24852 | ||
ee134472 JF |
24853 | # A function that is used when there is no print builtin or printf. |
24854 | func_fallback_echo () | |
24855 | { | |
24856 | eval 'cat <<_LTECHO_EOF | |
24857 | \$1 | |
24858 | _LTECHO_EOF' | |
24859 | } | |
24860 | ||
9c60689e | 24861 | # Quote evaled strings. |
ee134472 JF |
24862 | for var in SHELL \ |
24863 | ECHO \ | |
53ba6704 | 24864 | PATH_SEPARATOR \ |
ee134472 | 24865 | SED \ |
9c60689e DWT |
24866 | GREP \ |
24867 | EGREP \ | |
24868 | FGREP \ | |
24869 | LD \ | |
24870 | NM \ | |
24871 | LN_S \ | |
24872 | lt_SP2NL \ | |
24873 | lt_NL2SP \ | |
24874 | reload_flag \ | |
24875 | OBJDUMP \ | |
24876 | deplibs_check_method \ | |
24877 | file_magic_cmd \ | |
ee134472 JF |
24878 | file_magic_glob \ |
24879 | want_nocaseglob \ | |
24880 | DLLTOOL \ | |
24881 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
24882 | AR \ |
24883 | AR_FLAGS \ | |
ee134472 | 24884 | archiver_list_spec \ |
9c60689e DWT |
24885 | STRIP \ |
24886 | RANLIB \ | |
24887 | CC \ | |
24888 | CFLAGS \ | |
24889 | compiler \ | |
24890 | lt_cv_sys_global_symbol_pipe \ | |
24891 | lt_cv_sys_global_symbol_to_cdecl \ | |
9d54db95 | 24892 | lt_cv_sys_global_symbol_to_import \ |
9c60689e DWT |
24893 | lt_cv_sys_global_symbol_to_c_name_address \ |
24894 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
9d54db95 | 24895 | lt_cv_nm_interface \ |
ee134472 | 24896 | nm_file_list_spec \ |
9d54db95 | 24897 | lt_cv_truncate_bin \ |
9c60689e | 24898 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 24899 | lt_prog_compiler_pic \ |
ee134472 | 24900 | lt_prog_compiler_wl \ |
9c60689e DWT |
24901 | lt_prog_compiler_static \ |
24902 | lt_cv_prog_compiler_c_o \ | |
24903 | need_locks \ | |
ee134472 | 24904 | MANIFEST_TOOL \ |
9c60689e DWT |
24905 | DSYMUTIL \ |
24906 | NMEDIT \ | |
24907 | LIPO \ | |
24908 | OTOOL \ | |
24909 | OTOOL64 \ | |
24910 | shrext_cmds \ | |
24911 | export_dynamic_flag_spec \ | |
24912 | whole_archive_flag_spec \ | |
24913 | compiler_needs_object \ | |
24914 | with_gnu_ld \ | |
24915 | allow_undefined_flag \ | |
24916 | no_undefined_flag \ | |
24917 | hardcode_libdir_flag_spec \ | |
9c60689e | 24918 | hardcode_libdir_separator \ |
9c60689e DWT |
24919 | exclude_expsyms \ |
24920 | include_expsyms \ | |
24921 | file_list_spec \ | |
24922 | variables_saved_for_relink \ | |
24923 | libname_spec \ | |
24924 | library_names_spec \ | |
24925 | soname_spec \ | |
ee134472 | 24926 | install_override_mode \ |
9c60689e DWT |
24927 | finish_eval \ |
24928 | old_striplib \ | |
24929 | striplib \ | |
24930 | compiler_lib_search_dirs \ | |
24931 | predep_objects \ | |
24932 | postdep_objects \ | |
24933 | predeps \ | |
24934 | postdeps \ | |
24935 | compiler_lib_search_path \ | |
24936 | LD_CXX \ | |
ee134472 | 24937 | reload_flag_CXX \ |
9c60689e DWT |
24938 | compiler_CXX \ |
24939 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 24940 | lt_prog_compiler_pic_CXX \ |
ee134472 | 24941 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
24942 | lt_prog_compiler_static_CXX \ |
24943 | lt_cv_prog_compiler_c_o_CXX \ | |
24944 | export_dynamic_flag_spec_CXX \ | |
24945 | whole_archive_flag_spec_CXX \ | |
24946 | compiler_needs_object_CXX \ | |
24947 | with_gnu_ld_CXX \ | |
24948 | allow_undefined_flag_CXX \ | |
24949 | no_undefined_flag_CXX \ | |
24950 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 24951 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
24952 | exclude_expsyms_CXX \ |
24953 | include_expsyms_CXX \ | |
24954 | file_list_spec_CXX \ | |
24955 | compiler_lib_search_dirs_CXX \ | |
24956 | predep_objects_CXX \ | |
24957 | postdep_objects_CXX \ | |
24958 | predeps_CXX \ | |
24959 | postdeps_CXX \ | |
24960 | compiler_lib_search_path_CXX; do | |
ee134472 | 24961 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 24962 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 24963 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
24964 | ;; |
24965 | *) | |
24966 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
24967 | ;; | |
24968 | esac | |
24969 | done | |
24970 | ||
24971 | # Double-quote double-evaled strings. | |
24972 | for var in reload_cmds \ | |
24973 | old_postinstall_cmds \ | |
24974 | old_postuninstall_cmds \ | |
24975 | old_archive_cmds \ | |
24976 | extract_expsyms_cmds \ | |
24977 | old_archive_from_new_cmds \ | |
24978 | old_archive_from_expsyms_cmds \ | |
24979 | archive_cmds \ | |
24980 | archive_expsym_cmds \ | |
24981 | module_cmds \ | |
24982 | module_expsym_cmds \ | |
24983 | export_symbols_cmds \ | |
24984 | prelink_cmds \ | |
ee134472 | 24985 | postlink_cmds \ |
9c60689e DWT |
24986 | postinstall_cmds \ |
24987 | postuninstall_cmds \ | |
24988 | finish_cmds \ | |
24989 | sys_lib_search_path_spec \ | |
9d54db95 JF |
24990 | configure_time_dlsearch_path \ |
24991 | configure_time_lt_sys_library_path \ | |
ee134472 | 24992 | reload_cmds_CXX \ |
9c60689e DWT |
24993 | old_archive_cmds_CXX \ |
24994 | old_archive_from_new_cmds_CXX \ | |
24995 | old_archive_from_expsyms_cmds_CXX \ | |
24996 | archive_cmds_CXX \ | |
24997 | archive_expsym_cmds_CXX \ | |
24998 | module_cmds_CXX \ | |
24999 | module_expsym_cmds_CXX \ | |
25000 | export_symbols_cmds_CXX \ | |
ee134472 JF |
25001 | prelink_cmds_CXX \ |
25002 | postlink_cmds_CXX; do | |
25003 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 25004 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 25005 | 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 |
25006 | ;; |
25007 | *) | |
25008 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
25009 | ;; | |
25010 | esac | |
25011 | done | |
25012 | ||
9c60689e | 25013 | ac_aux_dir='$ac_aux_dir' |
9c60689e | 25014 | |
9d54db95 | 25015 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 25016 | # commands through without removal of \ escapes INIT. |
9d54db95 | 25017 | if test -n "\${ZSH_VERSION+set}"; then |
9c60689e DWT |
25018 | setopt NO_GLOB_SUBST |
25019 | fi | |
25020 | ||
25021 | ||
25022 | PACKAGE='$PACKAGE' | |
25023 | VERSION='$VERSION' | |
9c60689e DWT |
25024 | RM='$RM' |
25025 | ofile='$ofile' | |
25026 | ||
25027 | ||
25028 | ||
25029 | ||
25030 | ||
25031 | ||
25032 | _ACEOF | |
25033 | ||
25034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25035 | ||
25036 | # Handling of arguments. | |
25037 | for ac_config_target in $ac_config_targets | |
25038 | do | |
25039 | case $ac_config_target in | |
296ee9a6 | 25040 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 25041 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 25042 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 25043 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 25044 | |
ee134472 | 25045 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
25046 | esac |
25047 | done | |
25048 | ||
25049 | ||
25050 | # If the user did not use the arguments to specify the items to instantiate, | |
25051 | # then the envvar interface is used. Set only those that are not. | |
25052 | # We use the long form for the default assignment because of an extremely | |
25053 | # bizarre bug on SunOS 4.1.3. | |
25054 | if $ac_need_defaults; then | |
25055 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 25056 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
25057 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
25058 | fi | |
25059 | ||
25060 | # Have a temporary directory for convenience. Make it in the build tree | |
25061 | # simply because there is no reason against having it here, and in addition, | |
25062 | # creating and moving files from /tmp can sometimes cause problems. | |
25063 | # Hook for its removal unless debugging. | |
25064 | # Note that there is a small window in which the directory will not be cleaned: | |
25065 | # after its creation but before its name has been assigned to `$tmp'. | |
25066 | $debug || | |
25067 | { | |
ee134472 | 25068 | tmp= ac_tmp= |
9c60689e | 25069 | trap 'exit_status=$? |
ee134472 JF |
25070 | : "${ac_tmp:=$tmp}" |
25071 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
25072 | ' 0 |
25073 | trap 'as_fn_exit 1' 1 2 13 15 | |
25074 | } | |
25075 | # Create a (secure) tmp directory for tmp files. | |
25076 | ||
25077 | { | |
25078 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 25079 | test -d "$tmp" |
9c60689e DWT |
25080 | } || |
25081 | { | |
25082 | tmp=./conf$$-$RANDOM | |
25083 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 25084 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 25085 | ac_tmp=$tmp |
9c60689e DWT |
25086 | |
25087 | # Set up the scripts for CONFIG_FILES section. | |
25088 | # No need to generate them if there are no CONFIG_FILES. | |
25089 | # This happens for instance with `./config.status config.h'. | |
25090 | if test -n "$CONFIG_FILES"; then | |
25091 | ||
25092 | ||
25093 | ac_cr=`echo X | tr X '\015'` | |
25094 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
25095 | # But we know of no other shell where ac_cr would be empty at this | |
25096 | # point, so we can use a bashism as a fallback. | |
25097 | if test "x$ac_cr" = x; then | |
25098 | eval ac_cr=\$\'\\r\' | |
25099 | fi | |
25100 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
25101 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 25102 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
25103 | else |
25104 | ac_cs_awk_cr=$ac_cr | |
25105 | fi | |
25106 | ||
ee134472 | 25107 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
25108 | _ACEOF |
25109 | ||
25110 | ||
25111 | { | |
25112 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
25113 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
25114 | echo "_ACEOF" | |
25115 | } >conf$$subs.sh || | |
12833ad8 JF |
25116 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
25117 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
25118 | ac_delim='%!_!# ' |
25119 | for ac_last_try in false false false false false :; do | |
25120 | . ./conf$$subs.sh || | |
12833ad8 | 25121 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
25122 | |
25123 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
25124 | if test $ac_delim_n = $ac_delim_num; then | |
25125 | break | |
25126 | elif $ac_last_try; then | |
12833ad8 | 25127 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
25128 | else |
25129 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25130 | fi | |
25131 | done | |
25132 | rm -f conf$$subs.sh | |
25133 | ||
25134 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 25135 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
25136 | _ACEOF |
25137 | sed -n ' | |
25138 | h | |
25139 | s/^/S["/; s/!.*/"]=/ | |
25140 | p | |
25141 | g | |
25142 | s/^[^!]*!// | |
25143 | :repl | |
25144 | t repl | |
25145 | s/'"$ac_delim"'$// | |
25146 | t delim | |
25147 | :nl | |
25148 | h | |
25149 | s/\(.\{148\}\)..*/\1/ | |
25150 | t more1 | |
25151 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
25152 | p | |
25153 | n | |
25154 | b repl | |
25155 | :more1 | |
25156 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
25157 | p | |
25158 | g | |
25159 | s/.\{148\}// | |
25160 | t nl | |
25161 | :delim | |
25162 | h | |
25163 | s/\(.\{148\}\)..*/\1/ | |
25164 | t more2 | |
25165 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
25166 | p | |
25167 | b | |
25168 | :more2 | |
25169 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
25170 | p | |
25171 | g | |
25172 | s/.\{148\}// | |
25173 | t delim | |
25174 | ' <conf$$subs.awk | sed ' | |
25175 | /^[^""]/{ | |
25176 | N | |
25177 | s/\n// | |
25178 | } | |
25179 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
25180 | rm -f conf$$subs.awk | |
25181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25182 | _ACAWK | |
ee134472 | 25183 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
25184 | for (key in S) S_is_set[key] = 1 |
25185 | FS = "\a" | |
25186 | ||
25187 | } | |
25188 | { | |
25189 | line = $ 0 | |
25190 | nfields = split(line, field, "@") | |
25191 | substed = 0 | |
25192 | len = length(field[1]) | |
25193 | for (i = 2; i < nfields; i++) { | |
25194 | key = field[i] | |
25195 | keylen = length(key) | |
25196 | if (S_is_set[key]) { | |
25197 | value = S[key] | |
25198 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
25199 | len += length(value) + length(field[++i]) | |
25200 | substed = 1 | |
25201 | } else | |
25202 | len += 1 + keylen | |
25203 | } | |
25204 | ||
25205 | print line | |
25206 | } | |
25207 | ||
25208 | _ACAWK | |
25209 | _ACEOF | |
25210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25211 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
25212 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
25213 | else | |
25214 | cat | |
ee134472 | 25215 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 25216 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
25217 | _ACEOF |
25218 | ||
12833ad8 JF |
25219 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
25220 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
25221 | # trailing colons and then remove the whole line if VPATH becomes empty |
25222 | # (actually we leave an empty line to preserve line numbers). | |
25223 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
25224 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
25225 | h | |
25226 | s/// | |
25227 | s/^/:/ | |
25228 | s/[ ]*$/:/ | |
25229 | s/:\$(srcdir):/:/g | |
25230 | s/:\${srcdir}:/:/g | |
25231 | s/:@srcdir@:/:/g | |
25232 | s/^:*// | |
9c60689e | 25233 | s/:*$// |
12833ad8 JF |
25234 | x |
25235 | s/\(=[ ]*\).*/\1/ | |
25236 | G | |
25237 | s/\n// | |
9c60689e DWT |
25238 | s/^[^=]*=[ ]*$// |
25239 | }' | |
25240 | fi | |
25241 | ||
25242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25243 | fi # test -n "$CONFIG_FILES" | |
25244 | ||
296ee9a6 JF |
25245 | # Set up the scripts for CONFIG_HEADERS section. |
25246 | # No need to generate them if there are no CONFIG_HEADERS. | |
25247 | # This happens for instance with `./config.status Makefile'. | |
25248 | if test -n "$CONFIG_HEADERS"; then | |
25249 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
25250 | BEGIN { | |
25251 | _ACEOF | |
25252 | ||
25253 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
25254 | # here-document in config.status, that substitutes the proper values into | |
25255 | # config.h.in to produce config.h. | |
25256 | ||
25257 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
25258 | # handling of long lines. | |
25259 | ac_delim='%!_!# ' | |
25260 | for ac_last_try in false false :; do | |
25261 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
25262 | if test -z "$ac_tt"; then | |
25263 | break | |
25264 | elif $ac_last_try; then | |
25265 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
25266 | else | |
25267 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25268 | fi | |
25269 | done | |
25270 | ||
25271 | # For the awk script, D is an array of macro values keyed by name, | |
25272 | # likewise P contains macro parameters if any. Preserve backslash | |
25273 | # newline sequences. | |
25274 | ||
25275 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
25276 | sed -n ' | |
25277 | s/.\{148\}/&'"$ac_delim"'/g | |
25278 | t rset | |
25279 | :rset | |
25280 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
25281 | t def | |
25282 | d | |
25283 | :def | |
25284 | s/\\$// | |
25285 | t bsnl | |
25286 | s/["\\]/\\&/g | |
25287 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25288 | D["\1"]=" \3"/p | |
25289 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
25290 | d | |
25291 | :bsnl | |
25292 | s/["\\]/\\&/g | |
25293 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25294 | D["\1"]=" \3\\\\\\n"\\/p | |
25295 | t cont | |
25296 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
25297 | t cont | |
25298 | d | |
25299 | :cont | |
25300 | n | |
25301 | s/.\{148\}/&'"$ac_delim"'/g | |
25302 | t clear | |
25303 | :clear | |
25304 | s/\\$// | |
25305 | t bsnlc | |
25306 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
25307 | d | |
25308 | :bsnlc | |
25309 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
25310 | b cont | |
25311 | ' <confdefs.h | sed ' | |
25312 | s/'"$ac_delim"'/"\\\ | |
25313 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
25314 | ||
25315 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25316 | for (key in D) D_is_set[key] = 1 | |
25317 | FS = "\a" | |
25318 | } | |
25319 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
25320 | line = \$ 0 | |
25321 | split(line, arg, " ") | |
25322 | if (arg[1] == "#") { | |
25323 | defundef = arg[2] | |
25324 | mac1 = arg[3] | |
25325 | } else { | |
25326 | defundef = substr(arg[1], 2) | |
25327 | mac1 = arg[2] | |
25328 | } | |
25329 | split(mac1, mac2, "(") #) | |
25330 | macro = mac2[1] | |
25331 | prefix = substr(line, 1, index(line, defundef) - 1) | |
25332 | if (D_is_set[macro]) { | |
25333 | # Preserve the white space surrounding the "#". | |
25334 | print prefix "define", macro P[macro] D[macro] | |
25335 | next | |
25336 | } else { | |
25337 | # Replace #undef with comments. This is necessary, for example, | |
25338 | # in the case of _POSIX_SOURCE, which is predefined and required | |
25339 | # on some systems where configure will not decide to define it. | |
25340 | if (defundef == "undef") { | |
25341 | print "/*", prefix defundef, macro, "*/" | |
25342 | next | |
25343 | } | |
25344 | } | |
25345 | } | |
25346 | { print } | |
25347 | _ACAWK | |
25348 | _ACEOF | |
25349 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25350 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
25351 | fi # test -n "$CONFIG_HEADERS" | |
25352 | ||
9c60689e | 25353 | |
296ee9a6 | 25354 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
25355 | shift |
25356 | for ac_tag | |
25357 | do | |
25358 | case $ac_tag in | |
25359 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
25360 | esac | |
25361 | case $ac_mode$ac_tag in | |
25362 | :[FHL]*:*);; | |
ee134472 | 25363 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
25364 | :[FH]-) ac_tag=-:-;; |
25365 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25366 | esac | |
25367 | ac_save_IFS=$IFS | |
25368 | IFS=: | |
25369 | set x $ac_tag | |
25370 | IFS=$ac_save_IFS | |
25371 | shift | |
25372 | ac_file=$1 | |
25373 | shift | |
25374 | ||
25375 | case $ac_mode in | |
25376 | :L) ac_source=$1;; | |
25377 | :[FH]) | |
25378 | ac_file_inputs= | |
25379 | for ac_f | |
25380 | do | |
25381 | case $ac_f in | |
ee134472 | 25382 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
25383 | *) # Look for the file first in the build tree, then in the source tree |
25384 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
25385 | # because $ac_f cannot contain `:'. | |
25386 | test -f "$ac_f" || | |
25387 | case $ac_f in | |
25388 | [\\/$]*) false;; | |
25389 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
25390 | esac || | |
ee134472 | 25391 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
25392 | esac |
25393 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
25394 | as_fn_append ac_file_inputs " '$ac_f'" | |
25395 | done | |
25396 | ||
25397 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25398 | # use $as_me), people would be surprised to read: | |
25399 | # /* config.h. Generated by config.status. */ | |
25400 | configure_input='Generated from '` | |
25401 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
25402 | `' by configure.' | |
25403 | if test x"$ac_file" != x-; then | |
25404 | configure_input="$ac_file. $configure_input" | |
25405 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
25406 | $as_echo "$as_me: creating $ac_file" >&6;} | |
25407 | fi | |
25408 | # Neutralize special characters interpreted by sed in replacement strings. | |
25409 | case $configure_input in #( | |
25410 | *\&* | *\|* | *\\* ) | |
25411 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
25412 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
25413 | *) ac_sed_conf_input=$configure_input;; | |
25414 | esac | |
25415 | ||
25416 | case $ac_tag in | |
ee134472 JF |
25417 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
25418 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
25419 | esac |
25420 | ;; | |
25421 | esac | |
25422 | ||
25423 | ac_dir=`$as_dirname -- "$ac_file" || | |
25424 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25425 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25426 | X"$ac_file" : 'X\(//\)$' \| \ | |
25427 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
25428 | $as_echo X"$ac_file" | | |
25429 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25430 | s//\1/ | |
25431 | q | |
25432 | } | |
25433 | /^X\(\/\/\)[^/].*/{ | |
25434 | s//\1/ | |
25435 | q | |
25436 | } | |
25437 | /^X\(\/\/\)$/{ | |
25438 | s//\1/ | |
25439 | q | |
25440 | } | |
25441 | /^X\(\/\).*/{ | |
25442 | s//\1/ | |
25443 | q | |
25444 | } | |
25445 | s/.*/./; q'` | |
25446 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25447 | ac_builddir=. | |
25448 | ||
25449 | case "$ac_dir" in | |
25450 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25451 | *) | |
25452 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
25453 | # A ".." for each directory in $ac_dir_suffix. | |
25454 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
25455 | case $ac_top_builddir_sub in | |
25456 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25457 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
25458 | esac ;; | |
25459 | esac | |
25460 | ac_abs_top_builddir=$ac_pwd | |
25461 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
25462 | # for backward compatibility: | |
25463 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 25464 | |
9c60689e DWT |
25465 | case $srcdir in |
25466 | .) # We are building in place. | |
25467 | ac_srcdir=. | |
25468 | ac_top_srcdir=$ac_top_builddir_sub | |
25469 | ac_abs_top_srcdir=$ac_pwd ;; | |
25470 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25471 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25472 | ac_top_srcdir=$srcdir | |
25473 | ac_abs_top_srcdir=$srcdir ;; | |
25474 | *) # Relative name. | |
25475 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
25476 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
25477 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25478 | esac | |
25479 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
25480 | |
25481 | ||
9c60689e DWT |
25482 | case $ac_mode in |
25483 | :F) | |
25484 | # | |
25485 | # CONFIG_FILE | |
25486 | # | |
35fa52c0 | 25487 | |
9c60689e DWT |
25488 | case $INSTALL in |
25489 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25490 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
25491 | esac | |
66170b30 JF |
25492 | ac_MKDIR_P=$MKDIR_P |
25493 | case $MKDIR_P in | |
25494 | [\\/$]* | ?:[\\/]* ) ;; | |
25495 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
25496 | esac | |
9c60689e | 25497 | _ACEOF |
35fa52c0 | 25498 | |
9c60689e DWT |
25499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25500 | # If the template does not know about datarootdir, expand it. | |
25501 | # FIXME: This hack should be removed a few years after 2.60. | |
25502 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
25503 | ac_sed_dataroot=' | |
25504 | /datarootdir/ { | |
25505 | p | |
25506 | q | |
25507 | } | |
25508 | /@datadir@/p | |
25509 | /@docdir@/p | |
25510 | /@infodir@/p | |
25511 | /@localedir@/p | |
25512 | /@mandir@/p' | |
25513 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
25514 | *datarootdir*) ac_datarootdir_seen=yes;; | |
25515 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
25516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
25517 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
25518 | _ACEOF | |
25519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25520 | ac_datarootdir_hack=' | |
25521 | s&@datadir@&$datadir&g | |
25522 | s&@docdir@&$docdir&g | |
25523 | s&@infodir@&$infodir&g | |
25524 | s&@localedir@&$localedir&g | |
25525 | s&@mandir@&$mandir&g | |
25526 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
25527 | esac | |
25528 | _ACEOF | |
35fa52c0 | 25529 | |
9c60689e DWT |
25530 | # Neutralize VPATH when `$srcdir' = `.'. |
25531 | # Shell code in configure.ac might set extrasub. | |
25532 | # FIXME: do we really want to maintain this feature? | |
25533 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25534 | ac_sed_extra="$ac_vpsub | |
25535 | $extrasub | |
25536 | _ACEOF | |
25537 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25538 | :t | |
25539 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25540 | s|@configure_input@|$ac_sed_conf_input|;t t | |
25541 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25542 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
25543 | s&@srcdir@&$ac_srcdir&;t t | |
25544 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25545 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25546 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25547 | s&@builddir@&$ac_builddir&;t t | |
25548 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25549 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25550 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 25551 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
25552 | $ac_datarootdir_hack |
25553 | " | |
ee134472 JF |
25554 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
25555 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
25556 | |
25557 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
25558 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
25559 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
25560 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 25561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 25562 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 25563 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 25564 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 25565 | |
ee134472 | 25566 | rm -f "$ac_tmp/stdin" |
9c60689e | 25567 | case $ac_file in |
ee134472 JF |
25568 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
25569 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 25570 | esac \ |
12833ad8 | 25571 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 25572 | ;; |
296ee9a6 JF |
25573 | :H) |
25574 | # | |
25575 | # CONFIG_HEADER | |
25576 | # | |
25577 | if test x"$ac_file" != x-; then | |
25578 | { | |
25579 | $as_echo "/* $configure_input */" \ | |
25580 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
25581 | } >"$ac_tmp/config.h" \ | |
25582 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
25583 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
25584 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
25585 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
25586 | else | |
25587 | rm -f "$ac_file" | |
25588 | mv "$ac_tmp/config.h" "$ac_file" \ | |
25589 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
25590 | fi | |
25591 | else | |
25592 | $as_echo "/* $configure_input */" \ | |
25593 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
25594 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
25595 | fi | |
25596 | # Compute "$ac_file"'s index in $config_headers. | |
25597 | _am_arg="$ac_file" | |
25598 | _am_stamp_count=1 | |
25599 | for _am_header in $config_headers :; do | |
25600 | case $_am_header in | |
25601 | $_am_arg | $_am_arg:* ) | |
25602 | break ;; | |
25603 | * ) | |
25604 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
25605 | esac | |
25606 | done | |
25607 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
25608 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25609 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
25610 | X"$_am_arg" : 'X\(//\)$' \| \ | |
25611 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
25612 | $as_echo X"$_am_arg" | | |
25613 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25614 | s//\1/ | |
25615 | q | |
25616 | } | |
25617 | /^X\(\/\/\)[^/].*/{ | |
25618 | s//\1/ | |
25619 | q | |
25620 | } | |
25621 | /^X\(\/\/\)$/{ | |
25622 | s//\1/ | |
25623 | q | |
25624 | } | |
25625 | /^X\(\/\).*/{ | |
25626 | s//\1/ | |
25627 | q | |
25628 | } | |
25629 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
25630 | ;; | |
35fa52c0 | 25631 | |
9c60689e DWT |
25632 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
25633 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
25634 | ;; | |
25635 | esac | |
35fa52c0 | 25636 | |
35fa52c0 | 25637 | |
9c60689e | 25638 | case $ac_file$ac_mode in |
66170b30 JF |
25639 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
25640 | # Older Autoconf quotes --file arguments for eval, but not when files | |
25641 | # are listed without --file. Let's play safe and only enable the eval | |
25642 | # if we detect the quoting. | |
25643 | case $CONFIG_FILES in | |
25644 | *\'*) eval set x "$CONFIG_FILES" ;; | |
25645 | *) set x $CONFIG_FILES ;; | |
25646 | esac | |
25647 | shift | |
25648 | for mf | |
25649 | do | |
25650 | # Strip MF so we end up with the name of the file. | |
25651 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
25652 | # Check whether this is an Automake generated Makefile or not. | |
25653 | # We used to match only the files named 'Makefile.in', but | |
25654 | # some people rename them; so instead we look at the file content. | |
25655 | # Grep'ing the first line is not enough: some people post-process | |
25656 | # each Makefile.in and add a new line on top of each file to say so. | |
25657 | # Grep'ing the whole file is not good either: AIX grep has a line | |
25658 | # limit of 2048, but all sed's we know have understand at least 4000. | |
25659 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
25660 | dirpart=`$as_dirname -- "$mf" || | |
25661 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25662 | X"$mf" : 'X\(//\)[^/]' \| \ | |
25663 | X"$mf" : 'X\(//\)$' \| \ | |
25664 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
25665 | $as_echo X"$mf" | | |
25666 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25667 | s//\1/ | |
25668 | q | |
25669 | } | |
25670 | /^X\(\/\/\)[^/].*/{ | |
25671 | s//\1/ | |
25672 | q | |
25673 | } | |
25674 | /^X\(\/\/\)$/{ | |
25675 | s//\1/ | |
25676 | q | |
25677 | } | |
25678 | /^X\(\/\).*/{ | |
25679 | s//\1/ | |
25680 | q | |
25681 | } | |
25682 | s/.*/./; q'` | |
25683 | else | |
25684 | continue | |
25685 | fi | |
25686 | # Extract the definition of DEPDIR, am__include, and am__quote | |
25687 | # from the Makefile without running 'make'. | |
25688 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
25689 | test -z "$DEPDIR" && continue | |
25690 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 25691 | test -z "$am__include" && continue |
66170b30 JF |
25692 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
25693 | # Find all dependency output files, they are included files with | |
25694 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
25695 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
25696 | # expansion. | |
25697 | for file in `sed -n " | |
25698 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
25699 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
25700 | # Make sure the directory exists. | |
25701 | test -f "$dirpart/$file" && continue | |
25702 | fdir=`$as_dirname -- "$file" || | |
25703 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25704 | X"$file" : 'X\(//\)[^/]' \| \ | |
25705 | X"$file" : 'X\(//\)$' \| \ | |
25706 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
25707 | $as_echo X"$file" | | |
25708 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25709 | s//\1/ | |
25710 | q | |
25711 | } | |
25712 | /^X\(\/\/\)[^/].*/{ | |
25713 | s//\1/ | |
25714 | q | |
25715 | } | |
25716 | /^X\(\/\/\)$/{ | |
25717 | s//\1/ | |
25718 | q | |
25719 | } | |
25720 | /^X\(\/\).*/{ | |
25721 | s//\1/ | |
25722 | q | |
25723 | } | |
25724 | s/.*/./; q'` | |
25725 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
25726 | # echo "creating $dirpart/$file" | |
25727 | echo '# dummy' > "$dirpart/$file" | |
25728 | done | |
25729 | done | |
25730 | } | |
25731 | ;; | |
9c60689e DWT |
25732 | "libtool":C) |
25733 | ||
9d54db95 | 25734 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 25735 | # commands through without removal of \ escapes. |
9d54db95 | 25736 | if test -n "${ZSH_VERSION+set}"; then |
9c60689e | 25737 | setopt NO_GLOB_SUBST |
35fa52c0 | 25738 | fi |
35fa52c0 | 25739 | |
9d54db95 | 25740 | cfgfile=${ofile}T |
9c60689e DWT |
25741 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
25742 | $RM "$cfgfile" | |
35fa52c0 | 25743 | |
9c60689e DWT |
25744 | cat <<_LT_EOF >> "$cfgfile" |
25745 | #! $SHELL | |
9d54db95 | 25746 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
9c60689e DWT |
25747 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
25748 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9d54db95 JF |
25749 | |
25750 | # Provide generalized library-building support services. | |
25751 | # Written by Gordon Matzigkeit, 1996 | |
25752 | ||
25753 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
25754 | # This is free software; see the source for copying conditions. There is NO | |
25755 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
25756 | ||
25757 | # GNU Libtool is free software; you can redistribute it and/or modify | |
25758 | # it under the terms of the GNU General Public License as published by | |
25759 | # the Free Software Foundation; either version 2 of of the License, or | |
25760 | # (at your option) any later version. | |
9c60689e | 25761 | # |
9d54db95 JF |
25762 | # As a special exception to the GNU General Public License, if you |
25763 | # distribute this file as part of a program or library that is built | |
25764 | # using GNU Libtool, you may include this file under the same | |
25765 | # distribution terms that you use for the rest of that program. | |
9c60689e | 25766 | # |
9d54db95 JF |
25767 | # GNU Libtool is distributed in the hope that it will be useful, but |
25768 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9c60689e DWT |
25769 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
25770 | # GNU General Public License for more details. | |
25771 | # | |
25772 | # You should have received a copy of the GNU General Public License | |
9d54db95 | 25773 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
35fa52c0 | 25774 | |
35fa52c0 | 25775 | |
9c60689e | 25776 | # The names of the tagged configurations supported by this script. |
9d54db95 JF |
25777 | available_tags='CXX ' |
25778 | ||
25779 | # Configured defaults for sys_lib_dlsearch_path munging. | |
25780 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
35fa52c0 | 25781 | |
9c60689e | 25782 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 25783 | |
9c60689e DWT |
25784 | # Which release of libtool.m4 was used? |
25785 | macro_version=$macro_version | |
25786 | macro_revision=$macro_revision | |
35fa52c0 | 25787 | |
9c60689e DWT |
25788 | # Whether or not to build static libraries. |
25789 | build_old_libs=$enable_static | |
35fa52c0 | 25790 | |
549f29b5 DWT |
25791 | # Whether or not to build shared libraries. |
25792 | build_libtool_libs=$enable_shared | |
25793 | ||
9c60689e DWT |
25794 | # What type of objects to build. |
25795 | pic_mode=$pic_mode | |
35fa52c0 | 25796 | |
9c60689e DWT |
25797 | # Whether or not to optimize for fast installation. |
25798 | fast_install=$enable_fast_install | |
35fa52c0 | 25799 | |
9d54db95 JF |
25800 | # Shared archive member basename,for filename based shared library versioning on AIX. |
25801 | shared_archive_member_spec=$shared_archive_member_spec | |
25802 | ||
ee134472 JF |
25803 | # Shell to use when invoking shell scripts. |
25804 | SHELL=$lt_SHELL | |
25805 | ||
25806 | # An echo program that protects backslashes. | |
25807 | ECHO=$lt_ECHO | |
25808 | ||
53ba6704 JF |
25809 | # The PATH separator for the build system. |
25810 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
25811 | ||
9c60689e DWT |
25812 | # The host system. |
25813 | host_alias=$host_alias | |
25814 | host=$host | |
25815 | host_os=$host_os | |
35fa52c0 | 25816 | |
9c60689e DWT |
25817 | # The build system. |
25818 | build_alias=$build_alias | |
25819 | build=$build | |
25820 | build_os=$build_os | |
25821 | ||
25822 | # A sed program that does not truncate output. | |
25823 | SED=$lt_SED | |
25824 | ||
25825 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
25826 | Xsed="\$SED -e 1s/^X//" | |
25827 | ||
25828 | # A grep program that handles long lines. | |
25829 | GREP=$lt_GREP | |
25830 | ||
25831 | # An ERE matcher. | |
25832 | EGREP=$lt_EGREP | |
25833 | ||
25834 | # A literal string matcher. | |
25835 | FGREP=$lt_FGREP | |
25836 | ||
25837 | # A BSD- or MS-compatible name lister. | |
25838 | NM=$lt_NM | |
25839 | ||
25840 | # Whether we need soft or hard links. | |
25841 | LN_S=$lt_LN_S | |
25842 | ||
25843 | # What is the maximum length of a command? | |
25844 | max_cmd_len=$max_cmd_len | |
25845 | ||
25846 | # Object file suffix (normally "o"). | |
25847 | objext=$ac_objext | |
25848 | ||
25849 | # Executable file suffix (normally ""). | |
25850 | exeext=$exeext | |
25851 | ||
25852 | # whether the shell understands "unset". | |
25853 | lt_unset=$lt_unset | |
25854 | ||
25855 | # turn spaces into newlines. | |
25856 | SP2NL=$lt_lt_SP2NL | |
25857 | ||
25858 | # turn newlines into spaces. | |
25859 | NL2SP=$lt_lt_NL2SP | |
25860 | ||
ee134472 JF |
25861 | # convert \$build file names to \$host format. |
25862 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
25863 | ||
25864 | # convert \$build files to toolchain format. | |
25865 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
25866 | |
25867 | # An object symbol dumper. | |
25868 | OBJDUMP=$lt_OBJDUMP | |
25869 | ||
25870 | # Method to check whether dependent libraries are shared objects. | |
25871 | deplibs_check_method=$lt_deplibs_check_method | |
25872 | ||
ee134472 | 25873 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
25874 | file_magic_cmd=$lt_file_magic_cmd |
25875 | ||
ee134472 JF |
25876 | # How to find potential files when deplibs_check_method = "file_magic". |
25877 | file_magic_glob=$lt_file_magic_glob | |
25878 | ||
25879 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
25880 | want_nocaseglob=$lt_want_nocaseglob | |
25881 | ||
25882 | # DLL creation program. | |
25883 | DLLTOOL=$lt_DLLTOOL | |
25884 | ||
25885 | # Command to associate shared and link libraries. | |
25886 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
25887 | ||
9c60689e DWT |
25888 | # The archiver. |
25889 | AR=$lt_AR | |
ee134472 JF |
25890 | |
25891 | # Flags to create an archive. | |
9c60689e DWT |
25892 | AR_FLAGS=$lt_AR_FLAGS |
25893 | ||
ee134472 JF |
25894 | # How to feed a file listing to the archiver. |
25895 | archiver_list_spec=$lt_archiver_list_spec | |
25896 | ||
9c60689e DWT |
25897 | # A symbol stripping program. |
25898 | STRIP=$lt_STRIP | |
25899 | ||
25900 | # Commands used to install an old-style archive. | |
25901 | RANLIB=$lt_RANLIB | |
25902 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
25903 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
25904 | ||
ee134472 JF |
25905 | # Whether to use a lock for old archive extraction. |
25906 | lock_old_archive_extraction=$lock_old_archive_extraction | |
25907 | ||
9c60689e DWT |
25908 | # A C compiler. |
25909 | LTCC=$lt_CC | |
25910 | ||
25911 | # LTCC compiler flags. | |
25912 | LTCFLAGS=$lt_CFLAGS | |
25913 | ||
25914 | # Take the output of nm and produce a listing of raw symbols and C names. | |
25915 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
25916 | ||
25917 | # Transform the output of nm in a proper C declaration. | |
25918 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
25919 | ||
9d54db95 JF |
25920 | # Transform the output of nm into a list of symbols to manually relocate. |
25921 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
25922 | ||
9c60689e DWT |
25923 | # Transform the output of nm in a C name address pair. |
25924 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
25925 | ||
25926 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
25927 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
25928 | ||
9d54db95 JF |
25929 | # The name lister interface. |
25930 | nm_interface=$lt_lt_cv_nm_interface | |
25931 | ||
ee134472 JF |
25932 | # Specify filename containing input files for \$NM. |
25933 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 25934 | |
9d54db95 | 25935 | # The root where to search for dependent libraries,and where our libraries should be installed. |
ee134472 | 25936 | lt_sysroot=$lt_sysroot |
9c60689e | 25937 | |
9d54db95 JF |
25938 | # Command to truncate a binary pipe. |
25939 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
25940 | ||
ee134472 JF |
25941 | # The name of the directory that contains temporary libtool files. |
25942 | objdir=$objdir | |
9c60689e DWT |
25943 | |
25944 | # Used to examine libraries when file_magic_cmd begins with "file". | |
25945 | MAGIC_CMD=$MAGIC_CMD | |
25946 | ||
25947 | # Must we lock files when doing compilation? | |
25948 | need_locks=$lt_need_locks | |
25949 | ||
ee134472 JF |
25950 | # Manifest tool. |
25951 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
25952 | ||
9c60689e DWT |
25953 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
25954 | DSYMUTIL=$lt_DSYMUTIL | |
25955 | ||
25956 | # Tool to change global to local symbols on Mac OS X. | |
25957 | NMEDIT=$lt_NMEDIT | |
25958 | ||
25959 | # Tool to manipulate fat objects and archives on Mac OS X. | |
25960 | LIPO=$lt_LIPO | |
25961 | ||
25962 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
25963 | OTOOL=$lt_OTOOL | |
25964 | ||
25965 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
25966 | OTOOL64=$lt_OTOOL64 | |
25967 | ||
25968 | # Old archive suffix (normally "a"). | |
25969 | libext=$libext | |
25970 | ||
25971 | # Shared library suffix (normally ".so"). | |
25972 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 25973 | |
9c60689e DWT |
25974 | # The commands to extract the exported symbol list from a shared archive. |
25975 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 25976 | |
9c60689e DWT |
25977 | # Variables whose values should be saved in libtool wrapper scripts and |
25978 | # restored at link time. | |
25979 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 25980 | |
9c60689e DWT |
25981 | # Do we need the "lib" prefix for modules? |
25982 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 25983 | |
9c60689e DWT |
25984 | # Do we need a version for libraries? |
25985 | need_version=$need_version | |
35fa52c0 | 25986 | |
9c60689e DWT |
25987 | # Library versioning type. |
25988 | version_type=$version_type | |
35fa52c0 | 25989 | |
9c60689e DWT |
25990 | # Shared library runtime path variable. |
25991 | runpath_var=$runpath_var | |
35fa52c0 | 25992 | |
9c60689e DWT |
25993 | # Shared library path variable. |
25994 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 25995 | |
9c60689e DWT |
25996 | # Is shlibpath searched before the hard-coded library search path? |
25997 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 25998 | |
9c60689e DWT |
25999 | # Format of library name prefix. |
26000 | libname_spec=$lt_libname_spec | |
35fa52c0 | 26001 | |
9c60689e DWT |
26002 | # List of archive names. First name is the real one, the rest are links. |
26003 | # The last name is the one that the linker finds with -lNAME | |
26004 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 26005 | |
9c60689e DWT |
26006 | # The coded name of the library, if different from the real name. |
26007 | soname_spec=$lt_soname_spec | |
dbadc56a | 26008 | |
ee134472 JF |
26009 | # Permission mode override for installation of shared libraries. |
26010 | install_override_mode=$lt_install_override_mode | |
26011 | ||
9c60689e DWT |
26012 | # Command to use after installation of a shared archive. |
26013 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 26014 | |
9c60689e DWT |
26015 | # Command to use after uninstallation of a shared archive. |
26016 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 26017 | |
9c60689e DWT |
26018 | # Commands used to finish a libtool library installation in a directory. |
26019 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 26020 | |
9c60689e DWT |
26021 | # As "finish_cmds", except a single script fragment to be evaled but |
26022 | # not shown. | |
26023 | finish_eval=$lt_finish_eval | |
35fa52c0 | 26024 | |
9c60689e DWT |
26025 | # Whether we should hardcode library paths into libraries. |
26026 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 26027 | |
9c60689e DWT |
26028 | # Compile-time system search path for libraries. |
26029 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 26030 | |
9d54db95 JF |
26031 | # Detected run-time system search path for libraries. |
26032 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
26033 | ||
26034 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
26035 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
dbadc56a | 26036 | |
9c60689e DWT |
26037 | # Whether dlopen is supported. |
26038 | dlopen_support=$enable_dlopen | |
dbadc56a | 26039 | |
9c60689e DWT |
26040 | # Whether dlopen of programs is supported. |
26041 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 26042 | |
9c60689e DWT |
26043 | # Whether dlopen of statically linked programs is supported. |
26044 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 26045 | |
9c60689e DWT |
26046 | # Commands to strip libraries. |
26047 | old_striplib=$lt_old_striplib | |
26048 | striplib=$lt_striplib | |
35fa52c0 | 26049 | |
35fa52c0 | 26050 | |
9c60689e DWT |
26051 | # The linker used to build libraries. |
26052 | LD=$lt_LD | |
dbadc56a | 26053 | |
ee134472 JF |
26054 | # How to create reloadable object files. |
26055 | reload_flag=$lt_reload_flag | |
26056 | reload_cmds=$lt_reload_cmds | |
26057 | ||
9c60689e DWT |
26058 | # Commands used to build an old-style archive. |
26059 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 26060 | |
9c60689e DWT |
26061 | # A language specific compiler. |
26062 | CC=$lt_compiler | |
35fa52c0 | 26063 | |
9c60689e DWT |
26064 | # Is the compiler the GNU compiler? |
26065 | with_gcc=$GCC | |
dbadc56a | 26066 | |
9c60689e DWT |
26067 | # Compiler flag to turn off builtin functions. |
26068 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 26069 | |
9c60689e DWT |
26070 | # Additional compiler flags for building library objects. |
26071 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 26072 | |
ee134472 JF |
26073 | # How to pass a linker flag through the compiler. |
26074 | wl=$lt_lt_prog_compiler_wl | |
26075 | ||
9c60689e DWT |
26076 | # Compiler flag to prevent dynamic linking. |
26077 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 26078 | |
9c60689e DWT |
26079 | # Does compiler simultaneously support -c and -o options? |
26080 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 26081 | |
9c60689e DWT |
26082 | # Whether or not to add -lc for building shared libraries. |
26083 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 26084 | |
9c60689e DWT |
26085 | # Whether or not to disallow shared libs when runtime libs are static. |
26086 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 26087 | |
9c60689e DWT |
26088 | # Compiler flag to allow reflexive dlopens. |
26089 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 26090 | |
9c60689e DWT |
26091 | # Compiler flag to generate shared objects directly from archives. |
26092 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 26093 | |
9c60689e DWT |
26094 | # Whether the compiler copes with passing no objects directly. |
26095 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 26096 | |
9c60689e DWT |
26097 | # Create an old-style archive from a shared archive. |
26098 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 26099 | |
9c60689e DWT |
26100 | # Create a temporary old-style archive to link instead of a shared archive. |
26101 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 26102 | |
9c60689e DWT |
26103 | # Commands used to build a shared archive. |
26104 | archive_cmds=$lt_archive_cmds | |
26105 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 26106 | |
9c60689e DWT |
26107 | # Commands used to build a loadable module if different from building |
26108 | # a shared archive. | |
26109 | module_cmds=$lt_module_cmds | |
26110 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 26111 | |
9c60689e DWT |
26112 | # Whether we are building with GNU ld or not. |
26113 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 26114 | |
9c60689e DWT |
26115 | # Flag that allows shared libraries with undefined symbols to be built. |
26116 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 26117 | |
9c60689e DWT |
26118 | # Flag that enforces no undefined symbols. |
26119 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 26120 | |
9c60689e DWT |
26121 | # Flag to hardcode \$libdir into a binary during linking. |
26122 | # This must work even if \$libdir does not exist | |
26123 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 26124 | |
9c60689e DWT |
26125 | # Whether we need a single "-rpath" flag with a separated argument. |
26126 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 26127 | |
9d54db95 | 26128 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
26129 | # DIR into the resulting binary. |
26130 | hardcode_direct=$hardcode_direct | |
6b66678a | 26131 | |
9d54db95 | 26132 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 26133 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 26134 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
26135 | # library is relocated. |
26136 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 26137 | |
9c60689e DWT |
26138 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
26139 | # into the resulting binary. | |
26140 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 26141 | |
9c60689e DWT |
26142 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
26143 | # into the resulting binary. | |
26144 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 26145 | |
9c60689e DWT |
26146 | # Set to "yes" if building a shared library automatically hardcodes DIR |
26147 | # into the library and all subsequent libraries and executables linked | |
26148 | # against it. | |
26149 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 26150 | |
9c60689e DWT |
26151 | # Set to yes if linker adds runtime paths of dependent libraries |
26152 | # to runtime path list. | |
26153 | inherit_rpath=$inherit_rpath | |
6b66678a | 26154 | |
9c60689e DWT |
26155 | # Whether libtool must link a program against all its dependency libraries. |
26156 | link_all_deplibs=$link_all_deplibs | |
26157 | ||
9c60689e DWT |
26158 | # Set to "yes" if exported symbols are required. |
26159 | always_export_symbols=$always_export_symbols | |
6b66678a | 26160 | |
9c60689e DWT |
26161 | # The commands to list exported symbols. |
26162 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 26163 | |
9c60689e DWT |
26164 | # Symbols that should not be listed in the preloaded symbols. |
26165 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 26166 | |
9c60689e DWT |
26167 | # Symbols that must always be exported. |
26168 | include_expsyms=$lt_include_expsyms | |
6b66678a | 26169 | |
9c60689e DWT |
26170 | # Commands necessary for linking programs (against libraries) with templates. |
26171 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 26172 | |
ee134472 JF |
26173 | # Commands necessary for finishing linking programs. |
26174 | postlink_cmds=$lt_postlink_cmds | |
26175 | ||
9c60689e DWT |
26176 | # Specify filename containing input files. |
26177 | file_list_spec=$lt_file_list_spec | |
6b66678a | 26178 | |
9c60689e DWT |
26179 | # How to hardcode a shared library path into an executable. |
26180 | hardcode_action=$hardcode_action | |
26181 | ||
26182 | # The directories searched by this compiler when creating a shared library. | |
26183 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
26184 | ||
26185 | # Dependencies to place before and after the objects being linked to | |
26186 | # create a shared library. | |
26187 | predep_objects=$lt_predep_objects | |
26188 | postdep_objects=$lt_postdep_objects | |
26189 | predeps=$lt_predeps | |
26190 | postdeps=$lt_postdeps | |
26191 | ||
26192 | # The library search path used internally by the compiler when linking | |
26193 | # a shared library. | |
26194 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
26195 | ||
26196 | # ### END LIBTOOL CONFIG | |
26197 | ||
9d54db95 JF |
26198 | _LT_EOF |
26199 | ||
26200 | cat <<'_LT_EOF' >> "$cfgfile" | |
26201 | ||
26202 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
26203 | ||
26204 | # func_munge_path_list VARIABLE PATH | |
26205 | # ----------------------------------- | |
26206 | # VARIABLE is name of variable containing _space_ separated list of | |
26207 | # directories to be munged by the contents of PATH, which is string | |
26208 | # having a format: | |
26209 | # "DIR[:DIR]:" | |
26210 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
26211 | # ":DIR[:DIR]" | |
26212 | # string "DIR[ DIR]" will be appended to VARIABLE | |
26213 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
26214 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
26215 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
26216 | # "DIR[:DIR]" | |
26217 | # VARIABLE will be replaced by "DIR[ DIR]" | |
26218 | func_munge_path_list () | |
26219 | { | |
26220 | case x$2 in | |
26221 | x) | |
26222 | ;; | |
26223 | *:) | |
26224 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
26225 | ;; | |
26226 | x:*) | |
26227 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
26228 | ;; | |
26229 | *::*) | |
26230 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
26231 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
26232 | ;; | |
26233 | *) | |
26234 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
26235 | ;; | |
26236 | esac | |
26237 | } | |
26238 | ||
26239 | ||
26240 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
26241 | func_cc_basename () | |
26242 | { | |
26243 | for cc_temp in $*""; do | |
26244 | case $cc_temp in | |
26245 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
26246 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
26247 | \-*) ;; | |
26248 | *) break;; | |
26249 | esac | |
26250 | done | |
26251 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
26252 | } | |
26253 | ||
26254 | ||
26255 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
26256 | ||
9c60689e DWT |
26257 | _LT_EOF |
26258 | ||
26259 | case $host_os in | |
26260 | aix3*) | |
26261 | cat <<\_LT_EOF >> "$cfgfile" | |
26262 | # AIX sometimes has problems with the GCC collect2 program. For some | |
26263 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
26264 | # vanish in a puff of smoke. | |
9d54db95 | 26265 | if test set != "${COLLECT_NAMES+set}"; then |
9c60689e DWT |
26266 | COLLECT_NAMES= |
26267 | export COLLECT_NAMES | |
6b66678a | 26268 | fi |
9c60689e DWT |
26269 | _LT_EOF |
26270 | ;; | |
26271 | esac | |
6b66678a DWT |
26272 | |
26273 | ||
9d54db95 | 26274 | ltmain=$ac_aux_dir/ltmain.sh |
6b66678a | 26275 | |
9c60689e DWT |
26276 | |
26277 | # We use sed instead of cat because bash on DJGPP gets confused if | |
26278 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
26279 | # text mode, it properly converts lines to CR/LF. This bash problem | |
26280 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
26281 | sed '$q' "$ltmain" >> "$cfgfile" \ |
26282 | || (rm -f "$cfgfile"; exit 1) | |
26283 | ||
ee134472 | 26284 | mv -f "$cfgfile" "$ofile" || |
9c60689e DWT |
26285 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
26286 | chmod +x "$ofile" | |
26287 | ||
26288 | ||
26289 | cat <<_LT_EOF >> "$ofile" | |
26290 | ||
26291 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
26292 | ||
26293 | # The linker used to build libraries. | |
26294 | LD=$lt_LD_CXX | |
26295 | ||
ee134472 JF |
26296 | # How to create reloadable object files. |
26297 | reload_flag=$lt_reload_flag_CXX | |
26298 | reload_cmds=$lt_reload_cmds_CXX | |
26299 | ||
9c60689e DWT |
26300 | # Commands used to build an old-style archive. |
26301 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
26302 | ||
26303 | # A language specific compiler. | |
26304 | CC=$lt_compiler_CXX | |
26305 | ||
26306 | # Is the compiler the GNU compiler? | |
26307 | with_gcc=$GCC_CXX | |
26308 | ||
26309 | # Compiler flag to turn off builtin functions. | |
26310 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 26311 | |
9c60689e DWT |
26312 | # Additional compiler flags for building library objects. |
26313 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 26314 | |
ee134472 JF |
26315 | # How to pass a linker flag through the compiler. |
26316 | wl=$lt_lt_prog_compiler_wl_CXX | |
26317 | ||
9c60689e DWT |
26318 | # Compiler flag to prevent dynamic linking. |
26319 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 26320 | |
9c60689e DWT |
26321 | # Does compiler simultaneously support -c and -o options? |
26322 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 26323 | |
9c60689e DWT |
26324 | # Whether or not to add -lc for building shared libraries. |
26325 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 26326 | |
9c60689e DWT |
26327 | # Whether or not to disallow shared libs when runtime libs are static. |
26328 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 26329 | |
9c60689e DWT |
26330 | # Compiler flag to allow reflexive dlopens. |
26331 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 26332 | |
9c60689e DWT |
26333 | # Compiler flag to generate shared objects directly from archives. |
26334 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 26335 | |
9c60689e DWT |
26336 | # Whether the compiler copes with passing no objects directly. |
26337 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 26338 | |
9c60689e DWT |
26339 | # Create an old-style archive from a shared archive. |
26340 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 26341 | |
9c60689e DWT |
26342 | # Create a temporary old-style archive to link instead of a shared archive. |
26343 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 26344 | |
9c60689e DWT |
26345 | # Commands used to build a shared archive. |
26346 | archive_cmds=$lt_archive_cmds_CXX | |
26347 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 26348 | |
9c60689e DWT |
26349 | # Commands used to build a loadable module if different from building |
26350 | # a shared archive. | |
26351 | module_cmds=$lt_module_cmds_CXX | |
26352 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 26353 | |
9c60689e DWT |
26354 | # Whether we are building with GNU ld or not. |
26355 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 26356 | |
9c60689e DWT |
26357 | # Flag that allows shared libraries with undefined symbols to be built. |
26358 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 26359 | |
9c60689e DWT |
26360 | # Flag that enforces no undefined symbols. |
26361 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 26362 | |
9c60689e DWT |
26363 | # Flag to hardcode \$libdir into a binary during linking. |
26364 | # This must work even if \$libdir does not exist | |
26365 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 26366 | |
9c60689e DWT |
26367 | # Whether we need a single "-rpath" flag with a separated argument. |
26368 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 26369 | |
9d54db95 | 26370 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
26371 | # DIR into the resulting binary. |
26372 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 26373 | |
9d54db95 | 26374 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 26375 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 26376 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
26377 | # library is relocated. |
26378 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 26379 | |
9c60689e DWT |
26380 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
26381 | # into the resulting binary. | |
26382 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 26383 | |
9c60689e DWT |
26384 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
26385 | # into the resulting binary. | |
26386 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 26387 | |
9c60689e DWT |
26388 | # Set to "yes" if building a shared library automatically hardcodes DIR |
26389 | # into the library and all subsequent libraries and executables linked | |
26390 | # against it. | |
26391 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 26392 | |
9c60689e DWT |
26393 | # Set to yes if linker adds runtime paths of dependent libraries |
26394 | # to runtime path list. | |
26395 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 26396 | |
9c60689e DWT |
26397 | # Whether libtool must link a program against all its dependency libraries. |
26398 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 26399 | |
9c60689e DWT |
26400 | # Set to "yes" if exported symbols are required. |
26401 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 26402 | |
9c60689e DWT |
26403 | # The commands to list exported symbols. |
26404 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 26405 | |
9c60689e DWT |
26406 | # Symbols that should not be listed in the preloaded symbols. |
26407 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 26408 | |
9c60689e DWT |
26409 | # Symbols that must always be exported. |
26410 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 26411 | |
9c60689e DWT |
26412 | # Commands necessary for linking programs (against libraries) with templates. |
26413 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 26414 | |
ee134472 JF |
26415 | # Commands necessary for finishing linking programs. |
26416 | postlink_cmds=$lt_postlink_cmds_CXX | |
26417 | ||
9c60689e DWT |
26418 | # Specify filename containing input files. |
26419 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 26420 | |
9c60689e DWT |
26421 | # How to hardcode a shared library path into an executable. |
26422 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 26423 | |
9c60689e DWT |
26424 | # The directories searched by this compiler when creating a shared library. |
26425 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 26426 | |
9c60689e DWT |
26427 | # Dependencies to place before and after the objects being linked to |
26428 | # create a shared library. | |
26429 | predep_objects=$lt_predep_objects_CXX | |
26430 | postdep_objects=$lt_postdep_objects_CXX | |
26431 | predeps=$lt_predeps_CXX | |
26432 | postdeps=$lt_postdeps_CXX | |
309b0535 | 26433 | |
9c60689e DWT |
26434 | # The library search path used internally by the compiler when linking |
26435 | # a shared library. | |
26436 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
26437 | ||
26438 | # ### END LIBTOOL TAG CONFIG: CXX | |
26439 | _LT_EOF | |
26440 | ||
26441 | ;; | |
26442 | ||
26443 | esac | |
26444 | done # for ac_tag | |
26445 | ||
26446 | ||
26447 | as_fn_exit 0 | |
26448 | _ACEOF | |
26449 | ac_clean_files=$ac_clean_files_save | |
26450 | ||
26451 | test $ac_write_fail = 0 || | |
12833ad8 | 26452 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
26453 | |
26454 | ||
26455 | # configure is writing to config.log, and then calls config.status. | |
26456 | # config.status does its own redirection, appending to config.log. | |
26457 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26458 | # by configure, so config.status won't be able to write to it; its | |
26459 | # output is simply discarded. So we exec the FD to /dev/null, | |
26460 | # effectively closing config.log, so it can be properly (re)opened and | |
26461 | # appended to by config.status. When coming back to configure, we | |
26462 | # need to make the FD available again. | |
26463 | if test "$no_create" != yes; then | |
26464 | ac_cs_success=: | |
26465 | ac_config_status_args= | |
26466 | test "$silent" = yes && | |
26467 | ac_config_status_args="$ac_config_status_args --quiet" | |
26468 | exec 5>/dev/null | |
26469 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26470 | exec 5>>config.log | |
26471 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26472 | # would make configure fail if this is the last instruction. | |
12833ad8 | 26473 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 26474 | fi |
9c60689e DWT |
26475 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
26476 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
26477 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
26478 | fi | |
26479 |