]>
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 | |
39ed1631 JF |
651 | CY_JAVA_FALSE |
652 | CY_JAVA_TRUE | |
babf7fe8 | 653 | LTOBJECTIVEC |
47aaa820 | 654 | GNUSTEP_CONFIG |
c823f118 | 655 | CY_OBJECTIVEC |
39ed1631 JF |
656 | LTJAVA |
657 | CY_JAVA | |
296ee9a6 | 658 | LTLIBFFI |
309b0535 | 659 | LIBFFI_LIBS |
35fa52c0 | 660 | LIBFFI_CFLAGS |
8d20f0f1 | 661 | LTLIBSQLITE3 |
ae1b611e | 662 | LTLIBUV |
8d20f0f1 | 663 | CY_SYSTEM |
a243b558 JF |
664 | CY_EXECUTE_FALSE |
665 | CY_EXECUTE_TRUE | |
a4287117 JF |
666 | CY_ATTACH_FALSE |
667 | CY_ATTACH_TRUE | |
a93f15c0 JF |
668 | CY_CONSOLE_FALSE |
669 | CY_CONSOLE_TRUE | |
babf7fe8 | 670 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
671 | WEBKIT_LIBS |
672 | WEBKIT_CFLAGS | |
7eda51e0 | 673 | CY_EXECUTE |
be2fde87 JF |
674 | PTHREAD_CFLAGS |
675 | PTHREAD_LIBS | |
676 | PTHREAD_CC | |
677 | ax_pthread_config | |
77578fdd | 678 | LFLAGS |
e9c9a47c | 679 | GNUTAR |
e9c9a47c DWT |
680 | GPERF |
681 | FLEX | |
682 | BISON | |
683 | TIME | |
66170b30 | 684 | GIT |
12833ad8 JF |
685 | PKG_CONFIG_LIBDIR |
686 | PKG_CONFIG_PATH | |
3fd51f51 | 687 | PKG_CONFIG |
1771224f | 688 | HAVE_CXX11 |
9d54db95 | 689 | LT_SYS_LIBRARY_PATH |
9c60689e DWT |
690 | OTOOL64 |
691 | OTOOL | |
692 | LIPO | |
693 | NMEDIT | |
694 | DSYMUTIL | |
ee134472 | 695 | MANIFEST_TOOL |
9c60689e | 696 | RANLIB |
ee134472 | 697 | DLLTOOL |
9c60689e DWT |
698 | OBJDUMP |
699 | LN_S | |
700 | NM | |
701 | ac_ct_DUMPBIN | |
702 | DUMPBIN | |
703 | LD | |
704 | FGREP | |
705 | EGREP | |
706 | GREP | |
707 | SED | |
8d20f0f1 JF |
708 | LIBTOOL |
709 | ac_ct_AR | |
710 | AR | |
711 | CXXCPPFLAGS_FOR_BUILD | |
712 | CXXFLAGS_FOR_BUILD | |
713 | CXXCPP_FOR_BUILD | |
714 | ac_ct_CXX_FOR_BUILD | |
715 | CXX_FOR_BUILD | |
716 | CXXCPP | |
717 | LDFLAGS_FOR_BUILD | |
718 | CPPFLAGS_FOR_BUILD | |
719 | CFLAGS_FOR_BUILD | |
720 | BUILD_OBJEXT | |
721 | BUILD_EXEEXT | |
722 | CPP_FOR_BUILD | |
723 | ac_ct_CC_FOR_BUILD | |
724 | CC_FOR_BUILD | |
a243b558 JF |
725 | host_os |
726 | host_vendor | |
727 | host_cpu | |
728 | host | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
8d20f0f1 | 733 | CPP |
a243b558 JF |
734 | am__fastdepOBJCXX_FALSE |
735 | am__fastdepOBJCXX_TRUE | |
736 | OBJCXXDEPMODE | |
737 | ac_ct_OBJCXX | |
738 | OBJCXXFLAGS | |
739 | OBJCXX | |
740 | am__fastdepCXX_FALSE | |
741 | am__fastdepCXX_TRUE | |
742 | CXXDEPMODE | |
a93f15c0 JF |
743 | ac_ct_CXX |
744 | CXXFLAGS | |
745 | CXX | |
746 | am__fastdepCC_FALSE | |
747 | am__fastdepCC_TRUE | |
748 | CCDEPMODE | |
66170b30 JF |
749 | am__nodep |
750 | AMDEPBACKSLASH | |
751 | AMDEP_FALSE | |
752 | AMDEP_TRUE | |
753 | am__quote | |
754 | am__include | |
755 | DEPDIR | |
35fa52c0 DWT |
756 | OBJEXT |
757 | EXEEXT | |
a93f15c0 | 758 | ac_ct_CC |
35fa52c0 DWT |
759 | CPPFLAGS |
760 | LDFLAGS | |
a93f15c0 JF |
761 | CFLAGS |
762 | CC | |
babf7fe8 JF |
763 | MAINT |
764 | MAINTAINER_MODE_FALSE | |
765 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
766 | AM_BACKSLASH |
767 | AM_DEFAULT_VERBOSITY | |
768 | AM_DEFAULT_V | |
769 | AM_V | |
770 | am__untar | |
771 | am__tar | |
772 | AMTAR | |
773 | am__leading_dot | |
774 | SET_MAKE | |
775 | AWK | |
776 | mkdir_p | |
777 | MKDIR_P | |
778 | INSTALL_STRIP_PROGRAM | |
779 | STRIP | |
780 | install_sh | |
781 | MAKEINFO | |
782 | AUTOHEADER | |
783 | AUTOMAKE | |
784 | AUTOCONF | |
785 | ACLOCAL | |
786 | VERSION | |
787 | PACKAGE | |
788 | CYGPATH_W | |
789 | am__isrc | |
790 | INSTALL_DATA | |
791 | INSTALL_SCRIPT | |
792 | INSTALL_PROGRAM | |
dbadc56a | 793 | target_alias |
c7aa54aa DWT |
794 | host_alias |
795 | build_alias | |
796 | LIBS | |
797 | ECHO_T | |
798 | ECHO_N | |
799 | ECHO_C | |
800 | DEFS | |
801 | mandir | |
802 | localedir | |
803 | libdir | |
804 | psdir | |
805 | pdfdir | |
806 | dvidir | |
807 | htmldir | |
808 | infodir | |
809 | docdir | |
810 | oldincludedir | |
811 | includedir | |
812 | localstatedir | |
813 | sharedstatedir | |
814 | sysconfdir | |
815 | datadir | |
816 | datarootdir | |
817 | libexecdir | |
818 | sbindir | |
819 | bindir | |
820 | program_transform_name | |
821 | prefix | |
822 | exec_prefix | |
823 | PACKAGE_URL | |
824 | PACKAGE_BUGREPORT | |
825 | PACKAGE_STRING | |
826 | PACKAGE_VERSION | |
827 | PACKAGE_TARNAME | |
828 | PACKAGE_NAME | |
829 | PATH_SEPARATOR | |
830 | SHELL' | |
831 | ac_subst_files='' | |
832 | ac_user_opts=' | |
833 | enable_option_checking | |
66170b30 | 834 | enable_silent_rules |
babf7fe8 | 835 | enable_maintainer_mode |
a243b558 | 836 | enable_dependency_tracking |
9c60689e | 837 | enable_static |
549f29b5 | 838 | enable_shared |
9c60689e DWT |
839 | with_pic |
840 | enable_fast_install | |
9d54db95 | 841 | with_aix_soname |
35fa52c0 | 842 | with_gnu_ld |
ee134472 | 843 | with_sysroot |
9c60689e | 844 | enable_libtool_lock |
5053a6d1 | 845 | enable_javascript |
a93f15c0 | 846 | enable_console |
a4287117 | 847 | enable_attach |
8d20f0f1 | 848 | with_libclang |
c7aa54aa DWT |
849 | ' |
850 | ac_precious_vars='build_alias | |
851 | host_alias | |
dbadc56a | 852 | target_alias |
a93f15c0 JF |
853 | CC |
854 | CFLAGS | |
dbadc56a DWT |
855 | LDFLAGS |
856 | LIBS | |
857 | CPPFLAGS | |
a93f15c0 JF |
858 | CXX |
859 | CXXFLAGS | |
a243b558 JF |
860 | CCC |
861 | OBJCXX | |
862 | OBJCXXFLAGS | |
9c60689e | 863 | CPP |
a243b558 | 864 | CXXCPP |
8d20f0f1 | 865 | LT_SYS_LIBRARY_PATH |
3fd51f51 | 866 | PKG_CONFIG |
12833ad8 JF |
867 | PKG_CONFIG_PATH |
868 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
869 | BISON |
870 | FLEX | |
871 | GPERF | |
66170b30 | 872 | GNUTAR |
77578fdd | 873 | LFLAGS |
35fa52c0 DWT |
874 | WEBKIT_CFLAGS |
875 | WEBKIT_LIBS | |
a667869d | 876 | LIBFFI_CFLAGS |
790e5246 DWT |
877 | LIBFFI_LIBS |
878 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
879 | |
880 | ||
881 | # Initialize some variables set by options. | |
882 | ac_init_help= | |
883 | ac_init_version=false | |
884 | ac_unrecognized_opts= | |
885 | ac_unrecognized_sep= | |
886 | # The variables have the same names as the options, with | |
887 | # dashes changed to underlines. | |
888 | cache_file=/dev/null | |
889 | exec_prefix=NONE | |
890 | no_create= | |
891 | no_recursion= | |
892 | prefix=NONE | |
893 | program_prefix=NONE | |
894 | program_suffix=NONE | |
895 | program_transform_name=s,x,x, | |
896 | silent= | |
897 | site= | |
898 | srcdir= | |
899 | verbose= | |
900 | x_includes=NONE | |
901 | x_libraries=NONE | |
902 | ||
903 | # Installation directory options. | |
904 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
905 | # and all the variables that are supposed to be based on exec_prefix | |
906 | # by default will actually change. | |
907 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
908 | # (The list follows the same order as the GNU Coding Standards.) | |
909 | bindir='${exec_prefix}/bin' | |
910 | sbindir='${exec_prefix}/sbin' | |
911 | libexecdir='${exec_prefix}/libexec' | |
912 | datarootdir='${prefix}/share' | |
913 | datadir='${datarootdir}' | |
914 | sysconfdir='${prefix}/etc' | |
915 | sharedstatedir='${prefix}/com' | |
916 | localstatedir='${prefix}/var' | |
917 | includedir='${prefix}/include' | |
918 | oldincludedir='/usr/include' | |
919 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
920 | infodir='${datarootdir}/info' | |
921 | htmldir='${docdir}' | |
922 | dvidir='${docdir}' | |
923 | pdfdir='${docdir}' | |
924 | psdir='${docdir}' | |
925 | libdir='${exec_prefix}/lib' | |
926 | localedir='${datarootdir}/locale' | |
927 | mandir='${datarootdir}/man' | |
928 | ||
929 | ac_prev= | |
930 | ac_dashdash= | |
931 | for ac_option | |
932 | do | |
933 | # If the previous option needs an argument, assign it. | |
934 | if test -n "$ac_prev"; then | |
935 | eval $ac_prev=\$ac_option | |
936 | ac_prev= | |
937 | continue | |
938 | fi | |
939 | ||
940 | case $ac_option in | |
12833ad8 JF |
941 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
942 | *=) ac_optarg= ;; | |
943 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
944 | esac |
945 | ||
946 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
947 | ||
948 | case $ac_dashdash$ac_option in | |
949 | --) | |
950 | ac_dashdash=yes ;; | |
951 | ||
952 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
953 | ac_prev=bindir ;; | |
954 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
955 | bindir=$ac_optarg ;; | |
956 | ||
957 | -build | --build | --buil | --bui | --bu) | |
958 | ac_prev=build_alias ;; | |
959 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
960 | build_alias=$ac_optarg ;; | |
961 | ||
962 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
963 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
964 | ac_prev=cache_file ;; | |
965 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
966 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
967 | cache_file=$ac_optarg ;; | |
968 | ||
969 | --config-cache | -C) | |
970 | cache_file=config.cache ;; | |
971 | ||
972 | -datadir | --datadir | --datadi | --datad) | |
973 | ac_prev=datadir ;; | |
974 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
975 | datadir=$ac_optarg ;; | |
976 | ||
977 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
978 | | --dataroo | --dataro | --datar) | |
979 | ac_prev=datarootdir ;; | |
980 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
981 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
982 | datarootdir=$ac_optarg ;; | |
983 | ||
984 | -disable-* | --disable-*) | |
985 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
986 | # Reject names that are not valid shell variable names. | |
987 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 988 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
989 | ac_useropt_orig=$ac_useropt |
990 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
991 | case $ac_user_opts in | |
992 | *" | |
993 | "enable_$ac_useropt" | |
994 | "*) ;; | |
995 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
996 | ac_unrecognized_sep=', ';; | |
997 | esac | |
998 | eval enable_$ac_useropt=no ;; | |
999 | ||
1000 | -docdir | --docdir | --docdi | --doc | --do) | |
1001 | ac_prev=docdir ;; | |
1002 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1003 | docdir=$ac_optarg ;; | |
1004 | ||
1005 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1006 | ac_prev=dvidir ;; | |
1007 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1008 | dvidir=$ac_optarg ;; | |
1009 | ||
1010 | -enable-* | --enable-*) | |
1011 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1012 | # Reject names that are not valid shell variable names. | |
1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1014 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
1015 | ac_useropt_orig=$ac_useropt |
1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1017 | case $ac_user_opts in | |
1018 | *" | |
1019 | "enable_$ac_useropt" | |
1020 | "*) ;; | |
1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1022 | ac_unrecognized_sep=', ';; | |
1023 | esac | |
1024 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1025 | ||
1026 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1027 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1028 | | --exec | --exe | --ex) | |
1029 | ac_prev=exec_prefix ;; | |
1030 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1031 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1032 | | --exec=* | --exe=* | --ex=*) | |
1033 | exec_prefix=$ac_optarg ;; | |
1034 | ||
1035 | -gas | --gas | --ga | --g) | |
1036 | # Obsolete; use --with-gas. | |
1037 | with_gas=yes ;; | |
1038 | ||
1039 | -help | --help | --hel | --he | -h) | |
1040 | ac_init_help=long ;; | |
1041 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1042 | ac_init_help=recursive ;; | |
1043 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1044 | ac_init_help=short ;; | |
1045 | ||
1046 | -host | --host | --hos | --ho) | |
1047 | ac_prev=host_alias ;; | |
1048 | -host=* | --host=* | --hos=* | --ho=*) | |
1049 | host_alias=$ac_optarg ;; | |
1050 | ||
1051 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1052 | ac_prev=htmldir ;; | |
1053 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1054 | | --ht=*) | |
1055 | htmldir=$ac_optarg ;; | |
1056 | ||
1057 | -includedir | --includedir | --includedi | --included | --include \ | |
1058 | | --includ | --inclu | --incl | --inc) | |
1059 | ac_prev=includedir ;; | |
1060 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1061 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1062 | includedir=$ac_optarg ;; | |
1063 | ||
1064 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1065 | ac_prev=infodir ;; | |
1066 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1067 | infodir=$ac_optarg ;; | |
1068 | ||
1069 | -libdir | --libdir | --libdi | --libd) | |
1070 | ac_prev=libdir ;; | |
1071 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1072 | libdir=$ac_optarg ;; | |
1073 | ||
1074 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1075 | | --libexe | --libex | --libe) | |
1076 | ac_prev=libexecdir ;; | |
1077 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1078 | | --libexe=* | --libex=* | --libe=*) | |
1079 | libexecdir=$ac_optarg ;; | |
1080 | ||
1081 | -localedir | --localedir | --localedi | --localed | --locale) | |
1082 | ac_prev=localedir ;; | |
1083 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1084 | localedir=$ac_optarg ;; | |
1085 | ||
1086 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1087 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1088 | ac_prev=localstatedir ;; | |
1089 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1090 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1091 | localstatedir=$ac_optarg ;; | |
1092 | ||
1093 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1094 | ac_prev=mandir ;; | |
1095 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1096 | mandir=$ac_optarg ;; | |
1097 | ||
1098 | -nfp | --nfp | --nf) | |
1099 | # Obsolete; use --without-fp. | |
1100 | with_fp=no ;; | |
1101 | ||
1102 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1103 | | --no-cr | --no-c | -n) | |
1104 | no_create=yes ;; | |
1105 | ||
1106 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1107 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1108 | no_recursion=yes ;; | |
1109 | ||
1110 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1111 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1112 | | --oldin | --oldi | --old | --ol | --o) | |
1113 | ac_prev=oldincludedir ;; | |
1114 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1115 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1116 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1117 | oldincludedir=$ac_optarg ;; | |
1118 | ||
1119 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1120 | ac_prev=prefix ;; | |
1121 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1122 | prefix=$ac_optarg ;; | |
1123 | ||
1124 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1125 | | --program-pre | --program-pr | --program-p) | |
1126 | ac_prev=program_prefix ;; | |
1127 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1128 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1129 | program_prefix=$ac_optarg ;; | |
1130 | ||
1131 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1132 | | --program-suf | --program-su | --program-s) | |
1133 | ac_prev=program_suffix ;; | |
1134 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1135 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1136 | program_suffix=$ac_optarg ;; | |
1137 | ||
1138 | -program-transform-name | --program-transform-name \ | |
1139 | | --program-transform-nam | --program-transform-na \ | |
1140 | | --program-transform-n | --program-transform- \ | |
1141 | | --program-transform | --program-transfor \ | |
1142 | | --program-transfo | --program-transf \ | |
1143 | | --program-trans | --program-tran \ | |
1144 | | --progr-tra | --program-tr | --program-t) | |
1145 | ac_prev=program_transform_name ;; | |
1146 | -program-transform-name=* | --program-transform-name=* \ | |
1147 | | --program-transform-nam=* | --program-transform-na=* \ | |
1148 | | --program-transform-n=* | --program-transform-=* \ | |
1149 | | --program-transform=* | --program-transfor=* \ | |
1150 | | --program-transfo=* | --program-transf=* \ | |
1151 | | --program-trans=* | --program-tran=* \ | |
1152 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1153 | program_transform_name=$ac_optarg ;; | |
1154 | ||
1155 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1156 | ac_prev=pdfdir ;; | |
1157 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1158 | pdfdir=$ac_optarg ;; | |
1159 | ||
1160 | -psdir | --psdir | --psdi | --psd | --ps) | |
1161 | ac_prev=psdir ;; | |
1162 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1163 | psdir=$ac_optarg ;; | |
1164 | ||
1165 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1166 | | -silent | --silent | --silen | --sile | --sil) | |
1167 | silent=yes ;; | |
1168 | ||
1169 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1170 | ac_prev=sbindir ;; | |
1171 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1172 | | --sbi=* | --sb=*) | |
1173 | sbindir=$ac_optarg ;; | |
1174 | ||
1175 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1176 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1177 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1178 | | --sha | --sh) | |
1179 | ac_prev=sharedstatedir ;; | |
1180 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1181 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1182 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1183 | | --sha=* | --sh=*) | |
1184 | sharedstatedir=$ac_optarg ;; | |
1185 | ||
1186 | -site | --site | --sit) | |
1187 | ac_prev=site ;; | |
1188 | -site=* | --site=* | --sit=*) | |
1189 | site=$ac_optarg ;; | |
1190 | ||
1191 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1192 | ac_prev=srcdir ;; | |
1193 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1194 | srcdir=$ac_optarg ;; | |
1195 | ||
1196 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1197 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1198 | ac_prev=sysconfdir ;; | |
1199 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1200 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1201 | sysconfdir=$ac_optarg ;; | |
1202 | ||
1203 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1204 | ac_prev=target_alias ;; | |
1205 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1206 | target_alias=$ac_optarg ;; | |
1207 | ||
1208 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1209 | verbose=yes ;; | |
1210 | ||
1211 | -version | --version | --versio | --versi | --vers | -V) | |
1212 | ac_init_version=: ;; | |
1213 | ||
1214 | -with-* | --with-*) | |
1215 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1216 | # Reject names that are not valid shell variable names. | |
1217 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1218 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1219 | ac_useropt_orig=$ac_useropt |
1220 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1221 | case $ac_user_opts in | |
1222 | *" | |
1223 | "with_$ac_useropt" | |
1224 | "*) ;; | |
1225 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1226 | ac_unrecognized_sep=', ';; | |
1227 | esac | |
1228 | eval with_$ac_useropt=\$ac_optarg ;; | |
1229 | ||
1230 | -without-* | --without-*) | |
1231 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1232 | # Reject names that are not valid shell variable names. | |
1233 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1234 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1235 | ac_useropt_orig=$ac_useropt |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=no ;; | |
1245 | ||
1246 | --x) | |
1247 | # Obsolete; use --with-x. | |
1248 | with_x=yes ;; | |
1249 | ||
1250 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1251 | | --x-incl | --x-inc | --x-in | --x-i) | |
1252 | ac_prev=x_includes ;; | |
1253 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1254 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1255 | x_includes=$ac_optarg ;; | |
1256 | ||
1257 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1258 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1259 | ac_prev=x_libraries ;; | |
1260 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1261 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1262 | x_libraries=$ac_optarg ;; | |
1263 | ||
12833ad8 JF |
1264 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1265 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1266 | ;; |
1267 | ||
1268 | *=*) | |
1269 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1270 | # Reject names that are not valid shell variable names. | |
1271 | case $ac_envvar in #( | |
1272 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1273 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1274 | esac |
1275 | eval $ac_envvar=\$ac_optarg | |
1276 | export $ac_envvar ;; | |
1277 | ||
1278 | *) | |
1279 | # FIXME: should be removed in autoconf 3.0. | |
1280 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1281 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1282 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1283 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1284 | ;; |
1285 | ||
1286 | esac | |
1287 | done | |
1288 | ||
1289 | if test -n "$ac_prev"; then | |
1290 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1291 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1292 | fi |
1293 | ||
1294 | if test -n "$ac_unrecognized_opts"; then | |
1295 | case $enable_option_checking in | |
1296 | no) ;; | |
12833ad8 | 1297 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1298 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1299 | esac | |
1300 | fi | |
1301 | ||
1302 | # Check all directory arguments for consistency. | |
1303 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1304 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1305 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1306 | libdir localedir mandir | |
1307 | do | |
1308 | eval ac_val=\$$ac_var | |
1309 | # Remove trailing slashes. | |
1310 | case $ac_val in | |
1311 | */ ) | |
1312 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1313 | eval $ac_var=\$ac_val;; | |
1314 | esac | |
1315 | # Be sure to have absolute directory names. | |
1316 | case $ac_val in | |
1317 | [\\/$]* | ?:[\\/]* ) continue;; | |
1318 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1319 | esac | |
12833ad8 | 1320 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1321 | done |
1322 | ||
1323 | # There might be people who depend on the old broken behavior: `$host' | |
1324 | # used to hold the argument of --host etc. | |
1325 | # FIXME: To remove some day. | |
1326 | build=$build_alias | |
1327 | host=$host_alias | |
1328 | target=$target_alias | |
1329 | ||
1330 | # FIXME: To remove some day. | |
1331 | if test "x$host_alias" != x; then | |
1332 | if test "x$build_alias" = x; then | |
1333 | cross_compiling=maybe | |
c7aa54aa DWT |
1334 | elif test "x$build_alias" != "x$host_alias"; then |
1335 | cross_compiling=yes | |
1336 | fi | |
1337 | fi | |
1338 | ||
1339 | ac_tool_prefix= | |
1340 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1341 | ||
1342 | test "$silent" = yes && exec 6>/dev/null | |
1343 | ||
1344 | ||
1345 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1346 | ac_ls_di=`ls -di .` && | |
1347 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1348 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1349 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1350 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1351 | |
1352 | ||
1353 | # Find the source files, if location was not specified. | |
1354 | if test -z "$srcdir"; then | |
1355 | ac_srcdir_defaulted=yes | |
1356 | # Try the directory containing this script, then the parent directory. | |
1357 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1358 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1359 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1360 | X"$as_myself" : 'X\(//\)$' \| \ | |
1361 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1362 | $as_echo X"$as_myself" | | |
1363 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1364 | s//\1/ | |
1365 | q | |
1366 | } | |
1367 | /^X\(\/\/\)[^/].*/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | /^X\(\/\/\)$/{ | |
1372 | s//\1/ | |
1373 | q | |
1374 | } | |
1375 | /^X\(\/\).*/{ | |
1376 | s//\1/ | |
1377 | q | |
1378 | } | |
1379 | s/.*/./; q'` | |
1380 | srcdir=$ac_confdir | |
1381 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1382 | srcdir=.. | |
1383 | fi | |
1384 | else | |
1385 | ac_srcdir_defaulted=no | |
1386 | fi | |
1387 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1388 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1389 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1390 | fi |
1391 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1392 | ac_abs_confdir=`( | |
12833ad8 | 1393 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1394 | pwd)` |
1395 | # When building in place, set srcdir=. | |
1396 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1397 | srcdir=. | |
1398 | fi | |
1399 | # Remove unnecessary trailing slashes from srcdir. | |
1400 | # Double slashes in file names in object file debugging info | |
1401 | # mess up M-x gdb in Emacs. | |
1402 | case $srcdir in | |
1403 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1404 | esac | |
1405 | for ac_var in $ac_precious_vars; do | |
1406 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1407 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1408 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1409 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1410 | done | |
1411 | ||
1412 | # | |
1413 | # Report the --help message. | |
1414 | # | |
1415 | if test "$ac_init_help" = "long"; then | |
1416 | # Omit some internal or obsolete options to make the list less imposing. | |
1417 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1418 | cat <<_ACEOF | |
1419 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1420 | ||
1421 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1422 | ||
1423 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1424 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1425 | ||
1426 | Defaults for the options are specified in brackets. | |
1427 | ||
1428 | Configuration: | |
1429 | -h, --help display this help and exit | |
1430 | --help=short display options specific to this package | |
1431 | --help=recursive display the short help of all the included packages | |
1432 | -V, --version display version information and exit | |
12833ad8 | 1433 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1434 | --cache-file=FILE cache test results in FILE [disabled] |
1435 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1436 | -n, --no-create do not create output files | |
1437 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1438 | ||
1439 | Installation directories: | |
1440 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1441 | [$ac_default_prefix] | |
1442 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1443 | [PREFIX] | |
1444 | ||
1445 | By default, \`make install' will install all the files in | |
1446 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1447 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1448 | for instance \`--prefix=\$HOME'. | |
1449 | ||
1450 | For better control, use the options below. | |
1451 | ||
1452 | Fine tuning of the installation directories: | |
1453 | --bindir=DIR user executables [EPREFIX/bin] | |
1454 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1455 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1456 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1457 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1458 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1459 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1460 | --includedir=DIR C header files [PREFIX/include] | |
1461 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1462 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1463 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1464 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1465 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1466 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1467 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1468 | --htmldir=DIR html documentation [DOCDIR] | |
1469 | --dvidir=DIR dvi documentation [DOCDIR] | |
1470 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1471 | --psdir=DIR ps documentation [DOCDIR] | |
1472 | _ACEOF | |
1473 | ||
1474 | cat <<\_ACEOF | |
35fa52c0 | 1475 | |
66170b30 JF |
1476 | Program names: |
1477 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1478 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1479 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1480 | ||
35fa52c0 DWT |
1481 | System types: |
1482 | --build=BUILD configure for building on BUILD [guessed] | |
1483 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1484 | _ACEOF |
1485 | fi | |
1486 | ||
1487 | if test -n "$ac_init_help"; then | |
1488 | case $ac_init_help in | |
1489 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1490 | esac | |
1491 | cat <<\_ACEOF | |
1492 | ||
35fa52c0 DWT |
1493 | Optional Features: |
1494 | --disable-option-checking ignore unrecognized --enable/--with options | |
1495 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1496 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1497 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1498 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1499 | --enable-maintainer-mode |
1500 | enable make rules and dependencies not useful (and | |
1501 | sometimes confusing) to the casual installer | |
66170b30 JF |
1502 | --enable-dependency-tracking |
1503 | do not reject slow dependency extractors | |
1504 | --disable-dependency-tracking | |
1505 | speeds up one-time build | |
a243b558 JF |
1506 | --enable-static[=PKGS] build static libraries [default=no] |
1507 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1508 | --enable-fast-install[=PKGS] | |
1509 | optimize for fast installation [default=yes] | |
9c60689e | 1510 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1511 | --enable-javascript[=ENGINE] |
790e5246 | 1512 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1513 | available option for ENGINE is JavaScriptCore) |
1514 | [default=yes] | |
a93f15c0 | 1515 | --disable-console disable console |
a4287117 | 1516 | --disable-attach disable attach |
35fa52c0 DWT |
1517 | |
1518 | Optional Packages: | |
1519 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1520 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1521 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e | 1522 | both] |
9d54db95 JF |
1523 | --with-aix-soname=aix|svr4|both |
1524 | shared library versioning (aka "SONAME") variant to | |
1525 | provide on AIX, [default=aix]. | |
9c60689e | 1526 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
9d54db95 JF |
1527 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1528 | compiler's sysroot if not specified). | |
8d20f0f1 | 1529 | --with-libclang build bridge definitions using this libclang |
35fa52c0 | 1530 | |
dbadc56a | 1531 | Some influential environment variables: |
a93f15c0 JF |
1532 | CC C compiler command |
1533 | CFLAGS C compiler flags | |
dbadc56a DWT |
1534 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1535 | nonstandard directory <lib dir> | |
1536 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1537 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1538 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1539 | CXX C++ compiler command |
1540 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1541 | OBJCXX Objective C++ compiler command |
1542 | OBJCXXFLAGS Objective C++ compiler flags | |
9c60689e | 1543 | CPP C preprocessor |
a243b558 | 1544 | CXXCPP C++ preprocessor |
8d20f0f1 JF |
1545 | LT_SYS_LIBRARY_PATH |
1546 | User-defined run-time library search path. | |
3fd51f51 | 1547 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1548 | PKG_CONFIG_PATH |
1549 | directories to add to pkg-config's search path | |
1550 | PKG_CONFIG_LIBDIR | |
1551 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1552 | BISON GNU Project parser generator (yacc replacement) |
1553 | FLEX the fast lexical analyser generator | |
1554 | GPERF perfect hash function generator | |
66170b30 | 1555 | GNUTAR a very sticky lump of files |
77578fdd | 1556 | LFLAGS flex flags |
35fa52c0 DWT |
1557 | WEBKIT_CFLAGS |
1558 | C compiler flags for WEBKIT, overriding pkg-config | |
1559 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1560 | GNUSTEP_CONFIG |
1561 | prints information about the current gnustep installation | |
dbadc56a DWT |
1562 | |
1563 | Use these variables to override the choices made by `configure' or to help | |
1564 | it to find libraries and programs with nonstandard names/locations. | |
1565 | ||
c7aa54aa DWT |
1566 | Report bugs to <saurik@saurik.com>. |
1567 | Cycript home page: <http://www.cycript.org/>. | |
1568 | _ACEOF | |
1569 | ac_status=$? | |
1570 | fi | |
1571 | ||
1572 | if test "$ac_init_help" = "recursive"; then | |
1573 | # If there are subdirs, report their specific --help. | |
1574 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1575 | test -d "$ac_dir" || | |
1576 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1577 | continue | |
1578 | ac_builddir=. | |
1579 | ||
1580 | case "$ac_dir" in | |
1581 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1582 | *) | |
1583 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1584 | # A ".." for each directory in $ac_dir_suffix. | |
1585 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1586 | case $ac_top_builddir_sub in | |
1587 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1588 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1589 | esac ;; | |
1590 | esac | |
1591 | ac_abs_top_builddir=$ac_pwd | |
1592 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1593 | # for backward compatibility: | |
1594 | ac_top_builddir=$ac_top_build_prefix | |
1595 | ||
1596 | case $srcdir in | |
1597 | .) # We are building in place. | |
1598 | ac_srcdir=. | |
1599 | ac_top_srcdir=$ac_top_builddir_sub | |
1600 | ac_abs_top_srcdir=$ac_pwd ;; | |
1601 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1602 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1603 | ac_top_srcdir=$srcdir | |
1604 | ac_abs_top_srcdir=$srcdir ;; | |
1605 | *) # Relative name. | |
1606 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1607 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1608 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1609 | esac | |
1610 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1611 | ||
1612 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1613 | # Check for guested configure. | |
1614 | if test -f "$ac_srcdir/configure.gnu"; then | |
1615 | echo && | |
1616 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1617 | elif test -f "$ac_srcdir/configure"; then | |
1618 | echo && | |
1619 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1620 | else | |
1621 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1622 | fi || ac_status=$? | |
1623 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1624 | done | |
1625 | fi | |
1626 | ||
1627 | test -n "$ac_init_help" && exit $ac_status | |
1628 | if $ac_init_version; then | |
1629 | cat <<\_ACEOF | |
1630 | Cycript configure 0.9 | |
53ba6704 | 1631 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1632 | |
53ba6704 | 1633 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1634 | This configure script is free software; the Free Software Foundation |
1635 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 1636 | |
c1d3e52e | 1637 | Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
1638 | _ACEOF |
1639 | exit | |
1640 | fi | |
1641 | ||
1642 | ## ------------------------ ## | |
1643 | ## Autoconf initialization. ## | |
1644 | ## ------------------------ ## | |
dbadc56a | 1645 | |
a93f15c0 JF |
1646 | # ac_fn_c_try_compile LINENO |
1647 | # -------------------------- | |
a243b558 | 1648 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1649 | ac_fn_c_try_compile () |
a243b558 JF |
1650 | { |
1651 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1652 | rm -f conftest.$ac_objext | |
1653 | if { { ac_try="$ac_compile" | |
1654 | case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_compile") 2>conftest.err | |
1661 | ac_status=$? | |
1662 | if test -s conftest.err; then | |
1663 | grep -v '^ *+' conftest.err >conftest.er1 | |
1664 | cat conftest.er1 >&5 | |
1665 | mv -f conftest.er1 conftest.err | |
1666 | fi | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; } && { | |
a93f15c0 | 1669 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1670 | test ! -s conftest.err |
1671 | } && test -s conftest.$ac_objext; then : | |
1672 | ac_retval=0 | |
1673 | else | |
1674 | $as_echo "$as_me: failed program was:" >&5 | |
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1676 | ||
1677 | ac_retval=1 | |
1678 | fi | |
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1680 | as_fn_set_status $ac_retval | |
1681 | ||
a93f15c0 | 1682 | } # ac_fn_c_try_compile |
a243b558 | 1683 | |
a93f15c0 JF |
1684 | # ac_fn_cxx_try_compile LINENO |
1685 | # ---------------------------- | |
a243b558 | 1686 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1687 | ac_fn_cxx_try_compile () |
a243b558 JF |
1688 | { |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1690 | rm -f conftest.$ac_objext | |
1691 | if { { ac_try="$ac_compile" | |
1692 | case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_compile") 2>conftest.err | |
1699 | ac_status=$? | |
1700 | if test -s conftest.err; then | |
1701 | grep -v '^ *+' conftest.err >conftest.er1 | |
1702 | cat conftest.er1 >&5 | |
1703 | mv -f conftest.er1 conftest.err | |
1704 | fi | |
1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1706 | test $ac_status = 0; } && { | |
a93f15c0 | 1707 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1708 | test ! -s conftest.err |
1709 | } && test -s conftest.$ac_objext; then : | |
1710 | ac_retval=0 | |
1711 | else | |
1712 | $as_echo "$as_me: failed program was:" >&5 | |
1713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1714 | ||
1715 | ac_retval=1 | |
1716 | fi | |
1717 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1718 | as_fn_set_status $ac_retval | |
1719 | ||
a93f15c0 | 1720 | } # ac_fn_cxx_try_compile |
a243b558 | 1721 | |
a93f15c0 JF |
1722 | # ac_fn_objcxx_try_compile LINENO |
1723 | # ------------------------------- | |
35fa52c0 | 1724 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1725 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1726 | { |
1727 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1728 | rm -f conftest.$ac_objext | |
1729 | if { { ac_try="$ac_compile" | |
1730 | case "(($ac_try" in | |
1731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1732 | *) ac_try_echo=$ac_try;; | |
1733 | esac | |
1734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1735 | $as_echo "$ac_try_echo"; } >&5 | |
1736 | (eval "$ac_compile") 2>conftest.err | |
1737 | ac_status=$? | |
1738 | if test -s conftest.err; then | |
1739 | grep -v '^ *+' conftest.err >conftest.er1 | |
1740 | cat conftest.er1 >&5 | |
1741 | mv -f conftest.er1 conftest.err | |
1742 | fi | |
1743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1744 | test $ac_status = 0; } && { | |
a93f15c0 | 1745 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1746 | test ! -s conftest.err |
1747 | } && test -s conftest.$ac_objext; then : | |
1748 | ac_retval=0 | |
1749 | else | |
1750 | $as_echo "$as_me: failed program was:" >&5 | |
1751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1752 | ||
1753 | ac_retval=1 | |
1754 | fi | |
ee134472 | 1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1756 | as_fn_set_status $ac_retval |
35fa52c0 | 1757 | |
a93f15c0 | 1758 | } # ac_fn_objcxx_try_compile |
35fa52c0 | 1759 | |
8d20f0f1 JF |
1760 | # ac_fn_c_try_cpp LINENO |
1761 | # ---------------------- | |
1762 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1763 | ac_fn_c_try_cpp () | |
1764 | { | |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1766 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1767 | case "(($ac_try" in | |
1768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1769 | *) ac_try_echo=$ac_try;; | |
1770 | esac | |
1771 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1772 | $as_echo "$ac_try_echo"; } >&5 | |
1773 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1774 | ac_status=$? | |
1775 | if test -s conftest.err; then | |
1776 | grep -v '^ *+' conftest.err >conftest.er1 | |
1777 | cat conftest.er1 >&5 | |
1778 | mv -f conftest.er1 conftest.err | |
1779 | fi | |
1780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1781 | test $ac_status = 0; } > conftest.i && { | |
1782 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1783 | test ! -s conftest.err | |
1784 | }; then : | |
1785 | ac_retval=0 | |
1786 | else | |
1787 | $as_echo "$as_me: failed program was:" >&5 | |
1788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1789 | ||
1790 | ac_retval=1 | |
1791 | fi | |
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1793 | as_fn_set_status $ac_retval | |
1794 | ||
1795 | } # ac_fn_c_try_cpp | |
1796 | ||
1797 | # ac_fn_cxx_try_cpp LINENO | |
1798 | # ------------------------ | |
1799 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1800 | ac_fn_cxx_try_cpp () | |
1801 | { | |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1803 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1804 | case "(($ac_try" in | |
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1806 | *) ac_try_echo=$ac_try;; | |
1807 | esac | |
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1809 | $as_echo "$ac_try_echo"; } >&5 | |
1810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1811 | ac_status=$? | |
1812 | if test -s conftest.err; then | |
1813 | grep -v '^ *+' conftest.err >conftest.er1 | |
1814 | cat conftest.er1 >&5 | |
1815 | mv -f conftest.er1 conftest.err | |
1816 | fi | |
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; } > conftest.i && { | |
1819 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1820 | test ! -s conftest.err | |
1821 | }; then : | |
1822 | ac_retval=0 | |
1823 | else | |
1824 | $as_echo "$as_me: failed program was:" >&5 | |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1826 | ||
1827 | ac_retval=1 | |
1828 | fi | |
1829 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1830 | as_fn_set_status $ac_retval | |
1831 | ||
1832 | } # ac_fn_cxx_try_cpp | |
1833 | ||
35fa52c0 DWT |
1834 | # ac_fn_c_try_link LINENO |
1835 | # ----------------------- | |
1836 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1837 | ac_fn_c_try_link () | |
1838 | { | |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1841 | if { { ac_try="$ac_link" | |
1842 | case "(($ac_try" in | |
1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1844 | *) ac_try_echo=$ac_try;; | |
1845 | esac | |
1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1847 | $as_echo "$ac_try_echo"; } >&5 | |
1848 | (eval "$ac_link") 2>conftest.err | |
1849 | ac_status=$? | |
1850 | if test -s conftest.err; then | |
1851 | grep -v '^ *+' conftest.err >conftest.er1 | |
1852 | cat conftest.er1 >&5 | |
1853 | mv -f conftest.er1 conftest.err | |
1854 | fi | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { | |
1857 | test -z "$ac_c_werror_flag" || | |
1858 | test ! -s conftest.err | |
1859 | } && test -s conftest$ac_exeext && { | |
1860 | test "$cross_compiling" = yes || | |
53ba6704 | 1861 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1862 | }; then : |
1863 | ac_retval=0 | |
1864 | else | |
1865 | $as_echo "$as_me: failed program was:" >&5 | |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1867 | ||
1868 | ac_retval=1 | |
1869 | fi | |
1870 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1871 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1872 | # interfere with the next link command; also delete a directory that is | |
1873 | # left behind by Apple's compiler. We do this before executing the actions. | |
1874 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1876 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1877 | |
1878 | } # ac_fn_c_try_link | |
1879 | ||
9c60689e DWT |
1880 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1881 | # ------------------------------------------------------- | |
1882 | # Tests whether HEADER exists and can be compiled using the include files in | |
1883 | # INCLUDES, setting the cache variable VAR accordingly. | |
1884 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1885 | { |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1888 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1889 | if eval \${$3+:} false; then : |
9c60689e DWT |
1890 | $as_echo_n "(cached) " >&6 |
1891 | else | |
1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1893 | /* end confdefs.h. */ | |
1894 | $4 | |
1895 | #include <$2> | |
1896 | _ACEOF | |
1897 | if ac_fn_c_try_compile "$LINENO"; then : | |
1898 | eval "$3=yes" | |
1899 | else | |
1900 | eval "$3=no" | |
1901 | fi | |
1902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1903 | fi | |
1904 | eval ac_res=\$$3 | |
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1906 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1907 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1908 | |
1909 | } # ac_fn_c_check_header_compile | |
1910 | ||
35fa52c0 DWT |
1911 | # ac_fn_c_try_run LINENO |
1912 | # ---------------------- | |
1913 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1914 | # that executables *can* be run. | |
1915 | ac_fn_c_try_run () | |
1916 | { | |
1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1918 | if { { ac_try="$ac_link" | |
1919 | case "(($ac_try" in | |
1920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1921 | *) ac_try_echo=$ac_try;; | |
1922 | esac | |
1923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1924 | $as_echo "$ac_try_echo"; } >&5 | |
1925 | (eval "$ac_link") 2>&5 | |
1926 | ac_status=$? | |
1927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1928 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1929 | { { case "(($ac_try" in | |
1930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1931 | *) ac_try_echo=$ac_try;; | |
1932 | esac | |
1933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1934 | $as_echo "$ac_try_echo"; } >&5 | |
1935 | (eval "$ac_try") 2>&5 | |
1936 | ac_status=$? | |
1937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1938 | test $ac_status = 0; }; }; then : | |
1939 | ac_retval=0 | |
1940 | else | |
1941 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1942 | $as_echo "$as_me: failed program was:" >&5 | |
1943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1944 | ||
1945 | ac_retval=$ac_status | |
1946 | fi | |
1947 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1948 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1949 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1950 | |
1951 | } # ac_fn_c_try_run | |
6b66678a | 1952 | |
9c60689e DWT |
1953 | # ac_fn_c_check_func LINENO FUNC VAR |
1954 | # ---------------------------------- | |
1955 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1956 | ac_fn_c_check_func () | |
6b66678a DWT |
1957 | { |
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1960 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1961 | if eval \${$3+:} false; then : |
9c60689e | 1962 | $as_echo_n "(cached) " >&6 |
6b66678a | 1963 | else |
9c60689e DWT |
1964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1965 | /* end confdefs.h. */ | |
1966 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1968 | #define $2 innocuous_$2 | |
6b66678a | 1969 | |
9c60689e DWT |
1970 | /* System header to define __stub macros and hopefully few prototypes, |
1971 | which can conflict with char $2 (); below. | |
1972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1973 | <limits.h> exists even on freestanding compilers. */ | |
1974 | ||
1975 | #ifdef __STDC__ | |
1976 | # include <limits.h> | |
1977 | #else | |
1978 | # include <assert.h> | |
1979 | #endif | |
1980 | ||
1981 | #undef $2 | |
1982 | ||
1983 | /* Override any GCC internal prototype to avoid an error. | |
1984 | Use char because int might match the return type of a GCC | |
1985 | builtin and then its argument prototype would still apply. */ | |
1986 | #ifdef __cplusplus | |
1987 | extern "C" | |
1988 | #endif | |
1989 | char $2 (); | |
1990 | /* The GNU C library defines this for functions which it implements | |
1991 | to always fail with ENOSYS. Some functions are actually named | |
1992 | something starting with __ and the normal name is an alias. */ | |
1993 | #if defined __stub_$2 || defined __stub___$2 | |
1994 | choke me | |
1995 | #endif | |
1996 | ||
1997 | int | |
1998 | main () | |
1999 | { | |
2000 | return $2 (); | |
2001 | ; | |
2002 | return 0; | |
2003 | } | |
2004 | _ACEOF | |
2005 | if ac_fn_c_try_link "$LINENO"; then : | |
2006 | eval "$3=yes" | |
2007 | else | |
2008 | eval "$3=no" | |
2009 | fi | |
2010 | rm -f core conftest.err conftest.$ac_objext \ | |
2011 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 2012 | fi |
9c60689e DWT |
2013 | eval ac_res=\$$3 |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2015 | $as_echo "$ac_res" >&6; } | |
ee134472 | 2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 2017 | |
9c60689e | 2018 | } # ac_fn_c_check_func |
6b66678a | 2019 | |
9c60689e DWT |
2020 | # ac_fn_cxx_try_link LINENO |
2021 | # ------------------------- | |
2022 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2023 | ac_fn_cxx_try_link () | |
2024 | { | |
2025 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2027 | if { { ac_try="$ac_link" | |
2028 | case "(($ac_try" in | |
2029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2030 | *) ac_try_echo=$ac_try;; | |
2031 | esac | |
2032 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2033 | $as_echo "$ac_try_echo"; } >&5 | |
2034 | (eval "$ac_link") 2>conftest.err | |
2035 | ac_status=$? | |
2036 | if test -s conftest.err; then | |
2037 | grep -v '^ *+' conftest.err >conftest.er1 | |
2038 | cat conftest.er1 >&5 | |
2039 | mv -f conftest.er1 conftest.err | |
2040 | fi | |
2041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2042 | test $ac_status = 0; } && { | |
2043 | test -z "$ac_cxx_werror_flag" || | |
2044 | test ! -s conftest.err | |
2045 | } && test -s conftest$ac_exeext && { | |
2046 | test "$cross_compiling" = yes || | |
53ba6704 | 2047 | test -x conftest$ac_exeext |
9c60689e DWT |
2048 | }; then : |
2049 | ac_retval=0 | |
2050 | else | |
2051 | $as_echo "$as_me: failed program was:" >&5 | |
2052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2053 | ||
2054 | ac_retval=1 | |
2055 | fi | |
2056 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2057 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2058 | # interfere with the next link command; also delete a directory that is | |
2059 | # left behind by Apple's compiler. We do this before executing the actions. | |
2060 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2062 | as_fn_set_status $ac_retval |
2063 | ||
2064 | } # ac_fn_cxx_try_link | |
2065 | ||
47aaa820 DWT |
2066 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2067 | # --------------------------------------------------------- | |
2068 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2069 | # the include files in INCLUDES and setting the cache variable VAR | |
2070 | # accordingly. | |
2071 | ac_fn_cxx_check_header_mongrel () | |
2072 | { | |
2073 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2074 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2076 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2077 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2078 | $as_echo_n "(cached) " >&6 |
2079 | fi | |
2080 | eval ac_res=\$$3 | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2082 | $as_echo "$ac_res" >&6; } | |
2083 | else | |
2084 | # Is the header compilable? | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2086 | $as_echo_n "checking $2 usability... " >&6; } | |
2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2088 | /* end confdefs.h. */ | |
2089 | $4 | |
2090 | #include <$2> | |
2091 | _ACEOF | |
2092 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2093 | ac_header_compiler=yes | |
2094 | else | |
2095 | ac_header_compiler=no | |
2096 | fi | |
2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2099 | $as_echo "$ac_header_compiler" >&6; } | |
2100 | ||
2101 | # Is the header present? | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2103 | $as_echo_n "checking $2 presence... " >&6; } | |
2104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2105 | /* end confdefs.h. */ | |
2106 | #include <$2> | |
2107 | _ACEOF | |
2108 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2109 | ac_header_preproc=yes | |
2110 | else | |
2111 | ac_header_preproc=no | |
2112 | fi | |
12833ad8 | 2113 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2115 | $as_echo "$ac_header_preproc" >&6; } | |
2116 | ||
2117 | # So? What about this header? | |
2118 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2119 | yes:no: ) | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2121 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2123 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2124 | ;; | |
2125 | no:yes:* ) | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2127 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2129 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2131 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2133 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2135 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2136 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2137 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2138 | ## -------------------------------- ##" |
47aaa820 DWT |
2139 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2140 | ;; | |
2141 | esac | |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2143 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2144 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2145 | $as_echo_n "(cached) " >&6 |
2146 | else | |
2147 | eval "$3=\$ac_header_compiler" | |
2148 | fi | |
2149 | eval ac_res=\$$3 | |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2151 | $as_echo "$ac_res" >&6; } | |
2152 | fi | |
ee134472 | 2153 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2154 | |
2155 | } # ac_fn_cxx_check_header_mongrel | |
2156 | ||
c823f118 DWT |
2157 | # ac_fn_objcxx_try_link LINENO |
2158 | # ---------------------------- | |
2159 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2160 | ac_fn_objcxx_try_link () | |
2161 | { | |
2162 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2164 | if { { ac_try="$ac_link" | |
2165 | case "(($ac_try" in | |
2166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2167 | *) ac_try_echo=$ac_try;; | |
2168 | esac | |
2169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2170 | $as_echo "$ac_try_echo"; } >&5 | |
2171 | (eval "$ac_link") 2>conftest.err | |
2172 | ac_status=$? | |
2173 | if test -s conftest.err; then | |
2174 | grep -v '^ *+' conftest.err >conftest.er1 | |
2175 | cat conftest.er1 >&5 | |
2176 | mv -f conftest.er1 conftest.err | |
2177 | fi | |
2178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2179 | test $ac_status = 0; } && { | |
2180 | test -z "$ac_objcxx_werror_flag" || | |
2181 | test ! -s conftest.err | |
2182 | } && test -s conftest$ac_exeext && { | |
2183 | test "$cross_compiling" = yes || | |
53ba6704 | 2184 | test -x conftest$ac_exeext |
c823f118 DWT |
2185 | }; then : |
2186 | ac_retval=0 | |
2187 | else | |
2188 | $as_echo "$as_me: failed program was:" >&5 | |
2189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2190 | ||
2191 | ac_retval=1 | |
2192 | fi | |
2193 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2194 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2195 | # interfere with the next link command; also delete a directory that is | |
2196 | # left behind by Apple's compiler. We do this before executing the actions. | |
2197 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2198 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2199 | as_fn_set_status $ac_retval |
2200 | ||
2201 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2202 | cat >config.log <<_ACEOF |
2203 | This file contains any messages produced by compilers while | |
2204 | running configure, to aid debugging if configure makes a mistake. | |
2205 | ||
2206 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2207 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2208 | |
2209 | $ $0 $@ | |
2210 | ||
2211 | _ACEOF | |
2212 | exec 5>>config.log | |
2213 | { | |
2214 | cat <<_ASUNAME | |
2215 | ## --------- ## | |
2216 | ## Platform. ## | |
2217 | ## --------- ## | |
2218 | ||
2219 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2220 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2221 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2222 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2223 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2224 | ||
2225 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2226 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2227 | ||
2228 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2229 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2230 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2231 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2232 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2233 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2234 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2235 | ||
2236 | _ASUNAME | |
2237 | ||
2238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2239 | for as_dir in $PATH | |
2240 | do | |
2241 | IFS=$as_save_IFS | |
2242 | test -z "$as_dir" && as_dir=. | |
2243 | $as_echo "PATH: $as_dir" | |
2244 | done | |
2245 | IFS=$as_save_IFS | |
2246 | ||
2247 | } >&5 | |
2248 | ||
2249 | cat >&5 <<_ACEOF | |
2250 | ||
2251 | ||
2252 | ## ----------- ## | |
2253 | ## Core tests. ## | |
2254 | ## ----------- ## | |
2255 | ||
2256 | _ACEOF | |
2257 | ||
2258 | ||
2259 | # Keep a trace of the command line. | |
2260 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2261 | # Strip out --silent because we don't want to record it for future runs. | |
2262 | # Also quote any args containing shell meta-characters. | |
2263 | # Make two passes to allow for proper duplicate-argument suppression. | |
2264 | ac_configure_args= | |
2265 | ac_configure_args0= | |
2266 | ac_configure_args1= | |
2267 | ac_must_keep_next=false | |
2268 | for ac_pass in 1 2 | |
2269 | do | |
2270 | for ac_arg | |
2271 | do | |
2272 | case $ac_arg in | |
2273 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2274 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2275 | | -silent | --silent | --silen | --sile | --sil) | |
2276 | continue ;; | |
2277 | *\'*) | |
2278 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2279 | esac | |
2280 | case $ac_pass in | |
2281 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2282 | 2) | |
2283 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2284 | if test $ac_must_keep_next = true; then | |
2285 | ac_must_keep_next=false # Got value, back to normal. | |
2286 | else | |
2287 | case $ac_arg in | |
2288 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2289 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2290 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2291 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2292 | case "$ac_configure_args0 " in | |
2293 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2294 | esac | |
2295 | ;; | |
2296 | -* ) ac_must_keep_next=true ;; | |
2297 | esac | |
2298 | fi | |
2299 | as_fn_append ac_configure_args " '$ac_arg'" | |
2300 | ;; | |
2301 | esac | |
2302 | done | |
2303 | done | |
2304 | { ac_configure_args0=; unset ac_configure_args0;} | |
2305 | { ac_configure_args1=; unset ac_configure_args1;} | |
2306 | ||
2307 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2308 | # config.log. We remove comments because anyway the quotes in there | |
2309 | # would cause problems or look ugly. | |
2310 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2311 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2312 | trap 'exit_status=$? | |
2313 | # Save into config.log some information that might help in debugging. | |
2314 | { | |
2315 | echo | |
2316 | ||
12833ad8 | 2317 | $as_echo "## ---------------- ## |
c7aa54aa | 2318 | ## Cache variables. ## |
12833ad8 | 2319 | ## ---------------- ##" |
c7aa54aa DWT |
2320 | echo |
2321 | # The following way of writing the cache mishandles newlines in values, | |
2322 | ( | |
2323 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2324 | eval ac_val=\$$ac_var | |
2325 | case $ac_val in #( | |
2326 | *${as_nl}*) | |
2327 | case $ac_var in #( | |
2328 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2329 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2330 | esac | |
2331 | case $ac_var in #( | |
2332 | _ | IFS | as_nl) ;; #( | |
2333 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2334 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2335 | esac ;; | |
2336 | esac | |
2337 | done | |
2338 | (set) 2>&1 | | |
2339 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2340 | *${as_nl}ac_space=\ *) | |
2341 | sed -n \ | |
2342 | "s/'\''/'\''\\\\'\'''\''/g; | |
2343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2344 | ;; #( | |
2345 | *) | |
2346 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2347 | ;; | |
2348 | esac | | |
2349 | sort | |
2350 | ) | |
2351 | echo | |
2352 | ||
12833ad8 | 2353 | $as_echo "## ----------------- ## |
c7aa54aa | 2354 | ## Output variables. ## |
12833ad8 | 2355 | ## ----------------- ##" |
c7aa54aa DWT |
2356 | echo |
2357 | for ac_var in $ac_subst_vars | |
2358 | do | |
2359 | eval ac_val=\$$ac_var | |
2360 | case $ac_val in | |
2361 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2362 | esac | |
2363 | $as_echo "$ac_var='\''$ac_val'\''" | |
2364 | done | sort | |
2365 | echo | |
2366 | ||
2367 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2368 | $as_echo "## ------------------- ## |
c7aa54aa | 2369 | ## File substitutions. ## |
12833ad8 | 2370 | ## ------------------- ##" |
c7aa54aa DWT |
2371 | echo |
2372 | for ac_var in $ac_subst_files | |
2373 | do | |
2374 | eval ac_val=\$$ac_var | |
2375 | case $ac_val in | |
2376 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2377 | esac | |
2378 | $as_echo "$ac_var='\''$ac_val'\''" | |
2379 | done | sort | |
2380 | echo | |
2381 | fi | |
2382 | ||
2383 | if test -s confdefs.h; then | |
12833ad8 | 2384 | $as_echo "## ----------- ## |
c7aa54aa | 2385 | ## confdefs.h. ## |
12833ad8 | 2386 | ## ----------- ##" |
c7aa54aa DWT |
2387 | echo |
2388 | cat confdefs.h | |
2389 | echo | |
2390 | fi | |
2391 | test "$ac_signal" != 0 && | |
2392 | $as_echo "$as_me: caught signal $ac_signal" | |
2393 | $as_echo "$as_me: exit $exit_status" | |
2394 | } >&5 | |
2395 | rm -f core *.core core.conftest.* && | |
2396 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2397 | exit $exit_status | |
2398 | ' 0 | |
2399 | for ac_signal in 1 2 13 15; do | |
2400 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2401 | done | |
2402 | ac_signal=0 | |
2403 | ||
2404 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2405 | rm -f -r conftest* confdefs.h | |
2406 | ||
2407 | $as_echo "/* confdefs.h */" > confdefs.h | |
2408 | ||
2409 | # Predefined preprocessor variables. | |
2410 | ||
2411 | cat >>confdefs.h <<_ACEOF | |
2412 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2413 | _ACEOF | |
2414 | ||
2415 | cat >>confdefs.h <<_ACEOF | |
2416 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2417 | _ACEOF | |
2418 | ||
2419 | cat >>confdefs.h <<_ACEOF | |
2420 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2421 | _ACEOF | |
2422 | ||
2423 | cat >>confdefs.h <<_ACEOF | |
2424 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2425 | _ACEOF | |
2426 | ||
2427 | cat >>confdefs.h <<_ACEOF | |
2428 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2429 | _ACEOF | |
2430 | ||
2431 | cat >>confdefs.h <<_ACEOF | |
2432 | #define PACKAGE_URL "$PACKAGE_URL" | |
2433 | _ACEOF | |
2434 | ||
2435 | ||
2436 | # Let the site file select an alternate cache file if it wants to. | |
2437 | # Prefer an explicitly selected file to automatically selected ones. | |
2438 | ac_site_file1=NONE | |
2439 | ac_site_file2=NONE | |
2440 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2441 | # We do not want a PATH search for config.site. |
2442 | case $CONFIG_SITE in #(( | |
2443 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2444 | */*) ac_site_file1=$CONFIG_SITE;; | |
2445 | *) ac_site_file1=./$CONFIG_SITE;; | |
2446 | esac | |
c7aa54aa DWT |
2447 | elif test "x$prefix" != xNONE; then |
2448 | ac_site_file1=$prefix/share/config.site | |
2449 | ac_site_file2=$prefix/etc/config.site | |
2450 | else | |
2451 | ac_site_file1=$ac_default_prefix/share/config.site | |
2452 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2453 | fi | |
2454 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2455 | do | |
2456 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2457 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2459 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2460 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2461 | . "$ac_site_file" \ |
2462 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2463 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2464 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2465 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2466 | fi |
2467 | done | |
2468 | ||
2469 | if test -r "$cache_file"; then | |
9c60689e DWT |
2470 | # Some versions of bash will fail to source /dev/null (special files |
2471 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2472 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2474 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2475 | case $cache_file in | |
2476 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2477 | *) . "./$cache_file";; | |
2478 | esac | |
2479 | fi | |
2480 | else | |
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2482 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2483 | >$cache_file | |
2484 | fi | |
2485 | ||
2486 | # Check that the precious variables saved in the cache have kept the same | |
2487 | # value. | |
2488 | ac_cache_corrupted=false | |
2489 | for ac_var in $ac_precious_vars; do | |
2490 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2491 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2492 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2493 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2494 | case $ac_old_set,$ac_new_set in | |
2495 | set,) | |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2497 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2498 | ac_cache_corrupted=: ;; | |
2499 | ,set) | |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2501 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2502 | ac_cache_corrupted=: ;; | |
2503 | ,);; | |
2504 | *) | |
2505 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2506 | # differences in whitespace do not lead to failure. | |
2507 | ac_old_val_w=`echo x $ac_old_val` | |
2508 | ac_new_val_w=`echo x $ac_new_val` | |
2509 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2511 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2512 | ac_cache_corrupted=: | |
2513 | else | |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2515 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2516 | eval $ac_var=\$ac_old_val | |
2517 | fi | |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2519 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2521 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2522 | fi;; | |
2523 | esac | |
2524 | # Pass precious variables to config.status. | |
2525 | if test "$ac_new_set" = set; then | |
2526 | case $ac_new_val in | |
2527 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2528 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2529 | esac | |
2530 | case " $ac_configure_args " in | |
2531 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2532 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2533 | esac | |
2534 | fi | |
2535 | done | |
2536 | if $ac_cache_corrupted; then | |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2540 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2541 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2542 | fi |
2543 | ## -------------------- ## | |
2544 | ## Main body of script. ## | |
2545 | ## -------------------- ## | |
2546 | ||
2547 | ac_ext=c | |
2548 | ac_cpp='$CPP $CPPFLAGS' | |
2549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2552 | ||
2553 | ||
66170b30 JF |
2554 | |
2555 | ||
35fa52c0 | 2556 | |
6b66678a DWT |
2557 | ac_aux_dir= |
2558 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2559 | if test -f "$ac_dir/install-sh"; then |
2560 | ac_aux_dir=$ac_dir | |
2561 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2562 | break | |
2563 | elif test -f "$ac_dir/install.sh"; then | |
2564 | ac_aux_dir=$ac_dir | |
2565 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2566 | break | |
2567 | elif test -f "$ac_dir/shtool"; then | |
2568 | ac_aux_dir=$ac_dir | |
2569 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2570 | break | |
2571 | fi | |
6b66678a DWT |
2572 | done |
2573 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2574 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2575 | fi |
2576 | ||
2577 | # These three variables are undocumented and unsupported, | |
2578 | # and are intended to be withdrawn in a future Autoconf release. | |
2579 | # They can cause serious problems if a builder's source tree is in a directory | |
2580 | # whose full name contains unusual characters. | |
2581 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2582 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2583 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2584 | ||
2585 | ||
9c60689e | 2586 | |
296ee9a6 JF |
2587 | ac_config_headers="$ac_config_headers config.h" |
2588 | ||
9c60689e | 2589 | |
795230e5 | 2590 | am__api_version='1.15' |
9c60689e | 2591 | |
66170b30 JF |
2592 | # Find a good install program. We prefer a C program (faster), |
2593 | # so one script is as good as another. But avoid the broken or | |
2594 | # incompatible versions: | |
2595 | # SysV /etc/install, /usr/sbin/install | |
2596 | # SunOS /usr/etc/install | |
2597 | # IRIX /sbin/install | |
2598 | # AIX /bin/install | |
2599 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2600 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2601 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2602 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2603 | # OS/2's system install, which has a completely different semantic | |
2604 | # ./install, which can be erroneously created by make from ./install.sh. | |
2605 | # Reject install programs that cannot install multiple files. | |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2607 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2608 | if test -z "$INSTALL"; then | |
2609 | if ${ac_cv_path_install+:} false; then : | |
2610 | $as_echo_n "(cached) " >&6 | |
2611 | else | |
2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2613 | for as_dir in $PATH | |
2614 | do | |
2615 | IFS=$as_save_IFS | |
2616 | test -z "$as_dir" && as_dir=. | |
2617 | # Account for people who put trailing slashes in PATH elements. | |
2618 | case $as_dir/ in #(( | |
2619 | ./ | .// | /[cC]/* | \ | |
2620 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2621 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2622 | /usr/ucb/* ) ;; | |
2623 | *) | |
2624 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2625 | # Don't use installbsd from OSF since it installs stuff as root | |
2626 | # by default. | |
2627 | for ac_prog in ginstall scoinst install; do | |
2628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2629 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2630 | if test $ac_prog = install && | |
2631 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2632 | # AIX install. It has an incompatible calling convention. | |
2633 | : | |
2634 | elif test $ac_prog = install && | |
2635 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2636 | # program-specific install script used by HP pwplus--don't use. | |
2637 | : | |
2638 | else | |
2639 | rm -rf conftest.one conftest.two conftest.dir | |
2640 | echo one > conftest.one | |
2641 | echo two > conftest.two | |
2642 | mkdir conftest.dir | |
2643 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2644 | test -s conftest.one && test -s conftest.two && | |
2645 | test -s conftest.dir/conftest.one && | |
2646 | test -s conftest.dir/conftest.two | |
2647 | then | |
2648 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2649 | break 3 | |
2650 | fi | |
2651 | fi | |
2652 | fi | |
2653 | done | |
2654 | done | |
2655 | ;; | |
2656 | esac | |
9c60689e | 2657 | |
66170b30 JF |
2658 | done |
2659 | IFS=$as_save_IFS | |
9c60689e | 2660 | |
66170b30 | 2661 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2662 | |
66170b30 JF |
2663 | fi |
2664 | if test "${ac_cv_path_install+set}" = set; then | |
2665 | INSTALL=$ac_cv_path_install | |
2666 | else | |
2667 | # As a last resort, use the slow shell script. Don't cache a | |
2668 | # value for INSTALL within a source directory, because that will | |
2669 | # break other packages using the cache if that directory is | |
2670 | # removed, or if the value is a relative name. | |
2671 | INSTALL=$ac_install_sh | |
2672 | fi | |
2673 | fi | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2675 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2676 | |
66170b30 JF |
2677 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2678 | # It thinks the first close brace ends the variable substitution. | |
2679 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2680 | |
66170b30 | 2681 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2682 | |
66170b30 | 2683 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2684 | |
66170b30 JF |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2686 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2687 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2688 | # name. Accept space and tab only in the latter. | |
2689 | am_lf=' | |
2690 | ' | |
2691 | case `pwd` in | |
2692 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2693 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2694 | esac | |
2695 | case $srcdir in | |
2696 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2697 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2698 | esac | |
9c60689e | 2699 | |
66170b30 JF |
2700 | # Do 'set' in a subshell so we don't clobber the current shell's |
2701 | # arguments. Must try -L first in case configure is actually a | |
2702 | # symlink; some systems play weird games with the mod time of symlinks | |
2703 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2704 | # directory). | |
2705 | if ( | |
2706 | am_has_slept=no | |
2707 | for am_try in 1 2; do | |
2708 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2709 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2710 | if test "$*" = "X"; then | |
2711 | # -L didn't work. | |
2712 | set X `ls -t "$srcdir/configure" conftest.file` | |
2713 | fi | |
2714 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2715 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2716 | ||
2717 | # If neither matched, then we have a broken ls. This can happen | |
2718 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2719 | # broken ls alias from the environment. This has actually | |
2720 | # happened. Such a system could not be considered "sane". | |
2721 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2722 | alias in your environment" "$LINENO" 5 | |
2723 | fi | |
2724 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2725 | break | |
2726 | fi | |
2727 | # Just in case. | |
2728 | sleep 1 | |
2729 | am_has_slept=yes | |
2730 | done | |
2731 | test "$2" = conftest.file | |
2732 | ) | |
2733 | then | |
2734 | # Ok. | |
2735 | : | |
2736 | else | |
2737 | as_fn_error $? "newly created file is older than distributed files! | |
2738 | Check your system clock" "$LINENO" 5 | |
2739 | fi | |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2741 | $as_echo "yes" >&6; } | |
2742 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2743 | # generated files are strictly newer. | |
2744 | am_sleep_pid= | |
2745 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2746 | ( sleep 1 ) & | |
2747 | am_sleep_pid=$! | |
2748 | fi | |
2749 | ||
2750 | rm -f conftest.file | |
2751 | ||
2752 | test "$program_prefix" != NONE && | |
2753 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2754 | # Use a double $ so make ignores it. | |
2755 | test "$program_suffix" != NONE && | |
2756 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2757 | # Double any \ or $. | |
2758 | # By default was `s,x,x', remove it if useless. | |
2759 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2760 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2761 | ||
795230e5 JF |
2762 | # Expand $ac_aux_dir to an absolute path. |
2763 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
66170b30 JF |
2764 | |
2765 | if test x"${MISSING+set}" != xset; then | |
2766 | case $am_aux_dir in | |
2767 | *\ * | *\ *) | |
2768 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2769 | *) | |
2770 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2771 | esac | |
2772 | fi | |
2773 | # Use eval to expand $SHELL | |
2774 | if eval "$MISSING --is-lightweight"; then | |
2775 | am_missing_run="$MISSING " | |
2776 | else | |
2777 | am_missing_run= | |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2779 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2780 | fi | |
9c60689e | 2781 | |
795230e5 | 2782 | if test x"${install_sh+set}" != xset; then |
66170b30 JF |
2783 | case $am_aux_dir in |
2784 | *\ * | *\ *) | |
2785 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2786 | *) | |
2787 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2788 | esac | |
2789 | fi | |
9c60689e | 2790 | |
66170b30 JF |
2791 | # Installed binaries are usually stripped using 'strip' when the user |
2792 | # run "make install-strip". However 'strip' might not be the right | |
2793 | # tool to use in cross-compilation environments, therefore Automake | |
2794 | # will honor the 'STRIP' environment variable to overrule this program. | |
2795 | if test "$cross_compiling" != no; then | |
2796 | if test -n "$ac_tool_prefix"; then | |
2797 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2798 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2800 | $as_echo_n "checking for $ac_word... " >&6; } | |
2801 | if ${ac_cv_prog_STRIP+:} false; then : | |
2802 | $as_echo_n "(cached) " >&6 | |
2803 | else | |
2804 | if test -n "$STRIP"; then | |
2805 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2806 | else | |
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2808 | for as_dir in $PATH | |
2809 | do | |
2810 | IFS=$as_save_IFS | |
2811 | test -z "$as_dir" && as_dir=. | |
2812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2814 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2816 | break 2 | |
2817 | fi | |
2818 | done | |
2819 | done | |
2820 | IFS=$as_save_IFS | |
9c60689e | 2821 | |
66170b30 JF |
2822 | fi |
2823 | fi | |
2824 | STRIP=$ac_cv_prog_STRIP | |
2825 | if test -n "$STRIP"; then | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2827 | $as_echo "$STRIP" >&6; } | |
2828 | else | |
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2830 | $as_echo "no" >&6; } | |
2831 | fi | |
9c60689e | 2832 | |
9c60689e | 2833 | |
66170b30 JF |
2834 | fi |
2835 | if test -z "$ac_cv_prog_STRIP"; then | |
2836 | ac_ct_STRIP=$STRIP | |
2837 | # Extract the first word of "strip", so it can be a program name with args. | |
2838 | set dummy strip; ac_word=$2 | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2840 | $as_echo_n "checking for $ac_word... " >&6; } | |
2841 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2842 | $as_echo_n "(cached) " >&6 |
2843 | else | |
66170b30 JF |
2844 | if test -n "$ac_ct_STRIP"; then |
2845 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2846 | else | |
2847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2848 | for as_dir in $PATH | |
2849 | do | |
2850 | IFS=$as_save_IFS | |
2851 | test -z "$as_dir" && as_dir=. | |
2852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2854 | ac_cv_prog_ac_ct_STRIP="strip" | |
2855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2856 | break 2 | |
2857 | fi | |
2858 | done | |
2859 | done | |
2860 | IFS=$as_save_IFS | |
9c60689e DWT |
2861 | |
2862 | fi | |
66170b30 JF |
2863 | fi |
2864 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2865 | if test -n "$ac_ct_STRIP"; then | |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2867 | $as_echo "$ac_ct_STRIP" >&6; } | |
2868 | else | |
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2870 | $as_echo "no" >&6; } | |
2871 | fi | |
2872 | ||
2873 | if test "x$ac_ct_STRIP" = x; then | |
2874 | STRIP=":" | |
2875 | else | |
2876 | case $cross_compiling:$ac_tool_warned in | |
2877 | yes:) | |
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2880 | ac_tool_warned=yes ;; | |
9c60689e | 2881 | esac |
66170b30 JF |
2882 | STRIP=$ac_ct_STRIP |
2883 | fi | |
2884 | else | |
2885 | STRIP="$ac_cv_prog_STRIP" | |
2886 | fi | |
9c60689e | 2887 | |
66170b30 JF |
2888 | fi |
2889 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2890 | |
66170b30 JF |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2892 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2893 | if test -z "$MKDIR_P"; then | |
2894 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2895 | $as_echo_n "(cached) " >&6 |
2896 | else | |
66170b30 JF |
2897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2898 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2899 | do | |
2900 | IFS=$as_save_IFS | |
2901 | test -z "$as_dir" && as_dir=. | |
2902 | for ac_prog in mkdir gmkdir; do | |
2903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2904 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2905 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2906 | 'mkdir (GNU coreutils) '* | \ | |
2907 | 'mkdir (coreutils) '* | \ | |
2908 | 'mkdir (fileutils) '4.1*) | |
2909 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2910 | break 3;; | |
2911 | esac | |
2912 | done | |
2913 | done | |
2914 | done | |
2915 | IFS=$as_save_IFS | |
2916 | ||
2917 | fi | |
2918 | ||
2919 | test -d ./--version && rmdir ./--version | |
2920 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2921 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2922 | else | |
2923 | # As a last resort, use the slow shell script. Don't cache a | |
2924 | # value for MKDIR_P within a source directory, because that will | |
2925 | # break other packages using the cache if that directory is | |
2926 | # removed, or if the value is a relative name. | |
2927 | MKDIR_P="$ac_install_sh -d" | |
2928 | fi | |
2929 | fi | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2931 | $as_echo "$MKDIR_P" >&6; } | |
2932 | ||
2933 | for ac_prog in gawk mawk nawk awk | |
2934 | do | |
2935 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2936 | set dummy $ac_prog; ac_word=$2 | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2938 | $as_echo_n "checking for $ac_word... " >&6; } | |
2939 | if ${ac_cv_prog_AWK+:} false; then : | |
2940 | $as_echo_n "(cached) " >&6 | |
2941 | else | |
2942 | if test -n "$AWK"; then | |
2943 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2944 | else | |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2952 | ac_cv_prog_AWK="$ac_prog" | |
2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
2955 | fi | |
2956 | done | |
2957 | done | |
2958 | IFS=$as_save_IFS | |
2959 | ||
2960 | fi | |
2961 | fi | |
2962 | AWK=$ac_cv_prog_AWK | |
2963 | if test -n "$AWK"; then | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2965 | $as_echo "$AWK" >&6; } | |
2966 | else | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2968 | $as_echo "no" >&6; } | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | test -n "$AWK" && break | |
2973 | done | |
2974 | ||
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2976 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2977 | set x ${MAKE-make} | |
2978 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2979 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2980 | $as_echo_n "(cached) " >&6 | |
2981 | else | |
2982 | cat >conftest.make <<\_ACEOF | |
2983 | SHELL = /bin/sh | |
2984 | all: | |
2985 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2986 | _ACEOF | |
2987 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2988 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2989 | *@@@%%%=?*=@@@%%%*) | |
2990 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2991 | *) | |
2992 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2993 | esac | |
2994 | rm -f conftest.make | |
2995 | fi | |
2996 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2998 | $as_echo "yes" >&6; } | |
2999 | SET_MAKE= | |
3000 | else | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3002 | $as_echo "no" >&6; } | |
3003 | SET_MAKE="MAKE=${MAKE-make}" | |
3004 | fi | |
3005 | ||
3006 | rm -rf .tst 2>/dev/null | |
3007 | mkdir .tst 2>/dev/null | |
3008 | if test -d .tst; then | |
3009 | am__leading_dot=. | |
3010 | else | |
3011 | am__leading_dot=_ | |
3012 | fi | |
3013 | rmdir .tst 2>/dev/null | |
3014 | ||
3015 | # Check whether --enable-silent-rules was given. | |
3016 | if test "${enable_silent_rules+set}" = set; then : | |
3017 | enableval=$enable_silent_rules; | |
3018 | fi | |
3019 | ||
3020 | case $enable_silent_rules in # ((( | |
3021 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3022 | no) AM_DEFAULT_VERBOSITY=1;; | |
3023 | *) AM_DEFAULT_VERBOSITY=1;; | |
3024 | esac | |
3025 | am_make=${MAKE-make} | |
3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3027 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3028 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3029 | $as_echo_n "(cached) " >&6 | |
3030 | else | |
3031 | if $as_echo 'TRUE=$(BAR$(V)) | |
3032 | BAR0=false | |
3033 | BAR1=true | |
3034 | V=1 | |
3035 | am__doit: | |
3036 | @$(TRUE) | |
3037 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3038 | am_cv_make_support_nested_variables=yes | |
3039 | else | |
3040 | am_cv_make_support_nested_variables=no | |
3041 | fi | |
3042 | fi | |
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3044 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3045 | if test $am_cv_make_support_nested_variables = yes; then | |
3046 | AM_V='$(V)' | |
3047 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3048 | else | |
3049 | AM_V=$AM_DEFAULT_VERBOSITY | |
3050 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3051 | fi | |
3052 | AM_BACKSLASH='\' | |
3053 | ||
3054 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3055 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3056 | # is not polluted with repeated "-I." | |
3057 | am__isrc=' -I$(srcdir)' | |
3058 | # test to see if srcdir already configured | |
3059 | if test -f $srcdir/config.status; then | |
3060 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3061 | fi | |
3062 | fi | |
3063 | ||
3064 | # test whether we have cygpath | |
3065 | if test -z "$CYGPATH_W"; then | |
3066 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3067 | CYGPATH_W='cygpath -w' | |
3068 | else | |
3069 | CYGPATH_W=echo | |
3070 | fi | |
3071 | fi | |
3072 | ||
3073 | ||
3074 | # Define the identity of the package. | |
3075 | PACKAGE='cycript' | |
3076 | VERSION='0.9' | |
3077 | ||
3078 | ||
3079 | cat >>confdefs.h <<_ACEOF | |
3080 | #define PACKAGE "$PACKAGE" | |
3081 | _ACEOF | |
3082 | ||
3083 | ||
3084 | cat >>confdefs.h <<_ACEOF | |
3085 | #define VERSION "$VERSION" | |
3086 | _ACEOF | |
3087 | ||
3088 | # Some tools Automake needs. | |
3089 | ||
3090 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3091 | ||
3092 | ||
3093 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3094 | ||
3095 | ||
3096 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3097 | ||
3098 | ||
3099 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3100 | ||
3101 | ||
3102 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3103 | ||
3104 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3105 | # dies out for good. For more background, see: | |
3106 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3107 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3108 | mkdir_p='$(MKDIR_P)' | |
3109 | ||
795230e5 JF |
3110 | # We need awk for the "check" target (and possibly the TAP driver). The |
3111 | # system "awk" is bad on some platforms. | |
66170b30 JF |
3112 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3113 | # in the wild :-( We should find a proper way to deprecate it ... | |
3114 | AMTAR='$${TAR-tar}' | |
3115 | ||
a93f15c0 JF |
3116 | |
3117 | # We'll loop over all known methods to create a tar archive until one works. | |
3118 | _am_tools='gnutar pax cpio none' | |
3119 | ||
66170b30 JF |
3120 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3121 | ||
3122 | ||
3123 | ||
3124 | ||
3125 | ||
66170b30 | 3126 | |
a93f15c0 JF |
3127 | # POSIX will say in a future version that running "rm -f" with no argument |
3128 | # is OK; and we want to be able to make that assumption in our Makefile | |
3129 | # recipes. So use an aggressive probe to check that the usage we want is | |
3130 | # actually supported "in the wild" to an acceptable degree. | |
3131 | # See automake bug#10828. | |
3132 | # To make any issue more visible, cause the running configure to be aborted | |
3133 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3134 | # user can still override this though. | |
3135 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3136 | cat >&2 <<'END' | |
3137 | Oops! | |
3138 | ||
3139 | Your 'rm' program seems unable to run without file operands specified | |
3140 | on the command line, even when the '-f' option is present. This is contrary | |
3141 | to the behaviour of most rm programs out there, and not conforming with | |
3142 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3143 | ||
3144 | Please tell bug-automake@gnu.org about your system, including the value | |
3145 | of your $PATH and any error possibly output before this message. This | |
3146 | can help us improve future automake versions. | |
3147 | ||
3148 | END | |
3149 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3150 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3151 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3152 | echo >&2 | |
3153 | else | |
3154 | cat >&2 <<'END' | |
3155 | Aborting the configuration process, to ensure you take notice of the issue. | |
3156 | ||
3157 | You can download and install GNU coreutils to get an 'rm' implementation | |
3158 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3159 | ||
3160 | If you want to complete the configuration process using your problematic | |
3161 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3162 | to "yes", and re-run configure. | |
3163 | ||
3164 | END | |
3165 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3166 | fi | |
3167 | fi | |
3168 | ||
795230e5 | 3169 | |
babf7fe8 JF |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3171 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3172 | # Check whether --enable-maintainer-mode was given. | |
3173 | if test "${enable_maintainer_mode+set}" = set; then : | |
3174 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3175 | else | |
3176 | USE_MAINTAINER_MODE=no | |
3177 | fi | |
3178 | ||
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3180 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3181 | if test $USE_MAINTAINER_MODE = yes; then | |
3182 | MAINTAINER_MODE_TRUE= | |
3183 | MAINTAINER_MODE_FALSE='#' | |
3184 | else | |
3185 | MAINTAINER_MODE_TRUE='#' | |
3186 | MAINTAINER_MODE_FALSE= | |
3187 | fi | |
3188 | ||
3189 | MAINT=$MAINTAINER_MODE_TRUE | |
3190 | ||
3191 | ||
3192 | ||
a93f15c0 JF |
3193 | ac_ext=c |
3194 | ac_cpp='$CPP $CPPFLAGS' | |
3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3198 | if test -n "$ac_tool_prefix"; then | |
3199 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3200 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3202 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3203 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3204 | $as_echo_n "(cached) " >&6 |
3205 | else | |
a93f15c0 JF |
3206 | if test -n "$CC"; then |
3207 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3208 | else |
3209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3210 | for as_dir in $PATH | |
3211 | do | |
3212 | IFS=$as_save_IFS | |
3213 | test -z "$as_dir" && as_dir=. | |
3214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3216 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3218 | break 2 | |
3219 | fi | |
3220 | done | |
3221 | done | |
3222 | IFS=$as_save_IFS | |
3223 | ||
3224 | fi | |
3225 | fi | |
a93f15c0 JF |
3226 | CC=$ac_cv_prog_CC |
3227 | if test -n "$CC"; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3229 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3230 | else |
3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3232 | $as_echo "no" >&6; } | |
3233 | fi | |
3234 | ||
3235 | ||
35fa52c0 | 3236 | fi |
a93f15c0 JF |
3237 | if test -z "$ac_cv_prog_CC"; then |
3238 | ac_ct_CC=$CC | |
3239 | # Extract the first word of "gcc", so it can be a program name with args. | |
3240 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3242 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3243 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3244 | $as_echo_n "(cached) " >&6 |
3245 | else | |
a93f15c0 JF |
3246 | if test -n "$ac_ct_CC"; then |
3247 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3248 | else |
3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3250 | for as_dir in $PATH | |
3251 | do | |
3252 | IFS=$as_save_IFS | |
3253 | test -z "$as_dir" && as_dir=. | |
3254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3256 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
3257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3258 | break 2 | |
3259 | fi | |
3260 | done | |
3261 | done | |
3262 | IFS=$as_save_IFS | |
3263 | ||
3264 | fi | |
3265 | fi | |
a93f15c0 JF |
3266 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3267 | if test -n "$ac_ct_CC"; then | |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3269 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3270 | else |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3272 | $as_echo "no" >&6; } | |
3273 | fi | |
3274 | ||
a93f15c0 JF |
3275 | if test "x$ac_ct_CC" = x; then |
3276 | CC="" | |
35fa52c0 DWT |
3277 | else |
3278 | case $cross_compiling:$ac_tool_warned in | |
3279 | yes:) | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3281 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3282 | ac_tool_warned=yes ;; | |
3283 | esac | |
a93f15c0 | 3284 | CC=$ac_ct_CC |
35fa52c0 | 3285 | fi |
a93f15c0 JF |
3286 | else |
3287 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3288 | fi |
3289 | ||
a93f15c0 JF |
3290 | if test -z "$CC"; then |
3291 | if test -n "$ac_tool_prefix"; then | |
3292 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3293 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3295 | $as_echo_n "checking for $ac_word... " >&6; } | |
3296 | if ${ac_cv_prog_CC+:} false; then : | |
3297 | $as_echo_n "(cached) " >&6 | |
3298 | else | |
3299 | if test -n "$CC"; then | |
3300 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3301 | else | |
3302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3303 | for as_dir in $PATH | |
3304 | do | |
3305 | IFS=$as_save_IFS | |
3306 | test -z "$as_dir" && as_dir=. | |
3307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3309 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3311 | break 2 | |
a243b558 | 3312 | fi |
35fa52c0 | 3313 | done |
a93f15c0 JF |
3314 | done |
3315 | IFS=$as_save_IFS | |
35fa52c0 | 3316 | |
a93f15c0 JF |
3317 | fi |
3318 | fi | |
3319 | CC=$ac_cv_prog_CC | |
3320 | if test -n "$CC"; then | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3322 | $as_echo "$CC" >&6; } | |
3323 | else | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3325 | $as_echo "no" >&6; } | |
3326 | fi | |
35fa52c0 | 3327 | |
35fa52c0 | 3328 | |
a93f15c0 JF |
3329 | fi |
3330 | fi | |
3331 | if test -z "$CC"; then | |
3332 | # Extract the first word of "cc", so it can be a program name with args. | |
3333 | set dummy cc; ac_word=$2 | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3335 | $as_echo_n "checking for $ac_word... " >&6; } | |
3336 | if ${ac_cv_prog_CC+:} false; then : | |
3337 | $as_echo_n "(cached) " >&6 | |
3338 | else | |
3339 | if test -n "$CC"; then | |
3340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3341 | else | |
3342 | ac_prog_rejected=no | |
3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3344 | for as_dir in $PATH | |
35fa52c0 | 3345 | do |
a93f15c0 JF |
3346 | IFS=$as_save_IFS |
3347 | test -z "$as_dir" && as_dir=. | |
3348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3350 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3351 | ac_prog_rejected=yes | |
3352 | continue | |
3353 | fi | |
3354 | ac_cv_prog_CC="cc" | |
3355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3356 | break 2 | |
3357 | fi | |
3358 | done | |
3359 | done | |
3360 | IFS=$as_save_IFS | |
3361 | ||
3362 | if test $ac_prog_rejected = yes; then | |
3363 | # We found a bogon in the path, so make sure we never use it. | |
3364 | set dummy $ac_cv_prog_CC | |
3365 | shift | |
3366 | if test $# != 0; then | |
3367 | # We chose a different compiler from the bogus one. | |
3368 | # However, it has the same basename, so the bogon will be chosen | |
3369 | # first if we set CC to just the basename; use the full file name. | |
3370 | shift | |
3371 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3372 | fi | |
3373 | fi | |
3374 | fi | |
3375 | fi | |
3376 | CC=$ac_cv_prog_CC | |
3377 | if test -n "$CC"; then | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3379 | $as_echo "$CC" >&6; } | |
3380 | else | |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3382 | $as_echo "no" >&6; } | |
3383 | fi | |
3384 | ||
3385 | ||
3386 | fi | |
3387 | if test -z "$CC"; then | |
3388 | if test -n "$ac_tool_prefix"; then | |
3389 | for ac_prog in cl.exe | |
3390 | do | |
3391 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3392 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3394 | $as_echo_n "checking for $ac_word... " >&6; } | |
3395 | if ${ac_cv_prog_CC+:} false; then : | |
3396 | $as_echo_n "(cached) " >&6 | |
3397 | else | |
3398 | if test -n "$CC"; then | |
3399 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3400 | else | |
3401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3402 | for as_dir in $PATH | |
3403 | do | |
3404 | IFS=$as_save_IFS | |
3405 | test -z "$as_dir" && as_dir=. | |
3406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3408 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3410 | break 2 | |
3411 | fi | |
3412 | done | |
3413 | done | |
3414 | IFS=$as_save_IFS | |
3415 | ||
3416 | fi | |
3417 | fi | |
3418 | CC=$ac_cv_prog_CC | |
3419 | if test -n "$CC"; then | |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3421 | $as_echo "$CC" >&6; } | |
3422 | else | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3424 | $as_echo "no" >&6; } | |
3425 | fi | |
3426 | ||
3427 | ||
3428 | test -n "$CC" && break | |
3429 | done | |
3430 | fi | |
3431 | if test -z "$CC"; then | |
3432 | ac_ct_CC=$CC | |
3433 | for ac_prog in cl.exe | |
3434 | do | |
3435 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3436 | set dummy $ac_prog; ac_word=$2 | |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3438 | $as_echo_n "checking for $ac_word... " >&6; } | |
3439 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3440 | $as_echo_n "(cached) " >&6 | |
3441 | else | |
3442 | if test -n "$ac_ct_CC"; then | |
3443 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3444 | else | |
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3446 | for as_dir in $PATH | |
3447 | do | |
3448 | IFS=$as_save_IFS | |
3449 | test -z "$as_dir" && as_dir=. | |
3450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3451 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3452 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3454 | break 2 | |
3455 | fi | |
3456 | done | |
3457 | done | |
3458 | IFS=$as_save_IFS | |
3459 | ||
3460 | fi | |
3461 | fi | |
3462 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3463 | if test -n "$ac_ct_CC"; then | |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3465 | $as_echo "$ac_ct_CC" >&6; } | |
3466 | else | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3468 | $as_echo "no" >&6; } | |
3469 | fi | |
3470 | ||
3471 | ||
3472 | test -n "$ac_ct_CC" && break | |
3473 | done | |
3474 | ||
3475 | if test "x$ac_ct_CC" = x; then | |
3476 | CC="" | |
3477 | else | |
3478 | case $cross_compiling:$ac_tool_warned in | |
3479 | yes:) | |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3482 | ac_tool_warned=yes ;; | |
3483 | esac | |
3484 | CC=$ac_ct_CC | |
3485 | fi | |
3486 | fi | |
3487 | ||
3488 | fi | |
3489 | ||
3490 | ||
3491 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3493 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3494 | See \`config.log' for more details" "$LINENO" 5; } | |
3495 | ||
3496 | # Provide some information about the compiler. | |
3497 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3498 | set X $ac_compile | |
3499 | ac_compiler=$2 | |
3500 | for ac_option in --version -v -V -qversion; do | |
3501 | { { ac_try="$ac_compiler $ac_option >&5" | |
3502 | case "(($ac_try" in | |
3503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3504 | *) ac_try_echo=$ac_try;; | |
3505 | esac | |
3506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3507 | $as_echo "$ac_try_echo"; } >&5 | |
3508 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3509 | ac_status=$? | |
3510 | if test -s conftest.err; then | |
3511 | sed '10a\ | |
3512 | ... rest of stderr output deleted ... | |
3513 | 10q' conftest.err >conftest.er1 | |
3514 | cat conftest.er1 >&5 | |
3515 | fi | |
3516 | rm -f conftest.er1 conftest.err | |
3517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3518 | test $ac_status = 0; } | |
3519 | done | |
3520 | ||
3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3522 | /* end confdefs.h. */ | |
3523 | ||
3524 | int | |
3525 | main () | |
3526 | { | |
3527 | ||
3528 | ; | |
3529 | return 0; | |
3530 | } | |
3531 | _ACEOF | |
3532 | ac_clean_files_save=$ac_clean_files | |
3533 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3534 | # Try to create an executable without -o first, disregard a.out. | |
3535 | # It will help us diagnose broken compilers, and finding out an intuition | |
3536 | # of exeext. | |
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3538 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3539 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3540 | ||
3541 | # The possible output files: | |
3542 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3543 | ||
3544 | ac_rmfiles= | |
3545 | for ac_file in $ac_files | |
3546 | do | |
3547 | case $ac_file in | |
3548 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3549 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3550 | esac | |
3551 | done | |
35fa52c0 DWT |
3552 | rm -f $ac_rmfiles |
3553 | ||
3554 | if { { ac_try="$ac_link_default" | |
3555 | case "(($ac_try" in | |
3556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3557 | *) ac_try_echo=$ac_try;; | |
3558 | esac | |
3559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3560 | $as_echo "$ac_try_echo"; } >&5 | |
3561 | (eval "$ac_link_default") 2>&5 | |
3562 | ac_status=$? | |
3563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3564 | test $ac_status = 0; }; then : | |
3565 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3566 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3567 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3568 | # so that the user can short-circuit this test for compilers unknown to | |
3569 | # Autoconf. | |
3570 | for ac_file in $ac_files '' | |
3571 | do | |
3572 | test -f "$ac_file" || continue | |
3573 | case $ac_file in | |
3574 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3575 | ;; | |
3576 | [ab].out ) | |
3577 | # We found the default executable, but exeext='' is most | |
3578 | # certainly right. | |
3579 | break;; | |
3580 | *.* ) | |
3581 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3582 | then :; else | |
3583 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3584 | fi | |
3585 | # We set ac_cv_exeext here because the later test for it is not | |
3586 | # safe: cross compilers may not add the suffix if given an `-o' | |
3587 | # argument, so we may need to know it at that point already. | |
3588 | # Even if this section looks crufty: it has the advantage of | |
3589 | # actually working. | |
3590 | break;; | |
3591 | * ) | |
3592 | break;; | |
3593 | esac | |
3594 | done | |
3595 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3596 | ||
3597 | else | |
3598 | ac_file='' | |
3599 | fi | |
35fa52c0 | 3600 | if test -z "$ac_file"; then : |
9c60689e DWT |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3602 | $as_echo "no" >&6; } | |
3603 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3604 | sed 's/^/| /' conftest.$ac_ext >&5 |
3605 | ||
3606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3608 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3609 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3610 | else |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3612 | $as_echo "yes" >&6; } | |
35fa52c0 | 3613 | fi |
a93f15c0 JF |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3615 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3617 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3618 | ac_exeext=$ac_cv_exeext |
3619 | ||
9c60689e | 3620 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3621 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3623 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3624 | if { { ac_try="$ac_link" | |
3625 | case "(($ac_try" in | |
3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3627 | *) ac_try_echo=$ac_try;; | |
3628 | esac | |
3629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3630 | $as_echo "$ac_try_echo"; } >&5 | |
3631 | (eval "$ac_link") 2>&5 | |
3632 | ac_status=$? | |
3633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3634 | test $ac_status = 0; }; then : | |
3635 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3636 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3637 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3638 | # `rm'. | |
3639 | for ac_file in conftest.exe conftest conftest.*; do | |
3640 | test -f "$ac_file" || continue | |
3641 | case $ac_file in | |
3642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3643 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3644 | break;; | |
3645 | * ) break;; | |
3646 | esac | |
3647 | done | |
3648 | else | |
3649 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3650 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3651 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3652 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3653 | fi |
9c60689e | 3654 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3656 | $as_echo "$ac_cv_exeext" >&6; } | |
3657 | ||
3658 | rm -f conftest.$ac_ext | |
3659 | EXEEXT=$ac_cv_exeext | |
3660 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3662 | /* end confdefs.h. */ | |
3663 | #include <stdio.h> | |
3664 | int | |
3665 | main () | |
3666 | { | |
3667 | FILE *f = fopen ("conftest.out", "w"); | |
3668 | return ferror (f) || fclose (f) != 0; | |
3669 | ||
3670 | ; | |
3671 | return 0; | |
3672 | } | |
3673 | _ACEOF | |
3674 | ac_clean_files="$ac_clean_files conftest.out" | |
3675 | # Check that the compiler produces executables we can run. If not, either | |
3676 | # the compiler is broken, or we cross compile. | |
3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3678 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3679 | if test "$cross_compiling" != yes; then | |
3680 | { { ac_try="$ac_link" | |
3681 | case "(($ac_try" in | |
3682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3683 | *) ac_try_echo=$ac_try;; | |
3684 | esac | |
3685 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3686 | $as_echo "$ac_try_echo"; } >&5 | |
3687 | (eval "$ac_link") 2>&5 | |
3688 | ac_status=$? | |
3689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3690 | test $ac_status = 0; } | |
3691 | if { ac_try='./conftest$ac_cv_exeext' | |
3692 | { { case "(($ac_try" in | |
3693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3694 | *) ac_try_echo=$ac_try;; | |
3695 | esac | |
3696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3697 | $as_echo "$ac_try_echo"; } >&5 | |
3698 | (eval "$ac_try") 2>&5 | |
3699 | ac_status=$? | |
3700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3701 | test $ac_status = 0; }; }; then | |
3702 | cross_compiling=no | |
3703 | else | |
3704 | if test "$cross_compiling" = maybe; then | |
3705 | cross_compiling=yes | |
3706 | else | |
3707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3709 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3710 | If you meant to cross compile, use \`--host'. |
ee134472 | 3711 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3712 | fi |
3713 | fi | |
3714 | fi | |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3716 | $as_echo "$cross_compiling" >&6; } | |
3717 | ||
3718 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3719 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3721 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3722 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3723 | $as_echo_n "(cached) " >&6 |
3724 | else | |
3725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3726 | /* end confdefs.h. */ | |
3727 | ||
3728 | int | |
3729 | main () | |
3730 | { | |
3731 | ||
3732 | ; | |
3733 | return 0; | |
3734 | } | |
3735 | _ACEOF | |
3736 | rm -f conftest.o conftest.obj | |
3737 | if { { ac_try="$ac_compile" | |
3738 | case "(($ac_try" in | |
3739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3740 | *) ac_try_echo=$ac_try;; | |
3741 | esac | |
3742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3743 | $as_echo "$ac_try_echo"; } >&5 | |
3744 | (eval "$ac_compile") 2>&5 | |
3745 | ac_status=$? | |
3746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3747 | test $ac_status = 0; }; then : | |
3748 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3749 | test -f "$ac_file" || continue; | |
3750 | case $ac_file in | |
3751 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3752 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3753 | break;; | |
3754 | esac | |
3755 | done | |
3756 | else | |
3757 | $as_echo "$as_me: failed program was:" >&5 | |
3758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3759 | ||
3760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3762 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3763 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3764 | fi |
3765 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3766 | fi | |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3768 | $as_echo "$ac_cv_objext" >&6; } | |
3769 | OBJEXT=$ac_cv_objext | |
3770 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3772 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3773 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3774 | $as_echo_n "(cached) " >&6 |
3775 | else | |
3776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3777 | /* end confdefs.h. */ | |
3778 | ||
3779 | int | |
3780 | main () | |
3781 | { | |
3782 | #ifndef __GNUC__ | |
3783 | choke me | |
3784 | #endif | |
3785 | ||
3786 | ; | |
3787 | return 0; | |
3788 | } | |
3789 | _ACEOF | |
a93f15c0 | 3790 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3791 | ac_compiler_gnu=yes |
3792 | else | |
3793 | ac_compiler_gnu=no | |
3794 | fi | |
3795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3796 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3797 | |
3798 | fi | |
a93f15c0 JF |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3800 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3801 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3802 | GCC=yes |
35fa52c0 | 3803 | else |
a93f15c0 | 3804 | GCC= |
35fa52c0 | 3805 | fi |
a93f15c0 JF |
3806 | ac_test_CFLAGS=${CFLAGS+set} |
3807 | ac_save_CFLAGS=$CFLAGS | |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3809 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3810 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3811 | $as_echo_n "(cached) " >&6 |
3812 | else | |
a93f15c0 JF |
3813 | ac_save_c_werror_flag=$ac_c_werror_flag |
3814 | ac_c_werror_flag=yes | |
3815 | ac_cv_prog_cc_g=no | |
3816 | CFLAGS="-g" | |
35fa52c0 DWT |
3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3818 | /* end confdefs.h. */ | |
3819 | ||
3820 | int | |
3821 | main () | |
3822 | { | |
3823 | ||
3824 | ; | |
3825 | return 0; | |
3826 | } | |
3827 | _ACEOF | |
a93f15c0 JF |
3828 | if ac_fn_c_try_compile "$LINENO"; then : |
3829 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3830 | else |
a93f15c0 | 3831 | CFLAGS="" |
35fa52c0 DWT |
3832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3833 | /* end confdefs.h. */ | |
3834 | ||
3835 | int | |
3836 | main () | |
3837 | { | |
3838 | ||
3839 | ; | |
3840 | return 0; | |
3841 | } | |
3842 | _ACEOF | |
a93f15c0 | 3843 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3844 | |
3845 | else | |
a93f15c0 JF |
3846 | ac_c_werror_flag=$ac_save_c_werror_flag |
3847 | CFLAGS="-g" | |
35fa52c0 DWT |
3848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3849 | /* end confdefs.h. */ | |
3850 | ||
3851 | int | |
3852 | main () | |
3853 | { | |
3854 | ||
3855 | ; | |
3856 | return 0; | |
3857 | } | |
3858 | _ACEOF | |
a93f15c0 JF |
3859 | if ac_fn_c_try_compile "$LINENO"; then : |
3860 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3861 | fi |
3862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3863 | fi | |
3864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3865 | fi | |
3866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3867 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3868 | fi |
a93f15c0 JF |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3870 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3871 | if test "$ac_test_CFLAGS" = set; then | |
3872 | CFLAGS=$ac_save_CFLAGS | |
3873 | elif test $ac_cv_prog_cc_g = yes; then | |
3874 | if test "$GCC" = yes; then | |
3875 | CFLAGS="-g -O2" | |
35fa52c0 | 3876 | else |
a93f15c0 | 3877 | CFLAGS="-g" |
35fa52c0 DWT |
3878 | fi |
3879 | else | |
a93f15c0 JF |
3880 | if test "$GCC" = yes; then |
3881 | CFLAGS="-O2" | |
35fa52c0 | 3882 | else |
a93f15c0 | 3883 | CFLAGS= |
35fa52c0 DWT |
3884 | fi |
3885 | fi | |
a93f15c0 JF |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3887 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3888 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3889 | $as_echo_n "(cached) " >&6 | |
3890 | else | |
3891 | ac_cv_prog_cc_c89=no | |
3892 | ac_save_CC=$CC | |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3894 | /* end confdefs.h. */ | |
3895 | #include <stdarg.h> | |
3896 | #include <stdio.h> | |
3897 | struct stat; | |
3898 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3899 | struct buf { int x; }; | |
3900 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3901 | static char *e (p, i) | |
3902 | char **p; | |
3903 | int i; | |
3904 | { | |
3905 | return p[i]; | |
3906 | } | |
3907 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3908 | { | |
3909 | char *s; | |
3910 | va_list v; | |
3911 | va_start (v,p); | |
3912 | s = g (p, va_arg (v,int)); | |
3913 | va_end (v); | |
3914 | return s; | |
3915 | } | |
3916 | ||
3917 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3918 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3919 | These don't provoke an error unfortunately, instead are silently treated | |
3920 | as 'x'. The following induces an error, until -std is added to get | |
3921 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3922 | array size at least. It's necessary to write '\x00'==0 to get something | |
3923 | that's true only with -std. */ | |
3924 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3925 | ||
3926 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3927 | inside strings and character constants. */ | |
3928 | #define FOO(x) 'x' | |
3929 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3930 | ||
3931 | int test (int i, double x); | |
3932 | struct s1 {int (*f) (int a);}; | |
3933 | struct s2 {int (*f) (double a);}; | |
3934 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3935 | int argc; | |
3936 | char **argv; | |
3937 | int | |
3938 | main () | |
3939 | { | |
3940 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3941 | ; | |
3942 | return 0; | |
3943 | } | |
3944 | _ACEOF | |
3945 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3946 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3947 | do | |
3948 | CC="$ac_save_CC $ac_arg" | |
3949 | if ac_fn_c_try_compile "$LINENO"; then : | |
3950 | ac_cv_prog_cc_c89=$ac_arg | |
3951 | fi | |
3952 | rm -f core conftest.err conftest.$ac_objext | |
3953 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3954 | done | |
3955 | rm -f conftest.$ac_ext | |
3956 | CC=$ac_save_CC | |
3957 | ||
3958 | fi | |
3959 | # AC_CACHE_VAL | |
3960 | case "x$ac_cv_prog_cc_c89" in | |
3961 | x) | |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3963 | $as_echo "none needed" >&6; } ;; | |
3964 | xno) | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3966 | $as_echo "unsupported" >&6; } ;; | |
3967 | *) | |
3968 | CC="$CC $ac_cv_prog_cc_c89" | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3970 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3971 | esac | |
3972 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3973 | ||
3974 | fi | |
3975 | ||
3976 | ac_ext=c | |
3977 | ac_cpp='$CPP $CPPFLAGS' | |
3978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3981 | ||
3982 | ac_ext=c | |
3983 | ac_cpp='$CPP $CPPFLAGS' | |
3984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3988 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3989 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3990 | $as_echo_n "(cached) " >&6 | |
3991 | else | |
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3993 | /* end confdefs.h. */ | |
3994 | ||
3995 | int | |
3996 | main () | |
3997 | { | |
3998 | ||
3999 | ; | |
4000 | return 0; | |
4001 | } | |
4002 | _ACEOF | |
4003 | # Make sure it works both with $CC and with simple cc. | |
4004 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4005 | # compilers refuse to overwrite an existing .o file with -o, | |
4006 | # though they will create one. | |
4007 | am_cv_prog_cc_c_o=yes | |
4008 | for am_i in 1 2; do | |
4009 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4010 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4011 | ac_status=$? | |
4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4013 | (exit $ac_status); } \ | |
4014 | && test -f conftest2.$ac_objext; then | |
4015 | : OK | |
4016 | else | |
4017 | am_cv_prog_cc_c_o=no | |
4018 | break | |
4019 | fi | |
4020 | done | |
4021 | rm -f core conftest* | |
4022 | unset am_i | |
4023 | fi | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4025 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4026 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4027 | # Losing compiler, so override with the script. | |
4028 | # FIXME: It is wrong to rewrite CC. | |
4029 | # But if we don't then we get into trouble of one sort or another. | |
4030 | # A longer-term fix would be to have automake use am__CC in this case, | |
4031 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4032 | CC="$am_aux_dir/compile $CC" | |
4033 | fi | |
a243b558 JF |
4034 | ac_ext=c |
4035 | ac_cpp='$CPP $CPPFLAGS' | |
4036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4039 | |
a243b558 | 4040 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4041 | |
a243b558 | 4042 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4043 | |
35fa52c0 | 4044 | |
a243b558 JF |
4045 | am_make=${MAKE-make} |
4046 | cat > confinc << 'END' | |
4047 | am__doit: | |
4048 | @echo this is the am__doit target | |
4049 | .PHONY: am__doit | |
4050 | END | |
4051 | # If we don't find an include directive, just comment out the code. | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4053 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4054 | am__include="#" | |
4055 | am__quote= | |
4056 | _am_result=none | |
4057 | # First try GNU make style include. | |
4058 | echo "include confinc" > confmf | |
4059 | # Ignore all kinds of additional output from 'make'. | |
4060 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4061 | *the\ am__doit\ target*) | |
4062 | am__include=include | |
4063 | am__quote= | |
4064 | _am_result=GNU | |
4065 | ;; | |
4066 | esac | |
4067 | # Now try BSD make style include. | |
4068 | if test "$am__include" = "#"; then | |
4069 | echo '.include "confinc"' > confmf | |
4070 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4071 | *the\ am__doit\ target*) | |
4072 | am__include=.include | |
4073 | am__quote="\"" | |
4074 | _am_result=BSD | |
4075 | ;; | |
4076 | esac | |
35fa52c0 | 4077 | fi |
35fa52c0 | 4078 | |
a243b558 JF |
4079 | |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4081 | $as_echo "$_am_result" >&6; } | |
4082 | rm -f confinc confmf | |
4083 | ||
4084 | # Check whether --enable-dependency-tracking was given. | |
4085 | if test "${enable_dependency_tracking+set}" = set; then : | |
4086 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4087 | fi |
35fa52c0 | 4088 | |
a243b558 JF |
4089 | if test "x$enable_dependency_tracking" != xno; then |
4090 | am_depcomp="$ac_aux_dir/depcomp" | |
4091 | AMDEPBACKSLASH='\' | |
4092 | am__nodep='_no' | |
4093 | fi | |
4094 | if test "x$enable_dependency_tracking" != xno; then | |
4095 | AMDEP_TRUE= | |
4096 | AMDEP_FALSE='#' | |
4097 | else | |
4098 | AMDEP_TRUE='#' | |
4099 | AMDEP_FALSE= | |
35fa52c0 DWT |
4100 | fi |
4101 | ||
35fa52c0 | 4102 | |
a243b558 | 4103 | |
a93f15c0 | 4104 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4105 | |
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4107 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4108 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4109 | $as_echo_n "(cached) " >&6 |
4110 | else | |
4111 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4112 | # We make a subdir and do the tests there. Otherwise we can end up | |
4113 | # making bogus files that we don't know about and never remove. For | |
4114 | # instance it was reported that on HP-UX the gcc test will end up | |
4115 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4116 | # in D". | |
4117 | rm -rf conftest.dir | |
4118 | mkdir conftest.dir | |
4119 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4120 | # using a relative directory. | |
4121 | cp "$am_depcomp" conftest.dir | |
4122 | cd conftest.dir | |
4123 | # We will build objects and dependencies in a subdirectory because | |
4124 | # it helps to detect inapplicable dependency modes. For instance | |
4125 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4126 | # side effect of compilation, but ICC will put the dependencies in | |
4127 | # the current directory while Tru64 will put them in the object | |
4128 | # directory. | |
4129 | mkdir sub | |
4130 | ||
a93f15c0 | 4131 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4132 | if test "$am_compiler_list" = ""; then |
4133 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4134 | fi | |
4135 | am__universal=false | |
4136 | case " $depcc " in #( | |
4137 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4138 | esac | |
4139 | ||
4140 | for depmode in $am_compiler_list; do | |
4141 | # Setup a source with many dependencies, because some compilers | |
4142 | # like to wrap large dependency lists on column 80 (with \), and | |
4143 | # we should not choose a depcomp mode which is confused by this. | |
4144 | # | |
4145 | # We need to recreate these files for each test, as the compiler may | |
4146 | # overwrite some of them when testing with obscure command lines. | |
4147 | # This happens at least with the AIX C compiler. | |
4148 | : > sub/conftest.c | |
4149 | for i in 1 2 3 4 5 6; do | |
4150 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4151 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4152 | # Solaris 10 /bin/sh. | |
4153 | echo '/* dummy */' > sub/conftst$i.h | |
4154 | done | |
4155 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4156 | ||
4157 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4158 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4159 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4160 | # versions had trouble with output in subdirs. | |
4161 | am__obj=sub/conftest.${OBJEXT-o} | |
4162 | am__minus_obj="-o $am__obj" | |
4163 | case $depmode in | |
4164 | gcc) | |
4165 | # This depmode causes a compiler race in universal mode. | |
4166 | test "$am__universal" = false || continue | |
4167 | ;; | |
4168 | nosideeffect) | |
4169 | # After this tag, mechanisms are not by side-effect, so they'll | |
4170 | # only be used when explicitly requested. | |
4171 | if test "x$enable_dependency_tracking" = xyes; then | |
4172 | continue | |
4173 | else | |
4174 | break | |
4175 | fi | |
4176 | ;; | |
4177 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4178 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4179 | # not run yet. These depmodes are late enough in the game, and | |
4180 | # so weak that their functioning should not be impacted. | |
4181 | am__obj=conftest.${OBJEXT-o} | |
4182 | am__minus_obj= | |
4183 | ;; | |
4184 | none) break ;; | |
4185 | esac | |
4186 | if depmode=$depmode \ | |
4187 | source=sub/conftest.c object=$am__obj \ | |
4188 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4189 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4190 | >/dev/null 2>conftest.err && | |
4191 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4192 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4193 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4194 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4195 | # icc doesn't choke on unknown options, it will just issue warnings | |
4196 | # or remarks (even with -Werror). So we grep stderr for any message | |
4197 | # that says an option was ignored or not supported. | |
4198 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4199 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4200 | # The diagnosis changed in icc 8.0: | |
4201 | # icc: Command line remark: option '-MP' not supported | |
4202 | if (grep 'ignoring option' conftest.err || | |
4203 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4204 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4205 | break |
4206 | fi | |
4207 | fi | |
4208 | done | |
4209 | ||
4210 | cd .. | |
4211 | rm -rf conftest.dir | |
4212 | else | |
a93f15c0 | 4213 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4214 | fi |
4215 | ||
4216 | fi | |
a93f15c0 JF |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4218 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4219 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4220 | |
4221 | if | |
4222 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4223 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4224 | am__fastdepCC_TRUE= | |
4225 | am__fastdepCC_FALSE='#' | |
66170b30 | 4226 | else |
a93f15c0 JF |
4227 | am__fastdepCC_TRUE='#' |
4228 | am__fastdepCC_FALSE= | |
66170b30 JF |
4229 | fi |
4230 | ||
4231 | ||
a93f15c0 JF |
4232 | ac_ext=cpp |
4233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4234 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4235 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4236 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4237 | if test -z "$CXX"; then | |
4238 | if test -n "$CCC"; then | |
4239 | CXX=$CCC | |
4240 | else | |
4241 | if test -n "$ac_tool_prefix"; then | |
4242 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4243 | do |
4244 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4245 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4247 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4248 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4249 | $as_echo_n "(cached) " >&6 |
4250 | else | |
a93f15c0 JF |
4251 | if test -n "$CXX"; then |
4252 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4253 | else |
4254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4255 | for as_dir in $PATH | |
4256 | do | |
35fa52c0 DWT |
4257 | IFS=$as_save_IFS |
4258 | test -z "$as_dir" && as_dir=. | |
4259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4261 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4263 | break 2 | |
4264 | fi | |
4265 | done | |
9c60689e DWT |
4266 | done |
4267 | IFS=$as_save_IFS | |
35fa52c0 | 4268 | |
9c60689e | 4269 | fi |
a243b558 | 4270 | fi |
a93f15c0 JF |
4271 | CXX=$ac_cv_prog_CXX |
4272 | if test -n "$CXX"; then | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4274 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4275 | else |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4277 | $as_echo "no" >&6; } | |
4278 | fi | |
35fa52c0 | 4279 | |
35fa52c0 | 4280 | |
a93f15c0 | 4281 | test -n "$CXX" && break |
a243b558 JF |
4282 | done |
4283 | fi | |
a93f15c0 JF |
4284 | if test -z "$CXX"; then |
4285 | ac_ct_CXX=$CXX | |
4286 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4287 | do |
4288 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4289 | set dummy $ac_prog; ac_word=$2 | |
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4291 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4292 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4293 | $as_echo_n "(cached) " >&6 |
4294 | else | |
a93f15c0 JF |
4295 | if test -n "$ac_ct_CXX"; then |
4296 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4297 | else |
4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4299 | for as_dir in $PATH | |
9c60689e DWT |
4300 | do |
4301 | IFS=$as_save_IFS | |
4302 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4303 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4305 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4307 | break 2 | |
4308 | fi | |
4309 | done | |
9c60689e DWT |
4310 | done |
4311 | IFS=$as_save_IFS | |
a243b558 JF |
4312 | |
4313 | fi | |
4314 | fi | |
a93f15c0 JF |
4315 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4316 | if test -n "$ac_ct_CXX"; then | |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4318 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4319 | else |
a243b558 JF |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4321 | $as_echo "no" >&6; } | |
9c60689e | 4322 | fi |
6b66678a DWT |
4323 | |
4324 | ||
a93f15c0 | 4325 | test -n "$ac_ct_CXX" && break |
a243b558 | 4326 | done |
6b66678a | 4327 | |
a93f15c0 JF |
4328 | if test "x$ac_ct_CXX" = x; then |
4329 | CXX="g++" | |
a243b558 JF |
4330 | else |
4331 | case $cross_compiling:$ac_tool_warned in | |
4332 | yes:) | |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4334 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4335 | ac_tool_warned=yes ;; | |
9c60689e | 4336 | esac |
a93f15c0 | 4337 | CXX=$ac_ct_CXX |
9c60689e | 4338 | fi |
9c60689e | 4339 | fi |
6b66678a | 4340 | |
a93f15c0 JF |
4341 | fi |
4342 | fi | |
a243b558 | 4343 | # Provide some information about the compiler. |
a93f15c0 | 4344 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4345 | set X $ac_compile |
4346 | ac_compiler=$2 | |
4347 | for ac_option in --version -v -V -qversion; do | |
4348 | { { ac_try="$ac_compiler $ac_option >&5" | |
4349 | case "(($ac_try" in | |
4350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4351 | *) ac_try_echo=$ac_try;; | |
4352 | esac | |
4353 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4354 | $as_echo "$ac_try_echo"; } >&5 | |
4355 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4356 | ac_status=$? | |
4357 | if test -s conftest.err; then | |
4358 | sed '10a\ | |
4359 | ... rest of stderr output deleted ... | |
4360 | 10q' conftest.err >conftest.er1 | |
4361 | cat conftest.er1 >&5 | |
4362 | fi | |
4363 | rm -f conftest.er1 conftest.err | |
4364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4365 | test $ac_status = 0; } | |
4366 | done | |
6b66678a | 4367 | |
a93f15c0 JF |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4369 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4370 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4371 | $as_echo_n "(cached) " >&6 |
6b66678a | 4372 | else |
a243b558 JF |
4373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4374 | /* end confdefs.h. */ | |
6b66678a | 4375 | |
a243b558 JF |
4376 | int |
4377 | main () | |
4378 | { | |
4379 | #ifndef __GNUC__ | |
4380 | choke me | |
4381 | #endif | |
4382 | ||
4383 | ; | |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
a93f15c0 | 4387 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4388 | ac_compiler_gnu=yes |
9c60689e | 4389 | else |
a243b558 | 4390 | ac_compiler_gnu=no |
6b66678a | 4391 | fi |
a243b558 | 4392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4393 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4394 | |
4395 | fi | |
a93f15c0 JF |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4397 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4398 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4399 | GXX=yes |
a243b558 | 4400 | else |
a93f15c0 | 4401 | GXX= |
a243b558 | 4402 | fi |
a93f15c0 JF |
4403 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4404 | ac_save_CXXFLAGS=$CXXFLAGS | |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4406 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4407 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4408 | $as_echo_n "(cached) " >&6 |
4409 | else | |
a93f15c0 JF |
4410 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4411 | ac_cxx_werror_flag=yes | |
4412 | ac_cv_prog_cxx_g=no | |
4413 | CXXFLAGS="-g" | |
a243b558 JF |
4414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4415 | /* end confdefs.h. */ | |
309b0535 | 4416 | |
a243b558 JF |
4417 | int |
4418 | main () | |
4419 | { | |
309b0535 | 4420 | |
a243b558 JF |
4421 | ; |
4422 | return 0; | |
4423 | } | |
4424 | _ACEOF | |
a93f15c0 JF |
4425 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4426 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4427 | else |
a93f15c0 | 4428 | CXXFLAGS="" |
a243b558 JF |
4429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4430 | /* end confdefs.h. */ | |
309b0535 | 4431 | |
a243b558 JF |
4432 | int |
4433 | main () | |
4434 | { | |
309b0535 | 4435 | |
a243b558 JF |
4436 | ; |
4437 | return 0; | |
4438 | } | |
4439 | _ACEOF | |
a93f15c0 | 4440 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4441 | |
a243b558 | 4442 | else |
a93f15c0 JF |
4443 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4444 | CXXFLAGS="-g" | |
a243b558 JF |
4445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4446 | /* end confdefs.h. */ | |
309b0535 | 4447 | |
a243b558 JF |
4448 | int |
4449 | main () | |
4450 | { | |
309b0535 | 4451 | |
a243b558 JF |
4452 | ; |
4453 | return 0; | |
4454 | } | |
4455 | _ACEOF | |
a93f15c0 JF |
4456 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4457 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4458 | fi |
a243b558 | 4459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4460 | fi |
a243b558 | 4461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4462 | fi |
a243b558 | 4463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4464 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4465 | fi |
a93f15c0 JF |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4467 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4468 | if test "$ac_test_CXXFLAGS" = set; then | |
4469 | CXXFLAGS=$ac_save_CXXFLAGS | |
4470 | elif test $ac_cv_prog_cxx_g = yes; then | |
4471 | if test "$GXX" = yes; then | |
4472 | CXXFLAGS="-g -O2" | |
a243b558 | 4473 | else |
a93f15c0 | 4474 | CXXFLAGS="-g" |
a243b558 | 4475 | fi |
9c60689e | 4476 | else |
a93f15c0 JF |
4477 | if test "$GXX" = yes; then |
4478 | CXXFLAGS="-O2" | |
a243b558 | 4479 | else |
a93f15c0 | 4480 | CXXFLAGS= |
a243b558 | 4481 | fi |
9c60689e | 4482 | fi |
a243b558 JF |
4483 | ac_ext=c |
4484 | ac_cpp='$CPP $CPPFLAGS' | |
4485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4488 | |
a93f15c0 | 4489 | depcc="$CXX" am_compiler_list= |
309b0535 | 4490 | |
a243b558 JF |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4492 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4493 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4494 | $as_echo_n "(cached) " >&6 |
4495 | else | |
4496 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4497 | # We make a subdir and do the tests there. Otherwise we can end up | |
4498 | # making bogus files that we don't know about and never remove. For | |
4499 | # instance it was reported that on HP-UX the gcc test will end up | |
4500 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4501 | # in D". | |
4502 | rm -rf conftest.dir | |
4503 | mkdir conftest.dir | |
4504 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4505 | # using a relative directory. | |
4506 | cp "$am_depcomp" conftest.dir | |
4507 | cd conftest.dir | |
4508 | # We will build objects and dependencies in a subdirectory because | |
4509 | # it helps to detect inapplicable dependency modes. For instance | |
4510 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4511 | # side effect of compilation, but ICC will put the dependencies in | |
4512 | # the current directory while Tru64 will put them in the object | |
4513 | # directory. | |
4514 | mkdir sub | |
309b0535 | 4515 | |
a93f15c0 | 4516 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4517 | if test "$am_compiler_list" = ""; then |
4518 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4519 | fi | |
4520 | am__universal=false | |
a93f15c0 JF |
4521 | case " $depcc " in #( |
4522 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4523 | esac | |
9c60689e | 4524 | |
a243b558 JF |
4525 | for depmode in $am_compiler_list; do |
4526 | # Setup a source with many dependencies, because some compilers | |
4527 | # like to wrap large dependency lists on column 80 (with \), and | |
4528 | # we should not choose a depcomp mode which is confused by this. | |
4529 | # | |
4530 | # We need to recreate these files for each test, as the compiler may | |
4531 | # overwrite some of them when testing with obscure command lines. | |
4532 | # This happens at least with the AIX C compiler. | |
4533 | : > sub/conftest.c | |
4534 | for i in 1 2 3 4 5 6; do | |
4535 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4536 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4537 | # Solaris 10 /bin/sh. | |
4538 | echo '/* dummy */' > sub/conftst$i.h | |
4539 | done | |
4540 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4541 | |
a243b558 JF |
4542 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4543 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4544 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4545 | # versions had trouble with output in subdirs. | |
4546 | am__obj=sub/conftest.${OBJEXT-o} | |
4547 | am__minus_obj="-o $am__obj" | |
4548 | case $depmode in | |
4549 | gcc) | |
4550 | # This depmode causes a compiler race in universal mode. | |
4551 | test "$am__universal" = false || continue | |
4552 | ;; | |
4553 | nosideeffect) | |
4554 | # After this tag, mechanisms are not by side-effect, so they'll | |
4555 | # only be used when explicitly requested. | |
4556 | if test "x$enable_dependency_tracking" = xyes; then | |
4557 | continue | |
4558 | else | |
4559 | break | |
309b0535 | 4560 | fi |
a243b558 JF |
4561 | ;; |
4562 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4563 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4564 | # not run yet. These depmodes are late enough in the game, and | |
4565 | # so weak that their functioning should not be impacted. | |
4566 | am__obj=conftest.${OBJEXT-o} | |
4567 | am__minus_obj= | |
4568 | ;; | |
4569 | none) break ;; | |
4570 | esac | |
4571 | if depmode=$depmode \ | |
4572 | source=sub/conftest.c object=$am__obj \ | |
4573 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4574 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4575 | >/dev/null 2>conftest.err && | |
4576 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4577 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4578 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4579 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4580 | # icc doesn't choke on unknown options, it will just issue warnings | |
4581 | # or remarks (even with -Werror). So we grep stderr for any message | |
4582 | # that says an option was ignored or not supported. | |
4583 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4584 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4585 | # The diagnosis changed in icc 8.0: | |
4586 | # icc: Command line remark: option '-MP' not supported | |
4587 | if (grep 'ignoring option' conftest.err || | |
4588 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4589 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4590 | break |
4591 | fi | |
4592 | fi | |
309b0535 | 4593 | done |
a243b558 JF |
4594 | |
4595 | cd .. | |
4596 | rm -rf conftest.dir | |
4597 | else | |
a93f15c0 | 4598 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4599 | fi |
a243b558 | 4600 | |
9c60689e | 4601 | fi |
a93f15c0 JF |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4603 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4604 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4605 | |
4606 | if | |
4607 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4608 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4609 | am__fastdepCXX_TRUE= | |
4610 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4611 | else |
a93f15c0 JF |
4612 | am__fastdepCXX_TRUE='#' |
4613 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4614 | fi |
4615 | ||
4616 | ||
a93f15c0 JF |
4617 | ac_ext=mm |
4618 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4619 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4620 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4621 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4622 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4623 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4624 | do |
4625 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4626 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4628 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4629 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4630 | $as_echo_n "(cached) " >&6 |
4631 | else | |
a93f15c0 JF |
4632 | if test -n "$OBJCXX"; then |
4633 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4634 | else |
4635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4636 | for as_dir in $PATH | |
4637 | do | |
4638 | IFS=$as_save_IFS | |
4639 | test -z "$as_dir" && as_dir=. | |
4640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4642 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4644 | break 2 | |
9c60689e | 4645 | fi |
a243b558 JF |
4646 | done |
4647 | done | |
4648 | IFS=$as_save_IFS | |
9c60689e | 4649 | |
a243b558 JF |
4650 | fi |
4651 | fi | |
a93f15c0 JF |
4652 | OBJCXX=$ac_cv_prog_OBJCXX |
4653 | if test -n "$OBJCXX"; then | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4655 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4656 | else |
a243b558 JF |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4658 | $as_echo "no" >&6; } | |
35fa52c0 | 4659 | fi |
9c60689e | 4660 | |
a243b558 | 4661 | |
a93f15c0 | 4662 | test -n "$OBJCXX" && break |
a243b558 JF |
4663 | done |
4664 | fi | |
a93f15c0 JF |
4665 | if test -z "$OBJCXX"; then |
4666 | ac_ct_OBJCXX=$OBJCXX | |
4667 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4668 | do |
4669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4670 | set dummy $ac_prog; ac_word=$2 | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4672 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4673 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4674 | $as_echo_n "(cached) " >&6 |
4675 | else | |
a93f15c0 JF |
4676 | if test -n "$ac_ct_OBJCXX"; then |
4677 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4678 | else |
4679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4680 | for as_dir in $PATH | |
4681 | do | |
4682 | IFS=$as_save_IFS | |
4683 | test -z "$as_dir" && as_dir=. | |
4684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4686 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4688 | break 2 | |
4689 | fi | |
4690 | done | |
4691 | done | |
4692 | IFS=$as_save_IFS | |
9c60689e | 4693 | |
a243b558 JF |
4694 | fi |
4695 | fi | |
a93f15c0 JF |
4696 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4697 | if test -n "$ac_ct_OBJCXX"; then | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4699 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4700 | else |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4702 | $as_echo "no" >&6; } | |
4703 | fi | |
35fa52c0 | 4704 | |
35fa52c0 | 4705 | |
a93f15c0 | 4706 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4707 | done |
35fa52c0 | 4708 | |
a93f15c0 JF |
4709 | if test "x$ac_ct_OBJCXX" = x; then |
4710 | OBJCXX="g++" | |
a243b558 JF |
4711 | else |
4712 | case $cross_compiling:$ac_tool_warned in | |
4713 | yes:) | |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4715 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4716 | ac_tool_warned=yes ;; | |
4717 | esac | |
a93f15c0 | 4718 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4719 | fi |
4720 | fi | |
ee134472 | 4721 | |
a243b558 | 4722 | # Provide some information about the compiler. |
a93f15c0 | 4723 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4724 | set X $ac_compile |
4725 | ac_compiler=$2 | |
4726 | for ac_option in --version -v -V -qversion; do | |
4727 | { { ac_try="$ac_compiler $ac_option >&5" | |
4728 | case "(($ac_try" in | |
4729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4730 | *) ac_try_echo=$ac_try;; | |
4731 | esac | |
4732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4733 | $as_echo "$ac_try_echo"; } >&5 | |
4734 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4735 | ac_status=$? | |
4736 | if test -s conftest.err; then | |
4737 | sed '10a\ | |
4738 | ... rest of stderr output deleted ... | |
4739 | 10q' conftest.err >conftest.er1 | |
4740 | cat conftest.er1 >&5 | |
4741 | fi | |
4742 | rm -f conftest.er1 conftest.err | |
4743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4744 | test $ac_status = 0; } | |
4745 | done | |
53ba6704 | 4746 | |
a93f15c0 JF |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4748 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4749 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4750 | $as_echo_n "(cached) " >&6 |
4751 | else | |
4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4753 | /* end confdefs.h. */ | |
35fa52c0 | 4754 | |
a243b558 JF |
4755 | int |
4756 | main () | |
4757 | { | |
4758 | #ifndef __GNUC__ | |
4759 | choke me | |
4760 | #endif | |
9c60689e | 4761 | |
a243b558 JF |
4762 | ; |
4763 | return 0; | |
4764 | } | |
4765 | _ACEOF | |
a93f15c0 | 4766 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4767 | ac_compiler_gnu=yes |
35fa52c0 | 4768 | else |
a243b558 | 4769 | ac_compiler_gnu=no |
35fa52c0 | 4770 | fi |
a243b558 | 4771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4772 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4773 | |
a243b558 | 4774 | fi |
a93f15c0 JF |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4776 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4777 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4778 | GOBJCXX=yes |
35fa52c0 | 4779 | else |
a93f15c0 | 4780 | GOBJCXX= |
9c60689e | 4781 | fi |
a93f15c0 JF |
4782 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4783 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4785 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4786 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4787 | $as_echo_n "(cached) " >&6 |
4788 | else | |
a93f15c0 JF |
4789 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4790 | ac_objcxx_werror_flag=yes | |
4791 | ac_cv_prog_objcxx_g=no | |
4792 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4794 | /* end confdefs.h. */ | |
9c60689e | 4795 | |
a243b558 JF |
4796 | int |
4797 | main () | |
4798 | { | |
9c60689e | 4799 | |
a243b558 JF |
4800 | ; |
4801 | return 0; | |
4802 | } | |
4803 | _ACEOF | |
a93f15c0 JF |
4804 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4805 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4806 | else |
a93f15c0 | 4807 | OBJCXXFLAGS="" |
a243b558 JF |
4808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4809 | /* end confdefs.h. */ | |
9c60689e | 4810 | |
a243b558 JF |
4811 | int |
4812 | main () | |
4813 | { | |
9c60689e | 4814 | |
a243b558 JF |
4815 | ; |
4816 | return 0; | |
4817 | } | |
4818 | _ACEOF | |
a93f15c0 | 4819 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4820 | |
a243b558 | 4821 | else |
a93f15c0 JF |
4822 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4823 | OBJCXXFLAGS="-g" | |
a243b558 | 4824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4825 | /* end confdefs.h. */ |
4826 | ||
a243b558 JF |
4827 | int |
4828 | main () | |
4829 | { | |
a93f15c0 | 4830 | |
a243b558 JF |
4831 | ; |
4832 | return 0; | |
4833 | } | |
4834 | _ACEOF | |
a93f15c0 JF |
4835 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4836 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4837 | fi |
a93f15c0 | 4838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4839 | fi |
a93f15c0 JF |
4840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4841 | fi | |
4842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4843 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4844 | fi | |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4846 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4847 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4848 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4849 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4850 | if test "$GOBJCXX" = yes; then | |
4851 | OBJCXXFLAGS="-g -O2" | |
4852 | else | |
4853 | OBJCXXFLAGS="-g" | |
4854 | fi | |
4855 | else | |
4856 | if test "$GOBJCXX" = yes; then | |
4857 | OBJCXXFLAGS="-O2" | |
4858 | else | |
4859 | OBJCXXFLAGS= | |
4860 | fi | |
35fa52c0 | 4861 | fi |
a243b558 JF |
4862 | ac_ext=c |
4863 | ac_cpp='$CPP $CPPFLAGS' | |
4864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4867 | ||
a93f15c0 | 4868 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4869 | |
a243b558 JF |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4871 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4872 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4873 | $as_echo_n "(cached) " >&6 |
4874 | else | |
a243b558 JF |
4875 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4876 | # We make a subdir and do the tests there. Otherwise we can end up | |
4877 | # making bogus files that we don't know about and never remove. For | |
4878 | # instance it was reported that on HP-UX the gcc test will end up | |
4879 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4880 | # in D". | |
4881 | rm -rf conftest.dir | |
4882 | mkdir conftest.dir | |
4883 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4884 | # using a relative directory. | |
4885 | cp "$am_depcomp" conftest.dir | |
4886 | cd conftest.dir | |
4887 | # We will build objects and dependencies in a subdirectory because | |
4888 | # it helps to detect inapplicable dependency modes. For instance | |
4889 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4890 | # side effect of compilation, but ICC will put the dependencies in | |
4891 | # the current directory while Tru64 will put them in the object | |
4892 | # directory. | |
4893 | mkdir sub | |
4894 | ||
a93f15c0 | 4895 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4896 | if test "$am_compiler_list" = ""; then |
4897 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4898 | fi | |
4899 | am__universal=false | |
a93f15c0 | 4900 | |
a243b558 JF |
4901 | |
4902 | for depmode in $am_compiler_list; do | |
4903 | # Setup a source with many dependencies, because some compilers | |
4904 | # like to wrap large dependency lists on column 80 (with \), and | |
4905 | # we should not choose a depcomp mode which is confused by this. | |
4906 | # | |
4907 | # We need to recreate these files for each test, as the compiler may | |
4908 | # overwrite some of them when testing with obscure command lines. | |
4909 | # This happens at least with the AIX C compiler. | |
4910 | : > sub/conftest.c | |
4911 | for i in 1 2 3 4 5 6; do | |
4912 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4913 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4914 | # Solaris 10 /bin/sh. | |
4915 | echo '/* dummy */' > sub/conftst$i.h | |
4916 | done | |
4917 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4918 | ||
4919 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4920 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4921 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4922 | # versions had trouble with output in subdirs. | |
4923 | am__obj=sub/conftest.${OBJEXT-o} | |
4924 | am__minus_obj="-o $am__obj" | |
4925 | case $depmode in | |
4926 | gcc) | |
4927 | # This depmode causes a compiler race in universal mode. | |
4928 | test "$am__universal" = false || continue | |
4929 | ;; | |
4930 | nosideeffect) | |
4931 | # After this tag, mechanisms are not by side-effect, so they'll | |
4932 | # only be used when explicitly requested. | |
4933 | if test "x$enable_dependency_tracking" = xyes; then | |
4934 | continue | |
4935 | else | |
4936 | break | |
4937 | fi | |
4938 | ;; | |
4939 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4940 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4941 | # not run yet. These depmodes are late enough in the game, and | |
4942 | # so weak that their functioning should not be impacted. | |
4943 | am__obj=conftest.${OBJEXT-o} | |
4944 | am__minus_obj= | |
4945 | ;; | |
4946 | none) break ;; | |
4947 | esac | |
4948 | if depmode=$depmode \ | |
4949 | source=sub/conftest.c object=$am__obj \ | |
4950 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4951 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4952 | >/dev/null 2>conftest.err && | |
4953 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4954 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4955 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4956 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4957 | # icc doesn't choke on unknown options, it will just issue warnings | |
4958 | # or remarks (even with -Werror). So we grep stderr for any message | |
4959 | # that says an option was ignored or not supported. | |
4960 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4961 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4962 | # The diagnosis changed in icc 8.0: | |
4963 | # icc: Command line remark: option '-MP' not supported | |
4964 | if (grep 'ignoring option' conftest.err || | |
4965 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4966 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4967 | break |
4968 | fi | |
4969 | fi | |
4970 | done | |
9c60689e | 4971 | |
a243b558 JF |
4972 | cd .. |
4973 | rm -rf conftest.dir | |
4974 | else | |
a93f15c0 | 4975 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 4976 | fi |
a243b558 | 4977 | |
35fa52c0 | 4978 | fi |
a93f15c0 JF |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4980 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4981 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
4982 | |
4983 | if | |
4984 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4985 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
4986 | am__fastdepOBJCXX_TRUE= | |
4987 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 4988 | else |
a93f15c0 JF |
4989 | am__fastdepOBJCXX_TRUE='#' |
4990 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
4991 | fi |
4992 | ||
4993 | ||
4994 | ||
8d20f0f1 JF |
4995 | ac_ext=c |
4996 | ac_cpp='$CPP $CPPFLAGS' | |
4997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5001 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5002 | # On Suns, sometimes $CPP names a directory. | |
5003 | if test -n "$CPP" && test -d "$CPP"; then | |
5004 | CPP= | |
5005 | fi | |
5006 | if test -z "$CPP"; then | |
5007 | if ${ac_cv_prog_CPP+:} false; then : | |
a243b558 JF |
5008 | $as_echo_n "(cached) " >&6 |
5009 | else | |
8d20f0f1 JF |
5010 | # Double quotes because CPP needs to be expanded |
5011 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5012 | do | |
5013 | ac_preproc_ok=false | |
5014 | for ac_c_preproc_warn_flag in '' yes | |
a243b558 | 5015 | do |
8d20f0f1 JF |
5016 | # Use a header file that comes with gcc, so configuring glibc |
5017 | # with a fresh cross-compiler works. | |
5018 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5019 | # <limits.h> exists even on freestanding compilers. | |
5020 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5021 | # not just through cpp. "Syntax error" is here to catch this case. | |
5022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5023 | /* end confdefs.h. */ | |
5024 | #ifdef __STDC__ | |
5025 | # include <limits.h> | |
5026 | #else | |
5027 | # include <assert.h> | |
5028 | #endif | |
5029 | Syntax error | |
5030 | _ACEOF | |
5031 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a243b558 | 5032 | |
35fa52c0 | 5033 | else |
8d20f0f1 JF |
5034 | # Broken: fails on valid input. |
5035 | continue | |
35fa52c0 | 5036 | fi |
8d20f0f1 | 5037 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 5038 | |
8d20f0f1 JF |
5039 | # OK, works on sane cases. Now check whether nonexistent headers |
5040 | # can be detected and how. | |
5041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5042 | /* end confdefs.h. */ | |
5043 | #include <ac_nonexistent.h> | |
5044 | _ACEOF | |
5045 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5046 | # Broken: success on invalid input. | |
5047 | continue | |
5048 | else | |
5049 | # Passes both tests. | |
5050 | ac_preproc_ok=: | |
5051 | break | |
5052 | fi | |
5053 | rm -f conftest.err conftest.i conftest.$ac_ext | |
a243b558 | 5054 | |
8d20f0f1 JF |
5055 | done |
5056 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5057 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5058 | if $ac_preproc_ok; then : | |
5059 | break | |
5060 | fi | |
5061 | ||
5062 | done | |
5063 | ac_cv_prog_CPP=$CPP | |
5064 | ||
5065 | fi | |
5066 | CPP=$ac_cv_prog_CPP | |
5067 | else | |
5068 | ac_cv_prog_CPP=$CPP | |
5069 | fi | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5071 | $as_echo "$CPP" >&6; } | |
5072 | ac_preproc_ok=false | |
5073 | for ac_c_preproc_warn_flag in '' yes | |
5074 | do | |
5075 | # Use a header file that comes with gcc, so configuring glibc | |
5076 | # with a fresh cross-compiler works. | |
5077 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5078 | # <limits.h> exists even on freestanding compilers. | |
5079 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5080 | # not just through cpp. "Syntax error" is here to catch this case. | |
5081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5082 | /* end confdefs.h. */ | |
5083 | #ifdef __STDC__ | |
5084 | # include <limits.h> | |
5085 | #else | |
5086 | # include <assert.h> | |
5087 | #endif | |
5088 | Syntax error | |
5089 | _ACEOF | |
5090 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5091 | ||
5092 | else | |
5093 | # Broken: fails on valid input. | |
5094 | continue | |
5095 | fi | |
5096 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5097 | ||
5098 | # OK, works on sane cases. Now check whether nonexistent headers | |
5099 | # can be detected and how. | |
5100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5101 | /* end confdefs.h. */ | |
5102 | #include <ac_nonexistent.h> | |
5103 | _ACEOF | |
5104 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5105 | # Broken: success on invalid input. | |
5106 | continue | |
5107 | else | |
5108 | # Passes both tests. | |
5109 | ac_preproc_ok=: | |
5110 | break | |
5111 | fi | |
5112 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5113 | ||
5114 | done | |
5115 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5116 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5117 | if $ac_preproc_ok; then : | |
5118 | ||
5119 | else | |
5120 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5122 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5123 | See \`config.log' for more details" "$LINENO" 5; } | |
5124 | fi | |
5125 | ||
5126 | ac_ext=c | |
5127 | ac_cpp='$CPP $CPPFLAGS' | |
5128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5131 | ||
5132 | ||
5133 | # Make sure we can run config.sub. | |
5134 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5135 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5136 | ||
5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5138 | $as_echo_n "checking build system type... " >&6; } | |
5139 | if ${ac_cv_build+:} false; then : | |
5140 | $as_echo_n "(cached) " >&6 | |
5141 | else | |
5142 | ac_build_alias=$build_alias | |
5143 | test "x$ac_build_alias" = x && | |
5144 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5145 | test "x$ac_build_alias" = x && | |
5146 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5147 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5148 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5149 | ||
5150 | fi | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5152 | $as_echo "$ac_cv_build" >&6; } | |
5153 | case $ac_cv_build in | |
5154 | *-*-*) ;; | |
5155 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5156 | esac | |
5157 | build=$ac_cv_build | |
5158 | ac_save_IFS=$IFS; IFS='-' | |
5159 | set x $ac_cv_build | |
5160 | shift | |
5161 | build_cpu=$1 | |
5162 | build_vendor=$2 | |
5163 | shift; shift | |
5164 | # Remember, the first character of IFS is used to create $*, | |
5165 | # except with old shells: | |
5166 | build_os=$* | |
5167 | IFS=$ac_save_IFS | |
5168 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5169 | ||
5170 | ||
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5172 | $as_echo_n "checking host system type... " >&6; } | |
5173 | if ${ac_cv_host+:} false; then : | |
5174 | $as_echo_n "(cached) " >&6 | |
5175 | else | |
5176 | if test "x$host_alias" = x; then | |
5177 | ac_cv_host=$ac_cv_build | |
5178 | else | |
5179 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5180 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5181 | fi | |
5182 | ||
5183 | fi | |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5185 | $as_echo "$ac_cv_host" >&6; } | |
5186 | case $ac_cv_host in | |
5187 | *-*-*) ;; | |
5188 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5189 | esac | |
5190 | host=$ac_cv_host | |
5191 | ac_save_IFS=$IFS; IFS='-' | |
5192 | set x $ac_cv_host | |
5193 | shift | |
5194 | host_cpu=$1 | |
5195 | host_vendor=$2 | |
5196 | shift; shift | |
5197 | # Remember, the first character of IFS is used to create $*, | |
5198 | # except with old shells: | |
5199 | host_os=$* | |
5200 | IFS=$ac_save_IFS | |
5201 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | save_cross_compiling=$cross_compiling | |
5207 | save_ac_tool_prefix=$ac_tool_prefix | |
5208 | cross_compiling=no | |
5209 | ac_tool_prefix= | |
5210 | ||
5211 | ac_ext=c | |
5212 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5213 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5214 | 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' | |
5215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5216 | if test -n "$ac_tool_prefix"; then | |
5217 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5218 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5220 | $as_echo_n "checking for $ac_word... " >&6; } | |
5221 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5222 | $as_echo_n "(cached) " >&6 | |
5223 | else | |
5224 | if test -n "$CC_FOR_BUILD"; then | |
5225 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5226 | else | |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
5232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5234 | ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc" | |
5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5236 | break 2 | |
5237 | fi | |
5238 | done | |
5239 | done | |
5240 | IFS=$as_save_IFS | |
5241 | ||
5242 | fi | |
5243 | fi | |
5244 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5245 | if test -n "$CC_FOR_BUILD"; then | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5247 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5248 | else | |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5250 | $as_echo "no" >&6; } | |
5251 | fi | |
5252 | ||
5253 | ||
5254 | fi | |
5255 | if test -z "$ac_cv_prog_CC_FOR_BUILD"; then | |
5256 | ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD | |
5257 | # Extract the first word of "gcc", so it can be a program name with args. | |
5258 | set dummy gcc; ac_word=$2 | |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5260 | $as_echo_n "checking for $ac_word... " >&6; } | |
5261 | if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
5263 | else | |
5264 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5265 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. | |
5266 | else | |
5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5268 | for as_dir in $PATH | |
5269 | do | |
5270 | IFS=$as_save_IFS | |
5271 | test -z "$as_dir" && as_dir=. | |
5272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5274 | ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" | |
5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5276 | break 2 | |
5277 | fi | |
5278 | done | |
5279 | done | |
5280 | IFS=$as_save_IFS | |
5281 | ||
5282 | fi | |
5283 | fi | |
5284 | ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD | |
5285 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 | |
5287 | $as_echo "$ac_ct_CC_FOR_BUILD" >&6; } | |
5288 | else | |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5290 | $as_echo "no" >&6; } | |
5291 | fi | |
5292 | ||
5293 | if test "x$ac_ct_CC_FOR_BUILD" = x; then | |
5294 | CC_FOR_BUILD="" | |
5295 | else | |
5296 | case $cross_compiling:$ac_tool_warned in | |
5297 | yes:) | |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
5299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
5300 | ac_tool_warned=yes ;; | |
5301 | esac | |
5302 | CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD | |
5303 | fi | |
5304 | else | |
5305 | CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" | |
5306 | fi | |
5307 | ||
5308 | if test -z "$CC_FOR_BUILD"; then | |
5309 | if test -n "$ac_tool_prefix"; then | |
5310 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5311 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5313 | $as_echo_n "checking for $ac_word... " >&6; } | |
5314 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5315 | $as_echo_n "(cached) " >&6 | |
5316 | else | |
5317 | if test -n "$CC_FOR_BUILD"; then | |
5318 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5319 | else | |
5320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5321 | for as_dir in $PATH | |
5322 | do | |
5323 | IFS=$as_save_IFS | |
5324 | test -z "$as_dir" && as_dir=. | |
5325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5327 | ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc" | |
5328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5329 | break 2 | |
5330 | fi | |
5331 | done | |
5332 | done | |
5333 | IFS=$as_save_IFS | |
5334 | ||
5335 | fi | |
5336 | fi | |
5337 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5338 | if test -n "$CC_FOR_BUILD"; then | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5340 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5341 | else | |
5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5343 | $as_echo "no" >&6; } | |
5344 | fi | |
5345 | ||
5346 | ||
5347 | fi | |
5348 | fi | |
5349 | if test -z "$CC_FOR_BUILD"; then | |
5350 | # Extract the first word of "cc", so it can be a program name with args. | |
5351 | set dummy cc; ac_word=$2 | |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5353 | $as_echo_n "checking for $ac_word... " >&6; } | |
5354 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5355 | $as_echo_n "(cached) " >&6 | |
5356 | else | |
5357 | if test -n "$CC_FOR_BUILD"; then | |
5358 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5359 | else | |
5360 | ac_prog_rejected=no | |
5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5362 | for as_dir in $PATH | |
5363 | do | |
5364 | IFS=$as_save_IFS | |
5365 | test -z "$as_dir" && as_dir=. | |
5366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5368 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5369 | ac_prog_rejected=yes | |
5370 | continue | |
5371 | fi | |
5372 | ac_cv_prog_CC_FOR_BUILD="cc" | |
5373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5374 | break 2 | |
5375 | fi | |
5376 | done | |
5377 | done | |
5378 | IFS=$as_save_IFS | |
5379 | ||
5380 | if test $ac_prog_rejected = yes; then | |
5381 | # We found a bogon in the path, so make sure we never use it. | |
5382 | set dummy $ac_cv_prog_CC_FOR_BUILD | |
5383 | shift | |
5384 | if test $# != 0; then | |
5385 | # We chose a different compiler from the bogus one. | |
5386 | # However, it has the same basename, so the bogon will be chosen | |
5387 | # first if we set CC_FOR_BUILD to just the basename; use the full file name. | |
5388 | shift | |
5389 | ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" | |
5390 | fi | |
5391 | fi | |
5392 | fi | |
5393 | fi | |
5394 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5395 | if test -n "$CC_FOR_BUILD"; then | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5397 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5398 | else | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5400 | $as_echo "no" >&6; } | |
5401 | fi | |
5402 | ||
5403 | ||
5404 | fi | |
5405 | if test -z "$CC_FOR_BUILD"; then | |
5406 | if test -n "$ac_tool_prefix"; then | |
5407 | for ac_prog in cl.exe | |
5408 | do | |
5409 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5410 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5412 | $as_echo_n "checking for $ac_word... " >&6; } | |
5413 | if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : | |
5414 | $as_echo_n "(cached) " >&6 | |
5415 | else | |
5416 | if test -n "$CC_FOR_BUILD"; then | |
5417 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. | |
5418 | else | |
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5420 | for as_dir in $PATH | |
5421 | do | |
5422 | IFS=$as_save_IFS | |
5423 | test -z "$as_dir" && as_dir=. | |
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5426 | ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog" | |
5427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5428 | break 2 | |
5429 | fi | |
5430 | done | |
5431 | done | |
5432 | IFS=$as_save_IFS | |
5433 | ||
5434 | fi | |
5435 | fi | |
5436 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD | |
5437 | if test -n "$CC_FOR_BUILD"; then | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 | |
5439 | $as_echo "$CC_FOR_BUILD" >&6; } | |
5440 | else | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5442 | $as_echo "no" >&6; } | |
5443 | fi | |
5444 | ||
5445 | ||
5446 | test -n "$CC_FOR_BUILD" && break | |
5447 | done | |
5448 | fi | |
5449 | if test -z "$CC_FOR_BUILD"; then | |
5450 | ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD | |
5451 | for ac_prog in cl.exe | |
5452 | do | |
5453 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5454 | set dummy $ac_prog; ac_word=$2 | |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5456 | $as_echo_n "checking for $ac_word... " >&6; } | |
5457 | if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : | |
5458 | $as_echo_n "(cached) " >&6 | |
5459 | else | |
5460 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5461 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. | |
5462 | else | |
5463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5464 | for as_dir in $PATH | |
5465 | do | |
5466 | IFS=$as_save_IFS | |
5467 | test -z "$as_dir" && as_dir=. | |
5468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5470 | ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" | |
5471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5472 | break 2 | |
5473 | fi | |
5474 | done | |
5475 | done | |
5476 | IFS=$as_save_IFS | |
5477 | ||
5478 | fi | |
5479 | fi | |
5480 | ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD | |
5481 | if test -n "$ac_ct_CC_FOR_BUILD"; then | |
5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 | |
5483 | $as_echo "$ac_ct_CC_FOR_BUILD" >&6; } | |
5484 | else | |
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5486 | $as_echo "no" >&6; } | |
5487 | fi | |
5488 | ||
5489 | ||
5490 | test -n "$ac_ct_CC_FOR_BUILD" && break | |
5491 | done | |
5492 | ||
5493 | if test "x$ac_ct_CC_FOR_BUILD" = x; then | |
5494 | CC_FOR_BUILD="" | |
5495 | else | |
5496 | case $cross_compiling:$ac_tool_warned in | |
5497 | yes:) | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
5499 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
5500 | ac_tool_warned=yes ;; | |
5501 | esac | |
5502 | CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD | |
5503 | fi | |
5504 | fi | |
5505 | ||
5506 | fi | |
5507 | ||
5508 | ||
5509 | test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5511 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
5512 | See \`config.log' for more details" "$LINENO" 5; } | |
5513 | ||
5514 | # Provide some information about the compiler. | |
5515 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5516 | set X $ac_build_compile | |
5517 | ac_compiler=$2 | |
5518 | for ac_option in --version -v -V -qversion; do | |
5519 | { { ac_try="$ac_compiler $ac_option >&5" | |
5520 | case "(($ac_try" in | |
5521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5522 | *) ac_try_echo=$ac_try;; | |
5523 | esac | |
5524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5525 | $as_echo "$ac_try_echo"; } >&5 | |
5526 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5527 | ac_status=$? | |
5528 | if test -s conftest.err; then | |
5529 | sed '10a\ | |
5530 | ... rest of stderr output deleted ... | |
5531 | 10q' conftest.err >conftest.er1 | |
5532 | cat conftest.er1 >&5 | |
5533 | fi | |
5534 | rm -f conftest.er1 conftest.err | |
5535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5536 | test $ac_status = 0; } | |
5537 | done | |
5538 | ||
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5540 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5541 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
5542 | $as_echo_n "(cached) " >&6 | |
5543 | else | |
5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5545 | /* end confdefs.h. */ | |
5546 | ||
5547 | int | |
5548 | main () | |
5549 | { | |
5550 | #ifndef __GNUC__ | |
5551 | choke me | |
5552 | #endif | |
5553 | ||
5554 | ; | |
5555 | return 0; | |
5556 | } | |
5557 | _ACEOF | |
5558 | if ac_fn_c_try_compile "$LINENO"; then : | |
5559 | ac_compiler_gnu=yes | |
5560 | else | |
5561 | ac_compiler_gnu=no | |
5562 | fi | |
5563 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5564 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5565 | ||
5566 | fi | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5568 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5569 | if test $ac_compiler_gnu = yes; then | |
5570 | GCC=yes | |
5571 | else | |
5572 | GCC= | |
5573 | fi | |
5574 | ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} | |
5575 | ac_save_CFLAGS=$CFLAGS_FOR_BUILD | |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 | |
5577 | $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } | |
5578 | if ${ac_cv_build_prog_cc_g+:} false; then : | |
5579 | $as_echo_n "(cached) " >&6 | |
5580 | else | |
5581 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5582 | ac_c_werror_flag=yes | |
5583 | ac_cv_build_prog_cc_g=no | |
5584 | CFLAGS_FOR_BUILD="-g" | |
5585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5586 | /* end confdefs.h. */ | |
5587 | ||
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | ||
5592 | ; | |
5593 | return 0; | |
5594 | } | |
5595 | _ACEOF | |
5596 | if ac_fn_c_try_compile "$LINENO"; then : | |
5597 | ac_cv_build_prog_cc_g=yes | |
5598 | else | |
5599 | CFLAGS_FOR_BUILD="" | |
5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5601 | /* end confdefs.h. */ | |
5602 | ||
5603 | int | |
5604 | main () | |
5605 | { | |
5606 | ||
5607 | ; | |
5608 | return 0; | |
5609 | } | |
5610 | _ACEOF | |
5611 | if ac_fn_c_try_compile "$LINENO"; then : | |
5612 | ||
5613 | else | |
5614 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5615 | CFLAGS_FOR_BUILD="-g" | |
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5617 | /* end confdefs.h. */ | |
5618 | ||
5619 | int | |
5620 | main () | |
5621 | { | |
5622 | ||
5623 | ; | |
5624 | return 0; | |
5625 | } | |
5626 | _ACEOF | |
5627 | if ac_fn_c_try_compile "$LINENO"; then : | |
5628 | ac_cv_build_prog_cc_g=yes | |
5629 | fi | |
5630 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5631 | fi | |
5632 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5633 | fi | |
5634 | rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext | |
5635 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5636 | fi | |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 | |
5638 | $as_echo "$ac_cv_build_prog_cc_g" >&6; } | |
5639 | if test "$ac_test_CFLAGS" = set; then | |
5640 | CFLAGS_FOR_BUILD=$ac_save_CFLAGS | |
5641 | elif test $ac_cv_build_prog_cc_g = yes; then | |
5642 | if test "$GCC" = yes; then | |
5643 | CFLAGS_FOR_BUILD="-g -O2" | |
5644 | else | |
5645 | CFLAGS_FOR_BUILD="-g" | |
5646 | fi | |
5647 | else | |
5648 | if test "$GCC" = yes; then | |
5649 | CFLAGS_FOR_BUILD="-O2" | |
5650 | else | |
5651 | CFLAGS_FOR_BUILD= | |
5652 | fi | |
5653 | fi | |
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 | |
5655 | $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } | |
5656 | if ${ac_cv_prog_cc_c89+:} false; then : | |
5657 | $as_echo_n "(cached) " >&6 | |
5658 | else | |
5659 | ac_cv_prog_cc_c89=no | |
5660 | ac_save_CC=$CC_FOR_BUILD | |
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5662 | /* end confdefs.h. */ | |
5663 | #include <stdarg.h> | |
5664 | #include <stdio.h> | |
5665 | struct stat; | |
5666 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5667 | struct buf { int x; }; | |
5668 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5669 | static char *e (p, i) | |
5670 | char **p; | |
5671 | int i; | |
5672 | { | |
5673 | return p[i]; | |
5674 | } | |
5675 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5676 | { | |
5677 | char *s; | |
5678 | va_list v; | |
5679 | va_start (v,p); | |
5680 | s = g (p, va_arg (v,int)); | |
5681 | va_end (v); | |
5682 | return s; | |
5683 | } | |
5684 | ||
5685 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5686 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5687 | These don't provoke an error unfortunately, instead are silently treated | |
5688 | as 'x'. The following induces an error, until -std is added to get | |
5689 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5690 | array size at least. It's necessary to write '\x00'==0 to get something | |
5691 | that's true only with -std. */ | |
5692 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5693 | ||
5694 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5695 | inside strings and character constants. */ | |
5696 | #define FOO(x) 'x' | |
5697 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5698 | ||
5699 | int test (int i, double x); | |
5700 | struct s1 {int (*f) (int a);}; | |
5701 | struct s2 {int (*f) (double a);}; | |
5702 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5703 | int argc; | |
5704 | char **argv; | |
5705 | int | |
5706 | main () | |
5707 | { | |
5708 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5709 | ; | |
5710 | return 0; | |
5711 | } | |
5712 | _ACEOF | |
5713 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5714 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5715 | do | |
5716 | CC_FOR_BUILD="$ac_save_CC $ac_arg" | |
5717 | if ac_fn_c_try_compile "$LINENO"; then : | |
5718 | ac_cv_prog_cc_c89=$ac_arg | |
5719 | fi | |
5720 | rm -f core conftest.err conftest.$ac_build_objext | |
5721 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5722 | done | |
5723 | rm -f conftest.$ac_ext | |
5724 | CC_FOR_BUILD=$ac_save_CC | |
5725 | ||
5726 | fi | |
5727 | # AC_CACHE_VAL | |
5728 | case "x$ac_cv_prog_cc_c89" in | |
5729 | x) | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5731 | $as_echo "none needed" >&6; } ;; | |
5732 | xno) | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5734 | $as_echo "unsupported" >&6; } ;; | |
5735 | *) | |
5736 | CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89" | |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5738 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5739 | esac | |
5740 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5741 | ||
5742 | fi | |
5743 | ||
5744 | ac_ext=c | |
5745 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5746 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5747 | 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' | |
5748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5749 | ||
5750 | ac_ext=c | |
5751 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5752 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5753 | 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' | |
5754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 | |
5756 | $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } | |
5757 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5758 | $as_echo_n "(cached) " >&6 | |
5759 | else | |
5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5761 | /* end confdefs.h. */ | |
5762 | ||
5763 | int | |
5764 | main () | |
5765 | { | |
5766 | ||
5767 | ; | |
5768 | return 0; | |
5769 | } | |
5770 | _ACEOF | |
5771 | # Make sure it works both with $CC and with simple cc. | |
5772 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5773 | # compilers refuse to overwrite an existing .o file with -o, | |
5774 | # though they will create one. | |
5775 | am_cv_prog_cc_c_o=yes | |
5776 | for am_i in 1 2; do | |
5777 | if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 | |
5778 | ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 | |
5779 | ac_status=$? | |
5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5781 | (exit $ac_status); } \ | |
5782 | && test -f conftest2.$ac_build_objext; then | |
5783 | : OK | |
5784 | else | |
5785 | am_cv_prog_cc_c_o=no | |
5786 | break | |
5787 | fi | |
5788 | done | |
5789 | rm -f core conftest* | |
5790 | unset am_i | |
5791 | fi | |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5793 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5794 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5795 | # Losing compiler, so override with the script. | |
5796 | # FIXME: It is wrong to rewrite CC. | |
5797 | # But if we don't then we get into trouble of one sort or another. | |
5798 | # A longer-term fix would be to have automake use am__CC in this case, | |
5799 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5800 | CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" | |
5801 | fi | |
5802 | ac_ext=c | |
5803 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5804 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5805 | 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' | |
5806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5807 | ||
5808 | ||
5809 | depcc="$CC_FOR_BUILD" am_compiler_list= | |
5810 | ||
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5812 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5813 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
5814 | $as_echo_n "(cached) " >&6 | |
5815 | else | |
5816 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5817 | # We make a subdir and do the tests there. Otherwise we can end up | |
5818 | # making bogus files that we don't know about and never remove. For | |
5819 | # instance it was reported that on HP-UX the gcc test will end up | |
5820 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
5821 | # in D". | |
5822 | rm -rf conftest.dir | |
5823 | mkdir conftest.dir | |
5824 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5825 | # using a relative directory. | |
5826 | cp "$am_depcomp" conftest.dir | |
5827 | cd conftest.dir | |
5828 | # We will build objects and dependencies in a subdirectory because | |
5829 | # it helps to detect inapplicable dependency modes. For instance | |
5830 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5831 | # side effect of compilation, but ICC will put the dependencies in | |
5832 | # the current directory while Tru64 will put them in the object | |
5833 | # directory. | |
5834 | mkdir sub | |
5835 | ||
5836 | am_cv_CC_dependencies_compiler_type=none | |
5837 | if test "$am_compiler_list" = ""; then | |
5838 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5839 | fi | |
5840 | am__universal=false | |
5841 | case " $depcc " in #( | |
5842 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5843 | esac | |
5844 | ||
5845 | for depmode in $am_compiler_list; do | |
5846 | # Setup a source with many dependencies, because some compilers | |
5847 | # like to wrap large dependency lists on column 80 (with \), and | |
5848 | # we should not choose a depcomp mode which is confused by this. | |
5849 | # | |
5850 | # We need to recreate these files for each test, as the compiler may | |
5851 | # overwrite some of them when testing with obscure command lines. | |
5852 | # This happens at least with the AIX C compiler. | |
5853 | : > sub/conftest.c | |
5854 | for i in 1 2 3 4 5 6; do | |
5855 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5856 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
5857 | # Solaris 10 /bin/sh. | |
5858 | echo '/* dummy */' > sub/conftst$i.h | |
5859 | done | |
5860 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5861 | ||
5862 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
5863 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5864 | # handle '-M -o', and we need to detect this. Also, some Intel | |
5865 | # versions had trouble with output in subdirs. | |
5866 | am__obj=sub/conftest.${OBJEXT-o} | |
5867 | am__minus_obj="-o $am__obj" | |
5868 | case $depmode in | |
5869 | gcc) | |
5870 | # This depmode causes a compiler race in universal mode. | |
5871 | test "$am__universal" = false || continue | |
5872 | ;; | |
5873 | nosideeffect) | |
5874 | # After this tag, mechanisms are not by side-effect, so they'll | |
5875 | # only be used when explicitly requested. | |
5876 | if test "x$enable_dependency_tracking" = xyes; then | |
5877 | continue | |
5878 | else | |
5879 | break | |
5880 | fi | |
5881 | ;; | |
5882 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5883 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5884 | # not run yet. These depmodes are late enough in the game, and | |
5885 | # so weak that their functioning should not be impacted. | |
5886 | am__obj=conftest.${OBJEXT-o} | |
5887 | am__minus_obj= | |
5888 | ;; | |
5889 | none) break ;; | |
5890 | esac | |
5891 | if depmode=$depmode \ | |
5892 | source=sub/conftest.c object=$am__obj \ | |
5893 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5894 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5895 | >/dev/null 2>conftest.err && | |
5896 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5897 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5898 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5899 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5900 | # icc doesn't choke on unknown options, it will just issue warnings | |
5901 | # or remarks (even with -Werror). So we grep stderr for any message | |
5902 | # that says an option was ignored or not supported. | |
5903 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5904 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5905 | # The diagnosis changed in icc 8.0: | |
5906 | # icc: Command line remark: option '-MP' not supported | |
5907 | if (grep 'ignoring option' conftest.err || | |
5908 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5909 | am_cv_CC_dependencies_compiler_type=$depmode | |
5910 | break | |
5911 | fi | |
5912 | fi | |
5913 | done | |
5914 | ||
5915 | cd .. | |
5916 | rm -rf conftest.dir | |
5917 | else | |
5918 | am_cv_CC_dependencies_compiler_type=none | |
5919 | fi | |
5920 | ||
5921 | fi | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5923 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5924 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5925 | ||
5926 | if | |
5927 | test "x$enable_dependency_tracking" != xno \ | |
5928 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5929 | am__fastdepCC_TRUE= | |
5930 | am__fastdepCC_FALSE='#' | |
5931 | else | |
5932 | am__fastdepCC_TRUE='#' | |
5933 | am__fastdepCC_FALSE= | |
5934 | fi | |
5935 | ||
5936 | ||
5937 | ac_ext=c | |
5938 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
5939 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
5940 | 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' | |
5941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5943 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5944 | # On Suns, sometimes $CPP names a directory. | |
5945 | if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then | |
5946 | CPP_FOR_BUILD= | |
5947 | fi | |
5948 | if test -z "$CPP_FOR_BUILD"; then | |
5949 | if ${ac_cv_build_prog_CPP+:} false; then : | |
5950 | $as_echo_n "(cached) " >&6 | |
5951 | else | |
5952 | # Double quotes because CPP needs to be expanded | |
5953 | for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" | |
5954 | do | |
5955 | ac_preproc_ok=false | |
5956 | for ac_c_preproc_warn_flag in '' yes | |
5957 | do | |
5958 | # Use a header file that comes with gcc, so configuring glibc | |
5959 | # with a fresh cross-compiler works. | |
5960 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5961 | # <limits.h> exists even on freestanding compilers. | |
5962 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5963 | # not just through cpp. "Syntax error" is here to catch this case. | |
5964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5965 | /* end confdefs.h. */ | |
5966 | #ifdef __STDC__ | |
5967 | # include <limits.h> | |
5968 | #else | |
5969 | # include <assert.h> | |
5970 | #endif | |
5971 | Syntax error | |
5972 | _ACEOF | |
5973 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5974 | ||
5975 | else | |
5976 | # Broken: fails on valid input. | |
5977 | continue | |
5978 | fi | |
5979 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5980 | ||
5981 | # OK, works on sane cases. Now check whether nonexistent headers | |
5982 | # can be detected and how. | |
5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5984 | /* end confdefs.h. */ | |
5985 | #include <ac_nonexistent.h> | |
5986 | _ACEOF | |
5987 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5988 | # Broken: success on invalid input. | |
5989 | continue | |
5990 | else | |
5991 | # Passes both tests. | |
5992 | ac_preproc_ok=: | |
5993 | break | |
5994 | fi | |
5995 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5996 | ||
5997 | done | |
5998 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5999 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6000 | if $ac_preproc_ok; then : | |
6001 | break | |
6002 | fi | |
6003 | ||
6004 | done | |
6005 | ac_cv_build_prog_CPP=$CPP_FOR_BUILD | |
6006 | ||
6007 | fi | |
6008 | CPP_FOR_BUILD=$ac_cv_build_prog_CPP | |
6009 | else | |
6010 | ac_cv_build_prog_CPP=$CPP_FOR_BUILD | |
6011 | fi | |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 | |
6013 | $as_echo "$CPP_FOR_BUILD" >&6; } | |
6014 | ac_preproc_ok=false | |
6015 | for ac_c_preproc_warn_flag in '' yes | |
6016 | do | |
6017 | # Use a header file that comes with gcc, so configuring glibc | |
6018 | # with a fresh cross-compiler works. | |
6019 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6020 | # <limits.h> exists even on freestanding compilers. | |
6021 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6022 | # not just through cpp. "Syntax error" is here to catch this case. | |
6023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6024 | /* end confdefs.h. */ | |
6025 | #ifdef __STDC__ | |
6026 | # include <limits.h> | |
6027 | #else | |
6028 | # include <assert.h> | |
6029 | #endif | |
6030 | Syntax error | |
6031 | _ACEOF | |
6032 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6033 | ||
6034 | else | |
6035 | # Broken: fails on valid input. | |
6036 | continue | |
6037 | fi | |
6038 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6039 | ||
6040 | # OK, works on sane cases. Now check whether nonexistent headers | |
6041 | # can be detected and how. | |
6042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6043 | /* end confdefs.h. */ | |
6044 | #include <ac_nonexistent.h> | |
6045 | _ACEOF | |
6046 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6047 | # Broken: success on invalid input. | |
6048 | continue | |
6049 | else | |
6050 | # Passes both tests. | |
6051 | ac_preproc_ok=: | |
6052 | break | |
6053 | fi | |
6054 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6055 | ||
6056 | done | |
6057 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6058 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6059 | if $ac_preproc_ok; then : | |
6060 | ||
6061 | else | |
6062 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6063 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6064 | as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check | |
6065 | See \`config.log' for more details" "$LINENO" 5; } | |
6066 | fi | |
6067 | ||
6068 | ac_ext=c | |
6069 | ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6070 | ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6071 | 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' | |
6072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6073 | ||
6074 | ||
6075 | ||
6076 | ac_tool_prefix=$save_ac_tool_prefix | |
6077 | cross_compiling=$save_cross_compiling | |
6078 | ||
6079 | ||
6080 | BUILD_EXEEXT=$ac_build_exeext | |
6081 | BUILD_OBJEXT=$ac_build_objext | |
6082 | ||
6083 | ac_ext=cpp | |
6084 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6085 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6086 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6087 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6089 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6090 | if test -z "$CXXCPP"; then | |
6091 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
6092 | $as_echo_n "(cached) " >&6 | |
6093 | else | |
6094 | # Double quotes because CXXCPP needs to be expanded | |
6095 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6096 | do | |
6097 | ac_preproc_ok=false | |
6098 | for ac_cxx_preproc_warn_flag in '' yes | |
6099 | do | |
6100 | # Use a header file that comes with gcc, so configuring glibc | |
6101 | # with a fresh cross-compiler works. | |
6102 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6103 | # <limits.h> exists even on freestanding compilers. | |
6104 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6105 | # not just through cpp. "Syntax error" is here to catch this case. | |
6106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6107 | /* end confdefs.h. */ | |
6108 | #ifdef __STDC__ | |
6109 | # include <limits.h> | |
6110 | #else | |
6111 | # include <assert.h> | |
6112 | #endif | |
6113 | Syntax error | |
6114 | _ACEOF | |
6115 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6116 | ||
6117 | else | |
6118 | # Broken: fails on valid input. | |
6119 | continue | |
6120 | fi | |
6121 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6122 | ||
6123 | # OK, works on sane cases. Now check whether nonexistent headers | |
6124 | # can be detected and how. | |
6125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6126 | /* end confdefs.h. */ | |
6127 | #include <ac_nonexistent.h> | |
6128 | _ACEOF | |
6129 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6130 | # Broken: success on invalid input. | |
6131 | continue | |
6132 | else | |
6133 | # Passes both tests. | |
6134 | ac_preproc_ok=: | |
6135 | break | |
6136 | fi | |
6137 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6138 | ||
6139 | done | |
6140 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6141 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6142 | if $ac_preproc_ok; then : | |
6143 | break | |
6144 | fi | |
6145 | ||
6146 | done | |
6147 | ac_cv_prog_CXXCPP=$CXXCPP | |
6148 | ||
6149 | fi | |
6150 | CXXCPP=$ac_cv_prog_CXXCPP | |
6151 | else | |
6152 | ac_cv_prog_CXXCPP=$CXXCPP | |
6153 | fi | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
6155 | $as_echo "$CXXCPP" >&6; } | |
6156 | ac_preproc_ok=false | |
6157 | for ac_cxx_preproc_warn_flag in '' yes | |
6158 | do | |
6159 | # Use a header file that comes with gcc, so configuring glibc | |
6160 | # with a fresh cross-compiler works. | |
6161 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6162 | # <limits.h> exists even on freestanding compilers. | |
6163 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6164 | # not just through cpp. "Syntax error" is here to catch this case. | |
6165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6166 | /* end confdefs.h. */ | |
6167 | #ifdef __STDC__ | |
6168 | # include <limits.h> | |
6169 | #else | |
6170 | # include <assert.h> | |
6171 | #endif | |
6172 | Syntax error | |
6173 | _ACEOF | |
6174 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6175 | ||
6176 | else | |
6177 | # Broken: fails on valid input. | |
6178 | continue | |
6179 | fi | |
6180 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6181 | ||
6182 | # OK, works on sane cases. Now check whether nonexistent headers | |
6183 | # can be detected and how. | |
6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6185 | /* end confdefs.h. */ | |
6186 | #include <ac_nonexistent.h> | |
6187 | _ACEOF | |
6188 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6189 | # Broken: success on invalid input. | |
6190 | continue | |
6191 | else | |
6192 | # Passes both tests. | |
6193 | ac_preproc_ok=: | |
6194 | break | |
6195 | fi | |
6196 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6197 | ||
6198 | done | |
6199 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6200 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6201 | if $ac_preproc_ok; then : | |
6202 | ||
6203 | else | |
6204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6206 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
6207 | See \`config.log' for more details" "$LINENO" 5; } | |
6208 | fi | |
6209 | ||
6210 | ac_ext=c | |
6211 | ac_cpp='$CPP $CPPFLAGS' | |
6212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6215 | ||
6216 | ||
6217 | ||
6218 | save_cross_compiling=$cross_compiling | |
6219 | save_ac_tool_prefix=$ac_tool_prefix | |
6220 | cross_compiling=no | |
6221 | ac_tool_prefix= | |
6222 | ||
6223 | ac_ext=cpp | |
6224 | ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6225 | ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6226 | ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6227 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6228 | if test -z "$CXX_FOR_BUILD"; then | |
6229 | if test -n "$CCC"; then | |
6230 | CXX_FOR_BUILD=$CCC | |
6231 | else | |
6232 | if test -n "$ac_tool_prefix"; then | |
6233 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6234 | do | |
6235 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6236 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6238 | $as_echo_n "checking for $ac_word... " >&6; } | |
6239 | if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then : | |
6240 | $as_echo_n "(cached) " >&6 | |
6241 | else | |
6242 | if test -n "$CXX_FOR_BUILD"; then | |
6243 | ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test. | |
6244 | else | |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6246 | for as_dir in $PATH | |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6252 | ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog" | |
6253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6254 | break 2 | |
6255 | fi | |
6256 | done | |
6257 | done | |
6258 | IFS=$as_save_IFS | |
6259 | ||
6260 | fi | |
6261 | fi | |
6262 | CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD | |
6263 | if test -n "$CXX_FOR_BUILD"; then | |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5 | |
6265 | $as_echo "$CXX_FOR_BUILD" >&6; } | |
6266 | else | |
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6268 | $as_echo "no" >&6; } | |
6269 | fi | |
6270 | ||
6271 | ||
6272 | test -n "$CXX_FOR_BUILD" && break | |
6273 | done | |
6274 | fi | |
6275 | if test -z "$CXX_FOR_BUILD"; then | |
6276 | ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD | |
6277 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
6278 | do | |
6279 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6280 | set dummy $ac_prog; ac_word=$2 | |
6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6282 | $as_echo_n "checking for $ac_word... " >&6; } | |
6283 | if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then : | |
6284 | $as_echo_n "(cached) " >&6 | |
6285 | else | |
6286 | if test -n "$ac_ct_CXX_FOR_BUILD"; then | |
6287 | ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test. | |
6288 | else | |
6289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6290 | for as_dir in $PATH | |
6291 | do | |
6292 | IFS=$as_save_IFS | |
6293 | test -z "$as_dir" && as_dir=. | |
6294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6296 | ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog" | |
6297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6298 | break 2 | |
6299 | fi | |
6300 | done | |
6301 | done | |
6302 | IFS=$as_save_IFS | |
6303 | ||
6304 | fi | |
6305 | fi | |
6306 | ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD | |
6307 | if test -n "$ac_ct_CXX_FOR_BUILD"; then | |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5 | |
6309 | $as_echo "$ac_ct_CXX_FOR_BUILD" >&6; } | |
6310 | else | |
6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6312 | $as_echo "no" >&6; } | |
6313 | fi | |
6314 | ||
6315 | ||
6316 | test -n "$ac_ct_CXX_FOR_BUILD" && break | |
6317 | done | |
6318 | ||
6319 | if test "x$ac_ct_CXX_FOR_BUILD" = x; then | |
6320 | CXX_FOR_BUILD="g++" | |
6321 | else | |
6322 | case $cross_compiling:$ac_tool_warned in | |
6323 | yes:) | |
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 | |
6325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} | |
6326 | ac_tool_warned=yes ;; | |
6327 | esac | |
6328 | CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD | |
6329 | fi | |
6330 | fi | |
6331 | ||
6332 | fi | |
6333 | fi | |
6334 | # Provide some information about the compiler. | |
6335 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
6336 | set X $ac_build_compile | |
6337 | ac_compiler=$2 | |
6338 | for ac_option in --version -v -V -qversion; do | |
6339 | { { ac_try="$ac_compiler $ac_option >&5" | |
6340 | case "(($ac_try" in | |
6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6342 | *) ac_try_echo=$ac_try;; | |
6343 | esac | |
6344 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6345 | $as_echo "$ac_try_echo"; } >&5 | |
6346 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6347 | ac_status=$? | |
6348 | if test -s conftest.err; then | |
6349 | sed '10a\ | |
6350 | ... rest of stderr output deleted ... | |
6351 | 10q' conftest.err >conftest.er1 | |
6352 | cat conftest.er1 >&5 | |
6353 | fi | |
6354 | rm -f conftest.er1 conftest.err | |
6355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6356 | test $ac_status = 0; } | |
6357 | done | |
6358 | ||
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
6360 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
6361 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
6362 | $as_echo_n "(cached) " >&6 | |
6363 | else | |
6364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6365 | /* end confdefs.h. */ | |
6366 | ||
6367 | int | |
6368 | main () | |
6369 | { | |
6370 | #ifndef __GNUC__ | |
6371 | choke me | |
6372 | #endif | |
6373 | ||
6374 | ; | |
6375 | return 0; | |
6376 | } | |
6377 | _ACEOF | |
6378 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6379 | ac_compiler_gnu=yes | |
6380 | else | |
6381 | ac_compiler_gnu=no | |
6382 | fi | |
6383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6384 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
6385 | ||
6386 | fi | |
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
6388 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
6389 | if test $ac_compiler_gnu = yes; then | |
6390 | GXX=yes | |
6391 | else | |
6392 | GXX= | |
6393 | fi | |
6394 | ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set} | |
6395 | ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD | |
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5 | |
6397 | $as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; } | |
6398 | if ${ac_cv_build_prog_cxx_g+:} false; then : | |
6399 | $as_echo_n "(cached) " >&6 | |
6400 | else | |
6401 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
6402 | ac_cxx_werror_flag=yes | |
6403 | ac_cv_build_prog_cxx_g=no | |
6404 | CXXFLAGS_FOR_BUILD="-g" | |
6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6406 | /* end confdefs.h. */ | |
6407 | ||
6408 | int | |
6409 | main () | |
6410 | { | |
6411 | ||
6412 | ; | |
6413 | return 0; | |
6414 | } | |
6415 | _ACEOF | |
6416 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6417 | ac_cv_build_prog_cxx_g=yes | |
6418 | else | |
6419 | CXXFLAGS_FOR_BUILD="" | |
6420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6421 | /* end confdefs.h. */ | |
6422 | ||
6423 | int | |
6424 | main () | |
6425 | { | |
6426 | ||
6427 | ; | |
6428 | return 0; | |
6429 | } | |
6430 | _ACEOF | |
6431 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6432 | ||
6433 | else | |
6434 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6435 | CXXFLAGS_FOR_BUILD="-g" | |
6436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6437 | /* end confdefs.h. */ | |
6438 | ||
6439 | int | |
6440 | main () | |
6441 | { | |
6442 | ||
6443 | ; | |
6444 | return 0; | |
6445 | } | |
6446 | _ACEOF | |
6447 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6448 | ac_cv_build_prog_cxx_g=yes | |
6449 | fi | |
6450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6451 | fi | |
6452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6453 | fi | |
6454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6455 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
6456 | fi | |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5 | |
6458 | $as_echo "$ac_cv_build_prog_cxx_g" >&6; } | |
6459 | if test "$ac_test_CXXFLAGS" = set; then | |
6460 | CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS | |
6461 | elif test $ac_cv_build_prog_cxx_g = yes; then | |
6462 | if test "$GXX" = yes; then | |
6463 | CXXFLAGS_FOR_BUILD="-g -O2" | |
6464 | else | |
6465 | CXXFLAGS_FOR_BUILD="-g" | |
6466 | fi | |
6467 | else | |
6468 | if test "$GXX" = yes; then | |
6469 | CXXFLAGS_FOR_BUILD="-O2" | |
6470 | else | |
6471 | CXXFLAGS_FOR_BUILD= | |
6472 | fi | |
6473 | fi | |
6474 | ac_ext=c | |
6475 | ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' | |
6476 | ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6477 | ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6479 | ||
6480 | depcc="$CXX_FOR_BUILD" am_compiler_list= | |
6481 | ||
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6483 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
6484 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
6485 | $as_echo_n "(cached) " >&6 | |
6486 | else | |
6487 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6488 | # We make a subdir and do the tests there. Otherwise we can end up | |
6489 | # making bogus files that we don't know about and never remove. For | |
6490 | # instance it was reported that on HP-UX the gcc test will end up | |
6491 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
6492 | # in D". | |
6493 | rm -rf conftest.dir | |
6494 | mkdir conftest.dir | |
6495 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6496 | # using a relative directory. | |
6497 | cp "$am_depcomp" conftest.dir | |
6498 | cd conftest.dir | |
6499 | # We will build objects and dependencies in a subdirectory because | |
6500 | # it helps to detect inapplicable dependency modes. For instance | |
6501 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6502 | # side effect of compilation, but ICC will put the dependencies in | |
6503 | # the current directory while Tru64 will put them in the object | |
6504 | # directory. | |
6505 | mkdir sub | |
6506 | ||
6507 | am_cv_CXX_dependencies_compiler_type=none | |
6508 | if test "$am_compiler_list" = ""; then | |
6509 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6510 | fi | |
6511 | am__universal=false | |
6512 | case " $depcc " in #( | |
6513 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6514 | esac | |
6515 | ||
6516 | for depmode in $am_compiler_list; do | |
6517 | # Setup a source with many dependencies, because some compilers | |
6518 | # like to wrap large dependency lists on column 80 (with \), and | |
6519 | # we should not choose a depcomp mode which is confused by this. | |
6520 | # | |
6521 | # We need to recreate these files for each test, as the compiler may | |
6522 | # overwrite some of them when testing with obscure command lines. | |
6523 | # This happens at least with the AIX C compiler. | |
6524 | : > sub/conftest.c | |
6525 | for i in 1 2 3 4 5 6; do | |
6526 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6527 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
6528 | # Solaris 10 /bin/sh. | |
6529 | echo '/* dummy */' > sub/conftst$i.h | |
6530 | done | |
6531 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6532 | ||
6533 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
6534 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6535 | # handle '-M -o', and we need to detect this. Also, some Intel | |
6536 | # versions had trouble with output in subdirs. | |
6537 | am__obj=sub/conftest.${OBJEXT-o} | |
6538 | am__minus_obj="-o $am__obj" | |
6539 | case $depmode in | |
6540 | gcc) | |
6541 | # This depmode causes a compiler race in universal mode. | |
6542 | test "$am__universal" = false || continue | |
6543 | ;; | |
6544 | nosideeffect) | |
6545 | # After this tag, mechanisms are not by side-effect, so they'll | |
6546 | # only be used when explicitly requested. | |
6547 | if test "x$enable_dependency_tracking" = xyes; then | |
6548 | continue | |
6549 | else | |
6550 | break | |
6551 | fi | |
6552 | ;; | |
6553 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
6554 | # This compiler won't grok '-c -o', but also, the minuso test has | |
6555 | # not run yet. These depmodes are late enough in the game, and | |
6556 | # so weak that their functioning should not be impacted. | |
6557 | am__obj=conftest.${OBJEXT-o} | |
6558 | am__minus_obj= | |
6559 | ;; | |
6560 | none) break ;; | |
6561 | esac | |
6562 | if depmode=$depmode \ | |
6563 | source=sub/conftest.c object=$am__obj \ | |
6564 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6565 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6566 | >/dev/null 2>conftest.err && | |
6567 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6568 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6569 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6570 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6571 | # icc doesn't choke on unknown options, it will just issue warnings | |
6572 | # or remarks (even with -Werror). So we grep stderr for any message | |
6573 | # that says an option was ignored or not supported. | |
6574 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6575 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6576 | # The diagnosis changed in icc 8.0: | |
6577 | # icc: Command line remark: option '-MP' not supported | |
6578 | if (grep 'ignoring option' conftest.err || | |
6579 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6580 | am_cv_CXX_dependencies_compiler_type=$depmode | |
6581 | break | |
6582 | fi | |
6583 | fi | |
6584 | done | |
6585 | ||
6586 | cd .. | |
6587 | rm -rf conftest.dir | |
6588 | else | |
6589 | am_cv_CXX_dependencies_compiler_type=none | |
6590 | fi | |
6591 | ||
6592 | fi | |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
6594 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
6595 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
6596 | ||
6597 | if | |
6598 | test "x$enable_dependency_tracking" != xno \ | |
6599 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
6600 | am__fastdepCXX_TRUE= | |
6601 | am__fastdepCXX_FALSE='#' | |
6602 | else | |
6603 | am__fastdepCXX_TRUE='#' | |
6604 | am__fastdepCXX_FALSE= | |
6605 | fi | |
6606 | ||
6607 | ||
6608 | ac_ext=cpp | |
6609 | ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' | |
6610 | ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6611 | ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6612 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
6614 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
6615 | if test -z "$CXXCPP_FOR_BUILD"; then | |
6616 | if ${ac_cv_build_prog_CXXCPP+:} false; then : | |
6617 | $as_echo_n "(cached) " >&6 | |
6618 | else | |
6619 | # Double quotes because CXXCPP needs to be expanded | |
6620 | for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp" | |
6621 | do | |
6622 | ac_preproc_ok=false | |
6623 | for ac_cxx_preproc_warn_flag in '' yes | |
6624 | do | |
6625 | # Use a header file that comes with gcc, so configuring glibc | |
6626 | # with a fresh cross-compiler works. | |
6627 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6628 | # <limits.h> exists even on freestanding compilers. | |
6629 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6630 | # not just through cpp. "Syntax error" is here to catch this case. | |
6631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6632 | /* end confdefs.h. */ | |
6633 | #ifdef __STDC__ | |
6634 | # include <limits.h> | |
6635 | #else | |
6636 | # include <assert.h> | |
6637 | #endif | |
6638 | Syntax error | |
6639 | _ACEOF | |
6640 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6641 | ||
6642 | else | |
6643 | # Broken: fails on valid input. | |
6644 | continue | |
6645 | fi | |
6646 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6647 | ||
6648 | # OK, works on sane cases. Now check whether nonexistent headers | |
6649 | # can be detected and how. | |
6650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6651 | /* end confdefs.h. */ | |
6652 | #include <ac_nonexistent.h> | |
6653 | _ACEOF | |
6654 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6655 | # Broken: success on invalid input. | |
6656 | continue | |
6657 | else | |
6658 | # Passes both tests. | |
6659 | ac_preproc_ok=: | |
6660 | break | |
6661 | fi | |
6662 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6663 | ||
6664 | done | |
6665 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6666 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6667 | if $ac_preproc_ok; then : | |
6668 | break | |
6669 | fi | |
6670 | ||
6671 | done | |
6672 | ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD | |
6673 | ||
6674 | fi | |
6675 | CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP | |
6676 | else | |
6677 | ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD | |
6678 | fi | |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5 | |
6680 | $as_echo "$CXXCPP_FOR_BUILD" >&6; } | |
6681 | ac_preproc_ok=false | |
6682 | for ac_cxx_preproc_warn_flag in '' yes | |
6683 | do | |
6684 | # Use a header file that comes with gcc, so configuring glibc | |
6685 | # with a fresh cross-compiler works. | |
6686 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6687 | # <limits.h> exists even on freestanding compilers. | |
6688 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6689 | # not just through cpp. "Syntax error" is here to catch this case. | |
6690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6691 | /* end confdefs.h. */ | |
6692 | #ifdef __STDC__ | |
6693 | # include <limits.h> | |
6694 | #else | |
6695 | # include <assert.h> | |
6696 | #endif | |
6697 | Syntax error | |
6698 | _ACEOF | |
6699 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6700 | ||
6701 | else | |
6702 | # Broken: fails on valid input. | |
6703 | continue | |
6704 | fi | |
6705 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6706 | ||
6707 | # OK, works on sane cases. Now check whether nonexistent headers | |
6708 | # can be detected and how. | |
6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6710 | /* end confdefs.h. */ | |
6711 | #include <ac_nonexistent.h> | |
6712 | _ACEOF | |
6713 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6714 | # Broken: success on invalid input. | |
6715 | continue | |
6716 | else | |
6717 | # Passes both tests. | |
6718 | ac_preproc_ok=: | |
6719 | break | |
6720 | fi | |
6721 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6722 | ||
6723 | done | |
6724 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6725 | rm -f conftest.i conftest.err conftest.$ac_ext | |
6726 | if $ac_preproc_ok; then : | |
6727 | ||
6728 | else | |
6729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6731 | as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check | |
6732 | See \`config.log' for more details" "$LINENO" 5; } | |
6733 | fi | |
6734 | ||
6735 | ac_ext=c | |
6736 | ac_cpp='$CPP $CPPFLAGS_FOR_BUILD' | |
6737 | ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' | |
6738 | ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6740 | ||
6741 | ||
6742 | ac_tool_prefix=$save_ac_tool_prefix | |
6743 | cross_compiling=$save_cross_compiling | |
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | if test -n "$ac_tool_prefix"; then | |
6750 | for ac_prog in ar lib "link -lib" | |
6751 | do | |
6752 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6753 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6755 | $as_echo_n "checking for $ac_word... " >&6; } | |
6756 | if ${ac_cv_prog_AR+:} false; then : | |
6757 | $as_echo_n "(cached) " >&6 | |
6758 | else | |
6759 | if test -n "$AR"; then | |
6760 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6761 | else | |
6762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6763 | for as_dir in $PATH | |
6764 | do | |
6765 | IFS=$as_save_IFS | |
6766 | test -z "$as_dir" && as_dir=. | |
6767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6769 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6771 | break 2 | |
6772 | fi | |
6773 | done | |
6774 | done | |
6775 | IFS=$as_save_IFS | |
6776 | ||
6777 | fi | |
6778 | fi | |
6779 | AR=$ac_cv_prog_AR | |
6780 | if test -n "$AR"; then | |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6782 | $as_echo "$AR" >&6; } | |
6783 | else | |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6785 | $as_echo "no" >&6; } | |
6786 | fi | |
6787 | ||
6788 | ||
6789 | test -n "$AR" && break | |
6790 | done | |
a243b558 JF |
6791 | fi |
6792 | if test -z "$AR"; then | |
6793 | ac_ct_AR=$AR | |
6794 | for ac_prog in ar lib "link -lib" | |
6795 | do | |
6796 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6797 | set dummy $ac_prog; ac_word=$2 | |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6799 | $as_echo_n "checking for $ac_word... " >&6; } | |
6800 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6801 | $as_echo_n "(cached) " >&6 | |
6802 | else | |
6803 | if test -n "$ac_ct_AR"; then | |
6804 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6805 | else | |
6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6807 | for as_dir in $PATH | |
6808 | do | |
6809 | IFS=$as_save_IFS | |
6810 | test -z "$as_dir" && as_dir=. | |
6811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6813 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6815 | break 2 | |
6816 | fi | |
6817 | done | |
6818 | done | |
6819 | IFS=$as_save_IFS | |
6820 | ||
6821 | fi | |
6822 | fi | |
6823 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6824 | if test -n "$ac_ct_AR"; then | |
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6826 | $as_echo "$ac_ct_AR" >&6; } | |
6827 | else | |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6829 | $as_echo "no" >&6; } | |
6830 | fi | |
6831 | ||
6832 | ||
6833 | test -n "$ac_ct_AR" && break | |
6834 | done | |
6835 | ||
6836 | if test "x$ac_ct_AR" = x; then | |
6837 | AR="false" | |
9c60689e DWT |
6838 | else |
6839 | case $cross_compiling:$ac_tool_warned in | |
6840 | yes:) | |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6843 | ac_tool_warned=yes ;; | |
35fa52c0 | 6844 | esac |
a243b558 | 6845 | AR=$ac_ct_AR |
9c60689e | 6846 | fi |
a243b558 JF |
6847 | fi |
6848 | ||
6849 | : ${AR=ar} | |
6850 | ||
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
6852 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
6853 | if ${am_cv_ar_interface+:} false; then : | |
6854 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6855 | else |
a93f15c0 JF |
6856 | ac_ext=c |
6857 | ac_cpp='$CPP $CPPFLAGS' | |
6858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6861 | ||
6862 | am_cv_ar_interface=ar | |
a243b558 JF |
6863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6864 | /* end confdefs.h. */ | |
6865 | int some_variable = 0; | |
6866 | _ACEOF | |
6867 | if ac_fn_c_try_compile "$LINENO"; then : | |
6868 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
6869 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
6870 | (eval $am_ar_try) 2>&5 | |
6871 | ac_status=$? | |
6872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6873 | test $ac_status = 0; } | |
6874 | if test "$ac_status" -eq 0; then | |
6875 | am_cv_ar_interface=ar | |
6876 | else | |
6877 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
6878 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
6879 | (eval $am_ar_try) 2>&5 | |
6880 | ac_status=$? | |
6881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6882 | test $ac_status = 0; } | |
6883 | if test "$ac_status" -eq 0; then | |
6884 | am_cv_ar_interface=lib | |
6885 | else | |
6886 | am_cv_ar_interface=unknown | |
6887 | fi | |
6888 | fi | |
6889 | rm -f conftest.lib libconftest.a | |
6890 | ||
35fa52c0 | 6891 | fi |
a243b558 | 6892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
6893 | ac_ext=c |
6894 | ac_cpp='$CPP $CPPFLAGS' | |
6895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 6898 | |
a243b558 JF |
6899 | fi |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
6901 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 6902 | |
a243b558 JF |
6903 | case $am_cv_ar_interface in |
6904 | ar) | |
6905 | ;; | |
6906 | lib) | |
6907 | # Microsoft lib, so override with the ar-lib wrapper script. | |
6908 | # FIXME: It is wrong to rewrite AR. | |
6909 | # But if we don't then we get into trouble of one sort or another. | |
6910 | # A longer-term fix would be to have automake use am__AR in this case, | |
6911 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
6912 | # similar. | |
6913 | AR="$am_aux_dir/ar-lib $AR" | |
6914 | ;; | |
6915 | unknown) | |
6916 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
6917 | ;; | |
6918 | esac | |
35fa52c0 | 6919 | |
35fa52c0 | 6920 | |
35fa52c0 | 6921 | |
a243b558 JF |
6922 | case `pwd` in |
6923 | *\ * | *\ *) | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6925 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6926 | esac | |
35fa52c0 DWT |
6927 | |
6928 | ||
6929 | ||
9d54db95 JF |
6930 | macro_version='2.4.6' |
6931 | macro_revision='2.4.6' | |
35fa52c0 DWT |
6932 | |
6933 | ||
6934 | ||
6935 | ||
6936 | ||
6937 | ||
6938 | ||
6939 | ||
6940 | ||
8d20f0f1 JF |
6941 | |
6942 | ||
6943 | ||
6944 | ||
6945 | ltmain=$ac_aux_dir/ltmain.sh | |
6946 | ||
a243b558 JF |
6947 | # Backslashify metacharacters that are still active within |
6948 | # double-quoted strings. | |
6949 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 6950 | |
a243b558 JF |
6951 | # Same as above, but do not quote variable references. |
6952 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 6953 | |
a243b558 JF |
6954 | # Sed substitution to delay expansion of an escaped shell variable in a |
6955 | # double_quote_subst'ed string. | |
6956 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 6957 | |
a243b558 JF |
6958 | # Sed substitution to delay expansion of an escaped single quote. |
6959 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 6960 | |
a243b558 JF |
6961 | # Sed substitution to avoid accidental globbing in evaled expressions |
6962 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 6963 | |
a243b558 JF |
6964 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
6965 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6966 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 6967 | |
a243b558 JF |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
6969 | $as_echo_n "checking how to print strings... " >&6; } | |
6970 | # Test print first, because it will be a builtin if present. | |
6971 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
6972 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6973 | ECHO='print -r --' | |
6974 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6975 | ECHO='printf %s\n' | |
6976 | else | |
6977 | # Use this function as a fallback that always works. | |
6978 | func_fallback_echo () | |
6979 | { | |
6980 | eval 'cat <<_LTECHO_EOF | |
6981 | $1 | |
6982 | _LTECHO_EOF' | |
6983 | } | |
6984 | ECHO='func_fallback_echo' | |
ee134472 JF |
6985 | fi |
6986 | ||
a243b558 JF |
6987 | # func_echo_all arg... |
6988 | # Invoke $ECHO with all args, space-separated. | |
6989 | func_echo_all () | |
6990 | { | |
6991 | $ECHO "" | |
6992 | } | |
35fa52c0 | 6993 | |
9d54db95 | 6994 | case $ECHO in |
a243b558 JF |
6995 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
6996 | $as_echo "printf" >&6; } ;; | |
6997 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6998 | $as_echo "print -r" >&6; } ;; | |
6999 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
7000 | $as_echo "cat" >&6; } ;; | |
7001 | esac | |
35fa52c0 | 7002 | |
35fa52c0 | 7003 | |
ee134472 JF |
7004 | |
7005 | ||
7006 | ||
7007 | ||
7008 | ||
7009 | ||
7010 | ||
7011 | ||
7012 | ||
7013 | ||
35fa52c0 | 7014 | |
9c60689e | 7015 | |
a243b558 JF |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
7017 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
7018 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
7019 | $as_echo_n "(cached) " >&6 |
7020 | else | |
a243b558 JF |
7021 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
7022 | for ac_i in 1 2 3 4 5 6 7; do | |
7023 | ac_script="$ac_script$as_nl$ac_script" | |
7024 | done | |
7025 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
7026 | { ac_script=; unset ac_script;} | |
7027 | if test -z "$SED"; then | |
7028 | ac_path_SED_found=false | |
7029 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
7031 | for as_dir in $PATH |
7032 | do | |
7033 | IFS=$as_save_IFS | |
7034 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7035 | for ac_prog in sed gsed; do |
9c60689e | 7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7037 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
7038 | as_fn_executable_p "$ac_path_SED" || continue | |
7039 | # Check for GNU ac_path_SED and select it if it is found. | |
7040 | # Check for GNU $ac_path_SED | |
7041 | case `"$ac_path_SED" --version 2>&1` in | |
7042 | *GNU*) | |
7043 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
7044 | *) | |
7045 | ac_count=0 | |
7046 | $as_echo_n 0123456789 >"conftest.in" | |
7047 | while : | |
7048 | do | |
7049 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7050 | mv "conftest.tmp" "conftest.in" | |
7051 | cp "conftest.in" "conftest.nl" | |
7052 | $as_echo '' >> "conftest.nl" | |
7053 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7054 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7055 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7056 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
7057 | # Best one so far, save it but keep looking for a better one | |
7058 | ac_cv_path_SED="$ac_path_SED" | |
7059 | ac_path_SED_max=$ac_count | |
7060 | fi | |
7061 | # 10*(2^10) chars as input seems more than enough | |
7062 | test $ac_count -gt 10 && break | |
35fa52c0 | 7063 | done |
a243b558 JF |
7064 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7065 | esac | |
9c60689e | 7066 | |
a243b558 JF |
7067 | $ac_path_SED_found && break 3 |
7068 | done | |
7069 | done | |
9c60689e DWT |
7070 | done |
7071 | IFS=$as_save_IFS | |
a243b558 JF |
7072 | if test -z "$ac_cv_path_SED"; then |
7073 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
7074 | fi |
7075 | else | |
a243b558 | 7076 | ac_cv_path_SED=$SED |
9c60689e DWT |
7077 | fi |
7078 | ||
a243b558 JF |
7079 | fi |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
7081 | $as_echo "$ac_cv_path_SED" >&6; } | |
7082 | SED="$ac_cv_path_SED" | |
7083 | rm -f conftest.sed | |
9c60689e | 7084 | |
a243b558 JF |
7085 | test -z "$SED" && SED=sed |
7086 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 7087 | |
ee134472 | 7088 | |
ee134472 | 7089 | |
9c60689e DWT |
7090 | |
7091 | ||
7092 | ||
7093 | ||
7094 | ||
7095 | ||
7096 | ||
7097 | ||
a243b558 JF |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
7099 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7100 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
7101 | $as_echo_n "(cached) " >&6 |
7102 | else | |
a243b558 JF |
7103 | if test -z "$GREP"; then |
7104 | ac_path_GREP_found=false | |
7105 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7107 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
7108 | do |
7109 | IFS=$as_save_IFS | |
7110 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7111 | for ac_prog in grep ggrep; do |
9c60689e | 7112 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7113 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
7114 | as_fn_executable_p "$ac_path_GREP" || continue | |
7115 | # Check for GNU ac_path_GREP and select it if it is found. | |
7116 | # Check for GNU $ac_path_GREP | |
7117 | case `"$ac_path_GREP" --version 2>&1` in | |
7118 | *GNU*) | |
7119 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7120 | *) | |
7121 | ac_count=0 | |
7122 | $as_echo_n 0123456789 >"conftest.in" | |
7123 | while : | |
7124 | do | |
7125 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7126 | mv "conftest.tmp" "conftest.in" | |
7127 | cp "conftest.in" "conftest.nl" | |
7128 | $as_echo 'GREP' >> "conftest.nl" | |
7129 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7130 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7131 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7132 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7133 | # Best one so far, save it but keep looking for a better one | |
7134 | ac_cv_path_GREP="$ac_path_GREP" | |
7135 | ac_path_GREP_max=$ac_count | |
7136 | fi | |
7137 | # 10*(2^10) chars as input seems more than enough | |
7138 | test $ac_count -gt 10 && break | |
7139 | done | |
7140 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7141 | esac | |
9c60689e | 7142 | |
a243b558 JF |
7143 | $ac_path_GREP_found && break 3 |
7144 | done | |
ee134472 | 7145 | done |
a243b558 JF |
7146 | done |
7147 | IFS=$as_save_IFS | |
7148 | if test -z "$ac_cv_path_GREP"; then | |
7149 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7150 | fi | |
7151 | else | |
7152 | ac_cv_path_GREP=$GREP | |
9c60689e | 7153 | fi |
a243b558 JF |
7154 | |
7155 | fi | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
7157 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7158 | GREP="$ac_cv_path_GREP" | |
7159 | ||
7160 | ||
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
7162 | $as_echo_n "checking for egrep... " >&6; } | |
7163 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
7164 | $as_echo_n "(cached) " >&6 |
7165 | else | |
a243b558 JF |
7166 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
7167 | then ac_cv_path_EGREP="$GREP -E" | |
7168 | else | |
7169 | if test -z "$EGREP"; then | |
7170 | ac_path_EGREP_found=false | |
7171 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7173 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
7174 | do |
7175 | IFS=$as_save_IFS | |
7176 | test -z "$as_dir" && as_dir=. | |
a243b558 | 7177 | for ac_prog in egrep; do |
9c60689e | 7178 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
7179 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
7180 | as_fn_executable_p "$ac_path_EGREP" || continue | |
7181 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7182 | # Check for GNU $ac_path_EGREP | |
7183 | case `"$ac_path_EGREP" --version 2>&1` in | |
7184 | *GNU*) | |
7185 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
7186 | *) | |
7187 | ac_count=0 | |
7188 | $as_echo_n 0123456789 >"conftest.in" | |
7189 | while : | |
7190 | do | |
7191 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7192 | mv "conftest.tmp" "conftest.in" | |
7193 | cp "conftest.in" "conftest.nl" | |
7194 | $as_echo 'EGREP' >> "conftest.nl" | |
7195 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7196 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7197 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7198 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
7199 | # Best one so far, save it but keep looking for a better one | |
7200 | ac_cv_path_EGREP="$ac_path_EGREP" | |
7201 | ac_path_EGREP_max=$ac_count | |
7202 | fi | |
7203 | # 10*(2^10) chars as input seems more than enough | |
7204 | test $ac_count -gt 10 && break | |
9c60689e | 7205 | done |
a243b558 JF |
7206 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
7207 | esac | |
9c60689e | 7208 | |
a243b558 JF |
7209 | $ac_path_EGREP_found && break 3 |
7210 | done | |
7211 | done | |
7212 | done | |
7213 | IFS=$as_save_IFS | |
7214 | if test -z "$ac_cv_path_EGREP"; then | |
7215 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7216 | fi | |
9c60689e | 7217 | else |
a243b558 | 7218 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
7219 | fi |
7220 | ||
a243b558 JF |
7221 | fi |
7222 | fi | |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
7224 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7225 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 7226 | |
ee134472 | 7227 | |
a243b558 JF |
7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
7229 | $as_echo_n "checking for fgrep... " >&6; } | |
7230 | if ${ac_cv_path_FGREP+:} false; then : | |
7231 | $as_echo_n "(cached) " >&6 | |
7232 | else | |
7233 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
7234 | then ac_cv_path_FGREP="$GREP -F" | |
7235 | else | |
7236 | if test -z "$FGREP"; then | |
7237 | ac_path_FGREP_found=false | |
7238 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7240 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7241 | do | |
7242 | IFS=$as_save_IFS | |
7243 | test -z "$as_dir" && as_dir=. | |
7244 | for ac_prog in fgrep; do | |
7245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7246 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
7247 | as_fn_executable_p "$ac_path_FGREP" || continue | |
7248 | # Check for GNU ac_path_FGREP and select it if it is found. | |
7249 | # Check for GNU $ac_path_FGREP | |
7250 | case `"$ac_path_FGREP" --version 2>&1` in | |
7251 | *GNU*) | |
7252 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
7253 | *) | |
7254 | ac_count=0 | |
7255 | $as_echo_n 0123456789 >"conftest.in" | |
7256 | while : | |
7257 | do | |
7258 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7259 | mv "conftest.tmp" "conftest.in" | |
7260 | cp "conftest.in" "conftest.nl" | |
7261 | $as_echo 'FGREP' >> "conftest.nl" | |
7262 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7263 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7264 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7265 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
7266 | # Best one so far, save it but keep looking for a better one | |
7267 | ac_cv_path_FGREP="$ac_path_FGREP" | |
7268 | ac_path_FGREP_max=$ac_count | |
7269 | fi | |
7270 | # 10*(2^10) chars as input seems more than enough | |
7271 | test $ac_count -gt 10 && break | |
7272 | done | |
7273 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 7274 | esac |
a243b558 JF |
7275 | |
7276 | $ac_path_FGREP_found && break 3 | |
7277 | done | |
7278 | done | |
7279 | done | |
7280 | IFS=$as_save_IFS | |
7281 | if test -z "$ac_cv_path_FGREP"; then | |
7282 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 7283 | fi |
a243b558 JF |
7284 | else |
7285 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
7286 | fi |
7287 | ||
a243b558 JF |
7288 | fi |
7289 | fi | |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
7291 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
7292 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
7293 | |
7294 | ||
a243b558 | 7295 | test -z "$GREP" && GREP=grep |
ee134472 JF |
7296 | |
7297 | ||
7298 | ||
7299 | ||
7300 | ||
7301 | ||
7302 | ||
ee134472 | 7303 | |
ee134472 | 7304 | |
ee134472 | 7305 | |
ee134472 | 7306 | |
ee134472 | 7307 | |
ee134472 JF |
7308 | |
7309 | ||
7310 | ||
7311 | ||
7312 | ||
7313 | ||
7314 | ||
a243b558 JF |
7315 | # Check whether --with-gnu-ld was given. |
7316 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 7317 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
a243b558 JF |
7318 | else |
7319 | with_gnu_ld=no | |
7320 | fi | |
7321 | ||
7322 | ac_prog=ld | |
9d54db95 | 7323 | if test yes = "$GCC"; then |
a243b558 JF |
7324 | # Check if gcc -print-prog-name=ld gives a path. |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
7326 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7327 | case $host in | |
7328 | *-*-mingw*) | |
9d54db95 | 7329 | # gcc leaves a trailing carriage return, which upsets mingw |
a243b558 JF |
7330 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
7331 | *) | |
7332 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7333 | esac | |
7334 | case $ac_prog in | |
7335 | # Accept absolute paths. | |
7336 | [\\/]* | ?:[\\/]*) | |
7337 | re_direlt='/[^/][^/]*/\.\./' | |
7338 | # Canonicalize the pathname of ld | |
7339 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
7340 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
7341 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
7342 | done | |
9d54db95 | 7343 | test -z "$LD" && LD=$ac_prog |
a243b558 JF |
7344 | ;; |
7345 | "") | |
7346 | # If it fails, then pretend we aren't using GCC. | |
7347 | ac_prog=ld | |
7348 | ;; | |
7349 | *) | |
7350 | # If it is relative, then search for the first ld in PATH. | |
7351 | with_gnu_ld=unknown | |
7352 | ;; | |
7353 | esac | |
9d54db95 | 7354 | elif test yes = "$with_gnu_ld"; then |
a243b558 JF |
7355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
7356 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357 | else | |
7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7359 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7360 | fi | |
7361 | if ${lt_cv_path_LD+:} false; then : | |
7362 | $as_echo_n "(cached) " >&6 | |
7363 | else | |
7364 | if test -z "$LD"; then | |
9d54db95 | 7365 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 7366 | for ac_dir in $PATH; do |
9d54db95 | 7367 | IFS=$lt_save_ifs |
a243b558 JF |
7368 | test -z "$ac_dir" && ac_dir=. |
7369 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 7370 | lt_cv_path_LD=$ac_dir/$ac_prog |
a243b558 JF |
7371 | # Check to see if the program is GNU ld. I'd rather use --version, |
7372 | # but apparently some variants of GNU ld only accept -v. | |
7373 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7374 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
7375 | *GNU* | *'with BFD'*) | |
9d54db95 | 7376 | test no != "$with_gnu_ld" && break |
a243b558 JF |
7377 | ;; |
7378 | *) | |
9d54db95 | 7379 | test yes != "$with_gnu_ld" && break |
a243b558 JF |
7380 | ;; |
7381 | esac | |
7382 | fi | |
7383 | done | |
9d54db95 | 7384 | IFS=$lt_save_ifs |
a243b558 | 7385 | else |
9d54db95 | 7386 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
a243b558 JF |
7387 | fi |
7388 | fi | |
7389 | ||
9d54db95 | 7390 | LD=$lt_cv_path_LD |
a243b558 JF |
7391 | if test -n "$LD"; then |
7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7393 | $as_echo "$LD" >&6; } | |
7394 | else | |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7396 | $as_echo "no" >&6; } | |
7397 | fi | |
7398 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7400 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7401 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
7402 | $as_echo_n "(cached) " >&6 | |
7403 | else | |
7404 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
7405 | case `$LD -v 2>&1 </dev/null` in | |
7406 | *GNU* | *'with BFD'*) | |
7407 | lt_cv_prog_gnu_ld=yes | |
7408 | ;; | |
7409 | *) | |
7410 | lt_cv_prog_gnu_ld=no | |
7411 | ;; | |
7412 | esac | |
7413 | fi | |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
7415 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7416 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
7417 | ||
7418 | ||
7419 | ||
7420 | ||
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
7427 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
7428 | if ${lt_cv_path_NM+:} false; then : | |
7429 | $as_echo_n "(cached) " >&6 | |
7430 | else | |
7431 | if test -n "$NM"; then | |
7432 | # Let the user override the test. | |
9d54db95 | 7433 | lt_cv_path_NM=$NM |
a243b558 | 7434 | else |
9d54db95 | 7435 | lt_nm_to_check=${ac_tool_prefix}nm |
a243b558 JF |
7436 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
7437 | lt_nm_to_check="$lt_nm_to_check nm" | |
7438 | fi | |
7439 | for lt_tmp_nm in $lt_nm_to_check; do | |
9d54db95 | 7440 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 7441 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
9d54db95 | 7442 | IFS=$lt_save_ifs |
a243b558 | 7443 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
7444 | tmp_nm=$ac_dir/$lt_tmp_nm |
7445 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
a243b558 | 7446 | # Check to see if the nm accepts a BSD-compat flag. |
9d54db95 | 7447 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
a243b558 JF |
7448 | # nm: unknown option "B" ignored |
7449 | # Tru64's nm complains that /dev/null is an invalid object file | |
9d54db95 JF |
7450 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
7451 | case $build_os in | |
7452 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
7453 | *) lt_bad_file=/dev/null ;; | |
7454 | esac | |
7455 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
7456 | *$lt_bad_file* | *'Invalid file or object type'*) | |
a243b558 | 7457 | lt_cv_path_NM="$tmp_nm -B" |
9d54db95 | 7458 | break 2 |
a243b558 JF |
7459 | ;; |
7460 | *) | |
7461 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7462 | */dev/null*) | |
7463 | lt_cv_path_NM="$tmp_nm -p" | |
9d54db95 | 7464 | break 2 |
a243b558 JF |
7465 | ;; |
7466 | *) | |
7467 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7468 | continue # so that we can try to find one that supports BSD flags | |
7469 | ;; | |
7470 | esac | |
7471 | ;; | |
7472 | esac | |
7473 | fi | |
7474 | done | |
9d54db95 | 7475 | IFS=$lt_save_ifs |
a243b558 JF |
7476 | done |
7477 | : ${lt_cv_path_NM=no} | |
7478 | fi | |
7479 | fi | |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
7481 | $as_echo "$lt_cv_path_NM" >&6; } | |
9d54db95 JF |
7482 | if test no != "$lt_cv_path_NM"; then |
7483 | NM=$lt_cv_path_NM | |
a243b558 JF |
7484 | else |
7485 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
7486 | if test -n "$DUMPBIN"; then : | |
7487 | # Let the user override the test. | |
7488 | else | |
7489 | if test -n "$ac_tool_prefix"; then | |
7490 | for ac_prog in dumpbin "link -dump" | |
7491 | do | |
7492 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7493 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7495 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7496 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
7497 | $as_echo_n "(cached) " >&6 |
7498 | else | |
a243b558 JF |
7499 | if test -n "$DUMPBIN"; then |
7500 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
7501 | else |
7502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7503 | for as_dir in $PATH | |
7504 | do | |
7505 | IFS=$as_save_IFS | |
7506 | test -z "$as_dir" && as_dir=. | |
7507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7509 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
7510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7511 | break 2 | |
7512 | fi | |
7513 | done | |
7514 | done | |
7515 | IFS=$as_save_IFS | |
7516 | ||
7517 | fi | |
7518 | fi | |
a243b558 JF |
7519 | DUMPBIN=$ac_cv_prog_DUMPBIN |
7520 | if test -n "$DUMPBIN"; then | |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
7522 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
7523 | else |
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7525 | $as_echo "no" >&6; } | |
7526 | fi | |
7527 | ||
7528 | ||
a243b558 JF |
7529 | test -n "$DUMPBIN" && break |
7530 | done | |
ee134472 | 7531 | fi |
a243b558 JF |
7532 | if test -z "$DUMPBIN"; then |
7533 | ac_ct_DUMPBIN=$DUMPBIN | |
7534 | for ac_prog in dumpbin "link -dump" | |
7535 | do | |
7536 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7537 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7539 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7540 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
7541 | $as_echo_n "(cached) " >&6 |
7542 | else | |
a243b558 JF |
7543 | if test -n "$ac_ct_DUMPBIN"; then |
7544 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
7545 | else |
7546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7547 | for as_dir in $PATH | |
7548 | do | |
7549 | IFS=$as_save_IFS | |
7550 | test -z "$as_dir" && as_dir=. | |
7551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7553 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
7554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7555 | break 2 | |
7556 | fi | |
7557 | done | |
7558 | done | |
7559 | IFS=$as_save_IFS | |
7560 | ||
7561 | fi | |
7562 | fi | |
a243b558 JF |
7563 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
7564 | if test -n "$ac_ct_DUMPBIN"; then | |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
7566 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
7567 | else |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7569 | $as_echo "no" >&6; } | |
7570 | fi | |
7571 | ||
a243b558 JF |
7572 | |
7573 | test -n "$ac_ct_DUMPBIN" && break | |
7574 | done | |
7575 | ||
7576 | if test "x$ac_ct_DUMPBIN" = x; then | |
7577 | DUMPBIN=":" | |
ee134472 JF |
7578 | else |
7579 | case $cross_compiling:$ac_tool_warned in | |
7580 | yes:) | |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7582 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7583 | ac_tool_warned=yes ;; | |
7584 | esac | |
a243b558 | 7585 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 7586 | fi |
9c60689e DWT |
7587 | fi |
7588 | ||
9d54db95 | 7589 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
a243b558 | 7590 | *COFF*) |
9d54db95 | 7591 | DUMPBIN="$DUMPBIN -symbols -headers" |
a243b558 JF |
7592 | ;; |
7593 | *) | |
7594 | DUMPBIN=: | |
7595 | ;; | |
7596 | esac | |
7597 | fi | |
9c60689e | 7598 | |
9d54db95 JF |
7599 | if test : != "$DUMPBIN"; then |
7600 | NM=$DUMPBIN | |
a243b558 JF |
7601 | fi |
7602 | fi | |
7603 | test -z "$NM" && NM=nm | |
9c60689e DWT |
7604 | |
7605 | ||
7606 | ||
7607 | ||
7608 | ||
a243b558 JF |
7609 | |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
7611 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
7612 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
7613 | $as_echo_n "(cached) " >&6 |
7614 | else | |
a243b558 JF |
7615 | lt_cv_nm_interface="BSD nm" |
7616 | echo "int some_variable = 0;" > conftest.$ac_ext | |
7617 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
7618 | (eval "$ac_compile" 2>conftest.err) | |
7619 | cat conftest.err >&5 | |
7620 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
7621 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
7622 | cat conftest.err >&5 | |
7623 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
7624 | cat conftest.out >&5 | |
7625 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7626 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 7627 | fi |
00a96142 | 7628 | rm -rf conftest* |
9c60689e | 7629 | fi |
a243b558 JF |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7631 | $as_echo "$lt_cv_nm_interface" >&6; } | |
7632 | ||
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
7634 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7635 | LN_S=$as_ln_s | |
7636 | if test "$LN_S" = "ln -s"; then | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7638 | $as_echo "yes" >&6; } | |
9c60689e | 7639 | else |
a243b558 JF |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7641 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
7642 | fi |
7643 | ||
a243b558 JF |
7644 | # find the maximum length of command line arguments |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
7646 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
7647 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
7648 | $as_echo_n "(cached) " >&6 |
7649 | else | |
a243b558 | 7650 | i=0 |
9d54db95 | 7651 | teststring=ABCD |
9c60689e | 7652 | |
a243b558 JF |
7653 | case $build_os in |
7654 | msdosdjgpp*) | |
7655 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7656 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7657 | # during glob expansion). Even if it were fixed, the result of this | |
7658 | # check would be larger than it should be. | |
7659 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7660 | ;; | |
9c60689e | 7661 | |
a243b558 JF |
7662 | gnu*) |
7663 | # Under GNU Hurd, this test is not required because there is | |
7664 | # no limit to the length of command line arguments. | |
7665 | # Libtool will interpret -1 as no limit whatsoever | |
7666 | lt_cv_sys_max_cmd_len=-1; | |
7667 | ;; | |
9c60689e | 7668 | |
a243b558 JF |
7669 | cygwin* | mingw* | cegcc*) |
7670 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
7671 | # about 5 minutes as the teststring grows exponentially. | |
7672 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7673 | # you end up with a "frozen" computer, even though with patience | |
7674 | # the test eventually succeeds (with a max line length of 256k). | |
7675 | # Instead, let's just punt: use the minimum linelength reported by | |
7676 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7677 | lt_cv_sys_max_cmd_len=8192; | |
7678 | ;; | |
9c60689e | 7679 | |
a243b558 JF |
7680 | mint*) |
7681 | # On MiNT this can take a long time and run out of memory. | |
7682 | lt_cv_sys_max_cmd_len=8192; | |
7683 | ;; | |
9c60689e | 7684 | |
a243b558 JF |
7685 | amigaos*) |
7686 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7687 | # So we just punt and use a minimum line length of 8192. | |
7688 | lt_cv_sys_max_cmd_len=8192; | |
7689 | ;; | |
9c60689e | 7690 | |
9d54db95 | 7691 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
a243b558 JF |
7692 | # This has been around since 386BSD, at least. Likely further. |
7693 | if test -x /sbin/sysctl; then | |
7694 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7695 | elif test -x /usr/sbin/sysctl; then | |
7696 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7697 | else | |
7698 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7699 | fi | |
7700 | # And add a safety zone | |
7701 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7702 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7703 | ;; | |
9c60689e | 7704 | |
a243b558 JF |
7705 | interix*) |
7706 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7707 | lt_cv_sys_max_cmd_len=196608 | |
7708 | ;; | |
9c60689e | 7709 | |
a243b558 JF |
7710 | os2*) |
7711 | # The test takes a long time on OS/2. | |
7712 | lt_cv_sys_max_cmd_len=8192 | |
7713 | ;; | |
9c60689e | 7714 | |
a243b558 JF |
7715 | osf*) |
7716 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7717 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7718 | # nice to cause kernel panics so lets avoid the loop below. | |
7719 | # First set a reasonable default. | |
7720 | lt_cv_sys_max_cmd_len=16384 | |
7721 | # | |
7722 | if test -x /sbin/sysconfig; then | |
7723 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7724 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7725 | esac | |
7726 | fi | |
7727 | ;; | |
7728 | sco3.2v5*) | |
7729 | lt_cv_sys_max_cmd_len=102400 | |
7730 | ;; | |
7731 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7732 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7733 | if test -n "$kargmax"; then | |
7734 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7735 | else | |
7736 | lt_cv_sys_max_cmd_len=32768 | |
7737 | fi | |
9c60689e DWT |
7738 | ;; |
7739 | *) | |
a243b558 | 7740 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
9d54db95 JF |
7741 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
7742 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
a243b558 JF |
7743 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7744 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7745 | else | |
7746 | # Make teststring a little bigger before we do anything with it. | |
7747 | # a 1K string should be a reasonable start. | |
9d54db95 | 7748 | for i in 1 2 3 4 5 6 7 8; do |
a243b558 JF |
7749 | teststring=$teststring$teststring |
7750 | done | |
7751 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7752 | # If test is not a shell built-in, we'll probably end up computing a | |
7753 | # maximum length that is only half of the actual maximum length, but | |
7754 | # we can't tell. | |
9d54db95 | 7755 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
a243b558 | 7756 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
9d54db95 | 7757 | test 17 != "$i" # 1/2 MB should be enough |
a243b558 JF |
7758 | do |
7759 | i=`expr $i + 1` | |
7760 | teststring=$teststring$teststring | |
7761 | done | |
7762 | # Only check the string length outside the loop. | |
7763 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7764 | teststring= | |
7765 | # Add a significant safety factor because C++ compilers can tack on | |
7766 | # massive amounts of additional arguments before passing them to the | |
7767 | # linker. It appears as though 1/2 is a usable value. | |
7768 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7769 | fi | |
9c60689e DWT |
7770 | ;; |
7771 | esac | |
ee134472 | 7772 | |
a243b558 | 7773 | fi |
ee134472 | 7774 | |
9d54db95 | 7775 | if test -n "$lt_cv_sys_max_cmd_len"; then |
a243b558 JF |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7777 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7778 | else | |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
7780 | $as_echo "none" >&6; } | |
7781 | fi | |
7782 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
7783 | |
7784 | ||
9c60689e DWT |
7785 | |
7786 | ||
7787 | ||
7788 | ||
a243b558 JF |
7789 | : ${CP="cp -f"} |
7790 | : ${MV="mv -f"} | |
7791 | : ${RM="rm -f"} | |
9c60689e | 7792 | |
a243b558 JF |
7793 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7794 | lt_unset=unset | |
7795 | else | |
7796 | lt_unset=false | |
7797 | fi | |
9c60689e DWT |
7798 | |
7799 | ||
7800 | ||
7801 | ||
7802 | ||
a243b558 JF |
7803 | # test EBCDIC or ASCII |
7804 | case `echo X|tr X '\101'` in | |
7805 | A) # ASCII based system | |
7806 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7807 | lt_SP2NL='tr \040 \012' | |
7808 | lt_NL2SP='tr \015\012 \040\040' | |
7809 | ;; | |
7810 | *) # EBCDIC based system | |
7811 | lt_SP2NL='tr \100 \n' | |
7812 | lt_NL2SP='tr \r\n \100\100' | |
7813 | ;; | |
7814 | esac | |
9c60689e DWT |
7815 | |
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | ||
a243b558 JF |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
7825 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
7826 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
7827 | $as_echo_n "(cached) " >&6 | |
7828 | else | |
7829 | case $host in | |
7830 | *-*-mingw* ) | |
7831 | case $build in | |
7832 | *-*-mingw* ) # actually msys | |
7833 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
7834 | ;; | |
7835 | *-*-cygwin* ) | |
7836 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
7837 | ;; | |
7838 | * ) # otherwise, assume *nix | |
7839 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
7840 | ;; | |
7841 | esac | |
7842 | ;; | |
7843 | *-*-cygwin* ) | |
7844 | case $build in | |
7845 | *-*-mingw* ) # actually msys | |
7846 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
7847 | ;; | |
7848 | *-*-cygwin* ) | |
7849 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7850 | ;; | |
7851 | * ) # otherwise, assume *nix | |
7852 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
7853 | ;; | |
7854 | esac | |
7855 | ;; | |
7856 | * ) # unhandled hosts (and "normal" native builds) | |
7857 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7858 | ;; | |
7859 | esac | |
9c60689e | 7860 | |
a243b558 | 7861 | fi |
9c60689e | 7862 | |
a243b558 JF |
7863 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
7865 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
7866 | |
7867 | ||
7868 | ||
7869 | ||
7870 | ||
a243b558 JF |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
7872 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
7873 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
7874 | $as_echo_n "(cached) " >&6 | |
7875 | else | |
7876 | #assume ordinary cross tools, or native build. | |
7877 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
7878 | case $host in | |
7879 | *-*-mingw* ) | |
7880 | case $build in | |
7881 | *-*-mingw* ) # actually msys | |
7882 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
7883 | ;; | |
7884 | esac | |
7885 | ;; | |
7886 | esac | |
9c60689e | 7887 | |
a243b558 | 7888 | fi |
9c60689e | 7889 | |
a243b558 JF |
7890 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
7892 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 7893 | |
9c60689e | 7894 | |
9c60689e | 7895 | |
9c60689e DWT |
7896 | |
7897 | ||
a243b558 JF |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7899 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
7900 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
7901 | $as_echo_n "(cached) " >&6 |
7902 | else | |
a243b558 JF |
7903 | lt_cv_ld_reload_flag='-r' |
7904 | fi | |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
7906 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7907 | reload_flag=$lt_cv_ld_reload_flag | |
7908 | case $reload_flag in | |
7909 | "" | " "*) ;; | |
7910 | *) reload_flag=" $reload_flag" ;; | |
7911 | esac | |
7912 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 7913 | case $host_os in |
a243b558 | 7914 | cygwin* | mingw* | pw32* | cegcc*) |
9d54db95 | 7915 | if test yes != "$GCC"; then |
a243b558 JF |
7916 | reload_cmds=false |
7917 | fi | |
7918 | ;; | |
7919 | darwin*) | |
9d54db95 JF |
7920 | if test yes = "$GCC"; then |
7921 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
a243b558 JF |
7922 | else |
7923 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7924 | fi | |
7925 | ;; | |
9c60689e DWT |
7926 | esac |
7927 | ||
9c60689e | 7928 | |
9c60689e | 7929 | |
9c60689e | 7930 | |
9c60689e | 7931 | |
9c60689e | 7932 | |
9c60689e | 7933 | |
9c60689e | 7934 | |
9c60689e | 7935 | |
a243b558 JF |
7936 | if test -n "$ac_tool_prefix"; then |
7937 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7938 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7940 | $as_echo_n "checking for $ac_word... " >&6; } | |
7941 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
7942 | $as_echo_n "(cached) " >&6 | |
7943 | else | |
7944 | if test -n "$OBJDUMP"; then | |
7945 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7946 | else | |
7947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7948 | for as_dir in $PATH | |
7949 | do | |
7950 | IFS=$as_save_IFS | |
7951 | test -z "$as_dir" && as_dir=. | |
7952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7954 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
7955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7956 | break 2 | |
7957 | fi | |
7958 | done | |
7959 | done | |
7960 | IFS=$as_save_IFS | |
9c60689e | 7961 | |
a243b558 JF |
7962 | fi |
7963 | fi | |
7964 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7965 | if test -n "$OBJDUMP"; then | |
7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
7967 | $as_echo "$OBJDUMP" >&6; } | |
7968 | else | |
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7970 | $as_echo "no" >&6; } | |
7971 | fi | |
9c60689e | 7972 | |
9c60689e | 7973 | |
a243b558 JF |
7974 | fi |
7975 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7976 | ac_ct_OBJDUMP=$OBJDUMP | |
7977 | # Extract the first word of "objdump", so it can be a program name with args. | |
7978 | set dummy objdump; ac_word=$2 | |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7980 | $as_echo_n "checking for $ac_word... " >&6; } | |
7981 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
7982 | $as_echo_n "(cached) " >&6 | |
7983 | else | |
7984 | if test -n "$ac_ct_OBJDUMP"; then | |
7985 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7986 | else | |
7987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7988 | for as_dir in $PATH | |
7989 | do | |
7990 | IFS=$as_save_IFS | |
7991 | test -z "$as_dir" && as_dir=. | |
7992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7994 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
7995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7996 | break 2 | |
9c60689e DWT |
7997 | fi |
7998 | done | |
a243b558 JF |
7999 | done |
8000 | IFS=$as_save_IFS | |
9c60689e DWT |
8001 | |
8002 | fi | |
9c60689e | 8003 | fi |
a243b558 JF |
8004 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
8005 | if test -n "$ac_ct_OBJDUMP"; then | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
8007 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 8008 | else |
a243b558 JF |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8010 | $as_echo "no" >&6; } | |
9c60689e DWT |
8011 | fi |
8012 | ||
a243b558 JF |
8013 | if test "x$ac_ct_OBJDUMP" = x; then |
8014 | OBJDUMP="false" | |
8015 | else | |
8016 | case $cross_compiling:$ac_tool_warned in | |
8017 | yes:) | |
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8019 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8020 | ac_tool_warned=yes ;; | |
8021 | esac | |
8022 | OBJDUMP=$ac_ct_OBJDUMP | |
8023 | fi | |
8024 | else | |
8025 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
8026 | fi |
8027 | ||
a243b558 | 8028 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
8029 | |
8030 | ||
8031 | ||
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | ||
a243b558 JF |
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8039 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
8040 | if ${lt_cv_deplibs_check_method+:} false; then : | |
8041 | $as_echo_n "(cached) " >&6 | |
8042 | else | |
8043 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
8044 | lt_cv_file_magic_test_file= | |
8045 | lt_cv_deplibs_check_method='unknown' | |
8046 | # Need to set the preceding variable on all platforms that support | |
8047 | # interlibrary dependencies. | |
8048 | # 'none' -- dependencies not supported. | |
9d54db95 | 8049 | # 'unknown' -- same as none, but documents that we really don't know. |
a243b558 JF |
8050 | # 'pass_all' -- all dependencies passed with no checks. |
8051 | # 'test_compile' -- check by making test program. | |
8052 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
9d54db95 JF |
8053 | # that responds to the $file_magic_cmd with a given extended regex. |
8054 | # If you have 'file' or equivalent on your system and you're not sure | |
8055 | # whether 'pass_all' will *always* work, you probably want this one. | |
9c60689e | 8056 | |
a243b558 JF |
8057 | case $host_os in |
8058 | aix[4-9]*) | |
8059 | lt_cv_deplibs_check_method=pass_all | |
8060 | ;; | |
9c60689e | 8061 | |
a243b558 JF |
8062 | beos*) |
8063 | lt_cv_deplibs_check_method=pass_all | |
8064 | ;; | |
9c60689e | 8065 | |
a243b558 JF |
8066 | bsdi[45]*) |
8067 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
8068 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
8069 | lt_cv_file_magic_test_file=/shlib/libc.so | |
8070 | ;; | |
9c60689e | 8071 | |
a243b558 JF |
8072 | cygwin*) |
8073 | # func_win32_libid is a shell function defined in ltmain.sh | |
8074 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
8075 | lt_cv_file_magic_cmd='func_win32_libid' | |
8076 | ;; | |
9c60689e | 8077 | |
a243b558 JF |
8078 | mingw* | pw32*) |
8079 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
8080 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
8081 | # unless we find 'file', for example because we are cross-compiling. | |
9d54db95 | 8082 | if ( file / ) >/dev/null 2>&1; then |
a243b558 JF |
8083 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
8084 | lt_cv_file_magic_cmd='func_win32_libid' | |
8085 | else | |
8086 | # Keep this pattern in sync with the one in func_win32_libid. | |
8087 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8088 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
8089 | fi | |
8090 | ;; | |
9c60689e | 8091 | |
a243b558 JF |
8092 | cegcc*) |
8093 | # use the weaker test based on 'objdump'. See mingw*. | |
8094 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
8095 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
8096 | ;; | |
9c60689e | 8097 | |
a243b558 JF |
8098 | darwin* | rhapsody*) |
8099 | lt_cv_deplibs_check_method=pass_all | |
8100 | ;; | |
9c60689e | 8101 | |
a243b558 JF |
8102 | freebsd* | dragonfly*) |
8103 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
8104 | case $host_cpu in | |
8105 | i*86 ) | |
8106 | # Not sure whether the presence of OpenBSD here was a mistake. | |
8107 | # Let's accept both of them until this is cleared up. | |
8108 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
8109 | lt_cv_file_magic_cmd=/usr/bin/file | |
8110 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
8111 | ;; | |
8112 | esac | |
8113 | else | |
8114 | lt_cv_deplibs_check_method=pass_all | |
8115 | fi | |
8116 | ;; | |
9c60689e | 8117 | |
a243b558 JF |
8118 | haiku*) |
8119 | lt_cv_deplibs_check_method=pass_all | |
8120 | ;; | |
9c60689e | 8121 | |
a243b558 JF |
8122 | hpux10.20* | hpux11*) |
8123 | lt_cv_file_magic_cmd=/usr/bin/file | |
8124 | case $host_cpu in | |
8125 | ia64*) | |
8126 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
8127 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
8128 | ;; | |
8129 | hppa*64*) | |
8130 | 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]' | |
8131 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
8132 | ;; | |
8133 | *) | |
8134 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
8135 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
8136 | ;; | |
8137 | esac | |
8138 | ;; | |
9c60689e | 8139 | |
a243b558 JF |
8140 | interix[3-9]*) |
8141 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
8142 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
8143 | ;; | |
9c60689e | 8144 | |
a243b558 JF |
8145 | irix5* | irix6* | nonstopux*) |
8146 | case $LD in | |
8147 | *-32|*"-32 ") libmagic=32-bit;; | |
8148 | *-n32|*"-n32 ") libmagic=N32;; | |
8149 | *-64|*"-64 ") libmagic=64-bit;; | |
8150 | *) libmagic=never-match;; | |
8151 | esac | |
8152 | lt_cv_deplibs_check_method=pass_all | |
8153 | ;; | |
9c60689e | 8154 | |
a243b558 | 8155 | # This must be glibc/ELF. |
9d54db95 | 8156 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
8157 | lt_cv_deplibs_check_method=pass_all |
8158 | ;; | |
9c60689e | 8159 | |
a243b558 JF |
8160 | netbsd*) |
8161 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
8162 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
8163 | else | |
8164 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
8165 | fi | |
8166 | ;; | |
9c60689e | 8167 | |
a243b558 JF |
8168 | newos6*) |
8169 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
8170 | lt_cv_file_magic_cmd=/usr/bin/file | |
8171 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
8172 | ;; | |
9c60689e | 8173 | |
a243b558 JF |
8174 | *nto* | *qnx*) |
8175 | lt_cv_deplibs_check_method=pass_all | |
8176 | ;; | |
9c60689e | 8177 | |
9d54db95 JF |
8178 | openbsd* | bitrig*) |
8179 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
a243b558 JF |
8180 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
8181 | else | |
8182 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
8183 | fi | |
8184 | ;; | |
9c60689e | 8185 | |
a243b558 JF |
8186 | osf3* | osf4* | osf5*) |
8187 | lt_cv_deplibs_check_method=pass_all | |
8188 | ;; | |
9c60689e | 8189 | |
a243b558 JF |
8190 | rdos*) |
8191 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 8192 | ;; |
a243b558 JF |
8193 | |
8194 | solaris*) | |
8195 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
8196 | ;; |
8197 | ||
a243b558 JF |
8198 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8199 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
8200 | ;; |
8201 | ||
a243b558 JF |
8202 | sysv4 | sysv4.3*) |
8203 | case $host_vendor in | |
8204 | motorola) | |
8205 | 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]' | |
8206 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
8207 | ;; | |
8208 | ncr) | |
8209 | lt_cv_deplibs_check_method=pass_all | |
8210 | ;; | |
8211 | sequent) | |
8212 | lt_cv_file_magic_cmd='/bin/file' | |
8213 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
8214 | ;; | |
8215 | sni) | |
8216 | lt_cv_file_magic_cmd='/bin/file' | |
8217 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
8218 | lt_cv_file_magic_test_file=/lib/libc.so | |
8219 | ;; | |
8220 | siemens) | |
8221 | lt_cv_deplibs_check_method=pass_all | |
8222 | ;; | |
8223 | pc) | |
8224 | lt_cv_deplibs_check_method=pass_all | |
8225 | ;; | |
8226 | esac | |
8227 | ;; | |
9c60689e | 8228 | |
a243b558 JF |
8229 | tpf*) |
8230 | lt_cv_deplibs_check_method=pass_all | |
8231 | ;; | |
9d54db95 JF |
8232 | os2*) |
8233 | lt_cv_deplibs_check_method=pass_all | |
8234 | ;; | |
a243b558 | 8235 | esac |
9c60689e | 8236 | |
a243b558 JF |
8237 | fi |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
8239 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 8240 | |
a243b558 JF |
8241 | file_magic_glob= |
8242 | want_nocaseglob=no | |
8243 | if test "$build" = "$host"; then | |
8244 | case $host_os in | |
8245 | mingw* | pw32*) | |
8246 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
8247 | want_nocaseglob=yes | |
8248 | else | |
8249 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
8250 | fi | |
8251 | ;; | |
8252 | esac | |
9c60689e | 8253 | fi |
9c60689e | 8254 | |
a243b558 JF |
8255 | file_magic_cmd=$lt_cv_file_magic_cmd |
8256 | deplibs_check_method=$lt_cv_deplibs_check_method | |
8257 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | ||
9c60689e | 8278 | |
9c60689e | 8279 | |
ee134472 | 8280 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
8281 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
8282 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8284 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8285 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
8286 | $as_echo_n "(cached) " >&6 |
8287 | else | |
a243b558 JF |
8288 | if test -n "$DLLTOOL"; then |
8289 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
8290 | else |
8291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8292 | for as_dir in $PATH | |
8293 | do | |
8294 | IFS=$as_save_IFS | |
8295 | test -z "$as_dir" && as_dir=. | |
8296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8298 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
8299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8300 | break 2 | |
8301 | fi | |
8302 | done | |
8303 | done | |
8304 | IFS=$as_save_IFS | |
8305 | ||
8306 | fi | |
8307 | fi | |
a243b558 JF |
8308 | DLLTOOL=$ac_cv_prog_DLLTOOL |
8309 | if test -n "$DLLTOOL"; then | |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
8311 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
8312 | else |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8314 | $as_echo "no" >&6; } | |
8315 | fi | |
8316 | ||
8317 | ||
8318 | fi | |
a243b558 JF |
8319 | if test -z "$ac_cv_prog_DLLTOOL"; then |
8320 | ac_ct_DLLTOOL=$DLLTOOL | |
8321 | # Extract the first word of "dlltool", so it can be a program name with args. | |
8322 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8324 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8325 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
8326 | $as_echo_n "(cached) " >&6 |
8327 | else | |
a243b558 JF |
8328 | if test -n "$ac_ct_DLLTOOL"; then |
8329 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
8330 | else |
8331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8332 | for as_dir in $PATH | |
8333 | do | |
8334 | IFS=$as_save_IFS | |
8335 | test -z "$as_dir" && as_dir=. | |
8336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8338 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
8339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8340 | break 2 | |
8341 | fi | |
8342 | done | |
8343 | done | |
8344 | IFS=$as_save_IFS | |
8345 | ||
8346 | fi | |
8347 | fi | |
a243b558 JF |
8348 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
8349 | if test -n "$ac_ct_DLLTOOL"; then | |
8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
8351 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
8352 | else |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8354 | $as_echo "no" >&6; } | |
8355 | fi | |
8356 | ||
a243b558 JF |
8357 | if test "x$ac_ct_DLLTOOL" = x; then |
8358 | DLLTOOL="false" | |
ee134472 JF |
8359 | else |
8360 | case $cross_compiling:$ac_tool_warned in | |
8361 | yes:) | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8363 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8364 | ac_tool_warned=yes ;; | |
8365 | esac | |
a243b558 | 8366 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
8367 | fi |
8368 | else | |
a243b558 | 8369 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
8370 | fi |
8371 | ||
a243b558 JF |
8372 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
8373 | ||
8374 | ||
8375 | ||
8376 | ||
8377 | ||
8378 | ||
8379 | ||
8380 | ||
8381 | ||
8382 | ||
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
8384 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
8385 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
8386 | $as_echo_n "(cached) " >&6 |
8387 | else | |
a243b558 JF |
8388 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
8389 | ||
8390 | case $host_os in | |
8391 | cygwin* | mingw* | pw32* | cegcc*) | |
9d54db95 JF |
8392 | # two different shell functions defined in ltmain.sh; |
8393 | # decide which one to use based on capabilities of $DLLTOOL | |
a243b558 JF |
8394 | case `$DLLTOOL --help 2>&1` in |
8395 | *--identify-strict*) | |
8396 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8397 | ;; | |
8398 | *) | |
8399 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8400 | ;; | |
8401 | esac | |
8402 | ;; | |
8403 | *) | |
8404 | # fallback: assume linklib IS sharedlib | |
9d54db95 | 8405 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
a243b558 JF |
8406 | ;; |
8407 | esac | |
8408 | ||
ee134472 | 8409 | fi |
a243b558 JF |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
8411 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
8412 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
8413 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
8414 | |
8415 | ||
8416 | ||
8417 | ||
8418 | ||
9c60689e | 8419 | |
a243b558 JF |
8420 | |
8421 | if test -n "$ac_tool_prefix"; then | |
8422 | for ac_prog in ar | |
8423 | do | |
8424 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
8425 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8427 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8428 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
8429 | $as_echo_n "(cached) " >&6 |
8430 | else | |
a243b558 JF |
8431 | if test -n "$AR"; then |
8432 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
8433 | else |
8434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8435 | for as_dir in $PATH | |
8436 | do | |
8437 | IFS=$as_save_IFS | |
8438 | test -z "$as_dir" && as_dir=. | |
8439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8441 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
8442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8443 | break 2 | |
8444 | fi | |
8445 | done | |
8446 | done | |
8447 | IFS=$as_save_IFS | |
8448 | ||
8449 | fi | |
8450 | fi | |
a243b558 JF |
8451 | AR=$ac_cv_prog_AR |
8452 | if test -n "$AR"; then | |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
8454 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
8455 | else |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8457 | $as_echo "no" >&6; } | |
8458 | fi | |
8459 | ||
8460 | ||
a243b558 JF |
8461 | test -n "$AR" && break |
8462 | done | |
9c60689e | 8463 | fi |
a243b558 JF |
8464 | if test -z "$AR"; then |
8465 | ac_ct_AR=$AR | |
8466 | for ac_prog in ar | |
8467 | do | |
8468 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8469 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8471 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8472 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
8473 | $as_echo_n "(cached) " >&6 |
8474 | else | |
a243b558 JF |
8475 | if test -n "$ac_ct_AR"; then |
8476 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
8477 | else |
8478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8479 | for as_dir in $PATH | |
8480 | do | |
8481 | IFS=$as_save_IFS | |
8482 | test -z "$as_dir" && as_dir=. | |
8483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8485 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
8486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8487 | break 2 | |
8488 | fi | |
8489 | done | |
8490 | done | |
8491 | IFS=$as_save_IFS | |
8492 | ||
8493 | fi | |
8494 | fi | |
a243b558 JF |
8495 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
8496 | if test -n "$ac_ct_AR"; then | |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
8498 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
8499 | else |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8501 | $as_echo "no" >&6; } | |
8502 | fi | |
8503 | ||
a243b558 JF |
8504 | |
8505 | test -n "$ac_ct_AR" && break | |
8506 | done | |
8507 | ||
8508 | if test "x$ac_ct_AR" = x; then | |
8509 | AR="false" | |
9c60689e DWT |
8510 | else |
8511 | case $cross_compiling:$ac_tool_warned in | |
8512 | yes:) | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8514 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8515 | ac_tool_warned=yes ;; | |
8516 | esac | |
a243b558 | 8517 | AR=$ac_ct_AR |
9c60689e | 8518 | fi |
a243b558 JF |
8519 | fi |
8520 | ||
8521 | : ${AR=ar} | |
8522 | : ${AR_FLAGS=cru} | |
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
8535 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
8536 | if ${lt_cv_ar_at_file+:} false; then : | |
8537 | $as_echo_n "(cached) " >&6 | |
9c60689e | 8538 | else |
a243b558 JF |
8539 | lt_cv_ar_at_file=no |
8540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8541 | /* end confdefs.h. */ | |
8542 | ||
8543 | int | |
8544 | main () | |
8545 | { | |
8546 | ||
8547 | ; | |
8548 | return 0; | |
8549 | } | |
8550 | _ACEOF | |
8551 | if ac_fn_c_try_compile "$LINENO"; then : | |
8552 | echo conftest.$ac_objext > conftest.lst | |
8553 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
8554 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
8555 | (eval $lt_ar_try) 2>&5 | |
8556 | ac_status=$? | |
8557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8558 | test $ac_status = 0; } | |
9d54db95 | 8559 | if test 0 -eq "$ac_status"; then |
a243b558 JF |
8560 | # Ensure the archiver fails upon bogus file names. |
8561 | rm -f conftest.$ac_objext libconftest.a | |
8562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
8563 | (eval $lt_ar_try) 2>&5 | |
8564 | ac_status=$? | |
8565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8566 | test $ac_status = 0; } | |
9d54db95 | 8567 | if test 0 -ne "$ac_status"; then |
a243b558 JF |
8568 | lt_cv_ar_at_file=@ |
8569 | fi | |
8570 | fi | |
8571 | rm -f conftest.* libconftest.a | |
8572 | ||
9c60689e | 8573 | fi |
a243b558 | 8574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 8575 | |
a243b558 JF |
8576 | fi |
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
8578 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
8579 | ||
9d54db95 | 8580 | if test no = "$lt_cv_ar_at_file"; then |
a243b558 JF |
8581 | archiver_list_spec= |
8582 | else | |
8583 | archiver_list_spec=$lt_cv_ar_at_file | |
8584 | fi | |
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | if test -n "$ac_tool_prefix"; then | |
8593 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
8594 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8596 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8597 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
8598 | $as_echo_n "(cached) " >&6 |
8599 | else | |
a243b558 JF |
8600 | if test -n "$STRIP"; then |
8601 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
8602 | else |
8603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8604 | for as_dir in $PATH | |
8605 | do | |
8606 | IFS=$as_save_IFS | |
8607 | test -z "$as_dir" && as_dir=. | |
8608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8610 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
8611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8612 | break 2 | |
8613 | fi | |
8614 | done | |
8615 | done | |
8616 | IFS=$as_save_IFS | |
8617 | ||
8618 | fi | |
8619 | fi | |
a243b558 JF |
8620 | STRIP=$ac_cv_prog_STRIP |
8621 | if test -n "$STRIP"; then | |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8623 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
8624 | else |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8626 | $as_echo "no" >&6; } | |
8627 | fi | |
8628 | ||
8629 | ||
8630 | fi | |
a243b558 JF |
8631 | if test -z "$ac_cv_prog_STRIP"; then |
8632 | ac_ct_STRIP=$STRIP | |
8633 | # Extract the first word of "strip", so it can be a program name with args. | |
8634 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8636 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8637 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
8638 | $as_echo_n "(cached) " >&6 |
8639 | else | |
a243b558 JF |
8640 | if test -n "$ac_ct_STRIP"; then |
8641 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
8642 | else |
8643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8644 | for as_dir in $PATH | |
8645 | do | |
8646 | IFS=$as_save_IFS | |
8647 | test -z "$as_dir" && as_dir=. | |
8648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8650 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
8651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8652 | break 2 | |
8653 | fi | |
8654 | done | |
8655 | done | |
8656 | IFS=$as_save_IFS | |
8657 | ||
8658 | fi | |
8659 | fi | |
a243b558 JF |
8660 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
8661 | if test -n "$ac_ct_STRIP"; then | |
8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
8663 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
8664 | else |
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8666 | $as_echo "no" >&6; } | |
8667 | fi | |
8668 | ||
a243b558 JF |
8669 | if test "x$ac_ct_STRIP" = x; then |
8670 | STRIP=":" | |
9c60689e DWT |
8671 | else |
8672 | case $cross_compiling:$ac_tool_warned in | |
8673 | yes:) | |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8675 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8676 | ac_tool_warned=yes ;; | |
8677 | esac | |
a243b558 | 8678 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
8679 | fi |
8680 | else | |
a243b558 | 8681 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
8682 | fi |
8683 | ||
a243b558 JF |
8684 | test -z "$STRIP" && STRIP=: |
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | if test -n "$ac_tool_prefix"; then | |
8692 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8693 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8695 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8696 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
8697 | $as_echo_n "(cached) " >&6 |
8698 | else | |
a243b558 JF |
8699 | if test -n "$RANLIB"; then |
8700 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
8701 | else |
8702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8703 | for as_dir in $PATH | |
8704 | do | |
8705 | IFS=$as_save_IFS | |
8706 | test -z "$as_dir" && as_dir=. | |
8707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8708 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8709 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
8710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8711 | break 2 | |
8712 | fi | |
8713 | done | |
8714 | done | |
8715 | IFS=$as_save_IFS | |
8716 | ||
8717 | fi | |
8718 | fi | |
a243b558 JF |
8719 | RANLIB=$ac_cv_prog_RANLIB |
8720 | if test -n "$RANLIB"; then | |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
8722 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
8723 | else |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8725 | $as_echo "no" >&6; } | |
8726 | fi | |
8727 | ||
8728 | ||
8729 | fi | |
a243b558 JF |
8730 | if test -z "$ac_cv_prog_RANLIB"; then |
8731 | ac_ct_RANLIB=$RANLIB | |
8732 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8733 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8735 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 8736 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
8737 | $as_echo_n "(cached) " >&6 |
8738 | else | |
a243b558 JF |
8739 | if test -n "$ac_ct_RANLIB"; then |
8740 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
8741 | else |
8742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8743 | for as_dir in $PATH | |
8744 | do | |
8745 | IFS=$as_save_IFS | |
8746 | test -z "$as_dir" && as_dir=. | |
8747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 8748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 8749 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
8750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8751 | break 2 | |
8752 | fi | |
8753 | done | |
8754 | done | |
8755 | IFS=$as_save_IFS | |
8756 | ||
8757 | fi | |
8758 | fi | |
a243b558 JF |
8759 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
8760 | if test -n "$ac_ct_RANLIB"; then | |
8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
8762 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
8763 | else |
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8765 | $as_echo "no" >&6; } | |
8766 | fi | |
8767 | ||
a243b558 JF |
8768 | if test "x$ac_ct_RANLIB" = x; then |
8769 | RANLIB=":" | |
9c60689e DWT |
8770 | else |
8771 | case $cross_compiling:$ac_tool_warned in | |
8772 | yes:) | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8775 | ac_tool_warned=yes ;; | |
8776 | esac | |
a243b558 | 8777 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
8778 | fi |
8779 | else | |
a243b558 | 8780 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
8781 | fi |
8782 | ||
a243b558 JF |
8783 | test -z "$RANLIB" && RANLIB=: |
8784 | ||
8785 | ||
9c60689e | 8786 | |
9c60689e DWT |
8787 | |
8788 | ||
a243b558 JF |
8789 | |
8790 | # Determine commands to create old-style static archives. | |
8791 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
8792 | old_postinstall_cmds='chmod 644 $oldlib' | |
8793 | old_postuninstall_cmds= | |
8794 | ||
8795 | if test -n "$RANLIB"; then | |
8796 | case $host_os in | |
9d54db95 | 8797 | bitrig* | openbsd*) |
a243b558 JF |
8798 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8799 | ;; | |
8800 | *) | |
8801 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
8802 | ;; | |
8803 | esac | |
8804 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
8805 | fi |
8806 | ||
a243b558 JF |
8807 | case $host_os in |
8808 | darwin*) | |
8809 | lock_old_archive_extraction=yes ;; | |
8810 | *) | |
8811 | lock_old_archive_extraction=no ;; | |
9c60689e | 8812 | esac |
9c60689e | 8813 | |
9c60689e | 8814 | |
9c60689e DWT |
8815 | |
8816 | ||
9c60689e | 8817 | |
9c60689e | 8818 | |
9c60689e DWT |
8819 | |
8820 | ||
8821 | ||
8822 | ||
8823 | ||
8824 | ||
8825 | ||
8826 | ||
8827 | ||
8828 | ||
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
8834 | ||
8835 | ||
8836 | ||
8837 | ||
8838 | ||
8839 | ||
8840 | ||
8841 | ||
8842 | ||
8843 | ||
8844 | ||
8845 | ||
53ba6704 | 8846 | |
9c60689e | 8847 | |
9c60689e | 8848 | |
9c60689e | 8849 | |
53ba6704 | 8850 | |
a243b558 JF |
8851 | |
8852 | # If no C compiler was specified, use CC. | |
8853 | LTCC=${LTCC-"$CC"} | |
8854 | ||
8855 | # If no C compiler flags were specified, use CFLAGS. | |
8856 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8857 | ||
8858 | # Allow CC to be a program name with arguments. | |
8859 | compiler=$CC | |
8860 | ||
8861 | ||
8862 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
8864 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
8865 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
8866 | $as_echo_n "(cached) " >&6 |
8867 | else | |
ee134472 | 8868 | |
a243b558 JF |
8869 | # These are sane defaults that work on at least a few old systems. |
8870 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 8871 | |
a243b558 JF |
8872 | # Character class describing NM global symbol codes. |
8873 | symcode='[BCDEGRST]' | |
9c60689e | 8874 | |
a243b558 JF |
8875 | # Regexp to match symbols that can be accessed directly from C. |
8876 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 8877 | |
a243b558 JF |
8878 | # Define system-specific variables. |
8879 | case $host_os in | |
8880 | aix*) | |
8881 | symcode='[BCDT]' | |
8882 | ;; | |
8883 | cygwin* | mingw* | pw32* | cegcc*) | |
8884 | symcode='[ABCDGISTW]' | |
8885 | ;; | |
8886 | hpux*) | |
9d54db95 | 8887 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
8888 | symcode='[ABCDEGRST]' |
8889 | fi | |
8890 | ;; | |
8891 | irix* | nonstopux*) | |
8892 | symcode='[BCDEGRST]' | |
8893 | ;; | |
8894 | osf*) | |
8895 | symcode='[BCDEGQRST]' | |
8896 | ;; | |
8897 | solaris*) | |
8898 | symcode='[BDRT]' | |
8899 | ;; | |
8900 | sco3.2v5*) | |
8901 | symcode='[DT]' | |
8902 | ;; | |
8903 | sysv4.2uw2*) | |
8904 | symcode='[DT]' | |
8905 | ;; | |
8906 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8907 | symcode='[ABDT]' | |
8908 | ;; | |
8909 | sysv4) | |
8910 | symcode='[DFNSTU]' | |
8911 | ;; | |
8912 | esac | |
9c60689e | 8913 | |
a243b558 JF |
8914 | # If we're using GNU nm, then use its standard symbol codes. |
8915 | case `$NM -V 2>&1` in | |
8916 | *GNU* | *'with BFD'*) | |
8917 | symcode='[ABCDGIRSTW]' ;; | |
8918 | esac | |
9c60689e | 8919 | |
9d54db95 JF |
8920 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
8921 | # Gets list of data symbols to import. | |
8922 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
8923 | # Adjust the below global symbol transforms to fixup imported variables. | |
8924 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
8925 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
8926 | lt_c_name_lib_hook="\ | |
8927 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
8928 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
8929 | else | |
8930 | # Disable hooks by default. | |
8931 | lt_cv_sys_global_symbol_to_import= | |
8932 | lt_cdecl_hook= | |
8933 | lt_c_name_hook= | |
8934 | lt_c_name_lib_hook= | |
8935 | fi | |
8936 | ||
a243b558 JF |
8937 | # Transform an extracted symbol line into a proper C declaration. |
8938 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8939 | # so use this general approach. | |
9d54db95 JF |
8940 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
8941 | $lt_cdecl_hook\ | |
8942 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
8943 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 8944 | |
a243b558 | 8945 | # Transform an extracted symbol line into symbol name and symbol address |
9d54db95 JF |
8946 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
8947 | $lt_c_name_hook\ | |
8948 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
8949 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
8950 | ||
8951 | # Transform an extracted symbol line into symbol name with lib prefix and | |
8952 | # symbol address. | |
8953 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
8954 | $lt_c_name_lib_hook\ | |
8955 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
8956 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
8957 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
9c60689e | 8958 | |
a243b558 JF |
8959 | # Handle CRLF in mingw tool chain |
8960 | opt_cr= | |
8961 | case $build_os in | |
8962 | mingw*) | |
8963 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8964 | ;; | |
8965 | esac | |
9c60689e | 8966 | |
a243b558 JF |
8967 | # Try without a prefix underscore, then with it. |
8968 | for ac_symprfx in "" "_"; do | |
9c60689e | 8969 | |
a243b558 JF |
8970 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
8971 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 8972 | |
a243b558 JF |
8973 | # Write the raw and C identifiers. |
8974 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9d54db95 JF |
8975 | # Fake it for dumpbin and say T for any non-static function, |
8976 | # D for any global variable and I for any imported variable. | |
a243b558 JF |
8977 | # Also find C++ and __fastcall symbols from MSVC++, |
8978 | # which start with @ or ?. | |
8979 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8980 | " {last_section=section; section=\$ 3};"\ | |
8981 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
8982 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
9d54db95 JF |
8983 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
8984 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
8985 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
a243b558 JF |
8986 | " \$ 0!~/External *\|/{next};"\ |
8987 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8988 | " {if(hide[section]) next};"\ | |
9d54db95 JF |
8989 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
8990 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
8991 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
8992 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
a243b558 JF |
8993 | " ' prfx=^$ac_symprfx" |
8994 | else | |
8995 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8996 | fi | |
8997 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 8998 | |
a243b558 JF |
8999 | # Check to see that the pipe works correctly. |
9000 | pipe_works=no | |
9c60689e | 9001 | |
00a96142 | 9002 | rm -rf conftest* |
a243b558 JF |
9003 | cat > conftest.$ac_ext <<_LT_EOF |
9004 | #ifdef __cplusplus | |
9005 | extern "C" { | |
9006 | #endif | |
9007 | char nm_test_var; | |
9008 | void nm_test_func(void); | |
9009 | void nm_test_func(void){} | |
9010 | #ifdef __cplusplus | |
9011 | } | |
9012 | #endif | |
9013 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
9014 | _LT_EOF | |
9c60689e | 9015 | |
a243b558 JF |
9016 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
9017 | (eval $ac_compile) 2>&5 | |
9018 | ac_status=$? | |
9019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9020 | test $ac_status = 0; }; then | |
9021 | # Now try to grab the symbols. | |
9022 | nlist=conftest.nm | |
9023 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
9024 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
9025 | ac_status=$? | |
9026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9027 | test $ac_status = 0; } && test -s "$nlist"; then | |
9028 | # Try sorting and uniquifying the output. | |
9029 | if sort "$nlist" | uniq > "$nlist"T; then | |
9030 | mv -f "$nlist"T "$nlist" | |
9031 | else | |
9032 | rm -f "$nlist"T | |
9033 | fi | |
9c60689e | 9034 | |
a243b558 JF |
9035 | # Make sure that we snagged all the symbols we need. |
9036 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
9037 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
9038 | cat <<_LT_EOF > conftest.$ac_ext | |
9039 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
9d54db95 JF |
9040 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
9041 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
a243b558 JF |
9042 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
9043 | # define LT_DLSYM_CONST | |
9d54db95 | 9044 | #elif defined __osf__ |
a243b558 JF |
9045 | /* This system does not cope well with relocations in const data. */ |
9046 | # define LT_DLSYM_CONST | |
9047 | #else | |
9048 | # define LT_DLSYM_CONST const | |
9049 | #endif | |
9c60689e | 9050 | |
a243b558 JF |
9051 | #ifdef __cplusplus |
9052 | extern "C" { | |
9053 | #endif | |
9c60689e | 9054 | |
a243b558 JF |
9055 | _LT_EOF |
9056 | # Now generate the symbol file. | |
9057 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 9058 | |
a243b558 | 9059 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 9060 | |
a243b558 JF |
9061 | /* The mapping between symbol names and symbols. */ |
9062 | LT_DLSYM_CONST struct { | |
9063 | const char *name; | |
9064 | void *address; | |
9065 | } | |
9066 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
9067 | { | |
9068 | { "@PROGRAM@", (void *) 0 }, | |
9069 | _LT_EOF | |
9d54db95 | 9070 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
a243b558 JF |
9071 | cat <<\_LT_EOF >> conftest.$ac_ext |
9072 | {0, (void *) 0} | |
9073 | }; | |
9c60689e | 9074 | |
a243b558 JF |
9075 | /* This works around a problem in FreeBSD linker */ |
9076 | #ifdef FREEBSD_WORKAROUND | |
9077 | static const void *lt_preloaded_setup() { | |
9078 | return lt__PROGRAM__LTX_preloaded_symbols; | |
9079 | } | |
9080 | #endif | |
9c60689e | 9081 | |
a243b558 JF |
9082 | #ifdef __cplusplus |
9083 | } | |
9084 | #endif | |
9085 | _LT_EOF | |
9086 | # Now try linking the two files. | |
9087 | mv conftest.$ac_objext conftstm.$ac_objext | |
9088 | lt_globsym_save_LIBS=$LIBS | |
9089 | lt_globsym_save_CFLAGS=$CFLAGS | |
9d54db95 | 9090 | LIBS=conftstm.$ac_objext |
a243b558 JF |
9091 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
9092 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9093 | (eval $ac_link) 2>&5 | |
9094 | ac_status=$? | |
9095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 9096 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
a243b558 JF |
9097 | pipe_works=yes |
9098 | fi | |
9099 | LIBS=$lt_globsym_save_LIBS | |
9100 | CFLAGS=$lt_globsym_save_CFLAGS | |
9101 | else | |
9102 | echo "cannot find nm_test_func in $nlist" >&5 | |
9103 | fi | |
9104 | else | |
9105 | echo "cannot find nm_test_var in $nlist" >&5 | |
9106 | fi | |
9107 | else | |
9108 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
9109 | fi | |
9110 | else | |
9111 | echo "$progname: failed program was:" >&5 | |
9112 | cat conftest.$ac_ext >&5 | |
9113 | fi | |
9114 | rm -rf conftest* conftst* | |
9c60689e | 9115 | |
a243b558 | 9116 | # Do not use the global_symbol_pipe unless it works. |
9d54db95 | 9117 | if test yes = "$pipe_works"; then |
a243b558 JF |
9118 | break |
9119 | else | |
9120 | lt_cv_sys_global_symbol_pipe= | |
9121 | fi | |
9122 | done | |
9c60689e | 9123 | |
9c60689e | 9124 | fi |
9c60689e | 9125 | |
a243b558 JF |
9126 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
9127 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 9128 | fi |
a243b558 JF |
9129 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
9131 | $as_echo "failed" >&6; } | |
9c60689e | 9132 | else |
a243b558 JF |
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9134 | $as_echo "ok" >&6; } | |
9c60689e DWT |
9135 | fi |
9136 | ||
a243b558 JF |
9137 | # Response file support. |
9138 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9139 | nm_file_list_spec='@' | |
9140 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
9141 | nm_file_list_spec='@' | |
9c60689e | 9142 | fi |
9c60689e | 9143 | |
9c60689e | 9144 | |
9c60689e | 9145 | |
9c60689e | 9146 | |
9c60689e | 9147 | |
9c60689e DWT |
9148 | |
9149 | ||
9c60689e | 9150 | |
9c60689e | 9151 | |
9c60689e DWT |
9152 | |
9153 | ||
9154 | ||
ee134472 JF |
9155 | |
9156 | ||
9c60689e DWT |
9157 | |
9158 | ||
9d54db95 JF |
9159 | |
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9c60689e DWT |
9169 | |
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
549f29b5 | 9176 | |
549f29b5 DWT |
9177 | |
9178 | ||
549f29b5 | 9179 | |
a243b558 JF |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
9181 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 9182 | |
a243b558 JF |
9183 | # Check whether --with-sysroot was given. |
9184 | if test "${with_sysroot+set}" = set; then : | |
9185 | withval=$with_sysroot; | |
9c60689e | 9186 | else |
a243b558 | 9187 | with_sysroot=no |
9c60689e DWT |
9188 | fi |
9189 | ||
9190 | ||
a243b558 | 9191 | lt_sysroot= |
9d54db95 | 9192 | case $with_sysroot in #( |
a243b558 | 9193 | yes) |
9d54db95 | 9194 | if test yes = "$GCC"; then |
a243b558 JF |
9195 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
9196 | fi | |
9197 | ;; #( | |
9198 | /*) | |
9199 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
9200 | ;; #( | |
9201 | no|'') | |
9202 | ;; #( | |
9203 | *) | |
9d54db95 JF |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
9205 | $as_echo "$with_sysroot" >&6; } | |
a243b558 JF |
9206 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
9207 | ;; | |
9208 | esac | |
9c60689e | 9209 | |
a243b558 JF |
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
9211 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
9212 | |
9213 | ||
9214 | ||
9215 | ||
9216 | ||
9d54db95 JF |
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
9218 | $as_echo_n "checking for a working dd... " >&6; } | |
9219 | if ${ac_cv_path_lt_DD+:} false; then : | |
9220 | $as_echo_n "(cached) " >&6 | |
9221 | else | |
9222 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
9223 | cat conftest.i conftest.i >conftest2.i | |
9224 | : ${lt_DD:=$DD} | |
9225 | if test -z "$lt_DD"; then | |
9226 | ac_path_lt_DD_found=false | |
9227 | # Loop through the user's path and test for each of PROGNAME-LIST | |
9228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9229 | for as_dir in $PATH | |
9230 | do | |
9231 | IFS=$as_save_IFS | |
9232 | test -z "$as_dir" && as_dir=. | |
9233 | for ac_prog in dd; do | |
9234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9235 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
9236 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
9237 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
9238 | cmp -s conftest.i conftest.out \ | |
9239 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
9240 | fi | |
9241 | $ac_path_lt_DD_found && break 3 | |
9242 | done | |
9243 | done | |
9244 | done | |
9245 | IFS=$as_save_IFS | |
9246 | if test -z "$ac_cv_path_lt_DD"; then | |
9247 | : | |
9248 | fi | |
9249 | else | |
9250 | ac_cv_path_lt_DD=$lt_DD | |
9251 | fi | |
9252 | ||
9253 | rm -f conftest.i conftest2.i conftest.out | |
9254 | fi | |
9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
9256 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
9257 | ||
9258 | ||
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
9260 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
9261 | if ${lt_cv_truncate_bin+:} false; then : | |
9262 | $as_echo_n "(cached) " >&6 | |
9263 | else | |
9264 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
9265 | cat conftest.i conftest.i >conftest2.i | |
9266 | lt_cv_truncate_bin= | |
9267 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
9268 | cmp -s conftest.i conftest.out \ | |
9269 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
9270 | fi | |
9271 | rm -f conftest.i conftest2.i conftest.out | |
9272 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
9273 | fi | |
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
9275 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
9284 | func_cc_basename () | |
9285 | { | |
9286 | for cc_temp in $*""; do | |
9287 | case $cc_temp in | |
9288 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9289 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9290 | \-*) ;; | |
9291 | *) break;; | |
9292 | esac | |
9293 | done | |
9294 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9295 | } | |
9296 | ||
a243b558 JF |
9297 | # Check whether --enable-libtool-lock was given. |
9298 | if test "${enable_libtool_lock+set}" = set; then : | |
9299 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
9300 | fi |
9301 | ||
9d54db95 | 9302 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
9c60689e | 9303 | |
a243b558 JF |
9304 | # Some flags need to be propagated to the compiler or linker for good |
9305 | # libtool support. | |
9306 | case $host in | |
9307 | ia64-*-hpux*) | |
9d54db95 JF |
9308 | # Find out what ABI is being produced by ac_compile, and set mode |
9309 | # options accordingly. | |
a243b558 JF |
9310 | echo 'int i;' > conftest.$ac_ext |
9311 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9312 | (eval $ac_compile) 2>&5 | |
9313 | ac_status=$? | |
9314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9315 | test $ac_status = 0; }; then | |
9316 | case `/usr/bin/file conftest.$ac_objext` in | |
9317 | *ELF-32*) | |
9d54db95 | 9318 | HPUX_IA64_MODE=32 |
a243b558 JF |
9319 | ;; |
9320 | *ELF-64*) | |
9d54db95 | 9321 | HPUX_IA64_MODE=64 |
a243b558 JF |
9322 | ;; |
9323 | esac | |
9324 | fi | |
9325 | rm -rf conftest* | |
9326 | ;; | |
9327 | *-*-irix6*) | |
9d54db95 JF |
9328 | # Find out what ABI is being produced by ac_compile, and set linker |
9329 | # options accordingly. | |
a243b558 JF |
9330 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
9331 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9332 | (eval $ac_compile) 2>&5 | |
9333 | ac_status=$? | |
9334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9335 | test $ac_status = 0; }; then | |
9d54db95 | 9336 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
9337 | case `/usr/bin/file conftest.$ac_objext` in |
9338 | *32-bit*) | |
9339 | LD="${LD-ld} -melf32bsmip" | |
9340 | ;; | |
9341 | *N32*) | |
9342 | LD="${LD-ld} -melf32bmipn32" | |
9343 | ;; | |
9344 | *64-bit*) | |
9345 | LD="${LD-ld} -melf64bmip" | |
9346 | ;; | |
9347 | esac | |
9348 | else | |
9349 | case `/usr/bin/file conftest.$ac_objext` in | |
9350 | *32-bit*) | |
9351 | LD="${LD-ld} -32" | |
9352 | ;; | |
9353 | *N32*) | |
9354 | LD="${LD-ld} -n32" | |
9355 | ;; | |
9356 | *64-bit*) | |
9357 | LD="${LD-ld} -64" | |
9358 | ;; | |
9359 | esac | |
9360 | fi | |
9361 | fi | |
9362 | rm -rf conftest* | |
9363 | ;; | |
9c60689e | 9364 | |
9d54db95 JF |
9365 | mips64*-*linux*) |
9366 | # Find out what ABI is being produced by ac_compile, and set linker | |
9367 | # options accordingly. | |
9368 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
9369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9370 | (eval $ac_compile) 2>&5 | |
9371 | ac_status=$? | |
9372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9373 | test $ac_status = 0; }; then | |
9374 | emul=elf | |
9375 | case `/usr/bin/file conftest.$ac_objext` in | |
9376 | *32-bit*) | |
9377 | emul="${emul}32" | |
9378 | ;; | |
9379 | *64-bit*) | |
9380 | emul="${emul}64" | |
9381 | ;; | |
9382 | esac | |
9383 | case `/usr/bin/file conftest.$ac_objext` in | |
9384 | *MSB*) | |
9385 | emul="${emul}btsmip" | |
9386 | ;; | |
9387 | *LSB*) | |
9388 | emul="${emul}ltsmip" | |
9389 | ;; | |
9390 | esac | |
9391 | case `/usr/bin/file conftest.$ac_objext` in | |
9392 | *N32*) | |
9393 | emul="${emul}n32" | |
9394 | ;; | |
9395 | esac | |
9396 | LD="${LD-ld} -m $emul" | |
9397 | fi | |
9398 | rm -rf conftest* | |
9399 | ;; | |
9400 | ||
9401 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
a243b558 | 9402 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
9d54db95 JF |
9403 | # Find out what ABI is being produced by ac_compile, and set linker |
9404 | # options accordingly. Note that the listed cases only cover the | |
9405 | # situations where additional linker options are needed (such as when | |
9406 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
9407 | # vice versa); the common cases where no linker options are needed do | |
9408 | # not appear in the list. | |
a243b558 JF |
9409 | echo 'int i;' > conftest.$ac_ext |
9410 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9411 | (eval $ac_compile) 2>&5 | |
9412 | ac_status=$? | |
9413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9414 | test $ac_status = 0; }; then | |
9415 | case `/usr/bin/file conftest.o` in | |
9416 | *32-bit*) | |
9417 | case $host in | |
9418 | x86_64-*kfreebsd*-gnu) | |
9419 | LD="${LD-ld} -m elf_i386_fbsd" | |
9420 | ;; | |
9421 | x86_64-*linux*) | |
9d54db95 JF |
9422 | case `/usr/bin/file conftest.o` in |
9423 | *x86-64*) | |
9424 | LD="${LD-ld} -m elf32_x86_64" | |
9425 | ;; | |
9426 | *) | |
9427 | LD="${LD-ld} -m elf_i386" | |
9428 | ;; | |
9429 | esac | |
a243b558 | 9430 | ;; |
9d54db95 JF |
9431 | powerpc64le-*linux*) |
9432 | LD="${LD-ld} -m elf32lppclinux" | |
9433 | ;; | |
9434 | powerpc64-*linux*) | |
a243b558 JF |
9435 | LD="${LD-ld} -m elf32ppclinux" |
9436 | ;; | |
9437 | s390x-*linux*) | |
9438 | LD="${LD-ld} -m elf_s390" | |
9439 | ;; | |
9440 | sparc64-*linux*) | |
9441 | LD="${LD-ld} -m elf32_sparc" | |
9442 | ;; | |
9443 | esac | |
9444 | ;; | |
9445 | *64-bit*) | |
9446 | case $host in | |
9447 | x86_64-*kfreebsd*-gnu) | |
9448 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
9449 | ;; | |
9450 | x86_64-*linux*) | |
9451 | LD="${LD-ld} -m elf_x86_64" | |
9452 | ;; | |
9d54db95 JF |
9453 | powerpcle-*linux*) |
9454 | LD="${LD-ld} -m elf64lppc" | |
9455 | ;; | |
9456 | powerpc-*linux*) | |
a243b558 JF |
9457 | LD="${LD-ld} -m elf64ppc" |
9458 | ;; | |
9459 | s390*-*linux*|s390*-*tpf*) | |
9460 | LD="${LD-ld} -m elf64_s390" | |
9461 | ;; | |
9462 | sparc*-*linux*) | |
9463 | LD="${LD-ld} -m elf64_sparc" | |
9464 | ;; | |
9465 | esac | |
9466 | ;; | |
9467 | esac | |
9468 | fi | |
9469 | rm -rf conftest* | |
9470 | ;; | |
9c60689e | 9471 | |
a243b558 JF |
9472 | *-*-sco3.2v5*) |
9473 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
9d54db95 | 9474 | SAVE_CFLAGS=$CFLAGS |
a243b558 JF |
9475 | CFLAGS="$CFLAGS -belf" |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
9477 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
9478 | if ${lt_cv_cc_needs_belf+:} false; then : | |
9479 | $as_echo_n "(cached) " >&6 | |
9480 | else | |
9481 | ac_ext=c | |
9482 | ac_cpp='$CPP $CPPFLAGS' | |
9483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 9486 | |
a243b558 JF |
9487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9488 | /* end confdefs.h. */ | |
9c60689e | 9489 | |
a243b558 JF |
9490 | int |
9491 | main () | |
9492 | { | |
9c60689e | 9493 | |
a243b558 JF |
9494 | ; |
9495 | return 0; | |
9496 | } | |
9497 | _ACEOF | |
9498 | if ac_fn_c_try_link "$LINENO"; then : | |
9499 | lt_cv_cc_needs_belf=yes | |
9c60689e | 9500 | else |
a243b558 | 9501 | lt_cv_cc_needs_belf=no |
9c60689e | 9502 | fi |
a243b558 JF |
9503 | rm -f core conftest.err conftest.$ac_objext \ |
9504 | conftest$ac_exeext conftest.$ac_ext | |
9505 | ac_ext=c | |
9506 | ac_cpp='$CPP $CPPFLAGS' | |
9507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 9510 | |
a243b558 JF |
9511 | fi |
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
9513 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
9d54db95 | 9514 | if test yes != "$lt_cv_cc_needs_belf"; then |
a243b558 | 9515 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
9d54db95 | 9516 | CFLAGS=$SAVE_CFLAGS |
a243b558 JF |
9517 | fi |
9518 | ;; | |
9519 | *-*solaris*) | |
9d54db95 JF |
9520 | # Find out what ABI is being produced by ac_compile, and set linker |
9521 | # options accordingly. | |
a243b558 JF |
9522 | echo 'int i;' > conftest.$ac_ext |
9523 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9524 | (eval $ac_compile) 2>&5 | |
9525 | ac_status=$? | |
9526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9527 | test $ac_status = 0; }; then | |
9528 | case `/usr/bin/file conftest.o` in | |
9529 | *64-bit*) | |
9530 | case $lt_cv_prog_gnu_ld in | |
9531 | yes*) | |
9532 | case $host in | |
9d54db95 | 9533 | i?86-*-solaris*|x86_64-*-solaris*) |
a243b558 JF |
9534 | LD="${LD-ld} -m elf_x86_64" |
9535 | ;; | |
9536 | sparc*-*-solaris*) | |
9537 | LD="${LD-ld} -m elf64_sparc" | |
9538 | ;; | |
9539 | esac | |
9540 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
9541 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
9d54db95 | 9542 | LD=${LD-ld}_sol2 |
a243b558 JF |
9543 | fi |
9544 | ;; | |
9545 | *) | |
9546 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
9547 | LD="${LD-ld} -64" | |
9548 | fi | |
9549 | ;; | |
9550 | esac | |
9551 | ;; | |
9552 | esac | |
9553 | fi | |
9554 | rm -rf conftest* | |
9555 | ;; | |
9556 | esac | |
9c60689e | 9557 | |
9d54db95 | 9558 | need_locks=$enable_libtool_lock |
9c60689e | 9559 | |
a243b558 JF |
9560 | if test -n "$ac_tool_prefix"; then |
9561 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
9562 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9564 | $as_echo_n "checking for $ac_word... " >&6; } | |
9565 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
9566 | $as_echo_n "(cached) " >&6 | |
9567 | else | |
9568 | if test -n "$MANIFEST_TOOL"; then | |
9569 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
9570 | else | |
9571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9572 | for as_dir in $PATH | |
9573 | do | |
9574 | IFS=$as_save_IFS | |
9575 | test -z "$as_dir" && as_dir=. | |
9576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9578 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
9579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9580 | break 2 | |
9581 | fi | |
9582 | done | |
9583 | done | |
9584 | IFS=$as_save_IFS | |
9c60689e | 9585 | |
a243b558 JF |
9586 | fi |
9587 | fi | |
9588 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
9589 | if test -n "$MANIFEST_TOOL"; then | |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
9591 | $as_echo "$MANIFEST_TOOL" >&6; } | |
9592 | else | |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9594 | $as_echo "no" >&6; } | |
9595 | fi | |
9c60689e DWT |
9596 | |
9597 | ||
a243b558 JF |
9598 | fi |
9599 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
9600 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
9601 | # Extract the first word of "mt", so it can be a program name with args. | |
9602 | set dummy mt; ac_word=$2 | |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9604 | $as_echo_n "checking for $ac_word... " >&6; } | |
9605 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
9606 | $as_echo_n "(cached) " >&6 | |
9607 | else | |
9608 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
9609 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
9610 | else | |
9611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9612 | for as_dir in $PATH | |
9613 | do | |
9614 | IFS=$as_save_IFS | |
9615 | test -z "$as_dir" && as_dir=. | |
9616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9617 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9618 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
9619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9620 | break 2 | |
9621 | fi | |
9622 | done | |
9623 | done | |
9624 | IFS=$as_save_IFS | |
9c60689e | 9625 | |
a243b558 JF |
9626 | fi |
9627 | fi | |
9628 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
9629 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
9631 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
9632 | else | |
9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9634 | $as_echo "no" >&6; } | |
9635 | fi | |
9c60689e | 9636 | |
a243b558 JF |
9637 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
9638 | MANIFEST_TOOL=":" | |
9639 | else | |
9640 | case $cross_compiling:$ac_tool_warned in | |
9641 | yes:) | |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9643 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9644 | ac_tool_warned=yes ;; | |
9645 | esac | |
9646 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
9647 | fi | |
9648 | else | |
9649 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
9650 | fi | |
9c60689e | 9651 | |
a243b558 JF |
9652 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
9654 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
9655 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
9656 | $as_echo_n "(cached) " >&6 | |
9657 | else | |
9658 | lt_cv_path_mainfest_tool=no | |
9659 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
9660 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
9661 | cat conftest.err >&5 | |
9662 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
9663 | lt_cv_path_mainfest_tool=yes | |
9664 | fi | |
00a96142 | 9665 | rm -rf conftest* |
a243b558 JF |
9666 | fi |
9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
9668 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
9d54db95 | 9669 | if test yes != "$lt_cv_path_mainfest_tool"; then |
a243b558 JF |
9670 | MANIFEST_TOOL=: |
9671 | fi | |
9c60689e DWT |
9672 | |
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
a243b558 JF |
9678 | case $host_os in |
9679 | rhapsody* | darwin*) | |
9680 | if test -n "$ac_tool_prefix"; then | |
9681 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
9682 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9684 | $as_echo_n "checking for $ac_word... " >&6; } | |
9685 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
9686 | $as_echo_n "(cached) " >&6 | |
9687 | else | |
9688 | if test -n "$DSYMUTIL"; then | |
9689 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
9690 | else | |
9691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9692 | for as_dir in $PATH | |
9693 | do | |
9694 | IFS=$as_save_IFS | |
9695 | test -z "$as_dir" && as_dir=. | |
9696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9698 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
9699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9700 | break 2 | |
9701 | fi | |
9702 | done | |
9703 | done | |
9704 | IFS=$as_save_IFS | |
9c60689e | 9705 | |
a243b558 JF |
9706 | fi |
9707 | fi | |
9708 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
9709 | if test -n "$DSYMUTIL"; then | |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
9711 | $as_echo "$DSYMUTIL" >&6; } | |
9712 | else | |
9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9714 | $as_echo "no" >&6; } | |
9715 | fi | |
9c60689e DWT |
9716 | |
9717 | ||
9c60689e | 9718 | fi |
a243b558 JF |
9719 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
9720 | ac_ct_DSYMUTIL=$DSYMUTIL | |
9721 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
9722 | set dummy dsymutil; ac_word=$2 | |
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9724 | $as_echo_n "checking for $ac_word... " >&6; } | |
9725 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
9726 | $as_echo_n "(cached) " >&6 |
9727 | else | |
a243b558 JF |
9728 | if test -n "$ac_ct_DSYMUTIL"; then |
9729 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 9730 | else |
a243b558 JF |
9731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9732 | for as_dir in $PATH | |
9733 | do | |
9734 | IFS=$as_save_IFS | |
9735 | test -z "$as_dir" && as_dir=. | |
9736 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9738 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
9739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9740 | break 2 | |
9741 | fi | |
9742 | done | |
9743 | done | |
9744 | IFS=$as_save_IFS | |
9745 | ||
9c60689e | 9746 | fi |
9c60689e | 9747 | fi |
a243b558 JF |
9748 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
9749 | if test -n "$ac_ct_DSYMUTIL"; then | |
9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
9751 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
9752 | else | |
9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9754 | $as_echo "no" >&6; } | |
9755 | fi | |
9c60689e | 9756 | |
a243b558 JF |
9757 | if test "x$ac_ct_DSYMUTIL" = x; then |
9758 | DSYMUTIL=":" | |
9759 | else | |
9760 | case $cross_compiling:$ac_tool_warned in | |
9761 | yes:) | |
9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9764 | ac_tool_warned=yes ;; | |
9c60689e | 9765 | esac |
a243b558 JF |
9766 | DSYMUTIL=$ac_ct_DSYMUTIL |
9767 | fi | |
9768 | else | |
9769 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
9770 | fi | |
9c60689e | 9771 | |
a243b558 JF |
9772 | if test -n "$ac_tool_prefix"; then |
9773 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
9774 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9776 | $as_echo_n "checking for $ac_word... " >&6; } | |
9777 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
9778 | $as_echo_n "(cached) " >&6 |
9779 | else | |
a243b558 JF |
9780 | if test -n "$NMEDIT"; then |
9781 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
9782 | else | |
9783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9784 | for as_dir in $PATH | |
9785 | do | |
9786 | IFS=$as_save_IFS | |
9787 | test -z "$as_dir" && as_dir=. | |
9788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9790 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
9791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9792 | break 2 | |
9793 | fi | |
9794 | done | |
9c60689e | 9795 | done |
a243b558 | 9796 | IFS=$as_save_IFS |
9c60689e | 9797 | |
a243b558 JF |
9798 | fi |
9799 | fi | |
9800 | NMEDIT=$ac_cv_prog_NMEDIT | |
9801 | if test -n "$NMEDIT"; then | |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
9803 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
9804 | else |
9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9806 | $as_echo "no" >&6; } | |
9807 | fi | |
9808 | ||
9809 | ||
a243b558 JF |
9810 | fi |
9811 | if test -z "$ac_cv_prog_NMEDIT"; then | |
9812 | ac_ct_NMEDIT=$NMEDIT | |
9813 | # Extract the first word of "nmedit", so it can be a program name with args. | |
9814 | set dummy nmedit; ac_word=$2 | |
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9816 | $as_echo_n "checking for $ac_word... " >&6; } | |
9817 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
9818 | $as_echo_n "(cached) " >&6 |
9819 | else | |
a243b558 JF |
9820 | if test -n "$ac_ct_NMEDIT"; then |
9821 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
9822 | else | |
9823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9824 | for as_dir in $PATH | |
9825 | do | |
9826 | IFS=$as_save_IFS | |
9827 | test -z "$as_dir" && as_dir=. | |
9828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9830 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
9831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9832 | break 2 | |
9833 | fi | |
9834 | done | |
9c60689e | 9835 | done |
a243b558 | 9836 | IFS=$as_save_IFS |
9c60689e | 9837 | |
a243b558 JF |
9838 | fi |
9839 | fi | |
9840 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
9841 | if test -n "$ac_ct_NMEDIT"; then | |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
9843 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
9844 | else |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9846 | $as_echo "no" >&6; } | |
9847 | fi | |
9848 | ||
a243b558 JF |
9849 | if test "x$ac_ct_NMEDIT" = x; then |
9850 | NMEDIT=":" | |
9c60689e | 9851 | else |
a243b558 JF |
9852 | case $cross_compiling:$ac_tool_warned in |
9853 | yes:) | |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9856 | ac_tool_warned=yes ;; | |
9857 | esac | |
9858 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 9859 | fi |
a243b558 JF |
9860 | else |
9861 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
9862 | fi |
9863 | ||
a243b558 JF |
9864 | if test -n "$ac_tool_prefix"; then |
9865 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
9866 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9868 | $as_echo_n "checking for $ac_word... " >&6; } | |
9869 | if ${ac_cv_prog_LIPO+:} false; then : | |
9870 | $as_echo_n "(cached) " >&6 | |
9871 | else | |
9872 | if test -n "$LIPO"; then | |
9873 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9874 | else | |
9875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9876 | for as_dir in $PATH | |
9877 | do | |
9878 | IFS=$as_save_IFS | |
9879 | test -z "$as_dir" && as_dir=. | |
9880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9882 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
9883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9884 | break 2 | |
9885 | fi | |
9886 | done | |
9887 | done | |
9888 | IFS=$as_save_IFS | |
9c60689e | 9889 | |
a243b558 JF |
9890 | fi |
9891 | fi | |
9892 | LIPO=$ac_cv_prog_LIPO | |
9893 | if test -n "$LIPO"; then | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
9895 | $as_echo "$LIPO" >&6; } | |
9896 | else | |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9898 | $as_echo "no" >&6; } | |
9899 | fi | |
9c60689e | 9900 | |
9c60689e | 9901 | |
a243b558 JF |
9902 | fi |
9903 | if test -z "$ac_cv_prog_LIPO"; then | |
9904 | ac_ct_LIPO=$LIPO | |
9905 | # Extract the first word of "lipo", so it can be a program name with args. | |
9906 | set dummy lipo; ac_word=$2 | |
9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9908 | $as_echo_n "checking for $ac_word... " >&6; } | |
9909 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
9910 | $as_echo_n "(cached) " >&6 |
9911 | else | |
a243b558 JF |
9912 | if test -n "$ac_ct_LIPO"; then |
9913 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
9914 | else | |
9915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9916 | for as_dir in $PATH | |
9917 | do | |
9918 | IFS=$as_save_IFS | |
9919 | test -z "$as_dir" && as_dir=. | |
9920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9922 | ac_cv_prog_ac_ct_LIPO="lipo" | |
9923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9924 | break 2 | |
9925 | fi | |
9926 | done | |
9927 | done | |
9928 | IFS=$as_save_IFS | |
9c60689e DWT |
9929 | |
9930 | fi | |
a243b558 JF |
9931 | fi |
9932 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
9933 | if test -n "$ac_ct_LIPO"; then | |
9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
9935 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 9936 | else |
a243b558 JF |
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9938 | $as_echo "no" >&6; } | |
9c60689e DWT |
9939 | fi |
9940 | ||
a243b558 JF |
9941 | if test "x$ac_ct_LIPO" = x; then |
9942 | LIPO=":" | |
9943 | else | |
9944 | case $cross_compiling:$ac_tool_warned in | |
9945 | yes:) | |
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9947 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9948 | ac_tool_warned=yes ;; | |
9949 | esac | |
9950 | LIPO=$ac_ct_LIPO | |
9951 | fi | |
9952 | else | |
9953 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
9954 | fi |
9955 | ||
a243b558 JF |
9956 | if test -n "$ac_tool_prefix"; then |
9957 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
9958 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9960 | $as_echo_n "checking for $ac_word... " >&6; } | |
9961 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9962 | $as_echo_n "(cached) " >&6 | |
9963 | else | |
9964 | if test -n "$OTOOL"; then | |
9965 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9966 | else | |
9967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9968 | for as_dir in $PATH | |
9969 | do | |
9970 | IFS=$as_save_IFS | |
9971 | test -z "$as_dir" && as_dir=. | |
9972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9974 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
9975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9976 | break 2 | |
9977 | fi | |
9978 | done | |
9979 | done | |
9980 | IFS=$as_save_IFS | |
9c60689e | 9981 | |
a243b558 JF |
9982 | fi |
9983 | fi | |
9984 | OTOOL=$ac_cv_prog_OTOOL | |
9985 | if test -n "$OTOOL"; then | |
9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9987 | $as_echo "$OTOOL" >&6; } | |
9988 | else | |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9990 | $as_echo "no" >&6; } | |
9991 | fi | |
9c60689e DWT |
9992 | |
9993 | ||
a243b558 JF |
9994 | fi |
9995 | if test -z "$ac_cv_prog_OTOOL"; then | |
9996 | ac_ct_OTOOL=$OTOOL | |
9997 | # Extract the first word of "otool", so it can be a program name with args. | |
9998 | set dummy otool; ac_word=$2 | |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10000 | $as_echo_n "checking for $ac_word... " >&6; } | |
10001 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
10002 | $as_echo_n "(cached) " >&6 | |
10003 | else | |
10004 | if test -n "$ac_ct_OTOOL"; then | |
10005 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
10006 | else | |
10007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10008 | for as_dir in $PATH | |
10009 | do | |
10010 | IFS=$as_save_IFS | |
10011 | test -z "$as_dir" && as_dir=. | |
10012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10014 | ac_cv_prog_ac_ct_OTOOL="otool" | |
10015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10016 | break 2 | |
10017 | fi | |
10018 | done | |
10019 | done | |
10020 | IFS=$as_save_IFS | |
9c60689e | 10021 | |
a243b558 JF |
10022 | fi |
10023 | fi | |
10024 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
10025 | if test -n "$ac_ct_OTOOL"; then | |
10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
10027 | $as_echo "$ac_ct_OTOOL" >&6; } | |
10028 | else | |
10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10030 | $as_echo "no" >&6; } | |
10031 | fi | |
9c60689e | 10032 | |
a243b558 JF |
10033 | if test "x$ac_ct_OTOOL" = x; then |
10034 | OTOOL=":" | |
10035 | else | |
10036 | case $cross_compiling:$ac_tool_warned in | |
10037 | yes:) | |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10039 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10040 | ac_tool_warned=yes ;; | |
10041 | esac | |
10042 | OTOOL=$ac_ct_OTOOL | |
10043 | fi | |
10044 | else | |
10045 | OTOOL="$ac_cv_prog_OTOOL" | |
10046 | fi | |
9c60689e | 10047 | |
a243b558 JF |
10048 | if test -n "$ac_tool_prefix"; then |
10049 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
10050 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10052 | $as_echo_n "checking for $ac_word... " >&6; } | |
10053 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
10054 | $as_echo_n "(cached) " >&6 | |
10055 | else | |
10056 | if test -n "$OTOOL64"; then | |
10057 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
10058 | else | |
10059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10060 | for as_dir in $PATH | |
10061 | do | |
10062 | IFS=$as_save_IFS | |
10063 | test -z "$as_dir" && as_dir=. | |
10064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10066 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
10067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10068 | break 2 | |
10069 | fi | |
10070 | done | |
10071 | done | |
10072 | IFS=$as_save_IFS | |
9c60689e | 10073 | |
a243b558 JF |
10074 | fi |
10075 | fi | |
10076 | OTOOL64=$ac_cv_prog_OTOOL64 | |
10077 | if test -n "$OTOOL64"; then | |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
10079 | $as_echo "$OTOOL64" >&6; } | |
10080 | else | |
10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10082 | $as_echo "no" >&6; } | |
10083 | fi | |
9c60689e | 10084 | |
9c60689e | 10085 | |
a243b558 JF |
10086 | fi |
10087 | if test -z "$ac_cv_prog_OTOOL64"; then | |
10088 | ac_ct_OTOOL64=$OTOOL64 | |
10089 | # Extract the first word of "otool64", so it can be a program name with args. | |
10090 | set dummy otool64; ac_word=$2 | |
10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10092 | $as_echo_n "checking for $ac_word... " >&6; } | |
10093 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
10094 | $as_echo_n "(cached) " >&6 | |
10095 | else | |
10096 | if test -n "$ac_ct_OTOOL64"; then | |
10097 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
10098 | else | |
10099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10100 | for as_dir in $PATH | |
10101 | do | |
10102 | IFS=$as_save_IFS | |
10103 | test -z "$as_dir" && as_dir=. | |
10104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10106 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
10107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10108 | break 2 | |
10109 | fi | |
10110 | done | |
10111 | done | |
10112 | IFS=$as_save_IFS | |
9c60689e | 10113 | |
a243b558 JF |
10114 | fi |
10115 | fi | |
10116 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
10117 | if test -n "$ac_ct_OTOOL64"; then | |
10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
10119 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
10120 | else | |
10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10122 | $as_echo "no" >&6; } | |
10123 | fi | |
9c60689e | 10124 | |
a243b558 JF |
10125 | if test "x$ac_ct_OTOOL64" = x; then |
10126 | OTOOL64=":" | |
10127 | else | |
10128 | case $cross_compiling:$ac_tool_warned in | |
10129 | yes:) | |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10131 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10132 | ac_tool_warned=yes ;; | |
10133 | esac | |
10134 | OTOOL64=$ac_ct_OTOOL64 | |
10135 | fi | |
10136 | else | |
10137 | OTOOL64="$ac_cv_prog_OTOOL64" | |
10138 | fi | |
ee134472 | 10139 | |
9c60689e | 10140 | |
9c60689e | 10141 | |
9c60689e | 10142 | |
9c60689e | 10143 | |
9c60689e | 10144 | |
ee134472 | 10145 | |
9c60689e | 10146 | |
9c60689e | 10147 | |
9c60689e | 10148 | |
9c60689e | 10149 | |
9c60689e | 10150 | |
9c60689e | 10151 | |
9c60689e | 10152 | |
9c60689e | 10153 | |
9c60689e | 10154 | |
9c60689e | 10155 | |
9c60689e | 10156 | |
9c60689e | 10157 | |
9c60689e | 10158 | |
9c60689e | 10159 | |
9c60689e | 10160 | |
9c60689e | 10161 | |
9c60689e | 10162 | |
9c60689e | 10163 | |
a243b558 JF |
10164 | |
10165 | ||
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
10167 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
10168 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
10169 | $as_echo_n "(cached) " >&6 |
10170 | else | |
a243b558 | 10171 | lt_cv_apple_cc_single_mod=no |
9d54db95 | 10172 | if test -z "$LT_MULTI_MODULE"; then |
a243b558 JF |
10173 | # By default we will add the -single_module flag. You can override |
10174 | # by either setting the environment variable LT_MULTI_MODULE | |
10175 | # non-empty at configure time, or by adding -multi_module to the | |
10176 | # link flags. | |
10177 | rm -rf libconftest.dylib* | |
10178 | echo "int foo(void){return 1;}" > conftest.c | |
10179 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
10180 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
10181 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
10182 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
10183 | _lt_result=$? | |
10184 | # If there is a non-empty error log, and "single_module" | |
10185 | # appears in it, assume the flag caused a linker warning | |
10186 | if test -s conftest.err && $GREP single_module conftest.err; then | |
10187 | cat conftest.err >&5 | |
10188 | # Otherwise, if the output was created with a 0 exit code from | |
10189 | # the compiler, it worked. | |
9d54db95 | 10190 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
a243b558 JF |
10191 | lt_cv_apple_cc_single_mod=yes |
10192 | else | |
10193 | cat conftest.err >&5 | |
10194 | fi | |
10195 | rm -rf libconftest.dylib* | |
10196 | rm -f conftest.* | |
10197 | fi | |
ee134472 | 10198 | fi |
a243b558 JF |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
10200 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 10201 | |
a243b558 JF |
10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
10203 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
10204 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
10205 | $as_echo_n "(cached) " >&6 |
10206 | else | |
a243b558 JF |
10207 | lt_cv_ld_exported_symbols_list=no |
10208 | save_LDFLAGS=$LDFLAGS | |
10209 | echo "_main" > conftest.sym | |
10210 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
10211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10212 | /* end confdefs.h. */ | |
9c60689e | 10213 | |
a243b558 JF |
10214 | int |
10215 | main () | |
10216 | { | |
9c60689e | 10217 | |
a243b558 JF |
10218 | ; |
10219 | return 0; | |
10220 | } | |
10221 | _ACEOF | |
10222 | if ac_fn_c_try_link "$LINENO"; then : | |
10223 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 10224 | else |
a243b558 | 10225 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 10226 | fi |
a243b558 JF |
10227 | rm -f core conftest.err conftest.$ac_objext \ |
10228 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 10229 | LDFLAGS=$save_LDFLAGS |
9c60689e DWT |
10230 | |
10231 | fi | |
a243b558 JF |
10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
10233 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 10234 | |
a243b558 JF |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
10236 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
10237 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
10238 | $as_echo_n "(cached) " >&6 |
10239 | else | |
a243b558 JF |
10240 | lt_cv_ld_force_load=no |
10241 | cat > conftest.c << _LT_EOF | |
10242 | int forced_loaded() { return 2;} | |
10243 | _LT_EOF | |
10244 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
10245 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
10246 | echo "$AR cru libconftest.a conftest.o" >&5 | |
10247 | $AR cru libconftest.a conftest.o 2>&5 | |
10248 | echo "$RANLIB libconftest.a" >&5 | |
10249 | $RANLIB libconftest.a 2>&5 | |
10250 | cat > conftest.c << _LT_EOF | |
10251 | int main() { return 0;} | |
10252 | _LT_EOF | |
10253 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
10254 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
10255 | _lt_result=$? | |
10256 | if test -s conftest.err && $GREP force_load conftest.err; then | |
10257 | cat conftest.err >&5 | |
9d54db95 | 10258 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
a243b558 JF |
10259 | lt_cv_ld_force_load=yes |
10260 | else | |
10261 | cat conftest.err >&5 | |
10262 | fi | |
10263 | rm -f conftest.err libconftest.a conftest conftest.c | |
10264 | rm -rf conftest.dSYM | |
9c60689e DWT |
10265 | |
10266 | fi | |
a243b558 JF |
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
10268 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
10269 | case $host_os in | |
10270 | rhapsody* | darwin1.[012]) | |
9d54db95 | 10271 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
a243b558 | 10272 | darwin1.*) |
9d54db95 | 10273 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
a243b558 JF |
10274 | darwin*) # darwin 5.x on |
10275 | # if running on 10.5 or later, the deployment target defaults | |
10276 | # to the OS version, if on x86, and 10.4, the deployment | |
10277 | # target defaults to 10.4. Don't you love it? | |
10278 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
10279 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9d54db95 JF |
10280 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
10281 | 10.[012][,.]*) | |
10282 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
a243b558 | 10283 | 10.*) |
9d54db95 | 10284 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
a243b558 JF |
10285 | esac |
10286 | ;; | |
10287 | esac | |
9d54db95 | 10288 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
a243b558 JF |
10289 | _lt_dar_single_mod='$single_module' |
10290 | fi | |
9d54db95 JF |
10291 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
10292 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
a243b558 | 10293 | else |
9d54db95 | 10294 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
a243b558 | 10295 | fi |
9d54db95 | 10296 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
a243b558 JF |
10297 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
10298 | else | |
10299 | _lt_dsymutil= | |
10300 | fi | |
10301 | ;; | |
10302 | esac | |
9c60689e | 10303 | |
9d54db95 JF |
10304 | # func_munge_path_list VARIABLE PATH |
10305 | # ----------------------------------- | |
10306 | # VARIABLE is name of variable containing _space_ separated list of | |
10307 | # directories to be munged by the contents of PATH, which is string | |
10308 | # having a format: | |
10309 | # "DIR[:DIR]:" | |
10310 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
10311 | # ":DIR[:DIR]" | |
10312 | # string "DIR[ DIR]" will be appended to VARIABLE | |
10313 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
10314 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
10315 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
10316 | # "DIR[:DIR]" | |
10317 | # VARIABLE will be replaced by "DIR[ DIR]" | |
10318 | func_munge_path_list () | |
10319 | { | |
10320 | case x$2 in | |
10321 | x) | |
10322 | ;; | |
10323 | *:) | |
10324 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
10325 | ;; | |
10326 | x:*) | |
10327 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
10328 | ;; | |
10329 | *::*) | |
10330 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
10331 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
10332 | ;; | |
10333 | *) | |
10334 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
10335 | ;; | |
10336 | esac | |
10337 | } | |
10338 | ||
9c60689e | 10339 | |
a243b558 JF |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
10341 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
10342 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
10343 | $as_echo_n "(cached) " >&6 |
10344 | else | |
a243b558 JF |
10345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10346 | /* end confdefs.h. */ | |
10347 | #include <stdlib.h> | |
10348 | #include <stdarg.h> | |
10349 | #include <string.h> | |
10350 | #include <float.h> | |
9c60689e | 10351 | |
a243b558 JF |
10352 | int |
10353 | main () | |
10354 | { | |
9c60689e | 10355 | |
a243b558 JF |
10356 | ; |
10357 | return 0; | |
10358 | } | |
10359 | _ACEOF | |
10360 | if ac_fn_c_try_compile "$LINENO"; then : | |
10361 | ac_cv_header_stdc=yes | |
10362 | else | |
10363 | ac_cv_header_stdc=no | |
9c60689e | 10364 | fi |
a243b558 JF |
10365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10366 | ||
10367 | if test $ac_cv_header_stdc = yes; then | |
10368 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
10369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10370 | /* end confdefs.h. */ | |
10371 | #include <string.h> | |
9c60689e | 10372 | |
a243b558 JF |
10373 | _ACEOF |
10374 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10375 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 10376 | |
a243b558 JF |
10377 | else |
10378 | ac_cv_header_stdc=no | |
10379 | fi | |
10380 | rm -f conftest* | |
9c60689e | 10381 | |
a243b558 JF |
10382 | fi |
10383 | ||
10384 | if test $ac_cv_header_stdc = yes; then | |
10385 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
10386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10387 | /* end confdefs.h. */ | |
10388 | #include <stdlib.h> | |
10389 | ||
10390 | _ACEOF | |
10391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10392 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 10393 | |
9c60689e | 10394 | else |
a243b558 | 10395 | ac_cv_header_stdc=no |
9c60689e | 10396 | fi |
a243b558 | 10397 | rm -f conftest* |
9c60689e | 10398 | |
a243b558 | 10399 | fi |
9c60689e | 10400 | |
a243b558 JF |
10401 | if test $ac_cv_header_stdc = yes; then |
10402 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
10403 | if test "$cross_compiling" = yes; then : | |
10404 | : | |
10405 | else | |
10406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10407 | /* end confdefs.h. */ | |
10408 | #include <ctype.h> | |
10409 | #include <stdlib.h> | |
10410 | #if ((' ' & 0x0FF) == 0x020) | |
10411 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
10412 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
10413 | #else | |
10414 | # define ISLOWER(c) \ | |
10415 | (('a' <= (c) && (c) <= 'i') \ | |
10416 | || ('j' <= (c) && (c) <= 'r') \ | |
10417 | || ('s' <= (c) && (c) <= 'z')) | |
10418 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
10419 | #endif | |
9c60689e | 10420 | |
a243b558 JF |
10421 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
10422 | int | |
10423 | main () | |
10424 | { | |
10425 | int i; | |
10426 | for (i = 0; i < 256; i++) | |
10427 | if (XOR (islower (i), ISLOWER (i)) | |
10428 | || toupper (i) != TOUPPER (i)) | |
10429 | return 2; | |
10430 | return 0; | |
10431 | } | |
10432 | _ACEOF | |
10433 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 10434 | |
a243b558 JF |
10435 | else |
10436 | ac_cv_header_stdc=no | |
10437 | fi | |
10438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
10439 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10440 | fi | |
9c60689e | 10441 | |
a243b558 JF |
10442 | fi |
10443 | fi | |
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
10445 | $as_echo "$ac_cv_header_stdc" >&6; } | |
10446 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 10447 | |
a243b558 | 10448 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 10449 | |
a243b558 | 10450 | fi |
9c60689e | 10451 | |
a243b558 JF |
10452 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
10453 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
10454 | inttypes.h stdint.h unistd.h | |
10455 | do : | |
10456 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10457 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
10458 | " | |
10459 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10460 | cat >>confdefs.h <<_ACEOF | |
10461 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10462 | _ACEOF | |
9c60689e | 10463 | |
a243b558 | 10464 | fi |
ee134472 | 10465 | |
a243b558 | 10466 | done |
ee134472 | 10467 | |
9c60689e | 10468 | |
a243b558 JF |
10469 | for ac_header in dlfcn.h |
10470 | do : | |
10471 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
10472 | " | |
10473 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
10474 | cat >>confdefs.h <<_ACEOF | |
10475 | #define HAVE_DLFCN_H 1 | |
10476 | _ACEOF | |
9c60689e | 10477 | |
a243b558 | 10478 | fi |
9c60689e | 10479 | |
a243b558 | 10480 | done |
9c60689e | 10481 | |
9c60689e | 10482 | |
9c60689e | 10483 | |
9c60689e | 10484 | |
a243b558 JF |
10485 | func_stripname_cnf () |
10486 | { | |
9d54db95 JF |
10487 | case $2 in |
10488 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
10489 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
a243b558 JF |
10490 | esac |
10491 | } # func_stripname_cnf | |
9c60689e | 10492 | |
9c60689e | 10493 | |
ee134472 | 10494 | |
a243b558 JF |
10495 | |
10496 | ||
10497 | # Set options | |
10498 | # Check whether --enable-static was given. | |
10499 | if test "${enable_static+set}" = set; then : | |
10500 | enableval=$enable_static; p=${PACKAGE-default} | |
10501 | case $enableval in | |
10502 | yes) enable_static=yes ;; | |
10503 | no) enable_static=no ;; | |
10504 | *) | |
10505 | enable_static=no | |
10506 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10507 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10508 | for pkg in $enableval; do |
9d54db95 | 10509 | IFS=$lt_save_ifs |
a243b558 JF |
10510 | if test "X$pkg" = "X$p"; then |
10511 | enable_static=yes | |
10512 | fi | |
10513 | done | |
9d54db95 | 10514 | IFS=$lt_save_ifs |
9c60689e | 10515 | ;; |
a243b558 JF |
10516 | esac |
10517 | else | |
10518 | enable_static=no | |
10519 | fi | |
9c60689e | 10520 | |
9c60689e | 10521 | |
9c60689e | 10522 | |
9c60689e | 10523 | |
9c60689e | 10524 | |
9c60689e | 10525 | |
9c60689e | 10526 | |
9c60689e | 10527 | |
9c60689e | 10528 | |
9c60689e | 10529 | |
a243b558 | 10530 | enable_dlopen=no |
9c60689e | 10531 | |
9c60689e | 10532 | |
a243b558 JF |
10533 | enable_win32_dll=no |
10534 | ||
10535 | ||
10536 | # Check whether --enable-shared was given. | |
10537 | if test "${enable_shared+set}" = set; then : | |
10538 | enableval=$enable_shared; p=${PACKAGE-default} | |
10539 | case $enableval in | |
10540 | yes) enable_shared=yes ;; | |
10541 | no) enable_shared=no ;; | |
9c60689e | 10542 | *) |
a243b558 JF |
10543 | enable_shared=no |
10544 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10545 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10546 | for pkg in $enableval; do |
9d54db95 | 10547 | IFS=$lt_save_ifs |
a243b558 JF |
10548 | if test "X$pkg" = "X$p"; then |
10549 | enable_shared=yes | |
10550 | fi | |
10551 | done | |
9d54db95 | 10552 | IFS=$lt_save_ifs |
9c60689e DWT |
10553 | ;; |
10554 | esac | |
a243b558 JF |
10555 | else |
10556 | enable_shared=yes | |
10557 | fi | |
9c60689e | 10558 | |
9c60689e | 10559 | |
9c60689e | 10560 | |
9c60689e | 10561 | |
9c60689e | 10562 | |
9c60689e | 10563 | |
9c60689e | 10564 | |
9c60689e | 10565 | |
9c60689e | 10566 | |
9c60689e | 10567 | |
9c60689e | 10568 | |
a243b558 JF |
10569 | # Check whether --with-pic was given. |
10570 | if test "${with_pic+set}" = set; then : | |
10571 | withval=$with_pic; lt_p=${PACKAGE-default} | |
10572 | case $withval in | |
10573 | yes|no) pic_mode=$withval ;; | |
10574 | *) | |
10575 | pic_mode=default | |
10576 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10577 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10578 | for lt_pkg in $withval; do |
9d54db95 | 10579 | IFS=$lt_save_ifs |
a243b558 JF |
10580 | if test "X$lt_pkg" = "X$lt_p"; then |
10581 | pic_mode=yes | |
10582 | fi | |
10583 | done | |
9d54db95 | 10584 | IFS=$lt_save_ifs |
a243b558 JF |
10585 | ;; |
10586 | esac | |
10587 | else | |
10588 | pic_mode=default | |
9c60689e | 10589 | fi |
ee134472 | 10590 | |
ee134472 | 10591 | |
9c60689e | 10592 | |
9c60689e | 10593 | |
9c60689e | 10594 | |
ee134472 | 10595 | |
ee134472 | 10596 | |
9c60689e | 10597 | |
a243b558 JF |
10598 | # Check whether --enable-fast-install was given. |
10599 | if test "${enable_fast_install+set}" = set; then : | |
10600 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
10601 | case $enableval in | |
10602 | yes) enable_fast_install=yes ;; | |
10603 | no) enable_fast_install=no ;; | |
10604 | *) | |
10605 | enable_fast_install=no | |
10606 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 10607 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 10608 | for pkg in $enableval; do |
9d54db95 | 10609 | IFS=$lt_save_ifs |
a243b558 JF |
10610 | if test "X$pkg" = "X$p"; then |
10611 | enable_fast_install=yes | |
9c60689e | 10612 | fi |
a243b558 | 10613 | done |
9d54db95 | 10614 | IFS=$lt_save_ifs |
9c60689e | 10615 | ;; |
a243b558 JF |
10616 | esac |
10617 | else | |
10618 | enable_fast_install=yes | |
10619 | fi | |
9c60689e | 10620 | |
9c60689e | 10621 | |
9c60689e | 10622 | |
9c60689e | 10623 | |
9c60689e DWT |
10624 | |
10625 | ||
53ba6704 | 10626 | |
9c60689e | 10627 | |
9d54db95 JF |
10628 | shared_archive_member_spec= |
10629 | case $host,$enable_shared in | |
10630 | power*-*-aix[5-9]*,yes) | |
10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
10632 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
10633 | ||
10634 | # Check whether --with-aix-soname was given. | |
10635 | if test "${with_aix_soname+set}" = set; then : | |
10636 | withval=$with_aix_soname; case $withval in | |
10637 | aix|svr4|both) | |
10638 | ;; | |
10639 | *) | |
10640 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
10641 | ;; | |
10642 | esac | |
10643 | lt_cv_with_aix_soname=$with_aix_soname | |
10644 | else | |
10645 | if ${lt_cv_with_aix_soname+:} false; then : | |
10646 | $as_echo_n "(cached) " >&6 | |
10647 | else | |
10648 | lt_cv_with_aix_soname=aix | |
10649 | fi | |
10650 | ||
10651 | with_aix_soname=$lt_cv_with_aix_soname | |
10652 | fi | |
10653 | ||
10654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
10655 | $as_echo "$with_aix_soname" >&6; } | |
10656 | if test aix != "$with_aix_soname"; then | |
10657 | # For the AIX way of multilib, we name the shared archive member | |
10658 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
10659 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
10660 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
10661 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
10662 | if test 64 = "${OBJECT_MODE-32}"; then | |
10663 | shared_archive_member_spec=shr_64 | |
10664 | else | |
10665 | shared_archive_member_spec=shr | |
10666 | fi | |
10667 | fi | |
10668 | ;; | |
10669 | *) | |
10670 | with_aix_soname=aix | |
10671 | ;; | |
10672 | esac | |
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
9c60689e | 10680 | |
9c60689e | 10681 | |
9c60689e | 10682 | |
a243b558 | 10683 | # This can be used to rebuild libtool when needed |
9d54db95 | 10684 | LIBTOOL_DEPS=$ltmain |
9c60689e | 10685 | |
a243b558 JF |
10686 | # Always use our own libtool. |
10687 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 10688 | |
9c60689e | 10689 | |
9c60689e | 10690 | |
9c60689e | 10691 | |
9c60689e | 10692 | |
ee134472 | 10693 | |
ee134472 | 10694 | |
ee134472 | 10695 | |
ee134472 | 10696 | |
9c60689e | 10697 | |
9c60689e | 10698 | |
9c60689e | 10699 | |
9c60689e | 10700 | |
9c60689e | 10701 | |
9c60689e | 10702 | |
9c60689e | 10703 | |
9c60689e | 10704 | |
9c60689e | 10705 | |
9c60689e | 10706 | |
9c60689e | 10707 | |
9c60689e | 10708 | |
9c60689e | 10709 | |
9c60689e | 10710 | |
9c60689e | 10711 | |
9c60689e | 10712 | |
9c60689e | 10713 | |
9c60689e | 10714 | |
9c60689e | 10715 | |
9c60689e | 10716 | |
9c60689e | 10717 | |
a243b558 | 10718 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
10719 | |
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
9d54db95 | 10733 | if test -n "${ZSH_VERSION+set}"; then |
a243b558 JF |
10734 | setopt NO_GLOB_SUBST |
10735 | fi | |
9c60689e | 10736 | |
a243b558 JF |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
10738 | $as_echo_n "checking for objdir... " >&6; } | |
10739 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
10740 | $as_echo_n "(cached) " >&6 |
10741 | else | |
a243b558 JF |
10742 | rm -f .libs 2>/dev/null |
10743 | mkdir .libs 2>/dev/null | |
10744 | if test -d .libs; then | |
10745 | lt_cv_objdir=.libs | |
10746 | else | |
10747 | # MS-DOS does not allow filenames that begin with a dot. | |
10748 | lt_cv_objdir=_libs | |
ee134472 | 10749 | fi |
a243b558 JF |
10750 | rmdir .libs 2>/dev/null |
10751 | fi | |
10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
10753 | $as_echo "$lt_cv_objdir" >&6; } | |
10754 | objdir=$lt_cv_objdir | |
9c60689e DWT |
10755 | |
10756 | ||
10757 | ||
10758 | ||
10759 | ||
a243b558 JF |
10760 | cat >>confdefs.h <<_ACEOF |
10761 | #define LT_OBJDIR "$lt_cv_objdir/" | |
10762 | _ACEOF | |
9c60689e DWT |
10763 | |
10764 | ||
10765 | ||
10766 | ||
a243b558 JF |
10767 | case $host_os in |
10768 | aix3*) | |
10769 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10770 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10771 | # vanish in a puff of smoke. | |
9d54db95 | 10772 | if test set != "${COLLECT_NAMES+set}"; then |
a243b558 JF |
10773 | COLLECT_NAMES= |
10774 | export COLLECT_NAMES | |
10775 | fi | |
10776 | ;; | |
10777 | esac | |
9c60689e | 10778 | |
a243b558 JF |
10779 | # Global variables: |
10780 | ofile=libtool | |
10781 | can_build_shared=yes | |
9c60689e | 10782 | |
9d54db95 | 10783 | # All known linkers require a '.a' archive for static linking (except MSVC, |
a243b558 JF |
10784 | # which needs '.lib'). |
10785 | libext=a | |
9c60689e | 10786 | |
9d54db95 | 10787 | with_gnu_ld=$lt_cv_prog_gnu_ld |
9c60689e | 10788 | |
9d54db95 JF |
10789 | old_CC=$CC |
10790 | old_CFLAGS=$CFLAGS | |
9c60689e | 10791 | |
a243b558 JF |
10792 | # Set sane defaults for various variables |
10793 | test -z "$CC" && CC=cc | |
10794 | test -z "$LTCC" && LTCC=$CC | |
10795 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
10796 | test -z "$LD" && LD=ld | |
10797 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 10798 | |
9d54db95 JF |
10799 | func_cc_basename $compiler |
10800 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
10801 | |
10802 | ||
a243b558 JF |
10803 | # Only perform the check for file, if the check method requires it |
10804 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
10805 | case $deplibs_check_method in | |
10806 | file_magic*) | |
10807 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
10809 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
10810 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
10811 | $as_echo_n "(cached) " >&6 | |
10812 | else | |
10813 | case $MAGIC_CMD in | |
10814 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 10815 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
10816 | ;; |
10817 | *) | |
9d54db95 JF |
10818 | lt_save_MAGIC_CMD=$MAGIC_CMD |
10819 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
10820 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
10821 | for ac_dir in $ac_dummy; do | |
9d54db95 | 10822 | IFS=$lt_save_ifs |
a243b558 | 10823 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
10824 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
10825 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
a243b558 JF |
10826 | if test -n "$file_magic_test_file"; then |
10827 | case $deplibs_check_method in | |
10828 | "file_magic "*) | |
10829 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 10830 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10831 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
10832 | $EGREP "$file_magic_regex" > /dev/null; then | |
10833 | : | |
10834 | else | |
10835 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10836 | |
a243b558 JF |
10837 | *** Warning: the command libtool uses to detect shared libraries, |
10838 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10839 | *** The result is that libtool may fail to recognize shared libraries | |
10840 | *** as such. This will affect the creation of libtool libraries that | |
10841 | *** depend on shared libraries, but programs linked with such libtool | |
10842 | *** libraries will work regardless of this problem. Nevertheless, you | |
10843 | *** may want to report the problem to your system manager and/or to | |
10844 | *** bug-libtool@gnu.org | |
9c60689e | 10845 | |
a243b558 JF |
10846 | _LT_EOF |
10847 | fi ;; | |
10848 | esac | |
10849 | fi | |
10850 | break | |
10851 | fi | |
10852 | done | |
9d54db95 JF |
10853 | IFS=$lt_save_ifs |
10854 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
10855 | ;; |
10856 | esac | |
10857 | fi | |
9c60689e | 10858 | |
9d54db95 | 10859 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10860 | if test -n "$MAGIC_CMD"; then |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
10862 | $as_echo "$MAGIC_CMD" >&6; } | |
10863 | else | |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10865 | $as_echo "no" >&6; } | |
10866 | fi | |
9c60689e DWT |
10867 | |
10868 | ||
10869 | ||
10870 | ||
10871 | ||
a243b558 JF |
10872 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
10873 | if test -n "$ac_tool_prefix"; then | |
10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
10875 | $as_echo_n "checking for file... " >&6; } | |
10876 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
10877 | $as_echo_n "(cached) " >&6 | |
10878 | else | |
10879 | case $MAGIC_CMD in | |
10880 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 10881 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
10882 | ;; |
10883 | *) | |
9d54db95 JF |
10884 | lt_save_MAGIC_CMD=$MAGIC_CMD |
10885 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
10886 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
10887 | for ac_dir in $ac_dummy; do | |
9d54db95 | 10888 | IFS=$lt_save_ifs |
a243b558 | 10889 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
10890 | if test -f "$ac_dir/file"; then |
10891 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
a243b558 JF |
10892 | if test -n "$file_magic_test_file"; then |
10893 | case $deplibs_check_method in | |
10894 | "file_magic "*) | |
10895 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 10896 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10897 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
10898 | $EGREP "$file_magic_regex" > /dev/null; then | |
10899 | : | |
10900 | else | |
10901 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10902 | |
a243b558 JF |
10903 | *** Warning: the command libtool uses to detect shared libraries, |
10904 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10905 | *** The result is that libtool may fail to recognize shared libraries | |
10906 | *** as such. This will affect the creation of libtool libraries that | |
10907 | *** depend on shared libraries, but programs linked with such libtool | |
10908 | *** libraries will work regardless of this problem. Nevertheless, you | |
10909 | *** may want to report the problem to your system manager and/or to | |
10910 | *** bug-libtool@gnu.org | |
9c60689e | 10911 | |
a243b558 JF |
10912 | _LT_EOF |
10913 | fi ;; | |
10914 | esac | |
10915 | fi | |
10916 | break | |
10917 | fi | |
10918 | done | |
9d54db95 JF |
10919 | IFS=$lt_save_ifs |
10920 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
10921 | ;; |
10922 | esac | |
10923 | fi | |
9c60689e | 10924 | |
9d54db95 | 10925 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
10926 | if test -n "$MAGIC_CMD"; then |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
10928 | $as_echo "$MAGIC_CMD" >&6; } | |
10929 | else | |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10931 | $as_echo "no" >&6; } | |
10932 | fi | |
9c60689e DWT |
10933 | |
10934 | ||
a243b558 JF |
10935 | else |
10936 | MAGIC_CMD=: | |
10937 | fi | |
10938 | fi | |
9c60689e | 10939 | |
a243b558 JF |
10940 | fi |
10941 | ;; | |
10942 | esac | |
9c60689e | 10943 | |
a243b558 | 10944 | # Use C for the default configuration in the libtool script |
9c60689e | 10945 | |
9d54db95 | 10946 | lt_save_CC=$CC |
a243b558 JF |
10947 | ac_ext=c |
10948 | ac_cpp='$CPP $CPPFLAGS' | |
10949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
10952 | |
10953 | ||
a243b558 JF |
10954 | # Source file extension for C test sources. |
10955 | ac_ext=c | |
9c60689e | 10956 | |
a243b558 JF |
10957 | # Object file extension for compiled C test sources. |
10958 | objext=o | |
10959 | objext=$objext | |
9c60689e | 10960 | |
a243b558 JF |
10961 | # Code to be used in simple compile tests |
10962 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 10963 | |
a243b558 JF |
10964 | # Code to be used in simple link tests |
10965 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
10966 | |
10967 | ||
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
a243b558 JF |
10973 | # If no C compiler was specified, use CC. |
10974 | LTCC=${LTCC-"$CC"} | |
9c60689e | 10975 | |
a243b558 JF |
10976 | # If no C compiler flags were specified, use CFLAGS. |
10977 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 10978 | |
a243b558 JF |
10979 | # Allow CC to be a program name with arguments. |
10980 | compiler=$CC | |
9c60689e | 10981 | |
a243b558 JF |
10982 | # Save the default compiler, since it gets overwritten when the other |
10983 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
10984 | compiler_DEFAULT=$CC | |
9c60689e | 10985 | |
a243b558 JF |
10986 | # save warnings/boilerplate of simple test code |
10987 | ac_outfile=conftest.$ac_objext | |
10988 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10989 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10990 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 10991 | $RM -r conftest* |
9c60689e | 10992 | |
a243b558 JF |
10993 | ac_outfile=conftest.$ac_objext |
10994 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10995 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10996 | _lt_linker_boilerplate=`cat conftest.err` | |
10997 | $RM -r conftest* | |
9c60689e DWT |
10998 | |
10999 | ||
a243b558 JF |
11000 | ## CAVEAT EMPTOR: |
11001 | ## There is no encapsulation within the following macros, do not change | |
11002 | ## the running order or otherwise move them around unless you know exactly | |
11003 | ## what you are doing... | |
11004 | if test -n "$compiler"; then | |
9c60689e | 11005 | |
a243b558 | 11006 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 11007 | |
9d54db95 | 11008 | if test yes = "$GCC"; then |
a243b558 JF |
11009 | case $cc_basename in |
11010 | nvcc*) | |
11011 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
11012 | *) | |
11013 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
11014 | esac | |
9c60689e | 11015 | |
a243b558 JF |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
11017 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
11018 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
11019 | $as_echo_n "(cached) " >&6 | |
11020 | else | |
11021 | lt_cv_prog_compiler_rtti_exceptions=no | |
11022 | ac_outfile=conftest.$ac_objext | |
11023 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 11024 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
11025 | # Insert the option either (1) after the last *FLAGS variable, or |
11026 | # (2) before a word containing "conftest.", or (3) at the end. | |
11027 | # Note that $ac_compile itself does not contain backslashes and begins | |
11028 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11029 | # The option is referenced via a variable to avoid confusing sed. | |
11030 | lt_compile=`echo "$ac_compile" | $SED \ | |
11031 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11032 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11033 | -e 's:$: $lt_compiler_flag:'` | |
11034 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11035 | (eval "$lt_compile" 2>conftest.err) | |
11036 | ac_status=$? | |
11037 | cat conftest.err >&5 | |
11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11039 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11040 | # The compiler can only warn and ignore the option if not recognized | |
11041 | # So say no if there are warnings other than the usual output. | |
11042 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11043 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11044 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11045 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11046 | fi | |
11047 | fi | |
00a96142 | 11048 | $RM -r conftest* |
9c60689e | 11049 | |
a243b558 JF |
11050 | fi |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11052 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 11053 | |
9d54db95 | 11054 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
a243b558 JF |
11055 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
11056 | else | |
11057 | : | |
11058 | fi | |
9c60689e | 11059 | |
a243b558 | 11060 | fi |
9c60689e DWT |
11061 | |
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
a243b558 JF |
11067 | lt_prog_compiler_wl= |
11068 | lt_prog_compiler_pic= | |
11069 | lt_prog_compiler_static= | |
9c60689e DWT |
11070 | |
11071 | ||
9d54db95 | 11072 | if test yes = "$GCC"; then |
a243b558 JF |
11073 | lt_prog_compiler_wl='-Wl,' |
11074 | lt_prog_compiler_static='-static' | |
9c60689e | 11075 | |
a243b558 JF |
11076 | case $host_os in |
11077 | aix*) | |
11078 | # All AIX code is PIC. | |
9d54db95 | 11079 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
11080 | # AIX 5 now supports IA64 processor |
11081 | lt_prog_compiler_static='-Bstatic' | |
11082 | fi | |
9d54db95 | 11083 | lt_prog_compiler_pic='-fPIC' |
a243b558 | 11084 | ;; |
9c60689e | 11085 | |
a243b558 JF |
11086 | amigaos*) |
11087 | case $host_cpu in | |
11088 | powerpc) | |
11089 | # see comment about AmigaOS4 .so support | |
11090 | lt_prog_compiler_pic='-fPIC' | |
11091 | ;; | |
11092 | m68k) | |
11093 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
11094 | # adding the '-m68020' flag to GCC prevents building anything better, |
11095 | # like '-m68040'. | |
a243b558 JF |
11096 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
11097 | ;; | |
11098 | esac | |
11099 | ;; | |
9c60689e | 11100 | |
a243b558 JF |
11101 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11102 | # PIC is the default for these OSes. | |
11103 | ;; | |
9c60689e | 11104 | |
a243b558 JF |
11105 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
11106 | # This hack is so that the source file can tell whether it is being | |
11107 | # built for inclusion in a dll (and should export symbols for example). | |
11108 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
11109 | # (--disable-auto-import) libraries | |
11110 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
11111 | case $host_os in |
11112 | os2*) | |
11113 | lt_prog_compiler_static='$wl-static' | |
11114 | ;; | |
11115 | esac | |
a243b558 | 11116 | ;; |
9c60689e | 11117 | |
a243b558 JF |
11118 | darwin* | rhapsody*) |
11119 | # PIC is the default on this platform | |
11120 | # Common symbols not allowed in MH_DYLIB files | |
11121 | lt_prog_compiler_pic='-fno-common' | |
11122 | ;; | |
9c60689e | 11123 | |
a243b558 JF |
11124 | haiku*) |
11125 | # PIC is the default for Haiku. | |
11126 | # The "-static" flag exists, but is broken. | |
11127 | lt_prog_compiler_static= | |
11128 | ;; | |
9c60689e | 11129 | |
a243b558 JF |
11130 | hpux*) |
11131 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
11132 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
11133 | # sets the default TLS model and affects inlining. | |
11134 | case $host_cpu in | |
11135 | hppa*64*) | |
11136 | # +Z the default | |
11137 | ;; | |
11138 | *) | |
11139 | lt_prog_compiler_pic='-fPIC' | |
11140 | ;; | |
11141 | esac | |
11142 | ;; | |
9c60689e | 11143 | |
a243b558 JF |
11144 | interix[3-9]*) |
11145 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11146 | # Instead, we relocate shared libraries at runtime. | |
11147 | ;; | |
9c60689e | 11148 | |
a243b558 JF |
11149 | msdosdjgpp*) |
11150 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11151 | # on systems that don't support them. | |
11152 | lt_prog_compiler_can_build_shared=no | |
11153 | enable_shared=no | |
11154 | ;; | |
9c60689e | 11155 | |
a243b558 JF |
11156 | *nto* | *qnx*) |
11157 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11158 | # it will coredump. | |
11159 | lt_prog_compiler_pic='-fPIC -shared' | |
11160 | ;; | |
9c60689e | 11161 | |
a243b558 JF |
11162 | sysv4*MP*) |
11163 | if test -d /usr/nec; then | |
11164 | lt_prog_compiler_pic=-Kconform_pic | |
11165 | fi | |
11166 | ;; | |
9c60689e | 11167 | |
a243b558 JF |
11168 | *) |
11169 | lt_prog_compiler_pic='-fPIC' | |
11170 | ;; | |
11171 | esac | |
9c60689e | 11172 | |
a243b558 JF |
11173 | case $cc_basename in |
11174 | nvcc*) # Cuda Compiler Driver 2.2 | |
11175 | lt_prog_compiler_wl='-Xlinker ' | |
11176 | if test -n "$lt_prog_compiler_pic"; then | |
11177 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
11178 | fi | |
11179 | ;; | |
11180 | esac | |
11181 | else | |
11182 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11183 | case $host_os in | |
11184 | aix*) | |
11185 | lt_prog_compiler_wl='-Wl,' | |
9d54db95 | 11186 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
11187 | # AIX 5 now supports IA64 processor |
11188 | lt_prog_compiler_static='-Bstatic' | |
11189 | else | |
11190 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
11191 | fi | |
11192 | ;; | |
9c60689e | 11193 | |
9d54db95 JF |
11194 | darwin* | rhapsody*) |
11195 | # PIC is the default on this platform | |
11196 | # Common symbols not allowed in MH_DYLIB files | |
11197 | lt_prog_compiler_pic='-fno-common' | |
11198 | case $cc_basename in | |
11199 | nagfor*) | |
11200 | # NAG Fortran compiler | |
11201 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
11202 | lt_prog_compiler_pic='-PIC' | |
11203 | lt_prog_compiler_static='-Bstatic' | |
11204 | ;; | |
11205 | esac | |
11206 | ;; | |
11207 | ||
a243b558 JF |
11208 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
11209 | # This hack is so that the source file can tell whether it is being | |
11210 | # built for inclusion in a dll (and should export symbols for example). | |
11211 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
11212 | case $host_os in |
11213 | os2*) | |
11214 | lt_prog_compiler_static='$wl-static' | |
11215 | ;; | |
11216 | esac | |
a243b558 | 11217 | ;; |
9c60689e | 11218 | |
a243b558 JF |
11219 | hpux9* | hpux10* | hpux11*) |
11220 | lt_prog_compiler_wl='-Wl,' | |
11221 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11222 | # not for PA HP-UX. | |
11223 | case $host_cpu in | |
11224 | hppa*64*|ia64*) | |
11225 | # +Z the default | |
11226 | ;; | |
11227 | *) | |
11228 | lt_prog_compiler_pic='+Z' | |
11229 | ;; | |
11230 | esac | |
11231 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9d54db95 | 11232 | lt_prog_compiler_static='$wl-a ${wl}archive' |
a243b558 | 11233 | ;; |
9c60689e | 11234 | |
a243b558 JF |
11235 | irix5* | irix6* | nonstopux*) |
11236 | lt_prog_compiler_wl='-Wl,' | |
11237 | # PIC (with -KPIC) is the default. | |
11238 | lt_prog_compiler_static='-non_shared' | |
11239 | ;; | |
9c60689e | 11240 | |
9d54db95 | 11241 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 | 11242 | case $cc_basename in |
9d54db95 | 11243 | # old Intel for x86_64, which still supported -KPIC. |
a243b558 JF |
11244 | ecc*) |
11245 | lt_prog_compiler_wl='-Wl,' | |
11246 | lt_prog_compiler_pic='-KPIC' | |
11247 | lt_prog_compiler_static='-static' | |
11248 | ;; | |
11249 | # icc used to be incompatible with GCC. | |
11250 | # ICC 10 doesn't accept -KPIC any more. | |
11251 | icc* | ifort*) | |
11252 | lt_prog_compiler_wl='-Wl,' | |
11253 | lt_prog_compiler_pic='-fPIC' | |
11254 | lt_prog_compiler_static='-static' | |
11255 | ;; | |
11256 | # Lahey Fortran 8.1. | |
11257 | lf95*) | |
11258 | lt_prog_compiler_wl='-Wl,' | |
11259 | lt_prog_compiler_pic='--shared' | |
11260 | lt_prog_compiler_static='--static' | |
11261 | ;; | |
11262 | nagfor*) | |
11263 | # NAG Fortran compiler | |
11264 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
11265 | lt_prog_compiler_pic='-PIC' | |
11266 | lt_prog_compiler_static='-Bstatic' | |
11267 | ;; | |
9d54db95 JF |
11268 | tcc*) |
11269 | # Fabrice Bellard et al's Tiny C Compiler | |
11270 | lt_prog_compiler_wl='-Wl,' | |
11271 | lt_prog_compiler_pic='-fPIC' | |
11272 | lt_prog_compiler_static='-static' | |
11273 | ;; | |
a243b558 JF |
11274 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
11275 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
11276 | # which looks to be a dead project) | |
11277 | lt_prog_compiler_wl='-Wl,' | |
11278 | lt_prog_compiler_pic='-fpic' | |
11279 | lt_prog_compiler_static='-Bstatic' | |
11280 | ;; | |
11281 | ccc*) | |
11282 | lt_prog_compiler_wl='-Wl,' | |
11283 | # All Alpha code is PIC. | |
11284 | lt_prog_compiler_static='-non_shared' | |
11285 | ;; | |
11286 | xl* | bgxl* | bgf* | mpixl*) | |
11287 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
11288 | lt_prog_compiler_wl='-Wl,' | |
11289 | lt_prog_compiler_pic='-qpic' | |
11290 | lt_prog_compiler_static='-qstaticlink' | |
11291 | ;; | |
11292 | *) | |
11293 | case `$CC -V 2>&1 | sed 5q` in | |
11294 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
11295 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
11296 | lt_prog_compiler_pic='-KPIC' | |
11297 | lt_prog_compiler_static='-Bstatic' | |
11298 | lt_prog_compiler_wl='' | |
11299 | ;; | |
11300 | *Sun\ F* | *Sun*Fortran*) | |
11301 | lt_prog_compiler_pic='-KPIC' | |
11302 | lt_prog_compiler_static='-Bstatic' | |
11303 | lt_prog_compiler_wl='-Qoption ld ' | |
11304 | ;; | |
11305 | *Sun\ C*) | |
11306 | # Sun C 5.9 | |
11307 | lt_prog_compiler_pic='-KPIC' | |
11308 | lt_prog_compiler_static='-Bstatic' | |
11309 | lt_prog_compiler_wl='-Wl,' | |
11310 | ;; | |
11311 | *Intel*\ [CF]*Compiler*) | |
11312 | lt_prog_compiler_wl='-Wl,' | |
11313 | lt_prog_compiler_pic='-fPIC' | |
11314 | lt_prog_compiler_static='-static' | |
11315 | ;; | |
11316 | *Portland\ Group*) | |
11317 | lt_prog_compiler_wl='-Wl,' | |
11318 | lt_prog_compiler_pic='-fpic' | |
11319 | lt_prog_compiler_static='-Bstatic' | |
11320 | ;; | |
11321 | esac | |
11322 | ;; | |
11323 | esac | |
11324 | ;; | |
9c60689e | 11325 | |
a243b558 JF |
11326 | newsos6) |
11327 | lt_prog_compiler_pic='-KPIC' | |
11328 | lt_prog_compiler_static='-Bstatic' | |
11329 | ;; | |
9c60689e | 11330 | |
a243b558 JF |
11331 | *nto* | *qnx*) |
11332 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11333 | # it will coredump. | |
11334 | lt_prog_compiler_pic='-fPIC -shared' | |
11335 | ;; | |
9c60689e | 11336 | |
a243b558 JF |
11337 | osf3* | osf4* | osf5*) |
11338 | lt_prog_compiler_wl='-Wl,' | |
11339 | # All OSF/1 code is PIC. | |
11340 | lt_prog_compiler_static='-non_shared' | |
11341 | ;; | |
9c60689e | 11342 | |
a243b558 JF |
11343 | rdos*) |
11344 | lt_prog_compiler_static='-non_shared' | |
11345 | ;; | |
9c60689e | 11346 | |
a243b558 JF |
11347 | solaris*) |
11348 | lt_prog_compiler_pic='-KPIC' | |
11349 | lt_prog_compiler_static='-Bstatic' | |
11350 | case $cc_basename in | |
11351 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
11352 | lt_prog_compiler_wl='-Qoption ld ';; | |
11353 | *) | |
11354 | lt_prog_compiler_wl='-Wl,';; | |
11355 | esac | |
11356 | ;; | |
9c60689e | 11357 | |
a243b558 JF |
11358 | sunos4*) |
11359 | lt_prog_compiler_wl='-Qoption ld ' | |
11360 | lt_prog_compiler_pic='-PIC' | |
11361 | lt_prog_compiler_static='-Bstatic' | |
11362 | ;; | |
9c60689e | 11363 | |
a243b558 JF |
11364 | sysv4 | sysv4.2uw2* | sysv4.3*) |
11365 | lt_prog_compiler_wl='-Wl,' | |
11366 | lt_prog_compiler_pic='-KPIC' | |
11367 | lt_prog_compiler_static='-Bstatic' | |
11368 | ;; | |
9c60689e | 11369 | |
a243b558 | 11370 | sysv4*MP*) |
9d54db95 | 11371 | if test -d /usr/nec; then |
a243b558 JF |
11372 | lt_prog_compiler_pic='-Kconform_pic' |
11373 | lt_prog_compiler_static='-Bstatic' | |
11374 | fi | |
11375 | ;; | |
9c60689e | 11376 | |
a243b558 JF |
11377 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11378 | lt_prog_compiler_wl='-Wl,' | |
11379 | lt_prog_compiler_pic='-KPIC' | |
11380 | lt_prog_compiler_static='-Bstatic' | |
11381 | ;; | |
9c60689e | 11382 | |
a243b558 JF |
11383 | unicos*) |
11384 | lt_prog_compiler_wl='-Wl,' | |
11385 | lt_prog_compiler_can_build_shared=no | |
11386 | ;; | |
9c60689e | 11387 | |
a243b558 JF |
11388 | uts4*) |
11389 | lt_prog_compiler_pic='-pic' | |
11390 | lt_prog_compiler_static='-Bstatic' | |
11391 | ;; | |
9c60689e | 11392 | |
a243b558 JF |
11393 | *) |
11394 | lt_prog_compiler_can_build_shared=no | |
11395 | ;; | |
11396 | esac | |
11397 | fi | |
9c60689e | 11398 | |
a243b558 | 11399 | case $host_os in |
9d54db95 | 11400 | # For platforms that do not support PIC, -DPIC is meaningless: |
a243b558 JF |
11401 | *djgpp*) |
11402 | lt_prog_compiler_pic= | |
11403 | ;; | |
11404 | *) | |
11405 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
11406 | ;; | |
11407 | esac | |
9c60689e | 11408 | |
a243b558 JF |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
11410 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
11411 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
11412 | $as_echo_n "(cached) " >&6 | |
11413 | else | |
11414 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
11415 | fi | |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
11417 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
11418 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 11419 | |
a243b558 JF |
11420 | # |
11421 | # Check to make sure the PIC flag actually works. | |
11422 | # | |
11423 | if test -n "$lt_prog_compiler_pic"; then | |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
11425 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
11426 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
11427 | $as_echo_n "(cached) " >&6 | |
11428 | else | |
11429 | lt_cv_prog_compiler_pic_works=no | |
11430 | ac_outfile=conftest.$ac_objext | |
11431 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 11432 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
11433 | # Insert the option either (1) after the last *FLAGS variable, or |
11434 | # (2) before a word containing "conftest.", or (3) at the end. | |
11435 | # Note that $ac_compile itself does not contain backslashes and begins | |
11436 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11437 | # The option is referenced via a variable to avoid confusing sed. | |
11438 | lt_compile=`echo "$ac_compile" | $SED \ | |
11439 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11440 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11441 | -e 's:$: $lt_compiler_flag:'` | |
11442 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11443 | (eval "$lt_compile" 2>conftest.err) | |
11444 | ac_status=$? | |
11445 | cat conftest.err >&5 | |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11447 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11448 | # The compiler can only warn and ignore the option if not recognized | |
11449 | # So say no if there are warnings other than the usual output. | |
11450 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11451 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11452 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11453 | lt_cv_prog_compiler_pic_works=yes | |
11454 | fi | |
11455 | fi | |
00a96142 | 11456 | $RM -r conftest* |
9c60689e | 11457 | |
a243b558 JF |
11458 | fi |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
11460 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 11461 | |
9d54db95 | 11462 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
a243b558 JF |
11463 | case $lt_prog_compiler_pic in |
11464 | "" | " "*) ;; | |
11465 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
11466 | esac | |
11467 | else | |
11468 | lt_prog_compiler_pic= | |
11469 | lt_prog_compiler_can_build_shared=no | |
11470 | fi | |
9c60689e | 11471 | |
a243b558 | 11472 | fi |
9c60689e DWT |
11473 | |
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
9c60689e DWT |
11479 | |
11480 | ||
11481 | ||
11482 | ||
11483 | ||
a243b558 JF |
11484 | # |
11485 | # Check to make sure the static flag actually works. | |
11486 | # | |
11487 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11489 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
11490 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
11491 | $as_echo_n "(cached) " >&6 | |
11492 | else | |
11493 | lt_cv_prog_compiler_static_works=no | |
9d54db95 | 11494 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
11495 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11496 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11497 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11498 | # The linker can only warn and ignore the option if not recognized | |
11499 | # So say no if there are warnings | |
11500 | if test -s conftest.err; then | |
11501 | # Append any errors to the config.log. | |
11502 | cat conftest.err 1>&5 | |
11503 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11504 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11505 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11506 | lt_cv_prog_compiler_static_works=yes | |
11507 | fi | |
11508 | else | |
11509 | lt_cv_prog_compiler_static_works=yes | |
11510 | fi | |
11511 | fi | |
11512 | $RM -r conftest* | |
9d54db95 | 11513 | LDFLAGS=$save_LDFLAGS |
9c60689e | 11514 | |
a243b558 JF |
11515 | fi |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
11517 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 11518 | |
9d54db95 | 11519 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
a243b558 | 11520 | : |
9c60689e | 11521 | else |
a243b558 | 11522 | lt_prog_compiler_static= |
9c60689e | 11523 | fi |
9c60689e | 11524 | |
9c60689e | 11525 | |
9c60689e | 11526 | |
9c60689e | 11527 | |
9c60689e | 11528 | |
9c60689e | 11529 | |
9c60689e | 11530 | |
a243b558 JF |
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11532 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
11533 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
11534 | $as_echo_n "(cached) " >&6 | |
11535 | else | |
11536 | lt_cv_prog_compiler_c_o=no | |
11537 | $RM -r conftest 2>/dev/null | |
11538 | mkdir conftest | |
11539 | cd conftest | |
11540 | mkdir out | |
11541 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 11542 | |
a243b558 JF |
11543 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11544 | # Insert the option either (1) after the last *FLAGS variable, or | |
11545 | # (2) before a word containing "conftest.", or (3) at the end. | |
11546 | # Note that $ac_compile itself does not contain backslashes and begins | |
11547 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11548 | lt_compile=`echo "$ac_compile" | $SED \ | |
11549 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11550 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11551 | -e 's:$: $lt_compiler_flag:'` | |
11552 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11553 | (eval "$lt_compile" 2>out/conftest.err) | |
11554 | ac_status=$? | |
11555 | cat out/conftest.err >&5 | |
11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11558 | then | |
11559 | # The compiler can only warn and ignore the option if not recognized | |
11560 | # So say no if there are warnings | |
11561 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
11562 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11563 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11564 | lt_cv_prog_compiler_c_o=yes | |
11565 | fi | |
11566 | fi | |
11567 | chmod u+w . 2>&5 | |
00a96142 | 11568 | $RM -r conftest* |
a243b558 JF |
11569 | # SGI C++ compiler will create directory out/ii_files/ for |
11570 | # template instantiation | |
11571 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11572 | $RM out/* && rmdir out | |
11573 | cd .. | |
11574 | $RM -r conftest | |
00a96142 | 11575 | $RM -r conftest* |
9c60689e | 11576 | |
a243b558 JF |
11577 | fi |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
11579 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 11580 | |
ee134472 | 11581 | |
ee134472 | 11582 | |
ee134472 | 11583 | |
ee134472 | 11584 | |
9c60689e | 11585 | |
a243b558 JF |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11587 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
11588 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
11589 | $as_echo_n "(cached) " >&6 | |
11590 | else | |
11591 | lt_cv_prog_compiler_c_o=no | |
11592 | $RM -r conftest 2>/dev/null | |
11593 | mkdir conftest | |
11594 | cd conftest | |
11595 | mkdir out | |
11596 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 11597 | |
a243b558 JF |
11598 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11599 | # Insert the option either (1) after the last *FLAGS variable, or | |
11600 | # (2) before a word containing "conftest.", or (3) at the end. | |
11601 | # Note that $ac_compile itself does not contain backslashes and begins | |
11602 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11603 | lt_compile=`echo "$ac_compile" | $SED \ | |
11604 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11605 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11606 | -e 's:$: $lt_compiler_flag:'` | |
11607 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11608 | (eval "$lt_compile" 2>out/conftest.err) | |
11609 | ac_status=$? | |
11610 | cat out/conftest.err >&5 | |
11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11612 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11613 | then | |
11614 | # The compiler can only warn and ignore the option if not recognized | |
11615 | # So say no if there are warnings | |
11616 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
11617 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11618 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11619 | lt_cv_prog_compiler_c_o=yes | |
11620 | fi | |
11621 | fi | |
11622 | chmod u+w . 2>&5 | |
00a96142 | 11623 | $RM -r conftest* |
a243b558 JF |
11624 | # SGI C++ compiler will create directory out/ii_files/ for |
11625 | # template instantiation | |
11626 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11627 | $RM out/* && rmdir out | |
11628 | cd .. | |
11629 | $RM -r conftest | |
00a96142 | 11630 | $RM -r conftest* |
9c60689e | 11631 | |
a243b558 JF |
11632 | fi |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
11634 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 11635 | |
9c60689e | 11636 | |
a243b558 JF |
11637 | |
11638 | ||
9d54db95 JF |
11639 | hard_links=nottested |
11640 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
a243b558 JF |
11641 | # do not overwrite the value of need_locks provided by the user |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
11643 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
11644 | hard_links=yes | |
00a96142 | 11645 | $RM -r conftest* |
a243b558 JF |
11646 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11647 | touch conftest.a | |
11648 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11649 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
11651 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
11652 | if test no = "$hard_links"; then |
11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
11654 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
a243b558 | 11655 | need_locks=warn |
9c60689e | 11656 | fi |
a243b558 JF |
11657 | else |
11658 | need_locks=no | |
11659 | fi | |
9c60689e | 11660 | |
ee134472 | 11661 | |
9c60689e | 11662 | |
9c60689e | 11663 | |
9c60689e | 11664 | |
a243b558 JF |
11665 | |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11667 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11668 | ||
11669 | runpath_var= | |
11670 | allow_undefined_flag= | |
11671 | always_export_symbols=no | |
11672 | archive_cmds= | |
11673 | archive_expsym_cmds= | |
11674 | compiler_needs_object=no | |
11675 | enable_shared_with_static_runtimes=no | |
11676 | export_dynamic_flag_spec= | |
11677 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11678 | hardcode_automatic=no | |
11679 | hardcode_direct=no | |
11680 | hardcode_direct_absolute=no | |
11681 | hardcode_libdir_flag_spec= | |
11682 | hardcode_libdir_separator= | |
11683 | hardcode_minus_L=no | |
11684 | hardcode_shlibpath_var=unsupported | |
11685 | inherit_rpath=no | |
11686 | link_all_deplibs=unknown | |
11687 | module_cmds= | |
11688 | module_expsym_cmds= | |
11689 | old_archive_from_new_cmds= | |
11690 | old_archive_from_expsyms_cmds= | |
11691 | thread_safe_flag_spec= | |
11692 | whole_archive_flag_spec= | |
11693 | # include_expsyms should be a list of space-separated symbols to be *always* | |
11694 | # included in the symbol list | |
11695 | include_expsyms= | |
11696 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9d54db95 JF |
11697 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
11698 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
11699 | # as well as any symbol that contains 'd'. | |
a243b558 JF |
11700 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
11701 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
11702 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
11703 | # the symbol is explicitly referenced. Since portable code cannot | |
11704 | # rely on this symbol name, it's probably fine to never include it in | |
11705 | # preloaded symbol tables. | |
11706 | # Exclude shared library initialization/finalization symbols. | |
11707 | extract_expsyms_cmds= | |
11708 | ||
9c60689e | 11709 | case $host_os in |
a243b558 JF |
11710 | cygwin* | mingw* | pw32* | cegcc*) |
11711 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
11712 | # When not using gcc, we currently assume that we are using | |
11713 | # Microsoft Visual C++. | |
9d54db95 | 11714 | if test yes != "$GCC"; then |
a243b558 JF |
11715 | with_gnu_ld=no |
11716 | fi | |
9c60689e | 11717 | ;; |
a243b558 JF |
11718 | interix*) |
11719 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
11720 | with_gnu_ld=yes | |
11721 | ;; | |
9d54db95 | 11722 | openbsd* | bitrig*) |
a243b558 | 11723 | with_gnu_ld=no |
9c60689e DWT |
11724 | ;; |
11725 | esac | |
9c60689e | 11726 | |
a243b558 | 11727 | ld_shlibs=yes |
ee134472 | 11728 | |
a243b558 JF |
11729 | # On some targets, GNU ld is compatible enough with the native linker |
11730 | # that we're better off using the native interface for both. | |
11731 | lt_use_gnu_ld_interface=no | |
9d54db95 | 11732 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
11733 | case $host_os in |
11734 | aix*) | |
11735 | # The AIX port of GNU ld has always aspired to compatibility | |
11736 | # with the native linker. However, as the warning in the GNU ld | |
11737 | # block says, versions before 2.19.5* couldn't really create working | |
11738 | # shared libraries, regardless of the interface used. | |
11739 | case `$LD -v 2>&1` in | |
11740 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
11741 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
11742 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
11743 | *) | |
11744 | lt_use_gnu_ld_interface=yes | |
11745 | ;; | |
11746 | esac | |
11747 | ;; | |
11748 | *) | |
11749 | lt_use_gnu_ld_interface=yes | |
11750 | ;; | |
11751 | esac | |
11752 | fi | |
9c60689e | 11753 | |
9d54db95 | 11754 | if test yes = "$lt_use_gnu_ld_interface"; then |
a243b558 | 11755 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9d54db95 | 11756 | wlarc='$wl' |
9c60689e | 11757 | |
a243b558 JF |
11758 | # Set some defaults for GNU ld with shared library support. These |
11759 | # are reset later if shared libraries are not supported. Putting them | |
11760 | # here allows them to be overridden if necessary. | |
11761 | runpath_var=LD_RUN_PATH | |
9d54db95 JF |
11762 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
11763 | export_dynamic_flag_spec='$wl--export-dynamic' | |
a243b558 JF |
11764 | # ancient GNU ld didn't support --whole-archive et. al. |
11765 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 11766 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
a243b558 JF |
11767 | else |
11768 | whole_archive_flag_spec= | |
11769 | fi | |
11770 | supports_anon_versioning=no | |
9d54db95 | 11771 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
a243b558 JF |
11772 | *GNU\ gold*) supports_anon_versioning=yes ;; |
11773 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
11774 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
11775 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
11776 | *\ 2.11.*) ;; # other 2.11 versions | |
11777 | *) supports_anon_versioning=yes ;; | |
11778 | esac | |
ee134472 | 11779 | |
a243b558 JF |
11780 | # See if GNU ld supports shared libraries. |
11781 | case $host_os in | |
11782 | aix[3-9]*) | |
11783 | # On AIX/PPC, the GNU linker is very broken | |
9d54db95 | 11784 | if test ia64 != "$host_cpu"; then |
a243b558 JF |
11785 | ld_shlibs=no |
11786 | cat <<_LT_EOF 1>&2 | |
ee134472 | 11787 | |
a243b558 JF |
11788 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
11789 | *** to be unable to reliably create shared libraries on AIX. | |
11790 | *** Therefore, libtool is disabling shared libraries support. If you | |
11791 | *** really care for shared libraries, you may want to install binutils | |
11792 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
11793 | *** You will then need to restart the configuration process. | |
9c60689e | 11794 | |
a243b558 JF |
11795 | _LT_EOF |
11796 | fi | |
11797 | ;; | |
9c60689e | 11798 | |
a243b558 JF |
11799 | amigaos*) |
11800 | case $host_cpu in | |
11801 | powerpc) | |
11802 | # see comment about AmigaOS4 .so support | |
9d54db95 | 11803 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11804 | archive_expsym_cmds='' |
11805 | ;; | |
11806 | m68k) | |
11807 | 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)' | |
11808 | hardcode_libdir_flag_spec='-L$libdir' | |
11809 | hardcode_minus_L=yes | |
11810 | ;; | |
11811 | esac | |
11812 | ;; | |
9c60689e | 11813 | |
a243b558 JF |
11814 | beos*) |
11815 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11816 | allow_undefined_flag=unsupported | |
11817 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11818 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 11819 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11820 | else |
11821 | ld_shlibs=no | |
11822 | fi | |
11823 | ;; | |
9c60689e | 11824 | |
a243b558 JF |
11825 | cygwin* | mingw* | pw32* | cegcc*) |
11826 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
11827 | # as there is no search path for DLLs. | |
11828 | hardcode_libdir_flag_spec='-L$libdir' | |
9d54db95 | 11829 | export_dynamic_flag_spec='$wl--export-all-symbols' |
a243b558 JF |
11830 | allow_undefined_flag=unsupported |
11831 | always_export_symbols=no | |
11832 | enable_shared_with_static_runtimes=yes | |
11833 | 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' | |
11834 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 11835 | |
a243b558 | 11836 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9d54db95 JF |
11837 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11838 | # If the export-symbols file already is a .def file, use it as | |
11839 | # is; otherwise, prepend EXPORTS... | |
11840 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
11841 | cp $export_symbols $output_objdir/$soname.def; | |
11842 | else | |
11843 | echo EXPORTS > $output_objdir/$soname.def; | |
11844 | cat $export_symbols >> $output_objdir/$soname.def; | |
11845 | fi~ | |
11846 | $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 |
11847 | else |
11848 | ld_shlibs=no | |
11849 | fi | |
11850 | ;; | |
9c60689e | 11851 | |
a243b558 | 11852 | haiku*) |
9d54db95 | 11853 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
11854 | link_all_deplibs=yes |
11855 | ;; | |
9c60689e | 11856 | |
9d54db95 JF |
11857 | os2*) |
11858 | hardcode_libdir_flag_spec='-L$libdir' | |
11859 | hardcode_minus_L=yes | |
11860 | allow_undefined_flag=unsupported | |
11861 | shrext_cmds=.dll | |
11862 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11863 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11864 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11865 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11866 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11867 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11868 | emximp -o $lib $output_objdir/$libname.def' | |
11869 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11870 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11871 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11872 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11873 | prefix_cmds="$SED"~ | |
11874 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11875 | prefix_cmds="$prefix_cmds -e 1d"; | |
11876 | fi~ | |
11877 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11878 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11879 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11880 | emximp -o $lib $output_objdir/$libname.def' | |
11881 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11882 | enable_shared_with_static_runtimes=yes | |
11883 | ;; | |
11884 | ||
a243b558 JF |
11885 | interix[3-9]*) |
11886 | hardcode_direct=no | |
11887 | hardcode_shlibpath_var=no | |
9d54db95 JF |
11888 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
11889 | export_dynamic_flag_spec='$wl-E' | |
a243b558 JF |
11890 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11891 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11892 | # default) and relocated if they conflict, which is a slow very memory | |
11893 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11894 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11895 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
11896 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11897 | 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 | 11898 | ;; |
9c60689e | 11899 | |
a243b558 JF |
11900 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
11901 | tmp_diet=no | |
9d54db95 | 11902 | if test linux-dietlibc = "$host_os"; then |
a243b558 JF |
11903 | case $cc_basename in |
11904 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
11905 | esac | |
11906 | fi | |
11907 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9d54db95 | 11908 | && test no = "$tmp_diet" |
a243b558 JF |
11909 | then |
11910 | tmp_addflag=' $pic_flag' | |
11911 | tmp_sharedflag='-shared' | |
11912 | case $cc_basename,$host_cpu in | |
11913 | pgcc*) # Portland Group C compiler | |
9d54db95 | 11914 | 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 |
11915 | tmp_addflag=' $pic_flag' |
11916 | ;; | |
11917 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
11918 | # Portland Group f77 and f90 compilers | |
9d54db95 | 11919 | 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 |
11920 | tmp_addflag=' $pic_flag -Mnomain' ;; |
11921 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
11922 | tmp_addflag=' -i_dynamic' ;; | |
11923 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
11924 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
11925 | ifc* | ifort*) # Intel Fortran compiler | |
11926 | tmp_addflag=' -nofor_main' ;; | |
11927 | lf95*) # Lahey Fortran 8.1 | |
11928 | whole_archive_flag_spec= | |
11929 | tmp_sharedflag='--shared' ;; | |
9d54db95 JF |
11930 | nagfor*) # NAGFOR 5.3 |
11931 | tmp_sharedflag='-Wl,-shared' ;; | |
a243b558 JF |
11932 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
11933 | tmp_sharedflag='-qmkshrobj' | |
11934 | tmp_addflag= ;; | |
11935 | nvcc*) # Cuda Compiler Driver 2.2 | |
9d54db95 | 11936 | 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 |
11937 | compiler_needs_object=yes |
11938 | ;; | |
11939 | esac | |
11940 | case `$CC -V 2>&1 | sed 5q` in | |
11941 | *Sun\ C*) # Sun C 5.9 | |
9d54db95 | 11942 | 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 |
11943 | compiler_needs_object=yes |
11944 | tmp_sharedflag='-G' ;; | |
11945 | *Sun\ F*) # Sun Fortran 8.3 | |
11946 | tmp_sharedflag='-G' ;; | |
11947 | esac | |
9d54db95 | 11948 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9c60689e | 11949 | |
9d54db95 | 11950 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 11951 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
11952 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
11953 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11954 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
a243b558 | 11955 | fi |
9c60689e | 11956 | |
a243b558 | 11957 | case $cc_basename in |
9d54db95 JF |
11958 | tcc*) |
11959 | export_dynamic_flag_spec='-rdynamic' | |
11960 | ;; | |
a243b558 JF |
11961 | xlf* | bgf* | bgxlf* | mpixlf*) |
11962 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
11963 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9d54db95 | 11964 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 | 11965 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9d54db95 | 11966 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 11967 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
11968 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
11969 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11970 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
a243b558 JF |
11971 | fi |
11972 | ;; | |
11973 | esac | |
11974 | else | |
11975 | ld_shlibs=no | |
11976 | fi | |
11977 | ;; | |
9c60689e | 11978 | |
a243b558 JF |
11979 | netbsd*) |
11980 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11981 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
11982 | wlarc= | |
11983 | else | |
9d54db95 JF |
11984 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
11985 | 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 |
11986 | fi |
11987 | ;; | |
9c60689e | 11988 | |
a243b558 JF |
11989 | solaris*) |
11990 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
11991 | ld_shlibs=no | |
11992 | cat <<_LT_EOF 1>&2 | |
9c60689e | 11993 | |
a243b558 JF |
11994 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
11995 | *** create shared libraries on Solaris systems. Therefore, libtool | |
11996 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11997 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
11998 | *** your PATH or compiler configuration so that the native linker is | |
11999 | *** used, and then restart. | |
9c60689e | 12000 | |
a243b558 JF |
12001 | _LT_EOF |
12002 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12003 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
12004 | 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 |
12005 | else |
12006 | ld_shlibs=no | |
12007 | fi | |
12008 | ;; | |
9c60689e | 12009 | |
a243b558 JF |
12010 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
12011 | case `$LD -v 2>&1` in | |
12012 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12013 | ld_shlibs=no | |
12014 | cat <<_LT_EOF 1>&2 | |
9c60689e | 12015 | |
9d54db95 | 12016 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
a243b558 JF |
12017 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
12018 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12019 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12020 | *** your PATH or compiler configuration so that the native linker is | |
12021 | *** used, and then restart. | |
9c60689e | 12022 | |
a243b558 JF |
12023 | _LT_EOF |
12024 | ;; | |
12025 | *) | |
12026 | # For security reasons, it is highly recommended that you always | |
12027 | # use absolute paths for naming shared libraries, and exclude the | |
12028 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12029 | # requires that you compile everything twice, which is a pain. | |
12030 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12031 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
12032 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
12033 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
12034 | else |
12035 | ld_shlibs=no | |
12036 | fi | |
12037 | ;; | |
12038 | esac | |
12039 | ;; | |
9c60689e | 12040 | |
a243b558 JF |
12041 | sunos4*) |
12042 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12043 | wlarc= | |
12044 | hardcode_direct=yes | |
12045 | hardcode_shlibpath_var=no | |
12046 | ;; | |
9c60689e | 12047 | |
a243b558 JF |
12048 | *) |
12049 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
12050 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
12051 | 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 |
12052 | else |
12053 | ld_shlibs=no | |
12054 | fi | |
12055 | ;; | |
12056 | esac | |
9c60689e | 12057 | |
9d54db95 | 12058 | if test no = "$ld_shlibs"; then |
a243b558 JF |
12059 | runpath_var= |
12060 | hardcode_libdir_flag_spec= | |
12061 | export_dynamic_flag_spec= | |
12062 | whole_archive_flag_spec= | |
12063 | fi | |
12064 | else | |
12065 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12066 | case $host_os in | |
12067 | aix3*) | |
12068 | allow_undefined_flag=unsupported | |
12069 | always_export_symbols=yes | |
12070 | 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' | |
12071 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12072 | # are no directories specified by -L. | |
12073 | hardcode_minus_L=yes | |
9d54db95 | 12074 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
a243b558 JF |
12075 | # Neither direct hardcoding nor static linking is supported with a |
12076 | # broken collect2. | |
12077 | hardcode_direct=unsupported | |
12078 | fi | |
12079 | ;; | |
9c60689e | 12080 | |
a243b558 | 12081 | aix[4-9]*) |
9d54db95 | 12082 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
12083 | # On IA64, the linker does run time linking by default, so we don't |
12084 | # have to do anything special. | |
12085 | aix_use_runtimelinking=no | |
12086 | exp_sym_flag='-Bexport' | |
9d54db95 | 12087 | no_entry_flag= |
a243b558 JF |
12088 | else |
12089 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
12090 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
12091 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
12092 | # weak defined symbols like other global defined symbols, whereas | |
12093 | # GNU nm marks them as "W". | |
12094 | # While the 'weak' keyword is ignored in the Export File, we need | |
12095 | # it in the Import File for the 'aix-soname' feature, so we have | |
12096 | # to replace the "-B" option with "-P" for AIX nm. | |
a243b558 | 12097 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 12098 | 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 | 12099 | else |
9d54db95 | 12100 | 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 |
12101 | fi |
12102 | aix_use_runtimelinking=no | |
9c60689e | 12103 | |
a243b558 JF |
12104 | # Test if we are trying to use run time linking or normal |
12105 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
12106 | # have runtime linking enabled, and use it for executables. |
12107 | # For shared libraries, we enable/disable runtime linking | |
12108 | # depending on the kind of the shared library created - | |
12109 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
12110 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
12111 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
12112 | # lib.a static archive | |
12113 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
12114 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
12115 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
12116 | # lib.a(lib.so.V) shared, rtl:no | |
12117 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
12118 | # lib.a static archive | |
a243b558 JF |
12119 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
12120 | for ld_flag in $LDFLAGS; do | |
9d54db95 | 12121 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
a243b558 JF |
12122 | aix_use_runtimelinking=yes |
12123 | break | |
12124 | fi | |
12125 | done | |
9d54db95 JF |
12126 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
12127 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
12128 | # so we don't have lib.a shared libs to link our executables. | |
12129 | # We have to force runtime linking in this case. | |
12130 | aix_use_runtimelinking=yes | |
12131 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
12132 | fi | |
a243b558 JF |
12133 | ;; |
12134 | esac | |
9c60689e | 12135 | |
a243b558 JF |
12136 | exp_sym_flag='-bexport' |
12137 | no_entry_flag='-bnoentry' | |
12138 | fi | |
9c60689e | 12139 | |
a243b558 JF |
12140 | # When large executables or shared objects are built, AIX ld can |
12141 | # have problems creating the table of contents. If linking a library | |
12142 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12143 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12144 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 12145 | |
a243b558 JF |
12146 | archive_cmds='' |
12147 | hardcode_direct=yes | |
12148 | hardcode_direct_absolute=yes | |
12149 | hardcode_libdir_separator=':' | |
12150 | link_all_deplibs=yes | |
9d54db95 JF |
12151 | file_list_spec='$wl-f,' |
12152 | case $with_aix_soname,$aix_use_runtimelinking in | |
12153 | aix,*) ;; # traditional, no import file | |
12154 | svr4,* | *,yes) # use import file | |
12155 | # The Import File defines what to hardcode. | |
12156 | hardcode_direct=no | |
12157 | hardcode_direct_absolute=no | |
12158 | ;; | |
12159 | esac | |
9c60689e | 12160 | |
9d54db95 | 12161 | if test yes = "$GCC"; then |
a243b558 JF |
12162 | case $host_os in aix4.[012]|aix4.[012].*) |
12163 | # We only want to do this on AIX 4.2 and lower, the check | |
12164 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 12165 | collect2name=`$CC -print-prog-name=collect2` |
a243b558 JF |
12166 | if test -f "$collect2name" && |
12167 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12168 | then | |
12169 | # We have reworked collect2 | |
12170 | : | |
12171 | else | |
12172 | # We have old collect2 | |
12173 | hardcode_direct=unsupported | |
12174 | # It fails to find uninstalled libraries when the uninstalled | |
12175 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12176 | # to unsupported forces relinking | |
12177 | hardcode_minus_L=yes | |
12178 | hardcode_libdir_flag_spec='-L$libdir' | |
12179 | hardcode_libdir_separator= | |
12180 | fi | |
12181 | ;; | |
12182 | esac | |
12183 | shared_flag='-shared' | |
9d54db95 JF |
12184 | if test yes = "$aix_use_runtimelinking"; then |
12185 | shared_flag="$shared_flag "'$wl-G' | |
a243b558 | 12186 | fi |
9d54db95 JF |
12187 | # Need to ensure runtime linking is disabled for the traditional |
12188 | # shared library, or the linker may eventually find shared libraries | |
12189 | # /with/ Import File - we do not want to mix them. | |
12190 | shared_flag_aix='-shared' | |
12191 | shared_flag_svr4='-shared $wl-G' | |
a243b558 JF |
12192 | else |
12193 | # not using gcc | |
9d54db95 | 12194 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
12195 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
12196 | # chokes on -Wl,-G. The following line is correct: | |
12197 | shared_flag='-G' | |
12198 | else | |
9d54db95 JF |
12199 | if test yes = "$aix_use_runtimelinking"; then |
12200 | shared_flag='$wl-G' | |
a243b558 | 12201 | else |
9d54db95 | 12202 | shared_flag='$wl-bM:SRE' |
a243b558 | 12203 | fi |
9d54db95 JF |
12204 | shared_flag_aix='$wl-bM:SRE' |
12205 | shared_flag_svr4='$wl-G' | |
a243b558 JF |
12206 | fi |
12207 | fi | |
9c60689e | 12208 | |
9d54db95 | 12209 | export_dynamic_flag_spec='$wl-bexpall' |
a243b558 JF |
12210 | # It seems that -bexpall does not export symbols beginning with |
12211 | # underscore (_), so it is better to generate a list of symbols to export. | |
12212 | always_export_symbols=yes | |
9d54db95 | 12213 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
a243b558 JF |
12214 | # Warning - without using the other runtime loading flags (-brtl), |
12215 | # -berok will link without error, but may produce a broken library. | |
12216 | allow_undefined_flag='-berok' | |
12217 | # Determine the default libpath from the value encoded in an | |
12218 | # empty executable. | |
9d54db95 | 12219 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 12220 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 12221 | else |
a243b558 | 12222 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
12223 | $as_echo_n "(cached) " >&6 |
12224 | else | |
a243b558 | 12225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
12226 | /* end confdefs.h. */ |
12227 | ||
9c60689e DWT |
12228 | int |
12229 | main () | |
12230 | { | |
a243b558 | 12231 | |
9c60689e DWT |
12232 | ; |
12233 | return 0; | |
12234 | } | |
12235 | _ACEOF | |
12236 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
12237 | |
12238 | lt_aix_libpath_sed=' | |
12239 | /Import File Strings/,/^$/ { | |
12240 | /^0/ { | |
12241 | s/^0 *\([^ ]*\) *$/\1/ | |
12242 | p | |
12243 | } | |
12244 | }' | |
12245 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12246 | # Check for a 64-bit object if we didn't find anything. | |
12247 | if test -z "$lt_cv_aix_libpath_"; then | |
12248 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12249 | fi | |
9c60689e DWT |
12250 | fi |
12251 | rm -f core conftest.err conftest.$ac_objext \ | |
12252 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 12253 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 12254 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 | 12255 | fi |
9c60689e DWT |
12256 | |
12257 | fi | |
12258 | ||
a243b558 JF |
12259 | aix_libpath=$lt_cv_aix_libpath_ |
12260 | fi | |
9c60689e | 12261 | |
9d54db95 JF |
12262 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
12263 | 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 | 12264 | else |
9d54db95 JF |
12265 | if test ia64 = "$host_cpu"; then |
12266 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
a243b558 | 12267 | allow_undefined_flag="-z nodefs" |
9d54db95 | 12268 | 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 |
12269 | else |
12270 | # Determine the default libpath from the value encoded in an | |
12271 | # empty executable. | |
9d54db95 | 12272 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 12273 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 12274 | else |
a243b558 | 12275 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
12276 | $as_echo_n "(cached) " >&6 |
12277 | else | |
a243b558 | 12278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
12279 | /* end confdefs.h. */ |
12280 | ||
9c60689e DWT |
12281 | int |
12282 | main () | |
12283 | { | |
a243b558 | 12284 | |
9c60689e DWT |
12285 | ; |
12286 | return 0; | |
12287 | } | |
12288 | _ACEOF | |
12289 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 12290 | |
a243b558 JF |
12291 | lt_aix_libpath_sed=' |
12292 | /Import File Strings/,/^$/ { | |
12293 | /^0/ { | |
12294 | s/^0 *\([^ ]*\) *$/\1/ | |
12295 | p | |
12296 | } | |
12297 | }' | |
12298 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12299 | # Check for a 64-bit object if we didn't find anything. | |
12300 | if test -z "$lt_cv_aix_libpath_"; then | |
12301 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12302 | fi | |
9c60689e DWT |
12303 | fi |
12304 | rm -f core conftest.err conftest.$ac_objext \ | |
12305 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 12306 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 12307 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 JF |
12308 | fi |
12309 | ||
9c60689e | 12310 | fi |
9c60689e | 12311 | |
a243b558 JF |
12312 | aix_libpath=$lt_cv_aix_libpath_ |
12313 | fi | |
12314 | ||
9d54db95 | 12315 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
a243b558 JF |
12316 | # Warning - without using the other run time loading flags, |
12317 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
12318 | no_undefined_flag=' $wl-bernotok' |
12319 | allow_undefined_flag=' $wl-berok' | |
12320 | if test yes = "$with_gnu_ld"; then | |
a243b558 | 12321 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 12322 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
a243b558 JF |
12323 | else |
12324 | # Exported symbols can be pulled into shared objects from archives | |
12325 | whole_archive_flag_spec='$convenience' | |
12326 | fi | |
12327 | archive_cmds_need_lc=yes | |
9d54db95 JF |
12328 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
12329 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
12330 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
12331 | if test svr4 != "$with_aix_soname"; then | |
12332 | # This is similar to how AIX traditionally builds its shared libraries. | |
12333 | 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' | |
12334 | fi | |
12335 | if test aix != "$with_aix_soname"; then | |
12336 | 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' | |
12337 | else | |
12338 | # used by -dlpreopen to get the symbols | |
12339 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
12340 | fi | |
12341 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
a243b558 JF |
12342 | fi |
12343 | fi | |
12344 | ;; | |
12345 | ||
12346 | amigaos*) | |
12347 | case $host_cpu in | |
12348 | powerpc) | |
12349 | # see comment about AmigaOS4 .so support | |
9d54db95 | 12350 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
12351 | archive_expsym_cmds='' |
12352 | ;; | |
12353 | m68k) | |
12354 | 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)' | |
12355 | hardcode_libdir_flag_spec='-L$libdir' | |
12356 | hardcode_minus_L=yes | |
12357 | ;; | |
12358 | esac | |
12359 | ;; | |
12360 | ||
12361 | bsdi[45]*) | |
12362 | export_dynamic_flag_spec=-rdynamic | |
12363 | ;; | |
12364 | ||
12365 | cygwin* | mingw* | pw32* | cegcc*) | |
12366 | # When not using gcc, we currently assume that we are using | |
12367 | # Microsoft Visual C++. | |
12368 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12369 | # no search path for DLLs. | |
12370 | case $cc_basename in | |
12371 | cl*) | |
12372 | # Native MSVC | |
12373 | hardcode_libdir_flag_spec=' ' | |
12374 | allow_undefined_flag=unsupported | |
12375 | always_export_symbols=yes | |
12376 | file_list_spec='@' | |
12377 | # Tell ltmain to make .lib files, not .a files. | |
12378 | libext=lib | |
12379 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 12380 | shrext_cmds=.dll |
a243b558 | 12381 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
12382 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
12383 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
12384 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
12385 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
12386 | else | |
12387 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
12388 | fi~ | |
12389 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
12390 | linknames=' | |
a243b558 JF |
12391 | # The linker will not automatically build a static lib if we build a DLL. |
12392 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
12393 | enable_shared_with_static_runtimes=yes | |
12394 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
12395 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12396 | # Don't use ranlib | |
12397 | old_postinstall_cmds='chmod 644 $oldlib' | |
12398 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
12399 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
12400 | case $lt_outputfile in | |
12401 | *.exe|*.EXE) ;; | |
12402 | *) | |
12403 | lt_outputfile=$lt_outputfile.exe | |
12404 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
12405 | ;; | |
12406 | esac~ | |
12407 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
12408 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
12409 | $RM "$lt_outputfile.manifest"; | |
12410 | fi' | |
a243b558 JF |
12411 | ;; |
12412 | *) | |
12413 | # Assume MSVC wrapper | |
12414 | hardcode_libdir_flag_spec=' ' | |
12415 | allow_undefined_flag=unsupported | |
12416 | # Tell ltmain to make .lib files, not .a files. | |
12417 | libext=lib | |
12418 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 12419 | shrext_cmds=.dll |
a243b558 JF |
12420 | # FIXME: Setting linknames here is a bad hack. |
12421 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12422 | # The linker will automatically build a .lib file if we build a DLL. | |
12423 | old_archive_from_new_cmds='true' | |
12424 | # FIXME: Should let the user specify the lib program. | |
12425 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
12426 | enable_shared_with_static_runtimes=yes | |
12427 | ;; | |
12428 | esac | |
12429 | ;; | |
12430 | ||
12431 | darwin* | rhapsody*) | |
12432 | ||
12433 | ||
12434 | archive_cmds_need_lc=no | |
12435 | hardcode_direct=no | |
12436 | hardcode_automatic=yes | |
12437 | hardcode_shlibpath_var=unsupported | |
9d54db95 JF |
12438 | if test yes = "$lt_cv_ld_force_load"; then |
12439 | 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 |
12440 | |
12441 | else | |
12442 | whole_archive_flag_spec='' | |
12443 | fi | |
12444 | link_all_deplibs=yes | |
9d54db95 | 12445 | allow_undefined_flag=$_lt_dar_allow_undefined |
a243b558 | 12446 | case $cc_basename in |
9d54db95 | 12447 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
a243b558 JF |
12448 | *) _lt_dar_can_shared=$GCC ;; |
12449 | esac | |
9d54db95 | 12450 | if test yes = "$_lt_dar_can_shared"; then |
a243b558 | 12451 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
12452 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
12453 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
12454 | 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" | |
12455 | 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 |
12456 | |
12457 | else | |
12458 | ld_shlibs=no | |
12459 | fi | |
12460 | ||
12461 | ;; | |
12462 | ||
12463 | dgux*) | |
12464 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12465 | hardcode_libdir_flag_spec='-L$libdir' | |
12466 | hardcode_shlibpath_var=no | |
12467 | ;; | |
12468 | ||
12469 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12470 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12471 | # does not break anything, and helps significantly (at the cost of a little | |
12472 | # extra space). | |
12473 | freebsd2.2*) | |
12474 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12475 | hardcode_libdir_flag_spec='-R$libdir' | |
12476 | hardcode_direct=yes | |
12477 | hardcode_shlibpath_var=no | |
12478 | ;; | |
12479 | ||
12480 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12481 | freebsd2.*) | |
12482 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12483 | hardcode_direct=yes | |
12484 | hardcode_minus_L=yes | |
12485 | hardcode_shlibpath_var=no | |
12486 | ;; | |
12487 | ||
12488 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12489 | freebsd* | dragonfly*) | |
12490 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12491 | hardcode_libdir_flag_spec='-R$libdir' | |
12492 | hardcode_direct=yes | |
12493 | hardcode_shlibpath_var=no | |
12494 | ;; | |
12495 | ||
12496 | hpux9*) | |
9d54db95 JF |
12497 | if test yes = "$GCC"; then |
12498 | 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 | 12499 | else |
9d54db95 | 12500 | 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 | 12501 | fi |
9d54db95 | 12502 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
a243b558 JF |
12503 | hardcode_libdir_separator=: |
12504 | hardcode_direct=yes | |
12505 | ||
12506 | # hardcode_minus_L: Not really in the search PATH, | |
12507 | # but as the default location of the library. | |
12508 | hardcode_minus_L=yes | |
9d54db95 | 12509 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12510 | ;; |
12511 | ||
12512 | hpux10*) | |
9d54db95 JF |
12513 | if test yes,no = "$GCC,$with_gnu_ld"; then |
12514 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12515 | else |
12516 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12517 | fi | |
9d54db95 JF |
12518 | if test no = "$with_gnu_ld"; then |
12519 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
12520 | hardcode_libdir_separator=: |
12521 | hardcode_direct=yes | |
12522 | hardcode_direct_absolute=yes | |
9d54db95 | 12523 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12524 | # hardcode_minus_L: Not really in the search PATH, |
12525 | # but as the default location of the library. | |
12526 | hardcode_minus_L=yes | |
12527 | fi | |
12528 | ;; | |
12529 | ||
12530 | hpux11*) | |
9d54db95 | 12531 | if test yes,no = "$GCC,$with_gnu_ld"; then |
a243b558 JF |
12532 | case $host_cpu in |
12533 | hppa*64*) | |
9d54db95 | 12534 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12535 | ;; |
12536 | ia64*) | |
9d54db95 | 12537 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12538 | ;; |
12539 | *) | |
9d54db95 | 12540 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12541 | ;; |
12542 | esac | |
12543 | else | |
12544 | case $host_cpu in | |
12545 | hppa*64*) | |
9d54db95 | 12546 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12547 | ;; |
12548 | ia64*) | |
9d54db95 | 12549 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12550 | ;; |
12551 | *) | |
12552 | ||
12553 | # Older versions of the 11.00 compiler do not understand -b yet | |
12554 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
12556 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
12557 | if ${lt_cv_prog_compiler__b+:} false; then : | |
12558 | $as_echo_n "(cached) " >&6 | |
12559 | else | |
12560 | lt_cv_prog_compiler__b=no | |
9d54db95 | 12561 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
12562 | LDFLAGS="$LDFLAGS -b" |
12563 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12564 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12565 | # The linker can only warn and ignore the option if not recognized | |
12566 | # So say no if there are warnings | |
12567 | if test -s conftest.err; then | |
12568 | # Append any errors to the config.log. | |
12569 | cat conftest.err 1>&5 | |
12570 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
12571 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12572 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12573 | lt_cv_prog_compiler__b=yes | |
12574 | fi | |
12575 | else | |
12576 | lt_cv_prog_compiler__b=yes | |
12577 | fi | |
12578 | fi | |
12579 | $RM -r conftest* | |
9d54db95 | 12580 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
12581 | |
12582 | fi | |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
12584 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
12585 | ||
9d54db95 JF |
12586 | if test yes = "$lt_cv_prog_compiler__b"; then |
12587 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12588 | else |
12589 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12590 | fi | |
12591 | ||
12592 | ;; | |
12593 | esac | |
12594 | fi | |
9d54db95 JF |
12595 | if test no = "$with_gnu_ld"; then |
12596 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
12597 | hardcode_libdir_separator=: |
12598 | ||
12599 | case $host_cpu in | |
12600 | hppa*64*|ia64*) | |
12601 | hardcode_direct=no | |
12602 | hardcode_shlibpath_var=no | |
12603 | ;; | |
12604 | *) | |
12605 | hardcode_direct=yes | |
12606 | hardcode_direct_absolute=yes | |
9d54db95 | 12607 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
12608 | |
12609 | # hardcode_minus_L: Not really in the search PATH, | |
12610 | # but as the default location of the library. | |
12611 | hardcode_minus_L=yes | |
12612 | ;; | |
12613 | esac | |
12614 | fi | |
12615 | ;; | |
12616 | ||
12617 | irix5* | irix6* | nonstopux*) | |
9d54db95 JF |
12618 | if test yes = "$GCC"; then |
12619 | 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 |
12620 | # Try to use the -exported_symbol ld option, if it does not |
12621 | # work, assume that -exports_file does not work either and | |
12622 | # implicitly export all symbols. | |
12623 | # This should be the same for all languages, so no per-tag cache variable. | |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
12625 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
12626 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
12627 | $as_echo_n "(cached) " >&6 | |
12628 | else | |
9d54db95 JF |
12629 | save_LDFLAGS=$LDFLAGS |
12630 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
a243b558 JF |
12631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12632 | /* end confdefs.h. */ | |
12633 | int foo (void) { return 0; } | |
12634 | _ACEOF | |
12635 | if ac_fn_c_try_link "$LINENO"; then : | |
12636 | lt_cv_irix_exported_symbol=yes | |
12637 | else | |
12638 | lt_cv_irix_exported_symbol=no | |
12639 | fi | |
12640 | rm -f core conftest.err conftest.$ac_objext \ | |
12641 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 12642 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
12643 | fi |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
12645 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9d54db95 JF |
12646 | if test yes = "$lt_cv_irix_exported_symbol"; then |
12647 | 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 |
12648 | fi |
12649 | else | |
9d54db95 JF |
12650 | 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' |
12651 | 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 |
12652 | fi |
12653 | archive_cmds_need_lc='no' | |
9d54db95 | 12654 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12655 | hardcode_libdir_separator=: |
12656 | inherit_rpath=yes | |
12657 | link_all_deplibs=yes | |
12658 | ;; | |
12659 | ||
9d54db95 JF |
12660 | linux*) |
12661 | case $cc_basename in | |
12662 | tcc*) | |
12663 | # Fabrice Bellard et al's Tiny C Compiler | |
12664 | ld_shlibs=yes | |
12665 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12666 | ;; | |
12667 | esac | |
12668 | ;; | |
12669 | ||
a243b558 JF |
12670 | netbsd*) |
12671 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12672 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12673 | else | |
12674 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12675 | fi | |
12676 | hardcode_libdir_flag_spec='-R$libdir' | |
12677 | hardcode_direct=yes | |
12678 | hardcode_shlibpath_var=no | |
12679 | ;; | |
12680 | ||
12681 | newsos6) | |
12682 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12683 | hardcode_direct=yes | |
9d54db95 | 12684 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12685 | hardcode_libdir_separator=: |
12686 | hardcode_shlibpath_var=no | |
12687 | ;; | |
12688 | ||
12689 | *nto* | *qnx*) | |
12690 | ;; | |
12691 | ||
9d54db95 | 12692 | openbsd* | bitrig*) |
a243b558 JF |
12693 | if test -f /usr/libexec/ld.so; then |
12694 | hardcode_direct=yes | |
12695 | hardcode_shlibpath_var=no | |
12696 | hardcode_direct_absolute=yes | |
9d54db95 | 12697 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
a243b558 | 12698 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9d54db95 JF |
12699 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
12700 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
12701 | export_dynamic_flag_spec='$wl-E' | |
a243b558 | 12702 | else |
9d54db95 JF |
12703 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
12704 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
a243b558 JF |
12705 | fi |
12706 | else | |
12707 | ld_shlibs=no | |
12708 | fi | |
12709 | ;; | |
12710 | ||
12711 | os2*) | |
12712 | hardcode_libdir_flag_spec='-L$libdir' | |
12713 | hardcode_minus_L=yes | |
12714 | allow_undefined_flag=unsupported | |
9d54db95 JF |
12715 | shrext_cmds=.dll |
12716 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
12717 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
12718 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
12719 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
12720 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
12721 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
12722 | emximp -o $lib $output_objdir/$libname.def' | |
12723 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
12724 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
12725 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
12726 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
12727 | prefix_cmds="$SED"~ | |
12728 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
12729 | prefix_cmds="$prefix_cmds -e 1d"; | |
12730 | fi~ | |
12731 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
12732 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
12733 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
12734 | emximp -o $lib $output_objdir/$libname.def' | |
12735 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
12736 | enable_shared_with_static_runtimes=yes | |
a243b558 JF |
12737 | ;; |
12738 | ||
12739 | osf3*) | |
9d54db95 JF |
12740 | if test yes = "$GCC"; then |
12741 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
12742 | 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 |
12743 | else |
12744 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 12745 | 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 |
12746 | fi |
12747 | archive_cmds_need_lc='no' | |
9d54db95 | 12748 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
12749 | hardcode_libdir_separator=: |
12750 | ;; | |
12751 | ||
12752 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9d54db95 JF |
12753 | if test yes = "$GCC"; then |
12754 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
12755 | 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' | |
12756 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
a243b558 JF |
12757 | else |
12758 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 12759 | 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 | 12760 | 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 | 12761 | $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 |
12762 | |
12763 | # Both c and cxx compiler support -rpath directly | |
12764 | hardcode_libdir_flag_spec='-rpath $libdir' | |
12765 | fi | |
12766 | archive_cmds_need_lc='no' | |
12767 | hardcode_libdir_separator=: | |
12768 | ;; | |
12769 | ||
12770 | solaris*) | |
12771 | no_undefined_flag=' -z defs' | |
9d54db95 JF |
12772 | if test yes = "$GCC"; then |
12773 | wlarc='$wl' | |
12774 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12775 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12776 | $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 |
12777 | else |
12778 | case `$CC -V 2>&1` in | |
12779 | *"Compilers 5.0"*) | |
12780 | wlarc='' | |
9d54db95 | 12781 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
a243b558 | 12782 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12783 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
a243b558 JF |
12784 | ;; |
12785 | *) | |
9d54db95 JF |
12786 | wlarc='$wl' |
12787 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12788 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 12789 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a243b558 JF |
12790 | ;; |
12791 | esac | |
12792 | fi | |
12793 | hardcode_libdir_flag_spec='-R$libdir' | |
12794 | hardcode_shlibpath_var=no | |
12795 | case $host_os in | |
12796 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12797 | *) | |
12798 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 12799 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
a243b558 JF |
12800 | # but is careful enough not to reorder. |
12801 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9d54db95 JF |
12802 | if test yes = "$GCC"; then |
12803 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
a243b558 JF |
12804 | else |
12805 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
12806 | fi | |
12807 | ;; | |
12808 | esac | |
12809 | link_all_deplibs=yes | |
12810 | ;; | |
12811 | ||
12812 | sunos4*) | |
9d54db95 | 12813 | if test sequent = "$host_vendor"; then |
a243b558 JF |
12814 | # Use $CC to link under sequent, because it throws in some extra .o |
12815 | # files that make .init and .fini sections work. | |
9d54db95 | 12816 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
12817 | else |
12818 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12819 | fi | |
12820 | hardcode_libdir_flag_spec='-L$libdir' | |
12821 | hardcode_direct=yes | |
12822 | hardcode_minus_L=yes | |
12823 | hardcode_shlibpath_var=no | |
12824 | ;; | |
12825 | ||
12826 | sysv4) | |
12827 | case $host_vendor in | |
12828 | sni) | |
12829 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12830 | hardcode_direct=yes # is this really true??? | |
12831 | ;; | |
12832 | siemens) | |
12833 | ## LD is ld it makes a PLAMLIB | |
12834 | ## CC just makes a GrossModule. | |
12835 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12836 | reload_cmds='$CC -r -o $output$reload_objs' | |
12837 | hardcode_direct=no | |
12838 | ;; | |
12839 | motorola) | |
12840 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12841 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
12842 | ;; | |
12843 | esac | |
12844 | runpath_var='LD_RUN_PATH' | |
12845 | hardcode_shlibpath_var=no | |
12846 | ;; | |
12847 | ||
12848 | sysv4.3*) | |
12849 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12850 | hardcode_shlibpath_var=no | |
12851 | export_dynamic_flag_spec='-Bexport' | |
12852 | ;; | |
12853 | ||
12854 | sysv4*MP*) | |
12855 | if test -d /usr/nec; then | |
12856 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12857 | hardcode_shlibpath_var=no | |
12858 | runpath_var=LD_RUN_PATH | |
12859 | hardcode_runpath_var=yes | |
12860 | ld_shlibs=yes | |
12861 | fi | |
12862 | ;; | |
12863 | ||
12864 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9d54db95 | 12865 | no_undefined_flag='$wl-z,text' |
a243b558 JF |
12866 | archive_cmds_need_lc=no |
12867 | hardcode_shlibpath_var=no | |
12868 | runpath_var='LD_RUN_PATH' | |
12869 | ||
9d54db95 JF |
12870 | if test yes = "$GCC"; then |
12871 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12872 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12873 | else |
9d54db95 JF |
12874 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12875 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12876 | fi |
12877 | ;; | |
12878 | ||
12879 | sysv5* | sco3.2v5* | sco5v6*) | |
9d54db95 | 12880 | # Note: We CANNOT use -z defs as we might desire, because we do not |
a243b558 JF |
12881 | # link with -lc, and that would cause any symbols used from libc to |
12882 | # always be unresolved, which means just about no library would | |
12883 | # ever link correctly. If we're not using GNU ld we use -z text | |
12884 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12885 | # as -z defs. | |
9d54db95 JF |
12886 | no_undefined_flag='$wl-z,text' |
12887 | allow_undefined_flag='$wl-z,nodefs' | |
a243b558 JF |
12888 | archive_cmds_need_lc=no |
12889 | hardcode_shlibpath_var=no | |
9d54db95 | 12890 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
a243b558 JF |
12891 | hardcode_libdir_separator=':' |
12892 | link_all_deplibs=yes | |
9d54db95 | 12893 | export_dynamic_flag_spec='$wl-Bexport' |
a243b558 JF |
12894 | runpath_var='LD_RUN_PATH' |
12895 | ||
9d54db95 JF |
12896 | if test yes = "$GCC"; then |
12897 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12898 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 12899 | else |
9d54db95 JF |
12900 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12901 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
12902 | fi |
12903 | ;; | |
12904 | ||
12905 | uts4*) | |
12906 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12907 | hardcode_libdir_flag_spec='-L$libdir' | |
12908 | hardcode_shlibpath_var=no | |
12909 | ;; | |
12910 | ||
12911 | *) | |
12912 | ld_shlibs=no | |
12913 | ;; | |
12914 | esac | |
12915 | ||
9d54db95 | 12916 | if test sni = "$host_vendor"; then |
a243b558 JF |
12917 | case $host in |
12918 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9d54db95 | 12919 | export_dynamic_flag_spec='$wl-Blargedynsym' |
a243b558 JF |
12920 | ;; |
12921 | esac | |
12922 | fi | |
12923 | fi | |
12924 | ||
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
12926 | $as_echo "$ld_shlibs" >&6; } | |
9d54db95 | 12927 | test no = "$ld_shlibs" && can_build_shared=no |
a243b558 JF |
12928 | |
12929 | with_gnu_ld=$with_gnu_ld | |
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | # | |
12946 | # Do we need to explicitly link libc? | |
12947 | # | |
12948 | case "x$archive_cmds_need_lc" in | |
12949 | x|xyes) | |
12950 | # Assume -lc should be added | |
12951 | archive_cmds_need_lc=yes | |
12952 | ||
9d54db95 | 12953 | if test yes,yes = "$GCC,$enable_shared"; then |
a243b558 JF |
12954 | case $archive_cmds in |
12955 | *'~'*) | |
12956 | # FIXME: we may have to deal with multi-command sequences. | |
12957 | ;; | |
12958 | '$CC '*) | |
12959 | # Test whether the compiler implicitly links with -lc since on some | |
12960 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12961 | # to ld, don't add -lc before -lgcc. | |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
12963 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12964 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
12965 | $as_echo_n "(cached) " >&6 | |
12966 | else | |
00a96142 | 12967 | $RM -r conftest* |
a243b558 JF |
12968 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
12969 | ||
12970 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12971 | (eval $ac_compile) 2>&5 | |
12972 | ac_status=$? | |
12973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12974 | test $ac_status = 0; } 2>conftest.err; then | |
12975 | soname=conftest | |
12976 | lib=conftest | |
12977 | libobjs=conftest.$ac_objext | |
12978 | deplibs= | |
12979 | wl=$lt_prog_compiler_wl | |
12980 | pic_flag=$lt_prog_compiler_pic | |
12981 | compiler_flags=-v | |
12982 | linker_flags=-v | |
12983 | verstring= | |
12984 | output_objdir=. | |
12985 | libname=conftest | |
12986 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
12987 | allow_undefined_flag= | |
12988 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
12989 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12990 | ac_status=$? | |
12991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12992 | test $ac_status = 0; } | |
12993 | then | |
12994 | lt_cv_archive_cmds_need_lc=no | |
12995 | else | |
12996 | lt_cv_archive_cmds_need_lc=yes | |
12997 | fi | |
12998 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
12999 | else | |
13000 | cat conftest.err 1>&5 | |
13001 | fi | |
00a96142 | 13002 | $RM -r conftest* |
a243b558 JF |
13003 | |
13004 | fi | |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
13006 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
13007 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
13008 | ;; | |
13009 | esac | |
13010 | fi | |
13011 | ;; | |
13012 | esac | |
13013 | ||
13014 | ||
13015 | ||
13016 | ||
13017 | ||
13018 | ||
13019 | ||
13020 | ||
13021 | ||
13022 | ||
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | ||
13028 | ||
13029 | ||
13030 | ||
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | ||
13036 | ||
13037 | ||
13038 | ||
13039 | ||
13040 | ||
13041 | ||
13042 | ||
13043 | ||
13044 | ||
13045 | ||
13046 | ||
13047 | ||
13048 | ||
13049 | ||
13050 | ||
13051 | ||
13052 | ||
13053 | ||
13054 | ||
13055 | ||
13056 | ||
13057 | ||
13058 | ||
13059 | ||
13060 | ||
13061 | ||
13062 | ||
13063 | ||
13064 | ||
13065 | ||
13066 | ||
13067 | ||
13068 | ||
13069 | ||
13070 | ||
13071 | ||
13072 | ||
13073 | ||
13074 | ||
13075 | ||
13076 | ||
13077 | ||
13078 | ||
13079 | ||
13080 | ||
13081 | ||
13082 | ||
13083 | ||
13084 | ||
13085 | ||
13086 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13166 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13167 | ||
9d54db95 | 13168 | if test yes = "$GCC"; then |
a243b558 | 13169 | case $host_os in |
9d54db95 JF |
13170 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
13171 | *) lt_awk_arg='/^libraries:/' ;; | |
a243b558 JF |
13172 | esac |
13173 | case $host_os in | |
9d54db95 JF |
13174 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
13175 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
a243b558 JF |
13176 | esac |
13177 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
13178 | case $lt_search_path_spec in | |
13179 | *\;*) | |
13180 | # if the path contains ";" then we assume it to be the separator | |
13181 | # otherwise default to the standard path separator (i.e. ":") - it is | |
13182 | # assumed that no part of a normal pathname contains ";" but that should | |
13183 | # okay in the real world where ";" in dirpaths is itself problematic. | |
13184 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
13185 | ;; | |
13186 | *) | |
13187 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
13188 | ;; | |
13189 | esac | |
13190 | # Ok, now we have the path, separated by spaces, we can step through it | |
9d54db95 | 13191 | # and add multilib dir if necessary... |
a243b558 | 13192 | lt_tmp_lt_search_path_spec= |
9d54db95 JF |
13193 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
13194 | # ...but if some path component already ends with the multilib dir we assume | |
13195 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
13196 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
13197 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
13198 | lt_multi_os_dir= | |
13199 | ;; | |
13200 | esac | |
a243b558 | 13201 | for lt_sys_path in $lt_search_path_spec; do |
9d54db95 JF |
13202 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
13203 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
13204 | elif test -n "$lt_multi_os_dir"; then | |
a243b558 JF |
13205 | test -d "$lt_sys_path" && \ |
13206 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
13207 | fi | |
13208 | done | |
13209 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9d54db95 JF |
13210 | BEGIN {RS = " "; FS = "/|\n";} { |
13211 | lt_foo = ""; | |
13212 | lt_count = 0; | |
a243b558 JF |
13213 | for (lt_i = NF; lt_i > 0; lt_i--) { |
13214 | if ($lt_i != "" && $lt_i != ".") { | |
13215 | if ($lt_i == "..") { | |
13216 | lt_count++; | |
13217 | } else { | |
13218 | if (lt_count == 0) { | |
9d54db95 | 13219 | lt_foo = "/" $lt_i lt_foo; |
a243b558 JF |
13220 | } else { |
13221 | lt_count--; | |
13222 | } | |
13223 | } | |
13224 | } | |
13225 | } | |
13226 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
13227 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
13228 | }'` | |
13229 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
13230 | # for these hosts. | |
13231 | case $host_os in | |
13232 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9d54db95 | 13233 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
a243b558 JF |
13234 | esac |
13235 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
13236 | else | |
13237 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
13238 | fi | |
13239 | library_names_spec= | |
13240 | libname_spec='lib$name' | |
13241 | soname_spec= | |
9d54db95 | 13242 | shrext_cmds=.so |
a243b558 JF |
13243 | postinstall_cmds= |
13244 | postuninstall_cmds= | |
13245 | finish_cmds= | |
13246 | finish_eval= | |
13247 | shlibpath_var= | |
13248 | shlibpath_overrides_runpath=unknown | |
13249 | version_type=none | |
13250 | dynamic_linker="$host_os ld.so" | |
13251 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13252 | need_lib_prefix=unknown | |
13253 | hardcode_into_libs=no | |
13254 | ||
13255 | # when you set need_version to no, make sure it does not cause -set_version | |
13256 | # flags to be left without arguments | |
13257 | need_version=unknown | |
13258 | ||
9d54db95 JF |
13259 | |
13260 | ||
a243b558 JF |
13261 | case $host_os in |
13262 | aix3*) | |
13263 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 13264 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
a243b558 JF |
13265 | shlibpath_var=LIBPATH |
13266 | ||
13267 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 13268 | soname_spec='$libname$release$shared_ext$major' |
a243b558 JF |
13269 | ;; |
13270 | ||
13271 | aix[4-9]*) | |
13272 | version_type=linux # correct to gnu/linux during the next big refactor | |
13273 | need_lib_prefix=no | |
13274 | need_version=no | |
13275 | hardcode_into_libs=yes | |
9d54db95 | 13276 | if test ia64 = "$host_cpu"; then |
a243b558 | 13277 | # AIX 5 supports IA64 |
9d54db95 | 13278 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
a243b558 JF |
13279 | shlibpath_var=LD_LIBRARY_PATH |
13280 | else | |
13281 | # With GCC up to 2.95.x, collect2 would create an import file | |
13282 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
13283 | # the line '#! .'. This would cause the generated library to |
13284 | # depend on '.', always an invalid library. This was fixed in | |
a243b558 JF |
13285 | # development snapshots of GCC prior to 3.0. |
13286 | case $host_os in | |
13287 | aix4 | aix4.[01] | aix4.[01].*) | |
13288 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13289 | echo ' yes ' | |
9d54db95 | 13290 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
a243b558 JF |
13291 | : |
13292 | else | |
13293 | can_build_shared=no | |
13294 | fi | |
13295 | ;; | |
13296 | esac | |
9d54db95 JF |
13297 | # Using Import Files as archive members, it is possible to support |
13298 | # filename-based versioning of shared library archives on AIX. While | |
13299 | # this would work for both with and without runtime linking, it will | |
13300 | # prevent static linking of such archives. So we do filename-based | |
13301 | # shared library versioning with .so extension only, which is used | |
13302 | # when both runtime linking and shared linking is enabled. | |
13303 | # Unfortunately, runtime linking may impact performance, so we do | |
13304 | # not want this to be the default eventually. Also, we use the | |
13305 | # versioned .so libs for executables only if there is the -brtl | |
13306 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
13307 | # To allow for filename-based versioning support, we need to create | |
13308 | # libNAME.so.V as an archive file, containing: | |
13309 | # *) an Import File, referring to the versioned filename of the | |
13310 | # archive as well as the shared archive member, telling the | |
13311 | # bitwidth (32 or 64) of that shared object, and providing the | |
13312 | # list of exported symbols of that shared object, eventually | |
13313 | # decorated with the 'weak' keyword | |
13314 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
13315 | # it being seen by the linker. | |
13316 | # At run time we better use the real file rather than another symlink, | |
13317 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
13318 | ||
13319 | case $with_aix_soname,$aix_use_runtimelinking in | |
13320 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
a243b558 JF |
13321 | # soname into executable. Probably we can add versioning support to |
13322 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
13323 | aix,yes) # traditional libtool |
13324 | dynamic_linker='AIX unversionable lib.so' | |
a243b558 JF |
13325 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
13326 | # instead of lib<name>.a to let people know that these are not | |
13327 | # typical AIX shared libraries. | |
9d54db95 JF |
13328 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13329 | ;; | |
13330 | aix,no) # traditional AIX only | |
13331 | dynamic_linker='AIX lib.a(lib.so.V)' | |
a243b558 JF |
13332 | # We preserve .a as extension for shared libraries through AIX4.2 |
13333 | # and later when we are not doing run time linking. | |
9d54db95 JF |
13334 | library_names_spec='$libname$release.a $libname.a' |
13335 | soname_spec='$libname$release$shared_ext$major' | |
13336 | ;; | |
13337 | svr4,*) # full svr4 only | |
13338 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
13339 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
13340 | # We do not specify a path in Import Files, so LIBPATH fires. | |
13341 | shlibpath_overrides_runpath=yes | |
13342 | ;; | |
13343 | *,yes) # both, prefer svr4 | |
13344 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
13345 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
13346 | # unpreferred sharedlib libNAME.a needs extra handling | |
13347 | 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"' | |
13348 | 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"' | |
13349 | # We do not specify a path in Import Files, so LIBPATH fires. | |
13350 | shlibpath_overrides_runpath=yes | |
13351 | ;; | |
13352 | *,no) # both, prefer aix | |
13353 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
13354 | library_names_spec='$libname$release.a $libname.a' | |
13355 | soname_spec='$libname$release$shared_ext$major' | |
13356 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
13357 | 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)' | |
13358 | 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"' | |
13359 | ;; | |
13360 | esac | |
a243b558 JF |
13361 | shlibpath_var=LIBPATH |
13362 | fi | |
13363 | ;; | |
13364 | ||
13365 | amigaos*) | |
13366 | case $host_cpu in | |
13367 | powerpc) | |
13368 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13369 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 13370 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
13371 | ;; |
13372 | m68k) | |
13373 | library_names_spec='$libname.ixlibrary $libname.a' | |
13374 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 13375 | 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 |
13376 | ;; |
13377 | esac | |
13378 | ;; | |
13379 | ||
13380 | beos*) | |
9d54db95 | 13381 | library_names_spec='$libname$shared_ext' |
a243b558 JF |
13382 | dynamic_linker="$host_os ld.so" |
13383 | shlibpath_var=LIBRARY_PATH | |
13384 | ;; | |
13385 | ||
13386 | bsdi[45]*) | |
13387 | version_type=linux # correct to gnu/linux during the next big refactor | |
13388 | need_version=no | |
9d54db95 JF |
13389 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13390 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13391 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
13392 | shlibpath_var=LD_LIBRARY_PATH | |
13393 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13394 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13395 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13396 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13397 | # libtool to hard-code these into programs | |
13398 | ;; | |
13399 | ||
13400 | cygwin* | mingw* | pw32* | cegcc*) | |
13401 | version_type=windows | |
9d54db95 | 13402 | shrext_cmds=.dll |
a243b558 JF |
13403 | need_version=no |
13404 | need_lib_prefix=no | |
9c60689e | 13405 | |
a243b558 JF |
13406 | case $GCC,$cc_basename in |
13407 | yes,*) | |
13408 | # gcc | |
13409 | library_names_spec='$libname.dll.a' | |
13410 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
13411 | postinstall_cmds='base_file=`basename \$file`~ |
13412 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
13413 | dldir=$destdir/`dirname \$dlpath`~ |
13414 | test -d \$dldir || mkdir -p \$dldir~ | |
13415 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13416 | chmod a+x \$dldir/$dlname~ | |
13417 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13418 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13419 | fi' | |
13420 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13421 | dlpath=$dir/\$dldll~ | |
13422 | $RM \$dlpath' | |
13423 | shlibpath_overrides_runpath=yes | |
9c60689e | 13424 | |
a243b558 JF |
13425 | case $host_os in |
13426 | cygwin*) | |
13427 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 13428 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
9c60689e | 13429 | |
a243b558 JF |
13430 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
13431 | ;; | |
13432 | mingw* | cegcc*) | |
13433 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 13434 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
13435 | ;; |
13436 | pw32*) | |
13437 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 13438 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
13439 | ;; |
13440 | esac | |
13441 | dynamic_linker='Win32 ld.exe' | |
13442 | ;; | |
9c60689e | 13443 | |
a243b558 JF |
13444 | *,cl*) |
13445 | # Native MSVC | |
13446 | libname_spec='$name' | |
9d54db95 JF |
13447 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
13448 | library_names_spec='$libname.dll.lib' | |
9c60689e | 13449 | |
a243b558 JF |
13450 | case $build_os in |
13451 | mingw*) | |
13452 | sys_lib_search_path_spec= | |
13453 | lt_save_ifs=$IFS | |
13454 | IFS=';' | |
13455 | for lt_path in $LIB | |
13456 | do | |
13457 | IFS=$lt_save_ifs | |
13458 | # Let DOS variable expansion print the short 8.3 style file name. | |
13459 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
13460 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
13461 | done | |
13462 | IFS=$lt_save_ifs | |
13463 | # Convert to MSYS style. | |
13464 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
13465 | ;; | |
13466 | cygwin*) | |
13467 | # Convert to unix form, then to dos form, then back to unix form | |
13468 | # but this time dos style (no spaces!) so that the unix form looks | |
13469 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
13470 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
13471 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
13472 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13473 | ;; | |
13474 | *) | |
9d54db95 | 13475 | sys_lib_search_path_spec=$LIB |
a243b558 JF |
13476 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
13477 | # It is most probably a Windows format PATH. | |
13478 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13479 | else | |
13480 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13481 | fi | |
13482 | # FIXME: find the short name or the path components, as spaces are | |
13483 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
13484 | ;; | |
13485 | esac | |
13486 | ||
13487 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
13488 | postinstall_cmds='base_file=`basename \$file`~ |
13489 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
13490 | dldir=$destdir/`dirname \$dlpath`~ |
13491 | test -d \$dldir || mkdir -p \$dldir~ | |
13492 | $install_prog $dir/$dlname \$dldir/$dlname' | |
13493 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13494 | dlpath=$dir/\$dldll~ | |
13495 | $RM \$dlpath' | |
13496 | shlibpath_overrides_runpath=yes | |
13497 | dynamic_linker='Win32 link.exe' | |
13498 | ;; | |
9c60689e | 13499 | |
a243b558 JF |
13500 | *) |
13501 | # Assume MSVC wrapper | |
9d54db95 | 13502 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
a243b558 JF |
13503 | dynamic_linker='Win32 ld.exe' |
13504 | ;; | |
13505 | esac | |
13506 | # FIXME: first we should search . and the directory the executable is in | |
13507 | shlibpath_var=PATH | |
13508 | ;; | |
9c60689e | 13509 | |
a243b558 JF |
13510 | darwin* | rhapsody*) |
13511 | dynamic_linker="$host_os dyld" | |
13512 | version_type=darwin | |
13513 | need_lib_prefix=no | |
13514 | need_version=no | |
9d54db95 JF |
13515 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
13516 | soname_spec='$libname$release$major$shared_ext' | |
a243b558 JF |
13517 | shlibpath_overrides_runpath=yes |
13518 | shlibpath_var=DYLD_LIBRARY_PATH | |
13519 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13520 | |
a243b558 JF |
13521 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
13522 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13523 | ;; | |
9c60689e | 13524 | |
a243b558 JF |
13525 | dgux*) |
13526 | version_type=linux # correct to gnu/linux during the next big refactor | |
13527 | need_lib_prefix=no | |
13528 | need_version=no | |
9d54db95 JF |
13529 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13530 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13531 | shlibpath_var=LD_LIBRARY_PATH |
13532 | ;; | |
13533 | ||
13534 | freebsd* | dragonfly*) | |
13535 | # DragonFly does not have aout. When/if they implement a new | |
13536 | # versioning mechanism, adjust this. | |
13537 | if test -x /usr/bin/objformat; then | |
13538 | objformat=`/usr/bin/objformat` | |
13539 | else | |
13540 | case $host_os in | |
13541 | freebsd[23].*) objformat=aout ;; | |
13542 | *) objformat=elf ;; | |
13543 | esac | |
13544 | fi | |
13545 | version_type=freebsd-$objformat | |
13546 | case $version_type in | |
13547 | freebsd-elf*) | |
9d54db95 JF |
13548 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13549 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13550 | need_version=no |
13551 | need_lib_prefix=no | |
13552 | ;; | |
13553 | freebsd-*) | |
9d54db95 | 13554 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13555 | need_version=yes |
13556 | ;; | |
13557 | esac | |
13558 | shlibpath_var=LD_LIBRARY_PATH | |
13559 | case $host_os in | |
13560 | freebsd2.*) | |
13561 | shlibpath_overrides_runpath=yes | |
13562 | ;; | |
13563 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13564 | shlibpath_overrides_runpath=yes | |
13565 | hardcode_into_libs=yes | |
13566 | ;; | |
13567 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13568 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13569 | shlibpath_overrides_runpath=no | |
13570 | hardcode_into_libs=yes | |
13571 | ;; | |
13572 | *) # from 4.6 on, and DragonFly | |
13573 | shlibpath_overrides_runpath=yes | |
13574 | hardcode_into_libs=yes | |
13575 | ;; | |
13576 | esac | |
13577 | ;; | |
9c60689e | 13578 | |
a243b558 JF |
13579 | haiku*) |
13580 | version_type=linux # correct to gnu/linux during the next big refactor | |
13581 | need_lib_prefix=no | |
13582 | need_version=no | |
13583 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
13584 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13585 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 13586 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 13587 | shlibpath_overrides_runpath=no |
a243b558 JF |
13588 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
13589 | hardcode_into_libs=yes | |
13590 | ;; | |
9c60689e | 13591 | |
a243b558 JF |
13592 | hpux9* | hpux10* | hpux11*) |
13593 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13594 | # link against other versions. | |
13595 | version_type=sunos | |
13596 | need_lib_prefix=no | |
13597 | need_version=no | |
13598 | case $host_cpu in | |
13599 | ia64*) | |
13600 | shrext_cmds='.so' | |
13601 | hardcode_into_libs=yes | |
13602 | dynamic_linker="$host_os dld.so" | |
13603 | shlibpath_var=LD_LIBRARY_PATH | |
13604 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
13605 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13606 | soname_spec='$libname$release$shared_ext$major' | |
13607 | if test 32 = "$HPUX_IA64_MODE"; then | |
a243b558 | 13608 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 13609 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
a243b558 JF |
13610 | else |
13611 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 13612 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
a243b558 | 13613 | fi |
a243b558 JF |
13614 | ;; |
13615 | hppa*64*) | |
13616 | shrext_cmds='.sl' | |
13617 | hardcode_into_libs=yes | |
13618 | dynamic_linker="$host_os dld.sl" | |
13619 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13620 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
13621 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13622 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13623 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13624 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13625 | ;; | |
13626 | *) | |
13627 | shrext_cmds='.sl' | |
13628 | dynamic_linker="$host_os dld.sl" | |
13629 | shlibpath_var=SHLIB_PATH | |
13630 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
13631 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13632 | soname_spec='$libname$release$shared_ext$major' | |
9c60689e DWT |
13633 | ;; |
13634 | esac | |
a243b558 JF |
13635 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
13636 | postinstall_cmds='chmod 555 $lib' | |
13637 | # or fails outright, so override atomically: | |
13638 | install_override_mode=555 | |
13639 | ;; | |
9c60689e | 13640 | |
a243b558 JF |
13641 | interix[3-9]*) |
13642 | version_type=linux # correct to gnu/linux during the next big refactor | |
13643 | need_lib_prefix=no | |
13644 | need_version=no | |
9d54db95 JF |
13645 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13646 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13647 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13648 | shlibpath_var=LD_LIBRARY_PATH | |
13649 | shlibpath_overrides_runpath=no | |
13650 | hardcode_into_libs=yes | |
13651 | ;; | |
9c60689e | 13652 | |
a243b558 JF |
13653 | irix5* | irix6* | nonstopux*) |
13654 | case $host_os in | |
13655 | nonstopux*) version_type=nonstopux ;; | |
13656 | *) | |
9d54db95 | 13657 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
13658 | version_type=linux # correct to gnu/linux during the next big refactor |
13659 | else | |
13660 | version_type=irix | |
13661 | fi ;; | |
13662 | esac | |
13663 | need_lib_prefix=no | |
13664 | need_version=no | |
9d54db95 JF |
13665 | soname_spec='$libname$release$shared_ext$major' |
13666 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
a243b558 JF |
13667 | case $host_os in |
13668 | irix5* | nonstopux*) | |
13669 | libsuff= shlibsuff= | |
13670 | ;; | |
13671 | *) | |
13672 | case $LD in # libtool.m4 will add one of these switches to LD | |
13673 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13674 | libsuff= shlibsuff= libmagic=32-bit;; | |
13675 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13676 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13677 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13678 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13679 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13680 | esac | |
13681 | ;; | |
13682 | esac | |
13683 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13684 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
13685 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
13686 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
a243b558 JF |
13687 | hardcode_into_libs=yes |
13688 | ;; | |
9c60689e | 13689 | |
a243b558 JF |
13690 | # No shared lib support for Linux oldld, aout, or coff. |
13691 | linux*oldld* | linux*aout* | linux*coff*) | |
13692 | dynamic_linker=no | |
13693 | ;; | |
9c60689e | 13694 | |
9d54db95 JF |
13695 | linux*android*) |
13696 | version_type=none # Android doesn't support versioned libraries. | |
13697 | need_lib_prefix=no | |
13698 | need_version=no | |
13699 | library_names_spec='$libname$release$shared_ext' | |
13700 | soname_spec='$libname$release$shared_ext' | |
13701 | finish_cmds= | |
13702 | shlibpath_var=LD_LIBRARY_PATH | |
13703 | shlibpath_overrides_runpath=yes | |
13704 | ||
13705 | # This implies no fast_install, which is unacceptable. | |
13706 | # Some rework will be needed to allow for fast_install | |
13707 | # before this can be enabled. | |
13708 | hardcode_into_libs=yes | |
13709 | ||
13710 | dynamic_linker='Android linker' | |
13711 | # Don't embed -rpath directories since the linker doesn't support them. | |
13712 | hardcode_libdir_flag_spec='-L$libdir' | |
13713 | ;; | |
13714 | ||
a243b558 | 13715 | # This must be glibc/ELF. |
9d54db95 | 13716 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
13717 | version_type=linux # correct to gnu/linux during the next big refactor |
13718 | need_lib_prefix=no | |
13719 | need_version=no | |
9d54db95 JF |
13720 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13721 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13722 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13723 | shlibpath_var=LD_LIBRARY_PATH | |
13724 | shlibpath_overrides_runpath=no | |
9c60689e | 13725 | |
a243b558 JF |
13726 | # Some binutils ld are patched to set DT_RUNPATH |
13727 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
13728 | $as_echo_n "(cached) " >&6 |
13729 | else | |
a243b558 JF |
13730 | lt_cv_shlibpath_overrides_runpath=no |
13731 | save_LDFLAGS=$LDFLAGS | |
13732 | save_libdir=$libdir | |
13733 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
13734 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
13735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13736 | /* end confdefs.h. */ | |
ee134472 | 13737 | |
a243b558 JF |
13738 | int |
13739 | main () | |
9c60689e | 13740 | { |
9c60689e | 13741 | |
a243b558 JF |
13742 | ; |
13743 | return 0; | |
13744 | } | |
13745 | _ACEOF | |
13746 | if ac_fn_c_try_link "$LINENO"; then : | |
13747 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13748 | lt_cv_shlibpath_overrides_runpath=yes | |
13749 | fi | |
13750 | fi | |
13751 | rm -f core conftest.err conftest.$ac_objext \ | |
13752 | conftest$ac_exeext conftest.$ac_ext | |
13753 | LDFLAGS=$save_LDFLAGS | |
13754 | libdir=$save_libdir | |
9c60689e | 13755 | |
a243b558 | 13756 | fi |
9c60689e | 13757 | |
a243b558 | 13758 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 13759 | |
a243b558 JF |
13760 | # This implies no fast_install, which is unacceptable. |
13761 | # Some rework will be needed to allow for fast_install | |
13762 | # before this can be enabled. | |
13763 | hardcode_into_libs=yes | |
9c60689e | 13764 | |
9d54db95 JF |
13765 | # Ideally, we could use ldconfig to report *all* directores which are |
13766 | # searched for libraries, however this is still not possible. Aside from not | |
13767 | # being certain /sbin/ldconfig is available, command | |
13768 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
13769 | # even though it is searched at run-time. Try to do the best guess by | |
13770 | # appending ld.so.conf contents (and includes) to the search path. | |
a243b558 JF |
13771 | if test -f /etc/ld.so.conf; then |
13772 | 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' ' '` | |
13773 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13774 | fi | |
ee134472 | 13775 | |
a243b558 JF |
13776 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13777 | # powerpc, because MkLinux only supported shared libraries with the | |
13778 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13779 | # most powerpc-linux boxes support dynamic linking these days and | |
13780 | # people can always --disable-shared, the test was removed, and we | |
13781 | # assume the GNU/Linux dynamic linker is in use. | |
13782 | dynamic_linker='GNU/Linux ld.so' | |
13783 | ;; | |
9c60689e | 13784 | |
a243b558 JF |
13785 | netbsd*) |
13786 | version_type=sunos | |
13787 | need_lib_prefix=no | |
13788 | need_version=no | |
13789 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 13790 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13791 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13792 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 13793 | else |
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 | 13796 | dynamic_linker='NetBSD ld.elf_so' |
9c60689e | 13797 | fi |
a243b558 JF |
13798 | shlibpath_var=LD_LIBRARY_PATH |
13799 | shlibpath_overrides_runpath=yes | |
13800 | hardcode_into_libs=yes | |
13801 | ;; | |
9c60689e | 13802 | |
a243b558 JF |
13803 | newsos6) |
13804 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 13805 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
13806 | shlibpath_var=LD_LIBRARY_PATH |
13807 | shlibpath_overrides_runpath=yes | |
13808 | ;; | |
9c60689e | 13809 | |
a243b558 JF |
13810 | *nto* | *qnx*) |
13811 | version_type=qnx | |
13812 | need_lib_prefix=no | |
13813 | need_version=no | |
9d54db95 JF |
13814 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13815 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13816 | shlibpath_var=LD_LIBRARY_PATH |
13817 | shlibpath_overrides_runpath=no | |
13818 | hardcode_into_libs=yes | |
13819 | dynamic_linker='ldqnx.so' | |
13820 | ;; | |
9c60689e | 13821 | |
9d54db95 | 13822 | openbsd* | bitrig*) |
a243b558 | 13823 | version_type=sunos |
9d54db95 | 13824 | sys_lib_dlsearch_path_spec=/usr/lib |
a243b558 | 13825 | need_lib_prefix=no |
9d54db95 JF |
13826 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
13827 | need_version=no | |
a243b558 | 13828 | else |
9d54db95 | 13829 | need_version=yes |
a243b558 | 13830 | fi |
9d54db95 JF |
13831 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
13832 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13833 | shlibpath_var=LD_LIBRARY_PATH | |
13834 | shlibpath_overrides_runpath=yes | |
a243b558 | 13835 | ;; |
9c60689e | 13836 | |
a243b558 JF |
13837 | os2*) |
13838 | libname_spec='$name' | |
9d54db95 JF |
13839 | version_type=windows |
13840 | shrext_cmds=.dll | |
13841 | need_version=no | |
a243b558 | 13842 | need_lib_prefix=no |
9d54db95 JF |
13843 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
13844 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
13845 | v=$($ECHO $release$versuffix | tr -d .-); | |
13846 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
13847 | $ECHO $n$v`$shared_ext' | |
13848 | library_names_spec='${libname}_dll.$libext' | |
a243b558 | 13849 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
13850 | shlibpath_var=BEGINLIBPATH |
13851 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
13852 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13853 | postinstall_cmds='base_file=`basename \$file`~ | |
13854 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
13855 | dldir=$destdir/`dirname \$dlpath`~ | |
13856 | test -d \$dldir || mkdir -p \$dldir~ | |
13857 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13858 | chmod a+x \$dldir/$dlname~ | |
13859 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13860 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13861 | fi' | |
13862 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
13863 | dlpath=$dir/\$dldll~ | |
13864 | $RM \$dlpath' | |
a243b558 | 13865 | ;; |
9c60689e | 13866 | |
a243b558 JF |
13867 | osf3* | osf4* | osf5*) |
13868 | version_type=osf | |
13869 | need_lib_prefix=no | |
13870 | need_version=no | |
9d54db95 JF |
13871 | soname_spec='$libname$release$shared_ext$major' |
13872 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
a243b558 JF |
13873 | shlibpath_var=LD_LIBRARY_PATH |
13874 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 13875 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
a243b558 JF |
13876 | ;; |
13877 | ||
13878 | rdos*) | |
13879 | dynamic_linker=no | |
13880 | ;; | |
13881 | ||
13882 | solaris*) | |
13883 | version_type=linux # correct to gnu/linux during the next big refactor | |
13884 | need_lib_prefix=no | |
13885 | need_version=no | |
9d54db95 JF |
13886 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13887 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13888 | shlibpath_var=LD_LIBRARY_PATH |
13889 | shlibpath_overrides_runpath=yes | |
13890 | hardcode_into_libs=yes | |
13891 | # ldd complains unless libraries are executable | |
13892 | postinstall_cmds='chmod +x $lib' | |
13893 | ;; | |
9c60689e | 13894 | |
a243b558 JF |
13895 | sunos4*) |
13896 | version_type=sunos | |
9d54db95 | 13897 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
13898 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13899 | shlibpath_var=LD_LIBRARY_PATH | |
13900 | shlibpath_overrides_runpath=yes | |
9d54db95 | 13901 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
13902 | need_lib_prefix=no |
13903 | fi | |
13904 | need_version=yes | |
13905 | ;; | |
9c60689e | 13906 | |
a243b558 JF |
13907 | sysv4 | sysv4.3*) |
13908 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
13909 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13910 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13911 | shlibpath_var=LD_LIBRARY_PATH |
13912 | case $host_vendor in | |
13913 | sni) | |
13914 | shlibpath_overrides_runpath=no | |
13915 | need_lib_prefix=no | |
13916 | runpath_var=LD_RUN_PATH | |
13917 | ;; | |
13918 | siemens) | |
13919 | need_lib_prefix=no | |
13920 | ;; | |
13921 | motorola) | |
13922 | need_lib_prefix=no | |
13923 | need_version=no | |
13924 | shlibpath_overrides_runpath=no | |
13925 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13926 | ;; | |
13927 | esac | |
13928 | ;; | |
9c60689e | 13929 | |
a243b558 | 13930 | sysv4*MP*) |
9d54db95 | 13931 | if test -d /usr/nec; then |
a243b558 | 13932 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
13933 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
13934 | soname_spec='$libname$shared_ext.$major' | |
a243b558 JF |
13935 | shlibpath_var=LD_LIBRARY_PATH |
13936 | fi | |
13937 | ;; | |
9c60689e | 13938 | |
a243b558 | 13939 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 13940 | version_type=sco |
a243b558 JF |
13941 | need_lib_prefix=no |
13942 | need_version=no | |
9d54db95 JF |
13943 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
13944 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13945 | shlibpath_var=LD_LIBRARY_PATH |
13946 | shlibpath_overrides_runpath=yes | |
13947 | hardcode_into_libs=yes | |
9d54db95 | 13948 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
13949 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13950 | else | |
13951 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13952 | case $host_os in | |
13953 | sco3.2v5*) | |
13954 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13955 | ;; | |
13956 | esac | |
13957 | fi | |
13958 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13959 | ;; | |
9c60689e | 13960 | |
a243b558 JF |
13961 | tpf*) |
13962 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13963 | version_type=linux # correct to gnu/linux during the next big refactor | |
13964 | need_lib_prefix=no | |
13965 | need_version=no | |
9d54db95 | 13966 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
13967 | shlibpath_var=LD_LIBRARY_PATH |
13968 | shlibpath_overrides_runpath=no | |
13969 | hardcode_into_libs=yes | |
13970 | ;; | |
9c60689e | 13971 | |
a243b558 JF |
13972 | uts4*) |
13973 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
13974 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
13975 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
13976 | shlibpath_var=LD_LIBRARY_PATH |
13977 | ;; | |
9c60689e | 13978 | |
a243b558 JF |
13979 | *) |
13980 | dynamic_linker=no | |
13981 | ;; | |
13982 | esac | |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13984 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 13985 | test no = "$dynamic_linker" && can_build_shared=no |
9c60689e | 13986 | |
a243b558 | 13987 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9d54db95 | 13988 | if test yes = "$GCC"; then |
a243b558 JF |
13989 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13990 | fi | |
9c60689e | 13991 | |
9d54db95 JF |
13992 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
13993 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
a243b558 | 13994 | fi |
9d54db95 JF |
13995 | |
13996 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
13997 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
a243b558 | 13998 | fi |
9c60689e | 13999 | |
9d54db95 JF |
14000 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
14001 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
14002 | ||
14003 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
14004 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
14005 | ||
14006 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
14007 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
14008 | ||
14009 | ||
14010 | ||
14011 | ||
14012 | ||
14013 | ||
9c60689e DWT |
14014 | |
14015 | ||
14016 | ||
14017 | ||
14018 | ||
14019 | ||
14020 | ||
9c60689e DWT |
14021 | |
14022 | ||
14023 | ||
14024 | ||
14025 | ||
14026 | ||
14027 | ||
14028 | ||
14029 | ||
14030 | ||
14031 | ||
14032 | ||
9c60689e | 14033 | |
9c60689e | 14034 | |
9c60689e | 14035 | |
9c60689e | 14036 | |
9c60689e DWT |
14037 | |
14038 | ||
14039 | ||
14040 | ||
9c60689e | 14041 | |
9c60689e DWT |
14042 | |
14043 | ||
14044 | ||
14045 | ||
14046 | ||
14047 | ||
14048 | ||
14049 | ||
14050 | ||
14051 | ||
14052 | ||
14053 | ||
14054 | ||
53ba6704 JF |
14055 | |
14056 | ||
9c60689e DWT |
14057 | |
14058 | ||
14059 | ||
14060 | ||
9c60689e DWT |
14061 | |
14062 | ||
3fd51f51 | 14063 | |
66170b30 JF |
14064 | |
14065 | ||
14066 | ||
3fd51f51 | 14067 | |
12833ad8 JF |
14068 | |
14069 | ||
14070 | ||
14071 | ||
3fd51f51 | 14072 | |
3fd51f51 DWT |
14073 | |
14074 | ||
3fd51f51 | 14075 | |
3fd51f51 | 14076 | |
3fd51f51 | 14077 | |
66170b30 | 14078 | |
632b71ea | 14079 | |
632b71ea DWT |
14080 | |
14081 | ||
790e5246 | 14082 | |
66170b30 | 14083 | |
9c60689e | 14084 | |
9c60689e DWT |
14085 | |
14086 | ||
9c60689e | 14087 | |
9c60689e DWT |
14088 | |
14089 | ||
66170b30 | 14090 | |
66170b30 | 14091 | |
9c60689e | 14092 | |
e9c9a47c DWT |
14093 | |
14094 | ||
14095 | ||
66170b30 JF |
14096 | |
14097 | ||
66170b30 | 14098 | |
e9c9a47c | 14099 | |
a243b558 JF |
14100 | |
14101 | ||
14102 | ||
14103 | ||
14104 | ||
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14106 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14107 | hardcode_action= | |
14108 | if test -n "$hardcode_libdir_flag_spec" || | |
14109 | test -n "$runpath_var" || | |
9d54db95 | 14110 | test yes = "$hardcode_automatic"; then |
a243b558 JF |
14111 | |
14112 | # We can hardcode non-existent directories. | |
9d54db95 | 14113 | if test no != "$hardcode_direct" && |
a243b558 JF |
14114 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
14115 | # have to relink, otherwise we might link with an installed library | |
14116 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
14117 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
14118 | test no != "$hardcode_minus_L"; then | |
a243b558 JF |
14119 | # Linking always hardcodes the temporary library directory. |
14120 | hardcode_action=relink | |
14121 | else | |
14122 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14123 | hardcode_action=immediate | |
9c60689e | 14124 | fi |
e9c9a47c | 14125 | else |
a243b558 JF |
14126 | # We cannot hardcode anything, or else we can only hardcode existing |
14127 | # directories. | |
14128 | hardcode_action=unsupported | |
14129 | fi | |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
14131 | $as_echo "$hardcode_action" >&6; } | |
14132 | ||
9d54db95 JF |
14133 | if test relink = "$hardcode_action" || |
14134 | test yes = "$inherit_rpath"; then | |
a243b558 JF |
14135 | # Fast installation is not supported |
14136 | enable_fast_install=no | |
9d54db95 JF |
14137 | elif test yes = "$shlibpath_overrides_runpath" || |
14138 | test no = "$enable_shared"; then | |
a243b558 JF |
14139 | # Fast installation is not necessary |
14140 | enable_fast_install=needless | |
9c60689e | 14141 | fi |
9c60689e | 14142 | |
9c60689e | 14143 | |
66170b30 | 14144 | |
66170b30 | 14145 | |
9c60689e | 14146 | |
a243b558 | 14147 | |
9d54db95 | 14148 | if test yes != "$enable_dlopen"; then |
a243b558 JF |
14149 | enable_dlopen=unknown |
14150 | enable_dlopen_self=unknown | |
14151 | enable_dlopen_self_static=unknown | |
66170b30 | 14152 | else |
a243b558 JF |
14153 | lt_cv_dlopen=no |
14154 | lt_cv_dlopen_libs= | |
66170b30 | 14155 | |
a243b558 JF |
14156 | case $host_os in |
14157 | beos*) | |
9d54db95 | 14158 | lt_cv_dlopen=load_add_on |
a243b558 JF |
14159 | lt_cv_dlopen_libs= |
14160 | lt_cv_dlopen_self=yes | |
14161 | ;; | |
66170b30 | 14162 | |
a243b558 | 14163 | mingw* | pw32* | cegcc*) |
9d54db95 | 14164 | lt_cv_dlopen=LoadLibrary |
a243b558 JF |
14165 | lt_cv_dlopen_libs= |
14166 | ;; | |
66170b30 | 14167 | |
a243b558 | 14168 | cygwin*) |
9d54db95 | 14169 | lt_cv_dlopen=dlopen |
a243b558 JF |
14170 | lt_cv_dlopen_libs= |
14171 | ;; | |
66170b30 | 14172 | |
a243b558 | 14173 | darwin*) |
9d54db95 | 14174 | # if libdl is installed we need to link against it |
a243b558 JF |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
14176 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
14177 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
14178 | $as_echo_n "(cached) " >&6 | |
14179 | else | |
14180 | ac_check_lib_save_LIBS=$LIBS | |
14181 | LIBS="-ldl $LIBS" | |
14182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14183 | /* end confdefs.h. */ | |
66170b30 | 14184 | |
a243b558 JF |
14185 | /* Override any GCC internal prototype to avoid an error. |
14186 | Use char because int might match the return type of a GCC | |
14187 | builtin and then its argument prototype would still apply. */ | |
14188 | #ifdef __cplusplus | |
14189 | extern "C" | |
14190 | #endif | |
14191 | char dlopen (); | |
14192 | int | |
14193 | main () | |
14194 | { | |
14195 | return dlopen (); | |
14196 | ; | |
14197 | return 0; | |
14198 | } | |
14199 | _ACEOF | |
14200 | if ac_fn_c_try_link "$LINENO"; then : | |
14201 | ac_cv_lib_dl_dlopen=yes | |
14202 | else | |
14203 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 14204 | fi |
a243b558 JF |
14205 | rm -f core conftest.err conftest.$ac_objext \ |
14206 | conftest$ac_exeext conftest.$ac_ext | |
14207 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 14208 | fi |
a243b558 JF |
14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
14210 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14211 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 14212 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 | 14213 | else |
66170b30 | 14214 | |
9d54db95 | 14215 | lt_cv_dlopen=dyld |
a243b558 JF |
14216 | lt_cv_dlopen_libs= |
14217 | lt_cv_dlopen_self=yes | |
66170b30 | 14218 | |
a243b558 | 14219 | fi |
9c60689e | 14220 | |
a243b558 | 14221 | ;; |
9c60689e | 14222 | |
9d54db95 JF |
14223 | tpf*) |
14224 | # Don't try to run any link tests for TPF. We know it's impossible | |
14225 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
14226 | lt_cv_dlopen=dlopen | |
14227 | lt_cv_dlopen_libs= | |
14228 | lt_cv_dlopen_self=no | |
14229 | ;; | |
14230 | ||
a243b558 JF |
14231 | *) |
14232 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
14233 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
9d54db95 | 14234 | lt_cv_dlopen=shl_load |
a243b558 JF |
14235 | else |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
14237 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
14238 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
14239 | $as_echo_n "(cached) " >&6 | |
14240 | else | |
14241 | ac_check_lib_save_LIBS=$LIBS | |
14242 | LIBS="-ldld $LIBS" | |
14243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14244 | /* end confdefs.h. */ | |
66170b30 | 14245 | |
a243b558 JF |
14246 | /* Override any GCC internal prototype to avoid an error. |
14247 | Use char because int might match the return type of a GCC | |
14248 | builtin and then its argument prototype would still apply. */ | |
14249 | #ifdef __cplusplus | |
14250 | extern "C" | |
14251 | #endif | |
14252 | char shl_load (); | |
14253 | int | |
14254 | main () | |
14255 | { | |
14256 | return shl_load (); | |
14257 | ; | |
14258 | return 0; | |
14259 | } | |
14260 | _ACEOF | |
14261 | if ac_fn_c_try_link "$LINENO"; then : | |
14262 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 14263 | else |
a243b558 JF |
14264 | ac_cv_lib_dld_shl_load=no |
14265 | fi | |
14266 | rm -f core conftest.err conftest.$ac_objext \ | |
14267 | conftest$ac_exeext conftest.$ac_ext | |
14268 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 14269 | fi |
a243b558 JF |
14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
14271 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
14272 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
9d54db95 | 14273 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
a243b558 JF |
14274 | else |
14275 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
14276 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
9d54db95 | 14277 | lt_cv_dlopen=dlopen |
a243b558 JF |
14278 | else |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
14280 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
14281 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
14282 | $as_echo_n "(cached) " >&6 | |
14283 | else | |
14284 | ac_check_lib_save_LIBS=$LIBS | |
14285 | LIBS="-ldl $LIBS" | |
14286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14287 | /* end confdefs.h. */ | |
e9c9a47c | 14288 | |
a243b558 JF |
14289 | /* Override any GCC internal prototype to avoid an error. |
14290 | Use char because int might match the return type of a GCC | |
14291 | builtin and then its argument prototype would still apply. */ | |
14292 | #ifdef __cplusplus | |
14293 | extern "C" | |
14294 | #endif | |
14295 | char dlopen (); | |
14296 | int | |
14297 | main () | |
14298 | { | |
14299 | return dlopen (); | |
14300 | ; | |
14301 | return 0; | |
14302 | } | |
14303 | _ACEOF | |
14304 | if ac_fn_c_try_link "$LINENO"; then : | |
14305 | ac_cv_lib_dl_dlopen=yes | |
14306 | else | |
14307 | ac_cv_lib_dl_dlopen=no | |
14308 | fi | |
14309 | rm -f core conftest.err conftest.$ac_objext \ | |
14310 | conftest$ac_exeext conftest.$ac_ext | |
14311 | LIBS=$ac_check_lib_save_LIBS | |
14312 | fi | |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
14314 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14315 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 14316 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 JF |
14317 | else |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
14319 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
14320 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
14321 | $as_echo_n "(cached) " >&6 | |
14322 | else | |
14323 | ac_check_lib_save_LIBS=$LIBS | |
14324 | LIBS="-lsvld $LIBS" | |
14325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14326 | /* end confdefs.h. */ | |
14327 | ||
14328 | /* Override any GCC internal prototype to avoid an error. | |
14329 | Use char because int might match the return type of a GCC | |
14330 | builtin and then its argument prototype would still apply. */ | |
14331 | #ifdef __cplusplus | |
14332 | extern "C" | |
14333 | #endif | |
14334 | char dlopen (); | |
14335 | int | |
14336 | main () | |
14337 | { | |
14338 | return dlopen (); | |
14339 | ; | |
14340 | return 0; | |
14341 | } | |
14342 | _ACEOF | |
14343 | if ac_fn_c_try_link "$LINENO"; then : | |
14344 | ac_cv_lib_svld_dlopen=yes | |
14345 | else | |
14346 | ac_cv_lib_svld_dlopen=no | |
14347 | fi | |
14348 | rm -f core conftest.err conftest.$ac_objext \ | |
14349 | conftest$ac_exeext conftest.$ac_ext | |
14350 | LIBS=$ac_check_lib_save_LIBS | |
14351 | fi | |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
14353 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
14354 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
9d54db95 | 14355 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
a243b558 JF |
14356 | else |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
14358 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
14359 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
14360 | $as_echo_n "(cached) " >&6 | |
14361 | else | |
14362 | ac_check_lib_save_LIBS=$LIBS | |
14363 | LIBS="-ldld $LIBS" | |
14364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14365 | /* end confdefs.h. */ | |
14366 | ||
14367 | /* Override any GCC internal prototype to avoid an error. | |
14368 | Use char because int might match the return type of a GCC | |
14369 | builtin and then its argument prototype would still apply. */ | |
14370 | #ifdef __cplusplus | |
14371 | extern "C" | |
14372 | #endif | |
14373 | char dld_link (); | |
14374 | int | |
14375 | main () | |
14376 | { | |
14377 | return dld_link (); | |
14378 | ; | |
14379 | return 0; | |
14380 | } | |
14381 | _ACEOF | |
14382 | if ac_fn_c_try_link "$LINENO"; then : | |
14383 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 14384 | else |
a243b558 JF |
14385 | ac_cv_lib_dld_dld_link=no |
14386 | fi | |
14387 | rm -f core conftest.err conftest.$ac_objext \ | |
14388 | conftest$ac_exeext conftest.$ac_ext | |
14389 | LIBS=$ac_check_lib_save_LIBS | |
14390 | fi | |
14391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
14392 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
14393 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
9d54db95 | 14394 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
9c60689e DWT |
14395 | fi |
14396 | ||
14397 | ||
a243b558 | 14398 | fi |
66170b30 | 14399 | |
66170b30 | 14400 | |
a243b558 | 14401 | fi |
66170b30 | 14402 | |
66170b30 JF |
14403 | |
14404 | fi | |
e9c9a47c | 14405 | |
66170b30 | 14406 | |
a243b558 | 14407 | fi |
66170b30 | 14408 | |
66170b30 | 14409 | |
66170b30 | 14410 | fi |
e9c9a47c | 14411 | |
a243b558 JF |
14412 | ;; |
14413 | esac | |
9c60689e | 14414 | |
9d54db95 | 14415 | if test no = "$lt_cv_dlopen"; then |
a243b558 | 14416 | enable_dlopen=no |
9d54db95 JF |
14417 | else |
14418 | enable_dlopen=yes | |
a243b558 | 14419 | fi |
9c60689e | 14420 | |
a243b558 JF |
14421 | case $lt_cv_dlopen in |
14422 | dlopen) | |
9d54db95 JF |
14423 | save_CPPFLAGS=$CPPFLAGS |
14424 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 14425 | |
9d54db95 | 14426 | save_LDFLAGS=$LDFLAGS |
a243b558 | 14427 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
66170b30 | 14428 | |
9d54db95 | 14429 | save_LIBS=$LIBS |
a243b558 | 14430 | LIBS="$lt_cv_dlopen_libs $LIBS" |
3fd51f51 | 14431 | |
a243b558 JF |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
14433 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
14434 | if ${lt_cv_dlopen_self+:} false; then : | |
14435 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 14436 | else |
9d54db95 | 14437 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
14438 | lt_cv_dlopen_self=cross |
14439 | else | |
14440 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
14441 | lt_status=$lt_dlunknown | |
14442 | cat > conftest.$ac_ext <<_LT_EOF | |
14443 | #line $LINENO "configure" | |
14444 | #include "confdefs.h" | |
e9c9a47c | 14445 | |
a243b558 JF |
14446 | #if HAVE_DLFCN_H |
14447 | #include <dlfcn.h> | |
14448 | #endif | |
e9c9a47c | 14449 | |
a243b558 | 14450 | #include <stdio.h> |
66170b30 | 14451 | |
a243b558 JF |
14452 | #ifdef RTLD_GLOBAL |
14453 | # define LT_DLGLOBAL RTLD_GLOBAL | |
14454 | #else | |
14455 | # ifdef DL_GLOBAL | |
14456 | # define LT_DLGLOBAL DL_GLOBAL | |
14457 | # else | |
14458 | # define LT_DLGLOBAL 0 | |
14459 | # endif | |
14460 | #endif | |
66170b30 | 14461 | |
a243b558 JF |
14462 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14463 | find out it does not work in some platform. */ | |
14464 | #ifndef LT_DLLAZY_OR_NOW | |
14465 | # ifdef RTLD_LAZY | |
14466 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
14467 | # else | |
14468 | # ifdef DL_LAZY | |
14469 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
14470 | # else | |
14471 | # ifdef RTLD_NOW | |
14472 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
14473 | # else | |
14474 | # ifdef DL_NOW | |
14475 | # define LT_DLLAZY_OR_NOW DL_NOW | |
14476 | # else | |
14477 | # define LT_DLLAZY_OR_NOW 0 | |
14478 | # endif | |
14479 | # endif | |
14480 | # endif | |
14481 | # endif | |
14482 | #endif | |
e9c9a47c | 14483 | |
9d54db95 | 14484 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 14485 | correspondingly for the symbols needed. */ |
9d54db95 | 14486 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
14487 | int fnord () __attribute__((visibility("default"))); |
14488 | #endif | |
e9c9a47c | 14489 | |
a243b558 JF |
14490 | int fnord () { return 42; } |
14491 | int main () | |
14492 | { | |
14493 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14494 | int status = $lt_dlunknown; | |
e9c9a47c | 14495 | |
a243b558 JF |
14496 | if (self) |
14497 | { | |
14498 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14499 | else | |
14500 | { | |
14501 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14502 | else puts (dlerror ()); | |
14503 | } | |
14504 | /* dlclose (self); */ | |
14505 | } | |
14506 | else | |
14507 | puts (dlerror ()); | |
e9c9a47c | 14508 | |
a243b558 JF |
14509 | return status; |
14510 | } | |
14511 | _LT_EOF | |
14512 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14513 | (eval $ac_link) 2>&5 | |
14514 | ac_status=$? | |
14515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 14516 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
14517 | (./conftest; exit; ) >&5 2>/dev/null |
14518 | lt_status=$? | |
14519 | case x$lt_status in | |
14520 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
14521 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
14522 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
14523 | esac | |
14524 | else : | |
14525 | # compilation failed | |
14526 | lt_cv_dlopen_self=no | |
14527 | fi | |
14528 | fi | |
14529 | rm -fr conftest* | |
e9c9a47c | 14530 | |
e9c9a47c | 14531 | |
e9c9a47c | 14532 | fi |
a243b558 JF |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
14534 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 14535 | |
9d54db95 | 14536 | if test yes = "$lt_cv_dlopen_self"; then |
a243b558 JF |
14537 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
14539 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
14540 | if ${lt_cv_dlopen_self_static+:} false; then : | |
14541 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 14542 | else |
9d54db95 | 14543 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
14544 | lt_cv_dlopen_self_static=cross |
14545 | else | |
14546 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
14547 | lt_status=$lt_dlunknown | |
14548 | cat > conftest.$ac_ext <<_LT_EOF | |
14549 | #line $LINENO "configure" | |
14550 | #include "confdefs.h" | |
14551 | ||
14552 | #if HAVE_DLFCN_H | |
14553 | #include <dlfcn.h> | |
14554 | #endif | |
14555 | ||
14556 | #include <stdio.h> | |
e9c9a47c | 14557 | |
a243b558 JF |
14558 | #ifdef RTLD_GLOBAL |
14559 | # define LT_DLGLOBAL RTLD_GLOBAL | |
14560 | #else | |
14561 | # ifdef DL_GLOBAL | |
14562 | # define LT_DLGLOBAL DL_GLOBAL | |
14563 | # else | |
14564 | # define LT_DLGLOBAL 0 | |
14565 | # endif | |
14566 | #endif | |
e9c9a47c | 14567 | |
a243b558 JF |
14568 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14569 | find out it does not work in some platform. */ | |
14570 | #ifndef LT_DLLAZY_OR_NOW | |
14571 | # ifdef RTLD_LAZY | |
14572 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
14573 | # else | |
14574 | # ifdef DL_LAZY | |
14575 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
14576 | # else | |
14577 | # ifdef RTLD_NOW | |
14578 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
14579 | # else | |
14580 | # ifdef DL_NOW | |
14581 | # define LT_DLLAZY_OR_NOW DL_NOW | |
14582 | # else | |
14583 | # define LT_DLLAZY_OR_NOW 0 | |
14584 | # endif | |
14585 | # endif | |
14586 | # endif | |
14587 | # endif | |
14588 | #endif | |
66170b30 | 14589 | |
9d54db95 | 14590 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 14591 | correspondingly for the symbols needed. */ |
9d54db95 | 14592 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
14593 | int fnord () __attribute__((visibility("default"))); |
14594 | #endif | |
e9c9a47c | 14595 | |
a243b558 JF |
14596 | int fnord () { return 42; } |
14597 | int main () | |
14598 | { | |
14599 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
14600 | int status = $lt_dlunknown; | |
e9c9a47c | 14601 | |
a243b558 JF |
14602 | if (self) |
14603 | { | |
14604 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
14605 | else | |
14606 | { | |
14607 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
14608 | else puts (dlerror ()); | |
14609 | } | |
14610 | /* dlclose (self); */ | |
14611 | } | |
14612 | else | |
14613 | puts (dlerror ()); | |
e9c9a47c | 14614 | |
a243b558 JF |
14615 | return status; |
14616 | } | |
14617 | _LT_EOF | |
14618 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14619 | (eval $ac_link) 2>&5 | |
14620 | ac_status=$? | |
14621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 14622 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
14623 | (./conftest; exit; ) >&5 2>/dev/null |
14624 | lt_status=$? | |
14625 | case x$lt_status in | |
14626 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
14627 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
14628 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
14629 | esac | |
14630 | else : | |
14631 | # compilation failed | |
14632 | lt_cv_dlopen_self_static=no | |
14633 | fi | |
14634 | fi | |
14635 | rm -fr conftest* | |
e9c9a47c | 14636 | |
b65019fe | 14637 | |
a243b558 JF |
14638 | fi |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
14640 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
14641 | fi | |
66170b30 | 14642 | |
9d54db95 JF |
14643 | CPPFLAGS=$save_CPPFLAGS |
14644 | LDFLAGS=$save_LDFLAGS | |
14645 | LIBS=$save_LIBS | |
a243b558 JF |
14646 | ;; |
14647 | esac | |
66170b30 | 14648 | |
a243b558 JF |
14649 | case $lt_cv_dlopen_self in |
14650 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
14651 | *) enable_dlopen_self=unknown ;; | |
14652 | esac | |
14653 | ||
14654 | case $lt_cv_dlopen_self_static in | |
14655 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
14656 | *) enable_dlopen_self_static=unknown ;; | |
14657 | esac | |
b65019fe DWT |
14658 | fi |
14659 | ||
14660 | ||
66170b30 | 14661 | |
b65019fe | 14662 | |
e9c9a47c | 14663 | |
e9c9a47c DWT |
14664 | |
14665 | ||
e9c9a47c | 14666 | |
e9c9a47c DWT |
14667 | |
14668 | ||
e9c9a47c | 14669 | |
e9c9a47c | 14670 | |
3530897b | 14671 | |
47aaa820 | 14672 | |
47aaa820 | 14673 | |
a243b558 JF |
14674 | |
14675 | ||
14676 | striplib= | |
14677 | old_striplib= | |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
14679 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
14680 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
14681 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
14682 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14684 | $as_echo "yes" >&6; } | |
47aaa820 | 14685 | else |
a243b558 JF |
14686 | # FIXME - insert some real tests, host_os isn't really good enough |
14687 | case $host_os in | |
14688 | darwin*) | |
9d54db95 | 14689 | if test -n "$STRIP"; then |
a243b558 JF |
14690 | striplib="$STRIP -x" |
14691 | old_striplib="$STRIP -S" | |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14693 | $as_echo "yes" >&6; } | |
14694 | else | |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14696 | $as_echo "no" >&6; } | |
14697 | fi | |
14698 | ;; | |
14699 | *) | |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14701 | $as_echo "no" >&6; } | |
14702 | ;; | |
14703 | esac | |
3530897b | 14704 | fi |
47aaa820 | 14705 | |
3530897b DWT |
14706 | |
14707 | ||
9c60689e | 14708 | |
9c60689e | 14709 | |
9c60689e | 14710 | |
9c60689e | 14711 | |
9c60689e | 14712 | |
66170b30 | 14713 | |
66170b30 | 14714 | |
66170b30 | 14715 | |
66170b30 | 14716 | |
9d54db95 | 14717 | # Report what library types will actually be built |
a243b558 JF |
14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
14719 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
14721 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 14722 | |
a243b558 JF |
14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
14724 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9d54db95 | 14725 | test no = "$can_build_shared" && enable_shared=no |
66170b30 | 14726 | |
a243b558 JF |
14727 | # On AIX, shared libraries and static libraries use the same namespace, and |
14728 | # are all built from PIC. | |
14729 | case $host_os in | |
14730 | aix3*) | |
9d54db95 | 14731 | test yes = "$enable_shared" && enable_static=no |
a243b558 JF |
14732 | if test -n "$RANLIB"; then |
14733 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
14734 | postinstall_cmds='$RANLIB $lib' | |
14735 | fi | |
14736 | ;; | |
66170b30 | 14737 | |
a243b558 | 14738 | aix[4-9]*) |
9d54db95 JF |
14739 | if test ia64 != "$host_cpu"; then |
14740 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
14741 | yes,aix,yes) ;; # shared object as lib.so file only | |
14742 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
14743 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
14744 | esac | |
a243b558 JF |
14745 | fi |
14746 | ;; | |
14747 | esac | |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
14749 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 14750 | |
a243b558 JF |
14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
14752 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
14753 | # Make sure either enable_shared or enable_static is yes. | |
9d54db95 | 14754 | test yes = "$enable_shared" || enable_static=yes |
a243b558 JF |
14755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
14756 | $as_echo "$enable_static" >&6; } | |
66170b30 | 14757 | |
9c60689e | 14758 | |
e9c9a47c | 14759 | |
9c60689e | 14760 | |
a243b558 JF |
14761 | fi |
14762 | ac_ext=c | |
14763 | ac_cpp='$CPP $CPPFLAGS' | |
14764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14767 | ||
9d54db95 | 14768 | CC=$lt_save_CC |
e9c9a47c | 14769 | |
9d54db95 JF |
14770 | if test -n "$CXX" && ( test no != "$CXX" && |
14771 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
14772 | (test g++ != "$CXX"))); then | |
e9c9a47c DWT |
14773 | ac_ext=cpp |
14774 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14775 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14776 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14777 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
14779 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
14780 | if test -z "$CXXCPP"; then | |
ee134472 | 14781 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
14782 | $as_echo_n "(cached) " >&6 |
14783 | else | |
14784 | # Double quotes because CXXCPP needs to be expanded | |
14785 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
14786 | do | |
14787 | ac_preproc_ok=false | |
14788 | for ac_cxx_preproc_warn_flag in '' yes | |
14789 | do | |
14790 | # Use a header file that comes with gcc, so configuring glibc | |
14791 | # with a fresh cross-compiler works. | |
14792 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14793 | # <limits.h> exists even on freestanding compilers. | |
14794 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
14795 | # not just through cpp. "Syntax error" is here to catch this case. | |
14796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14797 | /* end confdefs.h. */ | |
14798 | #ifdef __STDC__ | |
14799 | # include <limits.h> | |
14800 | #else | |
14801 | # include <assert.h> | |
14802 | #endif | |
14803 | Syntax error | |
14804 | _ACEOF | |
14805 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14806 | ||
14807 | else | |
14808 | # Broken: fails on valid input. | |
14809 | continue | |
14810 | fi | |
12833ad8 | 14811 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14812 | |
14813 | # OK, works on sane cases. Now check whether nonexistent headers | |
14814 | # can be detected and how. | |
14815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14816 | /* end confdefs.h. */ | |
14817 | #include <ac_nonexistent.h> | |
14818 | _ACEOF | |
14819 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14820 | # Broken: success on invalid input. | |
14821 | continue | |
14822 | else | |
14823 | # Passes both tests. | |
14824 | ac_preproc_ok=: | |
14825 | break | |
14826 | fi | |
12833ad8 | 14827 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14828 | |
14829 | done | |
14830 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 14831 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
14832 | if $ac_preproc_ok; then : |
14833 | break | |
14834 | fi | |
14835 | ||
14836 | done | |
14837 | ac_cv_prog_CXXCPP=$CXXCPP | |
14838 | ||
14839 | fi | |
14840 | CXXCPP=$ac_cv_prog_CXXCPP | |
14841 | else | |
14842 | ac_cv_prog_CXXCPP=$CXXCPP | |
14843 | fi | |
14844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
14845 | $as_echo "$CXXCPP" >&6; } | |
14846 | ac_preproc_ok=false | |
14847 | for ac_cxx_preproc_warn_flag in '' yes | |
14848 | do | |
14849 | # Use a header file that comes with gcc, so configuring glibc | |
14850 | # with a fresh cross-compiler works. | |
14851 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14852 | # <limits.h> exists even on freestanding compilers. | |
14853 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
14854 | # not just through cpp. "Syntax error" is here to catch this case. | |
14855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14856 | /* end confdefs.h. */ | |
14857 | #ifdef __STDC__ | |
14858 | # include <limits.h> | |
14859 | #else | |
14860 | # include <assert.h> | |
14861 | #endif | |
14862 | Syntax error | |
14863 | _ACEOF | |
14864 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14865 | ||
14866 | else | |
14867 | # Broken: fails on valid input. | |
14868 | continue | |
14869 | fi | |
12833ad8 | 14870 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14871 | |
14872 | # OK, works on sane cases. Now check whether nonexistent headers | |
14873 | # can be detected and how. | |
14874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14875 | /* end confdefs.h. */ | |
14876 | #include <ac_nonexistent.h> | |
14877 | _ACEOF | |
14878 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
14879 | # Broken: success on invalid input. | |
14880 | continue | |
14881 | else | |
14882 | # Passes both tests. | |
14883 | ac_preproc_ok=: | |
14884 | break | |
14885 | fi | |
12833ad8 | 14886 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
14887 | |
14888 | done | |
14889 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 14890 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
14891 | if $ac_preproc_ok; then : |
14892 | ||
14893 | else | |
14894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
14896 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
14897 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
14898 | fi |
14899 | ||
a243b558 JF |
14900 | ac_ext=c |
14901 | ac_cpp='$CPP $CPPFLAGS' | |
14902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
14905 | |
14906 | else | |
e9c9a47c DWT |
14907 | _lt_caught_CXX_error=yes |
14908 | fi | |
14909 | ||
9c60689e DWT |
14910 | ac_ext=cpp |
14911 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 14915 | |
47aaa820 DWT |
14916 | archive_cmds_need_lc_CXX=no |
14917 | allow_undefined_flag_CXX= | |
14918 | always_export_symbols_CXX=no | |
14919 | archive_expsym_cmds_CXX= | |
14920 | compiler_needs_object_CXX=no | |
14921 | export_dynamic_flag_spec_CXX= | |
14922 | hardcode_direct_CXX=no | |
14923 | hardcode_direct_absolute_CXX=no | |
14924 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
14925 | hardcode_libdir_separator_CXX= |
14926 | hardcode_minus_L_CXX=no | |
14927 | hardcode_shlibpath_var_CXX=unsupported | |
14928 | hardcode_automatic_CXX=no | |
14929 | inherit_rpath_CXX=no | |
14930 | module_cmds_CXX= | |
14931 | module_expsym_cmds_CXX= | |
14932 | link_all_deplibs_CXX=unknown | |
14933 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
14934 | reload_flag_CXX=$reload_flag |
14935 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
14936 | no_undefined_flag_CXX= |
14937 | whole_archive_flag_spec_CXX= | |
14938 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 14939 | |
47aaa820 DWT |
14940 | # Source file extension for C++ test sources. |
14941 | ac_ext=cpp | |
9c60689e | 14942 | |
47aaa820 DWT |
14943 | # Object file extension for compiled C++ test sources. |
14944 | objext=o | |
14945 | objext_CXX=$objext | |
9c60689e | 14946 | |
47aaa820 DWT |
14947 | # No sense in running all these tests if we already determined that |
14948 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
14949 | # are currently assumed to apply to all compilers on this platform, | |
14950 | # and will be corrupted by setting them based on a non-working compiler. | |
9d54db95 | 14951 | if test yes != "$_lt_caught_CXX_error"; then |
47aaa820 DWT |
14952 | # Code to be used in simple compile tests |
14953 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 14954 | |
47aaa820 DWT |
14955 | # Code to be used in simple link tests |
14956 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 14957 | |
47aaa820 | 14958 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 14959 | |
9c60689e | 14960 | |
9c60689e | 14961 | |
9c60689e | 14962 | |
9c60689e | 14963 | |
9c60689e | 14964 | |
47aaa820 DWT |
14965 | # If no C compiler was specified, use CC. |
14966 | LTCC=${LTCC-"$CC"} | |
9c60689e | 14967 | |
47aaa820 DWT |
14968 | # If no C compiler flags were specified, use CFLAGS. |
14969 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 14970 | |
47aaa820 DWT |
14971 | # Allow CC to be a program name with arguments. |
14972 | compiler=$CC | |
9c60689e | 14973 | |
9c60689e | 14974 | |
47aaa820 DWT |
14975 | # save warnings/boilerplate of simple test code |
14976 | ac_outfile=conftest.$ac_objext | |
14977 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
14978 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
14979 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 14980 | $RM -r conftest* |
9c60689e | 14981 | |
47aaa820 DWT |
14982 | ac_outfile=conftest.$ac_objext |
14983 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
14984 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
14985 | _lt_linker_boilerplate=`cat conftest.err` | |
14986 | $RM -r conftest* | |
9c60689e | 14987 | |
9c60689e | 14988 | |
47aaa820 DWT |
14989 | # Allow CC to be a program name with arguments. |
14990 | lt_save_CC=$CC | |
ee134472 | 14991 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
14992 | lt_save_LD=$LD |
14993 | lt_save_GCC=$GCC | |
14994 | GCC=$GXX | |
14995 | lt_save_with_gnu_ld=$with_gnu_ld | |
14996 | lt_save_path_LD=$lt_cv_path_LD | |
14997 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
14998 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 14999 | else |
47aaa820 | 15000 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 15001 | fi |
47aaa820 DWT |
15002 | if test -n "${lt_cv_path_LDCXX+set}"; then |
15003 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 15004 | else |
47aaa820 | 15005 | $as_unset lt_cv_path_LD |
9c60689e | 15006 | fi |
47aaa820 DWT |
15007 | test -z "${LDCXX+set}" || LD=$LDCXX |
15008 | CC=${CXX-"c++"} | |
ee134472 | 15009 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
15010 | compiler=$CC |
15011 | compiler_CXX=$CC | |
9d54db95 JF |
15012 | func_cc_basename $compiler |
15013 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
15014 | |
15015 | ||
47aaa820 DWT |
15016 | if test -n "$compiler"; then |
15017 | # We don't want -fno-exception when compiling C++ code, so set the | |
15018 | # no_builtin_flag separately | |
9d54db95 | 15019 | if test yes = "$GXX"; then |
47aaa820 DWT |
15020 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
15021 | else | |
15022 | lt_prog_compiler_no_builtin_flag_CXX= | |
15023 | fi | |
9c60689e | 15024 | |
9d54db95 | 15025 | if test yes = "$GXX"; then |
47aaa820 DWT |
15026 | # Set up default GNU C++ configuration |
15027 | ||
15028 | ||
15029 | ||
15030 | # Check whether --with-gnu-ld was given. | |
15031 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 15032 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
9c60689e | 15033 | else |
47aaa820 | 15034 | with_gnu_ld=no |
9c60689e DWT |
15035 | fi |
15036 | ||
47aaa820 | 15037 | ac_prog=ld |
9d54db95 | 15038 | if test yes = "$GCC"; then |
47aaa820 DWT |
15039 | # Check if gcc -print-prog-name=ld gives a path. |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
15041 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
15042 | case $host in | |
15043 | *-*-mingw*) | |
9d54db95 | 15044 | # gcc leaves a trailing carriage return, which upsets mingw |
47aaa820 DWT |
15045 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
15046 | *) | |
15047 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15048 | esac | |
15049 | case $ac_prog in | |
15050 | # Accept absolute paths. | |
15051 | [\\/]* | ?:[\\/]*) | |
15052 | re_direlt='/[^/][^/]*/\.\./' | |
15053 | # Canonicalize the pathname of ld | |
15054 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
15055 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
15056 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
15057 | done | |
9d54db95 | 15058 | test -z "$LD" && LD=$ac_prog |
47aaa820 DWT |
15059 | ;; |
15060 | "") | |
15061 | # If it fails, then pretend we aren't using GCC. | |
15062 | ac_prog=ld | |
15063 | ;; | |
15064 | *) | |
15065 | # If it is relative, then search for the first ld in PATH. | |
15066 | with_gnu_ld=unknown | |
15067 | ;; | |
15068 | esac | |
9d54db95 | 15069 | elif test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
15071 | $as_echo_n "checking for GNU ld... " >&6; } | |
15072 | else | |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
15074 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 15075 | fi |
ee134472 | 15076 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
15077 | $as_echo_n "(cached) " >&6 |
15078 | else | |
47aaa820 | 15079 | if test -z "$LD"; then |
9d54db95 | 15080 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
47aaa820 | 15081 | for ac_dir in $PATH; do |
9d54db95 | 15082 | IFS=$lt_save_ifs |
47aaa820 DWT |
15083 | test -z "$ac_dir" && ac_dir=. |
15084 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 15085 | lt_cv_path_LD=$ac_dir/$ac_prog |
47aaa820 DWT |
15086 | # Check to see if the program is GNU ld. I'd rather use --version, |
15087 | # but apparently some variants of GNU ld only accept -v. | |
15088 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15089 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
15090 | *GNU* | *'with BFD'*) | |
9d54db95 | 15091 | test no != "$with_gnu_ld" && break |
47aaa820 DWT |
15092 | ;; |
15093 | *) | |
9d54db95 | 15094 | test yes != "$with_gnu_ld" && break |
47aaa820 DWT |
15095 | ;; |
15096 | esac | |
15097 | fi | |
9c60689e | 15098 | done |
9d54db95 | 15099 | IFS=$lt_save_ifs |
47aaa820 | 15100 | else |
9d54db95 | 15101 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
9c60689e DWT |
15102 | fi |
15103 | fi | |
47aaa820 | 15104 | |
9d54db95 | 15105 | LD=$lt_cv_path_LD |
47aaa820 DWT |
15106 | if test -n "$LD"; then |
15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
15108 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
15109 | else |
15110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15111 | $as_echo "no" >&6; } | |
15112 | fi | |
12833ad8 | 15113 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
15115 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 15116 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
15117 | $as_echo_n "(cached) " >&6 |
15118 | else | |
15119 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
15120 | case `$LD -v 2>&1 </dev/null` in | |
15121 | *GNU* | *'with BFD'*) | |
15122 | lt_cv_prog_gnu_ld=yes | |
15123 | ;; | |
15124 | *) | |
15125 | lt_cv_prog_gnu_ld=no | |
15126 | ;; | |
15127 | esac | |
15128 | fi | |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
15130 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
15131 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
15132 | |
15133 | ||
9c60689e | 15134 | |
9c60689e | 15135 | |
9c60689e | 15136 | |
9c60689e | 15137 | |
9c60689e | 15138 | |
47aaa820 DWT |
15139 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
15140 | # archiving commands below assume that GNU ld is being used. | |
9d54db95 JF |
15141 | if test yes = "$with_gnu_ld"; then |
15142 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
15143 | 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 | 15144 | |
9d54db95 JF |
15145 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
15146 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 15147 | |
47aaa820 DWT |
15148 | # If archive_cmds runs LD, not CC, wlarc should be empty |
15149 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
15150 | # investigate it a little bit more. (MM) | |
9d54db95 | 15151 | wlarc='$wl' |
9c60689e | 15152 | |
47aaa820 DWT |
15153 | # ancient GNU ld didn't support --whole-archive et. al. |
15154 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
15155 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 15156 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
47aaa820 DWT |
15157 | else |
15158 | whole_archive_flag_spec_CXX= | |
15159 | fi | |
15160 | else | |
15161 | with_gnu_ld=no | |
15162 | wlarc= | |
15163 | ||
15164 | # A generic and very simple default shared library creation | |
15165 | # command for GNU C++ for the case where it uses the native | |
15166 | # linker, instead of GNU ld. If possible, this setting should | |
15167 | # overridden to take advantage of the native linker features on | |
15168 | # the platform it is being used on. | |
15169 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
15170 | fi | |
15171 | ||
15172 | # Commands to make compiler produce verbose output that lists | |
15173 | # what "hidden" libraries, object files and flags are used when | |
15174 | # linking a shared library. | |
ee134472 | 15175 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
15176 | |
15177 | else | |
15178 | GXX=no | |
15179 | with_gnu_ld=no | |
15180 | wlarc= | |
15181 | fi | |
15182 | ||
15183 | # PORTME: fill in a description of your system's C++ link characteristics | |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15185 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15186 | ld_shlibs_CXX=yes | |
15187 | case $host_os in | |
15188 | aix3*) | |
15189 | # FIXME: insert proper C++ library support | |
15190 | ld_shlibs_CXX=no | |
15191 | ;; | |
15192 | aix[4-9]*) | |
9d54db95 | 15193 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
15194 | # On IA64, the linker does run time linking by default, so we don't |
15195 | # have to do anything special. | |
15196 | aix_use_runtimelinking=no | |
15197 | exp_sym_flag='-Bexport' | |
9d54db95 | 15198 | no_entry_flag= |
47aaa820 DWT |
15199 | else |
15200 | aix_use_runtimelinking=no | |
15201 | ||
15202 | # Test if we are trying to use run time linking or normal | |
15203 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
15204 | # have runtime linking enabled, and use it for executables. |
15205 | # For shared libraries, we enable/disable runtime linking | |
15206 | # depending on the kind of the shared library created - | |
15207 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
15208 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
15209 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
15210 | # lib.a static archive | |
15211 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
15212 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
15213 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
15214 | # lib.a(lib.so.V) shared, rtl:no | |
15215 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
15216 | # lib.a static archive | |
47aaa820 DWT |
15217 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
15218 | for ld_flag in $LDFLAGS; do | |
15219 | case $ld_flag in | |
15220 | *-brtl*) | |
15221 | aix_use_runtimelinking=yes | |
15222 | break | |
15223 | ;; | |
15224 | esac | |
15225 | done | |
9d54db95 JF |
15226 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
15227 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
15228 | # so we don't have lib.a shared libs to link our executables. | |
15229 | # We have to force runtime linking in this case. | |
15230 | aix_use_runtimelinking=yes | |
15231 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
15232 | fi | |
47aaa820 DWT |
15233 | ;; |
15234 | esac | |
15235 | ||
15236 | exp_sym_flag='-bexport' | |
15237 | no_entry_flag='-bnoentry' | |
15238 | fi | |
15239 | ||
15240 | # When large executables or shared objects are built, AIX ld can | |
15241 | # have problems creating the table of contents. If linking a library | |
15242 | # or program results in "error TOC overflow" add -mminimal-toc to | |
15243 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
15244 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
15245 | ||
15246 | archive_cmds_CXX='' | |
15247 | hardcode_direct_CXX=yes | |
15248 | hardcode_direct_absolute_CXX=yes | |
15249 | hardcode_libdir_separator_CXX=':' | |
15250 | link_all_deplibs_CXX=yes | |
9d54db95 JF |
15251 | file_list_spec_CXX='$wl-f,' |
15252 | case $with_aix_soname,$aix_use_runtimelinking in | |
15253 | aix,*) ;; # no import file | |
15254 | svr4,* | *,yes) # use import file | |
15255 | # The Import File defines what to hardcode. | |
15256 | hardcode_direct_CXX=no | |
15257 | hardcode_direct_absolute_CXX=no | |
15258 | ;; | |
15259 | esac | |
47aaa820 | 15260 | |
9d54db95 | 15261 | if test yes = "$GXX"; then |
47aaa820 DWT |
15262 | case $host_os in aix4.[012]|aix4.[012].*) |
15263 | # We only want to do this on AIX 4.2 and lower, the check | |
15264 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 15265 | collect2name=`$CC -print-prog-name=collect2` |
47aaa820 DWT |
15266 | if test -f "$collect2name" && |
15267 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
15268 | then | |
15269 | # We have reworked collect2 | |
15270 | : | |
15271 | else | |
15272 | # We have old collect2 | |
15273 | hardcode_direct_CXX=unsupported | |
15274 | # It fails to find uninstalled libraries when the uninstalled | |
15275 | # path is not listed in the libpath. Setting hardcode_minus_L | |
15276 | # to unsupported forces relinking | |
15277 | hardcode_minus_L_CXX=yes | |
15278 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
15279 | hardcode_libdir_separator_CXX= | |
15280 | fi | |
15281 | esac | |
15282 | shared_flag='-shared' | |
9d54db95 JF |
15283 | if test yes = "$aix_use_runtimelinking"; then |
15284 | shared_flag=$shared_flag' $wl-G' | |
47aaa820 | 15285 | fi |
9d54db95 JF |
15286 | # Need to ensure runtime linking is disabled for the traditional |
15287 | # shared library, or the linker may eventually find shared libraries | |
15288 | # /with/ Import File - we do not want to mix them. | |
15289 | shared_flag_aix='-shared' | |
15290 | shared_flag_svr4='-shared $wl-G' | |
47aaa820 DWT |
15291 | else |
15292 | # not using gcc | |
9d54db95 | 15293 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
15294 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
15295 | # chokes on -Wl,-G. The following line is correct: | |
15296 | shared_flag='-G' | |
15297 | else | |
9d54db95 JF |
15298 | if test yes = "$aix_use_runtimelinking"; then |
15299 | shared_flag='$wl-G' | |
47aaa820 | 15300 | else |
9d54db95 | 15301 | shared_flag='$wl-bM:SRE' |
47aaa820 | 15302 | fi |
9d54db95 JF |
15303 | shared_flag_aix='$wl-bM:SRE' |
15304 | shared_flag_svr4='$wl-G' | |
47aaa820 DWT |
15305 | fi |
15306 | fi | |
15307 | ||
9d54db95 | 15308 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
47aaa820 DWT |
15309 | # It seems that -bexpall does not export symbols beginning with |
15310 | # underscore (_), so it is better to generate a list of symbols to | |
15311 | # export. | |
15312 | always_export_symbols_CXX=yes | |
9d54db95 | 15313 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
47aaa820 DWT |
15314 | # Warning - without using the other runtime loading flags (-brtl), |
15315 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
15316 | # The "-G" linker flag allows undefined symbols. |
15317 | no_undefined_flag_CXX='-bernotok' | |
47aaa820 DWT |
15318 | # Determine the default libpath from the value encoded in an empty |
15319 | # executable. | |
9d54db95 | 15320 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
15321 | aix_libpath=$lt_cv_aix_libpath |
15322 | else | |
15323 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
15324 | $as_echo_n "(cached) " >&6 | |
15325 | else | |
15326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
15327 | /* end confdefs.h. */ |
15328 | ||
15329 | int | |
15330 | main () | |
15331 | { | |
15332 | ||
15333 | ; | |
15334 | return 0; | |
15335 | } | |
15336 | _ACEOF | |
47aaa820 | 15337 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 15338 | |
ee134472 JF |
15339 | lt_aix_libpath_sed=' |
15340 | /Import File Strings/,/^$/ { | |
15341 | /^0/ { | |
15342 | s/^0 *\([^ ]*\) *$/\1/ | |
15343 | p | |
15344 | } | |
15345 | }' | |
15346 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15347 | # Check for a 64-bit object if we didn't find anything. | |
15348 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
15349 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15350 | fi | |
47aaa820 DWT |
15351 | fi |
15352 | rm -f core conftest.err conftest.$ac_objext \ | |
15353 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 15354 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 15355 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
15356 | fi |
15357 | ||
15358 | fi | |
15359 | ||
15360 | aix_libpath=$lt_cv_aix_libpath__CXX | |
15361 | fi | |
47aaa820 | 15362 | |
9d54db95 | 15363 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 | 15364 | |
9d54db95 | 15365 | 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 | 15366 | else |
9d54db95 JF |
15367 | if test ia64 = "$host_cpu"; then |
15368 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
47aaa820 | 15369 | allow_undefined_flag_CXX="-z nodefs" |
9d54db95 | 15370 | 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 |
15371 | else |
15372 | # Determine the default libpath from the value encoded in an | |
15373 | # empty executable. | |
9d54db95 | 15374 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
15375 | aix_libpath=$lt_cv_aix_libpath |
15376 | else | |
15377 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
15378 | $as_echo_n "(cached) " >&6 | |
15379 | else | |
15380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
15381 | /* end confdefs.h. */ |
15382 | ||
15383 | int | |
15384 | main () | |
15385 | { | |
15386 | ||
15387 | ; | |
15388 | return 0; | |
15389 | } | |
15390 | _ACEOF | |
47aaa820 | 15391 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 15392 | |
ee134472 JF |
15393 | lt_aix_libpath_sed=' |
15394 | /Import File Strings/,/^$/ { | |
15395 | /^0/ { | |
15396 | s/^0 *\([^ ]*\) *$/\1/ | |
15397 | p | |
15398 | } | |
15399 | }' | |
15400 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15401 | # Check for a 64-bit object if we didn't find anything. | |
15402 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
15403 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
15404 | fi | |
9c60689e | 15405 | fi |
47aaa820 DWT |
15406 | rm -f core conftest.err conftest.$ac_objext \ |
15407 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 15408 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 15409 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
15410 | fi |
15411 | ||
15412 | fi | |
15413 | ||
15414 | aix_libpath=$lt_cv_aix_libpath__CXX | |
15415 | fi | |
9c60689e | 15416 | |
9d54db95 | 15417 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 DWT |
15418 | # Warning - without using the other run time loading flags, |
15419 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
15420 | no_undefined_flag_CXX=' $wl-bernotok' |
15421 | allow_undefined_flag_CXX=' $wl-berok' | |
15422 | if test yes = "$with_gnu_ld"; then | |
ee134472 | 15423 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 15424 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
ee134472 JF |
15425 | else |
15426 | # Exported symbols can be pulled into shared objects from archives | |
15427 | whole_archive_flag_spec_CXX='$convenience' | |
15428 | fi | |
47aaa820 | 15429 | archive_cmds_need_lc_CXX=yes |
9d54db95 JF |
15430 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
15431 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
15432 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
15433 | if test svr4 != "$with_aix_soname"; then | |
15434 | # This is similar to how AIX traditionally builds its shared | |
15435 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
15436 | 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' | |
15437 | fi | |
15438 | if test aix != "$with_aix_soname"; then | |
15439 | 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' | |
15440 | else | |
15441 | # used by -dlpreopen to get the symbols | |
15442 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
15443 | fi | |
15444 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
47aaa820 DWT |
15445 | fi |
15446 | fi | |
15447 | ;; | |
9c60689e | 15448 | |
47aaa820 DWT |
15449 | beos*) |
15450 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
15451 | allow_undefined_flag_CXX=unsupported | |
15452 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15453 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 15454 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
47aaa820 DWT |
15455 | else |
15456 | ld_shlibs_CXX=no | |
15457 | fi | |
15458 | ;; | |
9c60689e | 15459 | |
47aaa820 DWT |
15460 | chorus*) |
15461 | case $cc_basename in | |
15462 | *) | |
15463 | # FIXME: insert proper C++ library support | |
15464 | ld_shlibs_CXX=no | |
15465 | ;; | |
15466 | esac | |
15467 | ;; | |
9c60689e | 15468 | |
47aaa820 | 15469 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
15470 | case $GXX,$cc_basename in |
15471 | ,cl* | no,cl*) | |
15472 | # Native MSVC | |
15473 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
15474 | # no search path for DLLs. | |
15475 | hardcode_libdir_flag_spec_CXX=' ' | |
15476 | allow_undefined_flag_CXX=unsupported | |
15477 | always_export_symbols_CXX=yes | |
15478 | file_list_spec_CXX='@' | |
15479 | # Tell ltmain to make .lib files, not .a files. | |
15480 | libext=lib | |
15481 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 15482 | shrext_cmds=.dll |
ee134472 | 15483 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
15484 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
15485 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
15486 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
15487 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
15488 | else | |
15489 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
15490 | fi~ | |
15491 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
15492 | linknames=' | |
ee134472 JF |
15493 | # The linker will not automatically build a static lib if we build a DLL. |
15494 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
15495 | enable_shared_with_static_runtimes_CXX=yes | |
15496 | # Don't use ranlib | |
15497 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
15498 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
15499 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
15500 | case $lt_outputfile in | |
15501 | *.exe|*.EXE) ;; | |
15502 | *) | |
15503 | lt_outputfile=$lt_outputfile.exe | |
15504 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
15505 | ;; | |
15506 | esac~ | |
15507 | func_to_tool_file "$lt_outputfile"~ | |
15508 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
15509 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
15510 | $RM "$lt_outputfile.manifest"; | |
15511 | fi' | |
ee134472 JF |
15512 | ;; |
15513 | *) | |
15514 | # g++ | |
15515 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
15516 | # as there is no search path for DLLs. | |
15517 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9d54db95 | 15518 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
ee134472 JF |
15519 | allow_undefined_flag_CXX=unsupported |
15520 | always_export_symbols_CXX=no | |
15521 | enable_shared_with_static_runtimes_CXX=yes | |
15522 | ||
15523 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9d54db95 JF |
15524 | 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' |
15525 | # If the export-symbols file already is a .def file, use it as | |
15526 | # is; otherwise, prepend EXPORTS... | |
15527 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
15528 | cp $export_symbols $output_objdir/$soname.def; | |
15529 | else | |
15530 | echo EXPORTS > $output_objdir/$soname.def; | |
15531 | cat $export_symbols >> $output_objdir/$soname.def; | |
15532 | fi~ | |
15533 | $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 |
15534 | else |
15535 | ld_shlibs_CXX=no | |
15536 | fi | |
15537 | ;; | |
15538 | esac | |
15539 | ;; | |
47aaa820 | 15540 | darwin* | rhapsody*) |
9c60689e | 15541 | |
9c60689e | 15542 | |
47aaa820 DWT |
15543 | archive_cmds_need_lc_CXX=no |
15544 | hardcode_direct_CXX=no | |
15545 | hardcode_automatic_CXX=yes | |
15546 | hardcode_shlibpath_var_CXX=unsupported | |
9d54db95 JF |
15547 | if test yes = "$lt_cv_ld_force_load"; then |
15548 | 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 | 15549 | |
ee134472 JF |
15550 | else |
15551 | whole_archive_flag_spec_CXX='' | |
15552 | fi | |
47aaa820 | 15553 | link_all_deplibs_CXX=yes |
9d54db95 | 15554 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
47aaa820 | 15555 | case $cc_basename in |
9d54db95 | 15556 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
47aaa820 DWT |
15557 | *) _lt_dar_can_shared=$GCC ;; |
15558 | esac | |
9d54db95 | 15559 | if test yes = "$_lt_dar_can_shared"; then |
ee134472 | 15560 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
15561 | 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" |
15562 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
15563 | 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" | |
15564 | 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" | |
15565 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
15566 | 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" | |
15567 | 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 | 15568 | fi |
9c60689e | 15569 | |
47aaa820 DWT |
15570 | else |
15571 | ld_shlibs_CXX=no | |
15572 | fi | |
9c60689e | 15573 | |
47aaa820 | 15574 | ;; |
9c60689e | 15575 | |
9d54db95 JF |
15576 | os2*) |
15577 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
15578 | hardcode_minus_L_CXX=yes | |
15579 | allow_undefined_flag_CXX=unsupported | |
15580 | shrext_cmds=.dll | |
15581 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
15582 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
15583 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
15584 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
15585 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
15586 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
15587 | emximp -o $lib $output_objdir/$libname.def' | |
15588 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
15589 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
15590 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
15591 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
15592 | prefix_cmds="$SED"~ | |
15593 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
15594 | prefix_cmds="$prefix_cmds -e 1d"; | |
15595 | fi~ | |
15596 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
15597 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
15598 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
15599 | emximp -o $lib $output_objdir/$libname.def' | |
15600 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
15601 | enable_shared_with_static_runtimes_CXX=yes | |
15602 | ;; | |
15603 | ||
47aaa820 DWT |
15604 | dgux*) |
15605 | case $cc_basename in | |
15606 | ec++*) | |
15607 | # FIXME: insert proper C++ library support | |
15608 | ld_shlibs_CXX=no | |
15609 | ;; | |
15610 | ghcx*) | |
15611 | # Green Hills C++ Compiler | |
15612 | # FIXME: insert proper C++ library support | |
15613 | ld_shlibs_CXX=no | |
15614 | ;; | |
15615 | *) | |
15616 | # FIXME: insert proper C++ library support | |
15617 | ld_shlibs_CXX=no | |
15618 | ;; | |
15619 | esac | |
15620 | ;; | |
9c60689e | 15621 | |
53ba6704 | 15622 | freebsd2.*) |
47aaa820 DWT |
15623 | # C++ shared libraries reported to be fairly broken before |
15624 | # switch to ELF | |
15625 | ld_shlibs_CXX=no | |
15626 | ;; | |
9c60689e | 15627 | |
47aaa820 DWT |
15628 | freebsd-elf*) |
15629 | archive_cmds_need_lc_CXX=no | |
15630 | ;; | |
9c60689e | 15631 | |
47aaa820 DWT |
15632 | freebsd* | dragonfly*) |
15633 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
15634 | # conventions | |
15635 | ld_shlibs_CXX=yes | |
15636 | ;; | |
9c60689e | 15637 | |
ee134472 | 15638 | haiku*) |
9d54db95 | 15639 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
ee134472 JF |
15640 | link_all_deplibs_CXX=yes |
15641 | ;; | |
15642 | ||
47aaa820 | 15643 | hpux9*) |
9d54db95 | 15644 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
47aaa820 | 15645 | hardcode_libdir_separator_CXX=: |
9d54db95 | 15646 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
15647 | hardcode_direct_CXX=yes |
15648 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
15649 | # but as the default | |
15650 | # location of the library. | |
9c60689e | 15651 | |
47aaa820 DWT |
15652 | case $cc_basename in |
15653 | CC*) | |
15654 | # FIXME: insert proper C++ library support | |
15655 | ld_shlibs_CXX=no | |
15656 | ;; | |
15657 | aCC*) | |
9d54db95 | 15658 | 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 |
15659 | # Commands to make compiler produce verbose output that lists |
15660 | # what "hidden" libraries, object files and flags are used when | |
15661 | # linking a shared library. | |
15662 | # | |
15663 | # There doesn't appear to be a way to prevent this compiler from | |
15664 | # explicitly linking system object files so we need to strip them | |
15665 | # from the output so that they don't get included in the library | |
15666 | # dependencies. | |
9d54db95 | 15667 | 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 |
15668 | ;; |
15669 | *) | |
9d54db95 JF |
15670 | if test yes = "$GXX"; then |
15671 | 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 |
15672 | else |
15673 | # FIXME: insert proper C++ library support | |
15674 | ld_shlibs_CXX=no | |
15675 | fi | |
15676 | ;; | |
15677 | esac | |
15678 | ;; | |
9c60689e | 15679 | |
47aaa820 | 15680 | hpux10*|hpux11*) |
9d54db95 JF |
15681 | if test no = "$with_gnu_ld"; then |
15682 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
47aaa820 | 15683 | hardcode_libdir_separator_CXX=: |
9c60689e | 15684 | |
47aaa820 DWT |
15685 | case $host_cpu in |
15686 | hppa*64*|ia64*) | |
15687 | ;; | |
15688 | *) | |
9d54db95 | 15689 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
15690 | ;; |
15691 | esac | |
15692 | fi | |
15693 | case $host_cpu in | |
15694 | hppa*64*|ia64*) | |
15695 | hardcode_direct_CXX=no | |
15696 | hardcode_shlibpath_var_CXX=no | |
15697 | ;; | |
15698 | *) | |
15699 | hardcode_direct_CXX=yes | |
15700 | hardcode_direct_absolute_CXX=yes | |
15701 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
15702 | # but as the default | |
15703 | # location of the library. | |
15704 | ;; | |
15705 | esac | |
9c60689e | 15706 | |
47aaa820 DWT |
15707 | case $cc_basename in |
15708 | CC*) | |
15709 | # FIXME: insert proper C++ library support | |
15710 | ld_shlibs_CXX=no | |
15711 | ;; | |
15712 | aCC*) | |
15713 | case $host_cpu in | |
15714 | hppa*64*) | |
9d54db95 | 15715 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15716 | ;; |
15717 | ia64*) | |
9d54db95 | 15718 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15719 | ;; |
15720 | *) | |
9d54db95 | 15721 | 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 |
15722 | ;; |
15723 | esac | |
15724 | # Commands to make compiler produce verbose output that lists | |
15725 | # what "hidden" libraries, object files and flags are used when | |
15726 | # linking a shared library. | |
15727 | # | |
15728 | # There doesn't appear to be a way to prevent this compiler from | |
15729 | # explicitly linking system object files so we need to strip them | |
15730 | # from the output so that they don't get included in the library | |
15731 | # dependencies. | |
9d54db95 | 15732 | 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 |
15733 | ;; |
15734 | *) | |
9d54db95 JF |
15735 | if test yes = "$GXX"; then |
15736 | if test no = "$with_gnu_ld"; then | |
47aaa820 DWT |
15737 | case $host_cpu in |
15738 | hppa*64*) | |
9d54db95 | 15739 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
15740 | ;; |
15741 | ia64*) | |
9d54db95 | 15742 | 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 |
15743 | ;; |
15744 | *) | |
9d54db95 | 15745 | 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 |
15746 | ;; |
15747 | esac | |
15748 | fi | |
15749 | else | |
15750 | # FIXME: insert proper C++ library support | |
15751 | ld_shlibs_CXX=no | |
15752 | fi | |
15753 | ;; | |
15754 | esac | |
15755 | ;; | |
9c60689e | 15756 | |
47aaa820 DWT |
15757 | interix[3-9]*) |
15758 | hardcode_direct_CXX=no | |
15759 | hardcode_shlibpath_var_CXX=no | |
9d54db95 JF |
15760 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15761 | export_dynamic_flag_spec_CXX='$wl-E' | |
47aaa820 DWT |
15762 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
15763 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
15764 | # default) and relocated if they conflict, which is a slow very memory | |
15765 | # consuming and fragmenting process. To avoid this, we pick a random, | |
15766 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
15767 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
15768 | 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' |
15769 | 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 |
15770 | ;; |
15771 | irix5* | irix6*) | |
15772 | case $cc_basename in | |
15773 | CC*) | |
15774 | # SGI C++ | |
9d54db95 | 15775 | 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 | 15776 | |
47aaa820 DWT |
15777 | # Archives containing C++ object files must be created using |
15778 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
15779 | # necessary to make sure instantiated templates are included | |
15780 | # in the archive. | |
15781 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
15782 | ;; | |
15783 | *) | |
9d54db95 JF |
15784 | if test yes = "$GXX"; then |
15785 | if test no = "$with_gnu_ld"; then | |
15786 | 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 | 15787 | else |
9d54db95 | 15788 | 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 |
15789 | fi |
15790 | fi | |
15791 | link_all_deplibs_CXX=yes | |
15792 | ;; | |
15793 | esac | |
9d54db95 | 15794 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 DWT |
15795 | hardcode_libdir_separator_CXX=: |
15796 | inherit_rpath_CXX=yes | |
15797 | ;; | |
9c60689e | 15798 | |
9d54db95 | 15799 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
47aaa820 DWT |
15800 | case $cc_basename in |
15801 | KCC*) | |
15802 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 15803 | |
47aaa820 DWT |
15804 | # KCC will only create a shared library if the output file |
15805 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
15806 | # to its proper name (with version) after linking. | |
9d54db95 JF |
15807 | 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' |
15808 | 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 |
15809 | # Commands to make compiler produce verbose output that lists |
15810 | # what "hidden" libraries, object files and flags are used when | |
15811 | # linking a shared library. | |
15812 | # | |
15813 | # There doesn't appear to be a way to prevent this compiler from | |
15814 | # explicitly linking system object files so we need to strip them | |
15815 | # from the output so that they don't get included in the library | |
15816 | # dependencies. | |
9d54db95 | 15817 | 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 | 15818 | |
9d54db95 JF |
15819 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15820 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 15821 | |
47aaa820 DWT |
15822 | # Archives containing C++ object files must be created using |
15823 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
15824 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
15825 | ;; | |
15826 | icpc* | ecpc* ) | |
15827 | # Intel C++ | |
15828 | with_gnu_ld=yes | |
15829 | # version 8.0 and above of icpc choke on multiply defined symbols | |
15830 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
15831 | # earlier do not add the objects themselves. | |
15832 | case `$CC -V 2>&1` in | |
15833 | *"Version 7."*) | |
9d54db95 JF |
15834 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15835 | 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 |
15836 | ;; |
15837 | *) # Version 8.0 or newer | |
15838 | tmp_idyn= | |
15839 | case $host_cpu in | |
15840 | ia64*) tmp_idyn=' -i_dynamic';; | |
15841 | esac | |
9d54db95 JF |
15842 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
15843 | 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 |
15844 | ;; |
15845 | esac | |
15846 | archive_cmds_need_lc_CXX=no | |
9d54db95 JF |
15847 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15848 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15849 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
47aaa820 DWT |
15850 | ;; |
15851 | pgCC* | pgcpp*) | |
15852 | # Portland Group C++ compiler | |
15853 | case `$CC -V` in | |
ee134472 | 15854 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 | 15855 | prelink_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15856 | rm -rf $tpldir~ |
15857 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
15858 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
47aaa820 | 15859 | old_archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15860 | rm -rf $tpldir~ |
15861 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
15862 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
15863 | $RANLIB $oldlib' | |
47aaa820 | 15864 | archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15865 | rm -rf $tpldir~ |
15866 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
15867 | $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 | 15868 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
15869 | rm -rf $tpldir~ |
15870 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
15871 | $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 | 15872 | ;; |
ee134472 | 15873 | *) # Version 6 and above use weak symbols |
9d54db95 JF |
15874 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15875 | 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 |
15876 | ;; |
15877 | esac | |
9c60689e | 15878 | |
9d54db95 JF |
15879 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
15880 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15881 | 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 |
15882 | ;; |
15883 | cxx*) | |
15884 | # Compaq C++ | |
9d54db95 JF |
15885 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
15886 | 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 | 15887 | |
47aaa820 DWT |
15888 | runpath_var=LD_RUN_PATH |
15889 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
15890 | hardcode_libdir_separator_CXX=: | |
9c60689e | 15891 | |
47aaa820 DWT |
15892 | # Commands to make compiler produce verbose output that lists |
15893 | # what "hidden" libraries, object files and flags are used when | |
15894 | # linking a shared library. | |
15895 | # | |
15896 | # There doesn't appear to be a way to prevent this compiler from | |
15897 | # explicitly linking system object files so we need to strip them | |
15898 | # from the output so that they don't get included in the library | |
15899 | # dependencies. | |
9d54db95 | 15900 | 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 | 15901 | ;; |
ee134472 | 15902 | xl* | mpixl* | bgxl*) |
47aaa820 | 15903 | # IBM XL 8.0 on PPC, with GNU ld |
9d54db95 JF |
15904 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
15905 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
15906 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
15907 | if test yes = "$supports_anon_versioning"; then | |
47aaa820 | 15908 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
15909 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
15910 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
15911 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
47aaa820 DWT |
15912 | fi |
15913 | ;; | |
15914 | *) | |
15915 | case `$CC -V 2>&1 | sed 5q` in | |
15916 | *Sun\ C*) | |
15917 | # Sun C++ 5.9 | |
15918 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 JF |
15919 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
15920 | 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 | 15921 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
9d54db95 | 15922 | 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 | 15923 | compiler_needs_object_CXX=yes |
9c60689e | 15924 | |
47aaa820 DWT |
15925 | # Not sure whether something based on |
15926 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
15927 | # would be better. | |
ee134472 | 15928 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 15929 | |
47aaa820 DWT |
15930 | # Archives containing C++ object files must be created using |
15931 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
15932 | # necessary to make sure instantiated templates are included | |
15933 | # in the archive. | |
15934 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
15935 | ;; | |
15936 | esac | |
15937 | ;; | |
15938 | esac | |
15939 | ;; | |
9c60689e | 15940 | |
47aaa820 DWT |
15941 | lynxos*) |
15942 | # FIXME: insert proper C++ library support | |
15943 | ld_shlibs_CXX=no | |
15944 | ;; | |
9c60689e | 15945 | |
47aaa820 DWT |
15946 | m88k*) |
15947 | # FIXME: insert proper C++ library support | |
15948 | ld_shlibs_CXX=no | |
15949 | ;; | |
9c60689e | 15950 | |
47aaa820 DWT |
15951 | mvs*) |
15952 | case $cc_basename in | |
15953 | cxx*) | |
15954 | # FIXME: insert proper C++ library support | |
15955 | ld_shlibs_CXX=no | |
15956 | ;; | |
15957 | *) | |
15958 | # FIXME: insert proper C++ library support | |
15959 | ld_shlibs_CXX=no | |
15960 | ;; | |
15961 | esac | |
15962 | ;; | |
9c60689e | 15963 | |
47aaa820 DWT |
15964 | netbsd*) |
15965 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15966 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
15967 | wlarc= | |
15968 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
15969 | hardcode_direct_CXX=yes | |
15970 | hardcode_shlibpath_var_CXX=no | |
15971 | fi | |
15972 | # Workaround some broken pre-1.5 toolchains | |
15973 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 15974 | ;; |
47aaa820 DWT |
15975 | |
15976 | *nto* | *qnx*) | |
15977 | ld_shlibs_CXX=yes | |
9c60689e | 15978 | ;; |
9c60689e | 15979 | |
9d54db95 | 15980 | openbsd* | bitrig*) |
47aaa820 DWT |
15981 | if test -f /usr/libexec/ld.so; then |
15982 | hardcode_direct_CXX=yes | |
15983 | hardcode_shlibpath_var_CXX=no | |
15984 | hardcode_direct_absolute_CXX=yes | |
15985 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9d54db95 JF |
15986 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
15987 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
15988 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
15989 | export_dynamic_flag_spec_CXX='$wl-E' | |
15990 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
47aaa820 | 15991 | fi |
ee134472 | 15992 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
15993 | else |
15994 | ld_shlibs_CXX=no | |
15995 | fi | |
15996 | ;; | |
9c60689e | 15997 | |
47aaa820 DWT |
15998 | osf3* | osf4* | osf5*) |
15999 | case $cc_basename in | |
16000 | KCC*) | |
16001 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 16002 | |
47aaa820 DWT |
16003 | # KCC will only create a shared library if the output file |
16004 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
16005 | # to its proper name (with version) after linking. | |
9d54db95 | 16006 | 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 | 16007 | |
9d54db95 | 16008 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
47aaa820 | 16009 | hardcode_libdir_separator_CXX=: |
9c60689e | 16010 | |
47aaa820 DWT |
16011 | # Archives containing C++ object files must be created using |
16012 | # the KAI C++ compiler. | |
16013 | case $host in | |
16014 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
16015 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
16016 | esac | |
16017 | ;; | |
16018 | RCC*) | |
16019 | # Rational C++ 2.4.1 | |
16020 | # FIXME: insert proper C++ library support | |
16021 | ld_shlibs_CXX=no | |
16022 | ;; | |
16023 | cxx*) | |
16024 | case $host in | |
16025 | osf3*) | |
9d54db95 JF |
16026 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
16027 | 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' | |
16028 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
47aaa820 DWT |
16029 | ;; |
16030 | *) | |
16031 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9d54db95 | 16032 | 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 | 16033 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
9d54db95 JF |
16034 | echo "-hidden">> $lib.exp~ |
16035 | $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~ | |
16036 | $RM $lib.exp' | |
47aaa820 DWT |
16037 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
16038 | ;; | |
16039 | esac | |
9c60689e | 16040 | |
47aaa820 | 16041 | hardcode_libdir_separator_CXX=: |
9c60689e | 16042 | |
47aaa820 DWT |
16043 | # Commands to make compiler produce verbose output that lists |
16044 | # what "hidden" libraries, object files and flags are used when | |
16045 | # linking a shared library. | |
16046 | # | |
16047 | # There doesn't appear to be a way to prevent this compiler from | |
16048 | # explicitly linking system object files so we need to strip them | |
16049 | # from the output so that they don't get included in the library | |
16050 | # dependencies. | |
9d54db95 | 16051 | 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 |
16052 | ;; |
16053 | *) | |
9d54db95 JF |
16054 | if test yes,no = "$GXX,$with_gnu_ld"; then |
16055 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
47aaa820 DWT |
16056 | case $host in |
16057 | osf3*) | |
9d54db95 | 16058 | 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 |
16059 | ;; |
16060 | *) | |
9d54db95 | 16061 | 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 |
16062 | ;; |
16063 | esac | |
9c60689e | 16064 | |
9d54db95 | 16065 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 | 16066 | hardcode_libdir_separator_CXX=: |
9c60689e | 16067 | |
47aaa820 DWT |
16068 | # Commands to make compiler produce verbose output that lists |
16069 | # what "hidden" libraries, object files and flags are used when | |
16070 | # linking a shared library. | |
ee134472 | 16071 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 16072 | |
47aaa820 DWT |
16073 | else |
16074 | # FIXME: insert proper C++ library support | |
16075 | ld_shlibs_CXX=no | |
16076 | fi | |
16077 | ;; | |
16078 | esac | |
16079 | ;; | |
9c60689e | 16080 | |
47aaa820 | 16081 | psos*) |
9c60689e DWT |
16082 | # FIXME: insert proper C++ library support |
16083 | ld_shlibs_CXX=no | |
16084 | ;; | |
9c60689e | 16085 | |
47aaa820 DWT |
16086 | sunos4*) |
16087 | case $cc_basename in | |
16088 | CC*) | |
16089 | # Sun C++ 4.x | |
16090 | # FIXME: insert proper C++ library support | |
16091 | ld_shlibs_CXX=no | |
9c60689e | 16092 | ;; |
47aaa820 DWT |
16093 | lcc*) |
16094 | # Lucid | |
16095 | # FIXME: insert proper C++ library support | |
16096 | ld_shlibs_CXX=no | |
16097 | ;; | |
16098 | *) | |
16099 | # FIXME: insert proper C++ library support | |
16100 | ld_shlibs_CXX=no | |
16101 | ;; | |
16102 | esac | |
16103 | ;; | |
9c60689e | 16104 | |
47aaa820 DWT |
16105 | solaris*) |
16106 | case $cc_basename in | |
ee134472 | 16107 | CC* | sunCC*) |
47aaa820 DWT |
16108 | # Sun C++ 4.2, 5.x and Centerline C++ |
16109 | archive_cmds_need_lc_CXX=yes | |
16110 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 | 16111 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 | 16112 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16113 | $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 | 16114 | |
47aaa820 DWT |
16115 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
16116 | hardcode_shlibpath_var_CXX=no | |
16117 | case $host_os in | |
16118 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16119 | *) | |
16120 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 16121 | # but understands '-z linker_flag'. |
47aaa820 DWT |
16122 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16123 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
16124 | ;; | |
16125 | esac | |
16126 | link_all_deplibs_CXX=yes | |
9c60689e | 16127 | |
ee134472 | 16128 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 16129 | |
47aaa820 DWT |
16130 | # Archives containing C++ object files must be created using |
16131 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
16132 | # necessary to make sure instantiated templates are included | |
16133 | # in the archive. | |
16134 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
16135 | ;; | |
16136 | gcx*) | |
16137 | # Green Hills C++ Compiler | |
9d54db95 | 16138 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
9c60689e | 16139 | |
47aaa820 DWT |
16140 | # The C++ compiler must be used to create the archive. |
16141 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
16142 | ;; | |
16143 | *) | |
16144 | # GNU C++ compiler with Solaris linker | |
9d54db95 JF |
16145 | if test yes,no = "$GXX,$with_gnu_ld"; then |
16146 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
47aaa820 | 16147 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
9d54db95 | 16148 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 16149 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16150 | $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 | 16151 | |
47aaa820 DWT |
16152 | # Commands to make compiler produce verbose output that lists |
16153 | # what "hidden" libraries, object files and flags are used when | |
16154 | # linking a shared library. | |
ee134472 | 16155 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 16156 | else |
9d54db95 | 16157 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
47aaa820 | 16158 | # platform. |
9d54db95 | 16159 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 16160 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 16161 | $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 | 16162 | |
47aaa820 DWT |
16163 | # Commands to make compiler produce verbose output that lists |
16164 | # what "hidden" libraries, object files and flags are used when | |
16165 | # linking a shared library. | |
ee134472 | 16166 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 16167 | fi |
9c60689e | 16168 | |
9d54db95 | 16169 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
47aaa820 DWT |
16170 | case $host_os in |
16171 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16172 | *) | |
9d54db95 | 16173 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
47aaa820 DWT |
16174 | ;; |
16175 | esac | |
16176 | fi | |
16177 | ;; | |
16178 | esac | |
16179 | ;; | |
9c60689e | 16180 | |
47aaa820 | 16181 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9d54db95 | 16182 | no_undefined_flag_CXX='$wl-z,text' |
47aaa820 DWT |
16183 | archive_cmds_need_lc_CXX=no |
16184 | hardcode_shlibpath_var_CXX=no | |
16185 | runpath_var='LD_RUN_PATH' | |
9c60689e | 16186 | |
47aaa820 DWT |
16187 | case $cc_basename in |
16188 | CC*) | |
9d54db95 JF |
16189 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16190 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16191 | ;; |
16192 | *) | |
9d54db95 JF |
16193 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16194 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16195 | ;; |
16196 | esac | |
16197 | ;; | |
9c60689e | 16198 | |
47aaa820 | 16199 | sysv5* | sco3.2v5* | sco5v6*) |
9d54db95 | 16200 | # Note: We CANNOT use -z defs as we might desire, because we do not |
47aaa820 DWT |
16201 | # link with -lc, and that would cause any symbols used from libc to |
16202 | # always be unresolved, which means just about no library would | |
16203 | # ever link correctly. If we're not using GNU ld we use -z text | |
16204 | # though, which does catch some bad symbols but isn't as heavy-handed | |
16205 | # as -z defs. | |
9d54db95 JF |
16206 | no_undefined_flag_CXX='$wl-z,text' |
16207 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
47aaa820 DWT |
16208 | archive_cmds_need_lc_CXX=no |
16209 | hardcode_shlibpath_var_CXX=no | |
9d54db95 | 16210 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
47aaa820 DWT |
16211 | hardcode_libdir_separator_CXX=':' |
16212 | link_all_deplibs_CXX=yes | |
9d54db95 | 16213 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
47aaa820 | 16214 | runpath_var='LD_RUN_PATH' |
9c60689e | 16215 | |
47aaa820 DWT |
16216 | case $cc_basename in |
16217 | CC*) | |
9d54db95 JF |
16218 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16219 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 | 16220 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
9d54db95 | 16221 | '"$old_archive_cmds_CXX" |
ee134472 | 16222 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
9d54db95 | 16223 | '"$reload_cmds_CXX" |
47aaa820 DWT |
16224 | ;; |
16225 | *) | |
9d54db95 JF |
16226 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
16227 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
16228 | ;; |
16229 | esac | |
16230 | ;; | |
9c60689e | 16231 | |
47aaa820 | 16232 | tandem*) |
9c60689e | 16233 | case $cc_basename in |
47aaa820 DWT |
16234 | NCC*) |
16235 | # NonStop-UX NCC 3.20 | |
16236 | # FIXME: insert proper C++ library support | |
16237 | ld_shlibs_CXX=no | |
16238 | ;; | |
9c60689e | 16239 | *) |
47aaa820 DWT |
16240 | # FIXME: insert proper C++ library support |
16241 | ld_shlibs_CXX=no | |
16242 | ;; | |
9c60689e DWT |
16243 | esac |
16244 | ;; | |
16245 | ||
47aaa820 DWT |
16246 | vxworks*) |
16247 | # FIXME: insert proper C++ library support | |
16248 | ld_shlibs_CXX=no | |
16249 | ;; | |
9c60689e | 16250 | |
47aaa820 DWT |
16251 | *) |
16252 | # FIXME: insert proper C++ library support | |
16253 | ld_shlibs_CXX=no | |
9c60689e | 16254 | ;; |
47aaa820 | 16255 | esac |
9c60689e | 16256 | |
47aaa820 DWT |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
16258 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 16259 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
9c60689e | 16260 | |
9d54db95 JF |
16261 | GCC_CXX=$GXX |
16262 | LD_CXX=$LD | |
9c60689e | 16263 | |
47aaa820 DWT |
16264 | ## CAVEAT EMPTOR: |
16265 | ## There is no encapsulation within the following macros, do not change | |
16266 | ## the running order or otherwise move them around unless you know exactly | |
16267 | ## what you are doing... | |
16268 | # Dependencies to place before and after the object being linked: | |
16269 | predep_objects_CXX= | |
16270 | postdep_objects_CXX= | |
16271 | predeps_CXX= | |
16272 | postdeps_CXX= | |
16273 | compiler_lib_search_path_CXX= | |
9c60689e | 16274 | |
47aaa820 DWT |
16275 | cat > conftest.$ac_ext <<_LT_EOF |
16276 | class Foo | |
16277 | { | |
16278 | public: | |
16279 | Foo (void) { a = 0; } | |
16280 | private: | |
16281 | int a; | |
16282 | }; | |
16283 | _LT_EOF | |
9c60689e | 16284 | |
ee134472 JF |
16285 | |
16286 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
16287 | case "$CC $CFLAGS " in #( | |
16288 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
16289 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 16290 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
16291 | esac |
16292 | ||
47aaa820 DWT |
16293 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
16294 | (eval $ac_compile) 2>&5 | |
16295 | ac_status=$? | |
16296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16297 | test $ac_status = 0; }; then | |
16298 | # Parse the compiler output and extract the necessary | |
16299 | # objects, libraries and library flags. | |
9c60689e | 16300 | |
47aaa820 DWT |
16301 | # Sentinel used to keep track of whether or not we are before |
16302 | # the conftest object file. | |
16303 | pre_test_object_deps_done=no | |
9c60689e | 16304 | |
47aaa820 | 16305 | for p in `eval "$output_verbose_link_cmd"`; do |
9d54db95 | 16306 | case $prev$p in |
9c60689e | 16307 | |
47aaa820 DWT |
16308 | -L* | -R* | -l*) |
16309 | # Some compilers place space between "-{L,R}" and the path. | |
16310 | # Remove the space. | |
9d54db95 JF |
16311 | if test x-L = "$p" || |
16312 | test x-R = "$p"; then | |
47aaa820 DWT |
16313 | prev=$p |
16314 | continue | |
47aaa820 | 16315 | fi |
9c60689e | 16316 | |
ee134472 JF |
16317 | # Expand the sysroot to ease extracting the directories later. |
16318 | if test -z "$prev"; then | |
16319 | case $p in | |
16320 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
16321 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
16322 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
16323 | esac | |
16324 | fi | |
16325 | case $p in | |
16326 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
16327 | esac | |
9d54db95 JF |
16328 | if test no = "$pre_test_object_deps_done"; then |
16329 | case $prev in | |
ee134472 | 16330 | -L | -R) |
47aaa820 DWT |
16331 | # Internal compiler library paths should come after those |
16332 | # provided the user. The postdeps already come after the | |
16333 | # user supplied libs so there is no need to process them. | |
16334 | if test -z "$compiler_lib_search_path_CXX"; then | |
9d54db95 | 16335 | compiler_lib_search_path_CXX=$prev$p |
47aaa820 | 16336 | else |
9d54db95 | 16337 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
47aaa820 DWT |
16338 | fi |
16339 | ;; | |
16340 | # The "-l" case would never come before the object being | |
16341 | # linked, so don't bother handling this case. | |
16342 | esac | |
16343 | else | |
16344 | if test -z "$postdeps_CXX"; then | |
9d54db95 | 16345 | postdeps_CXX=$prev$p |
47aaa820 | 16346 | else |
9d54db95 | 16347 | postdeps_CXX="${postdeps_CXX} $prev$p" |
47aaa820 DWT |
16348 | fi |
16349 | fi | |
ee134472 | 16350 | prev= |
47aaa820 | 16351 | ;; |
9c60689e | 16352 | |
ee134472 | 16353 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
16354 | *.$objext) |
16355 | # This assumes that the test object file only shows up | |
16356 | # once in the compiler output. | |
16357 | if test "$p" = "conftest.$objext"; then | |
16358 | pre_test_object_deps_done=yes | |
16359 | continue | |
16360 | fi | |
9c60689e | 16361 | |
9d54db95 | 16362 | if test no = "$pre_test_object_deps_done"; then |
47aaa820 | 16363 | if test -z "$predep_objects_CXX"; then |
9d54db95 | 16364 | predep_objects_CXX=$p |
47aaa820 DWT |
16365 | else |
16366 | predep_objects_CXX="$predep_objects_CXX $p" | |
16367 | fi | |
16368 | else | |
16369 | if test -z "$postdep_objects_CXX"; then | |
9d54db95 | 16370 | postdep_objects_CXX=$p |
47aaa820 DWT |
16371 | else |
16372 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
16373 | fi | |
16374 | fi | |
16375 | ;; | |
9c60689e | 16376 | |
47aaa820 | 16377 | *) ;; # Ignore the rest. |
9c60689e | 16378 | |
47aaa820 DWT |
16379 | esac |
16380 | done | |
9c60689e | 16381 | |
47aaa820 DWT |
16382 | # Clean up. |
16383 | rm -f a.out a.exe | |
16384 | else | |
16385 | echo "libtool.m4: error: problem compiling CXX test program" | |
16386 | fi | |
9c60689e | 16387 | |
47aaa820 | 16388 | $RM -f confest.$objext |
ee134472 | 16389 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 16390 | |
47aaa820 DWT |
16391 | # PORTME: override above test on systems where it is broken |
16392 | case $host_os in | |
16393 | interix[3-9]*) | |
16394 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
16395 | # hack all around it, let's just trust "g++" to DTRT. | |
16396 | predep_objects_CXX= | |
16397 | postdep_objects_CXX= | |
16398 | postdeps_CXX= | |
16399 | ;; | |
47aaa820 | 16400 | esac |
9c60689e | 16401 | |
9c60689e | 16402 | |
47aaa820 DWT |
16403 | case " $postdeps_CXX " in |
16404 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
16405 | esac | |
16406 | compiler_lib_search_dirs_CXX= | |
16407 | if test -n "${compiler_lib_search_path_CXX}"; then | |
9d54db95 | 16408 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
47aaa820 | 16409 | fi |
9c60689e | 16410 | |
9c60689e | 16411 | |
9c60689e | 16412 | |
9c60689e | 16413 | |
9c60689e | 16414 | |
9c60689e | 16415 | |
9c60689e | 16416 | |
9c60689e | 16417 | |
9c60689e | 16418 | |
9c60689e | 16419 | |
9c60689e | 16420 | |
9c60689e | 16421 | |
9c60689e | 16422 | |
9c60689e | 16423 | |
9c60689e | 16424 | |
9c60689e | 16425 | |
9c60689e | 16426 | |
9c60689e | 16427 | |
9c60689e | 16428 | |
9c60689e | 16429 | |
9c60689e | 16430 | |
9c60689e | 16431 | |
9c60689e | 16432 | |
9c60689e | 16433 | |
9c60689e | 16434 | |
9c60689e | 16435 | |
9c60689e | 16436 | |
9c60689e | 16437 | |
9c60689e | 16438 | |
9c60689e | 16439 | |
9c60689e | 16440 | |
47aaa820 DWT |
16441 | lt_prog_compiler_wl_CXX= |
16442 | lt_prog_compiler_pic_CXX= | |
16443 | lt_prog_compiler_static_CXX= | |
9c60689e | 16444 | |
9c60689e DWT |
16445 | |
16446 | # C++ specific cases for pic, static, wl, etc. | |
9d54db95 | 16447 | if test yes = "$GXX"; then |
9c60689e DWT |
16448 | lt_prog_compiler_wl_CXX='-Wl,' |
16449 | lt_prog_compiler_static_CXX='-static' | |
16450 | ||
16451 | case $host_os in | |
16452 | aix*) | |
16453 | # All AIX code is PIC. | |
9d54db95 | 16454 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
16455 | # AIX 5 now supports IA64 processor |
16456 | lt_prog_compiler_static_CXX='-Bstatic' | |
16457 | fi | |
9d54db95 | 16458 | lt_prog_compiler_pic_CXX='-fPIC' |
9c60689e DWT |
16459 | ;; |
16460 | ||
16461 | amigaos*) | |
16462 | case $host_cpu in | |
16463 | powerpc) | |
16464 | # see comment about AmigaOS4 .so support | |
16465 | lt_prog_compiler_pic_CXX='-fPIC' | |
16466 | ;; | |
16467 | m68k) | |
16468 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
16469 | # adding the '-m68020' flag to GCC prevents building anything better, |
16470 | # like '-m68040'. | |
9c60689e DWT |
16471 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
16472 | ;; | |
16473 | esac | |
16474 | ;; | |
16475 | ||
16476 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16477 | # PIC is the default for these OSes. | |
16478 | ;; | |
16479 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
16480 | # This hack is so that the source file can tell whether it is being | |
16481 | # built for inclusion in a dll (and should export symbols for example). | |
16482 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
16483 | # (--disable-auto-import) libraries | |
16484 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9d54db95 JF |
16485 | case $host_os in |
16486 | os2*) | |
16487 | lt_prog_compiler_static_CXX='$wl-static' | |
16488 | ;; | |
16489 | esac | |
9c60689e DWT |
16490 | ;; |
16491 | darwin* | rhapsody*) | |
16492 | # PIC is the default on this platform | |
16493 | # Common symbols not allowed in MH_DYLIB files | |
16494 | lt_prog_compiler_pic_CXX='-fno-common' | |
16495 | ;; | |
16496 | *djgpp*) | |
16497 | # DJGPP does not support shared libraries at all | |
16498 | lt_prog_compiler_pic_CXX= | |
16499 | ;; | |
ee134472 JF |
16500 | haiku*) |
16501 | # PIC is the default for Haiku. | |
16502 | # The "-static" flag exists, but is broken. | |
16503 | lt_prog_compiler_static_CXX= | |
16504 | ;; | |
9c60689e DWT |
16505 | interix[3-9]*) |
16506 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16507 | # Instead, we relocate shared libraries at runtime. | |
16508 | ;; | |
16509 | sysv4*MP*) | |
16510 | if test -d /usr/nec; then | |
16511 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
16512 | fi | |
16513 | ;; | |
16514 | hpux*) | |
16515 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
16516 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
16517 | # sets the default TLS model and affects inlining. | |
16518 | case $host_cpu in | |
16519 | hppa*64*) | |
16520 | ;; | |
16521 | *) | |
16522 | lt_prog_compiler_pic_CXX='-fPIC' | |
16523 | ;; | |
16524 | esac | |
16525 | ;; | |
16526 | *qnx* | *nto*) | |
16527 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16528 | # it will coredump. | |
16529 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
16530 | ;; | |
16531 | *) | |
16532 | lt_prog_compiler_pic_CXX='-fPIC' | |
16533 | ;; | |
16534 | esac | |
16535 | else | |
16536 | case $host_os in | |
16537 | aix[4-9]*) | |
16538 | # All AIX code is PIC. | |
9d54db95 | 16539 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
16540 | # AIX 5 now supports IA64 processor |
16541 | lt_prog_compiler_static_CXX='-Bstatic' | |
16542 | else | |
16543 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
16544 | fi | |
16545 | ;; | |
16546 | chorus*) | |
16547 | case $cc_basename in | |
16548 | cxch68*) | |
16549 | # Green Hills C++ Compiler | |
16550 | # _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" | |
16551 | ;; | |
16552 | esac | |
16553 | ;; | |
ee134472 JF |
16554 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
16555 | # This hack is so that the source file can tell whether it is being | |
16556 | # built for inclusion in a dll (and should export symbols for example). | |
16557 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
16558 | ;; | |
9c60689e DWT |
16559 | dgux*) |
16560 | case $cc_basename in | |
16561 | ec++*) | |
16562 | lt_prog_compiler_pic_CXX='-KPIC' | |
16563 | ;; | |
16564 | ghcx*) | |
16565 | # Green Hills C++ Compiler | |
16566 | lt_prog_compiler_pic_CXX='-pic' | |
16567 | ;; | |
16568 | *) | |
16569 | ;; | |
16570 | esac | |
16571 | ;; | |
16572 | freebsd* | dragonfly*) | |
16573 | # FreeBSD uses GNU C++ | |
16574 | ;; | |
16575 | hpux9* | hpux10* | hpux11*) | |
16576 | case $cc_basename in | |
16577 | CC*) | |
16578 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 JF |
16579 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
16580 | if test ia64 != "$host_cpu"; then | |
9c60689e DWT |
16581 | lt_prog_compiler_pic_CXX='+Z' |
16582 | fi | |
16583 | ;; | |
16584 | aCC*) | |
16585 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 | 16586 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
9c60689e DWT |
16587 | case $host_cpu in |
16588 | hppa*64*|ia64*) | |
16589 | # +Z the default | |
16590 | ;; | |
16591 | *) | |
16592 | lt_prog_compiler_pic_CXX='+Z' | |
16593 | ;; | |
16594 | esac | |
16595 | ;; | |
16596 | *) | |
16597 | ;; | |
16598 | esac | |
16599 | ;; | |
16600 | interix*) | |
16601 | # This is c89, which is MS Visual C++ (no shared libs) | |
16602 | # Anyone wants to do a port? | |
16603 | ;; | |
16604 | irix5* | irix6* | nonstopux*) | |
16605 | case $cc_basename in | |
16606 | CC*) | |
16607 | lt_prog_compiler_wl_CXX='-Wl,' | |
16608 | lt_prog_compiler_static_CXX='-non_shared' | |
16609 | # CC pic flag -KPIC is the default. | |
16610 | ;; | |
16611 | *) | |
16612 | ;; | |
16613 | esac | |
16614 | ;; | |
9d54db95 | 16615 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9c60689e DWT |
16616 | case $cc_basename in |
16617 | KCC*) | |
16618 | # KAI C++ Compiler | |
16619 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
16620 | lt_prog_compiler_pic_CXX='-fPIC' | |
16621 | ;; | |
16622 | ecpc* ) | |
9d54db95 | 16623 | # old Intel C++ for x86_64, which still supported -KPIC. |
9c60689e DWT |
16624 | lt_prog_compiler_wl_CXX='-Wl,' |
16625 | lt_prog_compiler_pic_CXX='-KPIC' | |
16626 | lt_prog_compiler_static_CXX='-static' | |
16627 | ;; | |
16628 | icpc* ) | |
16629 | # Intel C++, used to be incompatible with GCC. | |
16630 | # ICC 10 doesn't accept -KPIC any more. | |
16631 | lt_prog_compiler_wl_CXX='-Wl,' | |
16632 | lt_prog_compiler_pic_CXX='-fPIC' | |
16633 | lt_prog_compiler_static_CXX='-static' | |
16634 | ;; | |
16635 | pgCC* | pgcpp*) | |
16636 | # Portland Group C++ compiler | |
16637 | lt_prog_compiler_wl_CXX='-Wl,' | |
16638 | lt_prog_compiler_pic_CXX='-fpic' | |
16639 | lt_prog_compiler_static_CXX='-Bstatic' | |
16640 | ;; | |
16641 | cxx*) | |
16642 | # Compaq C++ | |
16643 | # Make sure the PIC flag is empty. It appears that all Alpha | |
16644 | # Linux and Compaq Tru64 Unix objects are PIC. | |
16645 | lt_prog_compiler_pic_CXX= | |
16646 | lt_prog_compiler_static_CXX='-non_shared' | |
16647 | ;; | |
ee134472 JF |
16648 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
16649 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
16650 | lt_prog_compiler_wl_CXX='-Wl,' |
16651 | lt_prog_compiler_pic_CXX='-qpic' | |
16652 | lt_prog_compiler_static_CXX='-qstaticlink' | |
16653 | ;; | |
16654 | *) | |
16655 | case `$CC -V 2>&1 | sed 5q` in | |
16656 | *Sun\ C*) | |
16657 | # Sun C++ 5.9 | |
16658 | lt_prog_compiler_pic_CXX='-KPIC' | |
16659 | lt_prog_compiler_static_CXX='-Bstatic' | |
16660 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
16661 | ;; | |
16662 | esac | |
16663 | ;; | |
16664 | esac | |
16665 | ;; | |
16666 | lynxos*) | |
16667 | ;; | |
16668 | m88k*) | |
16669 | ;; | |
16670 | mvs*) | |
16671 | case $cc_basename in | |
16672 | cxx*) | |
16673 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
16674 | ;; | |
16675 | *) | |
16676 | ;; | |
16677 | esac | |
16678 | ;; | |
53ba6704 | 16679 | netbsd*) |
9c60689e DWT |
16680 | ;; |
16681 | *qnx* | *nto*) | |
16682 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16683 | # it will coredump. | |
16684 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
16685 | ;; | |
16686 | osf3* | osf4* | osf5*) | |
16687 | case $cc_basename in | |
16688 | KCC*) | |
16689 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
16690 | ;; | |
16691 | RCC*) | |
16692 | # Rational C++ 2.4.1 | |
16693 | lt_prog_compiler_pic_CXX='-pic' | |
16694 | ;; | |
16695 | cxx*) | |
16696 | # Digital/Compaq C++ | |
16697 | lt_prog_compiler_wl_CXX='-Wl,' | |
16698 | # Make sure the PIC flag is empty. It appears that all Alpha | |
16699 | # Linux and Compaq Tru64 Unix objects are PIC. | |
16700 | lt_prog_compiler_pic_CXX= | |
16701 | lt_prog_compiler_static_CXX='-non_shared' | |
16702 | ;; | |
16703 | *) | |
16704 | ;; | |
16705 | esac | |
16706 | ;; | |
16707 | psos*) | |
16708 | ;; | |
16709 | solaris*) | |
16710 | case $cc_basename in | |
ee134472 | 16711 | CC* | sunCC*) |
9c60689e DWT |
16712 | # Sun C++ 4.2, 5.x and Centerline C++ |
16713 | lt_prog_compiler_pic_CXX='-KPIC' | |
16714 | lt_prog_compiler_static_CXX='-Bstatic' | |
16715 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
16716 | ;; | |
16717 | gcx*) | |
16718 | # Green Hills C++ Compiler | |
16719 | lt_prog_compiler_pic_CXX='-PIC' | |
16720 | ;; | |
16721 | *) | |
16722 | ;; | |
16723 | esac | |
16724 | ;; | |
16725 | sunos4*) | |
16726 | case $cc_basename in | |
16727 | CC*) | |
16728 | # Sun C++ 4.x | |
16729 | lt_prog_compiler_pic_CXX='-pic' | |
16730 | lt_prog_compiler_static_CXX='-Bstatic' | |
16731 | ;; | |
16732 | lcc*) | |
16733 | # Lucid | |
16734 | lt_prog_compiler_pic_CXX='-pic' | |
16735 | ;; | |
16736 | *) | |
16737 | ;; | |
16738 | esac | |
16739 | ;; | |
16740 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16741 | case $cc_basename in | |
16742 | CC*) | |
16743 | lt_prog_compiler_wl_CXX='-Wl,' | |
16744 | lt_prog_compiler_pic_CXX='-KPIC' | |
16745 | lt_prog_compiler_static_CXX='-Bstatic' | |
16746 | ;; | |
16747 | esac | |
16748 | ;; | |
16749 | tandem*) | |
16750 | case $cc_basename in | |
16751 | NCC*) | |
16752 | # NonStop-UX NCC 3.20 | |
16753 | lt_prog_compiler_pic_CXX='-KPIC' | |
16754 | ;; | |
16755 | *) | |
16756 | ;; | |
16757 | esac | |
16758 | ;; | |
16759 | vxworks*) | |
16760 | ;; | |
16761 | *) | |
16762 | lt_prog_compiler_can_build_shared_CXX=no | |
16763 | ;; | |
16764 | esac | |
16765 | fi | |
16766 | ||
16767 | case $host_os in | |
9d54db95 | 16768 | # For platforms that do not support PIC, -DPIC is meaningless: |
9c60689e DWT |
16769 | *djgpp*) |
16770 | lt_prog_compiler_pic_CXX= | |
16771 | ;; | |
16772 | *) | |
16773 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
16774 | ;; | |
16775 | esac | |
9c60689e | 16776 | |
ee134472 JF |
16777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
16778 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
16779 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
16780 | $as_echo_n "(cached) " >&6 | |
16781 | else | |
16782 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
16783 | fi | |
16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
16785 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
16786 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
16787 | |
16788 | # | |
16789 | # Check to make sure the PIC flag actually works. | |
16790 | # | |
16791 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
16792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
16793 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 16794 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
16795 | $as_echo_n "(cached) " >&6 |
16796 | else | |
16797 | lt_cv_prog_compiler_pic_works_CXX=no | |
16798 | ac_outfile=conftest.$ac_objext | |
16799 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 16800 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
9c60689e DWT |
16801 | # Insert the option either (1) after the last *FLAGS variable, or |
16802 | # (2) before a word containing "conftest.", or (3) at the end. | |
16803 | # Note that $ac_compile itself does not contain backslashes and begins | |
16804 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16805 | # The option is referenced via a variable to avoid confusing sed. | |
16806 | lt_compile=`echo "$ac_compile" | $SED \ | |
16807 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16808 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16809 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 16810 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
16811 | (eval "$lt_compile" 2>conftest.err) |
16812 | ac_status=$? | |
16813 | cat conftest.err >&5 | |
ee134472 | 16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
16815 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16816 | # The compiler can only warn and ignore the option if not recognized | |
16817 | # So say no if there are warnings other than the usual output. | |
ee134472 | 16818 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
16819 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16820 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16821 | lt_cv_prog_compiler_pic_works_CXX=yes | |
16822 | fi | |
16823 | fi | |
00a96142 | 16824 | $RM -r conftest* |
9c60689e DWT |
16825 | |
16826 | fi | |
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
16828 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
16829 | ||
9d54db95 | 16830 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
9c60689e DWT |
16831 | case $lt_prog_compiler_pic_CXX in |
16832 | "" | " "*) ;; | |
16833 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
16834 | esac | |
16835 | else | |
16836 | lt_prog_compiler_pic_CXX= | |
16837 | lt_prog_compiler_can_build_shared_CXX=no | |
16838 | fi | |
16839 | ||
16840 | fi | |
16841 | ||
16842 | ||
16843 | ||
ee134472 JF |
16844 | |
16845 | ||
47aaa820 DWT |
16846 | # |
16847 | # Check to make sure the static flag actually works. | |
16848 | # | |
16849 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
16850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16851 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 16852 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
16853 | $as_echo_n "(cached) " >&6 |
16854 | else | |
16855 | lt_cv_prog_compiler_static_works_CXX=no | |
9d54db95 | 16856 | save_LDFLAGS=$LDFLAGS |
47aaa820 DWT |
16857 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16858 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
16859 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16860 | # The linker can only warn and ignore the option if not recognized | |
16861 | # So say no if there are warnings | |
16862 | if test -s conftest.err; then | |
16863 | # Append any errors to the config.log. | |
16864 | cat conftest.err 1>&5 | |
ee134472 | 16865 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
16866 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16867 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16868 | lt_cv_prog_compiler_static_works_CXX=yes | |
16869 | fi | |
16870 | else | |
16871 | lt_cv_prog_compiler_static_works_CXX=yes | |
16872 | fi | |
16873 | fi | |
16874 | $RM -r conftest* | |
9d54db95 | 16875 | LDFLAGS=$save_LDFLAGS |
47aaa820 DWT |
16876 | |
16877 | fi | |
16878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
16879 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
16880 | ||
9d54db95 | 16881 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
47aaa820 DWT |
16882 | : |
16883 | else | |
16884 | lt_prog_compiler_static_CXX= | |
16885 | fi | |
16886 | ||
16887 | ||
16888 | ||
16889 | ||
16890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16891 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 16892 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
16893 | $as_echo_n "(cached) " >&6 |
16894 | else | |
16895 | lt_cv_prog_compiler_c_o_CXX=no | |
16896 | $RM -r conftest 2>/dev/null | |
16897 | mkdir conftest | |
16898 | cd conftest | |
16899 | mkdir out | |
16900 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16901 | ||
16902 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16903 | # Insert the option either (1) after the last *FLAGS variable, or | |
16904 | # (2) before a word containing "conftest.", or (3) at the end. | |
16905 | # Note that $ac_compile itself does not contain backslashes and begins | |
16906 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16907 | lt_compile=`echo "$ac_compile" | $SED \ | |
16908 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16909 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16910 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 16911 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
16912 | (eval "$lt_compile" 2>out/conftest.err) |
16913 | ac_status=$? | |
16914 | cat out/conftest.err >&5 | |
ee134472 | 16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
16916 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16917 | then | |
16918 | # The compiler can only warn and ignore the option if not recognized | |
16919 | # So say no if there are warnings | |
ee134472 | 16920 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
16921 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16922 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16923 | lt_cv_prog_compiler_c_o_CXX=yes | |
16924 | fi | |
16925 | fi | |
16926 | chmod u+w . 2>&5 | |
00a96142 | 16927 | $RM -r conftest* |
47aaa820 DWT |
16928 | # SGI C++ compiler will create directory out/ii_files/ for |
16929 | # template instantiation | |
16930 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
16931 | $RM out/* && rmdir out | |
16932 | cd .. | |
16933 | $RM -r conftest | |
00a96142 | 16934 | $RM -r conftest* |
47aaa820 DWT |
16935 | |
16936 | fi | |
16937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
16938 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
16939 | ||
16940 | ||
16941 | ||
16942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16943 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 16944 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
16945 | $as_echo_n "(cached) " >&6 |
16946 | else | |
16947 | lt_cv_prog_compiler_c_o_CXX=no | |
16948 | $RM -r conftest 2>/dev/null | |
16949 | mkdir conftest | |
16950 | cd conftest | |
16951 | mkdir out | |
16952 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16953 | ||
16954 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16955 | # Insert the option either (1) after the last *FLAGS variable, or | |
16956 | # (2) before a word containing "conftest.", or (3) at the end. | |
16957 | # Note that $ac_compile itself does not contain backslashes and begins | |
16958 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16959 | lt_compile=`echo "$ac_compile" | $SED \ | |
16960 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16961 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16962 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 16963 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
16964 | (eval "$lt_compile" 2>out/conftest.err) |
16965 | ac_status=$? | |
16966 | cat out/conftest.err >&5 | |
ee134472 | 16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
16968 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16969 | then | |
16970 | # The compiler can only warn and ignore the option if not recognized | |
16971 | # So say no if there are warnings | |
ee134472 | 16972 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
16973 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16974 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16975 | lt_cv_prog_compiler_c_o_CXX=yes | |
16976 | fi | |
16977 | fi | |
16978 | chmod u+w . 2>&5 | |
00a96142 | 16979 | $RM -r conftest* |
47aaa820 DWT |
16980 | # SGI C++ compiler will create directory out/ii_files/ for |
16981 | # template instantiation | |
16982 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
16983 | $RM out/* && rmdir out | |
16984 | cd .. | |
16985 | $RM -r conftest | |
00a96142 | 16986 | $RM -r conftest* |
47aaa820 DWT |
16987 | |
16988 | fi | |
16989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
16990 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
16991 | ||
16992 | ||
16993 | ||
16994 | ||
9d54db95 JF |
16995 | hard_links=nottested |
16996 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
47aaa820 DWT |
16997 | # do not overwrite the value of need_locks provided by the user |
16998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
16999 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
17000 | hard_links=yes | |
00a96142 | 17001 | $RM -r conftest* |
47aaa820 DWT |
17002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17003 | touch conftest.a | |
17004 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
17005 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
17007 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
17008 | if test no = "$hard_links"; then |
17009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
17010 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
47aaa820 DWT |
17011 | need_locks=warn |
17012 | fi | |
17013 | else | |
17014 | need_locks=no | |
17015 | fi | |
17016 | ||
17017 | ||
17018 | ||
17019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17020 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
17021 | ||
17022 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 17023 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
17024 | case $host_os in |
17025 | aix[4-9]*) | |
17026 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
17027 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
17028 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
17029 | # weak defined symbols like other global defined symbols, whereas | |
17030 | # GNU nm marks them as "W". | |
17031 | # While the 'weak' keyword is ignored in the Export File, we need | |
17032 | # it in the Import File for the 'aix-soname' feature, so we have | |
17033 | # to replace the "-B" option with "-P" for AIX nm. | |
47aaa820 | 17034 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 17035 | 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 | 17036 | else |
9d54db95 | 17037 | 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 |
17038 | fi |
17039 | ;; | |
17040 | pw32*) | |
9d54db95 | 17041 | export_symbols_cmds_CXX=$ltdll_cmds |
ee134472 | 17042 | ;; |
47aaa820 | 17043 | cygwin* | mingw* | cegcc*) |
ee134472 | 17044 | case $cc_basename in |
53ba6704 JF |
17045 | cl*) |
17046 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
17047 | ;; | |
ee134472 JF |
17048 | *) |
17049 | 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' | |
17050 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
17051 | ;; | |
17052 | esac | |
17053 | ;; | |
47aaa820 DWT |
17054 | *) |
17055 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 17056 | ;; |
47aaa820 | 17057 | esac |
47aaa820 DWT |
17058 | |
17059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
17060 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 17061 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
47aaa820 DWT |
17062 | |
17063 | with_gnu_ld_CXX=$with_gnu_ld | |
17064 | ||
17065 | ||
17066 | ||
17067 | ||
17068 | ||
17069 | ||
17070 | # | |
17071 | # Do we need to explicitly link libc? | |
17072 | # | |
17073 | case "x$archive_cmds_need_lc_CXX" in | |
17074 | x|xyes) | |
17075 | # Assume -lc should be added | |
17076 | archive_cmds_need_lc_CXX=yes | |
17077 | ||
9d54db95 | 17078 | if test yes,yes = "$GCC,$enable_shared"; then |
47aaa820 DWT |
17079 | case $archive_cmds_CXX in |
17080 | *'~'*) | |
17081 | # FIXME: we may have to deal with multi-command sequences. | |
17082 | ;; | |
17083 | '$CC '*) | |
17084 | # Test whether the compiler implicitly links with -lc since on some | |
17085 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17086 | # to ld, don't add -lc before -lgcc. | |
17087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
17088 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
17089 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
17090 | $as_echo_n "(cached) " >&6 | |
17091 | else | |
00a96142 | 17092 | $RM -r conftest* |
ee134472 | 17093 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 17094 | |
ee134472 | 17095 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
17096 | (eval $ac_compile) 2>&5 |
17097 | ac_status=$? | |
17098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17099 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
17100 | soname=conftest |
17101 | lib=conftest | |
17102 | libobjs=conftest.$ac_objext | |
17103 | deplibs= | |
17104 | wl=$lt_prog_compiler_wl_CXX | |
17105 | pic_flag=$lt_prog_compiler_pic_CXX | |
17106 | compiler_flags=-v | |
17107 | linker_flags=-v | |
17108 | verstring= | |
17109 | output_objdir=. | |
17110 | libname=conftest | |
17111 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
17112 | allow_undefined_flag_CXX= | |
17113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
17114 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17115 | ac_status=$? | |
17116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17117 | test $ac_status = 0; } | |
ee134472 JF |
17118 | then |
17119 | lt_cv_archive_cmds_need_lc_CXX=no | |
17120 | else | |
17121 | lt_cv_archive_cmds_need_lc_CXX=yes | |
17122 | fi | |
17123 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
17124 | else | |
17125 | cat conftest.err 1>&5 | |
17126 | fi | |
00a96142 | 17127 | $RM -r conftest* |
ee134472 JF |
17128 | |
17129 | fi | |
17130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
17131 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
17132 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
17133 | ;; |
17134 | esac | |
17135 | fi | |
17136 | ;; | |
17137 | esac | |
17138 | ||
17139 | ||
17140 | ||
17141 | ||
17142 | ||
17143 | ||
17144 | ||
17145 | ||
17146 | ||
17147 | ||
17148 | ||
17149 | ||
17150 | ||
17151 | ||
17152 | ||
17153 | ||
17154 | ||
17155 | ||
17156 | ||
17157 | ||
17158 | ||
17159 | ||
17160 | ||
17161 | ||
17162 | ||
17163 | ||
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | ||
17169 | ||
17170 | ||
17171 | ||
17172 | ||
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
47aaa820 DWT |
17197 | |
17198 | ||
17199 | ||
17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
17201 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
17202 | ||
17203 | library_names_spec= | |
17204 | libname_spec='lib$name' | |
17205 | soname_spec= | |
9d54db95 | 17206 | shrext_cmds=.so |
47aaa820 DWT |
17207 | postinstall_cmds= |
17208 | postuninstall_cmds= | |
17209 | finish_cmds= | |
17210 | finish_eval= | |
17211 | shlibpath_var= | |
17212 | shlibpath_overrides_runpath=unknown | |
17213 | version_type=none | |
17214 | dynamic_linker="$host_os ld.so" | |
17215 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17216 | need_lib_prefix=unknown | |
17217 | hardcode_into_libs=no | |
17218 | ||
17219 | # when you set need_version to no, make sure it does not cause -set_version | |
17220 | # flags to be left without arguments | |
17221 | need_version=unknown | |
17222 | ||
9d54db95 JF |
17223 | |
17224 | ||
47aaa820 DWT |
17225 | case $host_os in |
17226 | aix3*) | |
53ba6704 | 17227 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 17228 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
47aaa820 DWT |
17229 | shlibpath_var=LIBPATH |
17230 | ||
17231 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 17232 | soname_spec='$libname$release$shared_ext$major' |
47aaa820 DWT |
17233 | ;; |
17234 | ||
17235 | aix[4-9]*) | |
53ba6704 | 17236 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17237 | need_lib_prefix=no |
17238 | need_version=no | |
17239 | hardcode_into_libs=yes | |
9d54db95 | 17240 | if test ia64 = "$host_cpu"; then |
47aaa820 | 17241 | # AIX 5 supports IA64 |
9d54db95 | 17242 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
47aaa820 DWT |
17243 | shlibpath_var=LD_LIBRARY_PATH |
17244 | else | |
17245 | # With GCC up to 2.95.x, collect2 would create an import file | |
17246 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
17247 | # the line '#! .'. This would cause the generated library to |
17248 | # depend on '.', always an invalid library. This was fixed in | |
47aaa820 DWT |
17249 | # development snapshots of GCC prior to 3.0. |
17250 | case $host_os in | |
17251 | aix4 | aix4.[01] | aix4.[01].*) | |
17252 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17253 | echo ' yes ' | |
9d54db95 | 17254 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
47aaa820 DWT |
17255 | : |
17256 | else | |
17257 | can_build_shared=no | |
17258 | fi | |
17259 | ;; | |
17260 | esac | |
9d54db95 JF |
17261 | # Using Import Files as archive members, it is possible to support |
17262 | # filename-based versioning of shared library archives on AIX. While | |
17263 | # this would work for both with and without runtime linking, it will | |
17264 | # prevent static linking of such archives. So we do filename-based | |
17265 | # shared library versioning with .so extension only, which is used | |
17266 | # when both runtime linking and shared linking is enabled. | |
17267 | # Unfortunately, runtime linking may impact performance, so we do | |
17268 | # not want this to be the default eventually. Also, we use the | |
17269 | # versioned .so libs for executables only if there is the -brtl | |
17270 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
17271 | # To allow for filename-based versioning support, we need to create | |
17272 | # libNAME.so.V as an archive file, containing: | |
17273 | # *) an Import File, referring to the versioned filename of the | |
17274 | # archive as well as the shared archive member, telling the | |
17275 | # bitwidth (32 or 64) of that shared object, and providing the | |
17276 | # list of exported symbols of that shared object, eventually | |
17277 | # decorated with the 'weak' keyword | |
17278 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
17279 | # it being seen by the linker. | |
17280 | # At run time we better use the real file rather than another symlink, | |
17281 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
17282 | ||
17283 | case $with_aix_soname,$aix_use_runtimelinking in | |
17284 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
47aaa820 DWT |
17285 | # soname into executable. Probably we can add versioning support to |
17286 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
17287 | aix,yes) # traditional libtool |
17288 | dynamic_linker='AIX unversionable lib.so' | |
47aaa820 DWT |
17289 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17290 | # instead of lib<name>.a to let people know that these are not | |
17291 | # typical AIX shared libraries. | |
9d54db95 JF |
17292 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17293 | ;; | |
17294 | aix,no) # traditional AIX only | |
17295 | dynamic_linker='AIX lib.a(lib.so.V)' | |
47aaa820 DWT |
17296 | # We preserve .a as extension for shared libraries through AIX4.2 |
17297 | # and later when we are not doing run time linking. | |
9d54db95 JF |
17298 | library_names_spec='$libname$release.a $libname.a' |
17299 | soname_spec='$libname$release$shared_ext$major' | |
17300 | ;; | |
17301 | svr4,*) # full svr4 only | |
17302 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
17303 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
17304 | # We do not specify a path in Import Files, so LIBPATH fires. | |
17305 | shlibpath_overrides_runpath=yes | |
17306 | ;; | |
17307 | *,yes) # both, prefer svr4 | |
17308 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
17309 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
17310 | # unpreferred sharedlib libNAME.a needs extra handling | |
17311 | 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"' | |
17312 | 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"' | |
17313 | # We do not specify a path in Import Files, so LIBPATH fires. | |
17314 | shlibpath_overrides_runpath=yes | |
17315 | ;; | |
17316 | *,no) # both, prefer aix | |
17317 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
17318 | library_names_spec='$libname$release.a $libname.a' | |
17319 | soname_spec='$libname$release$shared_ext$major' | |
17320 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
17321 | 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)' | |
17322 | 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"' | |
17323 | ;; | |
17324 | esac | |
47aaa820 DWT |
17325 | shlibpath_var=LIBPATH |
17326 | fi | |
17327 | ;; | |
17328 | ||
17329 | amigaos*) | |
17330 | case $host_cpu in | |
17331 | powerpc) | |
17332 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
17333 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 17334 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
17335 | ;; |
17336 | m68k) | |
17337 | library_names_spec='$libname.ixlibrary $libname.a' | |
17338 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 17339 | 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 |
17340 | ;; |
17341 | esac | |
17342 | ;; | |
17343 | ||
17344 | beos*) | |
9d54db95 | 17345 | library_names_spec='$libname$shared_ext' |
47aaa820 DWT |
17346 | dynamic_linker="$host_os ld.so" |
17347 | shlibpath_var=LIBRARY_PATH | |
17348 | ;; | |
17349 | ||
17350 | bsdi[45]*) | |
53ba6704 | 17351 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 | 17352 | need_version=no |
9d54db95 JF |
17353 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17354 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17356 | shlibpath_var=LD_LIBRARY_PATH | |
17357 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17358 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17359 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17360 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17361 | # libtool to hard-code these into programs | |
17362 | ;; | |
9c60689e | 17363 | |
47aaa820 DWT |
17364 | cygwin* | mingw* | pw32* | cegcc*) |
17365 | version_type=windows | |
9d54db95 | 17366 | shrext_cmds=.dll |
47aaa820 DWT |
17367 | need_version=no |
17368 | need_lib_prefix=no | |
9c60689e | 17369 | |
ee134472 JF |
17370 | case $GCC,$cc_basename in |
17371 | yes,*) | |
17372 | # gcc | |
47aaa820 DWT |
17373 | library_names_spec='$libname.dll.a' |
17374 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
17375 | postinstall_cmds='base_file=`basename \$file`~ |
17376 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
47aaa820 DWT |
17377 | dldir=$destdir/`dirname \$dlpath`~ |
17378 | test -d \$dldir || mkdir -p \$dldir~ | |
17379 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17380 | chmod a+x \$dldir/$dlname~ | |
17381 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
17382 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
17383 | fi' | |
17384 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17385 | dlpath=$dir/\$dldll~ | |
17386 | $RM \$dlpath' | |
17387 | shlibpath_overrides_runpath=yes | |
9c60689e | 17388 | |
47aaa820 DWT |
17389 | case $host_os in |
17390 | cygwin*) | |
17391 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 17392 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
ee134472 | 17393 | |
47aaa820 DWT |
17394 | ;; |
17395 | mingw* | cegcc*) | |
17396 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 17397 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
17398 | ;; |
17399 | pw32*) | |
17400 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 17401 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
17402 | ;; |
17403 | esac | |
ee134472 JF |
17404 | dynamic_linker='Win32 ld.exe' |
17405 | ;; | |
17406 | ||
17407 | *,cl*) | |
17408 | # Native MSVC | |
17409 | libname_spec='$name' | |
9d54db95 JF |
17410 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
17411 | library_names_spec='$libname.dll.lib' | |
ee134472 JF |
17412 | |
17413 | case $build_os in | |
17414 | mingw*) | |
17415 | sys_lib_search_path_spec= | |
17416 | lt_save_ifs=$IFS | |
17417 | IFS=';' | |
17418 | for lt_path in $LIB | |
17419 | do | |
17420 | IFS=$lt_save_ifs | |
17421 | # Let DOS variable expansion print the short 8.3 style file name. | |
17422 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
17423 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
17424 | done | |
17425 | IFS=$lt_save_ifs | |
17426 | # Convert to MSYS style. | |
17427 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
17428 | ;; | |
17429 | cygwin*) | |
17430 | # Convert to unix form, then to dos form, then back to unix form | |
17431 | # but this time dos style (no spaces!) so that the unix form looks | |
17432 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
17433 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
17434 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
17435 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17436 | ;; | |
17437 | *) | |
9d54db95 | 17438 | sys_lib_search_path_spec=$LIB |
ee134472 JF |
17439 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
17440 | # It is most probably a Windows format PATH. | |
17441 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17442 | else | |
17443 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17444 | fi | |
17445 | # FIXME: find the short name or the path components, as spaces are | |
17446 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
17447 | ;; | |
17448 | esac | |
17449 | ||
17450 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
17451 | postinstall_cmds='base_file=`basename \$file`~ |
17452 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
ee134472 JF |
17453 | dldir=$destdir/`dirname \$dlpath`~ |
17454 | test -d \$dldir || mkdir -p \$dldir~ | |
17455 | $install_prog $dir/$dlname \$dldir/$dlname' | |
17456 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17457 | dlpath=$dir/\$dldll~ | |
17458 | $RM \$dlpath' | |
17459 | shlibpath_overrides_runpath=yes | |
17460 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 17461 | ;; |
9c60689e | 17462 | |
47aaa820 | 17463 | *) |
ee134472 | 17464 | # Assume MSVC wrapper |
9d54db95 | 17465 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
ee134472 | 17466 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
17467 | ;; |
17468 | esac | |
47aaa820 DWT |
17469 | # FIXME: first we should search . and the directory the executable is in |
17470 | shlibpath_var=PATH | |
17471 | ;; | |
9c60689e | 17472 | |
47aaa820 DWT |
17473 | darwin* | rhapsody*) |
17474 | dynamic_linker="$host_os dyld" | |
17475 | version_type=darwin | |
17476 | need_lib_prefix=no | |
17477 | need_version=no | |
9d54db95 JF |
17478 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
17479 | soname_spec='$libname$release$major$shared_ext' | |
47aaa820 DWT |
17480 | shlibpath_overrides_runpath=yes |
17481 | shlibpath_var=DYLD_LIBRARY_PATH | |
17482 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 17483 | |
47aaa820 DWT |
17484 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17485 | ;; | |
9c60689e | 17486 | |
47aaa820 | 17487 | dgux*) |
53ba6704 | 17488 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17489 | need_lib_prefix=no |
17490 | need_version=no | |
9d54db95 JF |
17491 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17492 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17493 | shlibpath_var=LD_LIBRARY_PATH |
17494 | ;; | |
9c60689e | 17495 | |
47aaa820 DWT |
17496 | freebsd* | dragonfly*) |
17497 | # DragonFly does not have aout. When/if they implement a new | |
17498 | # versioning mechanism, adjust this. | |
17499 | if test -x /usr/bin/objformat; then | |
17500 | objformat=`/usr/bin/objformat` | |
17501 | else | |
17502 | case $host_os in | |
53ba6704 | 17503 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
17504 | *) objformat=elf ;; |
17505 | esac | |
17506 | fi | |
17507 | version_type=freebsd-$objformat | |
17508 | case $version_type in | |
17509 | freebsd-elf*) | |
9d54db95 JF |
17510 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17511 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17512 | need_version=no |
17513 | need_lib_prefix=no | |
17514 | ;; | |
17515 | freebsd-*) | |
9d54db95 | 17516 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17517 | need_version=yes |
17518 | ;; | |
17519 | esac | |
17520 | shlibpath_var=LD_LIBRARY_PATH | |
17521 | case $host_os in | |
53ba6704 | 17522 | freebsd2.*) |
47aaa820 DWT |
17523 | shlibpath_overrides_runpath=yes |
17524 | ;; | |
17525 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17526 | shlibpath_overrides_runpath=yes | |
17527 | hardcode_into_libs=yes | |
17528 | ;; | |
17529 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17530 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17531 | shlibpath_overrides_runpath=no | |
17532 | hardcode_into_libs=yes | |
17533 | ;; | |
17534 | *) # from 4.6 on, and DragonFly | |
17535 | shlibpath_overrides_runpath=yes | |
17536 | hardcode_into_libs=yes | |
17537 | ;; | |
17538 | esac | |
17539 | ;; | |
9c60689e | 17540 | |
ee134472 | 17541 | haiku*) |
53ba6704 | 17542 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
17543 | need_lib_prefix=no |
17544 | need_version=no | |
17545 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
17546 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17547 | soname_spec='$libname$release$shared_ext$major' | |
ee134472 | 17548 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 17549 | shlibpath_overrides_runpath=no |
ee134472 | 17550 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
47aaa820 DWT |
17551 | hardcode_into_libs=yes |
17552 | ;; | |
9c60689e | 17553 | |
47aaa820 DWT |
17554 | hpux9* | hpux10* | hpux11*) |
17555 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17556 | # link against other versions. | |
17557 | version_type=sunos | |
17558 | need_lib_prefix=no | |
17559 | need_version=no | |
17560 | case $host_cpu in | |
17561 | ia64*) | |
17562 | shrext_cmds='.so' | |
17563 | hardcode_into_libs=yes | |
17564 | dynamic_linker="$host_os dld.so" | |
17565 | shlibpath_var=LD_LIBRARY_PATH | |
17566 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
17567 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17568 | soname_spec='$libname$release$shared_ext$major' | |
17569 | if test 32 = "$HPUX_IA64_MODE"; then | |
47aaa820 | 17570 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 17571 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
47aaa820 DWT |
17572 | else |
17573 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 17574 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
47aaa820 | 17575 | fi |
47aaa820 DWT |
17576 | ;; |
17577 | hppa*64*) | |
17578 | shrext_cmds='.sl' | |
17579 | hardcode_into_libs=yes | |
17580 | dynamic_linker="$host_os dld.sl" | |
17581 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17582 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
17583 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17584 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17585 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17586 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17587 | ;; | |
17588 | *) | |
17589 | shrext_cmds='.sl' | |
17590 | dynamic_linker="$host_os dld.sl" | |
17591 | shlibpath_var=SHLIB_PATH | |
17592 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
17593 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17594 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17595 | ;; |
17596 | esac | |
ee134472 | 17597 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 17598 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
17599 | # or fails outright, so override atomically: |
17600 | install_override_mode=555 | |
47aaa820 | 17601 | ;; |
9c60689e | 17602 | |
47aaa820 | 17603 | interix[3-9]*) |
53ba6704 | 17604 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17605 | need_lib_prefix=no |
17606 | need_version=no | |
9d54db95 JF |
17607 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17608 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17609 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17610 | shlibpath_var=LD_LIBRARY_PATH | |
17611 | shlibpath_overrides_runpath=no | |
17612 | hardcode_into_libs=yes | |
17613 | ;; | |
9c60689e | 17614 | |
47aaa820 DWT |
17615 | irix5* | irix6* | nonstopux*) |
17616 | case $host_os in | |
17617 | nonstopux*) version_type=nonstopux ;; | |
17618 | *) | |
9d54db95 | 17619 | if test yes = "$lt_cv_prog_gnu_ld"; then |
53ba6704 | 17620 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17621 | else |
17622 | version_type=irix | |
17623 | fi ;; | |
17624 | esac | |
17625 | need_lib_prefix=no | |
17626 | need_version=no | |
9d54db95 JF |
17627 | soname_spec='$libname$release$shared_ext$major' |
17628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
47aaa820 DWT |
17629 | case $host_os in |
17630 | irix5* | nonstopux*) | |
17631 | libsuff= shlibsuff= | |
17632 | ;; | |
17633 | *) | |
17634 | case $LD in # libtool.m4 will add one of these switches to LD | |
17635 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17636 | libsuff= shlibsuff= libmagic=32-bit;; | |
17637 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17638 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17639 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17640 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17641 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17642 | esac | |
17643 | ;; | |
17644 | esac | |
17645 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17646 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
17647 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
17648 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
47aaa820 DWT |
17649 | hardcode_into_libs=yes |
17650 | ;; | |
9c60689e | 17651 | |
47aaa820 DWT |
17652 | # No shared lib support for Linux oldld, aout, or coff. |
17653 | linux*oldld* | linux*aout* | linux*coff*) | |
17654 | dynamic_linker=no | |
17655 | ;; | |
9c60689e | 17656 | |
9d54db95 JF |
17657 | linux*android*) |
17658 | version_type=none # Android doesn't support versioned libraries. | |
17659 | need_lib_prefix=no | |
17660 | need_version=no | |
17661 | library_names_spec='$libname$release$shared_ext' | |
17662 | soname_spec='$libname$release$shared_ext' | |
17663 | finish_cmds= | |
17664 | shlibpath_var=LD_LIBRARY_PATH | |
17665 | shlibpath_overrides_runpath=yes | |
17666 | ||
17667 | # This implies no fast_install, which is unacceptable. | |
17668 | # Some rework will be needed to allow for fast_install | |
17669 | # before this can be enabled. | |
17670 | hardcode_into_libs=yes | |
17671 | ||
17672 | dynamic_linker='Android linker' | |
17673 | # Don't embed -rpath directories since the linker doesn't support them. | |
17674 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
17675 | ;; | |
17676 | ||
53ba6704 | 17677 | # This must be glibc/ELF. |
9d54db95 | 17678 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
53ba6704 | 17679 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17680 | need_lib_prefix=no |
17681 | need_version=no | |
9d54db95 JF |
17682 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17683 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17684 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17685 | shlibpath_var=LD_LIBRARY_PATH | |
17686 | shlibpath_overrides_runpath=no | |
ee134472 | 17687 | |
47aaa820 | 17688 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
17689 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
17690 | $as_echo_n "(cached) " >&6 | |
17691 | else | |
17692 | lt_cv_shlibpath_overrides_runpath=no | |
17693 | save_LDFLAGS=$LDFLAGS | |
17694 | save_libdir=$libdir | |
17695 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
17696 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
17697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 17698 | /* end confdefs.h. */ |
9c60689e | 17699 | |
47aaa820 DWT |
17700 | int |
17701 | main () | |
17702 | { | |
9c60689e | 17703 | |
47aaa820 DWT |
17704 | ; |
17705 | return 0; | |
17706 | } | |
17707 | _ACEOF | |
17708 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17709 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 17710 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 17711 | fi |
47aaa820 DWT |
17712 | fi |
17713 | rm -f core conftest.err conftest.$ac_objext \ | |
17714 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
17715 | LDFLAGS=$save_LDFLAGS |
17716 | libdir=$save_libdir | |
17717 | ||
17718 | fi | |
17719 | ||
17720 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 17721 | |
47aaa820 DWT |
17722 | # This implies no fast_install, which is unacceptable. |
17723 | # Some rework will be needed to allow for fast_install | |
17724 | # before this can be enabled. | |
17725 | hardcode_into_libs=yes | |
9c60689e | 17726 | |
9d54db95 JF |
17727 | # Ideally, we could use ldconfig to report *all* directores which are |
17728 | # searched for libraries, however this is still not possible. Aside from not | |
17729 | # being certain /sbin/ldconfig is available, command | |
17730 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
17731 | # even though it is searched at run-time. Try to do the best guess by | |
17732 | # appending ld.so.conf contents (and includes) to the search path. | |
47aaa820 | 17733 | if test -f /etc/ld.so.conf; then |
ee134472 | 17734 | 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 |
17735 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
17736 | fi | |
9c60689e | 17737 | |
47aaa820 DWT |
17738 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17739 | # powerpc, because MkLinux only supported shared libraries with the | |
17740 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17741 | # most powerpc-linux boxes support dynamic linking these days and | |
17742 | # people can always --disable-shared, the test was removed, and we | |
17743 | # assume the GNU/Linux dynamic linker is in use. | |
17744 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 17745 | ;; |
47aaa820 | 17746 | |
47aaa820 DWT |
17747 | netbsd*) |
17748 | version_type=sunos | |
17749 | need_lib_prefix=no | |
17750 | need_version=no | |
17751 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 17752 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17753 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17754 | dynamic_linker='NetBSD (a.out) ld.so' | |
17755 | else | |
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 | dynamic_linker='NetBSD ld.elf_so' |
17759 | fi | |
17760 | shlibpath_var=LD_LIBRARY_PATH | |
17761 | shlibpath_overrides_runpath=yes | |
17762 | hardcode_into_libs=yes | |
9c60689e | 17763 | ;; |
9c60689e | 17764 | |
47aaa820 | 17765 | newsos6) |
53ba6704 | 17766 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 17767 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
17768 | shlibpath_var=LD_LIBRARY_PATH |
17769 | shlibpath_overrides_runpath=yes | |
17770 | ;; | |
9c60689e | 17771 | |
47aaa820 DWT |
17772 | *nto* | *qnx*) |
17773 | version_type=qnx | |
17774 | need_lib_prefix=no | |
17775 | need_version=no | |
9d54db95 JF |
17776 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17777 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17778 | shlibpath_var=LD_LIBRARY_PATH |
17779 | shlibpath_overrides_runpath=no | |
17780 | hardcode_into_libs=yes | |
17781 | dynamic_linker='ldqnx.so' | |
17782 | ;; | |
9c60689e | 17783 | |
9d54db95 | 17784 | openbsd* | bitrig*) |
47aaa820 | 17785 | version_type=sunos |
9d54db95 | 17786 | sys_lib_dlsearch_path_spec=/usr/lib |
47aaa820 | 17787 | need_lib_prefix=no |
9d54db95 JF |
17788 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
17789 | need_version=no | |
47aaa820 | 17790 | else |
9d54db95 | 17791 | need_version=yes |
47aaa820 | 17792 | fi |
9d54db95 JF |
17793 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
17794 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17795 | shlibpath_var=LD_LIBRARY_PATH | |
17796 | shlibpath_overrides_runpath=yes | |
47aaa820 | 17797 | ;; |
9c60689e | 17798 | |
47aaa820 DWT |
17799 | os2*) |
17800 | libname_spec='$name' | |
9d54db95 JF |
17801 | version_type=windows |
17802 | shrext_cmds=.dll | |
17803 | need_version=no | |
47aaa820 | 17804 | need_lib_prefix=no |
9d54db95 JF |
17805 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
17806 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
17807 | v=$($ECHO $release$versuffix | tr -d .-); | |
17808 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
17809 | $ECHO $n$v`$shared_ext' | |
17810 | library_names_spec='${libname}_dll.$libext' | |
47aaa820 | 17811 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
17812 | shlibpath_var=BEGINLIBPATH |
17813 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17814 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17815 | postinstall_cmds='base_file=`basename \$file`~ | |
17816 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
17817 | dldir=$destdir/`dirname \$dlpath`~ | |
17818 | test -d \$dldir || mkdir -p \$dldir~ | |
17819 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17820 | chmod a+x \$dldir/$dlname~ | |
17821 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
17822 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
17823 | fi' | |
17824 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
17825 | dlpath=$dir/\$dldll~ | |
17826 | $RM \$dlpath' | |
47aaa820 | 17827 | ;; |
9c60689e | 17828 | |
47aaa820 DWT |
17829 | osf3* | osf4* | osf5*) |
17830 | version_type=osf | |
17831 | need_lib_prefix=no | |
17832 | need_version=no | |
9d54db95 JF |
17833 | soname_spec='$libname$release$shared_ext$major' |
17834 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
47aaa820 DWT |
17835 | shlibpath_var=LD_LIBRARY_PATH |
17836 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 17837 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
47aaa820 | 17838 | ;; |
9c60689e | 17839 | |
47aaa820 DWT |
17840 | rdos*) |
17841 | dynamic_linker=no | |
17842 | ;; | |
9c60689e | 17843 | |
47aaa820 | 17844 | solaris*) |
53ba6704 | 17845 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17846 | need_lib_prefix=no |
17847 | need_version=no | |
9d54db95 JF |
17848 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17849 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17850 | shlibpath_var=LD_LIBRARY_PATH |
17851 | shlibpath_overrides_runpath=yes | |
17852 | hardcode_into_libs=yes | |
17853 | # ldd complains unless libraries are executable | |
17854 | postinstall_cmds='chmod +x $lib' | |
17855 | ;; | |
9c60689e | 17856 | |
47aaa820 DWT |
17857 | sunos4*) |
17858 | version_type=sunos | |
9d54db95 | 17859 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
17860 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17861 | shlibpath_var=LD_LIBRARY_PATH | |
17862 | shlibpath_overrides_runpath=yes | |
9d54db95 | 17863 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
17864 | need_lib_prefix=no |
17865 | fi | |
17866 | need_version=yes | |
17867 | ;; | |
9c60689e | 17868 | |
47aaa820 | 17869 | sysv4 | sysv4.3*) |
53ba6704 | 17870 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
17871 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17872 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17873 | shlibpath_var=LD_LIBRARY_PATH |
17874 | case $host_vendor in | |
17875 | sni) | |
17876 | shlibpath_overrides_runpath=no | |
17877 | need_lib_prefix=no | |
17878 | runpath_var=LD_RUN_PATH | |
9c60689e | 17879 | ;; |
47aaa820 DWT |
17880 | siemens) |
17881 | need_lib_prefix=no | |
9c60689e | 17882 | ;; |
47aaa820 DWT |
17883 | motorola) |
17884 | need_lib_prefix=no | |
17885 | need_version=no | |
17886 | shlibpath_overrides_runpath=no | |
17887 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17888 | ;; | |
17889 | esac | |
9c60689e | 17890 | ;; |
9c60689e | 17891 | |
47aaa820 | 17892 | sysv4*MP*) |
9d54db95 | 17893 | if test -d /usr/nec; then |
53ba6704 | 17894 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
17895 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
17896 | soname_spec='$libname$shared_ext.$major' | |
47aaa820 DWT |
17897 | shlibpath_var=LD_LIBRARY_PATH |
17898 | fi | |
17899 | ;; | |
9c60689e | 17900 | |
47aaa820 | 17901 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 17902 | version_type=sco |
47aaa820 DWT |
17903 | need_lib_prefix=no |
17904 | need_version=no | |
9d54db95 JF |
17905 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
17906 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17907 | shlibpath_var=LD_LIBRARY_PATH |
17908 | shlibpath_overrides_runpath=yes | |
17909 | hardcode_into_libs=yes | |
9d54db95 | 17910 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
17911 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17912 | else | |
17913 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17914 | case $host_os in | |
17915 | sco3.2v5*) | |
17916 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17917 | ;; | |
17918 | esac | |
17919 | fi | |
17920 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17921 | ;; | |
9c60689e | 17922 | |
47aaa820 DWT |
17923 | tpf*) |
17924 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 17925 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
17926 | need_lib_prefix=no |
17927 | need_version=no | |
9d54db95 | 17928 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
17929 | shlibpath_var=LD_LIBRARY_PATH |
17930 | shlibpath_overrides_runpath=no | |
17931 | hardcode_into_libs=yes | |
17932 | ;; | |
9c60689e | 17933 | |
47aaa820 | 17934 | uts4*) |
53ba6704 | 17935 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
17936 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
17937 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
17938 | shlibpath_var=LD_LIBRARY_PATH |
17939 | ;; | |
9c60689e | 17940 | |
47aaa820 DWT |
17941 | *) |
17942 | dynamic_linker=no | |
e9c9a47c DWT |
17943 | ;; |
17944 | esac | |
17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
17946 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 17947 | test no = "$dynamic_linker" && can_build_shared=no |
e9c9a47c DWT |
17948 | |
17949 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9d54db95 | 17950 | if test yes = "$GCC"; then |
e9c9a47c | 17951 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
47aaa820 | 17952 | fi |
9c60689e | 17953 | |
9d54db95 JF |
17954 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
17955 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
47aaa820 | 17956 | fi |
9d54db95 JF |
17957 | |
17958 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
17959 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
47aaa820 | 17960 | fi |
9c60689e | 17961 | |
9d54db95 JF |
17962 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
17963 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
17964 | ||
17965 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
17966 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
17967 | ||
17968 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
17969 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
17970 | ||
17971 | ||
17972 | ||
9c60689e | 17973 | |
9c60689e | 17974 | |
9c60689e | 17975 | |
47aaa820 | 17976 | |
47aaa820 | 17977 | |
47aaa820 | 17978 | |
9c60689e | 17979 | |
9c60689e | 17980 | |
47aaa820 | 17981 | |
47aaa820 | 17982 | |
47aaa820 | 17983 | |
47aaa820 | 17984 | |
47aaa820 | 17985 | |
47aaa820 | 17986 | |
47aaa820 | 17987 | |
47aaa820 | 17988 | |
9c60689e | 17989 | |
9c60689e | 17990 | |
9c60689e | 17991 | |
9c60689e | 17992 | |
9c60689e | 17993 | |
e9c9a47c DWT |
17994 | |
17995 | ||
17996 | ||
17997 | ||
17998 | ||
17999 | ||
18000 | ||
18001 | ||
18002 | ||
18003 | ||
18004 | ||
ee134472 JF |
18005 | |
18006 | ||
e9c9a47c DWT |
18007 | |
18008 | ||
18009 | ||
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
18011 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
18012 | hardcode_action_CXX= | |
18013 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
18014 | test -n "$runpath_var_CXX" || | |
9d54db95 | 18015 | test yes = "$hardcode_automatic_CXX"; then |
e9c9a47c DWT |
18016 | |
18017 | # We can hardcode non-existent directories. | |
9d54db95 | 18018 | if test no != "$hardcode_direct_CXX" && |
e9c9a47c DWT |
18019 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18020 | # have to relink, otherwise we might link with an installed library | |
18021 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
18022 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
18023 | test no != "$hardcode_minus_L_CXX"; then | |
e9c9a47c DWT |
18024 | # Linking always hardcodes the temporary library directory. |
18025 | hardcode_action_CXX=relink | |
18026 | else | |
18027 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18028 | hardcode_action_CXX=immediate | |
18029 | fi | |
18030 | else | |
18031 | # We cannot hardcode anything, or else we can only hardcode existing | |
18032 | # directories. | |
18033 | hardcode_action_CXX=unsupported | |
18034 | fi | |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
18036 | $as_echo "$hardcode_action_CXX" >&6; } | |
18037 | ||
9d54db95 JF |
18038 | if test relink = "$hardcode_action_CXX" || |
18039 | test yes = "$inherit_rpath_CXX"; then | |
e9c9a47c DWT |
18040 | # Fast installation is not supported |
18041 | enable_fast_install=no | |
9d54db95 JF |
18042 | elif test yes = "$shlibpath_overrides_runpath" || |
18043 | test no = "$enable_shared"; then | |
e9c9a47c DWT |
18044 | # Fast installation is not necessary |
18045 | enable_fast_install=needless | |
47aaa820 | 18046 | fi |
9c60689e | 18047 | |
47aaa820 | 18048 | |
47aaa820 | 18049 | |
e9c9a47c DWT |
18050 | |
18051 | ||
18052 | ||
18053 | ||
a243b558 JF |
18054 | fi # test -n "$compiler" |
18055 | ||
18056 | CC=$lt_save_CC | |
18057 | CFLAGS=$lt_save_CFLAGS | |
18058 | LDCXX=$LD | |
18059 | LD=$lt_save_LD | |
18060 | GCC=$lt_save_GCC | |
18061 | with_gnu_ld=$lt_save_with_gnu_ld | |
18062 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
18063 | lt_cv_path_LD=$lt_save_path_LD | |
18064 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
18065 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
9d54db95 | 18066 | fi # test yes != "$_lt_caught_CXX_error" |
a243b558 JF |
18067 | |
18068 | ac_ext=c | |
18069 | ac_cpp='$CPP $CPPFLAGS' | |
18070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18073 | ||
18074 | ||
18075 | ||
18076 | ||
18077 | ||
18078 | ||
18079 | ||
18080 | ||
18081 | ||
18082 | ||
18083 | ||
18084 | ||
18085 | ||
18086 | ||
18087 | ||
18088 | ac_config_commands="$ac_config_commands libtool" | |
18089 | ||
18090 | ||
18091 | ||
18092 | ||
18093 | # Only expand once: | |
18094 | ||
18095 | ||
18096 | ||
18097 | ac_ext=cpp | |
18098 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18099 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18100 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18101 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18102 | ||
18103 | ||
1771224f JF |
18104 | ax_cxx_compile_cxx11_required=true |
18105 | ac_ext=cpp | |
18106 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18110 | ac_success=no | |
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
18112 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
18113 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
18114 | $as_echo_n "(cached) " >&6 | |
18115 | else | |
18116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18117 | /* end confdefs.h. */ | |
18118 | ||
18119 | template <typename T> | |
18120 | struct check | |
18121 | { | |
18122 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
18123 | }; | |
18124 | ||
18125 | struct Base { | |
18126 | virtual void f() {} | |
18127 | }; | |
18128 | struct Child : public Base { | |
18129 | virtual void f() override {} | |
18130 | }; | |
18131 | ||
18132 | typedef check<check<bool>> right_angle_brackets; | |
18133 | ||
18134 | int a; | |
18135 | decltype(a) b; | |
18136 | ||
18137 | typedef check<int> check_type; | |
18138 | check_type c; | |
18139 | check_type&& cr = static_cast<check_type&&>(c); | |
18140 | ||
18141 | auto d = a; | |
18142 | auto l = [](){}; | |
18143 | ||
18144 | _ACEOF | |
18145 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18146 | ax_cv_cxx_compile_cxx11=yes | |
18147 | else | |
18148 | ax_cv_cxx_compile_cxx11=no | |
18149 | fi | |
18150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18151 | fi | |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
18153 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
18154 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
18155 | ac_success=yes | |
18156 | fi | |
18157 | ||
18158 | if test x$ac_success = xno; then | |
18159 | for switch in -std=gnu++11 -std=gnu++0x; do | |
18160 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
18162 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
18163 | if eval \${$cachevar+:} false; then : | |
18164 | $as_echo_n "(cached) " >&6 | |
18165 | else | |
18166 | ac_save_CXXFLAGS="$CXXFLAGS" | |
18167 | CXXFLAGS="$CXXFLAGS $switch" | |
18168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18169 | /* end confdefs.h. */ | |
18170 | ||
18171 | template <typename T> | |
18172 | struct check | |
18173 | { | |
18174 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
18175 | }; | |
18176 | ||
18177 | struct Base { | |
18178 | virtual void f() {} | |
18179 | }; | |
18180 | struct Child : public Base { | |
18181 | virtual void f() override {} | |
18182 | }; | |
18183 | ||
18184 | typedef check<check<bool>> right_angle_brackets; | |
18185 | ||
18186 | int a; | |
18187 | decltype(a) b; | |
18188 | ||
18189 | typedef check<int> check_type; | |
18190 | check_type c; | |
18191 | check_type&& cr = static_cast<check_type&&>(c); | |
18192 | ||
18193 | auto d = a; | |
18194 | auto l = [](){}; | |
18195 | ||
18196 | _ACEOF | |
18197 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18198 | eval $cachevar=yes | |
18199 | else | |
18200 | eval $cachevar=no | |
18201 | fi | |
18202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18203 | CXXFLAGS="$ac_save_CXXFLAGS" | |
18204 | fi | |
18205 | eval ac_res=\$$cachevar | |
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
18207 | $as_echo "$ac_res" >&6; } | |
18208 | if eval test x\$$cachevar = xyes; then | |
18209 | CXXFLAGS="$CXXFLAGS $switch" | |
18210 | ac_success=yes | |
18211 | break | |
18212 | fi | |
18213 | done | |
18214 | fi | |
18215 | ||
18216 | ||
18217 | ac_ext=cpp | |
18218 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18222 | ||
18223 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
18224 | if test x$ac_success = xno; then | |
18225 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
18226 | fi | |
18227 | else | |
18228 | if test x$ac_success = xno; then | |
18229 | HAVE_CXX11=0 | |
18230 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
18231 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
18232 | else | |
18233 | HAVE_CXX11=1 | |
18234 | ||
18235 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
18236 | ||
18237 | fi | |
18238 | ||
18239 | ||
18240 | fi | |
18241 | ||
18242 | OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}" | |
18243 | ||
a243b558 JF |
18244 | |
18245 | ||
18246 | ||
18247 | ||
18248 | ||
18249 | ||
83c6fec8 | 18250 | |
a243b558 JF |
18251 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
18252 | if test -n "$ac_tool_prefix"; then | |
18253 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
18254 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
18255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18256 | $as_echo_n "checking for $ac_word... " >&6; } | |
18257 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
18258 | $as_echo_n "(cached) " >&6 | |
18259 | else | |
18260 | case $PKG_CONFIG in | |
18261 | [\\/]* | ?:[\\/]*) | |
18262 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
18263 | ;; | |
18264 | *) | |
18265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18266 | for as_dir in $PATH | |
18267 | do | |
18268 | IFS=$as_save_IFS | |
18269 | test -z "$as_dir" && as_dir=. | |
18270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18272 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18274 | break 2 | |
18275 | fi | |
18276 | done | |
18277 | done | |
18278 | IFS=$as_save_IFS | |
18279 | ||
18280 | ;; | |
18281 | esac | |
18282 | fi | |
18283 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
18284 | if test -n "$PKG_CONFIG"; then | |
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
18286 | $as_echo "$PKG_CONFIG" >&6; } | |
18287 | else | |
18288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18289 | $as_echo "no" >&6; } | |
18290 | fi | |
18291 | ||
18292 | ||
18293 | fi | |
18294 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
18295 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
18296 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
18297 | set dummy pkg-config; ac_word=$2 | |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18299 | $as_echo_n "checking for $ac_word... " >&6; } | |
18300 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
18301 | $as_echo_n "(cached) " >&6 | |
18302 | else | |
18303 | case $ac_pt_PKG_CONFIG in | |
18304 | [\\/]* | ?:[\\/]*) | |
18305 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
18306 | ;; | |
18307 | *) | |
18308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18309 | for as_dir in $PATH | |
18310 | do | |
18311 | IFS=$as_save_IFS | |
18312 | test -z "$as_dir" && as_dir=. | |
18313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18315 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18317 | break 2 | |
18318 | fi | |
18319 | done | |
18320 | done | |
18321 | IFS=$as_save_IFS | |
18322 | ||
18323 | ;; | |
18324 | esac | |
18325 | fi | |
18326 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
18327 | if test -n "$ac_pt_PKG_CONFIG"; then | |
18328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
18329 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
18330 | else | |
18331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18332 | $as_echo "no" >&6; } | |
18333 | fi | |
18334 | ||
18335 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
18336 | PKG_CONFIG="" | |
18337 | else | |
18338 | case $cross_compiling:$ac_tool_warned in | |
18339 | yes:) | |
18340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
18341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
18342 | ac_tool_warned=yes ;; | |
18343 | esac | |
18344 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
18345 | fi | |
18346 | else | |
18347 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
18348 | fi | |
18349 | ||
18350 | fi | |
18351 | if test -n "$PKG_CONFIG"; then | |
18352 | _pkg_min_version=0.22 | |
18353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
18354 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
18355 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
18356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18357 | $as_echo "yes" >&6; } | |
18358 | else | |
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18360 | $as_echo "no" >&6; } | |
18361 | PKG_CONFIG="" | |
18362 | fi | |
18363 | fi | |
18364 | ||
a243b558 JF |
18365 | # Extract the first word of "git", so it can be a program name with args. |
18366 | set dummy git; ac_word=$2 | |
18367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18368 | $as_echo_n "checking for $ac_word... " >&6; } | |
18369 | if ${ac_cv_path_GIT+:} false; then : | |
18370 | $as_echo_n "(cached) " >&6 | |
18371 | else | |
18372 | case $GIT in | |
18373 | [\\/]* | ?:[\\/]*) | |
18374 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
18375 | ;; | |
18376 | *) | |
18377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18378 | for as_dir in $PATH | |
18379 | do | |
18380 | IFS=$as_save_IFS | |
18381 | test -z "$as_dir" && as_dir=. | |
18382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18384 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
18385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18386 | break 2 | |
18387 | fi | |
18388 | done | |
18389 | done | |
18390 | IFS=$as_save_IFS | |
e9c9a47c | 18391 | |
a243b558 JF |
18392 | ;; |
18393 | esac | |
18394 | fi | |
18395 | GIT=$ac_cv_path_GIT | |
18396 | if test -n "$GIT"; then | |
18397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
18398 | $as_echo "$GIT" >&6; } | |
18399 | else | |
18400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18401 | $as_echo "no" >&6; } | |
18402 | fi | |
e9c9a47c DWT |
18403 | |
18404 | ||
a243b558 JF |
18405 | # Extract the first word of "time", so it can be a program name with args. |
18406 | set dummy time; ac_word=$2 | |
632b71ea DWT |
18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
18408 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 18409 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
18410 | $as_echo_n "(cached) " >&6 |
18411 | else | |
a243b558 JF |
18412 | case $TIME in |
18413 | [\\/]* | ?:[\\/]*) | |
18414 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
18415 | ;; | |
18416 | *) | |
18417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
18418 | for as_dir in $PATH |
18419 | do | |
18420 | IFS=$as_save_IFS | |
18421 | test -z "$as_dir" && as_dir=. | |
18422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 18423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 18424 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
18425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18426 | break 2 | |
18427 | fi | |
18428 | done | |
18429 | done | |
18430 | IFS=$as_save_IFS | |
18431 | ||
a243b558 JF |
18432 | ;; |
18433 | esac | |
632b71ea | 18434 | fi |
a243b558 JF |
18435 | TIME=$ac_cv_path_TIME |
18436 | if test -n "$TIME"; then | |
18437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
18438 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
18439 | else |
18440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18441 | $as_echo "no" >&6; } | |
18442 | fi | |
18443 | ||
18444 | ||
a243b558 JF |
18445 | |
18446 | ||
18447 | ||
18448 | ||
18449 | ||
6ce9ac92 JF |
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5 |
18451 | $as_echo_n "checking for bison >= 3.0... " >&6; } | |
a243b558 JF |
18452 | if test -z "$BISON"; then |
18453 | ac_path_BISON_found=false | |
18454 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18456 | for as_dir in $PATH | |
18457 | do | |
18458 | IFS=$as_save_IFS | |
18459 | test -z "$as_dir" && as_dir=. | |
18460 | for ac_prog in bison; do | |
18461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18462 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
18463 | as_fn_executable_p "$ac_path_BISON" || continue | |
18464 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
18465 | if ${version:+false} :; then : | |
18466 | ||
18467 | else | |
18468 | as_awk_strverscmp=' | |
18469 | # Use only awk features that work with 7th edition Unix awk (1978). | |
18470 | # My, what an old awk you have, Mr. Solaris! | |
18471 | END { | |
18472 | while (length(v1) && length(v2)) { | |
18473 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
18474 | # Normally this is a single character, but if v1 and v2 contain digits, | |
18475 | # compare them as integers and fractions as strverscmp does. | |
18476 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
18477 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
18478 | # and advance v1 and v2 past the leading digit strings. | |
18479 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
18480 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
18481 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
18482 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
18483 | if (d1 ~ /^0/) { | |
18484 | if (d2 ~ /^0/) { | |
18485 | # Compare two fractions. | |
18486 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
18487 | d1 = substr(d1, 2); len1-- | |
18488 | d2 = substr(d2, 2); len2-- | |
18489 | } | |
18490 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
18491 | # The two components differ in length, and the common prefix | |
18492 | # contains only leading zeros. Consider the longer to be less. | |
18493 | d1 = -len1 | |
18494 | d2 = -len2 | |
18495 | } else { | |
18496 | # Otherwise, compare as strings. | |
18497 | d1 = "x" d1 | |
18498 | d2 = "x" d2 | |
18499 | } | |
18500 | } else { | |
18501 | # A fraction is less than an integer. | |
18502 | exit 1 | |
18503 | } | |
18504 | } else { | |
18505 | if (d2 ~ /^0/) { | |
18506 | # An integer is greater than a fraction. | |
18507 | exit 2 | |
18508 | } else { | |
18509 | # Compare two integers. | |
18510 | d1 += 0 | |
18511 | d2 += 0 | |
18512 | } | |
18513 | } | |
18514 | } else { | |
18515 | # The normal case, without worrying about digits. | |
18516 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
18517 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
18518 | } | |
18519 | if (d1 < d2) exit 1 | |
18520 | if (d1 > d2) exit 2 | |
18521 | } | |
18522 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
18523 | # which mishandles some comparisons of empty strings to integers. | |
18524 | if (length(v2)) exit 1 | |
18525 | if (length(v1)) exit 2 | |
18526 | } | |
18527 | ' | |
18528 | as_arg_v1=$version | |
6ce9ac92 | 18529 | as_arg_v2=3.0 |
a243b558 JF |
18530 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
18531 | case $? in #( | |
18532 | 1) : | |
18533 | ;; #( | |
18534 | 0) : | |
18535 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
18536 | 2) : | |
18537 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
18538 | *) : | |
18539 | ;; | |
18540 | esac | |
18541 | fi | |
18542 | ||
18543 | $ac_path_BISON_found && break 3 | |
18544 | done | |
18545 | done | |
e9c9a47c | 18546 | done |
a243b558 JF |
18547 | IFS=$as_save_IFS |
18548 | if test -z "$ac_cv_path_BISON"; then | |
18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18550 | $as_echo "no" >&6; } | |
18551 | fi | |
18552 | else | |
18553 | ac_cv_path_BISON=$BISON | |
632b71ea | 18554 | fi |
a243b558 JF |
18555 | |
18556 | ||
18557 | if true; then : | |
18558 | ||
18559 | BISON=$ac_cv_path_BISON | |
18560 | ||
18561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
18562 | $as_echo "$BISON" >&6; } | |
18563 | ||
47aaa820 | 18564 | else |
a243b558 JF |
18565 | if true; then : |
18566 | ||
6ce9ac92 | 18567 | as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5 |
a243b558 | 18568 | |
47aaa820 | 18569 | else |
a243b558 JF |
18570 | |
18571 | BISON=: | |
18572 | ||
18573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18574 | $as_echo "no" >&6; } | |
18575 | ||
18576 | fi | |
18577 | fi | |
18578 | ||
18579 | ||
18580 | ||
18581 | ||
18582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
18583 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
18584 | if test -z "$FLEX"; then | |
18585 | ac_path_FLEX_found=false | |
18586 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
18588 | for as_dir in $PATH |
18589 | do | |
18590 | IFS=$as_save_IFS | |
18591 | test -z "$as_dir" && as_dir=. | |
a243b558 | 18592 | for ac_prog in flex; do |
47aaa820 | 18593 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
18594 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
18595 | as_fn_executable_p "$ac_path_FLEX" || continue | |
18596 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
18597 | if ${version:+false} :; then : | |
9c60689e | 18598 | |
47aaa820 | 18599 | else |
a243b558 JF |
18600 | as_arg_v1=$version |
18601 | as_arg_v2=2.5.33 | |
18602 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18603 | case $? in #( | |
18604 | 1) : | |
18605 | ;; #( | |
18606 | 0) : | |
18607 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
18608 | 2) : | |
18609 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
18610 | *) : | |
18611 | ;; | |
18612 | esac | |
18613 | fi | |
18614 | ||
18615 | $ac_path_FLEX_found && break 3 | |
18616 | done | |
18617 | done | |
18618 | done | |
18619 | IFS=$as_save_IFS | |
18620 | if test -z "$ac_cv_path_FLEX"; then | |
18621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 18622 | $as_echo "no" >&6; } |
a243b558 JF |
18623 | fi |
18624 | else | |
18625 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
18626 | fi |
18627 | ||
18628 | ||
a243b558 | 18629 | if true; then : |
e9c9a47c | 18630 | |
a243b558 | 18631 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 18632 | |
a243b558 JF |
18633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
18634 | $as_echo "$FLEX" >&6; } | |
9c60689e | 18635 | |
632b71ea | 18636 | else |
a243b558 | 18637 | if true; then : |
e9c9a47c | 18638 | |
a243b558 | 18639 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 18640 | |
e9c9a47c | 18641 | else |
a243b558 JF |
18642 | |
18643 | FLEX=: | |
18644 | ||
18645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18646 | $as_echo "no" >&6; } | |
9c60689e | 18647 | |
632b71ea | 18648 | fi |
a243b558 JF |
18649 | fi |
18650 | ||
18651 | ||
18652 | ||
18653 | ||
18654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
18655 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
18656 | if test -z "$GPERF"; then | |
18657 | ac_path_GPERF_found=false | |
18658 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18660 | for as_dir in $PATH | |
18661 | do | |
18662 | IFS=$as_save_IFS | |
18663 | test -z "$as_dir" && as_dir=. | |
18664 | for ac_prog in gperf; do | |
18665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18666 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
18667 | as_fn_executable_p "$ac_path_GPERF" || continue | |
18668 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
18669 | if ${version:+false} :; then : | |
18670 | ||
e9c9a47c | 18671 | else |
a243b558 JF |
18672 | as_arg_v1=$version |
18673 | as_arg_v2=3.0.3 | |
18674 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18675 | case $? in #( | |
18676 | 1) : | |
18677 | ;; #( | |
18678 | 0) : | |
18679 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
18680 | 2) : | |
18681 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
18682 | *) : | |
18683 | ;; | |
18684 | esac | |
632b71ea | 18685 | fi |
a243b558 JF |
18686 | |
18687 | $ac_path_GPERF_found && break 3 | |
18688 | done | |
18689 | done | |
18690 | done | |
18691 | IFS=$as_save_IFS | |
18692 | if test -z "$ac_cv_path_GPERF"; then | |
18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18694 | $as_echo "no" >&6; } | |
18695 | fi | |
47aaa820 | 18696 | else |
a243b558 JF |
18697 | ac_cv_path_GPERF=$GPERF |
18698 | fi | |
9c60689e DWT |
18699 | |
18700 | ||
a243b558 | 18701 | if true; then : |
9c60689e | 18702 | |
a243b558 | 18703 | GPERF=$ac_cv_path_GPERF |
9c60689e | 18704 | |
a243b558 JF |
18705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
18706 | $as_echo "$GPERF" >&6; } | |
9c60689e | 18707 | |
47aaa820 | 18708 | else |
a243b558 | 18709 | if true; then : |
9c60689e | 18710 | |
a243b558 JF |
18711 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
18712 | ||
18713 | else | |
18714 | ||
18715 | GPERF=: | |
18716 | ||
18717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18718 | $as_echo "no" >&6; } | |
9c60689e | 18719 | |
47aaa820 | 18720 | fi |
47aaa820 | 18721 | fi |
a243b558 JF |
18722 | |
18723 | ||
18724 | ||
18725 | ||
18726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
18727 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
18728 | if test -z "$GNUTAR"; then | |
18729 | ac_path_GNUTAR_found=false | |
18730 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18732 | for as_dir in $PATH | |
18733 | do | |
18734 | IFS=$as_save_IFS | |
18735 | test -z "$as_dir" && as_dir=. | |
18736 | for ac_prog in tar gtar gnutar; do | |
18737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18738 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
18739 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
18740 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
18741 | if ${version:+false} :; then : | |
18742 | ||
18743 | else | |
18744 | as_arg_v1=$version | |
18745 | as_arg_v2=1.19 | |
18746 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
18747 | case $? in #( | |
18748 | 1) : | |
18749 | ;; #( | |
18750 | 0) : | |
18751 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
18752 | 2) : | |
18753 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
18754 | *) : | |
18755 | ;; | |
18756 | esac | |
790e5246 | 18757 | fi |
a243b558 JF |
18758 | |
18759 | $ac_path_GNUTAR_found && break 3 | |
18760 | done | |
18761 | done | |
18762 | done | |
18763 | IFS=$as_save_IFS | |
18764 | if test -z "$ac_cv_path_GNUTAR"; then | |
18765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18766 | $as_echo "no" >&6; } | |
632b71ea | 18767 | fi |
632b71ea | 18768 | else |
a243b558 | 18769 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 18770 | fi |
66170b30 | 18771 | |
66170b30 | 18772 | |
a243b558 | 18773 | if true; then : |
66170b30 | 18774 | |
a243b558 | 18775 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 18776 | |
a243b558 JF |
18777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
18778 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 18779 | |
a243b558 JF |
18780 | else |
18781 | if true; then : | |
66170b30 | 18782 | |
a243b558 | 18783 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 18784 | |
66170b30 | 18785 | else |
66170b30 | 18786 | |
a243b558 | 18787 | GNUTAR=: |
66170b30 | 18788 | |
a243b558 JF |
18789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18790 | $as_echo "no" >&6; } | |
66170b30 | 18791 | |
a243b558 JF |
18792 | fi |
18793 | fi | |
66170b30 JF |
18794 | |
18795 | ||
18796 | ||
18797 | ||
18798 | ||
18799 | ||
18800 | ||
77578fdd JF |
18801 | if test "x$LFLAGS" = x; then : |
18802 | LFLAGS="--full --ecs" | |
18803 | fi | |
18804 | ||
18805 | ||
66170b30 JF |
18806 | |
18807 | ||
18808 | ||
e9c9a47c DWT |
18809 | ac_ext=c |
18810 | ac_cpp='$CPP $CPPFLAGS' | |
18811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 18814 | |
66170b30 JF |
18815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
18816 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
18817 | if ${ac_cv_cflags_warn_all+:} false; then : | |
18818 | $as_echo_n "(cached) " >&6 | |
18819 | else | |
18820 | ac_cv_cflags_warn_all="no, unknown" | |
18821 | ac_save_CFLAGS="$CFLAGS" | |
18822 | 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" # | |
18823 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
18824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18825 | /* end confdefs.h. */ | |
18826 | ||
18827 | int | |
18828 | main () | |
18829 | { | |
18830 | ||
18831 | ; | |
18832 | return 0; | |
18833 | } | |
18834 | _ACEOF | |
18835 | if ac_fn_c_try_compile "$LINENO"; then : | |
18836 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
18837 | fi | |
18838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18839 | done | |
18840 | CFLAGS="$ac_save_CFLAGS" | |
18841 | ||
18842 | fi | |
18843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
18844 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
18845 | ||
83c6fec8 | 18846 | |
66170b30 JF |
18847 | case ".$ac_cv_cflags_warn_all" in |
18848 | .ok|.ok,*) ;; | |
18849 | .|.no|.no,*) ;; | |
18850 | *) if ${CFLAGS+:} false; then : | |
18851 | case " $CFLAGS " in | |
18852 | *" $ac_cv_cflags_warn_all "*) | |
18853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
18854 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
18855 | ac_status=$? | |
18856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18857 | test $ac_status = 0; } | |
18858 | ;; | |
18859 | *) | |
18860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
18861 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
18862 | ac_status=$? | |
18863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18864 | test $ac_status = 0; } | |
18865 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
18866 | ;; | |
18867 | esac | |
18868 | else | |
18869 | CFLAGS="$ac_cv_cflags_warn_all" | |
18870 | fi | |
18871 | ;; | |
18872 | esac | |
18873 | ||
b816329d JF |
18874 | ac_ext=cpp |
18875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18879 | ||
9c60689e | 18880 | |
66170b30 JF |
18881 | ac_ext=cpp |
18882 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 18886 | |
66170b30 JF |
18887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
18888 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
18889 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
18890 | $as_echo_n "(cached) " >&6 | |
18891 | else | |
18892 | ac_cv_cxxflags_warn_all="no, unknown" | |
18893 | ac_save_CXXFLAGS="$CXXFLAGS" | |
18894 | 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" # | |
18895 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
18896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18897 | /* end confdefs.h. */ | |
1504c9b8 | 18898 | |
66170b30 JF |
18899 | int |
18900 | main () | |
18901 | { | |
1504c9b8 | 18902 | |
66170b30 JF |
18903 | ; |
18904 | return 0; | |
18905 | } | |
18906 | _ACEOF | |
18907 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18908 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
18909 | fi | |
18910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18911 | done | |
18912 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 18913 | |
66170b30 JF |
18914 | fi |
18915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
18916 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
18917 | ||
83c6fec8 | 18918 | |
66170b30 JF |
18919 | case ".$ac_cv_cxxflags_warn_all" in |
18920 | .ok|.ok,*) ;; | |
18921 | .|.no|.no,*) ;; | |
18922 | *) if ${CXXFLAGS+:} false; then : | |
18923 | case " $CXXFLAGS " in | |
18924 | *" $ac_cv_cxxflags_warn_all "*) | |
18925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
18926 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
18927 | ac_status=$? | |
18928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18929 | test $ac_status = 0; } | |
18930 | ;; | |
18931 | *) | |
18932 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
18933 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
18934 | ac_status=$? | |
18935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18936 | test $ac_status = 0; } | |
18937 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
18938 | ;; | |
18939 | esac | |
18940 | else | |
18941 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
18942 | fi | |
18943 | ;; | |
18944 | esac | |
18945 | ||
18946 | ac_ext=cpp | |
18947 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18948 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18949 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18950 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18951 | ||
18952 | ||
babf7fe8 JF |
18953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
18954 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
18955 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
18956 | $as_echo_n "(cached) " >&6 | |
18957 | else | |
18958 | ac_cv_cxxflags_warn_all="no, unknown" | |
18959 | ac_save_CXXFLAGS="$CXXFLAGS" | |
18960 | 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" # | |
18961 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
18962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18963 | /* end confdefs.h. */ | |
18964 | ||
18965 | int | |
18966 | main () | |
18967 | { | |
18968 | ||
18969 | ; | |
18970 | return 0; | |
18971 | } | |
18972 | _ACEOF | |
18973 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18974 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
18975 | fi | |
18976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18977 | done | |
18978 | CXXFLAGS="$ac_save_CXXFLAGS" | |
18979 | ||
18980 | fi | |
18981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
18982 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
18983 | ||
83c6fec8 | 18984 | |
babf7fe8 JF |
18985 | case ".$ac_cv_cxxflags_warn_all" in |
18986 | .ok|.ok,*) ;; | |
18987 | .|.no|.no,*) ;; | |
18988 | *) if ${CXXFLAGS+:} false; then : | |
18989 | case " $CXXFLAGS " in | |
18990 | *" $ac_cv_cxxflags_warn_all "*) | |
18991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
18992 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
18993 | ac_status=$? | |
18994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18995 | test $ac_status = 0; } | |
18996 | ;; | |
18997 | *) | |
18998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
18999 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
19000 | ac_status=$? | |
19001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19002 | test $ac_status = 0; } | |
19003 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
19004 | ;; | |
19005 | esac | |
19006 | else | |
19007 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
19008 | fi | |
19009 | ;; | |
19010 | esac | |
19011 | ||
66170b30 JF |
19012 | |
19013 | ||
66170b30 | 19014 | |
66170b30 | 19015 | |
c10a2228 JF |
19016 | ac_ext=c |
19017 | ac_cpp='$CPP $CPPFLAGS' | |
19018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19021 | ||
babf7fe8 JF |
19022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
19023 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
19024 | |
19025 | cy_save=$CFLAGS | |
19026 | ||
babf7fe8 | 19027 | for element in -Werror; do |
c10a2228 JF |
19028 | haveit= |
19029 | for x in $CFLAGS; do | |
19030 | ||
19031 | acl_save_prefix="$prefix" | |
19032 | prefix="$acl_final_prefix" | |
19033 | acl_save_exec_prefix="$exec_prefix" | |
19034 | exec_prefix="$acl_final_exec_prefix" | |
19035 | eval x=\"$x\" | |
19036 | exec_prefix="$acl_save_exec_prefix" | |
19037 | prefix="$acl_save_prefix" | |
19038 | ||
19039 | if test "X$x" = "X$element"; then | |
19040 | haveit=yes | |
19041 | break | |
19042 | fi | |
19043 | done | |
19044 | if test -z "$haveit"; then | |
19045 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19046 | fi | |
19047 | done | |
19048 | ||
19049 | ||
19050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19051 | /* end confdefs.h. */ | |
19052 | ||
19053 | _ACEOF | |
19054 | if ac_fn_c_try_compile "$LINENO"; then : | |
19055 | cy_good=1 | |
19056 | else | |
19057 | cy_good=0 | |
19058 | fi | |
19059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19060 | ||
19061 | CFLAGS=$cy_save | |
19062 | if test "x$cy_good" = x1; then : | |
19063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19064 | $as_echo "yes" >&6; } | |
19065 | ||
babf7fe8 | 19066 | for element in -Werror; do |
c10a2228 JF |
19067 | haveit= |
19068 | for x in $CFLAGS; do | |
19069 | ||
19070 | acl_save_prefix="$prefix" | |
19071 | prefix="$acl_final_prefix" | |
19072 | acl_save_exec_prefix="$exec_prefix" | |
19073 | exec_prefix="$acl_final_exec_prefix" | |
19074 | eval x=\"$x\" | |
19075 | exec_prefix="$acl_save_exec_prefix" | |
19076 | prefix="$acl_save_prefix" | |
19077 | ||
19078 | if test "X$x" = "X$element"; then | |
19079 | haveit=yes | |
19080 | break | |
19081 | fi | |
19082 | done | |
19083 | if test -z "$haveit"; then | |
19084 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19085 | fi | |
19086 | done | |
19087 | ||
19088 | ||
19089 | else | |
19090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19091 | $as_echo "no" >&6; } | |
19092 | fi | |
19093 | ||
19094 | ac_ext=cpp | |
19095 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19096 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19097 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19098 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19099 | ||
19100 | ||
19101 | ||
19102 | ac_ext=cpp | |
19103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19107 | ||
babf7fe8 JF |
19108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
19109 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
19110 | |
19111 | cy_save=$CXXFLAGS | |
19112 | ||
babf7fe8 | 19113 | for element in -Werror; do |
c10a2228 JF |
19114 | haveit= |
19115 | for x in $CXXFLAGS; do | |
19116 | ||
19117 | acl_save_prefix="$prefix" | |
19118 | prefix="$acl_final_prefix" | |
19119 | acl_save_exec_prefix="$exec_prefix" | |
19120 | exec_prefix="$acl_final_exec_prefix" | |
19121 | eval x=\"$x\" | |
19122 | exec_prefix="$acl_save_exec_prefix" | |
19123 | prefix="$acl_save_prefix" | |
19124 | ||
19125 | if test "X$x" = "X$element"; then | |
19126 | haveit=yes | |
19127 | break | |
19128 | fi | |
19129 | done | |
19130 | if test -z "$haveit"; then | |
19131 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19132 | fi | |
19133 | done | |
19134 | ||
19135 | ||
19136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19137 | /* end confdefs.h. */ | |
19138 | ||
19139 | _ACEOF | |
19140 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19141 | cy_good=1 | |
19142 | else | |
19143 | cy_good=0 | |
19144 | fi | |
19145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19146 | ||
19147 | CXXFLAGS=$cy_save | |
19148 | if test "x$cy_good" = x1; then : | |
19149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19150 | $as_echo "yes" >&6; } | |
19151 | ||
babf7fe8 | 19152 | for element in -Werror; do |
c10a2228 JF |
19153 | haveit= |
19154 | for x in $CXXFLAGS; do | |
19155 | ||
19156 | acl_save_prefix="$prefix" | |
19157 | prefix="$acl_final_prefix" | |
19158 | acl_save_exec_prefix="$exec_prefix" | |
19159 | exec_prefix="$acl_final_exec_prefix" | |
19160 | eval x=\"$x\" | |
19161 | exec_prefix="$acl_save_exec_prefix" | |
19162 | prefix="$acl_save_prefix" | |
19163 | ||
19164 | if test "X$x" = "X$element"; then | |
19165 | haveit=yes | |
19166 | break | |
19167 | fi | |
19168 | done | |
19169 | if test -z "$haveit"; then | |
19170 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19171 | fi | |
19172 | done | |
19173 | ||
19174 | ||
19175 | else | |
19176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19177 | $as_echo "no" >&6; } | |
19178 | fi | |
19179 | ||
19180 | ac_ext=cpp | |
19181 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19182 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19183 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19184 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19185 | ||
19186 | ||
19187 | ||
19188 | ac_ext=mm | |
19189 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19190 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19191 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19192 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19193 | ||
babf7fe8 JF |
19194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
19195 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
19196 | |
19197 | cy_save=$OBJCXXFLAGS | |
19198 | ||
babf7fe8 | 19199 | for element in -Werror; do |
c10a2228 JF |
19200 | haveit= |
19201 | for x in $OBJCXXFLAGS; do | |
19202 | ||
19203 | acl_save_prefix="$prefix" | |
19204 | prefix="$acl_final_prefix" | |
19205 | acl_save_exec_prefix="$exec_prefix" | |
19206 | exec_prefix="$acl_final_exec_prefix" | |
19207 | eval x=\"$x\" | |
19208 | exec_prefix="$acl_save_exec_prefix" | |
19209 | prefix="$acl_save_prefix" | |
19210 | ||
19211 | if test "X$x" = "X$element"; then | |
19212 | haveit=yes | |
19213 | break | |
19214 | fi | |
19215 | done | |
19216 | if test -z "$haveit"; then | |
19217 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19218 | fi | |
19219 | done | |
19220 | ||
19221 | ||
19222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19223 | /* end confdefs.h. */ | |
19224 | ||
19225 | _ACEOF | |
19226 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19227 | cy_good=1 | |
19228 | else | |
19229 | cy_good=0 | |
19230 | fi | |
19231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19232 | ||
19233 | OBJCXXFLAGS=$cy_save | |
19234 | if test "x$cy_good" = x1; then : | |
19235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19236 | $as_echo "yes" >&6; } | |
19237 | ||
babf7fe8 | 19238 | for element in -Werror; do |
c10a2228 JF |
19239 | haveit= |
19240 | for x in $OBJCXXFLAGS; do | |
19241 | ||
19242 | acl_save_prefix="$prefix" | |
19243 | prefix="$acl_final_prefix" | |
19244 | acl_save_exec_prefix="$exec_prefix" | |
19245 | exec_prefix="$acl_final_exec_prefix" | |
19246 | eval x=\"$x\" | |
19247 | exec_prefix="$acl_save_exec_prefix" | |
19248 | prefix="$acl_save_prefix" | |
19249 | ||
19250 | if test "X$x" = "X$element"; then | |
19251 | haveit=yes | |
19252 | break | |
19253 | fi | |
19254 | done | |
19255 | if test -z "$haveit"; then | |
19256 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19257 | fi | |
19258 | done | |
19259 | ||
19260 | ||
19261 | else | |
19262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19263 | $as_echo "no" >&6; } | |
19264 | fi | |
19265 | ||
19266 | ac_ext=cpp | |
19267 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19271 | ||
19272 | ||
19273 | ||
19274 | ||
19275 | ||
19276 | ||
19277 | ac_ext=c | |
19278 | ac_cpp='$CPP $CPPFLAGS' | |
19279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19282 | ||
babf7fe8 JF |
19283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
19284 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19285 | |
19286 | cy_save=$CFLAGS | |
19287 | ||
babf7fe8 | 19288 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19289 | haveit= |
19290 | for x in $CFLAGS; do | |
19291 | ||
19292 | acl_save_prefix="$prefix" | |
19293 | prefix="$acl_final_prefix" | |
19294 | acl_save_exec_prefix="$exec_prefix" | |
19295 | exec_prefix="$acl_final_exec_prefix" | |
19296 | eval x=\"$x\" | |
19297 | exec_prefix="$acl_save_exec_prefix" | |
19298 | prefix="$acl_save_prefix" | |
19299 | ||
19300 | if test "X$x" = "X$element"; then | |
19301 | haveit=yes | |
19302 | break | |
19303 | fi | |
19304 | done | |
19305 | if test -z "$haveit"; then | |
19306 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19307 | fi | |
19308 | done | |
19309 | ||
19310 | ||
19311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19312 | /* end confdefs.h. */ | |
19313 | ||
19314 | _ACEOF | |
19315 | if ac_fn_c_try_compile "$LINENO"; then : | |
19316 | cy_good=1 | |
19317 | else | |
19318 | cy_good=0 | |
19319 | fi | |
19320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19321 | ||
19322 | CFLAGS=$cy_save | |
19323 | if test "x$cy_good" = x1; then : | |
19324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19325 | $as_echo "yes" >&6; } | |
19326 | ||
babf7fe8 | 19327 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19328 | haveit= |
19329 | for x in $CFLAGS; do | |
19330 | ||
19331 | acl_save_prefix="$prefix" | |
19332 | prefix="$acl_final_prefix" | |
19333 | acl_save_exec_prefix="$exec_prefix" | |
19334 | exec_prefix="$acl_final_exec_prefix" | |
19335 | eval x=\"$x\" | |
19336 | exec_prefix="$acl_save_exec_prefix" | |
19337 | prefix="$acl_save_prefix" | |
19338 | ||
19339 | if test "X$x" = "X$element"; then | |
19340 | haveit=yes | |
19341 | break | |
19342 | fi | |
19343 | done | |
19344 | if test -z "$haveit"; then | |
19345 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19346 | fi | |
19347 | done | |
19348 | ||
19349 | ||
19350 | else | |
19351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19352 | $as_echo "no" >&6; } | |
19353 | fi | |
19354 | ||
19355 | ac_ext=cpp | |
19356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19357 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19358 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19359 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19360 | ||
19361 | ||
19362 | ||
19363 | ac_ext=cpp | |
19364 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19368 | ||
babf7fe8 JF |
19369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
19370 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19371 | |
19372 | cy_save=$CXXFLAGS | |
19373 | ||
babf7fe8 | 19374 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19375 | haveit= |
19376 | for x in $CXXFLAGS; do | |
19377 | ||
19378 | acl_save_prefix="$prefix" | |
19379 | prefix="$acl_final_prefix" | |
19380 | acl_save_exec_prefix="$exec_prefix" | |
19381 | exec_prefix="$acl_final_exec_prefix" | |
19382 | eval x=\"$x\" | |
19383 | exec_prefix="$acl_save_exec_prefix" | |
19384 | prefix="$acl_save_prefix" | |
19385 | ||
19386 | if test "X$x" = "X$element"; then | |
19387 | haveit=yes | |
19388 | break | |
19389 | fi | |
19390 | done | |
19391 | if test -z "$haveit"; then | |
19392 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19393 | fi | |
19394 | done | |
19395 | ||
19396 | ||
19397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19398 | /* end confdefs.h. */ | |
19399 | ||
19400 | _ACEOF | |
19401 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19402 | cy_good=1 | |
19403 | else | |
19404 | cy_good=0 | |
19405 | fi | |
19406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19407 | ||
19408 | CXXFLAGS=$cy_save | |
19409 | if test "x$cy_good" = x1; then : | |
19410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19411 | $as_echo "yes" >&6; } | |
19412 | ||
babf7fe8 | 19413 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19414 | haveit= |
19415 | for x in $CXXFLAGS; do | |
19416 | ||
19417 | acl_save_prefix="$prefix" | |
19418 | prefix="$acl_final_prefix" | |
19419 | acl_save_exec_prefix="$exec_prefix" | |
19420 | exec_prefix="$acl_final_exec_prefix" | |
19421 | eval x=\"$x\" | |
19422 | exec_prefix="$acl_save_exec_prefix" | |
19423 | prefix="$acl_save_prefix" | |
19424 | ||
19425 | if test "X$x" = "X$element"; then | |
19426 | haveit=yes | |
19427 | break | |
19428 | fi | |
19429 | done | |
19430 | if test -z "$haveit"; then | |
19431 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19432 | fi | |
19433 | done | |
19434 | ||
19435 | ||
19436 | else | |
19437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19438 | $as_echo "no" >&6; } | |
19439 | fi | |
19440 | ||
19441 | ac_ext=cpp | |
19442 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19443 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19444 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19445 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19446 | ||
19447 | ||
19448 | ||
19449 | ac_ext=mm | |
19450 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19451 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19452 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19453 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19454 | ||
babf7fe8 JF |
19455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
19456 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
19457 | |
19458 | cy_save=$OBJCXXFLAGS | |
19459 | ||
babf7fe8 | 19460 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19461 | haveit= |
19462 | for x in $OBJCXXFLAGS; do | |
19463 | ||
19464 | acl_save_prefix="$prefix" | |
19465 | prefix="$acl_final_prefix" | |
19466 | acl_save_exec_prefix="$exec_prefix" | |
19467 | exec_prefix="$acl_final_exec_prefix" | |
19468 | eval x=\"$x\" | |
19469 | exec_prefix="$acl_save_exec_prefix" | |
19470 | prefix="$acl_save_prefix" | |
19471 | ||
19472 | if test "X$x" = "X$element"; then | |
19473 | haveit=yes | |
19474 | break | |
19475 | fi | |
19476 | done | |
19477 | if test -z "$haveit"; then | |
19478 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19479 | fi | |
19480 | done | |
19481 | ||
19482 | ||
19483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19484 | /* end confdefs.h. */ | |
19485 | ||
19486 | _ACEOF | |
19487 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19488 | cy_good=1 | |
19489 | else | |
19490 | cy_good=0 | |
19491 | fi | |
19492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19493 | ||
19494 | OBJCXXFLAGS=$cy_save | |
19495 | if test "x$cy_good" = x1; then : | |
19496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19497 | $as_echo "yes" >&6; } | |
19498 | ||
babf7fe8 | 19499 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
19500 | haveit= |
19501 | for x in $OBJCXXFLAGS; do | |
19502 | ||
19503 | acl_save_prefix="$prefix" | |
19504 | prefix="$acl_final_prefix" | |
19505 | acl_save_exec_prefix="$exec_prefix" | |
19506 | exec_prefix="$acl_final_exec_prefix" | |
19507 | eval x=\"$x\" | |
19508 | exec_prefix="$acl_save_exec_prefix" | |
19509 | prefix="$acl_save_prefix" | |
19510 | ||
19511 | if test "X$x" = "X$element"; then | |
19512 | haveit=yes | |
19513 | break | |
19514 | fi | |
19515 | done | |
19516 | if test -z "$haveit"; then | |
19517 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19518 | fi | |
19519 | done | |
19520 | ||
19521 | ||
19522 | else | |
19523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19524 | $as_echo "no" >&6; } | |
19525 | fi | |
19526 | ||
19527 | ac_ext=cpp | |
19528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19532 | ||
19533 | ||
19534 | ||
19535 | ||
19536 | ||
babf7fe8 | 19537 | |
c10a2228 JF |
19538 | ac_ext=c |
19539 | ac_cpp='$CPP $CPPFLAGS' | |
19540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19543 | ||
babf7fe8 JF |
19544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
19545 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19546 | |
19547 | cy_save=$CFLAGS | |
19548 | ||
babf7fe8 | 19549 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19550 | haveit= |
19551 | for x in $CFLAGS; do | |
19552 | ||
19553 | acl_save_prefix="$prefix" | |
19554 | prefix="$acl_final_prefix" | |
19555 | acl_save_exec_prefix="$exec_prefix" | |
19556 | exec_prefix="$acl_final_exec_prefix" | |
19557 | eval x=\"$x\" | |
19558 | exec_prefix="$acl_save_exec_prefix" | |
19559 | prefix="$acl_save_prefix" | |
19560 | ||
19561 | if test "X$x" = "X$element"; then | |
19562 | haveit=yes | |
19563 | break | |
19564 | fi | |
19565 | done | |
19566 | if test -z "$haveit"; then | |
19567 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19568 | fi | |
19569 | done | |
19570 | ||
19571 | ||
19572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19573 | /* end confdefs.h. */ | |
19574 | ||
19575 | _ACEOF | |
19576 | if ac_fn_c_try_compile "$LINENO"; then : | |
19577 | cy_good=1 | |
19578 | else | |
19579 | cy_good=0 | |
19580 | fi | |
19581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19582 | ||
19583 | CFLAGS=$cy_save | |
19584 | if test "x$cy_good" = x1; then : | |
19585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19586 | $as_echo "yes" >&6; } | |
19587 | ||
babf7fe8 | 19588 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19589 | haveit= |
19590 | for x in $CFLAGS; do | |
19591 | ||
19592 | acl_save_prefix="$prefix" | |
19593 | prefix="$acl_final_prefix" | |
19594 | acl_save_exec_prefix="$exec_prefix" | |
19595 | exec_prefix="$acl_final_exec_prefix" | |
19596 | eval x=\"$x\" | |
19597 | exec_prefix="$acl_save_exec_prefix" | |
19598 | prefix="$acl_save_prefix" | |
19599 | ||
19600 | if test "X$x" = "X$element"; then | |
19601 | haveit=yes | |
19602 | break | |
19603 | fi | |
19604 | done | |
19605 | if test -z "$haveit"; then | |
19606 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19607 | fi | |
19608 | done | |
19609 | ||
19610 | ||
19611 | else | |
19612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19613 | $as_echo "no" >&6; } | |
19614 | fi | |
19615 | ||
19616 | ac_ext=cpp | |
19617 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19621 | ||
19622 | ||
19623 | ||
19624 | ac_ext=cpp | |
19625 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19629 | ||
babf7fe8 JF |
19630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
19631 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19632 | |
19633 | cy_save=$CXXFLAGS | |
19634 | ||
babf7fe8 | 19635 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19636 | haveit= |
19637 | for x in $CXXFLAGS; do | |
19638 | ||
19639 | acl_save_prefix="$prefix" | |
19640 | prefix="$acl_final_prefix" | |
19641 | acl_save_exec_prefix="$exec_prefix" | |
19642 | exec_prefix="$acl_final_exec_prefix" | |
19643 | eval x=\"$x\" | |
19644 | exec_prefix="$acl_save_exec_prefix" | |
19645 | prefix="$acl_save_prefix" | |
19646 | ||
19647 | if test "X$x" = "X$element"; then | |
19648 | haveit=yes | |
19649 | break | |
19650 | fi | |
19651 | done | |
19652 | if test -z "$haveit"; then | |
19653 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19654 | fi | |
19655 | done | |
19656 | ||
19657 | ||
19658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19659 | /* end confdefs.h. */ | |
19660 | ||
19661 | _ACEOF | |
19662 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19663 | cy_good=1 | |
19664 | else | |
19665 | cy_good=0 | |
19666 | fi | |
19667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19668 | ||
19669 | CXXFLAGS=$cy_save | |
19670 | if test "x$cy_good" = x1; then : | |
19671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19672 | $as_echo "yes" >&6; } | |
19673 | ||
babf7fe8 | 19674 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19675 | haveit= |
19676 | for x in $CXXFLAGS; do | |
19677 | ||
19678 | acl_save_prefix="$prefix" | |
19679 | prefix="$acl_final_prefix" | |
19680 | acl_save_exec_prefix="$exec_prefix" | |
19681 | exec_prefix="$acl_final_exec_prefix" | |
19682 | eval x=\"$x\" | |
19683 | exec_prefix="$acl_save_exec_prefix" | |
19684 | prefix="$acl_save_prefix" | |
19685 | ||
19686 | if test "X$x" = "X$element"; then | |
19687 | haveit=yes | |
19688 | break | |
19689 | fi | |
19690 | done | |
19691 | if test -z "$haveit"; then | |
19692 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19693 | fi | |
19694 | done | |
19695 | ||
19696 | ||
19697 | else | |
19698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19699 | $as_echo "no" >&6; } | |
19700 | fi | |
19701 | ||
19702 | ac_ext=cpp | |
19703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19707 | ||
19708 | ||
19709 | ||
19710 | ac_ext=mm | |
19711 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19712 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19713 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19714 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19715 | ||
babf7fe8 JF |
19716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
19717 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
19718 | |
19719 | cy_save=$OBJCXXFLAGS | |
19720 | ||
babf7fe8 | 19721 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19722 | haveit= |
19723 | for x in $OBJCXXFLAGS; do | |
19724 | ||
19725 | acl_save_prefix="$prefix" | |
19726 | prefix="$acl_final_prefix" | |
19727 | acl_save_exec_prefix="$exec_prefix" | |
19728 | exec_prefix="$acl_final_exec_prefix" | |
19729 | eval x=\"$x\" | |
19730 | exec_prefix="$acl_save_exec_prefix" | |
19731 | prefix="$acl_save_prefix" | |
19732 | ||
19733 | if test "X$x" = "X$element"; then | |
19734 | haveit=yes | |
19735 | break | |
19736 | fi | |
19737 | done | |
19738 | if test -z "$haveit"; then | |
19739 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19740 | fi | |
19741 | done | |
19742 | ||
19743 | ||
19744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19745 | /* end confdefs.h. */ | |
19746 | ||
19747 | _ACEOF | |
19748 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19749 | cy_good=1 | |
19750 | else | |
19751 | cy_good=0 | |
19752 | fi | |
19753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19754 | ||
19755 | OBJCXXFLAGS=$cy_save | |
19756 | if test "x$cy_good" = x1; then : | |
19757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19758 | $as_echo "yes" >&6; } | |
19759 | ||
babf7fe8 | 19760 | for element in -Wno-dangling-else; do |
c10a2228 JF |
19761 | haveit= |
19762 | for x in $OBJCXXFLAGS; do | |
19763 | ||
19764 | acl_save_prefix="$prefix" | |
19765 | prefix="$acl_final_prefix" | |
19766 | acl_save_exec_prefix="$exec_prefix" | |
19767 | exec_prefix="$acl_final_exec_prefix" | |
19768 | eval x=\"$x\" | |
19769 | exec_prefix="$acl_save_exec_prefix" | |
19770 | prefix="$acl_save_prefix" | |
19771 | ||
19772 | if test "X$x" = "X$element"; then | |
19773 | haveit=yes | |
19774 | break | |
19775 | fi | |
19776 | done | |
19777 | if test -z "$haveit"; then | |
19778 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19779 | fi | |
19780 | done | |
19781 | ||
19782 | ||
19783 | else | |
19784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19785 | $as_echo "no" >&6; } | |
19786 | fi | |
19787 | ||
19788 | ac_ext=cpp | |
19789 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19790 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19791 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19792 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19793 | ||
19794 | ||
19795 | ||
19796 | ||
19797 | ||
2ada0541 JF |
19798 | ac_ext=c |
19799 | ac_cpp='$CPP $CPPFLAGS' | |
19800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19803 | ||
19804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5 | |
19805 | $as_echo_n "checking for cc -Wno-empty-body... " >&6; } | |
19806 | ||
19807 | cy_save=$CFLAGS | |
19808 | ||
19809 | for element in -Wno-empty-body; do | |
19810 | haveit= | |
19811 | for x in $CFLAGS; do | |
19812 | ||
19813 | acl_save_prefix="$prefix" | |
19814 | prefix="$acl_final_prefix" | |
19815 | acl_save_exec_prefix="$exec_prefix" | |
19816 | exec_prefix="$acl_final_exec_prefix" | |
19817 | eval x=\"$x\" | |
19818 | exec_prefix="$acl_save_exec_prefix" | |
19819 | prefix="$acl_save_prefix" | |
19820 | ||
19821 | if test "X$x" = "X$element"; then | |
19822 | haveit=yes | |
19823 | break | |
19824 | fi | |
19825 | done | |
19826 | if test -z "$haveit"; then | |
19827 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19828 | fi | |
19829 | done | |
19830 | ||
19831 | ||
19832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19833 | /* end confdefs.h. */ | |
19834 | ||
19835 | _ACEOF | |
19836 | if ac_fn_c_try_compile "$LINENO"; then : | |
19837 | cy_good=1 | |
19838 | else | |
19839 | cy_good=0 | |
19840 | fi | |
19841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19842 | ||
19843 | CFLAGS=$cy_save | |
19844 | if test "x$cy_good" = x1; then : | |
19845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19846 | $as_echo "yes" >&6; } | |
19847 | ||
19848 | for element in -Wno-empty-body; do | |
19849 | haveit= | |
19850 | for x in $CFLAGS; do | |
19851 | ||
19852 | acl_save_prefix="$prefix" | |
19853 | prefix="$acl_final_prefix" | |
19854 | acl_save_exec_prefix="$exec_prefix" | |
19855 | exec_prefix="$acl_final_exec_prefix" | |
19856 | eval x=\"$x\" | |
19857 | exec_prefix="$acl_save_exec_prefix" | |
19858 | prefix="$acl_save_prefix" | |
19859 | ||
19860 | if test "X$x" = "X$element"; then | |
19861 | haveit=yes | |
19862 | break | |
19863 | fi | |
19864 | done | |
19865 | if test -z "$haveit"; then | |
19866 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19867 | fi | |
19868 | done | |
19869 | ||
19870 | ||
19871 | else | |
19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19873 | $as_echo "no" >&6; } | |
19874 | fi | |
19875 | ||
19876 | ac_ext=cpp | |
19877 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19878 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19879 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19880 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19881 | ||
19882 | ||
19883 | ||
19884 | ac_ext=cpp | |
19885 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19886 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19887 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19888 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19889 | ||
19890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5 | |
19891 | $as_echo_n "checking for c++ -Wno-empty-body... " >&6; } | |
19892 | ||
19893 | cy_save=$CXXFLAGS | |
19894 | ||
19895 | for element in -Wno-empty-body; do | |
19896 | haveit= | |
19897 | for x in $CXXFLAGS; do | |
19898 | ||
19899 | acl_save_prefix="$prefix" | |
19900 | prefix="$acl_final_prefix" | |
19901 | acl_save_exec_prefix="$exec_prefix" | |
19902 | exec_prefix="$acl_final_exec_prefix" | |
19903 | eval x=\"$x\" | |
19904 | exec_prefix="$acl_save_exec_prefix" | |
19905 | prefix="$acl_save_prefix" | |
19906 | ||
19907 | if test "X$x" = "X$element"; then | |
19908 | haveit=yes | |
19909 | break | |
19910 | fi | |
19911 | done | |
19912 | if test -z "$haveit"; then | |
19913 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19914 | fi | |
19915 | done | |
19916 | ||
19917 | ||
19918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19919 | /* end confdefs.h. */ | |
19920 | ||
19921 | _ACEOF | |
19922 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19923 | cy_good=1 | |
19924 | else | |
19925 | cy_good=0 | |
19926 | fi | |
19927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19928 | ||
19929 | CXXFLAGS=$cy_save | |
19930 | if test "x$cy_good" = x1; then : | |
19931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19932 | $as_echo "yes" >&6; } | |
19933 | ||
19934 | for element in -Wno-empty-body; do | |
19935 | haveit= | |
19936 | for x in $CXXFLAGS; do | |
19937 | ||
19938 | acl_save_prefix="$prefix" | |
19939 | prefix="$acl_final_prefix" | |
19940 | acl_save_exec_prefix="$exec_prefix" | |
19941 | exec_prefix="$acl_final_exec_prefix" | |
19942 | eval x=\"$x\" | |
19943 | exec_prefix="$acl_save_exec_prefix" | |
19944 | prefix="$acl_save_prefix" | |
19945 | ||
19946 | if test "X$x" = "X$element"; then | |
19947 | haveit=yes | |
19948 | break | |
19949 | fi | |
19950 | done | |
19951 | if test -z "$haveit"; then | |
19952 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19953 | fi | |
19954 | done | |
19955 | ||
19956 | ||
19957 | else | |
19958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19959 | $as_echo "no" >&6; } | |
19960 | fi | |
19961 | ||
19962 | ac_ext=cpp | |
19963 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19964 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19965 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19966 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19967 | ||
19968 | ||
19969 | ||
19970 | ac_ext=mm | |
19971 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19972 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19973 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19974 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19975 | ||
19976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5 | |
19977 | $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; } | |
19978 | ||
19979 | cy_save=$OBJCXXFLAGS | |
19980 | ||
19981 | for element in -Wno-empty-body; do | |
19982 | haveit= | |
19983 | for x in $OBJCXXFLAGS; do | |
19984 | ||
19985 | acl_save_prefix="$prefix" | |
19986 | prefix="$acl_final_prefix" | |
19987 | acl_save_exec_prefix="$exec_prefix" | |
19988 | exec_prefix="$acl_final_exec_prefix" | |
19989 | eval x=\"$x\" | |
19990 | exec_prefix="$acl_save_exec_prefix" | |
19991 | prefix="$acl_save_prefix" | |
19992 | ||
19993 | if test "X$x" = "X$element"; then | |
19994 | haveit=yes | |
19995 | break | |
19996 | fi | |
19997 | done | |
19998 | if test -z "$haveit"; then | |
19999 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20000 | fi | |
20001 | done | |
20002 | ||
20003 | ||
20004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20005 | /* end confdefs.h. */ | |
20006 | ||
20007 | _ACEOF | |
20008 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20009 | cy_good=1 | |
20010 | else | |
20011 | cy_good=0 | |
20012 | fi | |
20013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20014 | ||
20015 | OBJCXXFLAGS=$cy_save | |
20016 | if test "x$cy_good" = x1; then : | |
20017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20018 | $as_echo "yes" >&6; } | |
20019 | ||
20020 | for element in -Wno-empty-body; do | |
20021 | haveit= | |
20022 | for x in $OBJCXXFLAGS; do | |
20023 | ||
20024 | acl_save_prefix="$prefix" | |
20025 | prefix="$acl_final_prefix" | |
20026 | acl_save_exec_prefix="$exec_prefix" | |
20027 | exec_prefix="$acl_final_exec_prefix" | |
20028 | eval x=\"$x\" | |
20029 | exec_prefix="$acl_save_exec_prefix" | |
20030 | prefix="$acl_save_prefix" | |
20031 | ||
20032 | if test "X$x" = "X$element"; then | |
20033 | haveit=yes | |
20034 | break | |
20035 | fi | |
20036 | done | |
20037 | if test -z "$haveit"; then | |
20038 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20039 | fi | |
20040 | done | |
20041 | ||
20042 | ||
20043 | else | |
20044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20045 | $as_echo "no" >&6; } | |
20046 | fi | |
20047 | ||
20048 | ac_ext=cpp | |
20049 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20050 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20051 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20052 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20053 | ||
20054 | ||
20055 | ||
20056 | ||
20057 | ||
c10a2228 JF |
20058 | ac_ext=c |
20059 | ac_cpp='$CPP $CPPFLAGS' | |
20060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20063 | ||
babf7fe8 JF |
20064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
20065 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
20066 | |
20067 | cy_save=$CFLAGS | |
20068 | ||
babf7fe8 | 20069 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 20070 | haveit= |
c10a2228 | 20071 | for x in $CFLAGS; do |
1504c9b8 DWT |
20072 | |
20073 | acl_save_prefix="$prefix" | |
20074 | prefix="$acl_final_prefix" | |
20075 | acl_save_exec_prefix="$exec_prefix" | |
20076 | exec_prefix="$acl_final_exec_prefix" | |
20077 | eval x=\"$x\" | |
20078 | exec_prefix="$acl_save_exec_prefix" | |
20079 | prefix="$acl_save_prefix" | |
20080 | ||
20081 | if test "X$x" = "X$element"; then | |
20082 | haveit=yes | |
20083 | break | |
20084 | fi | |
20085 | done | |
20086 | if test -z "$haveit"; then | |
c10a2228 | 20087 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20088 | fi |
20089 | done | |
20090 | ||
66170b30 JF |
20091 | |
20092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
20093 | /* end confdefs.h. */ |
20094 | ||
66170b30 | 20095 | _ACEOF |
c10a2228 | 20096 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
20097 | cy_good=1 |
20098 | else | |
20099 | cy_good=0 | |
20100 | fi | |
20101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20102 | ||
c10a2228 | 20103 | CFLAGS=$cy_save |
66170b30 JF |
20104 | if test "x$cy_good" = x1; then : |
20105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20106 | $as_echo "yes" >&6; } | |
20107 | ||
babf7fe8 | 20108 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
20109 | haveit= |
20110 | for x in $CFLAGS; do | |
20111 | ||
20112 | acl_save_prefix="$prefix" | |
20113 | prefix="$acl_final_prefix" | |
20114 | acl_save_exec_prefix="$exec_prefix" | |
20115 | exec_prefix="$acl_final_exec_prefix" | |
20116 | eval x=\"$x\" | |
20117 | exec_prefix="$acl_save_exec_prefix" | |
20118 | prefix="$acl_save_prefix" | |
20119 | ||
20120 | if test "X$x" = "X$element"; then | |
20121 | haveit=yes | |
20122 | break | |
20123 | fi | |
20124 | done | |
20125 | if test -z "$haveit"; then | |
20126 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20127 | fi | |
20128 | done | |
20129 | ||
20130 | ||
c10a2228 JF |
20131 | else |
20132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20133 | $as_echo "no" >&6; } | |
20134 | fi | |
20135 | ||
20136 | ac_ext=cpp | |
20137 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20141 | ||
20142 | ||
20143 | ||
20144 | ac_ext=cpp | |
20145 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20146 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20147 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20148 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20149 | ||
babf7fe8 JF |
20150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
20151 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
20152 | |
20153 | cy_save=$CXXFLAGS | |
20154 | ||
babf7fe8 | 20155 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
20156 | haveit= |
20157 | for x in $CXXFLAGS; do | |
20158 | ||
20159 | acl_save_prefix="$prefix" | |
20160 | prefix="$acl_final_prefix" | |
20161 | acl_save_exec_prefix="$exec_prefix" | |
20162 | exec_prefix="$acl_final_exec_prefix" | |
20163 | eval x=\"$x\" | |
20164 | exec_prefix="$acl_save_exec_prefix" | |
20165 | prefix="$acl_save_prefix" | |
20166 | ||
20167 | if test "X$x" = "X$element"; then | |
20168 | haveit=yes | |
20169 | break | |
20170 | fi | |
20171 | done | |
20172 | if test -z "$haveit"; then | |
20173 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20174 | fi | |
20175 | done | |
20176 | ||
20177 | ||
c10a2228 JF |
20178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20179 | /* end confdefs.h. */ | |
20180 | ||
20181 | _ACEOF | |
20182 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20183 | cy_good=1 | |
20184 | else | |
20185 | cy_good=0 | |
20186 | fi | |
20187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20188 | ||
20189 | CXXFLAGS=$cy_save | |
20190 | if test "x$cy_good" = x1; then : | |
20191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20192 | $as_echo "yes" >&6; } | |
20193 | ||
babf7fe8 | 20194 | for element in -Wno-overloaded-virtual; do |
66170b30 | 20195 | haveit= |
c10a2228 | 20196 | for x in $CXXFLAGS; do |
66170b30 JF |
20197 | |
20198 | acl_save_prefix="$prefix" | |
20199 | prefix="$acl_final_prefix" | |
20200 | acl_save_exec_prefix="$exec_prefix" | |
20201 | exec_prefix="$acl_final_exec_prefix" | |
20202 | eval x=\"$x\" | |
20203 | exec_prefix="$acl_save_exec_prefix" | |
20204 | prefix="$acl_save_prefix" | |
20205 | ||
20206 | if test "X$x" = "X$element"; then | |
20207 | haveit=yes | |
20208 | break | |
20209 | fi | |
20210 | done | |
20211 | if test -z "$haveit"; then | |
c10a2228 | 20212 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
20213 | fi |
20214 | done | |
20215 | ||
20216 | ||
66170b30 JF |
20217 | else |
20218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20219 | $as_echo "no" >&6; } | |
20220 | fi | |
20221 | ||
c10a2228 JF |
20222 | ac_ext=cpp |
20223 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20224 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20225 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20226 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20227 | ||
66170b30 JF |
20228 | |
20229 | ||
c10a2228 JF |
20230 | ac_ext=mm |
20231 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20232 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20233 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20234 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20235 | ||
babf7fe8 JF |
20236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
20237 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 20238 | |
c10a2228 | 20239 | cy_save=$OBJCXXFLAGS |
66170b30 | 20240 | |
babf7fe8 | 20241 | for element in -Wno-overloaded-virtual; do |
66170b30 | 20242 | haveit= |
c10a2228 | 20243 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
20244 | |
20245 | acl_save_prefix="$prefix" | |
20246 | prefix="$acl_final_prefix" | |
20247 | acl_save_exec_prefix="$exec_prefix" | |
20248 | exec_prefix="$acl_final_exec_prefix" | |
20249 | eval x=\"$x\" | |
20250 | exec_prefix="$acl_save_exec_prefix" | |
20251 | prefix="$acl_save_prefix" | |
20252 | ||
20253 | if test "X$x" = "X$element"; then | |
20254 | haveit=yes | |
20255 | break | |
20256 | fi | |
20257 | done | |
20258 | if test -z "$haveit"; then | |
c10a2228 | 20259 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
20260 | fi |
20261 | done | |
20262 | ||
20263 | ||
20264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20265 | /* end confdefs.h. */ | |
1504c9b8 | 20266 | |
1504c9b8 | 20267 | _ACEOF |
c10a2228 | 20268 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
20269 | cy_good=1 |
20270 | else | |
20271 | cy_good=0 | |
20272 | fi | |
20273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20274 | ||
c10a2228 | 20275 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
20276 | if test "x$cy_good" = x1; then : |
20277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20278 | $as_echo "yes" >&6; } | |
1504c9b8 | 20279 | |
babf7fe8 | 20280 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 20281 | haveit= |
c10a2228 | 20282 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20283 | |
20284 | acl_save_prefix="$prefix" | |
20285 | prefix="$acl_final_prefix" | |
20286 | acl_save_exec_prefix="$exec_prefix" | |
20287 | exec_prefix="$acl_final_exec_prefix" | |
20288 | eval x=\"$x\" | |
20289 | exec_prefix="$acl_save_exec_prefix" | |
20290 | prefix="$acl_save_prefix" | |
20291 | ||
20292 | if test "X$x" = "X$element"; then | |
20293 | haveit=yes | |
20294 | break | |
20295 | fi | |
20296 | done | |
20297 | if test -z "$haveit"; then | |
c10a2228 | 20298 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20299 | fi |
20300 | done | |
20301 | ||
20302 | ||
c10a2228 JF |
20303 | else |
20304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20305 | $as_echo "no" >&6; } | |
20306 | fi | |
20307 | ||
20308 | ac_ext=cpp | |
20309 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20313 | ||
20314 | ||
20315 | ||
20316 | ||
20317 | ||
20318 | ac_ext=c | |
20319 | ac_cpp='$CPP $CPPFLAGS' | |
20320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20323 | ||
babf7fe8 JF |
20324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
20325 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
20326 | |
20327 | cy_save=$CFLAGS | |
20328 | ||
babf7fe8 | 20329 | for element in -Wno-parentheses; do |
66170b30 | 20330 | haveit= |
c10a2228 | 20331 | for x in $CFLAGS; do |
66170b30 JF |
20332 | |
20333 | acl_save_prefix="$prefix" | |
20334 | prefix="$acl_final_prefix" | |
20335 | acl_save_exec_prefix="$exec_prefix" | |
20336 | exec_prefix="$acl_final_exec_prefix" | |
20337 | eval x=\"$x\" | |
20338 | exec_prefix="$acl_save_exec_prefix" | |
20339 | prefix="$acl_save_prefix" | |
20340 | ||
20341 | if test "X$x" = "X$element"; then | |
20342 | haveit=yes | |
20343 | break | |
20344 | fi | |
20345 | done | |
20346 | if test -z "$haveit"; then | |
c10a2228 | 20347 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
20348 | fi |
20349 | done | |
20350 | ||
20351 | ||
c10a2228 JF |
20352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20353 | /* end confdefs.h. */ | |
20354 | ||
20355 | _ACEOF | |
20356 | if ac_fn_c_try_compile "$LINENO"; then : | |
20357 | cy_good=1 | |
20358 | else | |
20359 | cy_good=0 | |
20360 | fi | |
20361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20362 | ||
20363 | CFLAGS=$cy_save | |
20364 | if test "x$cy_good" = x1; then : | |
20365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20366 | $as_echo "yes" >&6; } | |
20367 | ||
babf7fe8 | 20368 | for element in -Wno-parentheses; do |
66170b30 | 20369 | haveit= |
c10a2228 | 20370 | for x in $CFLAGS; do |
66170b30 JF |
20371 | |
20372 | acl_save_prefix="$prefix" | |
20373 | prefix="$acl_final_prefix" | |
20374 | acl_save_exec_prefix="$exec_prefix" | |
20375 | exec_prefix="$acl_final_exec_prefix" | |
20376 | eval x=\"$x\" | |
20377 | exec_prefix="$acl_save_exec_prefix" | |
20378 | prefix="$acl_save_prefix" | |
20379 | ||
20380 | if test "X$x" = "X$element"; then | |
20381 | haveit=yes | |
20382 | break | |
20383 | fi | |
20384 | done | |
20385 | if test -z "$haveit"; then | |
c10a2228 | 20386 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
20387 | fi |
20388 | done | |
20389 | ||
20390 | ||
66170b30 JF |
20391 | else |
20392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20393 | $as_echo "no" >&6; } | |
20394 | fi | |
20395 | ||
c10a2228 JF |
20396 | ac_ext=cpp |
20397 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20398 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20399 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20400 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20401 | ||
66170b30 JF |
20402 | |
20403 | ||
c10a2228 JF |
20404 | ac_ext=cpp |
20405 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20406 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20407 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20408 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20409 | ||
babf7fe8 JF |
20410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
20411 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
20412 | |
20413 | cy_save=$CXXFLAGS | |
20414 | ||
babf7fe8 | 20415 | for element in -Wno-parentheses; do |
66170b30 JF |
20416 | haveit= |
20417 | for x in $CXXFLAGS; do | |
20418 | ||
20419 | acl_save_prefix="$prefix" | |
20420 | prefix="$acl_final_prefix" | |
20421 | acl_save_exec_prefix="$exec_prefix" | |
20422 | exec_prefix="$acl_final_exec_prefix" | |
20423 | eval x=\"$x\" | |
20424 | exec_prefix="$acl_save_exec_prefix" | |
20425 | prefix="$acl_save_prefix" | |
20426 | ||
20427 | if test "X$x" = "X$element"; then | |
20428 | haveit=yes | |
20429 | break | |
20430 | fi | |
20431 | done | |
20432 | if test -z "$haveit"; then | |
20433 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20434 | fi | |
20435 | done | |
20436 | ||
20437 | ||
20438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20439 | /* end confdefs.h. */ | |
20440 | ||
20441 | _ACEOF | |
20442 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20443 | cy_good=1 | |
20444 | else | |
20445 | cy_good=0 | |
20446 | fi | |
20447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20448 | ||
20449 | CXXFLAGS=$cy_save | |
20450 | if test "x$cy_good" = x1; then : | |
20451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20452 | $as_echo "yes" >&6; } | |
20453 | ||
babf7fe8 | 20454 | for element in -Wno-parentheses; do |
1504c9b8 | 20455 | haveit= |
c10a2228 | 20456 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
20457 | |
20458 | acl_save_prefix="$prefix" | |
20459 | prefix="$acl_final_prefix" | |
20460 | acl_save_exec_prefix="$exec_prefix" | |
20461 | exec_prefix="$acl_final_exec_prefix" | |
20462 | eval x=\"$x\" | |
20463 | exec_prefix="$acl_save_exec_prefix" | |
20464 | prefix="$acl_save_prefix" | |
20465 | ||
20466 | if test "X$x" = "X$element"; then | |
20467 | haveit=yes | |
20468 | break | |
20469 | fi | |
20470 | done | |
20471 | if test -z "$haveit"; then | |
c10a2228 | 20472 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
20473 | fi |
20474 | done | |
20475 | ||
20476 | ||
c10a2228 JF |
20477 | else |
20478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20479 | $as_echo "no" >&6; } | |
20480 | fi | |
20481 | ||
20482 | ac_ext=cpp | |
20483 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20484 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20485 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20486 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20487 | ||
20488 | ||
20489 | ||
20490 | ac_ext=mm | |
20491 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20492 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20493 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20494 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20495 | ||
babf7fe8 JF |
20496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
20497 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
20498 | |
20499 | cy_save=$OBJCXXFLAGS | |
20500 | ||
babf7fe8 | 20501 | for element in -Wno-parentheses; do |
1504c9b8 | 20502 | haveit= |
c10a2228 | 20503 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20504 | |
20505 | acl_save_prefix="$prefix" | |
20506 | prefix="$acl_final_prefix" | |
20507 | acl_save_exec_prefix="$exec_prefix" | |
20508 | exec_prefix="$acl_final_exec_prefix" | |
20509 | eval x=\"$x\" | |
20510 | exec_prefix="$acl_save_exec_prefix" | |
20511 | prefix="$acl_save_prefix" | |
20512 | ||
20513 | if test "X$x" = "X$element"; then | |
20514 | haveit=yes | |
20515 | break | |
20516 | fi | |
20517 | done | |
20518 | if test -z "$haveit"; then | |
c10a2228 | 20519 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20520 | fi |
20521 | done | |
20522 | ||
20523 | ||
c10a2228 JF |
20524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20525 | /* end confdefs.h. */ | |
20526 | ||
20527 | _ACEOF | |
20528 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20529 | cy_good=1 | |
20530 | else | |
20531 | cy_good=0 | |
20532 | fi | |
20533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20534 | ||
20535 | OBJCXXFLAGS=$cy_save | |
20536 | if test "x$cy_good" = x1; then : | |
20537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20538 | $as_echo "yes" >&6; } | |
20539 | ||
babf7fe8 | 20540 | for element in -Wno-parentheses; do |
1504c9b8 | 20541 | haveit= |
c10a2228 | 20542 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
20543 | |
20544 | acl_save_prefix="$prefix" | |
20545 | prefix="$acl_final_prefix" | |
20546 | acl_save_exec_prefix="$exec_prefix" | |
2ada0541 JF |
20547 | exec_prefix="$acl_final_exec_prefix" |
20548 | eval x=\"$x\" | |
20549 | exec_prefix="$acl_save_exec_prefix" | |
20550 | prefix="$acl_save_prefix" | |
20551 | ||
20552 | if test "X$x" = "X$element"; then | |
20553 | haveit=yes | |
20554 | break | |
20555 | fi | |
20556 | done | |
20557 | if test -z "$haveit"; then | |
20558 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20559 | fi | |
20560 | done | |
20561 | ||
20562 | ||
20563 | else | |
20564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20565 | $as_echo "no" >&6; } | |
20566 | fi | |
20567 | ||
20568 | ac_ext=cpp | |
20569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20573 | ||
20574 | ||
20575 | ||
20576 | ||
20577 | ||
20578 | ac_ext=c | |
20579 | ac_cpp='$CPP $CPPFLAGS' | |
20580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20583 | ||
20584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5 | |
20585 | $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; } | |
20586 | ||
20587 | cy_save=$CFLAGS | |
20588 | ||
20589 | for element in -Wno-tautological-undefined-compare; do | |
20590 | haveit= | |
20591 | for x in $CFLAGS; do | |
20592 | ||
20593 | acl_save_prefix="$prefix" | |
20594 | prefix="$acl_final_prefix" | |
20595 | acl_save_exec_prefix="$exec_prefix" | |
20596 | exec_prefix="$acl_final_exec_prefix" | |
20597 | eval x=\"$x\" | |
20598 | exec_prefix="$acl_save_exec_prefix" | |
20599 | prefix="$acl_save_prefix" | |
20600 | ||
20601 | if test "X$x" = "X$element"; then | |
20602 | haveit=yes | |
20603 | break | |
20604 | fi | |
20605 | done | |
20606 | if test -z "$haveit"; then | |
20607 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20608 | fi | |
20609 | done | |
20610 | ||
20611 | ||
20612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20613 | /* end confdefs.h. */ | |
20614 | ||
20615 | _ACEOF | |
20616 | if ac_fn_c_try_compile "$LINENO"; then : | |
20617 | cy_good=1 | |
20618 | else | |
20619 | cy_good=0 | |
20620 | fi | |
20621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20622 | ||
20623 | CFLAGS=$cy_save | |
20624 | if test "x$cy_good" = x1; then : | |
20625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20626 | $as_echo "yes" >&6; } | |
20627 | ||
20628 | for element in -Wno-tautological-undefined-compare; do | |
20629 | haveit= | |
20630 | for x in $CFLAGS; do | |
20631 | ||
20632 | acl_save_prefix="$prefix" | |
20633 | prefix="$acl_final_prefix" | |
20634 | acl_save_exec_prefix="$exec_prefix" | |
20635 | exec_prefix="$acl_final_exec_prefix" | |
20636 | eval x=\"$x\" | |
20637 | exec_prefix="$acl_save_exec_prefix" | |
20638 | prefix="$acl_save_prefix" | |
20639 | ||
20640 | if test "X$x" = "X$element"; then | |
20641 | haveit=yes | |
20642 | break | |
20643 | fi | |
20644 | done | |
20645 | if test -z "$haveit"; then | |
20646 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
20647 | fi | |
20648 | done | |
20649 | ||
20650 | ||
20651 | else | |
20652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20653 | $as_echo "no" >&6; } | |
20654 | fi | |
20655 | ||
20656 | ac_ext=cpp | |
20657 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20658 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20659 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20660 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20661 | ||
20662 | ||
20663 | ||
20664 | ac_ext=cpp | |
20665 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20666 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20667 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20668 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20669 | ||
20670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5 | |
20671 | $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; } | |
20672 | ||
20673 | cy_save=$CXXFLAGS | |
20674 | ||
20675 | for element in -Wno-tautological-undefined-compare; do | |
20676 | haveit= | |
20677 | for x in $CXXFLAGS; do | |
20678 | ||
20679 | acl_save_prefix="$prefix" | |
20680 | prefix="$acl_final_prefix" | |
20681 | acl_save_exec_prefix="$exec_prefix" | |
20682 | exec_prefix="$acl_final_exec_prefix" | |
20683 | eval x=\"$x\" | |
20684 | exec_prefix="$acl_save_exec_prefix" | |
20685 | prefix="$acl_save_prefix" | |
20686 | ||
20687 | if test "X$x" = "X$element"; then | |
20688 | haveit=yes | |
20689 | break | |
20690 | fi | |
20691 | done | |
20692 | if test -z "$haveit"; then | |
20693 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20694 | fi | |
20695 | done | |
20696 | ||
20697 | ||
20698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20699 | /* end confdefs.h. */ | |
20700 | ||
20701 | _ACEOF | |
20702 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
20703 | cy_good=1 | |
20704 | else | |
20705 | cy_good=0 | |
20706 | fi | |
20707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20708 | ||
20709 | CXXFLAGS=$cy_save | |
20710 | if test "x$cy_good" = x1; then : | |
20711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20712 | $as_echo "yes" >&6; } | |
20713 | ||
20714 | for element in -Wno-tautological-undefined-compare; do | |
20715 | haveit= | |
20716 | for x in $CXXFLAGS; do | |
20717 | ||
20718 | acl_save_prefix="$prefix" | |
20719 | prefix="$acl_final_prefix" | |
20720 | acl_save_exec_prefix="$exec_prefix" | |
20721 | exec_prefix="$acl_final_exec_prefix" | |
20722 | eval x=\"$x\" | |
20723 | exec_prefix="$acl_save_exec_prefix" | |
20724 | prefix="$acl_save_prefix" | |
20725 | ||
20726 | if test "X$x" = "X$element"; then | |
20727 | haveit=yes | |
20728 | break | |
20729 | fi | |
20730 | done | |
20731 | if test -z "$haveit"; then | |
20732 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20733 | fi | |
20734 | done | |
20735 | ||
20736 | ||
20737 | else | |
20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20739 | $as_echo "no" >&6; } | |
20740 | fi | |
20741 | ||
20742 | ac_ext=cpp | |
20743 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20747 | ||
20748 | ||
20749 | ||
20750 | ac_ext=mm | |
20751 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20752 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20753 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20754 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20755 | ||
20756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5 | |
20757 | $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; } | |
20758 | ||
20759 | cy_save=$OBJCXXFLAGS | |
20760 | ||
20761 | for element in -Wno-tautological-undefined-compare; do | |
20762 | haveit= | |
20763 | for x in $OBJCXXFLAGS; do | |
20764 | ||
20765 | acl_save_prefix="$prefix" | |
20766 | prefix="$acl_final_prefix" | |
20767 | acl_save_exec_prefix="$exec_prefix" | |
20768 | exec_prefix="$acl_final_exec_prefix" | |
20769 | eval x=\"$x\" | |
20770 | exec_prefix="$acl_save_exec_prefix" | |
20771 | prefix="$acl_save_prefix" | |
20772 | ||
20773 | if test "X$x" = "X$element"; then | |
20774 | haveit=yes | |
20775 | break | |
20776 | fi | |
20777 | done | |
20778 | if test -z "$haveit"; then | |
20779 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20780 | fi | |
20781 | done | |
20782 | ||
20783 | ||
20784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20785 | /* end confdefs.h. */ | |
20786 | ||
20787 | _ACEOF | |
20788 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20789 | cy_good=1 | |
20790 | else | |
20791 | cy_good=0 | |
20792 | fi | |
20793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20794 | ||
20795 | OBJCXXFLAGS=$cy_save | |
20796 | if test "x$cy_good" = x1; then : | |
20797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20798 | $as_echo "yes" >&6; } | |
20799 | ||
20800 | for element in -Wno-tautological-undefined-compare; do | |
20801 | haveit= | |
20802 | for x in $OBJCXXFLAGS; do | |
20803 | ||
20804 | acl_save_prefix="$prefix" | |
20805 | prefix="$acl_final_prefix" | |
20806 | acl_save_exec_prefix="$exec_prefix" | |
1504c9b8 DWT |
20807 | exec_prefix="$acl_final_exec_prefix" |
20808 | eval x=\"$x\" | |
20809 | exec_prefix="$acl_save_exec_prefix" | |
20810 | prefix="$acl_save_prefix" | |
20811 | ||
20812 | if test "X$x" = "X$element"; then | |
20813 | haveit=yes | |
20814 | break | |
20815 | fi | |
20816 | done | |
20817 | if test -z "$haveit"; then | |
c10a2228 | 20818 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
20819 | fi |
20820 | done | |
20821 | ||
20822 | ||
66170b30 JF |
20823 | else |
20824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20825 | $as_echo "no" >&6; } | |
1504c9b8 | 20826 | fi |
1504c9b8 | 20827 | |
c10a2228 JF |
20828 | ac_ext=cpp |
20829 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20833 | ||
20834 | ||
1504c9b8 | 20835 | |
1504c9b8 | 20836 | |
1504c9b8 | 20837 | |
babf7fe8 JF |
20838 | ac_ext=c |
20839 | ac_cpp='$CPP $CPPFLAGS' | |
20840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 20843 | |
babf7fe8 JF |
20844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
20845 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
20846 | ||
20847 | cy_save=$CFLAGS | |
20848 | ||
20849 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 20850 | haveit= |
babf7fe8 | 20851 | for x in $CFLAGS; do |
1504c9b8 DWT |
20852 | |
20853 | acl_save_prefix="$prefix" | |
20854 | prefix="$acl_final_prefix" | |
20855 | acl_save_exec_prefix="$exec_prefix" | |
20856 | exec_prefix="$acl_final_exec_prefix" | |
20857 | eval x=\"$x\" | |
20858 | exec_prefix="$acl_save_exec_prefix" | |
20859 | prefix="$acl_save_prefix" | |
20860 | ||
20861 | if test "X$x" = "X$element"; then | |
20862 | haveit=yes | |
20863 | break | |
20864 | fi | |
20865 | done | |
20866 | if test -z "$haveit"; then | |
babf7fe8 | 20867 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20868 | fi |
20869 | done | |
20870 | ||
66170b30 JF |
20871 | |
20872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
20873 | /* end confdefs.h. */ |
20874 | ||
a243b558 | 20875 | _ACEOF |
babf7fe8 | 20876 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
20877 | cy_good=1 |
20878 | else | |
20879 | cy_good=0 | |
20880 | fi | |
babf7fe8 | 20881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 20882 | |
babf7fe8 | 20883 | CFLAGS=$cy_save |
a243b558 JF |
20884 | if test "x$cy_good" = x1; then : |
20885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20886 | $as_echo "yes" >&6; } | |
66170b30 | 20887 | |
babf7fe8 | 20888 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 20889 | haveit= |
babf7fe8 | 20890 | for x in $CFLAGS; do |
1504c9b8 DWT |
20891 | |
20892 | acl_save_prefix="$prefix" | |
20893 | prefix="$acl_final_prefix" | |
20894 | acl_save_exec_prefix="$exec_prefix" | |
20895 | exec_prefix="$acl_final_exec_prefix" | |
20896 | eval x=\"$x\" | |
20897 | exec_prefix="$acl_save_exec_prefix" | |
20898 | prefix="$acl_save_prefix" | |
20899 | ||
20900 | if test "X$x" = "X$element"; then | |
20901 | haveit=yes | |
20902 | break | |
20903 | fi | |
20904 | done | |
20905 | if test -z "$haveit"; then | |
babf7fe8 | 20906 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
20907 | fi |
20908 | done | |
20909 | ||
20910 | ||
20911 | else | |
66170b30 JF |
20912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20913 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
20914 | fi |
20915 | ||
babf7fe8 JF |
20916 | ac_ext=cpp |
20917 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20918 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20919 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20920 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 20921 | |
9c60689e | 20922 | |
632b71ea | 20923 | |
babf7fe8 JF |
20924 | ac_ext=cpp |
20925 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 20929 | |
babf7fe8 JF |
20930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
20931 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 20932 | |
babf7fe8 | 20933 | cy_save=$CXXFLAGS |
9c60689e | 20934 | |
babf7fe8 JF |
20935 | for element in -Wno-unneeded-internal-declaration; do |
20936 | haveit= | |
20937 | for x in $CXXFLAGS; do | |
9c60689e | 20938 | |
babf7fe8 JF |
20939 | acl_save_prefix="$prefix" |
20940 | prefix="$acl_final_prefix" | |
20941 | acl_save_exec_prefix="$exec_prefix" | |
20942 | exec_prefix="$acl_final_exec_prefix" | |
20943 | eval x=\"$x\" | |
20944 | exec_prefix="$acl_save_exec_prefix" | |
20945 | prefix="$acl_save_prefix" | |
66170b30 | 20946 | |
babf7fe8 JF |
20947 | if test "X$x" = "X$element"; then |
20948 | haveit=yes | |
20949 | break | |
20950 | fi | |
20951 | done | |
20952 | if test -z "$haveit"; then | |
20953 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
20954 | fi | |
20955 | done | |
7eda51e0 | 20956 | |
7eda51e0 | 20957 | |
babf7fe8 JF |
20958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20959 | /* end confdefs.h. */ | |
7eda51e0 | 20960 | |
7eda51e0 | 20961 | _ACEOF |
babf7fe8 JF |
20962 | if ac_fn_cxx_try_compile "$LINENO"; then : |
20963 | cy_good=1 | |
9c60689e | 20964 | else |
babf7fe8 | 20965 | cy_good=0 |
9c60689e | 20966 | fi |
babf7fe8 | 20967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 20968 | |
babf7fe8 JF |
20969 | CXXFLAGS=$cy_save |
20970 | if test "x$cy_good" = x1; then : | |
20971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20972 | $as_echo "yes" >&6; } | |
7eda51e0 | 20973 | |
babf7fe8 | 20974 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 20975 | haveit= |
babf7fe8 | 20976 | for x in $CXXFLAGS; do |
9c60689e | 20977 | |
7eda51e0 JF |
20978 | acl_save_prefix="$prefix" |
20979 | prefix="$acl_final_prefix" | |
20980 | acl_save_exec_prefix="$exec_prefix" | |
20981 | exec_prefix="$acl_final_exec_prefix" | |
20982 | eval x=\"$x\" | |
20983 | exec_prefix="$acl_save_exec_prefix" | |
20984 | prefix="$acl_save_prefix" | |
9c60689e | 20985 | |
7eda51e0 JF |
20986 | if test "X$x" = "X$element"; then |
20987 | haveit=yes | |
20988 | break | |
20989 | fi | |
20990 | done | |
20991 | if test -z "$haveit"; then | |
babf7fe8 | 20992 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
20993 | fi |
20994 | done | |
9c60689e | 20995 | |
9c60689e | 20996 | |
5053a6d1 | 20997 | else |
babf7fe8 JF |
20998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
20999 | $as_echo "no" >&6; } | |
632b71ea DWT |
21000 | fi |
21001 | ||
babf7fe8 JF |
21002 | ac_ext=cpp |
21003 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
21007 | |
21008 | ||
5053a6d1 | 21009 | |
babf7fe8 JF |
21010 | ac_ext=mm |
21011 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
21012 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21013 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21014 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 21015 | |
babf7fe8 JF |
21016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
21017 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 21018 | |
babf7fe8 | 21019 | cy_save=$OBJCXXFLAGS |
632b71ea | 21020 | |
babf7fe8 | 21021 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 21022 | haveit= |
babf7fe8 | 21023 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
21024 | |
21025 | acl_save_prefix="$prefix" | |
21026 | prefix="$acl_final_prefix" | |
21027 | acl_save_exec_prefix="$exec_prefix" | |
21028 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 21029 | eval x=\"$x\" |
632b71ea DWT |
21030 | exec_prefix="$acl_save_exec_prefix" |
21031 | prefix="$acl_save_prefix" | |
21032 | ||
5053a6d1 DWT |
21033 | if test "X$x" = "X$element"; then |
21034 | haveit=yes | |
21035 | break | |
21036 | fi | |
21037 | done | |
21038 | if test -z "$haveit"; then | |
babf7fe8 | 21039 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
21040 | fi |
21041 | done | |
21042 | ||
66170b30 | 21043 | |
babf7fe8 JF |
21044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21045 | /* end confdefs.h. */ | |
21046 | ||
21047 | _ACEOF | |
21048 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
21049 | cy_good=1 | |
21050 | else | |
21051 | cy_good=0 | |
21052 | fi | |
21053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21054 | ||
21055 | OBJCXXFLAGS=$cy_save | |
21056 | if test "x$cy_good" = x1; then : | |
21057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21058 | $as_echo "yes" >&6; } | |
21059 | ||
21060 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 21061 | haveit= |
babf7fe8 | 21062 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
21063 | |
21064 | acl_save_prefix="$prefix" | |
21065 | prefix="$acl_final_prefix" | |
21066 | acl_save_exec_prefix="$exec_prefix" | |
21067 | exec_prefix="$acl_final_exec_prefix" | |
21068 | eval x=\"$x\" | |
21069 | exec_prefix="$acl_save_exec_prefix" | |
21070 | prefix="$acl_save_prefix" | |
21071 | ||
21072 | if test "X$x" = "X$element"; then | |
21073 | haveit=yes | |
21074 | break | |
21075 | fi | |
21076 | done | |
21077 | if test -z "$haveit"; then | |
babf7fe8 | 21078 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
21079 | fi |
21080 | done | |
66170b30 JF |
21081 | |
21082 | ||
babf7fe8 JF |
21083 | else |
21084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21085 | $as_echo "no" >&6; } | |
5053a6d1 | 21086 | fi |
7eda51e0 | 21087 | |
babf7fe8 JF |
21088 | ac_ext=cpp |
21089 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 21093 | |
5053a6d1 DWT |
21094 | |
21095 | ||
5053a6d1 | 21096 | |
babf7fe8 JF |
21097 | |
21098 | ||
2ca4dab3 | 21099 | |
be2fde87 JF |
21100 | ac_ext=c |
21101 | ac_cpp='$CPP $CPPFLAGS' | |
21102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21105 | ||
21106 | ax_pthread_ok=no | |
21107 | ||
21108 | # We used to check for pthread.h first, but this fails if pthread.h | |
2ca4dab3 | 21109 | # requires special compiler flags (e.g. on Tru64 or Sequent). |
be2fde87 JF |
21110 | # It gets checked for in the link test anyway. |
21111 | ||
21112 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
21113 | # etcetera environment variables, and if threads linking works using | |
21114 | # them: | |
21115 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
21116 | save_CFLAGS="$CFLAGS" | |
21117 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21118 | save_LIBS="$LIBS" | |
21119 | LIBS="$PTHREAD_LIBS $LIBS" | |
2ca4dab3 JF |
21120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
21121 | $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
be2fde87 JF |
21122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21123 | /* end confdefs.h. */ | |
21124 | ||
21125 | /* Override any GCC internal prototype to avoid an error. | |
21126 | Use char because int might match the return type of a GCC | |
21127 | builtin and then its argument prototype would still apply. */ | |
21128 | #ifdef __cplusplus | |
21129 | extern "C" | |
21130 | #endif | |
21131 | char pthread_join (); | |
21132 | int | |
21133 | main () | |
21134 | { | |
21135 | return pthread_join (); | |
21136 | ; | |
21137 | return 0; | |
21138 | } | |
21139 | _ACEOF | |
21140 | if ac_fn_c_try_link "$LINENO"; then : | |
21141 | ax_pthread_ok=yes | |
21142 | fi | |
21143 | rm -f core conftest.err conftest.$ac_objext \ | |
21144 | conftest$ac_exeext conftest.$ac_ext | |
21145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
21146 | $as_echo "$ax_pthread_ok" >&6; } | |
21147 | if test x"$ax_pthread_ok" = xno; then | |
21148 | PTHREAD_LIBS="" | |
21149 | PTHREAD_CFLAGS="" | |
21150 | fi | |
21151 | LIBS="$save_LIBS" | |
21152 | CFLAGS="$save_CFLAGS" | |
21153 | fi | |
21154 | ||
21155 | # We must check for the threads library under a number of different | |
21156 | # names; the ordering is very important because some systems | |
21157 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
21158 | # libraries is broken (non-POSIX). | |
21159 | ||
21160 | # Create a list of thread flags to try. Items starting with a "-" are | |
21161 | # C compiler flags, and other items are library names, except for "none" | |
21162 | # which indicates that we try without any flags at all, and "pthread-config" | |
21163 | # which is a program returning the flags for the Pth emulation library. | |
21164 | ||
2ca4dab3 | 21165 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" |
be2fde87 JF |
21166 | |
21167 | # The ordering *is* (sometimes) important. Some notes on the | |
21168 | # individual items follow: | |
21169 | ||
21170 | # pthreads: AIX (must check this before -lpthread) | |
21171 | # none: in case threads are in libc; should be tried before -Kthread and | |
21172 | # other compiler flags to prevent continual compiler warnings | |
21173 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
21174 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
21175 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
2ca4dab3 | 21176 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
be2fde87 | 21177 | # -pthreads: Solaris/gcc |
be2fde87 | 21178 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
2ca4dab3 JF |
21179 | # doesn't hurt to check since this sometimes defines pthreads and |
21180 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
21181 | # is present but should not be used directly) | |
21182 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
be2fde87 JF |
21183 | # pthread: Linux, etcetera |
21184 | # --thread-safe: KAI C++ | |
21185 | # pthread-config: use pthread-config program (for GNU Pth library) | |
21186 | ||
2ca4dab3 JF |
21187 | case $host_os in |
21188 | ||
21189 | hpux*) | |
21190 | ||
21191 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable | |
21192 | # multi-threading and also sets -lpthread." | |
21193 | ||
21194 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" | |
21195 | ;; | |
21196 | ||
21197 | openedition*) | |
21198 | ||
21199 | # IBM z/OS requires a feature-test macro to be defined in order to | |
21200 | # enable POSIX threads at all, so give the user a hint if this is | |
21201 | # not set. (We don't define these ourselves, as they can affect | |
21202 | # other portions of the system API in unpredictable ways.) | |
21203 | ||
21204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21205 | /* end confdefs.h. */ | |
21206 | ||
21207 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
21208 | AX_PTHREAD_ZOS_MISSING | |
21209 | # endif | |
21210 | ||
21211 | _ACEOF | |
21212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21213 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : | |
21214 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
21215 | $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
21216 | fi | |
21217 | rm -f conftest* | |
21218 | ||
21219 | ;; | |
21220 | ||
be2fde87 JF |
21221 | solaris*) |
21222 | ||
2ca4dab3 JF |
21223 | # Newer versions of Solaris require the "-mt -lpthread" pair, and we |
21224 | # check that first. On some older versions, libc contains stubbed | |
be2fde87 JF |
21225 | # (non-functional) versions of the pthreads routines, so link-based |
21226 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
21227 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
21228 | # a function called by this macro, so we could check for that, but | |
2ca4dab3 JF |
21229 | # who knows whether they'll stub that too in a future libc.) So |
21230 | # we'll look for -pthreads and -lpthread shortly thereafter. | |
be2fde87 | 21231 | |
2ca4dab3 | 21232 | ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags" |
be2fde87 JF |
21233 | ;; |
21234 | esac | |
21235 | ||
2ca4dab3 JF |
21236 | # Older versions of Clang only give a warning instead of an error for an |
21237 | # unrecognized option, unless we specify -Werror. (We throw in some extra | |
21238 | # Clang warning flags for good measure.) | |
be2fde87 | 21239 | |
2ca4dab3 JF |
21240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5 |
21241 | $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; } | |
21242 | if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then : | |
21243 | $as_echo_n "(cached) " >&6 | |
21244 | else | |
21245 | ax_cv_PTHREAD_REJECT_UNKNOWN=unknown | |
21246 | save_CFLAGS="$CFLAGS" | |
21247 | ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument" | |
21248 | CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz" | |
21249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
21250 | /* end confdefs.h. */ |
21251 | int foo(void); | |
21252 | int | |
21253 | main () | |
21254 | { | |
21255 | foo() | |
21256 | ; | |
21257 | return 0; | |
21258 | } | |
21259 | _ACEOF | |
21260 | if ac_fn_c_try_compile "$LINENO"; then : | |
2ca4dab3 | 21261 | ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags" |
be2fde87 | 21262 | else |
2ca4dab3 | 21263 | ax_cv_PTHREAD_REJECT_UNKNOWN=no |
be2fde87 JF |
21264 | fi |
21265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ca4dab3 JF |
21266 | CFLAGS="$save_CFLAGS" |
21267 | ||
21268 | fi | |
21269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5 | |
21270 | $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; } | |
21271 | ax_pthread_extra_flags= | |
21272 | if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then : | |
21273 | ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN" | |
21274 | fi | |
be2fde87 JF |
21275 | |
21276 | if test x"$ax_pthread_ok" = xno; then | |
21277 | for flag in $ax_pthread_flags; do | |
21278 | ||
21279 | case $flag in | |
21280 | none) | |
21281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
21282 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
21283 | ;; | |
21284 | ||
2ca4dab3 JF |
21285 | -mt,pthread) |
21286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 | |
21287 | $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } | |
21288 | PTHREAD_CFLAGS="-mt" | |
21289 | PTHREAD_LIBS="-lpthread" | |
21290 | ;; | |
21291 | ||
be2fde87 JF |
21292 | -*) |
21293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
21294 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
21295 | PTHREAD_CFLAGS="$flag" | |
21296 | ;; | |
21297 | ||
21298 | pthread-config) | |
21299 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
21300 | set dummy pthread-config; ac_word=$2 | |
21301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21302 | $as_echo_n "checking for $ac_word... " >&6; } | |
21303 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | |
21304 | $as_echo_n "(cached) " >&6 | |
21305 | else | |
21306 | if test -n "$ax_pthread_config"; then | |
21307 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
21308 | else | |
21309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21310 | for as_dir in $PATH | |
21311 | do | |
21312 | IFS=$as_save_IFS | |
21313 | test -z "$as_dir" && as_dir=. | |
21314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21316 | ac_cv_prog_ax_pthread_config="yes" | |
21317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21318 | break 2 | |
21319 | fi | |
21320 | done | |
21321 | done | |
21322 | IFS=$as_save_IFS | |
21323 | ||
21324 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
21325 | fi | |
21326 | fi | |
21327 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
21328 | if test -n "$ax_pthread_config"; then | |
21329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | |
21330 | $as_echo "$ax_pthread_config" >&6; } | |
21331 | else | |
21332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21333 | $as_echo "no" >&6; } | |
21334 | fi | |
21335 | ||
21336 | ||
21337 | if test x"$ax_pthread_config" = xno; then continue; fi | |
21338 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
21339 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
21340 | ;; | |
21341 | ||
21342 | *) | |
21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
21344 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
21345 | PTHREAD_LIBS="-l$flag" | |
21346 | ;; | |
21347 | esac | |
21348 | ||
21349 | save_LIBS="$LIBS" | |
21350 | save_CFLAGS="$CFLAGS" | |
21351 | LIBS="$PTHREAD_LIBS $LIBS" | |
21352 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" | |
21353 | ||
21354 | # Check for various functions. We must include pthread.h, | |
21355 | # since some functions may be macros. (On the Sequent, we | |
21356 | # need a special flag -Kthread to make this header compile.) | |
21357 | # We check for pthread_join because it is in -lpthread on IRIX | |
21358 | # while pthread_create is in libc. We check for pthread_attr_init | |
21359 | # due to DEC craziness with -lpthreads. We check for | |
21360 | # pthread_cleanup_push because it is one of the few pthread | |
21361 | # functions on Solaris that doesn't have a non-functional libc stub. | |
21362 | # We try pthread_create on general principles. | |
21363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21364 | /* end confdefs.h. */ | |
21365 | #include <pthread.h> | |
21366 | static void routine(void *a) { a = 0; } | |
21367 | static void *start_routine(void *a) { return a; } | |
21368 | int | |
21369 | main () | |
21370 | { | |
21371 | pthread_t th; pthread_attr_t attr; | |
21372 | pthread_create(&th, 0, start_routine, 0); | |
21373 | pthread_join(th, 0); | |
21374 | pthread_attr_init(&attr); | |
21375 | pthread_cleanup_push(routine, 0); | |
21376 | pthread_cleanup_pop(0) /* ; */ | |
21377 | ; | |
21378 | return 0; | |
21379 | } | |
21380 | _ACEOF | |
21381 | if ac_fn_c_try_link "$LINENO"; then : | |
21382 | ax_pthread_ok=yes | |
21383 | fi | |
21384 | rm -f core conftest.err conftest.$ac_objext \ | |
21385 | conftest$ac_exeext conftest.$ac_ext | |
21386 | ||
21387 | LIBS="$save_LIBS" | |
21388 | CFLAGS="$save_CFLAGS" | |
21389 | ||
21390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
21391 | $as_echo "$ax_pthread_ok" >&6; } | |
21392 | if test "x$ax_pthread_ok" = xyes; then | |
21393 | break; | |
21394 | fi | |
21395 | ||
21396 | PTHREAD_LIBS="" | |
21397 | PTHREAD_CFLAGS="" | |
21398 | done | |
21399 | fi | |
21400 | ||
21401 | # Various other checks: | |
21402 | if test "x$ax_pthread_ok" = xyes; then | |
21403 | save_LIBS="$LIBS" | |
21404 | LIBS="$PTHREAD_LIBS $LIBS" | |
21405 | save_CFLAGS="$CFLAGS" | |
21406 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
21407 | ||
21408 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
21409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
21410 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
2ca4dab3 JF |
21411 | if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : |
21412 | $as_echo_n "(cached) " >&6 | |
21413 | else | |
21414 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown | |
21415 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
21416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
21417 | /* end confdefs.h. */ |
21418 | #include <pthread.h> | |
21419 | int | |
21420 | main () | |
21421 | { | |
21422 | int attr = $attr; return attr /* ; */ | |
21423 | ; | |
21424 | return 0; | |
21425 | } | |
21426 | _ACEOF | |
21427 | if ac_fn_c_try_link "$LINENO"; then : | |
2ca4dab3 | 21428 | ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break |
be2fde87 JF |
21429 | fi |
21430 | rm -f core conftest.err conftest.$ac_objext \ | |
21431 | conftest$ac_exeext conftest.$ac_ext | |
2ca4dab3 JF |
21432 | done |
21433 | ||
21434 | fi | |
21435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 | |
21436 | $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
21437 | if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \ | |
21438 | test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then : | |
be2fde87 JF |
21439 | |
21440 | cat >>confdefs.h <<_ACEOF | |
2ca4dab3 | 21441 | #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR |
be2fde87 JF |
21442 | _ACEOF |
21443 | ||
2ca4dab3 | 21444 | fi |
be2fde87 JF |
21445 | |
21446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
21447 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
2ca4dab3 JF |
21448 | if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : |
21449 | $as_echo_n "(cached) " >&6 | |
21450 | else | |
21451 | ax_cv_PTHREAD_SPECIAL_FLAGS=no | |
21452 | ax_pthread_special_flags_added=no | |
21453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21454 | /* end confdefs.h. */ | |
21455 | ||
21456 | # if !defined(_REENTRANT) && !defined(_THREAD_SAFE) | |
21457 | AX_PTHREAD_NEED_SPECIAL_FLAG | |
21458 | # endif | |
21459 | ||
21460 | _ACEOF | |
21461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
21462 | $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then : | |
21463 | case $host_os in | |
21464 | aix* | freebsd*) | |
21465 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE" | |
21466 | ;; | |
21467 | darwin* | hpux* | osf* | solaris*) | |
21468 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT" | |
21469 | ;; | |
21470 | esac | |
21471 | ||
21472 | fi | |
21473 | rm -f conftest* | |
21474 | ||
21475 | ||
21476 | fi | |
21477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 | |
21478 | $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
21479 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ | |
21480 | test "x$ax_pthread_special_flags_added" != "xyes"; then : | |
21481 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" | |
21482 | ax_pthread_special_flags_added=yes | |
21483 | fi | |
be2fde87 JF |
21484 | |
21485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | |
21486 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
21487 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | |
21488 | $as_echo_n "(cached) " >&6 | |
21489 | else | |
2ca4dab3 | 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 i = PTHREAD_PRIO_INHERIT; | |
21497 | ; | |
21498 | return 0; | |
21499 | } | |
21500 | _ACEOF | |
21501 | if ac_fn_c_try_link "$LINENO"; then : | |
21502 | ax_cv_PTHREAD_PRIO_INHERIT=yes | |
21503 | else | |
21504 | ax_cv_PTHREAD_PRIO_INHERIT=no | |
21505 | fi | |
21506 | rm -f core conftest.err conftest.$ac_objext \ | |
21507 | conftest$ac_exeext conftest.$ac_ext | |
21508 | ||
21509 | fi | |
21510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | |
21511 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
21512 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | |
21513 | ||
21514 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | |
21515 | ||
21516 | fi | |
21517 | ||
21518 | LIBS="$save_LIBS" | |
21519 | CFLAGS="$save_CFLAGS" | |
21520 | ||
21521 | # More AIX lossage: compile with *_r variant | |
21522 | if test "x$GCC" != xyes; then | |
21523 | case $host_os in | |
21524 | aix*) | |
21525 | case "x/$CC" in #( | |
21526 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
21527 | #handle absolute path differently from PATH based program lookup | |
21528 | case "x$CC" in #( | |
21529 | x/*) : | |
21530 | if as_fn_executable_p ${CC}_r; then : | |
21531 | PTHREAD_CC="${CC}_r" | |
21532 | fi ;; #( | |
21533 | *) : | |
21534 | for ac_prog in ${CC}_r | |
21535 | do | |
21536 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21537 | set dummy $ac_prog; ac_word=$2 | |
21538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21539 | $as_echo_n "checking for $ac_word... " >&6; } | |
21540 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
21541 | $as_echo_n "(cached) " >&6 | |
21542 | else | |
21543 | if test -n "$PTHREAD_CC"; then | |
21544 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
21545 | else | |
21546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21547 | for as_dir in $PATH | |
21548 | do | |
21549 | IFS=$as_save_IFS | |
21550 | test -z "$as_dir" && as_dir=. | |
21551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21553 | ac_cv_prog_PTHREAD_CC="$ac_prog" | |
21554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21555 | break 2 | |
21556 | fi | |
21557 | done | |
21558 | done | |
21559 | IFS=$as_save_IFS | |
21560 | ||
21561 | fi | |
21562 | fi | |
21563 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
21564 | if test -n "$PTHREAD_CC"; then | |
21565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
21566 | $as_echo "$PTHREAD_CC" >&6; } | |
21567 | else | |
21568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21569 | $as_echo "no" >&6; } | |
21570 | fi | |
21571 | ||
21572 | ||
21573 | test -n "$PTHREAD_CC" && break | |
21574 | done | |
21575 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
21576 | ;; | |
21577 | esac ;; #( | |
21578 | *) : | |
21579 | ;; | |
21580 | esac | |
21581 | ;; | |
21582 | esac | |
21583 | fi | |
21584 | fi | |
21585 | ||
21586 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
21587 | ||
21588 | ||
21589 | ||
21590 | ||
21591 | ||
21592 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
21593 | if test x"$ax_pthread_ok" = xyes; then | |
21594 | ||
21595 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | |
21596 | ||
21597 | : | |
21598 | else | |
21599 | ax_pthread_ok=no | |
21600 | ||
21601 | fi | |
21602 | ac_ext=cpp | |
21603 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21607 | ||
21608 | ||
21609 | ||
21610 | ||
21611 | ||
babf7fe8 JF |
21612 | |
21613 | ||
21614 | ||
21615 | ||
21616 | # Check whether --enable-javascript was given. | |
21617 | if test "${enable_javascript+set}" = set; then : | |
21618 | enableval=$enable_javascript; | |
21619 | case $enableval in #( | |
21620 | yes) : | |
21621 | ||
21622 | ||
21623 | ||
21624 | ||
21625 | cy_save=$LIBS | |
21626 | LIBS= | |
9918a0fa JF |
21627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
21628 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
21629 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21630 | $as_echo_n "(cached) " >&6 | |
21631 | else | |
21632 | ac_func_search_save_LIBS=$LIBS | |
21633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21634 | /* end confdefs.h. */ | |
21635 | ||
21636 | /* Override any GCC internal prototype to avoid an error. | |
21637 | Use char because int might match the return type of a GCC | |
21638 | builtin and then its argument prototype would still apply. */ | |
21639 | #ifdef __cplusplus | |
21640 | extern "C" | |
21641 | #endif | |
21642 | char JSEvaluateScript (); | |
21643 | int | |
21644 | main () | |
21645 | { | |
21646 | return JSEvaluateScript (); | |
21647 | ; | |
21648 | return 0; | |
21649 | } | |
21650 | _ACEOF | |
21651 | for ac_lib in '' JavaScriptCore; do | |
21652 | if test -z "$ac_lib"; then | |
21653 | ac_res="none required" | |
21654 | else | |
21655 | ac_res=-l$ac_lib | |
21656 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21657 | fi | |
21658 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21659 | ac_cv_search_JSEvaluateScript=$ac_res | |
21660 | fi | |
21661 | rm -f core conftest.err conftest.$ac_objext \ | |
21662 | conftest$ac_exeext | |
21663 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21664 | break | |
21665 | fi | |
21666 | done | |
21667 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21668 | ||
21669 | else | |
21670 | ac_cv_search_JSEvaluateScript=no | |
21671 | fi | |
21672 | rm conftest.$ac_ext | |
21673 | LIBS=$ac_func_search_save_LIBS | |
21674 | fi | |
21675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
21676 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
21677 | ac_res=$ac_cv_search_JSEvaluateScript | |
21678 | if test "$ac_res" != no; then : | |
21679 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21680 | ||
21681 | CY_EXECUTE=1 | |
21682 | ||
21683 | ||
21684 | else | |
babf7fe8 JF |
21685 | |
21686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
21687 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
21688 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
21689 | $as_echo_n "(cached) " >&6 | |
21690 | else | |
21691 | ||
21692 | ac_check_framework_save_LIBS=$LIBS | |
21693 | LIBS="-framework JavaScriptCore $LIBS" | |
21694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21695 | /* end confdefs.h. */ | |
21696 | ||
21697 | #include <JavaScriptCore/JSBase.h> | |
21698 | ||
21699 | int | |
21700 | main () | |
21701 | { | |
21702 | ||
21703 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
21704 | ||
21705 | ; | |
21706 | return 0; | |
21707 | } | |
21708 | _ACEOF | |
21709 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21710 | ||
21711 | ac_cv_framework_JavaScriptCore=yes | |
21712 | ||
21713 | else | |
21714 | ac_cv_framework_JavaScriptCore=no | |
21715 | fi | |
21716 | rm -f core conftest.err conftest.$ac_objext \ | |
21717 | conftest$ac_exeext conftest.$ac_ext | |
21718 | LIBS=$ac_check_framework_save_LIBS | |
21719 | ||
21720 | fi | |
21721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
21722 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
21723 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
21724 | ||
21725 | ||
21726 | for element in "-framework JavaScriptCore"; do | |
21727 | haveit= | |
21728 | for x in $LIBS; do | |
21729 | ||
21730 | acl_save_prefix="$prefix" | |
21731 | prefix="$acl_final_prefix" | |
21732 | acl_save_exec_prefix="$exec_prefix" | |
21733 | exec_prefix="$acl_final_exec_prefix" | |
21734 | eval x=\"$x\" | |
21735 | exec_prefix="$acl_save_exec_prefix" | |
21736 | prefix="$acl_save_prefix" | |
21737 | ||
21738 | if test "X$x" = "X$element"; then | |
21739 | haveit=yes | |
21740 | break | |
21741 | fi | |
21742 | done | |
21743 | if test -z "$haveit"; then | |
21744 | LIBS="${LIBS}${LIBS:+ }$element" | |
21745 | fi | |
21746 | done | |
21747 | ||
21748 | ||
21749 | CY_EXECUTE=1 | |
21750 | ||
21751 | ||
21752 | ||
21753 | else | |
21754 | ||
ccb4e34c | 21755 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
21756 | |
21757 | pkg_failed=no | |
21758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 21759 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 21760 | |
7eda51e0 JF |
21761 | if test -n "$WEBKIT_CFLAGS"; then |
21762 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
21763 | elif test -n "$PKG_CONFIG"; then | |
21764 | if test -n "$PKG_CONFIG" && \ | |
21765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
21766 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
21767 | ac_status=$? | |
21768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21769 | test $ac_status = 0; }; then | |
21770 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 21771 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
21772 | else |
21773 | pkg_failed=yes | |
21774 | fi | |
21775 | else | |
21776 | pkg_failed=untried | |
21777 | fi | |
21778 | if test -n "$WEBKIT_LIBS"; then | |
21779 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
21780 | elif test -n "$PKG_CONFIG"; then | |
21781 | if test -n "$PKG_CONFIG" && \ | |
21782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
21783 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
21784 | ac_status=$? | |
21785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21786 | test $ac_status = 0; }; then | |
21787 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 21788 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
21789 | else |
21790 | pkg_failed=yes | |
21791 | fi | |
21792 | else | |
21793 | pkg_failed=untried | |
21794 | fi | |
632b71ea | 21795 | |
7eda51e0 JF |
21796 | |
21797 | ||
21798 | if test $pkg_failed = yes; then | |
21799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21800 | $as_echo "no" >&6; } | |
21801 | ||
21802 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21803 | _pkg_short_errors_supported=yes | |
21804 | else | |
21805 | _pkg_short_errors_supported=no | |
21806 | fi | |
21807 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 21808 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 21809 | else |
83c6fec8 | 21810 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
21811 | fi |
21812 | # Put the nasty error message in config.log where it belongs | |
21813 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
21814 | ||
21815 | : | |
21816 | elif test $pkg_failed = untried; then | |
21817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21818 | $as_echo "no" >&6; } | |
21819 | : | |
21820 | else | |
21821 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
21822 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
21823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21824 | $as_echo "yes" >&6; } | |
21825 | ||
21826 | CY_EXECUTE=1 | |
21827 | ||
21828 | ||
7eda51e0 JF |
21829 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
21830 | haveit= | |
d70419f1 | 21831 | for x in $CPPFLAGS; do |
5053a6d1 | 21832 | |
7eda51e0 JF |
21833 | acl_save_prefix="$prefix" |
21834 | prefix="$acl_final_prefix" | |
21835 | acl_save_exec_prefix="$exec_prefix" | |
21836 | exec_prefix="$acl_final_exec_prefix" | |
21837 | eval x=\"$x\" | |
21838 | exec_prefix="$acl_save_exec_prefix" | |
21839 | prefix="$acl_save_prefix" | |
5053a6d1 | 21840 | |
7eda51e0 JF |
21841 | if test "X$x" = "X$element"; then |
21842 | haveit=yes | |
21843 | break | |
21844 | fi | |
21845 | done | |
21846 | if test -z "$haveit"; then | |
d70419f1 | 21847 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
21848 | fi |
21849 | done | |
5053a6d1 | 21850 | |
5053a6d1 | 21851 | |
7eda51e0 | 21852 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 21853 | haveit= |
5053a6d1 | 21854 | for x in $LIBS; do |
9c60689e | 21855 | |
632b71ea DWT |
21856 | acl_save_prefix="$prefix" |
21857 | prefix="$acl_final_prefix" | |
21858 | acl_save_exec_prefix="$exec_prefix" | |
21859 | exec_prefix="$acl_final_exec_prefix" | |
21860 | eval x=\"$x\" | |
21861 | exec_prefix="$acl_save_exec_prefix" | |
21862 | prefix="$acl_save_prefix" | |
21863 | ||
21864 | if test "X$x" = "X$element"; then | |
21865 | haveit=yes | |
21866 | break | |
21867 | fi | |
21868 | done | |
21869 | if test -z "$haveit"; then | |
5053a6d1 | 21870 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
21871 | fi |
21872 | done | |
b128dfee | 21873 | |
66170b30 | 21874 | |
7eda51e0 JF |
21875 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
21876 | done | |
5053a6d1 DWT |
21877 | |
21878 | fi | |
9918a0fa JF |
21879 | fi |
21880 | ||
babf7fe8 JF |
21881 | LTJAVASCRIPTCORE=$LIBS |
21882 | LIBS=$cy_save | |
21883 | ||
21884 | ||
7eda51e0 | 21885 | ;; #( |
babf7fe8 | 21886 | no) : |
7eda51e0 | 21887 | |
babf7fe8 JF |
21888 | CY_EXECUTE=0 |
21889 | ;; #( | |
21890 | JavaScriptCore) : | |
c823f118 | 21891 | |
5053a6d1 DWT |
21892 | |
21893 | ||
babf7fe8 JF |
21894 | cy_save=$LIBS |
21895 | LIBS= | |
9918a0fa JF |
21896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
21897 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
21898 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21899 | $as_echo_n "(cached) " >&6 | |
21900 | else | |
21901 | ac_func_search_save_LIBS=$LIBS | |
21902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21903 | /* end confdefs.h. */ | |
21904 | ||
21905 | /* Override any GCC internal prototype to avoid an error. | |
21906 | Use char because int might match the return type of a GCC | |
21907 | builtin and then its argument prototype would still apply. */ | |
21908 | #ifdef __cplusplus | |
21909 | extern "C" | |
21910 | #endif | |
21911 | char JSEvaluateScript (); | |
21912 | int | |
21913 | main () | |
21914 | { | |
21915 | return JSEvaluateScript (); | |
21916 | ; | |
21917 | return 0; | |
21918 | } | |
21919 | _ACEOF | |
21920 | for ac_lib in '' JavaScriptCore; do | |
21921 | if test -z "$ac_lib"; then | |
21922 | ac_res="none required" | |
21923 | else | |
21924 | ac_res=-l$ac_lib | |
21925 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21926 | fi | |
21927 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21928 | ac_cv_search_JSEvaluateScript=$ac_res | |
21929 | fi | |
21930 | rm -f core conftest.err conftest.$ac_objext \ | |
21931 | conftest$ac_exeext | |
21932 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21933 | break | |
21934 | fi | |
21935 | done | |
21936 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
21937 | ||
21938 | else | |
21939 | ac_cv_search_JSEvaluateScript=no | |
21940 | fi | |
21941 | rm conftest.$ac_ext | |
21942 | LIBS=$ac_func_search_save_LIBS | |
21943 | fi | |
21944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
21945 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
21946 | ac_res=$ac_cv_search_JSEvaluateScript | |
21947 | if test "$ac_res" != no; then : | |
21948 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21949 | ||
21950 | CY_EXECUTE=1 | |
21951 | ||
21952 | ||
21953 | else | |
babf7fe8 | 21954 | |
5053a6d1 DWT |
21955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
21956 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 21957 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
21958 | $as_echo_n "(cached) " >&6 |
21959 | else | |
21960 | ||
5053a6d1 DWT |
21961 | ac_check_framework_save_LIBS=$LIBS |
21962 | LIBS="-framework JavaScriptCore $LIBS" | |
21963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 21964 | /* end confdefs.h. */ |
5053a6d1 | 21965 | |
7eda51e0 | 21966 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 21967 | |
632b71ea DWT |
21968 | int |
21969 | main () | |
21970 | { | |
66170b30 | 21971 | |
7eda51e0 | 21972 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 21973 | |
632b71ea DWT |
21974 | ; |
21975 | return 0; | |
21976 | } | |
21977 | _ACEOF | |
5053a6d1 DWT |
21978 | if ac_fn_cxx_try_link "$LINENO"; then : |
21979 | ||
21980 | ac_cv_framework_JavaScriptCore=yes | |
21981 | ||
21982 | else | |
21983 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
21984 | fi |
21985 | rm -f core conftest.err conftest.$ac_objext \ | |
21986 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 21987 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 21988 | |
c823f118 | 21989 | fi |
5053a6d1 DWT |
21990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
21991 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
21992 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
21993 | |
21994 | ||
7eda51e0 | 21995 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
21996 | haveit= |
21997 | for x in $LIBS; do | |
21998 | ||
21999 | acl_save_prefix="$prefix" | |
22000 | prefix="$acl_final_prefix" | |
22001 | acl_save_exec_prefix="$exec_prefix" | |
22002 | exec_prefix="$acl_final_exec_prefix" | |
22003 | eval x=\"$x\" | |
22004 | exec_prefix="$acl_save_exec_prefix" | |
22005 | prefix="$acl_save_prefix" | |
22006 | ||
22007 | if test "X$x" = "X$element"; then | |
22008 | haveit=yes | |
22009 | break | |
22010 | fi | |
22011 | done | |
22012 | if test -z "$haveit"; then | |
22013 | LIBS="${LIBS}${LIBS:+ }$element" | |
22014 | fi | |
22015 | done | |
c823f118 | 22016 | |
66170b30 | 22017 | |
7eda51e0 JF |
22018 | CY_EXECUTE=1 |
22019 | ||
22020 | ||
22021 | ||
22022 | else | |
22023 | ||
ccb4e34c | 22024 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
7eda51e0 JF |
22025 | |
22026 | pkg_failed=no | |
22027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
22028 | $as_echo_n "checking for WEBKIT... " >&6; } | |
22029 | ||
22030 | if test -n "$WEBKIT_CFLAGS"; then | |
22031 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
22032 | elif test -n "$PKG_CONFIG"; then | |
22033 | if test -n "$PKG_CONFIG" && \ | |
22034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22035 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22036 | ac_status=$? | |
22037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22038 | test $ac_status = 0; }; then | |
22039 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22040 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
22041 | else |
22042 | pkg_failed=yes | |
22043 | fi | |
22044 | else | |
22045 | pkg_failed=untried | |
22046 | fi | |
22047 | if test -n "$WEBKIT_LIBS"; then | |
22048 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
22049 | elif test -n "$PKG_CONFIG"; then | |
22050 | if test -n "$PKG_CONFIG" && \ | |
22051 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22052 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22053 | ac_status=$? | |
22054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22055 | test $ac_status = 0; }; then | |
22056 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22057 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
22058 | else |
22059 | pkg_failed=yes | |
22060 | fi | |
22061 | else | |
22062 | pkg_failed=untried | |
22063 | fi | |
22064 | ||
66170b30 JF |
22065 | |
22066 | ||
7eda51e0 JF |
22067 | if test $pkg_failed = yes; then |
22068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22069 | $as_echo "no" >&6; } | |
b128dfee | 22070 | |
7eda51e0 JF |
22071 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
22072 | _pkg_short_errors_supported=yes | |
22073 | else | |
22074 | _pkg_short_errors_supported=no | |
632b71ea | 22075 | fi |
7eda51e0 | 22076 | if test $_pkg_short_errors_supported = yes; then |
83c6fec8 | 22077 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 22078 | else |
83c6fec8 | 22079 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
22080 | fi |
22081 | # Put the nasty error message in config.log where it belongs | |
22082 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 22083 | |
7eda51e0 JF |
22084 | : |
22085 | elif test $pkg_failed = untried; then | |
22086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22087 | $as_echo "no" >&6; } | |
22088 | : | |
5053a6d1 DWT |
22089 | else |
22090 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
22091 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
22092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22093 | $as_echo "yes" >&6; } | |
c823f118 | 22094 | |
7eda51e0 JF |
22095 | CY_EXECUTE=1 |
22096 | ||
66170b30 | 22097 | |
7eda51e0 | 22098 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 22099 | haveit= |
d70419f1 | 22100 | for x in $CPPFLAGS; do |
c823f118 | 22101 | |
5053a6d1 DWT |
22102 | acl_save_prefix="$prefix" |
22103 | prefix="$acl_final_prefix" | |
22104 | acl_save_exec_prefix="$exec_prefix" | |
22105 | exec_prefix="$acl_final_exec_prefix" | |
22106 | eval x=\"$x\" | |
22107 | exec_prefix="$acl_save_exec_prefix" | |
22108 | prefix="$acl_save_prefix" | |
c823f118 | 22109 | |
5053a6d1 DWT |
22110 | if test "X$x" = "X$element"; then |
22111 | haveit=yes | |
22112 | break | |
22113 | fi | |
22114 | done | |
22115 | if test -z "$haveit"; then | |
d70419f1 | 22116 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
22117 | fi |
22118 | done | |
c823f118 | 22119 | |
b66977f1 | 22120 | |
7eda51e0 | 22121 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
22122 | haveit= |
22123 | for x in $LIBS; do | |
22124 | ||
22125 | acl_save_prefix="$prefix" | |
22126 | prefix="$acl_final_prefix" | |
22127 | acl_save_exec_prefix="$exec_prefix" | |
22128 | exec_prefix="$acl_final_exec_prefix" | |
22129 | eval x=\"$x\" | |
22130 | exec_prefix="$acl_save_exec_prefix" | |
22131 | prefix="$acl_save_prefix" | |
22132 | ||
22133 | if test "X$x" = "X$element"; then | |
22134 | haveit=yes | |
22135 | break | |
22136 | fi | |
22137 | done | |
22138 | if test -z "$haveit"; then | |
22139 | LIBS="${LIBS}${LIBS:+ }$element" | |
22140 | fi | |
22141 | done | |
22142 | ||
22143 | ||
7eda51e0 JF |
22144 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
22145 | done | |
22146 | ||
5053a6d1 | 22147 | fi |
9918a0fa JF |
22148 | fi |
22149 | ||
babf7fe8 JF |
22150 | LTJAVASCRIPTCORE=$LIBS |
22151 | LIBS=$cy_save | |
5053a6d1 | 22152 | |
b66977f1 | 22153 | |
babf7fe8 JF |
22154 | ;; #( |
22155 | *) : | |
22156 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
22157 | esac | |
b66977f1 | 22158 | |
babf7fe8 | 22159 | else |
b66977f1 | 22160 | |
7eda51e0 | 22161 | |
7eda51e0 | 22162 | |
babf7fe8 JF |
22163 | cy_save=$LIBS |
22164 | LIBS= | |
9918a0fa JF |
22165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
22166 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
22167 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22168 | $as_echo_n "(cached) " >&6 | |
22169 | else | |
22170 | ac_func_search_save_LIBS=$LIBS | |
22171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22172 | /* end confdefs.h. */ | |
22173 | ||
22174 | /* Override any GCC internal prototype to avoid an error. | |
22175 | Use char because int might match the return type of a GCC | |
22176 | builtin and then its argument prototype would still apply. */ | |
22177 | #ifdef __cplusplus | |
22178 | extern "C" | |
22179 | #endif | |
22180 | char JSEvaluateScript (); | |
22181 | int | |
22182 | main () | |
22183 | { | |
22184 | return JSEvaluateScript (); | |
22185 | ; | |
22186 | return 0; | |
22187 | } | |
22188 | _ACEOF | |
22189 | for ac_lib in '' JavaScriptCore; do | |
22190 | if test -z "$ac_lib"; then | |
22191 | ac_res="none required" | |
22192 | else | |
22193 | ac_res=-l$ac_lib | |
22194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22195 | fi | |
22196 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22197 | ac_cv_search_JSEvaluateScript=$ac_res | |
22198 | fi | |
22199 | rm -f core conftest.err conftest.$ac_objext \ | |
22200 | conftest$ac_exeext | |
22201 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22202 | break | |
22203 | fi | |
22204 | done | |
22205 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
22206 | ||
22207 | else | |
22208 | ac_cv_search_JSEvaluateScript=no | |
22209 | fi | |
22210 | rm conftest.$ac_ext | |
22211 | LIBS=$ac_func_search_save_LIBS | |
22212 | fi | |
22213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
22214 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
22215 | ac_res=$ac_cv_search_JSEvaluateScript | |
22216 | if test "$ac_res" != no; then : | |
22217 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22218 | ||
22219 | CY_EXECUTE=1 | |
22220 | ||
22221 | ||
22222 | else | |
7eda51e0 | 22223 | |
babf7fe8 JF |
22224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
22225 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
22226 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
22227 | $as_echo_n "(cached) " >&6 | |
22228 | else | |
7eda51e0 | 22229 | |
babf7fe8 JF |
22230 | ac_check_framework_save_LIBS=$LIBS |
22231 | LIBS="-framework JavaScriptCore $LIBS" | |
22232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22233 | /* end confdefs.h. */ | |
7eda51e0 | 22234 | |
babf7fe8 | 22235 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 22236 | |
babf7fe8 JF |
22237 | int |
22238 | main () | |
22239 | { | |
7eda51e0 | 22240 | |
babf7fe8 | 22241 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 22242 | |
babf7fe8 JF |
22243 | ; |
22244 | return 0; | |
22245 | } | |
22246 | _ACEOF | |
22247 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 22248 | |
babf7fe8 | 22249 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 22250 | |
b66977f1 | 22251 | else |
babf7fe8 JF |
22252 | ac_cv_framework_JavaScriptCore=no |
22253 | fi | |
22254 | rm -f core conftest.err conftest.$ac_objext \ | |
22255 | conftest$ac_exeext conftest.$ac_ext | |
22256 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 22257 | |
babf7fe8 JF |
22258 | fi |
22259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
22260 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
22261 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 22262 | |
7eda51e0 | 22263 | |
babf7fe8 JF |
22264 | for element in "-framework JavaScriptCore"; do |
22265 | haveit= | |
22266 | for x in $LIBS; do | |
22267 | ||
22268 | acl_save_prefix="$prefix" | |
22269 | prefix="$acl_final_prefix" | |
22270 | acl_save_exec_prefix="$exec_prefix" | |
22271 | exec_prefix="$acl_final_exec_prefix" | |
22272 | eval x=\"$x\" | |
22273 | exec_prefix="$acl_save_exec_prefix" | |
22274 | prefix="$acl_save_prefix" | |
22275 | ||
22276 | if test "X$x" = "X$element"; then | |
22277 | haveit=yes | |
22278 | break | |
22279 | fi | |
22280 | done | |
22281 | if test -z "$haveit"; then | |
22282 | LIBS="${LIBS}${LIBS:+ }$element" | |
22283 | fi | |
22284 | done | |
22285 | ||
22286 | ||
22287 | CY_EXECUTE=1 | |
22288 | ||
22289 | ||
22290 | ||
22291 | else | |
22292 | ||
ccb4e34c | 22293 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
22294 | |
22295 | pkg_failed=no | |
22296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
22297 | $as_echo_n "checking for WEBKIT... " >&6; } | |
22298 | ||
22299 | if test -n "$WEBKIT_CFLAGS"; then | |
22300 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
22301 | elif test -n "$PKG_CONFIG"; then | |
22302 | if test -n "$PKG_CONFIG" && \ | |
22303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22304 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22305 | ac_status=$? | |
22306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22307 | test $ac_status = 0; }; then | |
22308 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22309 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
22310 | else |
22311 | pkg_failed=yes | |
22312 | fi | |
22313 | else | |
22314 | pkg_failed=untried | |
22315 | fi | |
22316 | if test -n "$WEBKIT_LIBS"; then | |
22317 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
22318 | elif test -n "$PKG_CONFIG"; then | |
22319 | if test -n "$PKG_CONFIG" && \ | |
22320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
22321 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
22322 | ac_status=$? | |
22323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22324 | test $ac_status = 0; }; then | |
22325 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 22326 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
22327 | else |
22328 | pkg_failed=yes | |
22329 | fi | |
22330 | else | |
22331 | pkg_failed=untried | |
22332 | fi | |
22333 | ||
22334 | ||
22335 | ||
22336 | if test $pkg_failed = yes; then | |
22337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22338 | $as_echo "no" >&6; } | |
22339 | ||
22340 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22341 | _pkg_short_errors_supported=yes | |
22342 | else | |
22343 | _pkg_short_errors_supported=no | |
22344 | fi | |
22345 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22346 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 22347 | else |
83c6fec8 | 22348 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
22349 | fi |
22350 | # Put the nasty error message in config.log where it belongs | |
22351 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
22352 | ||
22353 | : | |
22354 | elif test $pkg_failed = untried; then | |
22355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22356 | $as_echo "no" >&6; } | |
22357 | : | |
22358 | else | |
22359 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
22360 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
22361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22362 | $as_echo "yes" >&6; } | |
22363 | ||
22364 | CY_EXECUTE=1 | |
22365 | ||
22366 | ||
22367 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
22368 | haveit= | |
22369 | for x in $CPPFLAGS; do | |
22370 | ||
22371 | acl_save_prefix="$prefix" | |
22372 | prefix="$acl_final_prefix" | |
22373 | acl_save_exec_prefix="$exec_prefix" | |
22374 | exec_prefix="$acl_final_exec_prefix" | |
22375 | eval x=\"$x\" | |
22376 | exec_prefix="$acl_save_exec_prefix" | |
22377 | prefix="$acl_save_prefix" | |
22378 | ||
22379 | if test "X$x" = "X$element"; then | |
22380 | haveit=yes | |
22381 | break | |
22382 | fi | |
22383 | done | |
22384 | if test -z "$haveit"; then | |
22385 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
22386 | fi | |
22387 | done | |
22388 | ||
22389 | ||
22390 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
22391 | haveit= | |
22392 | for x in $LIBS; do | |
22393 | ||
22394 | acl_save_prefix="$prefix" | |
22395 | prefix="$acl_final_prefix" | |
22396 | acl_save_exec_prefix="$exec_prefix" | |
22397 | exec_prefix="$acl_final_exec_prefix" | |
22398 | eval x=\"$x\" | |
22399 | exec_prefix="$acl_save_exec_prefix" | |
22400 | prefix="$acl_save_prefix" | |
22401 | ||
22402 | if test "X$x" = "X$element"; then | |
22403 | haveit=yes | |
22404 | break | |
22405 | fi | |
22406 | done | |
22407 | if test -z "$haveit"; then | |
22408 | LIBS="${LIBS}${LIBS:+ }$element" | |
22409 | fi | |
22410 | done | |
22411 | ||
22412 | ||
22413 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
22414 | done | |
22415 | ||
22416 | fi | |
9918a0fa JF |
22417 | fi |
22418 | ||
babf7fe8 JF |
22419 | LTJAVASCRIPTCORE=$LIBS |
22420 | LIBS=$cy_save | |
22421 | ||
22422 | ||
22423 | ||
22424 | fi | |
22425 | ||
22426 | ||
a93f15c0 JF |
22427 | # Check whether --enable-console was given. |
22428 | if test "${enable_console+set}" = set; then : | |
22429 | enableval=$enable_console; | |
22430 | fi | |
22431 | ||
22432 | if test "x$enable_console" != "xno"; then | |
22433 | CY_CONSOLE_TRUE= | |
22434 | CY_CONSOLE_FALSE='#' | |
22435 | else | |
22436 | CY_CONSOLE_TRUE='#' | |
22437 | CY_CONSOLE_FALSE= | |
22438 | fi | |
22439 | ||
22440 | ||
a4287117 JF |
22441 | # Check whether --enable-attach was given. |
22442 | if test "${enable_attach+set}" = set; then : | |
22443 | enableval=$enable_attach; | |
22444 | fi | |
22445 | ||
22446 | if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then | |
22447 | CY_ATTACH_TRUE= | |
22448 | CY_ATTACH_FALSE='#' | |
22449 | else | |
22450 | CY_ATTACH_TRUE='#' | |
22451 | CY_ATTACH_FALSE= | |
22452 | fi | |
22453 | ||
22454 | ||
7eda51e0 JF |
22455 | |
22456 | ||
22457 | if test "x$CY_EXECUTE" = x1; then | |
22458 | CY_EXECUTE_TRUE= | |
22459 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 22460 | else |
7eda51e0 JF |
22461 | CY_EXECUTE_TRUE='#' |
22462 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
22463 | fi |
22464 | ||
22465 | ||
8d20f0f1 JF |
22466 | if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi |
22467 | ||
22468 | ||
b66977f1 | 22469 | |
7eda51e0 JF |
22470 | case $CY_EXECUTE in #( |
22471 | 1) : | |
22472 | ||
ae1b611e JF |
22473 | |
22474 | cy_save=$LIBS | |
22475 | LIBS= | |
22476 | for ac_header in uv.h | |
22477 | do : | |
22478 | ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" | |
22479 | if test "x$ac_cv_header_uv_h" = xyes; then : | |
22480 | cat >>confdefs.h <<_ACEOF | |
22481 | #define HAVE_UV_H 1 | |
22482 | _ACEOF | |
22483 | ||
22484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5 | |
22485 | $as_echo_n "checking for library containing uv_loop_init... " >&6; } | |
22486 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22487 | $as_echo_n "(cached) " >&6 | |
22488 | else | |
22489 | ac_func_search_save_LIBS=$LIBS | |
22490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22491 | /* end confdefs.h. */ | |
22492 | ||
22493 | /* Override any GCC internal prototype to avoid an error. | |
22494 | Use char because int might match the return type of a GCC | |
22495 | builtin and then its argument prototype would still apply. */ | |
22496 | #ifdef __cplusplus | |
22497 | extern "C" | |
22498 | #endif | |
22499 | char uv_loop_init (); | |
22500 | int | |
22501 | main () | |
22502 | { | |
22503 | return uv_loop_init (); | |
22504 | ; | |
22505 | return 0; | |
22506 | } | |
22507 | _ACEOF | |
22508 | for ac_lib in '' uv; do | |
22509 | if test -z "$ac_lib"; then | |
22510 | ac_res="none required" | |
22511 | else | |
22512 | ac_res=-l$ac_lib | |
22513 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22514 | fi | |
22515 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22516 | ac_cv_search_uv_loop_init=$ac_res | |
22517 | fi | |
22518 | rm -f core conftest.err conftest.$ac_objext \ | |
22519 | conftest$ac_exeext | |
22520 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22521 | break | |
22522 | fi | |
22523 | done | |
22524 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
22525 | ||
22526 | else | |
22527 | ac_cv_search_uv_loop_init=no | |
22528 | fi | |
22529 | rm conftest.$ac_ext | |
22530 | LIBS=$ac_func_search_save_LIBS | |
22531 | fi | |
22532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5 | |
22533 | $as_echo "$ac_cv_search_uv_loop_init" >&6; } | |
22534 | ac_res=$ac_cv_search_uv_loop_init | |
22535 | if test "$ac_res" != no; then : | |
22536 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22537 | ||
22538 | fi | |
22539 | ||
22540 | ||
22541 | fi | |
22542 | ||
22543 | done | |
22544 | ||
22545 | LTLIBUV=$LIBS | |
22546 | LIBS=$cy_save | |
22547 | ||
22548 | ||
22549 | ||
8d20f0f1 JF |
22550 | |
22551 | cy_save=$LIBS | |
22552 | LIBS= | |
22553 | for ac_header in sqlite3.h | |
22554 | do : | |
22555 | ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" | |
22556 | if test "x$ac_cv_header_sqlite3_h" = xyes; then : | |
22557 | cat >>confdefs.h <<_ACEOF | |
22558 | #define HAVE_SQLITE3_H 1 | |
22559 | _ACEOF | |
22560 | ||
22561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5 | |
22562 | $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; } | |
22563 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22564 | $as_echo_n "(cached) " >&6 | |
22565 | else | |
22566 | ac_func_search_save_LIBS=$LIBS | |
22567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22568 | /* end confdefs.h. */ | |
22569 | ||
22570 | /* Override any GCC internal prototype to avoid an error. | |
22571 | Use char because int might match the return type of a GCC | |
22572 | builtin and then its argument prototype would still apply. */ | |
22573 | #ifdef __cplusplus | |
22574 | extern "C" | |
22575 | #endif | |
22576 | char sqlite3_open_v2 (); | |
22577 | int | |
22578 | main () | |
22579 | { | |
22580 | return sqlite3_open_v2 (); | |
22581 | ; | |
22582 | return 0; | |
22583 | } | |
22584 | _ACEOF | |
22585 | for ac_lib in '' sqlite3; do | |
22586 | if test -z "$ac_lib"; then | |
22587 | ac_res="none required" | |
22588 | else | |
22589 | ac_res=-l$ac_lib | |
22590 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22591 | fi | |
22592 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22593 | ac_cv_search_sqlite3_open_v2=$ac_res | |
22594 | fi | |
22595 | rm -f core conftest.err conftest.$ac_objext \ | |
22596 | conftest$ac_exeext | |
22597 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22598 | break | |
22599 | fi | |
22600 | done | |
22601 | if ${ac_cv_search_sqlite3_open_v2+:} false; then : | |
22602 | ||
22603 | else | |
22604 | ac_cv_search_sqlite3_open_v2=no | |
22605 | fi | |
22606 | rm conftest.$ac_ext | |
22607 | LIBS=$ac_func_search_save_LIBS | |
22608 | fi | |
22609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5 | |
22610 | $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; } | |
22611 | ac_res=$ac_cv_search_sqlite3_open_v2 | |
22612 | if test "$ac_res" != no; then : | |
22613 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22614 | ||
22615 | fi | |
22616 | ||
22617 | ||
22618 | fi | |
22619 | ||
22620 | done | |
22621 | ||
22622 | LTLIBSQLITE3=$LIBS | |
22623 | LIBS=$cy_save | |
22624 | ||
22625 | ||
22626 | ||
7eda51e0 JF |
22627 | for ac_header in ffi.h ffi/ffi.h |
22628 | do : | |
22629 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22630 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22631 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
22632 | cat >>confdefs.h <<_ACEOF | |
22633 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22634 | _ACEOF | |
22635 | break | |
b66977f1 | 22636 | fi |
7eda51e0 JF |
22637 | |
22638 | done | |
22639 | ||
296ee9a6 JF |
22640 | |
22641 | ||
22642 | cy_save=$LIBS | |
22643 | LIBS= | |
7eda51e0 | 22644 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 22645 | |
b66977f1 | 22646 | |
296ee9a6 JF |
22647 | LIBFFI_CFLAGS |
22648 | C compiler flags for LIBFFI, overriding pkg-config | |
22649 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
22650 | |
22651 | pkg_failed=no | |
7eda51e0 JF |
22652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
22653 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 22654 | |
7eda51e0 JF |
22655 | if test -n "$LIBFFI_CFLAGS"; then |
22656 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
22657 | elif test -n "$PKG_CONFIG"; then |
22658 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22660 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22661 | ac_status=$? |
22662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22663 | test $ac_status = 0; }; then | |
7eda51e0 | 22664 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 22665 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22666 | else |
22667 | pkg_failed=yes | |
22668 | fi | |
12833ad8 JF |
22669 | else |
22670 | pkg_failed=untried | |
b66977f1 | 22671 | fi |
7eda51e0 JF |
22672 | if test -n "$LIBFFI_LIBS"; then |
22673 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
22674 | elif test -n "$PKG_CONFIG"; then |
22675 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22677 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22678 | ac_status=$? |
22679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22680 | test $ac_status = 0; }; then | |
7eda51e0 | 22681 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 22682 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22683 | else |
22684 | pkg_failed=yes | |
22685 | fi | |
12833ad8 JF |
22686 | else |
22687 | pkg_failed=untried | |
b66977f1 DWT |
22688 | fi |
22689 | ||
22690 | ||
22691 | ||
22692 | if test $pkg_failed = yes; then | |
12833ad8 JF |
22693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22694 | $as_echo "no" >&6; } | |
b66977f1 DWT |
22695 | |
22696 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22697 | _pkg_short_errors_supported=yes | |
22698 | else | |
22699 | _pkg_short_errors_supported=no | |
22700 | fi | |
22701 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22702 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 22703 | else |
83c6fec8 | 22704 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
22705 | fi |
22706 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 22707 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 22708 | |
7eda51e0 JF |
22709 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
22710 | elif test $pkg_failed = untried; then | |
22711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22712 | $as_echo "no" >&6; } | |
22713 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
22714 | else | |
22715 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
22716 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
22717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22718 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
22719 | |
22720 | ||
7eda51e0 | 22721 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 22722 | haveit= |
d70419f1 | 22723 | for x in $CPPFLAGS; do |
b66977f1 DWT |
22724 | |
22725 | acl_save_prefix="$prefix" | |
22726 | prefix="$acl_final_prefix" | |
22727 | acl_save_exec_prefix="$exec_prefix" | |
22728 | exec_prefix="$acl_final_exec_prefix" | |
22729 | eval x=\"$x\" | |
22730 | exec_prefix="$acl_save_exec_prefix" | |
22731 | prefix="$acl_save_prefix" | |
22732 | ||
22733 | if test "X$x" = "X$element"; then | |
22734 | haveit=yes | |
22735 | break | |
22736 | fi | |
22737 | done | |
22738 | if test -z "$haveit"; then | |
d70419f1 | 22739 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
22740 | fi |
22741 | done | |
22742 | ||
22743 | ||
7eda51e0 | 22744 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
22745 | haveit= |
22746 | for x in $LIBS; do | |
22747 | ||
22748 | acl_save_prefix="$prefix" | |
22749 | prefix="$acl_final_prefix" | |
22750 | acl_save_exec_prefix="$exec_prefix" | |
22751 | exec_prefix="$acl_final_exec_prefix" | |
22752 | eval x=\"$x\" | |
22753 | exec_prefix="$acl_save_exec_prefix" | |
22754 | prefix="$acl_save_prefix" | |
22755 | ||
22756 | if test "X$x" = "X$element"; then | |
22757 | haveit=yes | |
22758 | break | |
22759 | fi | |
22760 | done | |
22761 | if test -z "$haveit"; then | |
22762 | LIBS="${LIBS}${LIBS:+ }$element" | |
22763 | fi | |
22764 | done | |
22765 | ||
22766 | ||
22767 | fi | |
22768 | ||
7eda51e0 JF |
22769 | else |
22770 | ||
22771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
22772 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
22773 | if ${ac_cv_search_ffi_call+:} false; then : | |
22774 | $as_echo_n "(cached) " >&6 | |
22775 | else | |
22776 | ac_func_search_save_LIBS=$LIBS | |
22777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22778 | /* end confdefs.h. */ | |
22779 | ||
22780 | /* Override any GCC internal prototype to avoid an error. | |
22781 | Use char because int might match the return type of a GCC | |
22782 | builtin and then its argument prototype would still apply. */ | |
22783 | #ifdef __cplusplus | |
22784 | extern "C" | |
22785 | #endif | |
22786 | char ffi_call (); | |
22787 | int | |
22788 | main () | |
22789 | { | |
22790 | return ffi_call (); | |
22791 | ; | |
22792 | return 0; | |
22793 | } | |
22794 | _ACEOF | |
22795 | for ac_lib in '' ffi; do | |
22796 | if test -z "$ac_lib"; then | |
22797 | ac_res="none required" | |
22798 | else | |
22799 | ac_res=-l$ac_lib | |
22800 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
22801 | fi | |
22802 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22803 | ac_cv_search_ffi_call=$ac_res | |
22804 | fi | |
22805 | rm -f core conftest.err conftest.$ac_objext \ | |
22806 | conftest$ac_exeext | |
22807 | if ${ac_cv_search_ffi_call+:} false; then : | |
22808 | break | |
22809 | fi | |
22810 | done | |
22811 | if ${ac_cv_search_ffi_call+:} false; then : | |
22812 | ||
22813 | else | |
22814 | ac_cv_search_ffi_call=no | |
22815 | fi | |
22816 | rm conftest.$ac_ext | |
22817 | LIBS=$ac_func_search_save_LIBS | |
22818 | fi | |
22819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
22820 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
22821 | ac_res=$ac_cv_search_ffi_call | |
22822 | if test "$ac_res" != no; then : | |
22823 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
22824 | ||
22825 | fi | |
22826 | ||
22827 | case $ac_cv_search_ffi_call in #( | |
22828 | no) : | |
b66977f1 DWT |
22829 | |
22830 | ||
22831 | pkg_failed=no | |
7eda51e0 JF |
22832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
22833 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 22834 | |
7eda51e0 JF |
22835 | if test -n "$LIBFFI_CFLAGS"; then |
22836 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
22837 | elif test -n "$PKG_CONFIG"; then |
22838 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22840 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22841 | ac_status=$? |
22842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22843 | test $ac_status = 0; }; then | |
7eda51e0 | 22844 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 22845 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22846 | else |
22847 | pkg_failed=yes | |
22848 | fi | |
12833ad8 JF |
22849 | else |
22850 | pkg_failed=untried | |
b66977f1 | 22851 | fi |
7eda51e0 JF |
22852 | if test -n "$LIBFFI_LIBS"; then |
22853 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
22854 | elif test -n "$PKG_CONFIG"; then |
22855 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
22856 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
22857 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
22858 | ac_status=$? |
22859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22860 | test $ac_status = 0; }; then | |
7eda51e0 | 22861 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 22862 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
22863 | else |
22864 | pkg_failed=yes | |
22865 | fi | |
12833ad8 JF |
22866 | else |
22867 | pkg_failed=untried | |
b66977f1 DWT |
22868 | fi |
22869 | ||
22870 | ||
22871 | ||
22872 | if test $pkg_failed = yes; then | |
12833ad8 JF |
22873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22874 | $as_echo "no" >&6; } | |
b66977f1 DWT |
22875 | |
22876 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
22877 | _pkg_short_errors_supported=yes | |
22878 | else | |
22879 | _pkg_short_errors_supported=no | |
22880 | fi | |
22881 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 22882 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 22883 | else |
83c6fec8 | 22884 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
22885 | fi |
22886 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 22887 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 22888 | |
7eda51e0 JF |
22889 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
22890 | elif test $pkg_failed = untried; then | |
22891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
22892 | $as_echo "no" >&6; } | |
22893 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 22894 | else |
7eda51e0 JF |
22895 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
22896 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
22897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
22898 | $as_echo "yes" >&6; } | |
b66977f1 | 22899 | |
b66977f1 | 22900 | |
7eda51e0 | 22901 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 22902 | haveit= |
d70419f1 | 22903 | for x in $CPPFLAGS; do |
7eda51e0 JF |
22904 | |
22905 | acl_save_prefix="$prefix" | |
22906 | prefix="$acl_final_prefix" | |
22907 | acl_save_exec_prefix="$exec_prefix" | |
22908 | exec_prefix="$acl_final_exec_prefix" | |
22909 | eval x=\"$x\" | |
22910 | exec_prefix="$acl_save_exec_prefix" | |
22911 | prefix="$acl_save_prefix" | |
22912 | ||
22913 | if test "X$x" = "X$element"; then | |
22914 | haveit=yes | |
22915 | break | |
22916 | fi | |
22917 | done | |
22918 | if test -z "$haveit"; then | |
d70419f1 | 22919 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
22920 | fi |
22921 | done | |
22922 | ||
22923 | ||
7eda51e0 JF |
22924 | for element in `$PKG_CONFIG --libs libffi`; do |
22925 | haveit= | |
22926 | for x in $LIBS; do | |
22927 | ||
22928 | acl_save_prefix="$prefix" | |
22929 | prefix="$acl_final_prefix" | |
22930 | acl_save_exec_prefix="$exec_prefix" | |
22931 | exec_prefix="$acl_final_exec_prefix" | |
22932 | eval x=\"$x\" | |
22933 | exec_prefix="$acl_save_exec_prefix" | |
22934 | prefix="$acl_save_prefix" | |
22935 | ||
22936 | if test "X$x" = "X$element"; then | |
22937 | haveit=yes | |
22938 | break | |
22939 | fi | |
22940 | done | |
22941 | if test -z "$haveit"; then | |
22942 | LIBS="${LIBS}${LIBS:+ }$element" | |
22943 | fi | |
22944 | done | |
22945 | ||
22946 | ||
22947 | fi ;; #( | |
22948 | *) : | |
22949 | ;; | |
22950 | esac | |
22951 | ||
22952 | fi | |
296ee9a6 JF |
22953 | LTLIBFFI=$LIBS |
22954 | LIBS=$cy_save | |
22955 | ||
22956 | ||
7eda51e0 | 22957 | |
def90846 JF |
22958 | |
22959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5 | |
22960 | $as_echo_n "checking for framework JavaVM... " >&6; } | |
22961 | if ${ac_cv_framework_JavaVM+:} false; then : | |
22962 | $as_echo_n "(cached) " >&6 | |
22963 | else | |
22964 | ||
22965 | ac_check_framework_save_LIBS=$LIBS | |
22966 | LIBS="-framework JavaVM $LIBS" | |
22967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22968 | /* end confdefs.h. */ | |
22969 | ||
22970 | #include <JavaVM/jni.h> | |
22971 | ||
22972 | int | |
22973 | main () | |
22974 | { | |
22975 | JNI_GetCreatedJavaVMs(NULL, 0, NULL); | |
22976 | ; | |
22977 | return 0; | |
22978 | } | |
22979 | _ACEOF | |
22980 | if ac_fn_cxx_try_link "$LINENO"; then : | |
22981 | ||
22982 | ac_cv_framework_JavaVM=yes | |
22983 | ||
22984 | else | |
22985 | ac_cv_framework_JavaVM=no | |
22986 | fi | |
22987 | rm -f core conftest.err conftest.$ac_objext \ | |
22988 | conftest$ac_exeext conftest.$ac_ext | |
22989 | LIBS=$ac_check_framework_save_LIBS | |
22990 | ||
22991 | fi | |
22992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5 | |
22993 | $as_echo "$ac_cv_framework_JavaVM" >&6; } | |
22994 | if test $ac_cv_framework_JavaVM = yes; then : | |
22995 | ||
22996 | ||
22997 | for element in "-framework JavaVM"; do | |
22998 | haveit= | |
22999 | for x in $LIBS; do | |
23000 | ||
23001 | acl_save_prefix="$prefix" | |
23002 | prefix="$acl_final_prefix" | |
23003 | acl_save_exec_prefix="$exec_prefix" | |
23004 | exec_prefix="$acl_final_exec_prefix" | |
23005 | eval x=\"$x\" | |
23006 | exec_prefix="$acl_save_exec_prefix" | |
23007 | prefix="$acl_save_prefix" | |
23008 | ||
23009 | if test "X$x" = "X$element"; then | |
23010 | haveit=yes | |
23011 | break | |
23012 | fi | |
23013 | done | |
23014 | if test -z "$haveit"; then | |
23015 | LIBS="${LIBS}${LIBS:+ }$element" | |
23016 | fi | |
23017 | done | |
23018 | ||
23019 | ||
23020 | CY_JAVA=1 | |
23021 | ||
23022 | ||
23023 | ||
23024 | else | |
23025 | ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" | |
39ed1631 JF |
23026 | if test "x$ac_cv_header_jni_h" = xyes; then : |
23027 | ||
23028 | CY_JAVA=1 | |
23029 | ||
23030 | ||
23031 | cy_save=$LIBS | |
23032 | LIBS= | |
23033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5 | |
23034 | $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; } | |
23035 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23036 | $as_echo_n "(cached) " >&6 | |
23037 | else | |
23038 | ac_func_search_save_LIBS=$LIBS | |
23039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23040 | /* end confdefs.h. */ | |
23041 | ||
23042 | /* Override any GCC internal prototype to avoid an error. | |
23043 | Use char because int might match the return type of a GCC | |
23044 | builtin and then its argument prototype would still apply. */ | |
23045 | #ifdef __cplusplus | |
23046 | extern "C" | |
23047 | #endif | |
23048 | char JNI_GetCreatedJavaVMs (); | |
23049 | int | |
23050 | main () | |
23051 | { | |
23052 | return JNI_GetCreatedJavaVMs (); | |
23053 | ; | |
23054 | return 0; | |
23055 | } | |
23056 | _ACEOF | |
23057 | for ac_lib in '' dvm; do | |
23058 | if test -z "$ac_lib"; then | |
23059 | ac_res="none required" | |
23060 | else | |
23061 | ac_res=-l$ac_lib | |
23062 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23063 | fi | |
23064 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23065 | ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res | |
23066 | fi | |
23067 | rm -f core conftest.err conftest.$ac_objext \ | |
23068 | conftest$ac_exeext | |
23069 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23070 | break | |
23071 | fi | |
23072 | done | |
23073 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
23074 | ||
23075 | else | |
23076 | ac_cv_search_JNI_GetCreatedJavaVMs=no | |
23077 | fi | |
23078 | rm conftest.$ac_ext | |
23079 | LIBS=$ac_func_search_save_LIBS | |
23080 | fi | |
23081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5 | |
23082 | $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; } | |
23083 | ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs | |
23084 | if test "$ac_res" != no; then : | |
23085 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
23086 | ||
23087 | ||
23088 | fi | |
23089 | ||
23090 | LTJAVA=$LIBS | |
23091 | LIBS=$cy_save | |
23092 | ||
23093 | ||
23094 | ||
23095 | else | |
23096 | ||
23097 | CY_JAVA=0 | |
23098 | ||
23099 | ||
23100 | fi | |
23101 | ||
23102 | ||
def90846 | 23103 | fi |
39ed1631 | 23104 | |
7eda51e0 JF |
23105 | ac_ext=mm |
23106 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
23107 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23108 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23109 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
23110 | ||
23111 | ||
23112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
23113 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
23114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23115 | /* end confdefs.h. */ | |
23116 | ||
23117 | _ACEOF | |
23118 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
23119 | ||
23120 | CY_OBJECTIVEC=1 | |
23121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
23122 | $as_echo "yes" >&6; } | |
23123 | ||
23124 | else | |
23125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 23126 | $as_echo "no" >&6; } |
7eda51e0 JF |
23127 | fi |
23128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 23129 | |
7eda51e0 | 23130 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 23131 | |
7eda51e0 | 23132 | |
babf7fe8 JF |
23133 | cy_save=$LIBS |
23134 | LIBS= | |
23135 | ||
7eda51e0 JF |
23136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
23137 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
23138 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
23139 | $as_echo_n "(cached) " >&6 |
23140 | else | |
23141 | ||
23142 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 23143 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
23144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23145 | /* end confdefs.h. */ | |
23146 | ||
7eda51e0 | 23147 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
23148 | |
23149 | int | |
23150 | main () | |
23151 | { | |
7eda51e0 | 23152 | CFAllocatorGetDefault(); |
b66977f1 DWT |
23153 | ; |
23154 | return 0; | |
23155 | } | |
23156 | _ACEOF | |
7eda51e0 | 23157 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 23158 | |
7eda51e0 | 23159 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
23160 | |
23161 | else | |
7eda51e0 | 23162 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
23163 | fi |
23164 | rm -f core conftest.err conftest.$ac_objext \ | |
23165 | conftest$ac_exeext conftest.$ac_ext | |
23166 | LIBS=$ac_check_framework_save_LIBS | |
23167 | ||
23168 | fi | |
7eda51e0 JF |
23169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
23170 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
23171 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
23172 | |
23173 | ||
7eda51e0 | 23174 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
23175 | haveit= |
23176 | for x in $LIBS; do | |
23177 | ||
23178 | acl_save_prefix="$prefix" | |
23179 | prefix="$acl_final_prefix" | |
23180 | acl_save_exec_prefix="$exec_prefix" | |
23181 | exec_prefix="$acl_final_exec_prefix" | |
23182 | eval x=\"$x\" | |
23183 | exec_prefix="$acl_save_exec_prefix" | |
23184 | prefix="$acl_save_prefix" | |
23185 | ||
23186 | if test "X$x" = "X$element"; then | |
23187 | haveit=yes | |
23188 | break | |
23189 | fi | |
23190 | done | |
23191 | if test -z "$haveit"; then | |
23192 | LIBS="${LIBS}${LIBS:+ }$element" | |
23193 | fi | |
23194 | done | |
23195 | ||
66170b30 | 23196 | |
66170b30 JF |
23197 | |
23198 | ||
b66977f1 | 23199 | |
b66977f1 | 23200 | |
7eda51e0 JF |
23201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
23202 | $as_echo_n "checking for framework Foundation... " >&6; } | |
23203 | if ${ac_cv_framework_Foundation+:} false; then : | |
23204 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 23205 | else |
b66977f1 | 23206 | |
7eda51e0 JF |
23207 | ac_check_framework_save_LIBS=$LIBS |
23208 | LIBS="-framework Foundation $LIBS" | |
23209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23210 | /* end confdefs.h. */ | |
66170b30 | 23211 | |
7eda51e0 | 23212 | #include <Foundation/NSObject.h> |
b66977f1 | 23213 | |
7eda51e0 JF |
23214 | int |
23215 | main () | |
23216 | { | |
23217 | [[NSObject alloc] init]; | |
23218 | ; | |
23219 | return 0; | |
23220 | } | |
23221 | _ACEOF | |
23222 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 23223 | |
7eda51e0 | 23224 | ac_cv_framework_Foundation=yes |
b66977f1 | 23225 | |
7eda51e0 JF |
23226 | else |
23227 | ac_cv_framework_Foundation=no | |
23228 | fi | |
23229 | rm -f core conftest.err conftest.$ac_objext \ | |
23230 | conftest$ac_exeext conftest.$ac_ext | |
23231 | LIBS=$ac_check_framework_save_LIBS | |
23232 | ||
23233 | fi | |
23234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
23235 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
23236 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
23237 | |
23238 | ||
7eda51e0 | 23239 | for element in "-framework Foundation"; do |
b66977f1 DWT |
23240 | haveit= |
23241 | for x in $LIBS; do | |
23242 | ||
23243 | acl_save_prefix="$prefix" | |
23244 | prefix="$acl_final_prefix" | |
23245 | acl_save_exec_prefix="$exec_prefix" | |
23246 | exec_prefix="$acl_final_exec_prefix" | |
23247 | eval x=\"$x\" | |
23248 | exec_prefix="$acl_save_exec_prefix" | |
23249 | prefix="$acl_save_prefix" | |
23250 | ||
23251 | if test "X$x" = "X$element"; then | |
23252 | haveit=yes | |
23253 | break | |
23254 | fi | |
23255 | done | |
23256 | if test -z "$haveit"; then | |
23257 | LIBS="${LIBS}${LIBS:+ }$element" | |
23258 | fi | |
23259 | done | |
23260 | ||
7eda51e0 JF |
23261 | cat >>confdefs.h <<_ACEOF |
23262 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
23263 | _ACEOF | |
23264 | ||
b66977f1 | 23265 | |
7eda51e0 | 23266 | fi |
b66977f1 DWT |
23267 | |
23268 | ||
7eda51e0 | 23269 | else |
b66977f1 | 23270 | |
b66977f1 | 23271 | |
7eda51e0 JF |
23272 | for ac_prog in gnustep-config |
23273 | do | |
23274 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23275 | set dummy $ac_prog; ac_word=$2 | |
23276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
23277 | $as_echo_n "checking for $ac_word... " >&6; } | |
23278 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
23279 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 23280 | else |
7eda51e0 JF |
23281 | if test -n "$GNUSTEP_CONFIG"; then |
23282 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 23283 | else |
7eda51e0 JF |
23284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23285 | for as_dir in $PATH | |
23286 | do | |
23287 | IFS=$as_save_IFS | |
23288 | test -z "$as_dir" && as_dir=. | |
23289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23291 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
23292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23293 | break 2 | |
23294 | fi | |
23295 | done | |
23296 | done | |
23297 | IFS=$as_save_IFS | |
b66977f1 | 23298 | |
b66977f1 | 23299 | fi |
b66977f1 | 23300 | fi |
7eda51e0 JF |
23301 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
23302 | if test -n "$GNUSTEP_CONFIG"; then | |
23303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
23304 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 23305 | else |
7eda51e0 | 23306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 23307 | $as_echo "no" >&6; } |
b66977f1 | 23308 | fi |
66170b30 | 23309 | |
66170b30 | 23310 | |
7eda51e0 JF |
23311 | test -n "$GNUSTEP_CONFIG" && break |
23312 | done | |
b66977f1 | 23313 | |
b66977f1 | 23314 | |
7eda51e0 | 23315 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 23316 | |
b66977f1 DWT |
23317 | |
23318 | ||
7eda51e0 | 23319 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 23320 | haveit= |
7eda51e0 | 23321 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
23322 | |
23323 | acl_save_prefix="$prefix" | |
23324 | prefix="$acl_final_prefix" | |
23325 | acl_save_exec_prefix="$exec_prefix" | |
23326 | exec_prefix="$acl_final_exec_prefix" | |
23327 | eval x=\"$x\" | |
23328 | exec_prefix="$acl_save_exec_prefix" | |
23329 | prefix="$acl_save_prefix" | |
23330 | ||
23331 | if test "X$x" = "X$element"; then | |
23332 | haveit=yes | |
23333 | break | |
23334 | fi | |
23335 | done | |
babf7fe8 JF |
23336 | if test -z "$haveit"; then |
23337 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
23338 | fi | |
23339 | done | |
a667869d | 23340 | |
a667869d | 23341 | |
babf7fe8 | 23342 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 23343 | haveit= |
babf7fe8 | 23344 | for x in $LIBS; do |
a667869d | 23345 | |
632b71ea DWT |
23346 | acl_save_prefix="$prefix" |
23347 | prefix="$acl_final_prefix" | |
23348 | acl_save_exec_prefix="$exec_prefix" | |
23349 | exec_prefix="$acl_final_exec_prefix" | |
23350 | eval x=\"$x\" | |
23351 | exec_prefix="$acl_save_exec_prefix" | |
23352 | prefix="$acl_save_prefix" | |
23353 | ||
23354 | if test "X$x" = "X$element"; then | |
23355 | haveit=yes | |
23356 | break | |
23357 | fi | |
23358 | done | |
23359 | if test -z "$haveit"; then | |
babf7fe8 | 23360 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
23361 | fi |
23362 | done | |
23363 | ||
5053a6d1 | 23364 | |
babf7fe8 JF |
23365 | else |
23366 | CY_OBJECTIVEC=0 | |
23367 | ||
23368 | fi | |
23369 | ||
23370 | fi | |
23371 | LTOBJECTIVEC=$LIBS | |
23372 | LIBS=$cy_save | |
23373 | ||
23374 | ||
23375 | ||
23376 | fi | |
23377 | ||
23378 | ac_ext=cpp | |
23379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23380 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23381 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23382 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23383 | ||
23384 | ;; #( | |
23385 | *) : | |
23386 | ;; | |
23387 | esac | |
23388 | ||
39ed1631 JF |
23389 | if test "x$CY_JAVA" = x1; then |
23390 | CY_JAVA_TRUE= | |
23391 | CY_JAVA_FALSE='#' | |
23392 | else | |
23393 | CY_JAVA_TRUE='#' | |
23394 | CY_JAVA_FALSE= | |
23395 | fi | |
23396 | ||
babf7fe8 JF |
23397 | if test "x$CY_OBJECTIVEC" = x1; then |
23398 | CY_OBJECTIVEC_TRUE= | |
23399 | CY_OBJECTIVEC_FALSE='#' | |
23400 | else | |
23401 | CY_OBJECTIVEC_TRUE='#' | |
23402 | CY_OBJECTIVEC_FALSE= | |
23403 | fi | |
23404 | ||
23405 | ||
23406 | ||
8d20f0f1 JF |
23407 | # Check whether --with-libclang was given. |
23408 | if test "${with_libclang+set}" = set; then : | |
23409 | withval=$with_libclang; | |
23410 | else | |
23411 | with_libclang=no | |
23412 | fi | |
23413 | ||
23414 | ||
23415 | if test "x$with_libclang" != "xno"; then : | |
23416 | ||
23417 | CY_LIBCLANG="$with_libclang" | |
23418 | ||
23419 | fi | |
23420 | if test "x$with_libclang" != "xno"; then | |
23421 | CY_PRELINK_TRUE= | |
23422 | CY_PRELINK_FALSE='#' | |
23423 | else | |
23424 | CY_PRELINK_TRUE='#' | |
23425 | CY_PRELINK_FALSE= | |
23426 | fi | |
23427 | ||
23428 | ||
23429 | ||
babf7fe8 JF |
23430 | cy_save=$LIBS |
23431 | LIBS= | |
23432 | ||
23433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
23434 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
23435 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 23436 | $as_echo_n "(cached) " >&6 |
a667869d | 23437 | else |
632b71ea | 23438 | |
babf7fe8 JF |
23439 | ORIG_LIBS="$LIBS" |
23440 | for readline_lib in readline edit editline; do | |
23441 | for termcap_lib in "" termcap curses ncurses; do | |
23442 | if test -z "$termcap_lib"; then | |
23443 | TRY_LIB="-l$readline_lib" | |
23444 | else | |
23445 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
23446 | fi | |
23447 | LIBS="$ORIG_LIBS $TRY_LIB" | |
23448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 23449 | /* end confdefs.h. */ |
632b71ea | 23450 | |
babf7fe8 JF |
23451 | /* Override any GCC internal prototype to avoid an error. |
23452 | Use char because int might match the return type of a GCC | |
23453 | builtin and then its argument prototype would still apply. */ | |
23454 | #ifdef __cplusplus | |
23455 | extern "C" | |
23456 | #endif | |
23457 | char readline (); | |
5053a6d1 DWT |
23458 | int |
23459 | main () | |
23460 | { | |
babf7fe8 | 23461 | return readline (); |
5053a6d1 DWT |
23462 | ; |
23463 | return 0; | |
23464 | } | |
23465 | _ACEOF | |
babf7fe8 JF |
23466 | if ac_fn_cxx_try_link "$LINENO"; then : |
23467 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
23468 | fi |
23469 | rm -f core conftest.err conftest.$ac_objext \ | |
23470 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
23471 | if test -n "$ax_cv_lib_readline"; then |
23472 | break | |
23473 | fi | |
23474 | done | |
23475 | if test -n "$ax_cv_lib_readline"; then | |
23476 | break | |
23477 | fi | |
23478 | done | |
23479 | if test -z "$ax_cv_lib_readline"; then | |
23480 | ax_cv_lib_readline="no" | |
23481 | fi | |
23482 | LIBS="$ORIG_LIBS" | |
23483 | ||
23484 | fi | |
23485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
23486 | $as_echo "$ax_cv_lib_readline" >&6; } | |
23487 | ||
23488 | if test "$ax_cv_lib_readline" != "no"; then | |
23489 | LIBS="$LIBS $ax_cv_lib_readline" | |
23490 | ||
23491 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
23492 | ||
23493 | for ac_header in readline.h readline/readline.h | |
23494 | do : | |
23495 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23496 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23497 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
23498 | cat >>confdefs.h <<_ACEOF | |
23499 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23500 | _ACEOF | |
23501 | ||
23502 | fi | |
23503 | ||
23504 | done | |
23505 | ||
23506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
23507 | $as_echo_n "checking whether readline supports history... " >&6; } | |
23508 | if ${ax_cv_lib_readline_history+:} false; then : | |
23509 | $as_echo_n "(cached) " >&6 | |
23510 | else | |
23511 | ||
23512 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
23513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23514 | /* end confdefs.h. */ | |
5053a6d1 | 23515 | |
babf7fe8 JF |
23516 | /* Override any GCC internal prototype to avoid an error. |
23517 | Use char because int might match the return type of a GCC | |
23518 | builtin and then its argument prototype would still apply. */ | |
23519 | #ifdef __cplusplus | |
23520 | extern "C" | |
23521 | #endif | |
23522 | char add_history (); | |
058f1bc8 DWT |
23523 | int |
23524 | main () | |
23525 | { | |
babf7fe8 | 23526 | return add_history (); |
058f1bc8 DWT |
23527 | ; |
23528 | return 0; | |
23529 | } | |
23530 | _ACEOF | |
babf7fe8 JF |
23531 | if ac_fn_cxx_try_link "$LINENO"; then : |
23532 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
23533 | fi |
23534 | rm -f core conftest.err conftest.$ac_objext \ | |
23535 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 23536 | |
a667869d | 23537 | fi |
babf7fe8 JF |
23538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
23539 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
23540 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 23541 | |
babf7fe8 | 23542 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 23543 | |
babf7fe8 JF |
23544 | for ac_header in history.h readline/history.h |
23545 | do : | |
23546 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23547 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23548 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
23549 | cat >>confdefs.h <<_ACEOF | |
23550 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 23551 | _ACEOF |
babf7fe8 | 23552 | |
7eda51e0 | 23553 | fi |
058f1bc8 | 23554 | |
babf7fe8 | 23555 | done |
058f1bc8 | 23556 | |
babf7fe8 | 23557 | fi |
7eda51e0 | 23558 | fi |
058f1bc8 | 23559 | |
babf7fe8 JF |
23560 | LTLIBREADLINE=$LIBS |
23561 | LIBS=$cy_save | |
058f1bc8 | 23562 | |
058f1bc8 | 23563 | |
babf7fe8 JF |
23564 | case $ax_cv_lib_readline in #( |
23565 | no) : | |
23566 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
23567 | *) : | |
23568 | ;; | |
23569 | esac | |
058f1bc8 DWT |
23570 | |
23571 | ||
babf7fe8 JF |
23572 | cy_save=$LIBS |
23573 | LIBS= | |
23574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
23575 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
23576 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
23577 | $as_echo_n "(cached) " >&6 |
23578 | else | |
babf7fe8 JF |
23579 | ac_func_search_save_LIBS=$LIBS |
23580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
23581 | /* end confdefs.h. */ |
23582 | ||
babf7fe8 JF |
23583 | /* Override any GCC internal prototype to avoid an error. |
23584 | Use char because int might match the return type of a GCC | |
23585 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 23586 | #ifdef __cplusplus |
babf7fe8 | 23587 | extern "C" |
7eda51e0 | 23588 | #endif |
babf7fe8 | 23589 | char cur_term (); |
7eda51e0 JF |
23590 | int |
23591 | main () | |
23592 | { | |
babf7fe8 | 23593 | return cur_term (); |
7eda51e0 JF |
23594 | ; |
23595 | return 0; | |
23596 | } | |
23597 | _ACEOF | |
a93f15c0 | 23598 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
23599 | if test -z "$ac_lib"; then |
23600 | ac_res="none required" | |
23601 | else | |
23602 | ac_res=-l$ac_lib | |
23603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23604 | fi | |
23605 | if ac_fn_cxx_try_link "$LINENO"; then : | |
23606 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 23607 | fi |
babf7fe8 JF |
23608 | rm -f core conftest.err conftest.$ac_objext \ |
23609 | conftest$ac_exeext | |
23610 | if ${ac_cv_search_cur_term+:} false; then : | |
23611 | break | |
7eda51e0 | 23612 | fi |
babf7fe8 JF |
23613 | done |
23614 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 23615 | |
babf7fe8 JF |
23616 | else |
23617 | ac_cv_search_cur_term=no | |
23618 | fi | |
23619 | rm conftest.$ac_ext | |
23620 | LIBS=$ac_func_search_save_LIBS | |
23621 | fi | |
23622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
23623 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
23624 | ac_res=$ac_cv_search_cur_term | |
23625 | if test "$ac_res" != no; then : | |
23626 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 23627 | |
babf7fe8 | 23628 | fi |
058f1bc8 | 23629 | |
babf7fe8 JF |
23630 | LTLIBTERMCAP=$LIBS |
23631 | LIBS=$cy_save | |
058f1bc8 | 23632 | |
058f1bc8 | 23633 | |
66170b30 JF |
23634 | |
23635 | ||
3615a2f7 JF |
23636 | |
23637 | ||
9777bd50 JF |
23638 | SO=$acl_shlibext |
23639 | ||
e1cce270 | 23640 | |
a243b558 JF |
23641 | ac_config_files="$ac_config_files Makefile" |
23642 | ||
9c60689e DWT |
23643 | cat >confcache <<\_ACEOF |
23644 | # This file is a shell script that caches the results of configure | |
23645 | # tests run on this system so they can be shared between configure | |
23646 | # scripts and configure runs, see configure's option --config-cache. | |
23647 | # It is not useful on other systems. If it contains results you don't | |
23648 | # want to keep, you may remove or edit it. | |
23649 | # | |
23650 | # config.status only pays attention to the cache file if you give it | |
23651 | # the --recheck option to rerun configure. | |
23652 | # | |
23653 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23654 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23655 | # following values. | |
23656 | ||
23657 | _ACEOF | |
23658 | ||
23659 | # The following way of writing the cache mishandles newlines in values, | |
23660 | # but we know of no workaround that is simple, portable, and efficient. | |
23661 | # So, we kill variables containing newlines. | |
23662 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23663 | # and sets the high bit in the cache file unless we assign to the vars. | |
23664 | ( | |
23665 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23666 | eval ac_val=\$$ac_var | |
23667 | case $ac_val in #( | |
23668 | *${as_nl}*) | |
23669 | case $ac_var in #( | |
23670 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
23671 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
23672 | esac | |
23673 | case $ac_var in #( | |
23674 | _ | IFS | as_nl) ;; #( | |
23675 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
23676 | *) { eval $ac_var=; unset $ac_var;} ;; | |
23677 | esac ;; | |
23678 | esac | |
23679 | done | |
23680 | ||
23681 | (set) 2>&1 | | |
23682 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
23683 | *${as_nl}ac_space=\ *) | |
23684 | # `set' does not quote correctly, so add quotes: double-quote | |
23685 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
23686 | sed -n \ | |
23687 | "s/'/'\\\\''/g; | |
23688 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
23689 | ;; #( | |
23690 | *) | |
23691 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23692 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
23693 | ;; | |
23694 | esac | | |
23695 | sort | |
23696 | ) | | |
23697 | sed ' | |
23698 | /^ac_cv_env_/b end | |
23699 | t clear | |
23700 | :clear | |
23701 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23702 | t end | |
23703 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23704 | :end' >>confcache | |
23705 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
23706 | if test -w "$cache_file"; then | |
ee134472 | 23707 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
23708 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
23709 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
23710 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
23711 | cat confcache >"$cache_file" | |
23712 | else | |
23713 | case $cache_file in #( | |
23714 | */* | ?:*) | |
23715 | mv -f confcache "$cache_file"$$ && | |
23716 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
23717 | *) | |
23718 | mv -f confcache "$cache_file" ;; | |
23719 | esac | |
23720 | fi | |
23721 | fi | |
9c60689e DWT |
23722 | else |
23723 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
23724 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
23725 | fi | |
23726 | fi | |
23727 | rm -f confcache | |
23728 | ||
23729 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23730 | # Let make expand exec_prefix. | |
23731 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23732 | ||
296ee9a6 | 23733 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
23734 | |
23735 | ac_libobjs= | |
23736 | ac_ltlibobjs= | |
12833ad8 | 23737 | U= |
9c60689e DWT |
23738 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
23739 | # 1. Remove the extension, and $U if already installed. | |
23740 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
23741 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
23742 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23743 | # will be set to the directory where LIBOBJS objects are built. | |
23744 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23745 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
23746 | done | |
23747 | LIBOBJS=$ac_libobjs | |
23748 | ||
23749 | LTLIBOBJS=$ac_ltlibobjs | |
23750 | ||
23751 | ||
66170b30 JF |
23752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
23753 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
23754 | if test -n "$am_sleep_pid"; then | |
23755 | # Hide warnings about reused PIDs. | |
23756 | wait $am_sleep_pid 2>/dev/null | |
23757 | fi | |
23758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
23759 | $as_echo "done" >&6; } | |
23760 | if test -n "$EXEEXT"; then | |
23761 | am__EXEEXT_TRUE= | |
23762 | am__EXEEXT_FALSE='#' | |
23763 | else | |
23764 | am__EXEEXT_TRUE='#' | |
23765 | am__EXEEXT_FALSE= | |
23766 | fi | |
23767 | ||
babf7fe8 JF |
23768 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23769 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
23770 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23771 | fi | |
66170b30 JF |
23772 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
23773 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
23774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23775 | fi | |
a93f15c0 JF |
23776 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
23777 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
23778 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23779 | fi | |
66170b30 JF |
23780 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
23781 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
23782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23783 | fi | |
23784 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
23785 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
23786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23787 | fi | |
8d20f0f1 JF |
23788 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
23789 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
23790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23791 | fi | |
23792 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
23793 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
23794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23795 | fi | |
a93f15c0 JF |
23796 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
23797 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
23798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
23799 | fi | |
a4287117 JF |
23800 | if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then |
23801 | as_fn_error $? "conditional \"CY_ATTACH\" was never defined. | |
23802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23803 | fi | |
a243b558 JF |
23804 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
23805 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
23806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23807 | fi | |
39ed1631 JF |
23808 | if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then |
23809 | as_fn_error $? "conditional \"CY_JAVA\" was never defined. | |
23810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23811 | fi | |
a243b558 JF |
23812 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then |
23813 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
23814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23815 | fi | |
8d20f0f1 JF |
23816 | if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then |
23817 | as_fn_error $? "conditional \"CY_PRELINK\" was never defined. | |
23818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
23819 | fi | |
9c60689e | 23820 | |
ee134472 | 23821 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
23822 | ac_write_fail=0 |
23823 | ac_clean_files_save=$ac_clean_files | |
23824 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23825 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
23826 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23827 | as_write_fail=0 | |
23828 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
23829 | #! $SHELL | |
23830 | # Generated by $as_me. | |
23831 | # Run this file to recreate the current configuration. | |
23832 | # Compiler output produced by configure, useful for debugging | |
23833 | # configure, is in config.log if it exists. | |
23834 | ||
23835 | debug=false | |
23836 | ac_cs_recheck=false | |
23837 | ac_cs_silent=false | |
23838 | ||
23839 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23840 | export SHELL | |
23841 | _ASEOF | |
23842 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
23843 | ## -------------------- ## | |
23844 | ## M4sh Initialization. ## | |
23845 | ## -------------------- ## | |
23846 | ||
23847 | # Be more Bourne compatible | |
23848 | DUALCASE=1; export DUALCASE # for MKS sh | |
23849 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
23850 | emulate sh | |
23851 | NULLCMD=: | |
23852 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23853 | # is contrary to our usage. Disable this feature. | |
23854 | alias -g '${1+"$@"}'='"$@"' | |
23855 | setopt NO_GLOB_SUBST | |
23856 | else | |
23857 | case `(set -o) 2>/dev/null` in #( | |
23858 | *posix*) : | |
23859 | set -o posix ;; #( | |
23860 | *) : | |
23861 | ;; | |
23862 | esac | |
23863 | fi | |
23864 | ||
23865 | ||
23866 | as_nl=' | |
23867 | ' | |
23868 | export as_nl | |
23869 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
23870 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
23871 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
23872 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
23873 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
23874 | # but without wasting forks for bash or zsh. | |
23875 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
23876 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
23877 | as_echo='print -r --' | |
23878 | as_echo_n='print -rn --' | |
23879 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
23880 | as_echo='printf %s\n' | |
23881 | as_echo_n='printf %s' | |
23882 | else | |
23883 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
23884 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
23885 | as_echo_n='/usr/ucb/echo -n' | |
23886 | else | |
23887 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
23888 | as_echo_n_body='eval | |
23889 | arg=$1; | |
23890 | case $arg in #( | |
23891 | *"$as_nl"*) | |
23892 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
23893 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
23894 | esac; | |
23895 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
23896 | ' | |
23897 | export as_echo_n_body | |
23898 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
23899 | fi | |
23900 | export as_echo_body | |
23901 | as_echo='sh -c $as_echo_body as_echo' | |
23902 | fi | |
23903 | ||
23904 | # The user is always right. | |
23905 | if test "${PATH_SEPARATOR+set}" != set; then | |
23906 | PATH_SEPARATOR=: | |
23907 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
23908 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
23909 | PATH_SEPARATOR=';' | |
23910 | } | |
23911 | fi | |
23912 | ||
23913 | ||
23914 | # IFS | |
23915 | # We need space, tab and new line, in precisely that order. Quoting is | |
23916 | # there to prevent editors from complaining about space-tab. | |
23917 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
23918 | # splitting by setting IFS to empty value.) | |
23919 | IFS=" "" $as_nl" | |
23920 | ||
23921 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 23922 | as_myself= |
9c60689e DWT |
23923 | case $0 in #(( |
23924 | *[\\/]* ) as_myself=$0 ;; | |
23925 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23926 | for as_dir in $PATH | |
23927 | do | |
23928 | IFS=$as_save_IFS | |
23929 | test -z "$as_dir" && as_dir=. | |
23930 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23931 | done | |
23932 | IFS=$as_save_IFS | |
23933 | ||
23934 | ;; | |
23935 | esac | |
23936 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23937 | # in which case we are not to be found in the path. | |
23938 | if test "x$as_myself" = x; then | |
23939 | as_myself=$0 | |
23940 | fi | |
23941 | if test ! -f "$as_myself"; then | |
23942 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
23943 | exit 1 | |
23944 | fi | |
23945 | ||
23946 | # Unset variables that we do not need and which cause bugs (e.g. in | |
23947 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
23948 | # suppresses any "Segmentation fault" message there. '((' could | |
23949 | # trigger a bug in pdksh 5.2.14. | |
23950 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
23951 | do eval test x\${$as_var+set} = xset \ | |
23952 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
23953 | done | |
23954 | PS1='$ ' | |
23955 | PS2='> ' | |
23956 | PS4='+ ' | |
23957 | ||
23958 | # NLS nuisances. | |
23959 | LC_ALL=C | |
23960 | export LC_ALL | |
23961 | LANGUAGE=C | |
23962 | export LANGUAGE | |
23963 | ||
23964 | # CDPATH. | |
23965 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
23966 | ||
23967 | ||
12833ad8 JF |
23968 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
23969 | # ---------------------------------------- | |
9c60689e DWT |
23970 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
23971 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 23972 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
23973 | as_fn_error () |
23974 | { | |
12833ad8 JF |
23975 | as_status=$1; test $as_status -eq 0 && as_status=1 |
23976 | if test "$4"; then | |
23977 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
23978 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 23979 | fi |
12833ad8 | 23980 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
23981 | as_fn_exit $as_status |
23982 | } # as_fn_error | |
23983 | ||
23984 | ||
23985 | # as_fn_set_status STATUS | |
23986 | # ----------------------- | |
23987 | # Set $? to STATUS, without forking. | |
23988 | as_fn_set_status () | |
23989 | { | |
23990 | return $1 | |
23991 | } # as_fn_set_status | |
23992 | ||
23993 | # as_fn_exit STATUS | |
23994 | # ----------------- | |
23995 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
23996 | as_fn_exit () | |
23997 | { | |
23998 | set +e | |
23999 | as_fn_set_status $1 | |
24000 | exit $1 | |
24001 | } # as_fn_exit | |
24002 | ||
24003 | # as_fn_unset VAR | |
24004 | # --------------- | |
24005 | # Portably unset VAR. | |
24006 | as_fn_unset () | |
24007 | { | |
24008 | { eval $1=; unset $1;} | |
24009 | } | |
24010 | as_unset=as_fn_unset | |
24011 | # as_fn_append VAR VALUE | |
24012 | # ---------------------- | |
24013 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
24014 | # advantage of any shell optimizations that allow amortized linear growth over | |
24015 | # repeated appends, instead of the typical quadratic growth present in naive | |
24016 | # implementations. | |
24017 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
24018 | eval 'as_fn_append () | |
24019 | { | |
24020 | eval $1+=\$2 | |
24021 | }' | |
24022 | else | |
24023 | as_fn_append () | |
24024 | { | |
24025 | eval $1=\$$1\$2 | |
24026 | } | |
24027 | fi # as_fn_append | |
24028 | ||
24029 | # as_fn_arith ARG... | |
24030 | # ------------------ | |
24031 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
24032 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
24033 | # must be portable across $(()) and expr. | |
24034 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
24035 | eval 'as_fn_arith () | |
24036 | { | |
24037 | as_val=$(( $* )) | |
24038 | }' | |
24039 | else | |
24040 | as_fn_arith () | |
24041 | { | |
24042 | as_val=`expr "$@" || test $? -eq 1` | |
24043 | } | |
24044 | fi # as_fn_arith | |
24045 | ||
24046 | ||
24047 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
24048 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
24049 | as_expr=expr | |
24050 | else | |
24051 | as_expr=false | |
24052 | fi | |
24053 | ||
24054 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
24055 | as_basename=basename | |
24056 | else | |
24057 | as_basename=false | |
24058 | fi | |
24059 | ||
24060 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
24061 | as_dirname=dirname | |
24062 | else | |
24063 | as_dirname=false | |
24064 | fi | |
24065 | ||
24066 | as_me=`$as_basename -- "$0" || | |
24067 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
24068 | X"$0" : 'X\(//\)$' \| \ | |
24069 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
24070 | $as_echo X/"$0" | | |
24071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
24072 | s//\1/ | |
24073 | q | |
24074 | } | |
24075 | /^X\/\(\/\/\)$/{ | |
24076 | s//\1/ | |
24077 | q | |
24078 | } | |
24079 | /^X\/\(\/\).*/{ | |
24080 | s//\1/ | |
24081 | q | |
24082 | } | |
24083 | s/.*/./; q'` | |
24084 | ||
24085 | # Avoid depending upon Character Ranges. | |
24086 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24087 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24088 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24089 | as_cr_digits='0123456789' | |
24090 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24091 | ||
24092 | ECHO_C= ECHO_N= ECHO_T= | |
24093 | case `echo -n x` in #((((( | |
24094 | -n*) | |
24095 | case `echo 'xy\c'` in | |
24096 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24097 | xy) ECHO_C='\c';; | |
24098 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
24099 | ECHO_T=' ';; | |
24100 | esac;; | |
24101 | *) | |
24102 | ECHO_N='-n';; | |
24103 | esac | |
24104 | ||
24105 | rm -f conf$$ conf$$.exe conf$$.file | |
24106 | if test -d conf$$.dir; then | |
24107 | rm -f conf$$.dir/conf$$.file | |
24108 | else | |
24109 | rm -f conf$$.dir | |
24110 | mkdir conf$$.dir 2>/dev/null | |
24111 | fi | |
24112 | if (echo >conf$$.file) 2>/dev/null; then | |
24113 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
24114 | as_ln_s='ln -s' | |
24115 | # ... but there are two gotchas: | |
24116 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24117 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 24118 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 24119 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 24120 | as_ln_s='cp -pR' |
9c60689e DWT |
24121 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24122 | as_ln_s=ln | |
24123 | else | |
53ba6704 | 24124 | as_ln_s='cp -pR' |
9c60689e DWT |
24125 | fi |
24126 | else | |
53ba6704 | 24127 | as_ln_s='cp -pR' |
9c60689e DWT |
24128 | fi |
24129 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
24130 | rmdir conf$$.dir 2>/dev/null | |
24131 | ||
24132 | ||
24133 | # as_fn_mkdir_p | |
24134 | # ------------- | |
24135 | # Create "$as_dir" as a directory, including parents if necessary. | |
24136 | as_fn_mkdir_p () | |
24137 | { | |
24138 | ||
24139 | case $as_dir in #( | |
24140 | -*) as_dir=./$as_dir;; | |
24141 | esac | |
24142 | test -d "$as_dir" || eval $as_mkdir_p || { | |
24143 | as_dirs= | |
24144 | while :; do | |
24145 | case $as_dir in #( | |
24146 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
24147 | *) as_qdir=$as_dir;; | |
24148 | esac | |
24149 | as_dirs="'$as_qdir' $as_dirs" | |
24150 | as_dir=`$as_dirname -- "$as_dir" || | |
24151 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24152 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24153 | X"$as_dir" : 'X\(//\)$' \| \ | |
24154 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
24155 | $as_echo X"$as_dir" | | |
24156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
24157 | s//\1/ | |
24158 | q | |
24159 | } | |
24160 | /^X\(\/\/\)[^/].*/{ | |
24161 | s//\1/ | |
24162 | q | |
24163 | } | |
24164 | /^X\(\/\/\)$/{ | |
24165 | s//\1/ | |
24166 | q | |
24167 | } | |
24168 | /^X\(\/\).*/{ | |
24169 | s//\1/ | |
24170 | q | |
24171 | } | |
24172 | s/.*/./; q'` | |
24173 | test -d "$as_dir" && break | |
24174 | done | |
24175 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 24176 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
24177 | |
24178 | ||
24179 | } # as_fn_mkdir_p | |
24180 | if mkdir -p . 2>/dev/null; then | |
24181 | as_mkdir_p='mkdir -p "$as_dir"' | |
24182 | else | |
24183 | test -d ./-p && rmdir ./-p | |
24184 | as_mkdir_p=false | |
24185 | fi | |
24186 | ||
53ba6704 JF |
24187 | |
24188 | # as_fn_executable_p FILE | |
24189 | # ----------------------- | |
24190 | # Test if FILE is an executable regular file. | |
24191 | as_fn_executable_p () | |
24192 | { | |
24193 | test -f "$1" && test -x "$1" | |
24194 | } # as_fn_executable_p | |
24195 | as_test_x='test -x' | |
24196 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
24197 | |
24198 | # Sed expression to map a string onto a valid CPP name. | |
24199 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24200 | ||
24201 | # Sed expression to map a string onto a valid variable name. | |
24202 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24203 | ||
24204 | ||
24205 | exec 6>&1 | |
24206 | ## ----------------------------------- ## | |
24207 | ## Main body of $CONFIG_STATUS script. ## | |
24208 | ## ----------------------------------- ## | |
24209 | _ASEOF | |
24210 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
24211 | ||
24212 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24213 | # Save the log message, to keep $0 and so on meaningful, and to | |
24214 | # report actual input values of CONFIG_FILES etc. instead of their | |
24215 | # values after options handling. | |
24216 | ac_log=" | |
24217 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 24218 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
24219 | |
24220 | CONFIG_FILES = $CONFIG_FILES | |
24221 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24222 | CONFIG_LINKS = $CONFIG_LINKS | |
24223 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24224 | $ $0 $@ | |
24225 | ||
24226 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
24227 | " | |
24228 | ||
24229 | _ACEOF | |
24230 | ||
24231 | case $ac_config_files in *" | |
24232 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
24233 | esac | |
24234 | ||
296ee9a6 JF |
24235 | case $ac_config_headers in *" |
24236 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
24237 | esac | |
9c60689e DWT |
24238 | |
24239 | ||
24240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24241 | # Files that config.status was made for. | |
24242 | config_files="$ac_config_files" | |
296ee9a6 | 24243 | config_headers="$ac_config_headers" |
9c60689e DWT |
24244 | config_commands="$ac_config_commands" |
24245 | ||
24246 | _ACEOF | |
24247 | ||
24248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24249 | ac_cs_usage="\ | |
24250 | \`$as_me' instantiates files and other configuration actions | |
24251 | from templates according to the current configuration. Unless the files | |
24252 | and actions are specified as TAGs, all are instantiated by default. | |
24253 | ||
24254 | Usage: $0 [OPTION]... [TAG]... | |
24255 | ||
24256 | -h, --help print this help, then exit | |
24257 | -V, --version print version number and configuration settings, then exit | |
24258 | --config print configuration, then exit | |
24259 | -q, --quiet, --silent | |
24260 | do not print progress messages | |
24261 | -d, --debug don't remove temporary files | |
24262 | --recheck update $as_me by reconfiguring in the same conditions | |
24263 | --file=FILE[:TEMPLATE] | |
24264 | instantiate the configuration file FILE | |
296ee9a6 JF |
24265 | --header=FILE[:TEMPLATE] |
24266 | instantiate the configuration header FILE | |
9c60689e DWT |
24267 | |
24268 | Configuration files: | |
24269 | $config_files | |
24270 | ||
296ee9a6 JF |
24271 | Configuration headers: |
24272 | $config_headers | |
24273 | ||
9c60689e DWT |
24274 | Configuration commands: |
24275 | $config_commands | |
24276 | ||
24277 | Report bugs to <saurik@saurik.com>. | |
24278 | Cycript home page: <http://www.cycript.org/>." | |
24279 | ||
24280 | _ACEOF | |
24281 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24282 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
24283 | ac_cs_version="\\ | |
24284 | Cycript config.status 0.9 | |
53ba6704 | 24285 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
24286 | with options \\"\$ac_cs_config\\" |
24287 | ||
53ba6704 | 24288 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
24289 | This config.status script is free software; the Free Software Foundation |
24290 | gives unlimited permission to copy, distribute and modify it." | |
24291 | ||
24292 | ac_pwd='$ac_pwd' | |
24293 | srcdir='$srcdir' | |
24294 | INSTALL='$INSTALL' | |
66170b30 JF |
24295 | MKDIR_P='$MKDIR_P' |
24296 | AWK='$AWK' | |
9c60689e DWT |
24297 | test -n "\$AWK" || AWK=awk |
24298 | _ACEOF | |
24299 | ||
24300 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24301 | # The default lists apply if the user does not specify any file. | |
24302 | ac_need_defaults=: | |
24303 | while test $# != 0 | |
24304 | do | |
24305 | case $1 in | |
12833ad8 | 24306 | --*=?*) |
9c60689e DWT |
24307 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24308 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
24309 | ac_shift=: | |
24310 | ;; | |
12833ad8 JF |
24311 | --*=) |
24312 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
24313 | ac_optarg= | |
24314 | ac_shift=: | |
24315 | ;; | |
9c60689e DWT |
24316 | *) |
24317 | ac_option=$1 | |
24318 | ac_optarg=$2 | |
24319 | ac_shift=shift | |
24320 | ;; | |
24321 | esac | |
24322 | ||
24323 | case $ac_option in | |
24324 | # Handling of the options. | |
24325 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24326 | ac_cs_recheck=: ;; | |
24327 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
24328 | $as_echo "$ac_cs_version"; exit ;; | |
24329 | --config | --confi | --conf | --con | --co | --c ) | |
24330 | $as_echo "$ac_cs_config"; exit ;; | |
24331 | --debug | --debu | --deb | --de | --d | -d ) | |
24332 | debug=: ;; | |
24333 | --file | --fil | --fi | --f ) | |
24334 | $ac_shift | |
24335 | case $ac_optarg in | |
24336 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 24337 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
24338 | esac |
24339 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
24340 | ac_need_defaults=false;; | |
296ee9a6 JF |
24341 | --header | --heade | --head | --hea ) |
24342 | $ac_shift | |
24343 | case $ac_optarg in | |
24344 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
24345 | esac | |
24346 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
24347 | ac_need_defaults=false;; | |
24348 | --he | --h) | |
24349 | # Conflict between --help and --header | |
24350 | as_fn_error $? "ambiguous option: \`$1' | |
24351 | Try \`$0 --help' for more information.";; | |
24352 | --help | --hel | -h ) | |
9c60689e DWT |
24353 | $as_echo "$ac_cs_usage"; exit ;; |
24354 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24355 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24356 | ac_cs_silent=: ;; | |
24357 | ||
24358 | # This is an error. | |
12833ad8 | 24359 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
24360 | Try \`$0 --help' for more information." ;; |
24361 | ||
24362 | *) as_fn_append ac_config_targets " $1" | |
24363 | ac_need_defaults=false ;; | |
24364 | ||
24365 | esac | |
24366 | shift | |
24367 | done | |
24368 | ||
24369 | ac_configure_extra_args= | |
24370 | ||
24371 | if $ac_cs_silent; then | |
24372 | exec 6>/dev/null | |
24373 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24374 | fi | |
24375 | ||
24376 | _ACEOF | |
24377 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24378 | if \$ac_cs_recheck; then | |
53ba6704 | 24379 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
24380 | shift |
24381 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
24382 | CONFIG_SHELL='$SHELL' | |
24383 | export CONFIG_SHELL | |
24384 | exec "\$@" | |
24385 | fi | |
24386 | ||
24387 | _ACEOF | |
24388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24389 | exec 5>>config.log | |
24390 | { | |
24391 | echo | |
24392 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24393 | ## Running $as_me. ## | |
24394 | _ASBOX | |
24395 | $as_echo "$ac_log" | |
24396 | } >&5 | |
24397 | ||
24398 | _ACEOF | |
24399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24400 | # | |
24401 | # INIT-COMMANDS | |
24402 | # | |
66170b30 | 24403 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
24404 | |
24405 | ||
24406 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
24407 | # if CDPATH is set. | |
24408 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
24409 | ||
24410 | sed_quote_subst='$sed_quote_subst' | |
24411 | double_quote_subst='$double_quote_subst' | |
24412 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
24413 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
24414 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
24415 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
24416 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
24417 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
24418 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24419 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24420 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
24421 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 24422 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24423 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
24424 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
24425 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
24426 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
24427 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
24428 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
24429 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
24430 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
24431 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
24432 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
24433 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
24434 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
24435 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
24436 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
24437 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
24438 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
24439 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
24440 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
24441 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
24442 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
24443 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
24444 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
24445 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
24446 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
24447 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
24448 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
24449 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
24450 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
24451 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
24452 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
24453 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
24454 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
24455 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
24456 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
24457 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
24458 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
24459 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24460 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24461 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
24462 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
24463 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
24464 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
24465 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
24466 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
24467 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
24468 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24469 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24470 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
24471 | 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 | 24472 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24473 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
24474 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 24475 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
24476 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
24477 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
24478 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
24479 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
24480 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
24481 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
24482 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
24483 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
24484 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
24485 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
24486 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
24487 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
24488 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
24489 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
24490 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
24491 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
24492 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
24493 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
24494 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
24495 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
24496 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
24497 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
24498 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
24499 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
24500 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
24501 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
24502 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
24503 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
24504 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
24505 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
24506 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
24507 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24508 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
24509 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
24510 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
24511 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
24512 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
24513 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
24514 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
24515 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
24516 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
24517 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
24518 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
24519 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
24520 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
24521 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
24522 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
24523 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
24524 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
24525 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
24526 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
24527 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
24528 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
24529 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
24530 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
24531 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
24532 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
24533 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
24534 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24535 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
24536 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
24537 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
24538 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
24539 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
9d54db95 JF |
24540 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
24541 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24542 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
24543 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
24544 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
24545 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
24546 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
24547 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
24548 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
24549 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
24550 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
24551 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
24552 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
24553 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
24554 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
24555 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24556 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24557 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24558 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
24559 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
24560 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24561 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
24562 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
24563 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
24564 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
24565 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
24566 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
24567 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24568 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24569 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
24570 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24571 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24572 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24573 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24574 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24575 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24576 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
24577 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24578 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
24579 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
24580 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
24581 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
24582 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
24583 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
24584 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
24585 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
24586 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
24587 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
24588 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
24589 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24590 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
24591 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
24592 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24593 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
24594 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
24595 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
24596 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
24597 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
24598 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
24599 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
24600 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
24601 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
24602 | |
24603 | LTCC='$LTCC' | |
24604 | LTCFLAGS='$LTCFLAGS' | |
24605 | compiler='$compiler_DEFAULT' | |
24606 | ||
ee134472 JF |
24607 | # A function that is used when there is no print builtin or printf. |
24608 | func_fallback_echo () | |
24609 | { | |
24610 | eval 'cat <<_LTECHO_EOF | |
24611 | \$1 | |
24612 | _LTECHO_EOF' | |
24613 | } | |
24614 | ||
9c60689e | 24615 | # Quote evaled strings. |
ee134472 JF |
24616 | for var in SHELL \ |
24617 | ECHO \ | |
53ba6704 | 24618 | PATH_SEPARATOR \ |
ee134472 | 24619 | SED \ |
9c60689e DWT |
24620 | GREP \ |
24621 | EGREP \ | |
24622 | FGREP \ | |
24623 | LD \ | |
24624 | NM \ | |
24625 | LN_S \ | |
24626 | lt_SP2NL \ | |
24627 | lt_NL2SP \ | |
24628 | reload_flag \ | |
24629 | OBJDUMP \ | |
24630 | deplibs_check_method \ | |
24631 | file_magic_cmd \ | |
ee134472 JF |
24632 | file_magic_glob \ |
24633 | want_nocaseglob \ | |
24634 | DLLTOOL \ | |
24635 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
24636 | AR \ |
24637 | AR_FLAGS \ | |
ee134472 | 24638 | archiver_list_spec \ |
9c60689e DWT |
24639 | STRIP \ |
24640 | RANLIB \ | |
24641 | CC \ | |
24642 | CFLAGS \ | |
24643 | compiler \ | |
24644 | lt_cv_sys_global_symbol_pipe \ | |
24645 | lt_cv_sys_global_symbol_to_cdecl \ | |
9d54db95 | 24646 | lt_cv_sys_global_symbol_to_import \ |
9c60689e DWT |
24647 | lt_cv_sys_global_symbol_to_c_name_address \ |
24648 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
9d54db95 | 24649 | lt_cv_nm_interface \ |
ee134472 | 24650 | nm_file_list_spec \ |
9d54db95 | 24651 | lt_cv_truncate_bin \ |
9c60689e | 24652 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 24653 | lt_prog_compiler_pic \ |
ee134472 | 24654 | lt_prog_compiler_wl \ |
9c60689e DWT |
24655 | lt_prog_compiler_static \ |
24656 | lt_cv_prog_compiler_c_o \ | |
24657 | need_locks \ | |
ee134472 | 24658 | MANIFEST_TOOL \ |
9c60689e DWT |
24659 | DSYMUTIL \ |
24660 | NMEDIT \ | |
24661 | LIPO \ | |
24662 | OTOOL \ | |
24663 | OTOOL64 \ | |
24664 | shrext_cmds \ | |
24665 | export_dynamic_flag_spec \ | |
24666 | whole_archive_flag_spec \ | |
24667 | compiler_needs_object \ | |
24668 | with_gnu_ld \ | |
24669 | allow_undefined_flag \ | |
24670 | no_undefined_flag \ | |
24671 | hardcode_libdir_flag_spec \ | |
9c60689e | 24672 | hardcode_libdir_separator \ |
9c60689e DWT |
24673 | exclude_expsyms \ |
24674 | include_expsyms \ | |
24675 | file_list_spec \ | |
24676 | variables_saved_for_relink \ | |
24677 | libname_spec \ | |
24678 | library_names_spec \ | |
24679 | soname_spec \ | |
ee134472 | 24680 | install_override_mode \ |
9c60689e DWT |
24681 | finish_eval \ |
24682 | old_striplib \ | |
24683 | striplib \ | |
24684 | compiler_lib_search_dirs \ | |
24685 | predep_objects \ | |
24686 | postdep_objects \ | |
24687 | predeps \ | |
24688 | postdeps \ | |
24689 | compiler_lib_search_path \ | |
24690 | LD_CXX \ | |
ee134472 | 24691 | reload_flag_CXX \ |
9c60689e DWT |
24692 | compiler_CXX \ |
24693 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 24694 | lt_prog_compiler_pic_CXX \ |
ee134472 | 24695 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
24696 | lt_prog_compiler_static_CXX \ |
24697 | lt_cv_prog_compiler_c_o_CXX \ | |
24698 | export_dynamic_flag_spec_CXX \ | |
24699 | whole_archive_flag_spec_CXX \ | |
24700 | compiler_needs_object_CXX \ | |
24701 | with_gnu_ld_CXX \ | |
24702 | allow_undefined_flag_CXX \ | |
24703 | no_undefined_flag_CXX \ | |
24704 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 24705 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
24706 | exclude_expsyms_CXX \ |
24707 | include_expsyms_CXX \ | |
24708 | file_list_spec_CXX \ | |
24709 | compiler_lib_search_dirs_CXX \ | |
24710 | predep_objects_CXX \ | |
24711 | postdep_objects_CXX \ | |
24712 | predeps_CXX \ | |
24713 | postdeps_CXX \ | |
24714 | compiler_lib_search_path_CXX; do | |
ee134472 | 24715 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 24716 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 24717 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
24718 | ;; |
24719 | *) | |
24720 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
24721 | ;; | |
24722 | esac | |
24723 | done | |
24724 | ||
24725 | # Double-quote double-evaled strings. | |
24726 | for var in reload_cmds \ | |
24727 | old_postinstall_cmds \ | |
24728 | old_postuninstall_cmds \ | |
24729 | old_archive_cmds \ | |
24730 | extract_expsyms_cmds \ | |
24731 | old_archive_from_new_cmds \ | |
24732 | old_archive_from_expsyms_cmds \ | |
24733 | archive_cmds \ | |
24734 | archive_expsym_cmds \ | |
24735 | module_cmds \ | |
24736 | module_expsym_cmds \ | |
24737 | export_symbols_cmds \ | |
24738 | prelink_cmds \ | |
ee134472 | 24739 | postlink_cmds \ |
9c60689e DWT |
24740 | postinstall_cmds \ |
24741 | postuninstall_cmds \ | |
24742 | finish_cmds \ | |
24743 | sys_lib_search_path_spec \ | |
9d54db95 JF |
24744 | configure_time_dlsearch_path \ |
24745 | configure_time_lt_sys_library_path \ | |
ee134472 | 24746 | reload_cmds_CXX \ |
9c60689e DWT |
24747 | old_archive_cmds_CXX \ |
24748 | old_archive_from_new_cmds_CXX \ | |
24749 | old_archive_from_expsyms_cmds_CXX \ | |
24750 | archive_cmds_CXX \ | |
24751 | archive_expsym_cmds_CXX \ | |
24752 | module_cmds_CXX \ | |
24753 | module_expsym_cmds_CXX \ | |
24754 | export_symbols_cmds_CXX \ | |
ee134472 JF |
24755 | prelink_cmds_CXX \ |
24756 | postlink_cmds_CXX; do | |
24757 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 24758 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 24759 | 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 |
24760 | ;; |
24761 | *) | |
24762 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
24763 | ;; | |
24764 | esac | |
24765 | done | |
24766 | ||
9c60689e | 24767 | ac_aux_dir='$ac_aux_dir' |
9c60689e | 24768 | |
9d54db95 | 24769 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 24770 | # commands through without removal of \ escapes INIT. |
9d54db95 | 24771 | if test -n "\${ZSH_VERSION+set}"; then |
9c60689e DWT |
24772 | setopt NO_GLOB_SUBST |
24773 | fi | |
24774 | ||
24775 | ||
24776 | PACKAGE='$PACKAGE' | |
24777 | VERSION='$VERSION' | |
9c60689e DWT |
24778 | RM='$RM' |
24779 | ofile='$ofile' | |
24780 | ||
24781 | ||
24782 | ||
24783 | ||
24784 | ||
24785 | ||
24786 | _ACEOF | |
24787 | ||
24788 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24789 | ||
24790 | # Handling of arguments. | |
24791 | for ac_config_target in $ac_config_targets | |
24792 | do | |
24793 | case $ac_config_target in | |
296ee9a6 | 24794 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 24795 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 24796 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 24797 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 24798 | |
ee134472 | 24799 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
24800 | esac |
24801 | done | |
24802 | ||
24803 | ||
24804 | # If the user did not use the arguments to specify the items to instantiate, | |
24805 | # then the envvar interface is used. Set only those that are not. | |
24806 | # We use the long form for the default assignment because of an extremely | |
24807 | # bizarre bug on SunOS 4.1.3. | |
24808 | if $ac_need_defaults; then | |
24809 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 24810 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
24811 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
24812 | fi | |
24813 | ||
24814 | # Have a temporary directory for convenience. Make it in the build tree | |
24815 | # simply because there is no reason against having it here, and in addition, | |
24816 | # creating and moving files from /tmp can sometimes cause problems. | |
24817 | # Hook for its removal unless debugging. | |
24818 | # Note that there is a small window in which the directory will not be cleaned: | |
24819 | # after its creation but before its name has been assigned to `$tmp'. | |
24820 | $debug || | |
24821 | { | |
ee134472 | 24822 | tmp= ac_tmp= |
9c60689e | 24823 | trap 'exit_status=$? |
ee134472 JF |
24824 | : "${ac_tmp:=$tmp}" |
24825 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
24826 | ' 0 |
24827 | trap 'as_fn_exit 1' 1 2 13 15 | |
24828 | } | |
24829 | # Create a (secure) tmp directory for tmp files. | |
24830 | ||
24831 | { | |
24832 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 24833 | test -d "$tmp" |
9c60689e DWT |
24834 | } || |
24835 | { | |
24836 | tmp=./conf$$-$RANDOM | |
24837 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 24838 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 24839 | ac_tmp=$tmp |
9c60689e DWT |
24840 | |
24841 | # Set up the scripts for CONFIG_FILES section. | |
24842 | # No need to generate them if there are no CONFIG_FILES. | |
24843 | # This happens for instance with `./config.status config.h'. | |
24844 | if test -n "$CONFIG_FILES"; then | |
24845 | ||
24846 | ||
24847 | ac_cr=`echo X | tr X '\015'` | |
24848 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
24849 | # But we know of no other shell where ac_cr would be empty at this | |
24850 | # point, so we can use a bashism as a fallback. | |
24851 | if test "x$ac_cr" = x; then | |
24852 | eval ac_cr=\$\'\\r\' | |
24853 | fi | |
24854 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
24855 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 24856 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
24857 | else |
24858 | ac_cs_awk_cr=$ac_cr | |
24859 | fi | |
24860 | ||
ee134472 | 24861 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
24862 | _ACEOF |
24863 | ||
24864 | ||
24865 | { | |
24866 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
24867 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
24868 | echo "_ACEOF" | |
24869 | } >conf$$subs.sh || | |
12833ad8 JF |
24870 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
24871 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
24872 | ac_delim='%!_!# ' |
24873 | for ac_last_try in false false false false false :; do | |
24874 | . ./conf$$subs.sh || | |
12833ad8 | 24875 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
24876 | |
24877 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
24878 | if test $ac_delim_n = $ac_delim_num; then | |
24879 | break | |
24880 | elif $ac_last_try; then | |
12833ad8 | 24881 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
24882 | else |
24883 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24884 | fi | |
24885 | done | |
24886 | rm -f conf$$subs.sh | |
24887 | ||
24888 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 24889 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
24890 | _ACEOF |
24891 | sed -n ' | |
24892 | h | |
24893 | s/^/S["/; s/!.*/"]=/ | |
24894 | p | |
24895 | g | |
24896 | s/^[^!]*!// | |
24897 | :repl | |
24898 | t repl | |
24899 | s/'"$ac_delim"'$// | |
24900 | t delim | |
24901 | :nl | |
24902 | h | |
24903 | s/\(.\{148\}\)..*/\1/ | |
24904 | t more1 | |
24905 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
24906 | p | |
24907 | n | |
24908 | b repl | |
24909 | :more1 | |
24910 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
24911 | p | |
24912 | g | |
24913 | s/.\{148\}// | |
24914 | t nl | |
24915 | :delim | |
24916 | h | |
24917 | s/\(.\{148\}\)..*/\1/ | |
24918 | t more2 | |
24919 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
24920 | p | |
24921 | b | |
24922 | :more2 | |
24923 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
24924 | p | |
24925 | g | |
24926 | s/.\{148\}// | |
24927 | t delim | |
24928 | ' <conf$$subs.awk | sed ' | |
24929 | /^[^""]/{ | |
24930 | N | |
24931 | s/\n// | |
24932 | } | |
24933 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
24934 | rm -f conf$$subs.awk | |
24935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24936 | _ACAWK | |
ee134472 | 24937 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
24938 | for (key in S) S_is_set[key] = 1 |
24939 | FS = "\a" | |
24940 | ||
24941 | } | |
24942 | { | |
24943 | line = $ 0 | |
24944 | nfields = split(line, field, "@") | |
24945 | substed = 0 | |
24946 | len = length(field[1]) | |
24947 | for (i = 2; i < nfields; i++) { | |
24948 | key = field[i] | |
24949 | keylen = length(key) | |
24950 | if (S_is_set[key]) { | |
24951 | value = S[key] | |
24952 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
24953 | len += length(value) + length(field[++i]) | |
24954 | substed = 1 | |
24955 | } else | |
24956 | len += 1 + keylen | |
24957 | } | |
24958 | ||
24959 | print line | |
24960 | } | |
24961 | ||
24962 | _ACAWK | |
24963 | _ACEOF | |
24964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24965 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
24966 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
24967 | else | |
24968 | cat | |
ee134472 | 24969 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 24970 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
24971 | _ACEOF |
24972 | ||
12833ad8 JF |
24973 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
24974 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
24975 | # trailing colons and then remove the whole line if VPATH becomes empty |
24976 | # (actually we leave an empty line to preserve line numbers). | |
24977 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
24978 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
24979 | h | |
24980 | s/// | |
24981 | s/^/:/ | |
24982 | s/[ ]*$/:/ | |
24983 | s/:\$(srcdir):/:/g | |
24984 | s/:\${srcdir}:/:/g | |
24985 | s/:@srcdir@:/:/g | |
24986 | s/^:*// | |
9c60689e | 24987 | s/:*$// |
12833ad8 JF |
24988 | x |
24989 | s/\(=[ ]*\).*/\1/ | |
24990 | G | |
24991 | s/\n// | |
9c60689e DWT |
24992 | s/^[^=]*=[ ]*$// |
24993 | }' | |
24994 | fi | |
24995 | ||
24996 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24997 | fi # test -n "$CONFIG_FILES" | |
24998 | ||
296ee9a6 JF |
24999 | # Set up the scripts for CONFIG_HEADERS section. |
25000 | # No need to generate them if there are no CONFIG_HEADERS. | |
25001 | # This happens for instance with `./config.status Makefile'. | |
25002 | if test -n "$CONFIG_HEADERS"; then | |
25003 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
25004 | BEGIN { | |
25005 | _ACEOF | |
25006 | ||
25007 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
25008 | # here-document in config.status, that substitutes the proper values into | |
25009 | # config.h.in to produce config.h. | |
25010 | ||
25011 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
25012 | # handling of long lines. | |
25013 | ac_delim='%!_!# ' | |
25014 | for ac_last_try in false false :; do | |
25015 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
25016 | if test -z "$ac_tt"; then | |
25017 | break | |
25018 | elif $ac_last_try; then | |
25019 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
25020 | else | |
25021 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25022 | fi | |
25023 | done | |
25024 | ||
25025 | # For the awk script, D is an array of macro values keyed by name, | |
25026 | # likewise P contains macro parameters if any. Preserve backslash | |
25027 | # newline sequences. | |
25028 | ||
25029 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
25030 | sed -n ' | |
25031 | s/.\{148\}/&'"$ac_delim"'/g | |
25032 | t rset | |
25033 | :rset | |
25034 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
25035 | t def | |
25036 | d | |
25037 | :def | |
25038 | s/\\$// | |
25039 | t bsnl | |
25040 | s/["\\]/\\&/g | |
25041 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25042 | D["\1"]=" \3"/p | |
25043 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
25044 | d | |
25045 | :bsnl | |
25046 | s/["\\]/\\&/g | |
25047 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25048 | D["\1"]=" \3\\\\\\n"\\/p | |
25049 | t cont | |
25050 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
25051 | t cont | |
25052 | d | |
25053 | :cont | |
25054 | n | |
25055 | s/.\{148\}/&'"$ac_delim"'/g | |
25056 | t clear | |
25057 | :clear | |
25058 | s/\\$// | |
25059 | t bsnlc | |
25060 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
25061 | d | |
25062 | :bsnlc | |
25063 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
25064 | b cont | |
25065 | ' <confdefs.h | sed ' | |
25066 | s/'"$ac_delim"'/"\\\ | |
25067 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
25068 | ||
25069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25070 | for (key in D) D_is_set[key] = 1 | |
25071 | FS = "\a" | |
25072 | } | |
25073 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
25074 | line = \$ 0 | |
25075 | split(line, arg, " ") | |
25076 | if (arg[1] == "#") { | |
25077 | defundef = arg[2] | |
25078 | mac1 = arg[3] | |
25079 | } else { | |
25080 | defundef = substr(arg[1], 2) | |
25081 | mac1 = arg[2] | |
25082 | } | |
25083 | split(mac1, mac2, "(") #) | |
25084 | macro = mac2[1] | |
25085 | prefix = substr(line, 1, index(line, defundef) - 1) | |
25086 | if (D_is_set[macro]) { | |
25087 | # Preserve the white space surrounding the "#". | |
25088 | print prefix "define", macro P[macro] D[macro] | |
25089 | next | |
25090 | } else { | |
25091 | # Replace #undef with comments. This is necessary, for example, | |
25092 | # in the case of _POSIX_SOURCE, which is predefined and required | |
25093 | # on some systems where configure will not decide to define it. | |
25094 | if (defundef == "undef") { | |
25095 | print "/*", prefix defundef, macro, "*/" | |
25096 | next | |
25097 | } | |
25098 | } | |
25099 | } | |
25100 | { print } | |
25101 | _ACAWK | |
25102 | _ACEOF | |
25103 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25104 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
25105 | fi # test -n "$CONFIG_HEADERS" | |
25106 | ||
9c60689e | 25107 | |
296ee9a6 | 25108 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
25109 | shift |
25110 | for ac_tag | |
25111 | do | |
25112 | case $ac_tag in | |
25113 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
25114 | esac | |
25115 | case $ac_mode$ac_tag in | |
25116 | :[FHL]*:*);; | |
ee134472 | 25117 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
25118 | :[FH]-) ac_tag=-:-;; |
25119 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25120 | esac | |
25121 | ac_save_IFS=$IFS | |
25122 | IFS=: | |
25123 | set x $ac_tag | |
25124 | IFS=$ac_save_IFS | |
25125 | shift | |
25126 | ac_file=$1 | |
25127 | shift | |
25128 | ||
25129 | case $ac_mode in | |
25130 | :L) ac_source=$1;; | |
25131 | :[FH]) | |
25132 | ac_file_inputs= | |
25133 | for ac_f | |
25134 | do | |
25135 | case $ac_f in | |
ee134472 | 25136 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
25137 | *) # Look for the file first in the build tree, then in the source tree |
25138 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
25139 | # because $ac_f cannot contain `:'. | |
25140 | test -f "$ac_f" || | |
25141 | case $ac_f in | |
25142 | [\\/$]*) false;; | |
25143 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
25144 | esac || | |
ee134472 | 25145 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
25146 | esac |
25147 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
25148 | as_fn_append ac_file_inputs " '$ac_f'" | |
25149 | done | |
25150 | ||
25151 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25152 | # use $as_me), people would be surprised to read: | |
25153 | # /* config.h. Generated by config.status. */ | |
25154 | configure_input='Generated from '` | |
25155 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
25156 | `' by configure.' | |
25157 | if test x"$ac_file" != x-; then | |
25158 | configure_input="$ac_file. $configure_input" | |
25159 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
25160 | $as_echo "$as_me: creating $ac_file" >&6;} | |
25161 | fi | |
25162 | # Neutralize special characters interpreted by sed in replacement strings. | |
25163 | case $configure_input in #( | |
25164 | *\&* | *\|* | *\\* ) | |
25165 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
25166 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
25167 | *) ac_sed_conf_input=$configure_input;; | |
25168 | esac | |
25169 | ||
25170 | case $ac_tag in | |
ee134472 JF |
25171 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
25172 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
25173 | esac |
25174 | ;; | |
25175 | esac | |
25176 | ||
25177 | ac_dir=`$as_dirname -- "$ac_file" || | |
25178 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25179 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25180 | X"$ac_file" : 'X\(//\)$' \| \ | |
25181 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
25182 | $as_echo X"$ac_file" | | |
25183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25184 | s//\1/ | |
25185 | q | |
25186 | } | |
25187 | /^X\(\/\/\)[^/].*/{ | |
25188 | s//\1/ | |
25189 | q | |
25190 | } | |
25191 | /^X\(\/\/\)$/{ | |
25192 | s//\1/ | |
25193 | q | |
25194 | } | |
25195 | /^X\(\/\).*/{ | |
25196 | s//\1/ | |
25197 | q | |
25198 | } | |
25199 | s/.*/./; q'` | |
25200 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25201 | ac_builddir=. | |
25202 | ||
25203 | case "$ac_dir" in | |
25204 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25205 | *) | |
25206 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
25207 | # A ".." for each directory in $ac_dir_suffix. | |
25208 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
25209 | case $ac_top_builddir_sub in | |
25210 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25211 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
25212 | esac ;; | |
25213 | esac | |
25214 | ac_abs_top_builddir=$ac_pwd | |
25215 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
25216 | # for backward compatibility: | |
25217 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 25218 | |
9c60689e DWT |
25219 | case $srcdir in |
25220 | .) # We are building in place. | |
25221 | ac_srcdir=. | |
25222 | ac_top_srcdir=$ac_top_builddir_sub | |
25223 | ac_abs_top_srcdir=$ac_pwd ;; | |
25224 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25225 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25226 | ac_top_srcdir=$srcdir | |
25227 | ac_abs_top_srcdir=$srcdir ;; | |
25228 | *) # Relative name. | |
25229 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
25230 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
25231 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25232 | esac | |
25233 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
25234 | |
25235 | ||
9c60689e DWT |
25236 | case $ac_mode in |
25237 | :F) | |
25238 | # | |
25239 | # CONFIG_FILE | |
25240 | # | |
35fa52c0 | 25241 | |
9c60689e DWT |
25242 | case $INSTALL in |
25243 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25244 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
25245 | esac | |
66170b30 JF |
25246 | ac_MKDIR_P=$MKDIR_P |
25247 | case $MKDIR_P in | |
25248 | [\\/$]* | ?:[\\/]* ) ;; | |
25249 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
25250 | esac | |
9c60689e | 25251 | _ACEOF |
35fa52c0 | 25252 | |
9c60689e DWT |
25253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25254 | # If the template does not know about datarootdir, expand it. | |
25255 | # FIXME: This hack should be removed a few years after 2.60. | |
25256 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
25257 | ac_sed_dataroot=' | |
25258 | /datarootdir/ { | |
25259 | p | |
25260 | q | |
25261 | } | |
25262 | /@datadir@/p | |
25263 | /@docdir@/p | |
25264 | /@infodir@/p | |
25265 | /@localedir@/p | |
25266 | /@mandir@/p' | |
25267 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
25268 | *datarootdir*) ac_datarootdir_seen=yes;; | |
25269 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
25270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
25271 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
25272 | _ACEOF | |
25273 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25274 | ac_datarootdir_hack=' | |
25275 | s&@datadir@&$datadir&g | |
25276 | s&@docdir@&$docdir&g | |
25277 | s&@infodir@&$infodir&g | |
25278 | s&@localedir@&$localedir&g | |
25279 | s&@mandir@&$mandir&g | |
25280 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
25281 | esac | |
25282 | _ACEOF | |
35fa52c0 | 25283 | |
9c60689e DWT |
25284 | # Neutralize VPATH when `$srcdir' = `.'. |
25285 | # Shell code in configure.ac might set extrasub. | |
25286 | # FIXME: do we really want to maintain this feature? | |
25287 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25288 | ac_sed_extra="$ac_vpsub | |
25289 | $extrasub | |
25290 | _ACEOF | |
25291 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25292 | :t | |
25293 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25294 | s|@configure_input@|$ac_sed_conf_input|;t t | |
25295 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25296 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
25297 | s&@srcdir@&$ac_srcdir&;t t | |
25298 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25299 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25300 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25301 | s&@builddir@&$ac_builddir&;t t | |
25302 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25303 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25304 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 25305 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
25306 | $ac_datarootdir_hack |
25307 | " | |
ee134472 JF |
25308 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
25309 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
25310 | |
25311 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
25312 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
25313 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
25314 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 25315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 25316 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 25317 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 25318 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 25319 | |
ee134472 | 25320 | rm -f "$ac_tmp/stdin" |
9c60689e | 25321 | case $ac_file in |
ee134472 JF |
25322 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
25323 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 25324 | esac \ |
12833ad8 | 25325 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 25326 | ;; |
296ee9a6 JF |
25327 | :H) |
25328 | # | |
25329 | # CONFIG_HEADER | |
25330 | # | |
25331 | if test x"$ac_file" != x-; then | |
25332 | { | |
25333 | $as_echo "/* $configure_input */" \ | |
25334 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
25335 | } >"$ac_tmp/config.h" \ | |
25336 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
25337 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
25338 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
25339 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
25340 | else | |
25341 | rm -f "$ac_file" | |
25342 | mv "$ac_tmp/config.h" "$ac_file" \ | |
25343 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
25344 | fi | |
25345 | else | |
25346 | $as_echo "/* $configure_input */" \ | |
25347 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
25348 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
25349 | fi | |
25350 | # Compute "$ac_file"'s index in $config_headers. | |
25351 | _am_arg="$ac_file" | |
25352 | _am_stamp_count=1 | |
25353 | for _am_header in $config_headers :; do | |
25354 | case $_am_header in | |
25355 | $_am_arg | $_am_arg:* ) | |
25356 | break ;; | |
25357 | * ) | |
25358 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
25359 | esac | |
25360 | done | |
25361 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
25362 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25363 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
25364 | X"$_am_arg" : 'X\(//\)$' \| \ | |
25365 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
25366 | $as_echo X"$_am_arg" | | |
25367 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25368 | s//\1/ | |
25369 | q | |
25370 | } | |
25371 | /^X\(\/\/\)[^/].*/{ | |
25372 | s//\1/ | |
25373 | q | |
25374 | } | |
25375 | /^X\(\/\/\)$/{ | |
25376 | s//\1/ | |
25377 | q | |
25378 | } | |
25379 | /^X\(\/\).*/{ | |
25380 | s//\1/ | |
25381 | q | |
25382 | } | |
25383 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
25384 | ;; | |
35fa52c0 | 25385 | |
9c60689e DWT |
25386 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
25387 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
25388 | ;; | |
25389 | esac | |
35fa52c0 | 25390 | |
35fa52c0 | 25391 | |
9c60689e | 25392 | case $ac_file$ac_mode in |
66170b30 JF |
25393 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
25394 | # Older Autoconf quotes --file arguments for eval, but not when files | |
25395 | # are listed without --file. Let's play safe and only enable the eval | |
25396 | # if we detect the quoting. | |
25397 | case $CONFIG_FILES in | |
25398 | *\'*) eval set x "$CONFIG_FILES" ;; | |
25399 | *) set x $CONFIG_FILES ;; | |
25400 | esac | |
25401 | shift | |
25402 | for mf | |
25403 | do | |
25404 | # Strip MF so we end up with the name of the file. | |
25405 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
25406 | # Check whether this is an Automake generated Makefile or not. | |
25407 | # We used to match only the files named 'Makefile.in', but | |
25408 | # some people rename them; so instead we look at the file content. | |
25409 | # Grep'ing the first line is not enough: some people post-process | |
25410 | # each Makefile.in and add a new line on top of each file to say so. | |
25411 | # Grep'ing the whole file is not good either: AIX grep has a line | |
25412 | # limit of 2048, but all sed's we know have understand at least 4000. | |
25413 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
25414 | dirpart=`$as_dirname -- "$mf" || | |
25415 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25416 | X"$mf" : 'X\(//\)[^/]' \| \ | |
25417 | X"$mf" : 'X\(//\)$' \| \ | |
25418 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
25419 | $as_echo X"$mf" | | |
25420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25421 | s//\1/ | |
25422 | q | |
25423 | } | |
25424 | /^X\(\/\/\)[^/].*/{ | |
25425 | s//\1/ | |
25426 | q | |
25427 | } | |
25428 | /^X\(\/\/\)$/{ | |
25429 | s//\1/ | |
25430 | q | |
25431 | } | |
25432 | /^X\(\/\).*/{ | |
25433 | s//\1/ | |
25434 | q | |
25435 | } | |
25436 | s/.*/./; q'` | |
25437 | else | |
25438 | continue | |
25439 | fi | |
25440 | # Extract the definition of DEPDIR, am__include, and am__quote | |
25441 | # from the Makefile without running 'make'. | |
25442 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
25443 | test -z "$DEPDIR" && continue | |
25444 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 25445 | test -z "$am__include" && continue |
66170b30 JF |
25446 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
25447 | # Find all dependency output files, they are included files with | |
25448 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
25449 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
25450 | # expansion. | |
25451 | for file in `sed -n " | |
25452 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
25453 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
25454 | # Make sure the directory exists. | |
25455 | test -f "$dirpart/$file" && continue | |
25456 | fdir=`$as_dirname -- "$file" || | |
25457 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25458 | X"$file" : 'X\(//\)[^/]' \| \ | |
25459 | X"$file" : 'X\(//\)$' \| \ | |
25460 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
25461 | $as_echo X"$file" | | |
25462 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25463 | s//\1/ | |
25464 | q | |
25465 | } | |
25466 | /^X\(\/\/\)[^/].*/{ | |
25467 | s//\1/ | |
25468 | q | |
25469 | } | |
25470 | /^X\(\/\/\)$/{ | |
25471 | s//\1/ | |
25472 | q | |
25473 | } | |
25474 | /^X\(\/\).*/{ | |
25475 | s//\1/ | |
25476 | q | |
25477 | } | |
25478 | s/.*/./; q'` | |
25479 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
25480 | # echo "creating $dirpart/$file" | |
25481 | echo '# dummy' > "$dirpart/$file" | |
25482 | done | |
25483 | done | |
25484 | } | |
25485 | ;; | |
9c60689e DWT |
25486 | "libtool":C) |
25487 | ||
9d54db95 | 25488 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 25489 | # commands through without removal of \ escapes. |
9d54db95 | 25490 | if test -n "${ZSH_VERSION+set}"; then |
9c60689e | 25491 | setopt NO_GLOB_SUBST |
35fa52c0 | 25492 | fi |
35fa52c0 | 25493 | |
9d54db95 | 25494 | cfgfile=${ofile}T |
9c60689e DWT |
25495 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
25496 | $RM "$cfgfile" | |
35fa52c0 | 25497 | |
9c60689e DWT |
25498 | cat <<_LT_EOF >> "$cfgfile" |
25499 | #! $SHELL | |
9d54db95 | 25500 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
9c60689e DWT |
25501 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
25502 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9d54db95 JF |
25503 | |
25504 | # Provide generalized library-building support services. | |
25505 | # Written by Gordon Matzigkeit, 1996 | |
25506 | ||
25507 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
25508 | # This is free software; see the source for copying conditions. There is NO | |
25509 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
25510 | ||
25511 | # GNU Libtool is free software; you can redistribute it and/or modify | |
25512 | # it under the terms of the GNU General Public License as published by | |
25513 | # the Free Software Foundation; either version 2 of of the License, or | |
25514 | # (at your option) any later version. | |
9c60689e | 25515 | # |
9d54db95 JF |
25516 | # As a special exception to the GNU General Public License, if you |
25517 | # distribute this file as part of a program or library that is built | |
25518 | # using GNU Libtool, you may include this file under the same | |
25519 | # distribution terms that you use for the rest of that program. | |
9c60689e | 25520 | # |
9d54db95 JF |
25521 | # GNU Libtool is distributed in the hope that it will be useful, but |
25522 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9c60689e DWT |
25523 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
25524 | # GNU General Public License for more details. | |
25525 | # | |
25526 | # You should have received a copy of the GNU General Public License | |
9d54db95 | 25527 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
35fa52c0 | 25528 | |
35fa52c0 | 25529 | |
9c60689e | 25530 | # The names of the tagged configurations supported by this script. |
9d54db95 JF |
25531 | available_tags='CXX ' |
25532 | ||
25533 | # Configured defaults for sys_lib_dlsearch_path munging. | |
25534 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
35fa52c0 | 25535 | |
9c60689e | 25536 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 25537 | |
9c60689e DWT |
25538 | # Which release of libtool.m4 was used? |
25539 | macro_version=$macro_version | |
25540 | macro_revision=$macro_revision | |
35fa52c0 | 25541 | |
9c60689e DWT |
25542 | # Whether or not to build static libraries. |
25543 | build_old_libs=$enable_static | |
35fa52c0 | 25544 | |
549f29b5 DWT |
25545 | # Whether or not to build shared libraries. |
25546 | build_libtool_libs=$enable_shared | |
25547 | ||
9c60689e DWT |
25548 | # What type of objects to build. |
25549 | pic_mode=$pic_mode | |
35fa52c0 | 25550 | |
9c60689e DWT |
25551 | # Whether or not to optimize for fast installation. |
25552 | fast_install=$enable_fast_install | |
35fa52c0 | 25553 | |
9d54db95 JF |
25554 | # Shared archive member basename,for filename based shared library versioning on AIX. |
25555 | shared_archive_member_spec=$shared_archive_member_spec | |
25556 | ||
ee134472 JF |
25557 | # Shell to use when invoking shell scripts. |
25558 | SHELL=$lt_SHELL | |
25559 | ||
25560 | # An echo program that protects backslashes. | |
25561 | ECHO=$lt_ECHO | |
25562 | ||
53ba6704 JF |
25563 | # The PATH separator for the build system. |
25564 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
25565 | ||
9c60689e DWT |
25566 | # The host system. |
25567 | host_alias=$host_alias | |
25568 | host=$host | |
25569 | host_os=$host_os | |
35fa52c0 | 25570 | |
9c60689e DWT |
25571 | # The build system. |
25572 | build_alias=$build_alias | |
25573 | build=$build | |
25574 | build_os=$build_os | |
25575 | ||
25576 | # A sed program that does not truncate output. | |
25577 | SED=$lt_SED | |
25578 | ||
25579 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
25580 | Xsed="\$SED -e 1s/^X//" | |
25581 | ||
25582 | # A grep program that handles long lines. | |
25583 | GREP=$lt_GREP | |
25584 | ||
25585 | # An ERE matcher. | |
25586 | EGREP=$lt_EGREP | |
25587 | ||
25588 | # A literal string matcher. | |
25589 | FGREP=$lt_FGREP | |
25590 | ||
25591 | # A BSD- or MS-compatible name lister. | |
25592 | NM=$lt_NM | |
25593 | ||
25594 | # Whether we need soft or hard links. | |
25595 | LN_S=$lt_LN_S | |
25596 | ||
25597 | # What is the maximum length of a command? | |
25598 | max_cmd_len=$max_cmd_len | |
25599 | ||
25600 | # Object file suffix (normally "o"). | |
25601 | objext=$ac_objext | |
25602 | ||
25603 | # Executable file suffix (normally ""). | |
25604 | exeext=$exeext | |
25605 | ||
25606 | # whether the shell understands "unset". | |
25607 | lt_unset=$lt_unset | |
25608 | ||
25609 | # turn spaces into newlines. | |
25610 | SP2NL=$lt_lt_SP2NL | |
25611 | ||
25612 | # turn newlines into spaces. | |
25613 | NL2SP=$lt_lt_NL2SP | |
25614 | ||
ee134472 JF |
25615 | # convert \$build file names to \$host format. |
25616 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
25617 | ||
25618 | # convert \$build files to toolchain format. | |
25619 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
25620 | |
25621 | # An object symbol dumper. | |
25622 | OBJDUMP=$lt_OBJDUMP | |
25623 | ||
25624 | # Method to check whether dependent libraries are shared objects. | |
25625 | deplibs_check_method=$lt_deplibs_check_method | |
25626 | ||
ee134472 | 25627 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
25628 | file_magic_cmd=$lt_file_magic_cmd |
25629 | ||
ee134472 JF |
25630 | # How to find potential files when deplibs_check_method = "file_magic". |
25631 | file_magic_glob=$lt_file_magic_glob | |
25632 | ||
25633 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
25634 | want_nocaseglob=$lt_want_nocaseglob | |
25635 | ||
25636 | # DLL creation program. | |
25637 | DLLTOOL=$lt_DLLTOOL | |
25638 | ||
25639 | # Command to associate shared and link libraries. | |
25640 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
25641 | ||
9c60689e DWT |
25642 | # The archiver. |
25643 | AR=$lt_AR | |
ee134472 JF |
25644 | |
25645 | # Flags to create an archive. | |
9c60689e DWT |
25646 | AR_FLAGS=$lt_AR_FLAGS |
25647 | ||
ee134472 JF |
25648 | # How to feed a file listing to the archiver. |
25649 | archiver_list_spec=$lt_archiver_list_spec | |
25650 | ||
9c60689e DWT |
25651 | # A symbol stripping program. |
25652 | STRIP=$lt_STRIP | |
25653 | ||
25654 | # Commands used to install an old-style archive. | |
25655 | RANLIB=$lt_RANLIB | |
25656 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
25657 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
25658 | ||
ee134472 JF |
25659 | # Whether to use a lock for old archive extraction. |
25660 | lock_old_archive_extraction=$lock_old_archive_extraction | |
25661 | ||
9c60689e DWT |
25662 | # A C compiler. |
25663 | LTCC=$lt_CC | |
25664 | ||
25665 | # LTCC compiler flags. | |
25666 | LTCFLAGS=$lt_CFLAGS | |
25667 | ||
25668 | # Take the output of nm and produce a listing of raw symbols and C names. | |
25669 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
25670 | ||
25671 | # Transform the output of nm in a proper C declaration. | |
25672 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
25673 | ||
9d54db95 JF |
25674 | # Transform the output of nm into a list of symbols to manually relocate. |
25675 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
25676 | ||
9c60689e DWT |
25677 | # Transform the output of nm in a C name address pair. |
25678 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
25679 | ||
25680 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
25681 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
25682 | ||
9d54db95 JF |
25683 | # The name lister interface. |
25684 | nm_interface=$lt_lt_cv_nm_interface | |
25685 | ||
ee134472 JF |
25686 | # Specify filename containing input files for \$NM. |
25687 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 25688 | |
9d54db95 | 25689 | # The root where to search for dependent libraries,and where our libraries should be installed. |
ee134472 | 25690 | lt_sysroot=$lt_sysroot |
9c60689e | 25691 | |
9d54db95 JF |
25692 | # Command to truncate a binary pipe. |
25693 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
25694 | ||
ee134472 JF |
25695 | # The name of the directory that contains temporary libtool files. |
25696 | objdir=$objdir | |
9c60689e DWT |
25697 | |
25698 | # Used to examine libraries when file_magic_cmd begins with "file". | |
25699 | MAGIC_CMD=$MAGIC_CMD | |
25700 | ||
25701 | # Must we lock files when doing compilation? | |
25702 | need_locks=$lt_need_locks | |
25703 | ||
ee134472 JF |
25704 | # Manifest tool. |
25705 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
25706 | ||
9c60689e DWT |
25707 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
25708 | DSYMUTIL=$lt_DSYMUTIL | |
25709 | ||
25710 | # Tool to change global to local symbols on Mac OS X. | |
25711 | NMEDIT=$lt_NMEDIT | |
25712 | ||
25713 | # Tool to manipulate fat objects and archives on Mac OS X. | |
25714 | LIPO=$lt_LIPO | |
25715 | ||
25716 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
25717 | OTOOL=$lt_OTOOL | |
25718 | ||
25719 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
25720 | OTOOL64=$lt_OTOOL64 | |
25721 | ||
25722 | # Old archive suffix (normally "a"). | |
25723 | libext=$libext | |
25724 | ||
25725 | # Shared library suffix (normally ".so"). | |
25726 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 25727 | |
9c60689e DWT |
25728 | # The commands to extract the exported symbol list from a shared archive. |
25729 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 25730 | |
9c60689e DWT |
25731 | # Variables whose values should be saved in libtool wrapper scripts and |
25732 | # restored at link time. | |
25733 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 25734 | |
9c60689e DWT |
25735 | # Do we need the "lib" prefix for modules? |
25736 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 25737 | |
9c60689e DWT |
25738 | # Do we need a version for libraries? |
25739 | need_version=$need_version | |
35fa52c0 | 25740 | |
9c60689e DWT |
25741 | # Library versioning type. |
25742 | version_type=$version_type | |
35fa52c0 | 25743 | |
9c60689e DWT |
25744 | # Shared library runtime path variable. |
25745 | runpath_var=$runpath_var | |
35fa52c0 | 25746 | |
9c60689e DWT |
25747 | # Shared library path variable. |
25748 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 25749 | |
9c60689e DWT |
25750 | # Is shlibpath searched before the hard-coded library search path? |
25751 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 25752 | |
9c60689e DWT |
25753 | # Format of library name prefix. |
25754 | libname_spec=$lt_libname_spec | |
35fa52c0 | 25755 | |
9c60689e DWT |
25756 | # List of archive names. First name is the real one, the rest are links. |
25757 | # The last name is the one that the linker finds with -lNAME | |
25758 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 25759 | |
9c60689e DWT |
25760 | # The coded name of the library, if different from the real name. |
25761 | soname_spec=$lt_soname_spec | |
dbadc56a | 25762 | |
ee134472 JF |
25763 | # Permission mode override for installation of shared libraries. |
25764 | install_override_mode=$lt_install_override_mode | |
25765 | ||
9c60689e DWT |
25766 | # Command to use after installation of a shared archive. |
25767 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 25768 | |
9c60689e DWT |
25769 | # Command to use after uninstallation of a shared archive. |
25770 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 25771 | |
9c60689e DWT |
25772 | # Commands used to finish a libtool library installation in a directory. |
25773 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 25774 | |
9c60689e DWT |
25775 | # As "finish_cmds", except a single script fragment to be evaled but |
25776 | # not shown. | |
25777 | finish_eval=$lt_finish_eval | |
35fa52c0 | 25778 | |
9c60689e DWT |
25779 | # Whether we should hardcode library paths into libraries. |
25780 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 25781 | |
9c60689e DWT |
25782 | # Compile-time system search path for libraries. |
25783 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 25784 | |
9d54db95 JF |
25785 | # Detected run-time system search path for libraries. |
25786 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
25787 | ||
25788 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
25789 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
dbadc56a | 25790 | |
9c60689e DWT |
25791 | # Whether dlopen is supported. |
25792 | dlopen_support=$enable_dlopen | |
dbadc56a | 25793 | |
9c60689e DWT |
25794 | # Whether dlopen of programs is supported. |
25795 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 25796 | |
9c60689e DWT |
25797 | # Whether dlopen of statically linked programs is supported. |
25798 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 25799 | |
9c60689e DWT |
25800 | # Commands to strip libraries. |
25801 | old_striplib=$lt_old_striplib | |
25802 | striplib=$lt_striplib | |
35fa52c0 | 25803 | |
35fa52c0 | 25804 | |
9c60689e DWT |
25805 | # The linker used to build libraries. |
25806 | LD=$lt_LD | |
dbadc56a | 25807 | |
ee134472 JF |
25808 | # How to create reloadable object files. |
25809 | reload_flag=$lt_reload_flag | |
25810 | reload_cmds=$lt_reload_cmds | |
25811 | ||
9c60689e DWT |
25812 | # Commands used to build an old-style archive. |
25813 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 25814 | |
9c60689e DWT |
25815 | # A language specific compiler. |
25816 | CC=$lt_compiler | |
35fa52c0 | 25817 | |
9c60689e DWT |
25818 | # Is the compiler the GNU compiler? |
25819 | with_gcc=$GCC | |
dbadc56a | 25820 | |
9c60689e DWT |
25821 | # Compiler flag to turn off builtin functions. |
25822 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 25823 | |
9c60689e DWT |
25824 | # Additional compiler flags for building library objects. |
25825 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 25826 | |
ee134472 JF |
25827 | # How to pass a linker flag through the compiler. |
25828 | wl=$lt_lt_prog_compiler_wl | |
25829 | ||
9c60689e DWT |
25830 | # Compiler flag to prevent dynamic linking. |
25831 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 25832 | |
9c60689e DWT |
25833 | # Does compiler simultaneously support -c and -o options? |
25834 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 25835 | |
9c60689e DWT |
25836 | # Whether or not to add -lc for building shared libraries. |
25837 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 25838 | |
9c60689e DWT |
25839 | # Whether or not to disallow shared libs when runtime libs are static. |
25840 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 25841 | |
9c60689e DWT |
25842 | # Compiler flag to allow reflexive dlopens. |
25843 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 25844 | |
9c60689e DWT |
25845 | # Compiler flag to generate shared objects directly from archives. |
25846 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 25847 | |
9c60689e DWT |
25848 | # Whether the compiler copes with passing no objects directly. |
25849 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 25850 | |
9c60689e DWT |
25851 | # Create an old-style archive from a shared archive. |
25852 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 25853 | |
9c60689e DWT |
25854 | # Create a temporary old-style archive to link instead of a shared archive. |
25855 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 25856 | |
9c60689e DWT |
25857 | # Commands used to build a shared archive. |
25858 | archive_cmds=$lt_archive_cmds | |
25859 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 25860 | |
9c60689e DWT |
25861 | # Commands used to build a loadable module if different from building |
25862 | # a shared archive. | |
25863 | module_cmds=$lt_module_cmds | |
25864 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 25865 | |
9c60689e DWT |
25866 | # Whether we are building with GNU ld or not. |
25867 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 25868 | |
9c60689e DWT |
25869 | # Flag that allows shared libraries with undefined symbols to be built. |
25870 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 25871 | |
9c60689e DWT |
25872 | # Flag that enforces no undefined symbols. |
25873 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 25874 | |
9c60689e DWT |
25875 | # Flag to hardcode \$libdir into a binary during linking. |
25876 | # This must work even if \$libdir does not exist | |
25877 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 25878 | |
9c60689e DWT |
25879 | # Whether we need a single "-rpath" flag with a separated argument. |
25880 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 25881 | |
9d54db95 | 25882 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
25883 | # DIR into the resulting binary. |
25884 | hardcode_direct=$hardcode_direct | |
6b66678a | 25885 | |
9d54db95 | 25886 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 25887 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 25888 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
25889 | # library is relocated. |
25890 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 25891 | |
9c60689e DWT |
25892 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
25893 | # into the resulting binary. | |
25894 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 25895 | |
9c60689e DWT |
25896 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
25897 | # into the resulting binary. | |
25898 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 25899 | |
9c60689e DWT |
25900 | # Set to "yes" if building a shared library automatically hardcodes DIR |
25901 | # into the library and all subsequent libraries and executables linked | |
25902 | # against it. | |
25903 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 25904 | |
9c60689e DWT |
25905 | # Set to yes if linker adds runtime paths of dependent libraries |
25906 | # to runtime path list. | |
25907 | inherit_rpath=$inherit_rpath | |
6b66678a | 25908 | |
9c60689e DWT |
25909 | # Whether libtool must link a program against all its dependency libraries. |
25910 | link_all_deplibs=$link_all_deplibs | |
25911 | ||
9c60689e DWT |
25912 | # Set to "yes" if exported symbols are required. |
25913 | always_export_symbols=$always_export_symbols | |
6b66678a | 25914 | |
9c60689e DWT |
25915 | # The commands to list exported symbols. |
25916 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 25917 | |
9c60689e DWT |
25918 | # Symbols that should not be listed in the preloaded symbols. |
25919 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 25920 | |
9c60689e DWT |
25921 | # Symbols that must always be exported. |
25922 | include_expsyms=$lt_include_expsyms | |
6b66678a | 25923 | |
9c60689e DWT |
25924 | # Commands necessary for linking programs (against libraries) with templates. |
25925 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 25926 | |
ee134472 JF |
25927 | # Commands necessary for finishing linking programs. |
25928 | postlink_cmds=$lt_postlink_cmds | |
25929 | ||
9c60689e DWT |
25930 | # Specify filename containing input files. |
25931 | file_list_spec=$lt_file_list_spec | |
6b66678a | 25932 | |
9c60689e DWT |
25933 | # How to hardcode a shared library path into an executable. |
25934 | hardcode_action=$hardcode_action | |
25935 | ||
25936 | # The directories searched by this compiler when creating a shared library. | |
25937 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
25938 | ||
25939 | # Dependencies to place before and after the objects being linked to | |
25940 | # create a shared library. | |
25941 | predep_objects=$lt_predep_objects | |
25942 | postdep_objects=$lt_postdep_objects | |
25943 | predeps=$lt_predeps | |
25944 | postdeps=$lt_postdeps | |
25945 | ||
25946 | # The library search path used internally by the compiler when linking | |
25947 | # a shared library. | |
25948 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
25949 | ||
25950 | # ### END LIBTOOL CONFIG | |
25951 | ||
9d54db95 JF |
25952 | _LT_EOF |
25953 | ||
25954 | cat <<'_LT_EOF' >> "$cfgfile" | |
25955 | ||
25956 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
25957 | ||
25958 | # func_munge_path_list VARIABLE PATH | |
25959 | # ----------------------------------- | |
25960 | # VARIABLE is name of variable containing _space_ separated list of | |
25961 | # directories to be munged by the contents of PATH, which is string | |
25962 | # having a format: | |
25963 | # "DIR[:DIR]:" | |
25964 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
25965 | # ":DIR[:DIR]" | |
25966 | # string "DIR[ DIR]" will be appended to VARIABLE | |
25967 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
25968 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
25969 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
25970 | # "DIR[:DIR]" | |
25971 | # VARIABLE will be replaced by "DIR[ DIR]" | |
25972 | func_munge_path_list () | |
25973 | { | |
25974 | case x$2 in | |
25975 | x) | |
25976 | ;; | |
25977 | *:) | |
25978 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
25979 | ;; | |
25980 | x:*) | |
25981 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
25982 | ;; | |
25983 | *::*) | |
25984 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
25985 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
25986 | ;; | |
25987 | *) | |
25988 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
25989 | ;; | |
25990 | esac | |
25991 | } | |
25992 | ||
25993 | ||
25994 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
25995 | func_cc_basename () | |
25996 | { | |
25997 | for cc_temp in $*""; do | |
25998 | case $cc_temp in | |
25999 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
26000 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
26001 | \-*) ;; | |
26002 | *) break;; | |
26003 | esac | |
26004 | done | |
26005 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
26006 | } | |
26007 | ||
26008 | ||
26009 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
26010 | ||
9c60689e DWT |
26011 | _LT_EOF |
26012 | ||
26013 | case $host_os in | |
26014 | aix3*) | |
26015 | cat <<\_LT_EOF >> "$cfgfile" | |
26016 | # AIX sometimes has problems with the GCC collect2 program. For some | |
26017 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
26018 | # vanish in a puff of smoke. | |
9d54db95 | 26019 | if test set != "${COLLECT_NAMES+set}"; then |
9c60689e DWT |
26020 | COLLECT_NAMES= |
26021 | export COLLECT_NAMES | |
6b66678a | 26022 | fi |
9c60689e DWT |
26023 | _LT_EOF |
26024 | ;; | |
26025 | esac | |
6b66678a DWT |
26026 | |
26027 | ||
9d54db95 | 26028 | ltmain=$ac_aux_dir/ltmain.sh |
6b66678a | 26029 | |
9c60689e DWT |
26030 | |
26031 | # We use sed instead of cat because bash on DJGPP gets confused if | |
26032 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
26033 | # text mode, it properly converts lines to CR/LF. This bash problem | |
26034 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
26035 | sed '$q' "$ltmain" >> "$cfgfile" \ |
26036 | || (rm -f "$cfgfile"; exit 1) | |
26037 | ||
ee134472 | 26038 | mv -f "$cfgfile" "$ofile" || |
9c60689e DWT |
26039 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
26040 | chmod +x "$ofile" | |
26041 | ||
26042 | ||
26043 | cat <<_LT_EOF >> "$ofile" | |
26044 | ||
26045 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
26046 | ||
26047 | # The linker used to build libraries. | |
26048 | LD=$lt_LD_CXX | |
26049 | ||
ee134472 JF |
26050 | # How to create reloadable object files. |
26051 | reload_flag=$lt_reload_flag_CXX | |
26052 | reload_cmds=$lt_reload_cmds_CXX | |
26053 | ||
9c60689e DWT |
26054 | # Commands used to build an old-style archive. |
26055 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
26056 | ||
26057 | # A language specific compiler. | |
26058 | CC=$lt_compiler_CXX | |
26059 | ||
26060 | # Is the compiler the GNU compiler? | |
26061 | with_gcc=$GCC_CXX | |
26062 | ||
26063 | # Compiler flag to turn off builtin functions. | |
26064 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 26065 | |
9c60689e DWT |
26066 | # Additional compiler flags for building library objects. |
26067 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 26068 | |
ee134472 JF |
26069 | # How to pass a linker flag through the compiler. |
26070 | wl=$lt_lt_prog_compiler_wl_CXX | |
26071 | ||
9c60689e DWT |
26072 | # Compiler flag to prevent dynamic linking. |
26073 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 26074 | |
9c60689e DWT |
26075 | # Does compiler simultaneously support -c and -o options? |
26076 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 26077 | |
9c60689e DWT |
26078 | # Whether or not to add -lc for building shared libraries. |
26079 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 26080 | |
9c60689e DWT |
26081 | # Whether or not to disallow shared libs when runtime libs are static. |
26082 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 26083 | |
9c60689e DWT |
26084 | # Compiler flag to allow reflexive dlopens. |
26085 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 26086 | |
9c60689e DWT |
26087 | # Compiler flag to generate shared objects directly from archives. |
26088 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 26089 | |
9c60689e DWT |
26090 | # Whether the compiler copes with passing no objects directly. |
26091 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 26092 | |
9c60689e DWT |
26093 | # Create an old-style archive from a shared archive. |
26094 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 26095 | |
9c60689e DWT |
26096 | # Create a temporary old-style archive to link instead of a shared archive. |
26097 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 26098 | |
9c60689e DWT |
26099 | # Commands used to build a shared archive. |
26100 | archive_cmds=$lt_archive_cmds_CXX | |
26101 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 26102 | |
9c60689e DWT |
26103 | # Commands used to build a loadable module if different from building |
26104 | # a shared archive. | |
26105 | module_cmds=$lt_module_cmds_CXX | |
26106 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 26107 | |
9c60689e DWT |
26108 | # Whether we are building with GNU ld or not. |
26109 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 26110 | |
9c60689e DWT |
26111 | # Flag that allows shared libraries with undefined symbols to be built. |
26112 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 26113 | |
9c60689e DWT |
26114 | # Flag that enforces no undefined symbols. |
26115 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 26116 | |
9c60689e DWT |
26117 | # Flag to hardcode \$libdir into a binary during linking. |
26118 | # This must work even if \$libdir does not exist | |
26119 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 26120 | |
9c60689e DWT |
26121 | # Whether we need a single "-rpath" flag with a separated argument. |
26122 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 26123 | |
9d54db95 | 26124 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
26125 | # DIR into the resulting binary. |
26126 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 26127 | |
9d54db95 | 26128 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 26129 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 26130 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
26131 | # library is relocated. |
26132 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 26133 | |
9c60689e DWT |
26134 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
26135 | # into the resulting binary. | |
26136 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 26137 | |
9c60689e DWT |
26138 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
26139 | # into the resulting binary. | |
26140 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 26141 | |
9c60689e DWT |
26142 | # Set to "yes" if building a shared library automatically hardcodes DIR |
26143 | # into the library and all subsequent libraries and executables linked | |
26144 | # against it. | |
26145 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 26146 | |
9c60689e DWT |
26147 | # Set to yes if linker adds runtime paths of dependent libraries |
26148 | # to runtime path list. | |
26149 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 26150 | |
9c60689e DWT |
26151 | # Whether libtool must link a program against all its dependency libraries. |
26152 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 26153 | |
9c60689e DWT |
26154 | # Set to "yes" if exported symbols are required. |
26155 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 26156 | |
9c60689e DWT |
26157 | # The commands to list exported symbols. |
26158 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 26159 | |
9c60689e DWT |
26160 | # Symbols that should not be listed in the preloaded symbols. |
26161 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 26162 | |
9c60689e DWT |
26163 | # Symbols that must always be exported. |
26164 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 26165 | |
9c60689e DWT |
26166 | # Commands necessary for linking programs (against libraries) with templates. |
26167 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 26168 | |
ee134472 JF |
26169 | # Commands necessary for finishing linking programs. |
26170 | postlink_cmds=$lt_postlink_cmds_CXX | |
26171 | ||
9c60689e DWT |
26172 | # Specify filename containing input files. |
26173 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 26174 | |
9c60689e DWT |
26175 | # How to hardcode a shared library path into an executable. |
26176 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 26177 | |
9c60689e DWT |
26178 | # The directories searched by this compiler when creating a shared library. |
26179 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 26180 | |
9c60689e DWT |
26181 | # Dependencies to place before and after the objects being linked to |
26182 | # create a shared library. | |
26183 | predep_objects=$lt_predep_objects_CXX | |
26184 | postdep_objects=$lt_postdep_objects_CXX | |
26185 | predeps=$lt_predeps_CXX | |
26186 | postdeps=$lt_postdeps_CXX | |
309b0535 | 26187 | |
9c60689e DWT |
26188 | # The library search path used internally by the compiler when linking |
26189 | # a shared library. | |
26190 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
26191 | ||
26192 | # ### END LIBTOOL TAG CONFIG: CXX | |
26193 | _LT_EOF | |
26194 | ||
26195 | ;; | |
26196 | ||
26197 | esac | |
26198 | done # for ac_tag | |
26199 | ||
26200 | ||
26201 | as_fn_exit 0 | |
26202 | _ACEOF | |
26203 | ac_clean_files=$ac_clean_files_save | |
26204 | ||
26205 | test $ac_write_fail = 0 || | |
12833ad8 | 26206 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
26207 | |
26208 | ||
26209 | # configure is writing to config.log, and then calls config.status. | |
26210 | # config.status does its own redirection, appending to config.log. | |
26211 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26212 | # by configure, so config.status won't be able to write to it; its | |
26213 | # output is simply discarded. So we exec the FD to /dev/null, | |
26214 | # effectively closing config.log, so it can be properly (re)opened and | |
26215 | # appended to by config.status. When coming back to configure, we | |
26216 | # need to make the FD available again. | |
26217 | if test "$no_create" != yes; then | |
26218 | ac_cs_success=: | |
26219 | ac_config_status_args= | |
26220 | test "$silent" = yes && | |
26221 | ac_config_status_args="$ac_config_status_args --quiet" | |
26222 | exec 5>/dev/null | |
26223 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26224 | exec 5>>config.log | |
26225 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26226 | # would make configure fail if this is the last instruction. | |
12833ad8 | 26227 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 26228 | fi |
9c60689e DWT |
26229 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
26230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
26231 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
26232 | fi | |
26233 |