]>
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 JF |
13 | # |
14 | # Copyright (C) 2009-2012 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 |
a243b558 JF |
641 | CY_MACH_FALSE |
642 | CY_MACH_TRUE | |
66170b30 | 643 | CY_MACH |
7eda51e0 | 644 | CY_ATTACH_GROUP |
a243b558 JF |
645 | ac_ct__OTOOL |
646 | _OTOOL | |
794e88e7 DWT |
647 | ac_ct__NM |
648 | _NM | |
649 | ac_ct__LIPO | |
650 | _LIPO | |
9777bd50 | 651 | SO |
66170b30 | 652 | LTFLAGS |
6f9aea2b JF |
653 | LTLIBTERMCAP |
654 | LTLIBREADLINE | |
a243b558 JF |
655 | CY_OBJECTIVEC_FALSE |
656 | CY_OBJECTIVEC_TRUE | |
babf7fe8 | 657 | LTOBJECTIVEC |
47aaa820 | 658 | GNUSTEP_CONFIG |
c823f118 | 659 | CY_OBJECTIVEC |
296ee9a6 | 660 | LTLIBFFI |
309b0535 | 661 | LIBFFI_LIBS |
35fa52c0 | 662 | LIBFFI_CFLAGS |
a243b558 JF |
663 | CY_EXECUTE_FALSE |
664 | CY_EXECUTE_TRUE | |
d4f27204 | 665 | LTLIBAPR |
babf7fe8 | 666 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
667 | WEBKIT_LIBS |
668 | WEBKIT_CFLAGS | |
7eda51e0 | 669 | CY_EXECUTE |
babf7fe8 JF |
670 | CY_IOS_SIMULATOR_FALSE |
671 | CY_IOS_SIMULATOR_TRUE | |
1635cb1f JF |
672 | CY_XCODE_IOSSIMSDK |
673 | CY_XCODE_MACOSXSDK | |
babf7fe8 | 674 | XCODEBUILD |
a243b558 | 675 | CY_ARCH |
9228a43a | 676 | CY_FILTERS |
e9c9a47c | 677 | GNUTAR |
e9c9a47c DWT |
678 | GPERF |
679 | FLEX | |
680 | BISON | |
681 | TIME | |
66170b30 | 682 | GIT |
12833ad8 JF |
683 | PKG_CONFIG_LIBDIR |
684 | PKG_CONFIG_PATH | |
3fd51f51 | 685 | PKG_CONFIG |
a243b558 | 686 | CXXCPP |
9c60689e DWT |
687 | CPP |
688 | OTOOL64 | |
689 | OTOOL | |
690 | LIPO | |
691 | NMEDIT | |
692 | DSYMUTIL | |
ee134472 | 693 | MANIFEST_TOOL |
9c60689e | 694 | RANLIB |
ee134472 | 695 | DLLTOOL |
9c60689e DWT |
696 | OBJDUMP |
697 | LN_S | |
698 | NM | |
699 | ac_ct_DUMPBIN | |
700 | DUMPBIN | |
701 | LD | |
702 | FGREP | |
703 | EGREP | |
704 | GREP | |
705 | SED | |
a243b558 JF |
706 | host_os |
707 | host_vendor | |
708 | host_cpu | |
709 | host | |
710 | build_os | |
711 | build_vendor | |
712 | build_cpu | |
713 | build | |
714 | LIBTOOL | |
66170b30 JF |
715 | am__fastdepCC_FALSE |
716 | am__fastdepCC_TRUE | |
717 | CCDEPMODE | |
a243b558 JF |
718 | ac_ct_CC |
719 | CFLAGS | |
720 | CC | |
721 | ac_ct_AR | |
722 | AR | |
723 | am__fastdepOBJCXX_FALSE | |
724 | am__fastdepOBJCXX_TRUE | |
725 | OBJCXXDEPMODE | |
726 | ac_ct_OBJCXX | |
727 | OBJCXXFLAGS | |
728 | OBJCXX | |
729 | am__fastdepCXX_FALSE | |
730 | am__fastdepCXX_TRUE | |
731 | CXXDEPMODE | |
66170b30 JF |
732 | am__nodep |
733 | AMDEPBACKSLASH | |
734 | AMDEP_FALSE | |
735 | AMDEP_TRUE | |
736 | am__quote | |
737 | am__include | |
738 | DEPDIR | |
35fa52c0 DWT |
739 | OBJEXT |
740 | EXEEXT | |
a243b558 | 741 | ac_ct_CXX |
35fa52c0 DWT |
742 | CPPFLAGS |
743 | LDFLAGS | |
a243b558 JF |
744 | CXXFLAGS |
745 | CXX | |
babf7fe8 JF |
746 | MAINT |
747 | MAINTAINER_MODE_FALSE | |
748 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
749 | AM_BACKSLASH |
750 | AM_DEFAULT_VERBOSITY | |
751 | AM_DEFAULT_V | |
752 | AM_V | |
753 | am__untar | |
754 | am__tar | |
755 | AMTAR | |
756 | am__leading_dot | |
757 | SET_MAKE | |
758 | AWK | |
759 | mkdir_p | |
760 | MKDIR_P | |
761 | INSTALL_STRIP_PROGRAM | |
762 | STRIP | |
763 | install_sh | |
764 | MAKEINFO | |
765 | AUTOHEADER | |
766 | AUTOMAKE | |
767 | AUTOCONF | |
768 | ACLOCAL | |
769 | VERSION | |
770 | PACKAGE | |
771 | CYGPATH_W | |
772 | am__isrc | |
773 | INSTALL_DATA | |
774 | INSTALL_SCRIPT | |
775 | INSTALL_PROGRAM | |
dbadc56a | 776 | target_alias |
c7aa54aa DWT |
777 | host_alias |
778 | build_alias | |
779 | LIBS | |
780 | ECHO_T | |
781 | ECHO_N | |
782 | ECHO_C | |
783 | DEFS | |
784 | mandir | |
785 | localedir | |
786 | libdir | |
787 | psdir | |
788 | pdfdir | |
789 | dvidir | |
790 | htmldir | |
791 | infodir | |
792 | docdir | |
793 | oldincludedir | |
794 | includedir | |
795 | localstatedir | |
796 | sharedstatedir | |
797 | sysconfdir | |
798 | datadir | |
799 | datarootdir | |
800 | libexecdir | |
801 | sbindir | |
802 | bindir | |
803 | program_transform_name | |
804 | prefix | |
805 | exec_prefix | |
806 | PACKAGE_URL | |
807 | PACKAGE_BUGREPORT | |
808 | PACKAGE_STRING | |
809 | PACKAGE_VERSION | |
810 | PACKAGE_TARNAME | |
811 | PACKAGE_NAME | |
812 | PATH_SEPARATOR | |
813 | SHELL' | |
814 | ac_subst_files='' | |
815 | ac_user_opts=' | |
816 | enable_option_checking | |
66170b30 | 817 | enable_silent_rules |
babf7fe8 | 818 | enable_maintainer_mode |
a243b558 | 819 | enable_dependency_tracking |
9c60689e | 820 | enable_static |
549f29b5 | 821 | enable_shared |
9c60689e DWT |
822 | with_pic |
823 | enable_fast_install | |
35fa52c0 | 824 | with_gnu_ld |
ee134472 | 825 | with_sysroot |
9c60689e | 826 | enable_libtool_lock |
5053a6d1 | 827 | enable_javascript |
66170b30 | 828 | with_apr |
c7aa54aa DWT |
829 | ' |
830 | ac_precious_vars='build_alias | |
831 | host_alias | |
dbadc56a | 832 | target_alias |
a243b558 JF |
833 | CXX |
834 | CXXFLAGS | |
dbadc56a DWT |
835 | LDFLAGS |
836 | LIBS | |
837 | CPPFLAGS | |
a243b558 JF |
838 | CCC |
839 | OBJCXX | |
840 | OBJCXXFLAGS | |
841 | CC | |
842 | CFLAGS | |
9c60689e | 843 | CPP |
a243b558 | 844 | CXXCPP |
3fd51f51 | 845 | PKG_CONFIG |
12833ad8 JF |
846 | PKG_CONFIG_PATH |
847 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
848 | BISON |
849 | FLEX | |
850 | GPERF | |
66170b30 | 851 | GNUTAR |
35fa52c0 DWT |
852 | WEBKIT_CFLAGS |
853 | WEBKIT_LIBS | |
a667869d | 854 | LIBFFI_CFLAGS |
790e5246 DWT |
855 | LIBFFI_LIBS |
856 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
857 | |
858 | ||
859 | # Initialize some variables set by options. | |
860 | ac_init_help= | |
861 | ac_init_version=false | |
862 | ac_unrecognized_opts= | |
863 | ac_unrecognized_sep= | |
864 | # The variables have the same names as the options, with | |
865 | # dashes changed to underlines. | |
866 | cache_file=/dev/null | |
867 | exec_prefix=NONE | |
868 | no_create= | |
869 | no_recursion= | |
870 | prefix=NONE | |
871 | program_prefix=NONE | |
872 | program_suffix=NONE | |
873 | program_transform_name=s,x,x, | |
874 | silent= | |
875 | site= | |
876 | srcdir= | |
877 | verbose= | |
878 | x_includes=NONE | |
879 | x_libraries=NONE | |
880 | ||
881 | # Installation directory options. | |
882 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
883 | # and all the variables that are supposed to be based on exec_prefix | |
884 | # by default will actually change. | |
885 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
886 | # (The list follows the same order as the GNU Coding Standards.) | |
887 | bindir='${exec_prefix}/bin' | |
888 | sbindir='${exec_prefix}/sbin' | |
889 | libexecdir='${exec_prefix}/libexec' | |
890 | datarootdir='${prefix}/share' | |
891 | datadir='${datarootdir}' | |
892 | sysconfdir='${prefix}/etc' | |
893 | sharedstatedir='${prefix}/com' | |
894 | localstatedir='${prefix}/var' | |
895 | includedir='${prefix}/include' | |
896 | oldincludedir='/usr/include' | |
897 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
898 | infodir='${datarootdir}/info' | |
899 | htmldir='${docdir}' | |
900 | dvidir='${docdir}' | |
901 | pdfdir='${docdir}' | |
902 | psdir='${docdir}' | |
903 | libdir='${exec_prefix}/lib' | |
904 | localedir='${datarootdir}/locale' | |
905 | mandir='${datarootdir}/man' | |
906 | ||
907 | ac_prev= | |
908 | ac_dashdash= | |
909 | for ac_option | |
910 | do | |
911 | # If the previous option needs an argument, assign it. | |
912 | if test -n "$ac_prev"; then | |
913 | eval $ac_prev=\$ac_option | |
914 | ac_prev= | |
915 | continue | |
916 | fi | |
917 | ||
918 | case $ac_option in | |
12833ad8 JF |
919 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
920 | *=) ac_optarg= ;; | |
921 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
922 | esac |
923 | ||
924 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
925 | ||
926 | case $ac_dashdash$ac_option in | |
927 | --) | |
928 | ac_dashdash=yes ;; | |
929 | ||
930 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
931 | ac_prev=bindir ;; | |
932 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
933 | bindir=$ac_optarg ;; | |
934 | ||
935 | -build | --build | --buil | --bui | --bu) | |
936 | ac_prev=build_alias ;; | |
937 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
938 | build_alias=$ac_optarg ;; | |
939 | ||
940 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
941 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
942 | ac_prev=cache_file ;; | |
943 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
944 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
945 | cache_file=$ac_optarg ;; | |
946 | ||
947 | --config-cache | -C) | |
948 | cache_file=config.cache ;; | |
949 | ||
950 | -datadir | --datadir | --datadi | --datad) | |
951 | ac_prev=datadir ;; | |
952 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
953 | datadir=$ac_optarg ;; | |
954 | ||
955 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
956 | | --dataroo | --dataro | --datar) | |
957 | ac_prev=datarootdir ;; | |
958 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
959 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
960 | datarootdir=$ac_optarg ;; | |
961 | ||
962 | -disable-* | --disable-*) | |
963 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
964 | # Reject names that are not valid shell variable names. | |
965 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 966 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
967 | ac_useropt_orig=$ac_useropt |
968 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
969 | case $ac_user_opts in | |
970 | *" | |
971 | "enable_$ac_useropt" | |
972 | "*) ;; | |
973 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
974 | ac_unrecognized_sep=', ';; | |
975 | esac | |
976 | eval enable_$ac_useropt=no ;; | |
977 | ||
978 | -docdir | --docdir | --docdi | --doc | --do) | |
979 | ac_prev=docdir ;; | |
980 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
981 | docdir=$ac_optarg ;; | |
982 | ||
983 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
984 | ac_prev=dvidir ;; | |
985 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
986 | dvidir=$ac_optarg ;; | |
987 | ||
988 | -enable-* | --enable-*) | |
989 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
990 | # Reject names that are not valid shell variable names. | |
991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 992 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
993 | ac_useropt_orig=$ac_useropt |
994 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
995 | case $ac_user_opts in | |
996 | *" | |
997 | "enable_$ac_useropt" | |
998 | "*) ;; | |
999 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1003 | ||
1004 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1005 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1006 | | --exec | --exe | --ex) | |
1007 | ac_prev=exec_prefix ;; | |
1008 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1009 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1010 | | --exec=* | --exe=* | --ex=*) | |
1011 | exec_prefix=$ac_optarg ;; | |
1012 | ||
1013 | -gas | --gas | --ga | --g) | |
1014 | # Obsolete; use --with-gas. | |
1015 | with_gas=yes ;; | |
1016 | ||
1017 | -help | --help | --hel | --he | -h) | |
1018 | ac_init_help=long ;; | |
1019 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1020 | ac_init_help=recursive ;; | |
1021 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1022 | ac_init_help=short ;; | |
1023 | ||
1024 | -host | --host | --hos | --ho) | |
1025 | ac_prev=host_alias ;; | |
1026 | -host=* | --host=* | --hos=* | --ho=*) | |
1027 | host_alias=$ac_optarg ;; | |
1028 | ||
1029 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1030 | ac_prev=htmldir ;; | |
1031 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1032 | | --ht=*) | |
1033 | htmldir=$ac_optarg ;; | |
1034 | ||
1035 | -includedir | --includedir | --includedi | --included | --include \ | |
1036 | | --includ | --inclu | --incl | --inc) | |
1037 | ac_prev=includedir ;; | |
1038 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1039 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1040 | includedir=$ac_optarg ;; | |
1041 | ||
1042 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1043 | ac_prev=infodir ;; | |
1044 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1045 | infodir=$ac_optarg ;; | |
1046 | ||
1047 | -libdir | --libdir | --libdi | --libd) | |
1048 | ac_prev=libdir ;; | |
1049 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1050 | libdir=$ac_optarg ;; | |
1051 | ||
1052 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1053 | | --libexe | --libex | --libe) | |
1054 | ac_prev=libexecdir ;; | |
1055 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1056 | | --libexe=* | --libex=* | --libe=*) | |
1057 | libexecdir=$ac_optarg ;; | |
1058 | ||
1059 | -localedir | --localedir | --localedi | --localed | --locale) | |
1060 | ac_prev=localedir ;; | |
1061 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1062 | localedir=$ac_optarg ;; | |
1063 | ||
1064 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1065 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1066 | ac_prev=localstatedir ;; | |
1067 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1068 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1069 | localstatedir=$ac_optarg ;; | |
1070 | ||
1071 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1072 | ac_prev=mandir ;; | |
1073 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1074 | mandir=$ac_optarg ;; | |
1075 | ||
1076 | -nfp | --nfp | --nf) | |
1077 | # Obsolete; use --without-fp. | |
1078 | with_fp=no ;; | |
1079 | ||
1080 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1081 | | --no-cr | --no-c | -n) | |
1082 | no_create=yes ;; | |
1083 | ||
1084 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1085 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1086 | no_recursion=yes ;; | |
1087 | ||
1088 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1089 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1090 | | --oldin | --oldi | --old | --ol | --o) | |
1091 | ac_prev=oldincludedir ;; | |
1092 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1093 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1094 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1095 | oldincludedir=$ac_optarg ;; | |
1096 | ||
1097 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1098 | ac_prev=prefix ;; | |
1099 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1100 | prefix=$ac_optarg ;; | |
1101 | ||
1102 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1103 | | --program-pre | --program-pr | --program-p) | |
1104 | ac_prev=program_prefix ;; | |
1105 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1106 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1107 | program_prefix=$ac_optarg ;; | |
1108 | ||
1109 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1110 | | --program-suf | --program-su | --program-s) | |
1111 | ac_prev=program_suffix ;; | |
1112 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1113 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1114 | program_suffix=$ac_optarg ;; | |
1115 | ||
1116 | -program-transform-name | --program-transform-name \ | |
1117 | | --program-transform-nam | --program-transform-na \ | |
1118 | | --program-transform-n | --program-transform- \ | |
1119 | | --program-transform | --program-transfor \ | |
1120 | | --program-transfo | --program-transf \ | |
1121 | | --program-trans | --program-tran \ | |
1122 | | --progr-tra | --program-tr | --program-t) | |
1123 | ac_prev=program_transform_name ;; | |
1124 | -program-transform-name=* | --program-transform-name=* \ | |
1125 | | --program-transform-nam=* | --program-transform-na=* \ | |
1126 | | --program-transform-n=* | --program-transform-=* \ | |
1127 | | --program-transform=* | --program-transfor=* \ | |
1128 | | --program-transfo=* | --program-transf=* \ | |
1129 | | --program-trans=* | --program-tran=* \ | |
1130 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1131 | program_transform_name=$ac_optarg ;; | |
1132 | ||
1133 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1134 | ac_prev=pdfdir ;; | |
1135 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1136 | pdfdir=$ac_optarg ;; | |
1137 | ||
1138 | -psdir | --psdir | --psdi | --psd | --ps) | |
1139 | ac_prev=psdir ;; | |
1140 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1141 | psdir=$ac_optarg ;; | |
1142 | ||
1143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1144 | | -silent | --silent | --silen | --sile | --sil) | |
1145 | silent=yes ;; | |
1146 | ||
1147 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1148 | ac_prev=sbindir ;; | |
1149 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1150 | | --sbi=* | --sb=*) | |
1151 | sbindir=$ac_optarg ;; | |
1152 | ||
1153 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1154 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1155 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1156 | | --sha | --sh) | |
1157 | ac_prev=sharedstatedir ;; | |
1158 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1159 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1160 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1161 | | --sha=* | --sh=*) | |
1162 | sharedstatedir=$ac_optarg ;; | |
1163 | ||
1164 | -site | --site | --sit) | |
1165 | ac_prev=site ;; | |
1166 | -site=* | --site=* | --sit=*) | |
1167 | site=$ac_optarg ;; | |
1168 | ||
1169 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1170 | ac_prev=srcdir ;; | |
1171 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1172 | srcdir=$ac_optarg ;; | |
1173 | ||
1174 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1175 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1176 | ac_prev=sysconfdir ;; | |
1177 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1178 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1179 | sysconfdir=$ac_optarg ;; | |
1180 | ||
1181 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1182 | ac_prev=target_alias ;; | |
1183 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1184 | target_alias=$ac_optarg ;; | |
1185 | ||
1186 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1187 | verbose=yes ;; | |
1188 | ||
1189 | -version | --version | --versio | --versi | --vers | -V) | |
1190 | ac_init_version=: ;; | |
1191 | ||
1192 | -with-* | --with-*) | |
1193 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1194 | # Reject names that are not valid shell variable names. | |
1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1196 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1197 | ac_useropt_orig=$ac_useropt |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=\$ac_optarg ;; | |
1207 | ||
1208 | -without-* | --without-*) | |
1209 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1210 | # Reject names that are not valid shell variable names. | |
1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1212 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1213 | ac_useropt_orig=$ac_useropt |
1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1215 | case $ac_user_opts in | |
1216 | *" | |
1217 | "with_$ac_useropt" | |
1218 | "*) ;; | |
1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1220 | ac_unrecognized_sep=', ';; | |
1221 | esac | |
1222 | eval with_$ac_useropt=no ;; | |
1223 | ||
1224 | --x) | |
1225 | # Obsolete; use --with-x. | |
1226 | with_x=yes ;; | |
1227 | ||
1228 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1229 | | --x-incl | --x-inc | --x-in | --x-i) | |
1230 | ac_prev=x_includes ;; | |
1231 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1232 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1233 | x_includes=$ac_optarg ;; | |
1234 | ||
1235 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1236 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1237 | ac_prev=x_libraries ;; | |
1238 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1239 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1240 | x_libraries=$ac_optarg ;; | |
1241 | ||
12833ad8 JF |
1242 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1243 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1244 | ;; |
1245 | ||
1246 | *=*) | |
1247 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1248 | # Reject names that are not valid shell variable names. | |
1249 | case $ac_envvar in #( | |
1250 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1251 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1252 | esac |
1253 | eval $ac_envvar=\$ac_optarg | |
1254 | export $ac_envvar ;; | |
1255 | ||
1256 | *) | |
1257 | # FIXME: should be removed in autoconf 3.0. | |
1258 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1259 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1260 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1261 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1262 | ;; |
1263 | ||
1264 | esac | |
1265 | done | |
1266 | ||
1267 | if test -n "$ac_prev"; then | |
1268 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1269 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1270 | fi |
1271 | ||
1272 | if test -n "$ac_unrecognized_opts"; then | |
1273 | case $enable_option_checking in | |
1274 | no) ;; | |
12833ad8 | 1275 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1276 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1277 | esac | |
1278 | fi | |
1279 | ||
1280 | # Check all directory arguments for consistency. | |
1281 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1282 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1283 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1284 | libdir localedir mandir | |
1285 | do | |
1286 | eval ac_val=\$$ac_var | |
1287 | # Remove trailing slashes. | |
1288 | case $ac_val in | |
1289 | */ ) | |
1290 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1291 | eval $ac_var=\$ac_val;; | |
1292 | esac | |
1293 | # Be sure to have absolute directory names. | |
1294 | case $ac_val in | |
1295 | [\\/$]* | ?:[\\/]* ) continue;; | |
1296 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1297 | esac | |
12833ad8 | 1298 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1299 | done |
1300 | ||
1301 | # There might be people who depend on the old broken behavior: `$host' | |
1302 | # used to hold the argument of --host etc. | |
1303 | # FIXME: To remove some day. | |
1304 | build=$build_alias | |
1305 | host=$host_alias | |
1306 | target=$target_alias | |
1307 | ||
1308 | # FIXME: To remove some day. | |
1309 | if test "x$host_alias" != x; then | |
1310 | if test "x$build_alias" = x; then | |
1311 | cross_compiling=maybe | |
c7aa54aa DWT |
1312 | elif test "x$build_alias" != "x$host_alias"; then |
1313 | cross_compiling=yes | |
1314 | fi | |
1315 | fi | |
1316 | ||
1317 | ac_tool_prefix= | |
1318 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1319 | ||
1320 | test "$silent" = yes && exec 6>/dev/null | |
1321 | ||
1322 | ||
1323 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1324 | ac_ls_di=`ls -di .` && | |
1325 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1326 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1327 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1328 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1329 | |
1330 | ||
1331 | # Find the source files, if location was not specified. | |
1332 | if test -z "$srcdir"; then | |
1333 | ac_srcdir_defaulted=yes | |
1334 | # Try the directory containing this script, then the parent directory. | |
1335 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1336 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1337 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1338 | X"$as_myself" : 'X\(//\)$' \| \ | |
1339 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1340 | $as_echo X"$as_myself" | | |
1341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1342 | s//\1/ | |
1343 | q | |
1344 | } | |
1345 | /^X\(\/\/\)[^/].*/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | /^X\(\/\/\)$/{ | |
1350 | s//\1/ | |
1351 | q | |
1352 | } | |
1353 | /^X\(\/\).*/{ | |
1354 | s//\1/ | |
1355 | q | |
1356 | } | |
1357 | s/.*/./; q'` | |
1358 | srcdir=$ac_confdir | |
1359 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1360 | srcdir=.. | |
1361 | fi | |
1362 | else | |
1363 | ac_srcdir_defaulted=no | |
1364 | fi | |
1365 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1366 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1367 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1368 | fi |
1369 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1370 | ac_abs_confdir=`( | |
12833ad8 | 1371 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1372 | pwd)` |
1373 | # When building in place, set srcdir=. | |
1374 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1375 | srcdir=. | |
1376 | fi | |
1377 | # Remove unnecessary trailing slashes from srcdir. | |
1378 | # Double slashes in file names in object file debugging info | |
1379 | # mess up M-x gdb in Emacs. | |
1380 | case $srcdir in | |
1381 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1382 | esac | |
1383 | for ac_var in $ac_precious_vars; do | |
1384 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1386 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1387 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1388 | done | |
1389 | ||
1390 | # | |
1391 | # Report the --help message. | |
1392 | # | |
1393 | if test "$ac_init_help" = "long"; then | |
1394 | # Omit some internal or obsolete options to make the list less imposing. | |
1395 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1396 | cat <<_ACEOF | |
1397 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1398 | ||
1399 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1400 | ||
1401 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1402 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1403 | ||
1404 | Defaults for the options are specified in brackets. | |
1405 | ||
1406 | Configuration: | |
1407 | -h, --help display this help and exit | |
1408 | --help=short display options specific to this package | |
1409 | --help=recursive display the short help of all the included packages | |
1410 | -V, --version display version information and exit | |
12833ad8 | 1411 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1412 | --cache-file=FILE cache test results in FILE [disabled] |
1413 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1414 | -n, --no-create do not create output files | |
1415 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1416 | ||
1417 | Installation directories: | |
1418 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1419 | [$ac_default_prefix] | |
1420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1421 | [PREFIX] | |
1422 | ||
1423 | By default, \`make install' will install all the files in | |
1424 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1425 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1426 | for instance \`--prefix=\$HOME'. | |
1427 | ||
1428 | For better control, use the options below. | |
1429 | ||
1430 | Fine tuning of the installation directories: | |
1431 | --bindir=DIR user executables [EPREFIX/bin] | |
1432 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1433 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1434 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1435 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1436 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1437 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1438 | --includedir=DIR C header files [PREFIX/include] | |
1439 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1440 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1441 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1442 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1443 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1444 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1445 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1446 | --htmldir=DIR html documentation [DOCDIR] | |
1447 | --dvidir=DIR dvi documentation [DOCDIR] | |
1448 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1449 | --psdir=DIR ps documentation [DOCDIR] | |
1450 | _ACEOF | |
1451 | ||
1452 | cat <<\_ACEOF | |
35fa52c0 | 1453 | |
66170b30 JF |
1454 | Program names: |
1455 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1456 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1457 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1458 | ||
35fa52c0 DWT |
1459 | System types: |
1460 | --build=BUILD configure for building on BUILD [guessed] | |
1461 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1462 | _ACEOF |
1463 | fi | |
1464 | ||
1465 | if test -n "$ac_init_help"; then | |
1466 | case $ac_init_help in | |
1467 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1468 | esac | |
1469 | cat <<\_ACEOF | |
1470 | ||
35fa52c0 DWT |
1471 | Optional Features: |
1472 | --disable-option-checking ignore unrecognized --enable/--with options | |
1473 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1474 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1475 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1476 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1477 | --enable-maintainer-mode |
1478 | enable make rules and dependencies not useful (and | |
1479 | sometimes confusing) to the casual installer | |
66170b30 JF |
1480 | --enable-dependency-tracking |
1481 | do not reject slow dependency extractors | |
1482 | --disable-dependency-tracking | |
1483 | speeds up one-time build | |
a243b558 JF |
1484 | --enable-static[=PKGS] build static libraries [default=no] |
1485 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1486 | --enable-fast-install[=PKGS] | |
1487 | optimize for fast installation [default=yes] | |
9c60689e | 1488 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1489 | --enable-javascript[=ENGINE] |
790e5246 | 1490 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1491 | available option for ENGINE is JavaScriptCore) |
1492 | [default=yes] | |
35fa52c0 DWT |
1493 | |
1494 | Optional Packages: | |
1495 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1496 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1497 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e DWT |
1498 | both] |
1499 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ee134472 JF |
1500 | --with-sysroot=DIR Search for dependent libraries within DIR |
1501 | (or the compiler's sysroot if not specified). | |
309b0535 DWT |
1502 | --with-apr=PATH prefix for installed APR or the full path to |
1503 | apr-config | |
35fa52c0 | 1504 | |
dbadc56a | 1505 | Some influential environment variables: |
a243b558 JF |
1506 | CXX C++ compiler command |
1507 | CXXFLAGS C++ compiler flags | |
dbadc56a DWT |
1508 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1509 | nonstandard directory <lib dir> | |
1510 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1511 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1512 | you have headers in a nonstandard directory <include dir> |
a243b558 JF |
1513 | OBJCXX Objective C++ compiler command |
1514 | OBJCXXFLAGS Objective C++ compiler flags | |
1515 | CC C compiler command | |
1516 | CFLAGS C compiler flags | |
9c60689e | 1517 | CPP C preprocessor |
a243b558 | 1518 | CXXCPP C++ preprocessor |
3fd51f51 | 1519 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1520 | PKG_CONFIG_PATH |
1521 | directories to add to pkg-config's search path | |
1522 | PKG_CONFIG_LIBDIR | |
1523 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1524 | BISON GNU Project parser generator (yacc replacement) |
1525 | FLEX the fast lexical analyser generator | |
1526 | GPERF perfect hash function generator | |
66170b30 | 1527 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1528 | WEBKIT_CFLAGS |
1529 | C compiler flags for WEBKIT, overriding pkg-config | |
1530 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1531 | GNUSTEP_CONFIG |
1532 | prints information about the current gnustep installation | |
dbadc56a DWT |
1533 | |
1534 | Use these variables to override the choices made by `configure' or to help | |
1535 | it to find libraries and programs with nonstandard names/locations. | |
1536 | ||
c7aa54aa DWT |
1537 | Report bugs to <saurik@saurik.com>. |
1538 | Cycript home page: <http://www.cycript.org/>. | |
1539 | _ACEOF | |
1540 | ac_status=$? | |
1541 | fi | |
1542 | ||
1543 | if test "$ac_init_help" = "recursive"; then | |
1544 | # If there are subdirs, report their specific --help. | |
1545 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1546 | test -d "$ac_dir" || | |
1547 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1548 | continue | |
1549 | ac_builddir=. | |
1550 | ||
1551 | case "$ac_dir" in | |
1552 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1553 | *) | |
1554 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1555 | # A ".." for each directory in $ac_dir_suffix. | |
1556 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1557 | case $ac_top_builddir_sub in | |
1558 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1559 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1560 | esac ;; | |
1561 | esac | |
1562 | ac_abs_top_builddir=$ac_pwd | |
1563 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1564 | # for backward compatibility: | |
1565 | ac_top_builddir=$ac_top_build_prefix | |
1566 | ||
1567 | case $srcdir in | |
1568 | .) # We are building in place. | |
1569 | ac_srcdir=. | |
1570 | ac_top_srcdir=$ac_top_builddir_sub | |
1571 | ac_abs_top_srcdir=$ac_pwd ;; | |
1572 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1573 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1574 | ac_top_srcdir=$srcdir | |
1575 | ac_abs_top_srcdir=$srcdir ;; | |
1576 | *) # Relative name. | |
1577 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1578 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1579 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1580 | esac | |
1581 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1582 | ||
1583 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1584 | # Check for guested configure. | |
1585 | if test -f "$ac_srcdir/configure.gnu"; then | |
1586 | echo && | |
1587 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1588 | elif test -f "$ac_srcdir/configure"; then | |
1589 | echo && | |
1590 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1591 | else | |
1592 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1593 | fi || ac_status=$? | |
1594 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1595 | done | |
1596 | fi | |
1597 | ||
1598 | test -n "$ac_init_help" && exit $ac_status | |
1599 | if $ac_init_version; then | |
1600 | cat <<\_ACEOF | |
1601 | Cycript configure 0.9 | |
53ba6704 | 1602 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1603 | |
53ba6704 | 1604 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1605 | This configure script is free software; the Free Software Foundation |
1606 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
1607 | |
1608 | Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
1609 | _ACEOF |
1610 | exit | |
1611 | fi | |
1612 | ||
1613 | ## ------------------------ ## | |
1614 | ## Autoconf initialization. ## | |
1615 | ## ------------------------ ## | |
dbadc56a | 1616 | |
a243b558 JF |
1617 | # ac_fn_cxx_try_compile LINENO |
1618 | # ---------------------------- | |
1619 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1620 | ac_fn_cxx_try_compile () | |
1621 | { | |
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1623 | rm -f conftest.$ac_objext | |
1624 | if { { ac_try="$ac_compile" | |
1625 | case "(($ac_try" in | |
1626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1627 | *) ac_try_echo=$ac_try;; | |
1628 | esac | |
1629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1630 | $as_echo "$ac_try_echo"; } >&5 | |
1631 | (eval "$ac_compile") 2>conftest.err | |
1632 | ac_status=$? | |
1633 | if test -s conftest.err; then | |
1634 | grep -v '^ *+' conftest.err >conftest.er1 | |
1635 | cat conftest.er1 >&5 | |
1636 | mv -f conftest.er1 conftest.err | |
1637 | fi | |
1638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1639 | test $ac_status = 0; } && { | |
1640 | test -z "$ac_cxx_werror_flag" || | |
1641 | test ! -s conftest.err | |
1642 | } && test -s conftest.$ac_objext; then : | |
1643 | ac_retval=0 | |
1644 | else | |
1645 | $as_echo "$as_me: failed program was:" >&5 | |
1646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1647 | ||
1648 | ac_retval=1 | |
1649 | fi | |
1650 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1651 | as_fn_set_status $ac_retval | |
1652 | ||
1653 | } # ac_fn_cxx_try_compile | |
1654 | ||
1655 | # ac_fn_objcxx_try_compile LINENO | |
1656 | # ------------------------------- | |
1657 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1658 | ac_fn_objcxx_try_compile () | |
1659 | { | |
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1661 | rm -f conftest.$ac_objext | |
1662 | if { { ac_try="$ac_compile" | |
1663 | case "(($ac_try" in | |
1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1665 | *) ac_try_echo=$ac_try;; | |
1666 | esac | |
1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1668 | $as_echo "$ac_try_echo"; } >&5 | |
1669 | (eval "$ac_compile") 2>conftest.err | |
1670 | ac_status=$? | |
1671 | if test -s conftest.err; then | |
1672 | grep -v '^ *+' conftest.err >conftest.er1 | |
1673 | cat conftest.er1 >&5 | |
1674 | mv -f conftest.er1 conftest.err | |
1675 | fi | |
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1677 | test $ac_status = 0; } && { | |
1678 | test -z "$ac_objcxx_werror_flag" || | |
1679 | test ! -s conftest.err | |
1680 | } && test -s conftest.$ac_objext; then : | |
1681 | ac_retval=0 | |
1682 | else | |
1683 | $as_echo "$as_me: failed program was:" >&5 | |
1684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1685 | ||
1686 | ac_retval=1 | |
1687 | fi | |
1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1689 | as_fn_set_status $ac_retval | |
1690 | ||
1691 | } # ac_fn_objcxx_try_compile | |
1692 | ||
35fa52c0 DWT |
1693 | # ac_fn_c_try_compile LINENO |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
ee134472 | 1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1727 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1728 | |
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_c_try_link LINENO | |
1732 | # ----------------------- | |
1733 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_c_try_link () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1738 | if { { ac_try="$ac_link" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_link") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_c_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest$ac_exeext && { | |
1757 | test "$cross_compiling" = yes || | |
53ba6704 | 1758 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1759 | }; then : |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | ac_retval=1 | |
1766 | fi | |
1767 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1768 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1769 | # interfere with the next link command; also delete a directory that is | |
1770 | # left behind by Apple's compiler. We do this before executing the actions. | |
1771 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1772 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1773 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1774 | |
1775 | } # ac_fn_c_try_link | |
1776 | ||
9c60689e DWT |
1777 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1778 | # ------------------------------------------------------- | |
1779 | # Tests whether HEADER exists and can be compiled using the include files in | |
1780 | # INCLUDES, setting the cache variable VAR accordingly. | |
1781 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1782 | { |
1783 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1785 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1786 | if eval \${$3+:} false; then : |
9c60689e DWT |
1787 | $as_echo_n "(cached) " >&6 |
1788 | else | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | #include <$2> | |
1793 | _ACEOF | |
1794 | if ac_fn_c_try_compile "$LINENO"; then : | |
1795 | eval "$3=yes" | |
1796 | else | |
1797 | eval "$3=no" | |
1798 | fi | |
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1800 | fi | |
1801 | eval ac_res=\$$3 | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1803 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1804 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1805 | |
1806 | } # ac_fn_c_check_header_compile | |
1807 | ||
1808 | # ac_fn_c_try_cpp LINENO | |
1809 | # ---------------------- | |
1810 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1811 | ac_fn_c_try_cpp () | |
1812 | { | |
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1814 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1815 | case "(($ac_try" in |
1816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1817 | *) ac_try_echo=$ac_try;; | |
1818 | esac | |
1819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1820 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1822 | ac_status=$? |
1823 | if test -s conftest.err; then | |
1824 | grep -v '^ *+' conftest.err >conftest.er1 | |
1825 | cat conftest.er1 >&5 | |
1826 | mv -f conftest.er1 conftest.err | |
1827 | fi | |
1828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1829 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1830 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1831 | test ! -s conftest.err |
9c60689e | 1832 | }; then : |
dbadc56a DWT |
1833 | ac_retval=0 |
1834 | else | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
9c60689e | 1838 | ac_retval=1 |
dbadc56a | 1839 | fi |
ee134472 | 1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1841 | as_fn_set_status $ac_retval |
dbadc56a | 1842 | |
9c60689e | 1843 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1844 | |
1845 | # ac_fn_c_try_run LINENO | |
1846 | # ---------------------- | |
1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1848 | # that executables *can* be run. | |
1849 | ac_fn_c_try_run () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | if { { ac_try="$ac_link" | |
1853 | case "(($ac_try" in | |
1854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1855 | *) ac_try_echo=$ac_try;; | |
1856 | esac | |
1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1858 | $as_echo "$ac_try_echo"; } >&5 | |
1859 | (eval "$ac_link") 2>&5 | |
1860 | ac_status=$? | |
1861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1862 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1863 | { { case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_try") 2>&5 | |
1870 | ac_status=$? | |
1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1872 | test $ac_status = 0; }; }; then : | |
1873 | ac_retval=0 | |
1874 | else | |
1875 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=$ac_status | |
1880 | fi | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1883 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1884 | |
1885 | } # ac_fn_c_try_run | |
6b66678a | 1886 | |
9c60689e DWT |
1887 | # ac_fn_c_check_func LINENO FUNC VAR |
1888 | # ---------------------------------- | |
1889 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1890 | ac_fn_c_check_func () | |
6b66678a DWT |
1891 | { |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1894 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1895 | if eval \${$3+:} false; then : |
9c60689e | 1896 | $as_echo_n "(cached) " >&6 |
6b66678a | 1897 | else |
9c60689e DWT |
1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1899 | /* end confdefs.h. */ | |
1900 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1902 | #define $2 innocuous_$2 | |
6b66678a | 1903 | |
9c60689e DWT |
1904 | /* System header to define __stub macros and hopefully few prototypes, |
1905 | which can conflict with char $2 (); below. | |
1906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1907 | <limits.h> exists even on freestanding compilers. */ | |
1908 | ||
1909 | #ifdef __STDC__ | |
1910 | # include <limits.h> | |
1911 | #else | |
1912 | # include <assert.h> | |
1913 | #endif | |
1914 | ||
1915 | #undef $2 | |
1916 | ||
1917 | /* Override any GCC internal prototype to avoid an error. | |
1918 | Use char because int might match the return type of a GCC | |
1919 | builtin and then its argument prototype would still apply. */ | |
1920 | #ifdef __cplusplus | |
1921 | extern "C" | |
1922 | #endif | |
1923 | char $2 (); | |
1924 | /* The GNU C library defines this for functions which it implements | |
1925 | to always fail with ENOSYS. Some functions are actually named | |
1926 | something starting with __ and the normal name is an alias. */ | |
1927 | #if defined __stub_$2 || defined __stub___$2 | |
1928 | choke me | |
1929 | #endif | |
1930 | ||
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | return $2 (); | |
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | if ac_fn_c_try_link "$LINENO"; then : | |
1940 | eval "$3=yes" | |
1941 | else | |
1942 | eval "$3=no" | |
1943 | fi | |
1944 | rm -f core conftest.err conftest.$ac_objext \ | |
1945 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1946 | fi |
9c60689e DWT |
1947 | eval ac_res=\$$3 |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1949 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1950 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1951 | |
9c60689e | 1952 | } # ac_fn_c_check_func |
6b66678a | 1953 | |
9c60689e DWT |
1954 | # ac_fn_cxx_try_cpp LINENO |
1955 | # ------------------------ | |
1956 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1957 | ac_fn_cxx_try_cpp () | |
1958 | { | |
1959 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1960 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1961 | case "(($ac_try" in | |
1962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1963 | *) ac_try_echo=$ac_try;; | |
1964 | esac | |
1965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1966 | $as_echo "$ac_try_echo"; } >&5 | |
1967 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1968 | ac_status=$? | |
1969 | if test -s conftest.err; then | |
1970 | grep -v '^ *+' conftest.err >conftest.er1 | |
1971 | cat conftest.er1 >&5 | |
1972 | mv -f conftest.er1 conftest.err | |
1973 | fi | |
1974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1975 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1976 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1977 | test ! -s conftest.err | |
1978 | }; then : | |
1979 | ac_retval=0 | |
1980 | else | |
1981 | $as_echo "$as_me: failed program was:" >&5 | |
1982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1983 | ||
1984 | ac_retval=1 | |
1985 | fi | |
ee134472 | 1986 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1987 | as_fn_set_status $ac_retval |
1988 | ||
1989 | } # ac_fn_cxx_try_cpp | |
1990 | ||
1991 | # ac_fn_cxx_try_link LINENO | |
1992 | # ------------------------- | |
1993 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1994 | ac_fn_cxx_try_link () | |
1995 | { | |
1996 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1998 | if { { ac_try="$ac_link" | |
1999 | case "(($ac_try" in | |
2000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2001 | *) ac_try_echo=$ac_try;; | |
2002 | esac | |
2003 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2004 | $as_echo "$ac_try_echo"; } >&5 | |
2005 | (eval "$ac_link") 2>conftest.err | |
2006 | ac_status=$? | |
2007 | if test -s conftest.err; then | |
2008 | grep -v '^ *+' conftest.err >conftest.er1 | |
2009 | cat conftest.er1 >&5 | |
2010 | mv -f conftest.er1 conftest.err | |
2011 | fi | |
2012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2013 | test $ac_status = 0; } && { | |
2014 | test -z "$ac_cxx_werror_flag" || | |
2015 | test ! -s conftest.err | |
2016 | } && test -s conftest$ac_exeext && { | |
2017 | test "$cross_compiling" = yes || | |
53ba6704 | 2018 | test -x conftest$ac_exeext |
9c60689e DWT |
2019 | }; then : |
2020 | ac_retval=0 | |
2021 | else | |
2022 | $as_echo "$as_me: failed program was:" >&5 | |
2023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2024 | ||
2025 | ac_retval=1 | |
2026 | fi | |
2027 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2028 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2029 | # interfere with the next link command; also delete a directory that is | |
2030 | # left behind by Apple's compiler. We do this before executing the actions. | |
2031 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2032 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2033 | as_fn_set_status $ac_retval |
2034 | ||
2035 | } # ac_fn_cxx_try_link | |
2036 | ||
47aaa820 DWT |
2037 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2038 | # --------------------------------------------------------- | |
2039 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2040 | # the include files in INCLUDES and setting the cache variable VAR | |
2041 | # accordingly. | |
2042 | ac_fn_cxx_check_header_mongrel () | |
2043 | { | |
2044 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2045 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2047 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2048 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2049 | $as_echo_n "(cached) " >&6 |
2050 | fi | |
2051 | eval ac_res=\$$3 | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2053 | $as_echo "$ac_res" >&6; } | |
2054 | else | |
2055 | # Is the header compilable? | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2057 | $as_echo_n "checking $2 usability... " >&6; } | |
2058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2059 | /* end confdefs.h. */ | |
2060 | $4 | |
2061 | #include <$2> | |
2062 | _ACEOF | |
2063 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2064 | ac_header_compiler=yes | |
2065 | else | |
2066 | ac_header_compiler=no | |
2067 | fi | |
2068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2070 | $as_echo "$ac_header_compiler" >&6; } | |
2071 | ||
2072 | # Is the header present? | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2074 | $as_echo_n "checking $2 presence... " >&6; } | |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2076 | /* end confdefs.h. */ | |
2077 | #include <$2> | |
2078 | _ACEOF | |
2079 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2080 | ac_header_preproc=yes | |
2081 | else | |
2082 | ac_header_preproc=no | |
2083 | fi | |
12833ad8 | 2084 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2086 | $as_echo "$ac_header_preproc" >&6; } | |
2087 | ||
2088 | # So? What about this header? | |
2089 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2090 | yes:no: ) | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2092 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2094 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2095 | ;; | |
2096 | no:yes:* ) | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2098 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2102 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2104 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2106 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2107 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2108 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2109 | ## -------------------------------- ##" |
47aaa820 DWT |
2110 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2111 | ;; | |
2112 | esac | |
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2114 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2115 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2116 | $as_echo_n "(cached) " >&6 |
2117 | else | |
2118 | eval "$3=\$ac_header_compiler" | |
2119 | fi | |
2120 | eval ac_res=\$$3 | |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2122 | $as_echo "$ac_res" >&6; } | |
2123 | fi | |
ee134472 | 2124 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2125 | |
2126 | } # ac_fn_cxx_check_header_mongrel | |
2127 | ||
c823f118 DWT |
2128 | # ac_fn_objcxx_try_link LINENO |
2129 | # ---------------------------- | |
2130 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2131 | ac_fn_objcxx_try_link () | |
2132 | { | |
2133 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2135 | if { { ac_try="$ac_link" | |
2136 | case "(($ac_try" in | |
2137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2138 | *) ac_try_echo=$ac_try;; | |
2139 | esac | |
2140 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2141 | $as_echo "$ac_try_echo"; } >&5 | |
2142 | (eval "$ac_link") 2>conftest.err | |
2143 | ac_status=$? | |
2144 | if test -s conftest.err; then | |
2145 | grep -v '^ *+' conftest.err >conftest.er1 | |
2146 | cat conftest.er1 >&5 | |
2147 | mv -f conftest.er1 conftest.err | |
2148 | fi | |
2149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2150 | test $ac_status = 0; } && { | |
2151 | test -z "$ac_objcxx_werror_flag" || | |
2152 | test ! -s conftest.err | |
2153 | } && test -s conftest$ac_exeext && { | |
2154 | test "$cross_compiling" = yes || | |
53ba6704 | 2155 | test -x conftest$ac_exeext |
c823f118 DWT |
2156 | }; then : |
2157 | ac_retval=0 | |
2158 | else | |
2159 | $as_echo "$as_me: failed program was:" >&5 | |
2160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2161 | ||
2162 | ac_retval=1 | |
2163 | fi | |
2164 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2165 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2166 | # interfere with the next link command; also delete a directory that is | |
2167 | # left behind by Apple's compiler. We do this before executing the actions. | |
2168 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2169 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2170 | as_fn_set_status $ac_retval |
2171 | ||
2172 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2173 | cat >config.log <<_ACEOF |
2174 | This file contains any messages produced by compilers while | |
2175 | running configure, to aid debugging if configure makes a mistake. | |
2176 | ||
2177 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2178 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2179 | |
2180 | $ $0 $@ | |
2181 | ||
2182 | _ACEOF | |
2183 | exec 5>>config.log | |
2184 | { | |
2185 | cat <<_ASUNAME | |
2186 | ## --------- ## | |
2187 | ## Platform. ## | |
2188 | ## --------- ## | |
2189 | ||
2190 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2191 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2192 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2193 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2194 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2195 | ||
2196 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2197 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2198 | ||
2199 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2200 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2201 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2202 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2203 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2204 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2205 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2206 | ||
2207 | _ASUNAME | |
2208 | ||
2209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2210 | for as_dir in $PATH | |
2211 | do | |
2212 | IFS=$as_save_IFS | |
2213 | test -z "$as_dir" && as_dir=. | |
2214 | $as_echo "PATH: $as_dir" | |
2215 | done | |
2216 | IFS=$as_save_IFS | |
2217 | ||
2218 | } >&5 | |
2219 | ||
2220 | cat >&5 <<_ACEOF | |
2221 | ||
2222 | ||
2223 | ## ----------- ## | |
2224 | ## Core tests. ## | |
2225 | ## ----------- ## | |
2226 | ||
2227 | _ACEOF | |
2228 | ||
2229 | ||
2230 | # Keep a trace of the command line. | |
2231 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2232 | # Strip out --silent because we don't want to record it for future runs. | |
2233 | # Also quote any args containing shell meta-characters. | |
2234 | # Make two passes to allow for proper duplicate-argument suppression. | |
2235 | ac_configure_args= | |
2236 | ac_configure_args0= | |
2237 | ac_configure_args1= | |
2238 | ac_must_keep_next=false | |
2239 | for ac_pass in 1 2 | |
2240 | do | |
2241 | for ac_arg | |
2242 | do | |
2243 | case $ac_arg in | |
2244 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2245 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2246 | | -silent | --silent | --silen | --sile | --sil) | |
2247 | continue ;; | |
2248 | *\'*) | |
2249 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2250 | esac | |
2251 | case $ac_pass in | |
2252 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2253 | 2) | |
2254 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2255 | if test $ac_must_keep_next = true; then | |
2256 | ac_must_keep_next=false # Got value, back to normal. | |
2257 | else | |
2258 | case $ac_arg in | |
2259 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2260 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2261 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2262 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2263 | case "$ac_configure_args0 " in | |
2264 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2265 | esac | |
2266 | ;; | |
2267 | -* ) ac_must_keep_next=true ;; | |
2268 | esac | |
2269 | fi | |
2270 | as_fn_append ac_configure_args " '$ac_arg'" | |
2271 | ;; | |
2272 | esac | |
2273 | done | |
2274 | done | |
2275 | { ac_configure_args0=; unset ac_configure_args0;} | |
2276 | { ac_configure_args1=; unset ac_configure_args1;} | |
2277 | ||
2278 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2279 | # config.log. We remove comments because anyway the quotes in there | |
2280 | # would cause problems or look ugly. | |
2281 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2282 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2283 | trap 'exit_status=$? | |
2284 | # Save into config.log some information that might help in debugging. | |
2285 | { | |
2286 | echo | |
2287 | ||
12833ad8 | 2288 | $as_echo "## ---------------- ## |
c7aa54aa | 2289 | ## Cache variables. ## |
12833ad8 | 2290 | ## ---------------- ##" |
c7aa54aa DWT |
2291 | echo |
2292 | # The following way of writing the cache mishandles newlines in values, | |
2293 | ( | |
2294 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2295 | eval ac_val=\$$ac_var | |
2296 | case $ac_val in #( | |
2297 | *${as_nl}*) | |
2298 | case $ac_var in #( | |
2299 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2300 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2301 | esac | |
2302 | case $ac_var in #( | |
2303 | _ | IFS | as_nl) ;; #( | |
2304 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2305 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2306 | esac ;; | |
2307 | esac | |
2308 | done | |
2309 | (set) 2>&1 | | |
2310 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2311 | *${as_nl}ac_space=\ *) | |
2312 | sed -n \ | |
2313 | "s/'\''/'\''\\\\'\'''\''/g; | |
2314 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2315 | ;; #( | |
2316 | *) | |
2317 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2318 | ;; | |
2319 | esac | | |
2320 | sort | |
2321 | ) | |
2322 | echo | |
2323 | ||
12833ad8 | 2324 | $as_echo "## ----------------- ## |
c7aa54aa | 2325 | ## Output variables. ## |
12833ad8 | 2326 | ## ----------------- ##" |
c7aa54aa DWT |
2327 | echo |
2328 | for ac_var in $ac_subst_vars | |
2329 | do | |
2330 | eval ac_val=\$$ac_var | |
2331 | case $ac_val in | |
2332 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2333 | esac | |
2334 | $as_echo "$ac_var='\''$ac_val'\''" | |
2335 | done | sort | |
2336 | echo | |
2337 | ||
2338 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2339 | $as_echo "## ------------------- ## |
c7aa54aa | 2340 | ## File substitutions. ## |
12833ad8 | 2341 | ## ------------------- ##" |
c7aa54aa DWT |
2342 | echo |
2343 | for ac_var in $ac_subst_files | |
2344 | do | |
2345 | eval ac_val=\$$ac_var | |
2346 | case $ac_val in | |
2347 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2348 | esac | |
2349 | $as_echo "$ac_var='\''$ac_val'\''" | |
2350 | done | sort | |
2351 | echo | |
2352 | fi | |
2353 | ||
2354 | if test -s confdefs.h; then | |
12833ad8 | 2355 | $as_echo "## ----------- ## |
c7aa54aa | 2356 | ## confdefs.h. ## |
12833ad8 | 2357 | ## ----------- ##" |
c7aa54aa DWT |
2358 | echo |
2359 | cat confdefs.h | |
2360 | echo | |
2361 | fi | |
2362 | test "$ac_signal" != 0 && | |
2363 | $as_echo "$as_me: caught signal $ac_signal" | |
2364 | $as_echo "$as_me: exit $exit_status" | |
2365 | } >&5 | |
2366 | rm -f core *.core core.conftest.* && | |
2367 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2368 | exit $exit_status | |
2369 | ' 0 | |
2370 | for ac_signal in 1 2 13 15; do | |
2371 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2372 | done | |
2373 | ac_signal=0 | |
2374 | ||
2375 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2376 | rm -f -r conftest* confdefs.h | |
2377 | ||
2378 | $as_echo "/* confdefs.h */" > confdefs.h | |
2379 | ||
2380 | # Predefined preprocessor variables. | |
2381 | ||
2382 | cat >>confdefs.h <<_ACEOF | |
2383 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2384 | _ACEOF | |
2385 | ||
2386 | cat >>confdefs.h <<_ACEOF | |
2387 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2388 | _ACEOF | |
2389 | ||
2390 | cat >>confdefs.h <<_ACEOF | |
2391 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2392 | _ACEOF | |
2393 | ||
2394 | cat >>confdefs.h <<_ACEOF | |
2395 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2396 | _ACEOF | |
2397 | ||
2398 | cat >>confdefs.h <<_ACEOF | |
2399 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2400 | _ACEOF | |
2401 | ||
2402 | cat >>confdefs.h <<_ACEOF | |
2403 | #define PACKAGE_URL "$PACKAGE_URL" | |
2404 | _ACEOF | |
2405 | ||
2406 | ||
2407 | # Let the site file select an alternate cache file if it wants to. | |
2408 | # Prefer an explicitly selected file to automatically selected ones. | |
2409 | ac_site_file1=NONE | |
2410 | ac_site_file2=NONE | |
2411 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2412 | # We do not want a PATH search for config.site. |
2413 | case $CONFIG_SITE in #(( | |
2414 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2415 | */*) ac_site_file1=$CONFIG_SITE;; | |
2416 | *) ac_site_file1=./$CONFIG_SITE;; | |
2417 | esac | |
c7aa54aa DWT |
2418 | elif test "x$prefix" != xNONE; then |
2419 | ac_site_file1=$prefix/share/config.site | |
2420 | ac_site_file2=$prefix/etc/config.site | |
2421 | else | |
2422 | ac_site_file1=$ac_default_prefix/share/config.site | |
2423 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2424 | fi | |
2425 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2426 | do | |
2427 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2428 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2430 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2431 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2432 | . "$ac_site_file" \ |
2433 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2435 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2436 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2437 | fi |
2438 | done | |
2439 | ||
2440 | if test -r "$cache_file"; then | |
9c60689e DWT |
2441 | # Some versions of bash will fail to source /dev/null (special files |
2442 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2443 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2445 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2446 | case $cache_file in | |
2447 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2448 | *) . "./$cache_file";; | |
2449 | esac | |
2450 | fi | |
2451 | else | |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2453 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2454 | >$cache_file | |
2455 | fi | |
2456 | ||
2457 | # Check that the precious variables saved in the cache have kept the same | |
2458 | # value. | |
2459 | ac_cache_corrupted=false | |
2460 | for ac_var in $ac_precious_vars; do | |
2461 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2462 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2463 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2464 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2465 | case $ac_old_set,$ac_new_set in | |
2466 | set,) | |
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2468 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2469 | ac_cache_corrupted=: ;; | |
2470 | ,set) | |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2472 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2473 | ac_cache_corrupted=: ;; | |
2474 | ,);; | |
2475 | *) | |
2476 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2477 | # differences in whitespace do not lead to failure. | |
2478 | ac_old_val_w=`echo x $ac_old_val` | |
2479 | ac_new_val_w=`echo x $ac_new_val` | |
2480 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2482 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2483 | ac_cache_corrupted=: | |
2484 | else | |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2486 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2487 | eval $ac_var=\$ac_old_val | |
2488 | fi | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2490 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2492 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2493 | fi;; | |
2494 | esac | |
2495 | # Pass precious variables to config.status. | |
2496 | if test "$ac_new_set" = set; then | |
2497 | case $ac_new_val in | |
2498 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2499 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2500 | esac | |
2501 | case " $ac_configure_args " in | |
2502 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2503 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2504 | esac | |
2505 | fi | |
2506 | done | |
2507 | if $ac_cache_corrupted; then | |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2511 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2512 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2513 | fi |
2514 | ## -------------------- ## | |
2515 | ## Main body of script. ## | |
2516 | ## -------------------- ## | |
2517 | ||
2518 | ac_ext=c | |
2519 | ac_cpp='$CPP $CPPFLAGS' | |
2520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2523 | ||
2524 | ||
66170b30 JF |
2525 | |
2526 | ||
35fa52c0 | 2527 | |
6b66678a DWT |
2528 | ac_aux_dir= |
2529 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2530 | if test -f "$ac_dir/install-sh"; then |
2531 | ac_aux_dir=$ac_dir | |
2532 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2533 | break | |
2534 | elif test -f "$ac_dir/install.sh"; then | |
2535 | ac_aux_dir=$ac_dir | |
2536 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2537 | break | |
2538 | elif test -f "$ac_dir/shtool"; then | |
2539 | ac_aux_dir=$ac_dir | |
2540 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2541 | break | |
2542 | fi | |
6b66678a DWT |
2543 | done |
2544 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2545 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2546 | fi |
2547 | ||
2548 | # These three variables are undocumented and unsupported, | |
2549 | # and are intended to be withdrawn in a future Autoconf release. | |
2550 | # They can cause serious problems if a builder's source tree is in a directory | |
2551 | # whose full name contains unusual characters. | |
2552 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2553 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2554 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2555 | ||
2556 | ||
9c60689e | 2557 | |
296ee9a6 JF |
2558 | ac_config_headers="$ac_config_headers config.h" |
2559 | ||
9c60689e | 2560 | |
66170b30 | 2561 | am__api_version='1.13' |
9c60689e | 2562 | |
66170b30 JF |
2563 | # Find a good install program. We prefer a C program (faster), |
2564 | # so one script is as good as another. But avoid the broken or | |
2565 | # incompatible versions: | |
2566 | # SysV /etc/install, /usr/sbin/install | |
2567 | # SunOS /usr/etc/install | |
2568 | # IRIX /sbin/install | |
2569 | # AIX /bin/install | |
2570 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2574 | # OS/2's system install, which has a completely different semantic | |
2575 | # ./install, which can be erroneously created by make from ./install.sh. | |
2576 | # Reject install programs that cannot install multiple files. | |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2578 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2579 | if test -z "$INSTALL"; then | |
2580 | if ${ac_cv_path_install+:} false; then : | |
2581 | $as_echo_n "(cached) " >&6 | |
2582 | else | |
2583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2584 | for as_dir in $PATH | |
2585 | do | |
2586 | IFS=$as_save_IFS | |
2587 | test -z "$as_dir" && as_dir=. | |
2588 | # Account for people who put trailing slashes in PATH elements. | |
2589 | case $as_dir/ in #(( | |
2590 | ./ | .// | /[cC]/* | \ | |
2591 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2592 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2593 | /usr/ucb/* ) ;; | |
2594 | *) | |
2595 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2596 | # Don't use installbsd from OSF since it installs stuff as root | |
2597 | # by default. | |
2598 | for ac_prog in ginstall scoinst install; do | |
2599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2600 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2601 | if test $ac_prog = install && | |
2602 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2603 | # AIX install. It has an incompatible calling convention. | |
2604 | : | |
2605 | elif test $ac_prog = install && | |
2606 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2607 | # program-specific install script used by HP pwplus--don't use. | |
2608 | : | |
2609 | else | |
2610 | rm -rf conftest.one conftest.two conftest.dir | |
2611 | echo one > conftest.one | |
2612 | echo two > conftest.two | |
2613 | mkdir conftest.dir | |
2614 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2615 | test -s conftest.one && test -s conftest.two && | |
2616 | test -s conftest.dir/conftest.one && | |
2617 | test -s conftest.dir/conftest.two | |
2618 | then | |
2619 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2620 | break 3 | |
2621 | fi | |
2622 | fi | |
2623 | fi | |
2624 | done | |
2625 | done | |
2626 | ;; | |
2627 | esac | |
9c60689e | 2628 | |
66170b30 JF |
2629 | done |
2630 | IFS=$as_save_IFS | |
9c60689e | 2631 | |
66170b30 | 2632 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2633 | |
66170b30 JF |
2634 | fi |
2635 | if test "${ac_cv_path_install+set}" = set; then | |
2636 | INSTALL=$ac_cv_path_install | |
2637 | else | |
2638 | # As a last resort, use the slow shell script. Don't cache a | |
2639 | # value for INSTALL within a source directory, because that will | |
2640 | # break other packages using the cache if that directory is | |
2641 | # removed, or if the value is a relative name. | |
2642 | INSTALL=$ac_install_sh | |
2643 | fi | |
2644 | fi | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2646 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2647 | |
66170b30 JF |
2648 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2649 | # It thinks the first close brace ends the variable substitution. | |
2650 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2651 | |
66170b30 | 2652 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2653 | |
66170b30 | 2654 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2655 | |
66170b30 JF |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2657 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2658 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2659 | # name. Accept space and tab only in the latter. | |
2660 | am_lf=' | |
2661 | ' | |
2662 | case `pwd` in | |
2663 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2664 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2665 | esac | |
2666 | case $srcdir in | |
2667 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2668 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2669 | esac | |
9c60689e | 2670 | |
66170b30 JF |
2671 | # Do 'set' in a subshell so we don't clobber the current shell's |
2672 | # arguments. Must try -L first in case configure is actually a | |
2673 | # symlink; some systems play weird games with the mod time of symlinks | |
2674 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2675 | # directory). | |
2676 | if ( | |
2677 | am_has_slept=no | |
2678 | for am_try in 1 2; do | |
2679 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2680 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2681 | if test "$*" = "X"; then | |
2682 | # -L didn't work. | |
2683 | set X `ls -t "$srcdir/configure" conftest.file` | |
2684 | fi | |
2685 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2686 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2687 | ||
2688 | # If neither matched, then we have a broken ls. This can happen | |
2689 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2690 | # broken ls alias from the environment. This has actually | |
2691 | # happened. Such a system could not be considered "sane". | |
2692 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2693 | alias in your environment" "$LINENO" 5 | |
2694 | fi | |
2695 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2696 | break | |
2697 | fi | |
2698 | # Just in case. | |
2699 | sleep 1 | |
2700 | am_has_slept=yes | |
2701 | done | |
2702 | test "$2" = conftest.file | |
2703 | ) | |
2704 | then | |
2705 | # Ok. | |
2706 | : | |
2707 | else | |
2708 | as_fn_error $? "newly created file is older than distributed files! | |
2709 | Check your system clock" "$LINENO" 5 | |
2710 | fi | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2712 | $as_echo "yes" >&6; } | |
2713 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2714 | # generated files are strictly newer. | |
2715 | am_sleep_pid= | |
2716 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2717 | ( sleep 1 ) & | |
2718 | am_sleep_pid=$! | |
2719 | fi | |
2720 | ||
2721 | rm -f conftest.file | |
2722 | ||
2723 | test "$program_prefix" != NONE && | |
2724 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2725 | # Use a double $ so make ignores it. | |
2726 | test "$program_suffix" != NONE && | |
2727 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2728 | # Double any \ or $. | |
2729 | # By default was `s,x,x', remove it if useless. | |
2730 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2731 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2732 | ||
2733 | # expand $ac_aux_dir to an absolute path | |
2734 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2735 | ||
2736 | if test x"${MISSING+set}" != xset; then | |
2737 | case $am_aux_dir in | |
2738 | *\ * | *\ *) | |
2739 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2740 | *) | |
2741 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2742 | esac | |
2743 | fi | |
2744 | # Use eval to expand $SHELL | |
2745 | if eval "$MISSING --is-lightweight"; then | |
2746 | am_missing_run="$MISSING " | |
2747 | else | |
2748 | am_missing_run= | |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2750 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2751 | fi | |
9c60689e | 2752 | |
66170b30 JF |
2753 | if test x"${install_sh}" != xset; then |
2754 | case $am_aux_dir in | |
2755 | *\ * | *\ *) | |
2756 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2757 | *) | |
2758 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2759 | esac | |
2760 | fi | |
9c60689e | 2761 | |
66170b30 JF |
2762 | # Installed binaries are usually stripped using 'strip' when the user |
2763 | # run "make install-strip". However 'strip' might not be the right | |
2764 | # tool to use in cross-compilation environments, therefore Automake | |
2765 | # will honor the 'STRIP' environment variable to overrule this program. | |
2766 | if test "$cross_compiling" != no; then | |
2767 | if test -n "$ac_tool_prefix"; then | |
2768 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2769 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2771 | $as_echo_n "checking for $ac_word... " >&6; } | |
2772 | if ${ac_cv_prog_STRIP+:} false; then : | |
2773 | $as_echo_n "(cached) " >&6 | |
2774 | else | |
2775 | if test -n "$STRIP"; then | |
2776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2777 | else | |
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2779 | for as_dir in $PATH | |
2780 | do | |
2781 | IFS=$as_save_IFS | |
2782 | test -z "$as_dir" && as_dir=. | |
2783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2785 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2787 | break 2 | |
2788 | fi | |
2789 | done | |
2790 | done | |
2791 | IFS=$as_save_IFS | |
9c60689e | 2792 | |
66170b30 JF |
2793 | fi |
2794 | fi | |
2795 | STRIP=$ac_cv_prog_STRIP | |
2796 | if test -n "$STRIP"; then | |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2798 | $as_echo "$STRIP" >&6; } | |
2799 | else | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2801 | $as_echo "no" >&6; } | |
2802 | fi | |
9c60689e | 2803 | |
9c60689e | 2804 | |
66170b30 JF |
2805 | fi |
2806 | if test -z "$ac_cv_prog_STRIP"; then | |
2807 | ac_ct_STRIP=$STRIP | |
2808 | # Extract the first word of "strip", so it can be a program name with args. | |
2809 | set dummy strip; ac_word=$2 | |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2811 | $as_echo_n "checking for $ac_word... " >&6; } | |
2812 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2813 | $as_echo_n "(cached) " >&6 |
2814 | else | |
66170b30 JF |
2815 | if test -n "$ac_ct_STRIP"; then |
2816 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2817 | else | |
2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2819 | for as_dir in $PATH | |
2820 | do | |
2821 | IFS=$as_save_IFS | |
2822 | test -z "$as_dir" && as_dir=. | |
2823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2825 | ac_cv_prog_ac_ct_STRIP="strip" | |
2826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2827 | break 2 | |
2828 | fi | |
2829 | done | |
2830 | done | |
2831 | IFS=$as_save_IFS | |
9c60689e DWT |
2832 | |
2833 | fi | |
66170b30 JF |
2834 | fi |
2835 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2836 | if test -n "$ac_ct_STRIP"; then | |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2838 | $as_echo "$ac_ct_STRIP" >&6; } | |
2839 | else | |
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2841 | $as_echo "no" >&6; } | |
2842 | fi | |
2843 | ||
2844 | if test "x$ac_ct_STRIP" = x; then | |
2845 | STRIP=":" | |
2846 | else | |
2847 | case $cross_compiling:$ac_tool_warned in | |
2848 | yes:) | |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2851 | ac_tool_warned=yes ;; | |
9c60689e | 2852 | esac |
66170b30 JF |
2853 | STRIP=$ac_ct_STRIP |
2854 | fi | |
2855 | else | |
2856 | STRIP="$ac_cv_prog_STRIP" | |
2857 | fi | |
9c60689e | 2858 | |
66170b30 JF |
2859 | fi |
2860 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2861 | |
66170b30 JF |
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2863 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2864 | if test -z "$MKDIR_P"; then | |
2865 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2866 | $as_echo_n "(cached) " >&6 |
2867 | else | |
66170b30 JF |
2868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2869 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2870 | do | |
2871 | IFS=$as_save_IFS | |
2872 | test -z "$as_dir" && as_dir=. | |
2873 | for ac_prog in mkdir gmkdir; do | |
2874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2875 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2876 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2877 | 'mkdir (GNU coreutils) '* | \ | |
2878 | 'mkdir (coreutils) '* | \ | |
2879 | 'mkdir (fileutils) '4.1*) | |
2880 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2881 | break 3;; | |
2882 | esac | |
2883 | done | |
2884 | done | |
2885 | done | |
2886 | IFS=$as_save_IFS | |
2887 | ||
2888 | fi | |
2889 | ||
2890 | test -d ./--version && rmdir ./--version | |
2891 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2892 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2893 | else | |
2894 | # As a last resort, use the slow shell script. Don't cache a | |
2895 | # value for MKDIR_P within a source directory, because that will | |
2896 | # break other packages using the cache if that directory is | |
2897 | # removed, or if the value is a relative name. | |
2898 | MKDIR_P="$ac_install_sh -d" | |
2899 | fi | |
2900 | fi | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2902 | $as_echo "$MKDIR_P" >&6; } | |
2903 | ||
2904 | for ac_prog in gawk mawk nawk awk | |
2905 | do | |
2906 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2907 | set dummy $ac_prog; ac_word=$2 | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2909 | $as_echo_n "checking for $ac_word... " >&6; } | |
2910 | if ${ac_cv_prog_AWK+:} false; then : | |
2911 | $as_echo_n "(cached) " >&6 | |
2912 | else | |
2913 | if test -n "$AWK"; then | |
2914 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2915 | else | |
2916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2917 | for as_dir in $PATH | |
2918 | do | |
2919 | IFS=$as_save_IFS | |
2920 | test -z "$as_dir" && as_dir=. | |
2921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2923 | ac_cv_prog_AWK="$ac_prog" | |
2924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2925 | break 2 | |
2926 | fi | |
2927 | done | |
2928 | done | |
2929 | IFS=$as_save_IFS | |
2930 | ||
2931 | fi | |
2932 | fi | |
2933 | AWK=$ac_cv_prog_AWK | |
2934 | if test -n "$AWK"; then | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2936 | $as_echo "$AWK" >&6; } | |
2937 | else | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2939 | $as_echo "no" >&6; } | |
2940 | fi | |
2941 | ||
2942 | ||
2943 | test -n "$AWK" && break | |
2944 | done | |
2945 | ||
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2947 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2948 | set x ${MAKE-make} | |
2949 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2950 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2951 | $as_echo_n "(cached) " >&6 | |
2952 | else | |
2953 | cat >conftest.make <<\_ACEOF | |
2954 | SHELL = /bin/sh | |
2955 | all: | |
2956 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2957 | _ACEOF | |
2958 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2959 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2960 | *@@@%%%=?*=@@@%%%*) | |
2961 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2962 | *) | |
2963 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2964 | esac | |
2965 | rm -f conftest.make | |
2966 | fi | |
2967 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2969 | $as_echo "yes" >&6; } | |
2970 | SET_MAKE= | |
2971 | else | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2973 | $as_echo "no" >&6; } | |
2974 | SET_MAKE="MAKE=${MAKE-make}" | |
2975 | fi | |
2976 | ||
2977 | rm -rf .tst 2>/dev/null | |
2978 | mkdir .tst 2>/dev/null | |
2979 | if test -d .tst; then | |
2980 | am__leading_dot=. | |
2981 | else | |
2982 | am__leading_dot=_ | |
2983 | fi | |
2984 | rmdir .tst 2>/dev/null | |
2985 | ||
2986 | # Check whether --enable-silent-rules was given. | |
2987 | if test "${enable_silent_rules+set}" = set; then : | |
2988 | enableval=$enable_silent_rules; | |
2989 | fi | |
2990 | ||
2991 | case $enable_silent_rules in # ((( | |
2992 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2993 | no) AM_DEFAULT_VERBOSITY=1;; | |
2994 | *) AM_DEFAULT_VERBOSITY=1;; | |
2995 | esac | |
2996 | am_make=${MAKE-make} | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2998 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2999 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3000 | $as_echo_n "(cached) " >&6 | |
3001 | else | |
3002 | if $as_echo 'TRUE=$(BAR$(V)) | |
3003 | BAR0=false | |
3004 | BAR1=true | |
3005 | V=1 | |
3006 | am__doit: | |
3007 | @$(TRUE) | |
3008 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3009 | am_cv_make_support_nested_variables=yes | |
3010 | else | |
3011 | am_cv_make_support_nested_variables=no | |
3012 | fi | |
3013 | fi | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3015 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3016 | if test $am_cv_make_support_nested_variables = yes; then | |
3017 | AM_V='$(V)' | |
3018 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3019 | else | |
3020 | AM_V=$AM_DEFAULT_VERBOSITY | |
3021 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3022 | fi | |
3023 | AM_BACKSLASH='\' | |
3024 | ||
3025 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3026 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3027 | # is not polluted with repeated "-I." | |
3028 | am__isrc=' -I$(srcdir)' | |
3029 | # test to see if srcdir already configured | |
3030 | if test -f $srcdir/config.status; then | |
3031 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3032 | fi | |
3033 | fi | |
3034 | ||
3035 | # test whether we have cygpath | |
3036 | if test -z "$CYGPATH_W"; then | |
3037 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3038 | CYGPATH_W='cygpath -w' | |
3039 | else | |
3040 | CYGPATH_W=echo | |
3041 | fi | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | # Define the identity of the package. | |
3046 | PACKAGE='cycript' | |
3047 | VERSION='0.9' | |
3048 | ||
3049 | ||
3050 | cat >>confdefs.h <<_ACEOF | |
3051 | #define PACKAGE "$PACKAGE" | |
3052 | _ACEOF | |
3053 | ||
3054 | ||
3055 | cat >>confdefs.h <<_ACEOF | |
3056 | #define VERSION "$VERSION" | |
3057 | _ACEOF | |
3058 | ||
3059 | # Some tools Automake needs. | |
3060 | ||
3061 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3062 | ||
3063 | ||
3064 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3065 | ||
3066 | ||
3067 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3068 | ||
3069 | ||
3070 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3071 | ||
3072 | ||
3073 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3074 | ||
3075 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3076 | # dies out for good. For more background, see: | |
3077 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3078 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3079 | mkdir_p='$(MKDIR_P)' | |
3080 | ||
3081 | # We need awk for the "check" target. The system "awk" is bad on | |
3082 | # some platforms. | |
3083 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3084 | # in the wild :-( We should find a proper way to deprecate it ... | |
3085 | AMTAR='$${TAR-tar}' | |
3086 | ||
3087 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3088 | ||
3089 | ||
3090 | ||
3091 | ||
3092 | ||
66170b30 | 3093 | |
babf7fe8 JF |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3095 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3096 | # Check whether --enable-maintainer-mode was given. | |
3097 | if test "${enable_maintainer_mode+set}" = set; then : | |
3098 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3099 | else | |
3100 | USE_MAINTAINER_MODE=no | |
3101 | fi | |
3102 | ||
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3104 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3105 | if test $USE_MAINTAINER_MODE = yes; then | |
3106 | MAINTAINER_MODE_TRUE= | |
3107 | MAINTAINER_MODE_FALSE='#' | |
3108 | else | |
3109 | MAINTAINER_MODE_TRUE='#' | |
3110 | MAINTAINER_MODE_FALSE= | |
3111 | fi | |
3112 | ||
3113 | MAINT=$MAINTAINER_MODE_TRUE | |
3114 | ||
3115 | ||
3116 | ||
3117 | am_cv_CC_dependencies_compiler_type=none | |
3118 | am_cv_CXX_dependencies_compiler_type=none | |
3119 | am_cv_OBJCXX_dependencies_compiler_type=none | |
3120 | ||
a243b558 JF |
3121 | ac_ext=cpp |
3122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3126 | if test -z "$CXX"; then | |
3127 | if test -n "$CCC"; then | |
3128 | CXX=$CCC | |
3129 | else | |
3130 | if test -n "$ac_tool_prefix"; then | |
3131 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3132 | do | |
3133 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3134 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
dbadc56a DWT |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3136 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3137 | if ${ac_cv_prog_CXX+:} false; then : |
dbadc56a DWT |
3138 | $as_echo_n "(cached) " >&6 |
3139 | else | |
a243b558 JF |
3140 | if test -n "$CXX"; then |
3141 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
dbadc56a DWT |
3142 | else |
3143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3144 | for as_dir in $PATH | |
3145 | do | |
3146 | IFS=$as_save_IFS | |
3147 | test -z "$as_dir" && as_dir=. | |
3148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3150 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
dbadc56a DWT |
3151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3152 | break 2 | |
3153 | fi | |
3154 | done | |
3155 | done | |
3156 | IFS=$as_save_IFS | |
3157 | ||
3158 | fi | |
3159 | fi | |
a243b558 JF |
3160 | CXX=$ac_cv_prog_CXX |
3161 | if test -n "$CXX"; then | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3163 | $as_echo "$CXX" >&6; } | |
35fa52c0 DWT |
3164 | else |
3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3166 | $as_echo "no" >&6; } | |
3167 | fi | |
3168 | ||
3169 | ||
a243b558 | 3170 | test -n "$CXX" && break |
35fa52c0 DWT |
3171 | done |
3172 | fi | |
a243b558 JF |
3173 | if test -z "$CXX"; then |
3174 | ac_ct_CXX=$CXX | |
3175 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
35fa52c0 DWT |
3176 | do |
3177 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3178 | set dummy $ac_prog; ac_word=$2 | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3180 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3181 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
35fa52c0 DWT |
3182 | $as_echo_n "(cached) " >&6 |
3183 | else | |
a243b558 JF |
3184 | if test -n "$ac_ct_CXX"; then |
3185 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
35fa52c0 DWT |
3186 | else |
3187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3188 | for as_dir in $PATH | |
3189 | do | |
3190 | IFS=$as_save_IFS | |
3191 | test -z "$as_dir" && as_dir=. | |
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3194 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
35fa52c0 DWT |
3195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3196 | break 2 | |
3197 | fi | |
3198 | done | |
3199 | done | |
3200 | IFS=$as_save_IFS | |
3201 | ||
3202 | fi | |
3203 | fi | |
a243b558 JF |
3204 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3205 | if test -n "$ac_ct_CXX"; then | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3207 | $as_echo "$ac_ct_CXX" >&6; } | |
35fa52c0 DWT |
3208 | else |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3210 | $as_echo "no" >&6; } | |
3211 | fi | |
3212 | ||
3213 | ||
a243b558 | 3214 | test -n "$ac_ct_CXX" && break |
35fa52c0 DWT |
3215 | done |
3216 | ||
a243b558 JF |
3217 | if test "x$ac_ct_CXX" = x; then |
3218 | CXX="g++" | |
35fa52c0 DWT |
3219 | else |
3220 | case $cross_compiling:$ac_tool_warned in | |
3221 | yes:) | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3223 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3224 | ac_tool_warned=yes ;; | |
3225 | esac | |
a243b558 | 3226 | CXX=$ac_ct_CXX |
35fa52c0 DWT |
3227 | fi |
3228 | fi | |
3229 | ||
a243b558 | 3230 | fi |
35fa52c0 | 3231 | fi |
35fa52c0 | 3232 | # Provide some information about the compiler. |
a243b558 | 3233 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
35fa52c0 DWT |
3234 | set X $ac_compile |
3235 | ac_compiler=$2 | |
3236 | for ac_option in --version -v -V -qversion; do | |
3237 | { { ac_try="$ac_compiler $ac_option >&5" | |
3238 | case "(($ac_try" in | |
3239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3240 | *) ac_try_echo=$ac_try;; | |
3241 | esac | |
3242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3243 | $as_echo "$ac_try_echo"; } >&5 | |
3244 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3245 | ac_status=$? | |
3246 | if test -s conftest.err; then | |
3247 | sed '10a\ | |
3248 | ... rest of stderr output deleted ... | |
3249 | 10q' conftest.err >conftest.er1 | |
3250 | cat conftest.er1 >&5 | |
35fa52c0 | 3251 | fi |
9c60689e | 3252 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3254 | test $ac_status = 0; } | |
3255 | done | |
3256 | ||
3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3258 | /* end confdefs.h. */ | |
9c60689e | 3259 | |
35fa52c0 DWT |
3260 | int |
3261 | main () | |
3262 | { | |
35fa52c0 DWT |
3263 | |
3264 | ; | |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
3268 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3269 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3270 | # Try to create an executable without -o first, disregard a.out. |
3271 | # It will help us diagnose broken compilers, and finding out an intuition | |
3272 | # of exeext. | |
a243b558 JF |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
3274 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
35fa52c0 DWT |
3275 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3276 | ||
3277 | # The possible output files: | |
3278 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3279 | ||
3280 | ac_rmfiles= | |
3281 | for ac_file in $ac_files | |
3282 | do | |
3283 | case $ac_file in | |
3284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3285 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3286 | esac | |
3287 | done | |
3288 | rm -f $ac_rmfiles | |
3289 | ||
3290 | if { { ac_try="$ac_link_default" | |
3291 | case "(($ac_try" in | |
3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3293 | *) ac_try_echo=$ac_try;; | |
3294 | esac | |
3295 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3296 | $as_echo "$ac_try_echo"; } >&5 | |
3297 | (eval "$ac_link_default") 2>&5 | |
3298 | ac_status=$? | |
3299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3300 | test $ac_status = 0; }; then : | |
3301 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3302 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3303 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3304 | # so that the user can short-circuit this test for compilers unknown to | |
3305 | # Autoconf. | |
3306 | for ac_file in $ac_files '' | |
3307 | do | |
3308 | test -f "$ac_file" || continue | |
3309 | case $ac_file in | |
3310 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3311 | ;; | |
3312 | [ab].out ) | |
3313 | # We found the default executable, but exeext='' is most | |
3314 | # certainly right. | |
3315 | break;; | |
3316 | *.* ) | |
3317 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3318 | then :; else | |
3319 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3320 | fi | |
3321 | # We set ac_cv_exeext here because the later test for it is not | |
3322 | # safe: cross compilers may not add the suffix if given an `-o' | |
3323 | # argument, so we may need to know it at that point already. | |
3324 | # Even if this section looks crufty: it has the advantage of | |
3325 | # actually working. | |
3326 | break;; | |
3327 | * ) | |
3328 | break;; | |
3329 | esac | |
3330 | done | |
3331 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3332 | ||
3333 | else | |
3334 | ac_file='' | |
3335 | fi | |
35fa52c0 | 3336 | if test -z "$ac_file"; then : |
9c60689e DWT |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3338 | $as_echo "no" >&6; } | |
3339 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3340 | sed 's/^/| /' conftest.$ac_ext >&5 |
3341 | ||
3342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3344 | as_fn_error 77 "C++ compiler cannot create executables |
ee134472 | 3345 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3346 | else |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3348 | $as_echo "yes" >&6; } | |
35fa52c0 | 3349 | fi |
a243b558 JF |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
3351 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
9c60689e DWT |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3353 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3354 | ac_exeext=$ac_cv_exeext |
3355 | ||
9c60689e | 3356 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3357 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3359 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3360 | if { { ac_try="$ac_link" | |
3361 | case "(($ac_try" in | |
3362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3363 | *) ac_try_echo=$ac_try;; | |
3364 | esac | |
3365 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3366 | $as_echo "$ac_try_echo"; } >&5 | |
3367 | (eval "$ac_link") 2>&5 | |
3368 | ac_status=$? | |
3369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3370 | test $ac_status = 0; }; then : | |
3371 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3372 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3373 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3374 | # `rm'. | |
3375 | for ac_file in conftest.exe conftest conftest.*; do | |
3376 | test -f "$ac_file" || continue | |
3377 | case $ac_file in | |
3378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3379 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3380 | break;; | |
3381 | * ) break;; | |
3382 | esac | |
3383 | done | |
3384 | else | |
3385 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3387 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3388 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3389 | fi |
9c60689e | 3390 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3392 | $as_echo "$ac_cv_exeext" >&6; } | |
3393 | ||
3394 | rm -f conftest.$ac_ext | |
3395 | EXEEXT=$ac_cv_exeext | |
3396 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3398 | /* end confdefs.h. */ | |
3399 | #include <stdio.h> | |
3400 | int | |
3401 | main () | |
3402 | { | |
3403 | FILE *f = fopen ("conftest.out", "w"); | |
3404 | return ferror (f) || fclose (f) != 0; | |
3405 | ||
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
3410 | ac_clean_files="$ac_clean_files conftest.out" | |
3411 | # Check that the compiler produces executables we can run. If not, either | |
3412 | # the compiler is broken, or we cross compile. | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3414 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3415 | if test "$cross_compiling" != yes; then | |
3416 | { { ac_try="$ac_link" | |
3417 | case "(($ac_try" in | |
3418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3419 | *) ac_try_echo=$ac_try;; | |
3420 | esac | |
3421 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3422 | $as_echo "$ac_try_echo"; } >&5 | |
3423 | (eval "$ac_link") 2>&5 | |
3424 | ac_status=$? | |
3425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3426 | test $ac_status = 0; } | |
3427 | if { ac_try='./conftest$ac_cv_exeext' | |
3428 | { { case "(($ac_try" in | |
3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3430 | *) ac_try_echo=$ac_try;; | |
3431 | esac | |
3432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3433 | $as_echo "$ac_try_echo"; } >&5 | |
3434 | (eval "$ac_try") 2>&5 | |
3435 | ac_status=$? | |
3436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3437 | test $ac_status = 0; }; }; then | |
3438 | cross_compiling=no | |
3439 | else | |
3440 | if test "$cross_compiling" = maybe; then | |
3441 | cross_compiling=yes | |
3442 | else | |
3443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3444 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3445 | as_fn_error $? "cannot run C++ compiled programs. |
9c60689e | 3446 | If you meant to cross compile, use \`--host'. |
ee134472 | 3447 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3448 | fi |
3449 | fi | |
3450 | fi | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3452 | $as_echo "$cross_compiling" >&6; } | |
3453 | ||
3454 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3455 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3457 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3458 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3459 | $as_echo_n "(cached) " >&6 |
3460 | else | |
3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3462 | /* end confdefs.h. */ | |
3463 | ||
3464 | int | |
3465 | main () | |
3466 | { | |
3467 | ||
3468 | ; | |
3469 | return 0; | |
3470 | } | |
3471 | _ACEOF | |
3472 | rm -f conftest.o conftest.obj | |
3473 | if { { ac_try="$ac_compile" | |
3474 | case "(($ac_try" in | |
3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3476 | *) ac_try_echo=$ac_try;; | |
3477 | esac | |
3478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3479 | $as_echo "$ac_try_echo"; } >&5 | |
3480 | (eval "$ac_compile") 2>&5 | |
3481 | ac_status=$? | |
3482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3483 | test $ac_status = 0; }; then : | |
3484 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3485 | test -f "$ac_file" || continue; | |
3486 | case $ac_file in | |
3487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3488 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3489 | break;; | |
3490 | esac | |
3491 | done | |
3492 | else | |
3493 | $as_echo "$as_me: failed program was:" >&5 | |
3494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3495 | ||
3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3498 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3499 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3500 | fi |
3501 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3502 | fi | |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3504 | $as_echo "$ac_cv_objext" >&6; } | |
3505 | OBJEXT=$ac_cv_objext | |
3506 | ac_objext=$OBJEXT | |
a243b558 JF |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3508 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3509 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3510 | $as_echo_n "(cached) " >&6 |
3511 | else | |
3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3513 | /* end confdefs.h. */ | |
3514 | ||
3515 | int | |
3516 | main () | |
3517 | { | |
3518 | #ifndef __GNUC__ | |
3519 | choke me | |
3520 | #endif | |
3521 | ||
3522 | ; | |
3523 | return 0; | |
3524 | } | |
3525 | _ACEOF | |
a243b558 | 3526 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3527 | ac_compiler_gnu=yes |
3528 | else | |
3529 | ac_compiler_gnu=no | |
3530 | fi | |
3531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3532 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3533 | |
3534 | fi | |
a243b558 JF |
3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
3536 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
35fa52c0 | 3537 | if test $ac_compiler_gnu = yes; then |
a243b558 | 3538 | GXX=yes |
35fa52c0 | 3539 | else |
a243b558 | 3540 | GXX= |
35fa52c0 | 3541 | fi |
a243b558 JF |
3542 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3543 | ac_save_CXXFLAGS=$CXXFLAGS | |
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3545 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3546 | if ${ac_cv_prog_cxx_g+:} false; then : | |
35fa52c0 DWT |
3547 | $as_echo_n "(cached) " >&6 |
3548 | else | |
a243b558 JF |
3549 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3550 | ac_cxx_werror_flag=yes | |
3551 | ac_cv_prog_cxx_g=no | |
3552 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3554 | /* end confdefs.h. */ | |
3555 | ||
3556 | int | |
3557 | main () | |
3558 | { | |
3559 | ||
3560 | ; | |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
a243b558 JF |
3564 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3565 | ac_cv_prog_cxx_g=yes | |
35fa52c0 | 3566 | else |
a243b558 | 3567 | CXXFLAGS="" |
35fa52c0 DWT |
3568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3569 | /* end confdefs.h. */ | |
3570 | ||
3571 | int | |
3572 | main () | |
3573 | { | |
3574 | ||
3575 | ; | |
3576 | return 0; | |
3577 | } | |
3578 | _ACEOF | |
a243b558 | 3579 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3580 | |
3581 | else | |
a243b558 JF |
3582 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3583 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3585 | /* end confdefs.h. */ | |
3586 | ||
3587 | int | |
3588 | main () | |
3589 | { | |
3590 | ||
3591 | ; | |
3592 | return 0; | |
3593 | } | |
3594 | _ACEOF | |
a243b558 JF |
3595 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3596 | ac_cv_prog_cxx_g=yes | |
35fa52c0 DWT |
3597 | fi |
3598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3599 | fi | |
3600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3601 | fi | |
3602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3603 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
35fa52c0 | 3604 | fi |
a243b558 JF |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
3606 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3607 | if test "$ac_test_CXXFLAGS" = set; then | |
3608 | CXXFLAGS=$ac_save_CXXFLAGS | |
3609 | elif test $ac_cv_prog_cxx_g = yes; then | |
3610 | if test "$GXX" = yes; then | |
3611 | CXXFLAGS="-g -O2" | |
35fa52c0 | 3612 | else |
a243b558 | 3613 | CXXFLAGS="-g" |
35fa52c0 DWT |
3614 | fi |
3615 | else | |
a243b558 JF |
3616 | if test "$GXX" = yes; then |
3617 | CXXFLAGS="-O2" | |
35fa52c0 | 3618 | else |
a243b558 | 3619 | CXXFLAGS= |
35fa52c0 DWT |
3620 | fi |
3621 | fi | |
a243b558 JF |
3622 | ac_ext=c |
3623 | ac_cpp='$CPP $CPPFLAGS' | |
3624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3627 | DEPDIR="${am__leading_dot}deps" | |
35fa52c0 | 3628 | |
a243b558 | 3629 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 3630 | |
35fa52c0 | 3631 | |
a243b558 JF |
3632 | am_make=${MAKE-make} |
3633 | cat > confinc << 'END' | |
3634 | am__doit: | |
3635 | @echo this is the am__doit target | |
3636 | .PHONY: am__doit | |
3637 | END | |
3638 | # If we don't find an include directive, just comment out the code. | |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3640 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3641 | am__include="#" | |
3642 | am__quote= | |
3643 | _am_result=none | |
3644 | # First try GNU make style include. | |
3645 | echo "include confinc" > confmf | |
3646 | # Ignore all kinds of additional output from 'make'. | |
3647 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3648 | *the\ am__doit\ target*) | |
3649 | am__include=include | |
3650 | am__quote= | |
3651 | _am_result=GNU | |
3652 | ;; | |
3653 | esac | |
3654 | # Now try BSD make style include. | |
3655 | if test "$am__include" = "#"; then | |
3656 | echo '.include "confinc"' > confmf | |
3657 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3658 | *the\ am__doit\ target*) | |
3659 | am__include=.include | |
3660 | am__quote="\"" | |
3661 | _am_result=BSD | |
3662 | ;; | |
3663 | esac | |
35fa52c0 | 3664 | fi |
35fa52c0 | 3665 | |
a243b558 JF |
3666 | |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3668 | $as_echo "$_am_result" >&6; } | |
3669 | rm -f confinc confmf | |
3670 | ||
3671 | # Check whether --enable-dependency-tracking was given. | |
3672 | if test "${enable_dependency_tracking+set}" = set; then : | |
3673 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 3674 | fi |
35fa52c0 | 3675 | |
a243b558 JF |
3676 | if test "x$enable_dependency_tracking" != xno; then |
3677 | am_depcomp="$ac_aux_dir/depcomp" | |
3678 | AMDEPBACKSLASH='\' | |
3679 | am__nodep='_no' | |
3680 | fi | |
3681 | if test "x$enable_dependency_tracking" != xno; then | |
3682 | AMDEP_TRUE= | |
3683 | AMDEP_FALSE='#' | |
3684 | else | |
3685 | AMDEP_TRUE='#' | |
3686 | AMDEP_FALSE= | |
35fa52c0 DWT |
3687 | fi |
3688 | ||
35fa52c0 | 3689 | |
a243b558 JF |
3690 | |
3691 | depcc="$CXX" am_compiler_list= | |
66170b30 JF |
3692 | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3694 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a243b558 | 3695 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
66170b30 JF |
3696 | $as_echo_n "(cached) " >&6 |
3697 | else | |
3698 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3699 | # We make a subdir and do the tests there. Otherwise we can end up | |
3700 | # making bogus files that we don't know about and never remove. For | |
3701 | # instance it was reported that on HP-UX the gcc test will end up | |
3702 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3703 | # in D". | |
3704 | rm -rf conftest.dir | |
3705 | mkdir conftest.dir | |
3706 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3707 | # using a relative directory. | |
3708 | cp "$am_depcomp" conftest.dir | |
3709 | cd conftest.dir | |
3710 | # We will build objects and dependencies in a subdirectory because | |
3711 | # it helps to detect inapplicable dependency modes. For instance | |
3712 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3713 | # side effect of compilation, but ICC will put the dependencies in | |
3714 | # the current directory while Tru64 will put them in the object | |
3715 | # directory. | |
3716 | mkdir sub | |
3717 | ||
a243b558 | 3718 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3719 | if test "$am_compiler_list" = ""; then |
3720 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3721 | fi | |
3722 | am__universal=false | |
3723 | case " $depcc " in #( | |
3724 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3725 | esac | |
3726 | ||
3727 | for depmode in $am_compiler_list; do | |
3728 | # Setup a source with many dependencies, because some compilers | |
3729 | # like to wrap large dependency lists on column 80 (with \), and | |
3730 | # we should not choose a depcomp mode which is confused by this. | |
3731 | # | |
3732 | # We need to recreate these files for each test, as the compiler may | |
3733 | # overwrite some of them when testing with obscure command lines. | |
3734 | # This happens at least with the AIX C compiler. | |
3735 | : > sub/conftest.c | |
3736 | for i in 1 2 3 4 5 6; do | |
3737 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3738 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3739 | # Solaris 10 /bin/sh. | |
3740 | echo '/* dummy */' > sub/conftst$i.h | |
3741 | done | |
3742 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3743 | ||
3744 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3745 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3746 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3747 | # versions had trouble with output in subdirs. | |
3748 | am__obj=sub/conftest.${OBJEXT-o} | |
3749 | am__minus_obj="-o $am__obj" | |
3750 | case $depmode in | |
3751 | gcc) | |
3752 | # This depmode causes a compiler race in universal mode. | |
3753 | test "$am__universal" = false || continue | |
3754 | ;; | |
3755 | nosideeffect) | |
3756 | # After this tag, mechanisms are not by side-effect, so they'll | |
3757 | # only be used when explicitly requested. | |
3758 | if test "x$enable_dependency_tracking" = xyes; then | |
3759 | continue | |
3760 | else | |
3761 | break | |
3762 | fi | |
3763 | ;; | |
3764 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3765 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3766 | # not run yet. These depmodes are late enough in the game, and | |
3767 | # so weak that their functioning should not be impacted. | |
3768 | am__obj=conftest.${OBJEXT-o} | |
3769 | am__minus_obj= | |
3770 | ;; | |
3771 | none) break ;; | |
3772 | esac | |
3773 | if depmode=$depmode \ | |
3774 | source=sub/conftest.c object=$am__obj \ | |
3775 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3776 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3777 | >/dev/null 2>conftest.err && | |
3778 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3779 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3780 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3781 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3782 | # icc doesn't choke on unknown options, it will just issue warnings | |
3783 | # or remarks (even with -Werror). So we grep stderr for any message | |
3784 | # that says an option was ignored or not supported. | |
3785 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3786 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3787 | # The diagnosis changed in icc 8.0: | |
3788 | # icc: Command line remark: option '-MP' not supported | |
3789 | if (grep 'ignoring option' conftest.err || | |
3790 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a243b558 | 3791 | am_cv_CXX_dependencies_compiler_type=$depmode |
66170b30 JF |
3792 | break |
3793 | fi | |
3794 | fi | |
3795 | done | |
3796 | ||
3797 | cd .. | |
3798 | rm -rf conftest.dir | |
3799 | else | |
a243b558 | 3800 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3801 | fi |
3802 | ||
3803 | fi | |
a243b558 JF |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3805 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
3806 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
66170b30 JF |
3807 | |
3808 | if | |
3809 | test "x$enable_dependency_tracking" != xno \ | |
a243b558 JF |
3810 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
3811 | am__fastdepCXX_TRUE= | |
3812 | am__fastdepCXX_FALSE='#' | |
66170b30 | 3813 | else |
a243b558 JF |
3814 | am__fastdepCXX_TRUE='#' |
3815 | am__fastdepCXX_FALSE= | |
66170b30 JF |
3816 | fi |
3817 | ||
3818 | ||
a243b558 JF |
3819 | ac_ext=mm |
3820 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
3821 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
3824 | if test -n "$ac_tool_prefix"; then | |
3825 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3826 | do | |
3827 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3828 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3830 | $as_echo_n "checking for $ac_word... " >&6; } | |
3831 | if ${ac_cv_prog_OBJCXX+:} false; then : | |
35fa52c0 DWT |
3832 | $as_echo_n "(cached) " >&6 |
3833 | else | |
a243b558 JF |
3834 | if test -n "$OBJCXX"; then |
3835 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
3836 | else | |
3837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3838 | for as_dir in $PATH | |
3839 | do | |
35fa52c0 DWT |
3840 | IFS=$as_save_IFS |
3841 | test -z "$as_dir" && as_dir=. | |
3842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 JF |
3843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3844 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
3845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3846 | break 2 | |
3847 | fi | |
3848 | done | |
9c60689e DWT |
3849 | done |
3850 | IFS=$as_save_IFS | |
35fa52c0 | 3851 | |
9c60689e | 3852 | fi |
a243b558 JF |
3853 | fi |
3854 | OBJCXX=$ac_cv_prog_OBJCXX | |
3855 | if test -n "$OBJCXX"; then | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
3857 | $as_echo "$OBJCXX" >&6; } | |
3858 | else | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3860 | $as_echo "no" >&6; } | |
3861 | fi | |
35fa52c0 | 3862 | |
35fa52c0 | 3863 | |
a243b558 JF |
3864 | test -n "$OBJCXX" && break |
3865 | done | |
3866 | fi | |
3867 | if test -z "$OBJCXX"; then | |
3868 | ac_ct_OBJCXX=$OBJCXX | |
3869 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3870 | do | |
3871 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3872 | set dummy $ac_prog; ac_word=$2 | |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3874 | $as_echo_n "checking for $ac_word... " >&6; } | |
3875 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : | |
9c60689e DWT |
3876 | $as_echo_n "(cached) " >&6 |
3877 | else | |
a243b558 JF |
3878 | if test -n "$ac_ct_OBJCXX"; then |
3879 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
3880 | else | |
3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3882 | for as_dir in $PATH | |
9c60689e DWT |
3883 | do |
3884 | IFS=$as_save_IFS | |
3885 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3886 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
3887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3888 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
3889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3890 | break 2 | |
3891 | fi | |
3892 | done | |
9c60689e DWT |
3893 | done |
3894 | IFS=$as_save_IFS | |
a243b558 JF |
3895 | |
3896 | fi | |
3897 | fi | |
3898 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
3899 | if test -n "$ac_ct_OBJCXX"; then | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
3901 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
9c60689e | 3902 | else |
a243b558 JF |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3904 | $as_echo "no" >&6; } | |
9c60689e | 3905 | fi |
6b66678a DWT |
3906 | |
3907 | ||
a243b558 JF |
3908 | test -n "$ac_ct_OBJCXX" && break |
3909 | done | |
6b66678a | 3910 | |
a243b558 JF |
3911 | if test "x$ac_ct_OBJCXX" = x; then |
3912 | OBJCXX="g++" | |
3913 | else | |
3914 | case $cross_compiling:$ac_tool_warned in | |
3915 | yes:) | |
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3918 | ac_tool_warned=yes ;; | |
9c60689e | 3919 | esac |
a243b558 | 3920 | OBJCXX=$ac_ct_OBJCXX |
9c60689e | 3921 | fi |
9c60689e | 3922 | fi |
6b66678a | 3923 | |
a243b558 JF |
3924 | # Provide some information about the compiler. |
3925 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
3926 | set X $ac_compile | |
3927 | ac_compiler=$2 | |
3928 | for ac_option in --version -v -V -qversion; do | |
3929 | { { ac_try="$ac_compiler $ac_option >&5" | |
3930 | case "(($ac_try" in | |
3931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3932 | *) ac_try_echo=$ac_try;; | |
3933 | esac | |
3934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3935 | $as_echo "$ac_try_echo"; } >&5 | |
3936 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3937 | ac_status=$? | |
3938 | if test -s conftest.err; then | |
3939 | sed '10a\ | |
3940 | ... rest of stderr output deleted ... | |
3941 | 10q' conftest.err >conftest.er1 | |
3942 | cat conftest.er1 >&5 | |
3943 | fi | |
3944 | rm -f conftest.er1 conftest.err | |
3945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3946 | test $ac_status = 0; } | |
3947 | done | |
6b66678a | 3948 | |
a243b558 JF |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
3950 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
3951 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
9c60689e | 3952 | $as_echo_n "(cached) " >&6 |
6b66678a | 3953 | else |
a243b558 JF |
3954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3955 | /* end confdefs.h. */ | |
6b66678a | 3956 | |
a243b558 JF |
3957 | int |
3958 | main () | |
3959 | { | |
3960 | #ifndef __GNUC__ | |
3961 | choke me | |
3962 | #endif | |
3963 | ||
3964 | ; | |
3965 | return 0; | |
3966 | } | |
3967 | _ACEOF | |
3968 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
3969 | ac_compiler_gnu=yes | |
9c60689e | 3970 | else |
a243b558 | 3971 | ac_compiler_gnu=no |
6b66678a | 3972 | fi |
a243b558 JF |
3973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3974 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
6b66678a DWT |
3975 | |
3976 | fi | |
a243b558 JF |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
3978 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
3979 | if test $ac_compiler_gnu = yes; then | |
3980 | GOBJCXX=yes | |
3981 | else | |
3982 | GOBJCXX= | |
3983 | fi | |
3984 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
3985 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
3987 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
3988 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
3989 | $as_echo_n "(cached) " >&6 | |
3990 | else | |
3991 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
3992 | ac_objcxx_werror_flag=yes | |
3993 | ac_cv_prog_objcxx_g=no | |
3994 | OBJCXXFLAGS="-g" | |
3995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3996 | /* end confdefs.h. */ | |
309b0535 | 3997 | |
a243b558 JF |
3998 | int |
3999 | main () | |
4000 | { | |
309b0535 | 4001 | |
a243b558 JF |
4002 | ; |
4003 | return 0; | |
4004 | } | |
4005 | _ACEOF | |
4006 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4007 | ac_cv_prog_objcxx_g=yes | |
4008 | else | |
4009 | OBJCXXFLAGS="" | |
4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4011 | /* end confdefs.h. */ | |
309b0535 | 4012 | |
a243b558 JF |
4013 | int |
4014 | main () | |
4015 | { | |
309b0535 | 4016 | |
a243b558 JF |
4017 | ; |
4018 | return 0; | |
4019 | } | |
4020 | _ACEOF | |
4021 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
309b0535 | 4022 | |
a243b558 JF |
4023 | else |
4024 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
4025 | OBJCXXFLAGS="-g" | |
4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4027 | /* end confdefs.h. */ | |
309b0535 | 4028 | |
a243b558 JF |
4029 | int |
4030 | main () | |
4031 | { | |
309b0535 | 4032 | |
a243b558 JF |
4033 | ; |
4034 | return 0; | |
4035 | } | |
4036 | _ACEOF | |
4037 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4038 | ac_cv_prog_objcxx_g=yes | |
9c60689e | 4039 | fi |
a243b558 | 4040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4041 | fi |
a243b558 | 4042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4043 | fi |
a243b558 JF |
4044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4045 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
9c60689e | 4046 | fi |
a243b558 JF |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
4048 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4049 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4050 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4051 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4052 | if test "$GOBJCXX" = yes; then | |
4053 | OBJCXXFLAGS="-g -O2" | |
4054 | else | |
4055 | OBJCXXFLAGS="-g" | |
4056 | fi | |
9c60689e | 4057 | else |
a243b558 JF |
4058 | if test "$GOBJCXX" = yes; then |
4059 | OBJCXXFLAGS="-O2" | |
4060 | else | |
4061 | OBJCXXFLAGS= | |
4062 | fi | |
9c60689e | 4063 | fi |
a243b558 JF |
4064 | ac_ext=c |
4065 | ac_cpp='$CPP $CPPFLAGS' | |
4066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4069 | |
a243b558 | 4070 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
309b0535 | 4071 | |
a243b558 JF |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4073 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4074 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : | |
4075 | $as_echo_n "(cached) " >&6 | |
4076 | else | |
4077 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4078 | # We make a subdir and do the tests there. Otherwise we can end up | |
4079 | # making bogus files that we don't know about and never remove. For | |
4080 | # instance it was reported that on HP-UX the gcc test will end up | |
4081 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4082 | # in D". | |
4083 | rm -rf conftest.dir | |
4084 | mkdir conftest.dir | |
4085 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4086 | # using a relative directory. | |
4087 | cp "$am_depcomp" conftest.dir | |
4088 | cd conftest.dir | |
4089 | # We will build objects and dependencies in a subdirectory because | |
4090 | # it helps to detect inapplicable dependency modes. For instance | |
4091 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4092 | # side effect of compilation, but ICC will put the dependencies in | |
4093 | # the current directory while Tru64 will put them in the object | |
4094 | # directory. | |
4095 | mkdir sub | |
309b0535 | 4096 | |
a243b558 JF |
4097 | am_cv_OBJCXX_dependencies_compiler_type=none |
4098 | if test "$am_compiler_list" = ""; then | |
4099 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4100 | fi | |
4101 | am__universal=false | |
309b0535 | 4102 | |
9c60689e | 4103 | |
a243b558 JF |
4104 | for depmode in $am_compiler_list; do |
4105 | # Setup a source with many dependencies, because some compilers | |
4106 | # like to wrap large dependency lists on column 80 (with \), and | |
4107 | # we should not choose a depcomp mode which is confused by this. | |
4108 | # | |
4109 | # We need to recreate these files for each test, as the compiler may | |
4110 | # overwrite some of them when testing with obscure command lines. | |
4111 | # This happens at least with the AIX C compiler. | |
4112 | : > sub/conftest.c | |
4113 | for i in 1 2 3 4 5 6; do | |
4114 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4115 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4116 | # Solaris 10 /bin/sh. | |
4117 | echo '/* dummy */' > sub/conftst$i.h | |
4118 | done | |
4119 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4120 | |
a243b558 JF |
4121 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4122 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4123 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4124 | # versions had trouble with output in subdirs. | |
4125 | am__obj=sub/conftest.${OBJEXT-o} | |
4126 | am__minus_obj="-o $am__obj" | |
4127 | case $depmode in | |
4128 | gcc) | |
4129 | # This depmode causes a compiler race in universal mode. | |
4130 | test "$am__universal" = false || continue | |
4131 | ;; | |
4132 | nosideeffect) | |
4133 | # After this tag, mechanisms are not by side-effect, so they'll | |
4134 | # only be used when explicitly requested. | |
4135 | if test "x$enable_dependency_tracking" = xyes; then | |
4136 | continue | |
4137 | else | |
4138 | break | |
309b0535 | 4139 | fi |
a243b558 JF |
4140 | ;; |
4141 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4142 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4143 | # not run yet. These depmodes are late enough in the game, and | |
4144 | # so weak that their functioning should not be impacted. | |
4145 | am__obj=conftest.${OBJEXT-o} | |
4146 | am__minus_obj= | |
4147 | ;; | |
4148 | none) break ;; | |
4149 | esac | |
4150 | if depmode=$depmode \ | |
4151 | source=sub/conftest.c object=$am__obj \ | |
4152 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4153 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4154 | >/dev/null 2>conftest.err && | |
4155 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4156 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4157 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4158 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4159 | # icc doesn't choke on unknown options, it will just issue warnings | |
4160 | # or remarks (even with -Werror). So we grep stderr for any message | |
4161 | # that says an option was ignored or not supported. | |
4162 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4163 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4164 | # The diagnosis changed in icc 8.0: | |
4165 | # icc: Command line remark: option '-MP' not supported | |
4166 | if (grep 'ignoring option' conftest.err || | |
4167 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4168 | am_cv_OBJCXX_dependencies_compiler_type=$depmode | |
4169 | break | |
4170 | fi | |
4171 | fi | |
309b0535 | 4172 | done |
a243b558 JF |
4173 | |
4174 | cd .. | |
4175 | rm -rf conftest.dir | |
4176 | else | |
4177 | am_cv_OBJCXX_dependencies_compiler_type=none | |
9c60689e | 4178 | fi |
a243b558 | 4179 | |
9c60689e | 4180 | fi |
a243b558 JF |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4182 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4183 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
4184 | ||
4185 | if | |
4186 | test "x$enable_dependency_tracking" != xno \ | |
4187 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then | |
4188 | am__fastdepOBJCXX_TRUE= | |
4189 | am__fastdepOBJCXX_FALSE='#' | |
9c60689e | 4190 | else |
a243b558 JF |
4191 | am__fastdepOBJCXX_TRUE='#' |
4192 | am__fastdepOBJCXX_FALSE= | |
4193 | fi | |
4194 | ||
4195 | ||
babf7fe8 | 4196 | |
a243b558 JF |
4197 | ac_ext=c |
4198 | ac_cpp='$CPP $CPPFLAGS' | |
4199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4202 | if test -n "$ac_tool_prefix"; then | |
4203 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4204 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
35fa52c0 DWT |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4206 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4207 | if ${ac_cv_prog_CC+:} false; then : |
35fa52c0 DWT |
4208 | $as_echo_n "(cached) " >&6 |
4209 | else | |
a243b558 JF |
4210 | if test -n "$CC"; then |
4211 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
35fa52c0 DWT |
4212 | else |
4213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4214 | for as_dir in $PATH | |
4215 | do | |
4216 | IFS=$as_save_IFS | |
4217 | test -z "$as_dir" && as_dir=. | |
4218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4220 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
35fa52c0 DWT |
4221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4222 | break 2 | |
4223 | fi | |
4224 | done | |
4225 | done | |
4226 | IFS=$as_save_IFS | |
4227 | ||
4228 | fi | |
4229 | fi | |
a243b558 JF |
4230 | CC=$ac_cv_prog_CC |
4231 | if test -n "$CC"; then | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4233 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
4234 | else |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4236 | $as_echo "no" >&6; } | |
4237 | fi | |
4238 | ||
4239 | ||
35fa52c0 | 4240 | fi |
a243b558 JF |
4241 | if test -z "$ac_cv_prog_CC"; then |
4242 | ac_ct_CC=$CC | |
4243 | # Extract the first word of "gcc", so it can be a program name with args. | |
4244 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4246 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4247 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
4248 | $as_echo_n "(cached) " >&6 |
4249 | else | |
a243b558 JF |
4250 | if test -n "$ac_ct_CC"; then |
4251 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
4252 | else |
4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4254 | for as_dir in $PATH | |
4255 | do | |
4256 | IFS=$as_save_IFS | |
4257 | test -z "$as_dir" && as_dir=. | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4260 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
4261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4262 | break 2 | |
4263 | fi | |
4264 | done | |
4265 | done | |
4266 | IFS=$as_save_IFS | |
4267 | ||
4268 | fi | |
4269 | fi | |
a243b558 JF |
4270 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4271 | if test -n "$ac_ct_CC"; then | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4273 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
4274 | else |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4276 | $as_echo "no" >&6; } | |
4277 | fi | |
4278 | ||
a243b558 JF |
4279 | if test "x$ac_ct_CC" = x; then |
4280 | CC="" | |
35fa52c0 DWT |
4281 | else |
4282 | case $cross_compiling:$ac_tool_warned in | |
4283 | yes:) | |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4286 | ac_tool_warned=yes ;; | |
4287 | esac | |
a243b558 | 4288 | CC=$ac_ct_CC |
35fa52c0 | 4289 | fi |
a243b558 JF |
4290 | else |
4291 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
4292 | fi |
4293 | ||
a243b558 JF |
4294 | if test -z "$CC"; then |
4295 | if test -n "$ac_tool_prefix"; then | |
4296 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4297 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4299 | $as_echo_n "checking for $ac_word... " >&6; } | |
4300 | if ${ac_cv_prog_CC+:} false; then : | |
4301 | $as_echo_n "(cached) " >&6 | |
4302 | else | |
4303 | if test -n "$CC"; then | |
4304 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4305 | else | |
4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4307 | for as_dir in $PATH | |
4308 | do | |
4309 | IFS=$as_save_IFS | |
4310 | test -z "$as_dir" && as_dir=. | |
4311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4313 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4315 | break 2 | |
ee134472 | 4316 | fi |
a243b558 JF |
4317 | done |
4318 | done | |
4319 | IFS=$as_save_IFS | |
9c60689e | 4320 | |
35fa52c0 | 4321 | fi |
a243b558 JF |
4322 | fi |
4323 | CC=$ac_cv_prog_CC | |
4324 | if test -n "$CC"; then | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4326 | $as_echo "$CC" >&6; } | |
4327 | else | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4329 | $as_echo "no" >&6; } | |
4330 | fi | |
35fa52c0 | 4331 | |
35fa52c0 | 4332 | |
a243b558 JF |
4333 | fi |
4334 | fi | |
4335 | if test -z "$CC"; then | |
4336 | # Extract the first word of "cc", so it can be a program name with args. | |
4337 | set dummy cc; ac_word=$2 | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4339 | $as_echo_n "checking for $ac_word... " >&6; } | |
4340 | if ${ac_cv_prog_CC+:} false; then : | |
4341 | $as_echo_n "(cached) " >&6 | |
4342 | else | |
4343 | if test -n "$CC"; then | |
4344 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4345 | else | |
4346 | ac_prog_rejected=no | |
4347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4348 | for as_dir in $PATH | |
4349 | do | |
4350 | IFS=$as_save_IFS | |
4351 | test -z "$as_dir" && as_dir=. | |
4352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4354 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4355 | ac_prog_rejected=yes | |
4356 | continue | |
4357 | fi | |
4358 | ac_cv_prog_CC="cc" | |
4359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4360 | break 2 | |
4361 | fi | |
4362 | done | |
4363 | done | |
4364 | IFS=$as_save_IFS | |
35fa52c0 | 4365 | |
a243b558 JF |
4366 | if test $ac_prog_rejected = yes; then |
4367 | # We found a bogon in the path, so make sure we never use it. | |
4368 | set dummy $ac_cv_prog_CC | |
4369 | shift | |
4370 | if test $# != 0; then | |
4371 | # We chose a different compiler from the bogus one. | |
4372 | # However, it has the same basename, so the bogon will be chosen | |
4373 | # first if we set CC to just the basename; use the full file name. | |
4374 | shift | |
4375 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4376 | fi | |
4377 | fi | |
4378 | fi | |
4379 | fi | |
4380 | CC=$ac_cv_prog_CC | |
4381 | if test -n "$CC"; then | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4383 | $as_echo "$CC" >&6; } | |
4384 | else | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4386 | $as_echo "no" >&6; } | |
4387 | fi | |
9c60689e DWT |
4388 | |
4389 | ||
a243b558 JF |
4390 | fi |
4391 | if test -z "$CC"; then | |
4392 | if test -n "$ac_tool_prefix"; then | |
4393 | for ac_prog in cl.exe | |
4394 | do | |
4395 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4396 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4398 | $as_echo_n "checking for $ac_word... " >&6; } | |
4399 | if ${ac_cv_prog_CC+:} false; then : | |
9c60689e DWT |
4400 | $as_echo_n "(cached) " >&6 |
4401 | else | |
a243b558 JF |
4402 | if test -n "$CC"; then |
4403 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4404 | else | |
4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4406 | for as_dir in $PATH | |
4407 | do | |
4408 | IFS=$as_save_IFS | |
4409 | test -z "$as_dir" && as_dir=. | |
4410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4412 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4414 | break 2 | |
9c60689e | 4415 | fi |
a243b558 JF |
4416 | done |
4417 | done | |
4418 | IFS=$as_save_IFS | |
9c60689e | 4419 | |
a243b558 JF |
4420 | fi |
4421 | fi | |
4422 | CC=$ac_cv_prog_CC | |
4423 | if test -n "$CC"; then | |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4425 | $as_echo "$CC" >&6; } | |
35fa52c0 | 4426 | else |
a243b558 JF |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4428 | $as_echo "no" >&6; } | |
35fa52c0 | 4429 | fi |
9c60689e | 4430 | |
a243b558 JF |
4431 | |
4432 | test -n "$CC" && break | |
4433 | done | |
4434 | fi | |
4435 | if test -z "$CC"; then | |
4436 | ac_ct_CC=$CC | |
4437 | for ac_prog in cl.exe | |
4438 | do | |
4439 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4440 | set dummy $ac_prog; ac_word=$2 | |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4442 | $as_echo_n "checking for $ac_word... " >&6; } | |
4443 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
35fa52c0 DWT |
4444 | $as_echo_n "(cached) " >&6 |
4445 | else | |
a243b558 JF |
4446 | if test -n "$ac_ct_CC"; then |
4447 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4448 | else | |
4449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4450 | for as_dir in $PATH | |
4451 | do | |
4452 | IFS=$as_save_IFS | |
4453 | test -z "$as_dir" && as_dir=. | |
4454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4456 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4458 | break 2 | |
4459 | fi | |
4460 | done | |
4461 | done | |
4462 | IFS=$as_save_IFS | |
9c60689e | 4463 | |
a243b558 JF |
4464 | fi |
4465 | fi | |
4466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4467 | if test -n "$ac_ct_CC"; then | |
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4469 | $as_echo "$ac_ct_CC" >&6; } | |
4470 | else | |
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4472 | $as_echo "no" >&6; } | |
4473 | fi | |
35fa52c0 | 4474 | |
35fa52c0 | 4475 | |
a243b558 JF |
4476 | test -n "$ac_ct_CC" && break |
4477 | done | |
35fa52c0 | 4478 | |
a243b558 JF |
4479 | if test "x$ac_ct_CC" = x; then |
4480 | CC="" | |
4481 | else | |
4482 | case $cross_compiling:$ac_tool_warned in | |
4483 | yes:) | |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4485 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4486 | ac_tool_warned=yes ;; | |
4487 | esac | |
4488 | CC=$ac_ct_CC | |
4489 | fi | |
4490 | fi | |
ee134472 | 4491 | |
a243b558 | 4492 | fi |
35fa52c0 | 4493 | |
35fa52c0 | 4494 | |
a243b558 JF |
4495 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4497 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4498 | See \`config.log' for more details" "$LINENO" 5; } | |
35fa52c0 | 4499 | |
a243b558 JF |
4500 | # Provide some information about the compiler. |
4501 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4502 | set X $ac_compile | |
4503 | ac_compiler=$2 | |
4504 | for ac_option in --version -v -V -qversion; do | |
4505 | { { ac_try="$ac_compiler $ac_option >&5" | |
4506 | case "(($ac_try" in | |
4507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4508 | *) ac_try_echo=$ac_try;; | |
4509 | esac | |
4510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4511 | $as_echo "$ac_try_echo"; } >&5 | |
4512 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4513 | ac_status=$? | |
4514 | if test -s conftest.err; then | |
4515 | sed '10a\ | |
4516 | ... rest of stderr output deleted ... | |
4517 | 10q' conftest.err >conftest.er1 | |
4518 | cat conftest.er1 >&5 | |
4519 | fi | |
4520 | rm -f conftest.er1 conftest.err | |
4521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4522 | test $ac_status = 0; } | |
4523 | done | |
53ba6704 | 4524 | |
a243b558 JF |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4526 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4527 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4528 | $as_echo_n "(cached) " >&6 | |
4529 | else | |
4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4531 | /* end confdefs.h. */ | |
35fa52c0 | 4532 | |
a243b558 JF |
4533 | int |
4534 | main () | |
4535 | { | |
4536 | #ifndef __GNUC__ | |
4537 | choke me | |
4538 | #endif | |
9c60689e | 4539 | |
a243b558 JF |
4540 | ; |
4541 | return 0; | |
4542 | } | |
4543 | _ACEOF | |
4544 | if ac_fn_c_try_compile "$LINENO"; then : | |
4545 | ac_compiler_gnu=yes | |
35fa52c0 | 4546 | else |
a243b558 | 4547 | ac_compiler_gnu=no |
35fa52c0 | 4548 | fi |
a243b558 JF |
4549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4550 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 4551 | |
a243b558 JF |
4552 | fi |
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4554 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4555 | if test $ac_compiler_gnu = yes; then | |
4556 | GCC=yes | |
35fa52c0 | 4557 | else |
a243b558 | 4558 | GCC= |
9c60689e | 4559 | fi |
a243b558 JF |
4560 | ac_test_CFLAGS=${CFLAGS+set} |
4561 | ac_save_CFLAGS=$CFLAGS | |
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4563 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4564 | if ${ac_cv_prog_cc_g+:} false; then : | |
4565 | $as_echo_n "(cached) " >&6 | |
4566 | else | |
4567 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4568 | ac_c_werror_flag=yes | |
4569 | ac_cv_prog_cc_g=no | |
4570 | CFLAGS="-g" | |
4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4572 | /* end confdefs.h. */ | |
9c60689e | 4573 | |
a243b558 JF |
4574 | int |
4575 | main () | |
4576 | { | |
9c60689e | 4577 | |
a243b558 JF |
4578 | ; |
4579 | return 0; | |
4580 | } | |
4581 | _ACEOF | |
4582 | if ac_fn_c_try_compile "$LINENO"; then : | |
4583 | ac_cv_prog_cc_g=yes | |
4584 | else | |
4585 | CFLAGS="" | |
4586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4587 | /* end confdefs.h. */ | |
9c60689e | 4588 | |
a243b558 JF |
4589 | int |
4590 | main () | |
4591 | { | |
9c60689e | 4592 | |
a243b558 JF |
4593 | ; |
4594 | return 0; | |
4595 | } | |
4596 | _ACEOF | |
4597 | if ac_fn_c_try_compile "$LINENO"; then : | |
9c60689e | 4598 | |
a243b558 JF |
4599 | else |
4600 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4601 | CFLAGS="-g" | |
4602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4603 | /* end confdefs.h. */ | |
35fa52c0 | 4604 | |
a243b558 JF |
4605 | int |
4606 | main () | |
4607 | { | |
9c60689e | 4608 | |
a243b558 JF |
4609 | ; |
4610 | return 0; | |
4611 | } | |
4612 | _ACEOF | |
4613 | if ac_fn_c_try_compile "$LINENO"; then : | |
4614 | ac_cv_prog_cc_g=yes | |
ee134472 | 4615 | fi |
a243b558 JF |
4616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4617 | fi | |
4618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4619 | fi | |
4620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4621 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4622 | fi | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4624 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4625 | if test "$ac_test_CFLAGS" = set; then | |
4626 | CFLAGS=$ac_save_CFLAGS | |
4627 | elif test $ac_cv_prog_cc_g = yes; then | |
4628 | if test "$GCC" = yes; then | |
4629 | CFLAGS="-g -O2" | |
4630 | else | |
4631 | CFLAGS="-g" | |
4632 | fi | |
ee134472 | 4633 | else |
a243b558 JF |
4634 | if test "$GCC" = yes; then |
4635 | CFLAGS="-O2" | |
4636 | else | |
4637 | CFLAGS= | |
4638 | fi | |
ee134472 | 4639 | fi |
a243b558 JF |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4641 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4642 | if ${ac_cv_prog_cc_c89+:} false; then : | |
35fa52c0 DWT |
4643 | $as_echo_n "(cached) " >&6 |
4644 | else | |
a243b558 JF |
4645 | ac_cv_prog_cc_c89=no |
4646 | ac_save_CC=$CC | |
4647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4648 | /* end confdefs.h. */ | |
4649 | #include <stdarg.h> | |
4650 | #include <stdio.h> | |
4651 | struct stat; | |
4652 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4653 | struct buf { int x; }; | |
4654 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4655 | static char *e (p, i) | |
4656 | char **p; | |
4657 | int i; | |
4658 | { | |
4659 | return p[i]; | |
4660 | } | |
4661 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4662 | { | |
4663 | char *s; | |
4664 | va_list v; | |
4665 | va_start (v,p); | |
4666 | s = g (p, va_arg (v,int)); | |
4667 | va_end (v); | |
4668 | return s; | |
4669 | } | |
9c60689e | 4670 | |
a243b558 JF |
4671 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4672 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4673 | These don't provoke an error unfortunately, instead are silently treated | |
4674 | as 'x'. The following induces an error, until -std is added to get | |
4675 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4676 | array size at least. It's necessary to write '\x00'==0 to get something | |
4677 | that's true only with -std. */ | |
4678 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
9c60689e | 4679 | |
a243b558 JF |
4680 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4681 | inside strings and character constants. */ | |
4682 | #define FOO(x) 'x' | |
4683 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
9c60689e | 4684 | |
a243b558 JF |
4685 | int test (int i, double x); |
4686 | struct s1 {int (*f) (int a);}; | |
4687 | struct s2 {int (*f) (double a);}; | |
4688 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4689 | int argc; | |
4690 | char **argv; | |
4691 | int | |
4692 | main () | |
4693 | { | |
4694 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4695 | ; | |
4696 | return 0; | |
4697 | } | |
4698 | _ACEOF | |
4699 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4700 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
9c60689e | 4701 | do |
a243b558 JF |
4702 | CC="$ac_save_CC $ac_arg" |
4703 | if ac_fn_c_try_compile "$LINENO"; then : | |
4704 | ac_cv_prog_cc_c89=$ac_arg | |
4705 | fi | |
4706 | rm -f core conftest.err conftest.$ac_objext | |
4707 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
9c60689e | 4708 | done |
a243b558 JF |
4709 | rm -f conftest.$ac_ext |
4710 | CC=$ac_save_CC | |
35fa52c0 | 4711 | |
35fa52c0 | 4712 | fi |
a243b558 JF |
4713 | # AC_CACHE_VAL |
4714 | case "x$ac_cv_prog_cc_c89" in | |
4715 | x) | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4717 | $as_echo "none needed" >&6; } ;; | |
4718 | xno) | |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4720 | $as_echo "unsupported" >&6; } ;; | |
4721 | *) | |
4722 | CC="$CC $ac_cv_prog_cc_c89" | |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4724 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4725 | esac | |
4726 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4727 | ||
35fa52c0 | 4728 | fi |
9c60689e | 4729 | |
a243b558 JF |
4730 | ac_ext=c |
4731 | ac_cpp='$CPP $CPPFLAGS' | |
4732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4735 | ||
4736 | depcc="$CC" am_compiler_list= | |
9c60689e | 4737 | |
a243b558 JF |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4739 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4740 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
35fa52c0 DWT |
4741 | $as_echo_n "(cached) " >&6 |
4742 | else | |
a243b558 JF |
4743 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4744 | # We make a subdir and do the tests there. Otherwise we can end up | |
4745 | # making bogus files that we don't know about and never remove. For | |
4746 | # instance it was reported that on HP-UX the gcc test will end up | |
4747 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4748 | # in D". | |
4749 | rm -rf conftest.dir | |
4750 | mkdir conftest.dir | |
4751 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4752 | # using a relative directory. | |
4753 | cp "$am_depcomp" conftest.dir | |
4754 | cd conftest.dir | |
4755 | # We will build objects and dependencies in a subdirectory because | |
4756 | # it helps to detect inapplicable dependency modes. For instance | |
4757 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4758 | # side effect of compilation, but ICC will put the dependencies in | |
4759 | # the current directory while Tru64 will put them in the object | |
4760 | # directory. | |
4761 | mkdir sub | |
4762 | ||
4763 | am_cv_CC_dependencies_compiler_type=none | |
4764 | if test "$am_compiler_list" = ""; then | |
4765 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4766 | fi | |
4767 | am__universal=false | |
4768 | case " $depcc " in #( | |
4769 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4770 | esac | |
4771 | ||
4772 | for depmode in $am_compiler_list; do | |
4773 | # Setup a source with many dependencies, because some compilers | |
4774 | # like to wrap large dependency lists on column 80 (with \), and | |
4775 | # we should not choose a depcomp mode which is confused by this. | |
4776 | # | |
4777 | # We need to recreate these files for each test, as the compiler may | |
4778 | # overwrite some of them when testing with obscure command lines. | |
4779 | # This happens at least with the AIX C compiler. | |
4780 | : > sub/conftest.c | |
4781 | for i in 1 2 3 4 5 6; do | |
4782 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4783 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4784 | # Solaris 10 /bin/sh. | |
4785 | echo '/* dummy */' > sub/conftst$i.h | |
4786 | done | |
4787 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4788 | ||
4789 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4790 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4791 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4792 | # versions had trouble with output in subdirs. | |
4793 | am__obj=sub/conftest.${OBJEXT-o} | |
4794 | am__minus_obj="-o $am__obj" | |
4795 | case $depmode in | |
4796 | gcc) | |
4797 | # This depmode causes a compiler race in universal mode. | |
4798 | test "$am__universal" = false || continue | |
4799 | ;; | |
4800 | nosideeffect) | |
4801 | # After this tag, mechanisms are not by side-effect, so they'll | |
4802 | # only be used when explicitly requested. | |
4803 | if test "x$enable_dependency_tracking" = xyes; then | |
4804 | continue | |
4805 | else | |
4806 | break | |
4807 | fi | |
4808 | ;; | |
4809 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4810 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4811 | # not run yet. These depmodes are late enough in the game, and | |
4812 | # so weak that their functioning should not be impacted. | |
4813 | am__obj=conftest.${OBJEXT-o} | |
4814 | am__minus_obj= | |
4815 | ;; | |
4816 | none) break ;; | |
4817 | esac | |
4818 | if depmode=$depmode \ | |
4819 | source=sub/conftest.c object=$am__obj \ | |
4820 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4821 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4822 | >/dev/null 2>conftest.err && | |
4823 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4824 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4825 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4826 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4827 | # icc doesn't choke on unknown options, it will just issue warnings | |
4828 | # or remarks (even with -Werror). So we grep stderr for any message | |
4829 | # that says an option was ignored or not supported. | |
4830 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4831 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4832 | # The diagnosis changed in icc 8.0: | |
4833 | # icc: Command line remark: option '-MP' not supported | |
4834 | if (grep 'ignoring option' conftest.err || | |
4835 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4836 | am_cv_CC_dependencies_compiler_type=$depmode | |
4837 | break | |
4838 | fi | |
4839 | fi | |
4840 | done | |
9c60689e | 4841 | |
a243b558 JF |
4842 | cd .. |
4843 | rm -rf conftest.dir | |
4844 | else | |
4845 | am_cv_CC_dependencies_compiler_type=none | |
35fa52c0 | 4846 | fi |
a243b558 | 4847 | |
35fa52c0 | 4848 | fi |
a243b558 JF |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4850 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4851 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4852 | ||
4853 | if | |
4854 | test "x$enable_dependency_tracking" != xno \ | |
4855 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4856 | am__fastdepCC_TRUE= | |
4857 | am__fastdepCC_FALSE='#' | |
4858 | else | |
4859 | am__fastdepCC_TRUE='#' | |
4860 | am__fastdepCC_FALSE= | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | ||
4865 | if test -n "$ac_tool_prefix"; then | |
4866 | for ac_prog in ar lib "link -lib" | |
4867 | do | |
4868 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4869 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4871 | $as_echo_n "checking for $ac_word... " >&6; } | |
4872 | if ${ac_cv_prog_AR+:} false; then : | |
4873 | $as_echo_n "(cached) " >&6 | |
4874 | else | |
4875 | if test -n "$AR"; then | |
4876 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4877 | else | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
4883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4885 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4887 | break 2 | |
4888 | fi | |
4889 | done | |
4890 | done | |
4891 | IFS=$as_save_IFS | |
4892 | ||
4893 | fi | |
4894 | fi | |
4895 | AR=$ac_cv_prog_AR | |
4896 | if test -n "$AR"; then | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4898 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
4899 | else |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4901 | $as_echo "no" >&6; } | |
4902 | fi | |
9c60689e | 4903 | |
a243b558 JF |
4904 | |
4905 | test -n "$AR" && break | |
4906 | done | |
4907 | fi | |
4908 | if test -z "$AR"; then | |
4909 | ac_ct_AR=$AR | |
4910 | for ac_prog in ar lib "link -lib" | |
4911 | do | |
4912 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4913 | set dummy $ac_prog; ac_word=$2 | |
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4915 | $as_echo_n "checking for $ac_word... " >&6; } | |
4916 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4917 | $as_echo_n "(cached) " >&6 | |
4918 | else | |
4919 | if test -n "$ac_ct_AR"; then | |
4920 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4921 | else | |
4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4923 | for as_dir in $PATH | |
4924 | do | |
4925 | IFS=$as_save_IFS | |
4926 | test -z "$as_dir" && as_dir=. | |
4927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4929 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
4930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4931 | break 2 | |
4932 | fi | |
4933 | done | |
4934 | done | |
4935 | IFS=$as_save_IFS | |
4936 | ||
4937 | fi | |
4938 | fi | |
4939 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4940 | if test -n "$ac_ct_AR"; then | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4942 | $as_echo "$ac_ct_AR" >&6; } | |
4943 | else | |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4945 | $as_echo "no" >&6; } | |
4946 | fi | |
4947 | ||
4948 | ||
4949 | test -n "$ac_ct_AR" && break | |
4950 | done | |
4951 | ||
4952 | if test "x$ac_ct_AR" = x; then | |
4953 | AR="false" | |
9c60689e DWT |
4954 | else |
4955 | case $cross_compiling:$ac_tool_warned in | |
4956 | yes:) | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4958 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4959 | ac_tool_warned=yes ;; | |
35fa52c0 | 4960 | esac |
a243b558 | 4961 | AR=$ac_ct_AR |
9c60689e | 4962 | fi |
a243b558 JF |
4963 | fi |
4964 | ||
4965 | : ${AR=ar} | |
4966 | ||
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
4968 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
4969 | if ${am_cv_ar_interface+:} false; then : | |
4970 | $as_echo_n "(cached) " >&6 | |
9c60689e | 4971 | else |
a243b558 JF |
4972 | am_cv_ar_interface=ar |
4973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4974 | /* end confdefs.h. */ | |
4975 | int some_variable = 0; | |
4976 | _ACEOF | |
4977 | if ac_fn_c_try_compile "$LINENO"; then : | |
4978 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
4979 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4980 | (eval $am_ar_try) 2>&5 | |
4981 | ac_status=$? | |
4982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4983 | test $ac_status = 0; } | |
4984 | if test "$ac_status" -eq 0; then | |
4985 | am_cv_ar_interface=ar | |
4986 | else | |
4987 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
4988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4989 | (eval $am_ar_try) 2>&5 | |
4990 | ac_status=$? | |
4991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4992 | test $ac_status = 0; } | |
4993 | if test "$ac_status" -eq 0; then | |
4994 | am_cv_ar_interface=lib | |
4995 | else | |
4996 | am_cv_ar_interface=unknown | |
4997 | fi | |
4998 | fi | |
4999 | rm -f conftest.lib libconftest.a | |
5000 | ||
35fa52c0 | 5001 | fi |
a243b558 | 5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 5003 | |
a243b558 JF |
5004 | fi |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5006 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 5007 | |
a243b558 JF |
5008 | case $am_cv_ar_interface in |
5009 | ar) | |
5010 | ;; | |
5011 | lib) | |
5012 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5013 | # FIXME: It is wrong to rewrite AR. | |
5014 | # But if we don't then we get into trouble of one sort or another. | |
5015 | # A longer-term fix would be to have automake use am__AR in this case, | |
5016 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5017 | # similar. | |
5018 | AR="$am_aux_dir/ar-lib $AR" | |
5019 | ;; | |
5020 | unknown) | |
5021 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5022 | ;; | |
5023 | esac | |
35fa52c0 | 5024 | |
35fa52c0 | 5025 | |
35fa52c0 | 5026 | |
a243b558 JF |
5027 | case `pwd` in |
5028 | *\ * | *\ *) | |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5030 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5031 | esac | |
35fa52c0 DWT |
5032 | |
5033 | ||
5034 | ||
a243b558 JF |
5035 | macro_version='2.4.2' |
5036 | macro_revision='1.3337' | |
35fa52c0 DWT |
5037 | |
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
35fa52c0 | 5046 | |
35fa52c0 | 5047 | |
ee134472 | 5048 | |
35fa52c0 | 5049 | |
a243b558 | 5050 | ltmain="$ac_aux_dir/ltmain.sh" |
35fa52c0 | 5051 | |
a243b558 JF |
5052 | # Make sure we can run config.sub. |
5053 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5054 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5055 | |
a243b558 JF |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5057 | $as_echo_n "checking build system type... " >&6; } | |
5058 | if ${ac_cv_build+:} false; then : | |
5059 | $as_echo_n "(cached) " >&6 | |
5060 | else | |
5061 | ac_build_alias=$build_alias | |
5062 | test "x$ac_build_alias" = x && | |
5063 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5064 | test "x$ac_build_alias" = x && | |
5065 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5066 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5067 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5068 | |
a243b558 JF |
5069 | fi |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5071 | $as_echo "$ac_cv_build" >&6; } | |
5072 | case $ac_cv_build in | |
5073 | *-*-*) ;; | |
5074 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5075 | esac | |
5076 | build=$ac_cv_build | |
5077 | ac_save_IFS=$IFS; IFS='-' | |
5078 | set x $ac_cv_build | |
5079 | shift | |
5080 | build_cpu=$1 | |
5081 | build_vendor=$2 | |
5082 | shift; shift | |
5083 | # Remember, the first character of IFS is used to create $*, | |
5084 | # except with old shells: | |
5085 | build_os=$* | |
5086 | IFS=$ac_save_IFS | |
5087 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5088 | |
35fa52c0 | 5089 | |
a243b558 JF |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5091 | $as_echo_n "checking host system type... " >&6; } | |
5092 | if ${ac_cv_host+:} false; then : | |
5093 | $as_echo_n "(cached) " >&6 | |
5094 | else | |
5095 | if test "x$host_alias" = x; then | |
5096 | ac_cv_host=$ac_cv_build | |
5097 | else | |
5098 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5099 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5100 | fi | |
35fa52c0 | 5101 | |
a243b558 JF |
5102 | fi |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5104 | $as_echo "$ac_cv_host" >&6; } | |
5105 | case $ac_cv_host in | |
5106 | *-*-*) ;; | |
5107 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5108 | esac | |
5109 | host=$ac_cv_host | |
5110 | ac_save_IFS=$IFS; IFS='-' | |
5111 | set x $ac_cv_host | |
5112 | shift | |
5113 | host_cpu=$1 | |
5114 | host_vendor=$2 | |
5115 | shift; shift | |
5116 | # Remember, the first character of IFS is used to create $*, | |
5117 | # except with old shells: | |
5118 | host_os=$* | |
5119 | IFS=$ac_save_IFS | |
5120 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5121 | |
9c60689e | 5122 | |
a243b558 JF |
5123 | # Backslashify metacharacters that are still active within |
5124 | # double-quoted strings. | |
5125 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5126 | |
a243b558 JF |
5127 | # Same as above, but do not quote variable references. |
5128 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5129 | |
a243b558 JF |
5130 | # Sed substitution to delay expansion of an escaped shell variable in a |
5131 | # double_quote_subst'ed string. | |
5132 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5133 | |
a243b558 JF |
5134 | # Sed substitution to delay expansion of an escaped single quote. |
5135 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5136 | |
a243b558 JF |
5137 | # Sed substitution to avoid accidental globbing in evaled expressions |
5138 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5139 | |
a243b558 JF |
5140 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5141 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5142 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5143 | |
a243b558 JF |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5145 | $as_echo_n "checking how to print strings... " >&6; } | |
5146 | # Test print first, because it will be a builtin if present. | |
5147 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5148 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5149 | ECHO='print -r --' | |
5150 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5151 | ECHO='printf %s\n' | |
5152 | else | |
5153 | # Use this function as a fallback that always works. | |
5154 | func_fallback_echo () | |
5155 | { | |
5156 | eval 'cat <<_LTECHO_EOF | |
5157 | $1 | |
5158 | _LTECHO_EOF' | |
5159 | } | |
5160 | ECHO='func_fallback_echo' | |
ee134472 JF |
5161 | fi |
5162 | ||
a243b558 JF |
5163 | # func_echo_all arg... |
5164 | # Invoke $ECHO with all args, space-separated. | |
5165 | func_echo_all () | |
5166 | { | |
5167 | $ECHO "" | |
5168 | } | |
35fa52c0 | 5169 | |
a243b558 JF |
5170 | case "$ECHO" in |
5171 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5172 | $as_echo "printf" >&6; } ;; | |
5173 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5174 | $as_echo "print -r" >&6; } ;; | |
5175 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5176 | $as_echo "cat" >&6; } ;; | |
5177 | esac | |
35fa52c0 | 5178 | |
35fa52c0 | 5179 | |
ee134472 JF |
5180 | |
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
35fa52c0 | 5190 | |
9c60689e | 5191 | |
a243b558 JF |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5193 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5194 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5195 | $as_echo_n "(cached) " >&6 |
5196 | else | |
a243b558 JF |
5197 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5198 | for ac_i in 1 2 3 4 5 6 7; do | |
5199 | ac_script="$ac_script$as_nl$ac_script" | |
5200 | done | |
5201 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5202 | { ac_script=; unset ac_script;} | |
5203 | if test -z "$SED"; then | |
5204 | ac_path_SED_found=false | |
5205 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5207 | for as_dir in $PATH |
5208 | do | |
5209 | IFS=$as_save_IFS | |
5210 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5211 | for ac_prog in sed gsed; do |
9c60689e | 5212 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5213 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5214 | as_fn_executable_p "$ac_path_SED" || continue | |
5215 | # Check for GNU ac_path_SED and select it if it is found. | |
5216 | # Check for GNU $ac_path_SED | |
5217 | case `"$ac_path_SED" --version 2>&1` in | |
5218 | *GNU*) | |
5219 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5220 | *) | |
5221 | ac_count=0 | |
5222 | $as_echo_n 0123456789 >"conftest.in" | |
5223 | while : | |
5224 | do | |
5225 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5226 | mv "conftest.tmp" "conftest.in" | |
5227 | cp "conftest.in" "conftest.nl" | |
5228 | $as_echo '' >> "conftest.nl" | |
5229 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5230 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5231 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5232 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5233 | # Best one so far, save it but keep looking for a better one | |
5234 | ac_cv_path_SED="$ac_path_SED" | |
5235 | ac_path_SED_max=$ac_count | |
5236 | fi | |
5237 | # 10*(2^10) chars as input seems more than enough | |
5238 | test $ac_count -gt 10 && break | |
35fa52c0 | 5239 | done |
a243b558 JF |
5240 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5241 | esac | |
9c60689e | 5242 | |
a243b558 JF |
5243 | $ac_path_SED_found && break 3 |
5244 | done | |
5245 | done | |
9c60689e DWT |
5246 | done |
5247 | IFS=$as_save_IFS | |
a243b558 JF |
5248 | if test -z "$ac_cv_path_SED"; then |
5249 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5250 | fi |
5251 | else | |
a243b558 | 5252 | ac_cv_path_SED=$SED |
9c60689e DWT |
5253 | fi |
5254 | ||
a243b558 JF |
5255 | fi |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5257 | $as_echo "$ac_cv_path_SED" >&6; } | |
5258 | SED="$ac_cv_path_SED" | |
5259 | rm -f conftest.sed | |
9c60689e | 5260 | |
a243b558 JF |
5261 | test -z "$SED" && SED=sed |
5262 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5263 | |
ee134472 | 5264 | |
ee134472 | 5265 | |
9c60689e DWT |
5266 | |
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
a243b558 JF |
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5275 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5276 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5277 | $as_echo_n "(cached) " >&6 |
5278 | else | |
a243b558 JF |
5279 | if test -z "$GREP"; then |
5280 | ac_path_GREP_found=false | |
5281 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5283 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5284 | do |
5285 | IFS=$as_save_IFS | |
5286 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5287 | for ac_prog in grep ggrep; do |
9c60689e | 5288 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5289 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5290 | as_fn_executable_p "$ac_path_GREP" || continue | |
5291 | # Check for GNU ac_path_GREP and select it if it is found. | |
5292 | # Check for GNU $ac_path_GREP | |
5293 | case `"$ac_path_GREP" --version 2>&1` in | |
5294 | *GNU*) | |
5295 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5296 | *) | |
5297 | ac_count=0 | |
5298 | $as_echo_n 0123456789 >"conftest.in" | |
5299 | while : | |
5300 | do | |
5301 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5302 | mv "conftest.tmp" "conftest.in" | |
5303 | cp "conftest.in" "conftest.nl" | |
5304 | $as_echo 'GREP' >> "conftest.nl" | |
5305 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5306 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5307 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5308 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5309 | # Best one so far, save it but keep looking for a better one | |
5310 | ac_cv_path_GREP="$ac_path_GREP" | |
5311 | ac_path_GREP_max=$ac_count | |
5312 | fi | |
5313 | # 10*(2^10) chars as input seems more than enough | |
5314 | test $ac_count -gt 10 && break | |
5315 | done | |
5316 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5317 | esac | |
9c60689e | 5318 | |
a243b558 JF |
5319 | $ac_path_GREP_found && break 3 |
5320 | done | |
ee134472 | 5321 | done |
a243b558 JF |
5322 | done |
5323 | IFS=$as_save_IFS | |
5324 | if test -z "$ac_cv_path_GREP"; then | |
5325 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5326 | fi | |
5327 | else | |
5328 | ac_cv_path_GREP=$GREP | |
9c60689e | 5329 | fi |
a243b558 JF |
5330 | |
5331 | fi | |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5333 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5334 | GREP="$ac_cv_path_GREP" | |
5335 | ||
5336 | ||
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5338 | $as_echo_n "checking for egrep... " >&6; } | |
5339 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5340 | $as_echo_n "(cached) " >&6 |
5341 | else | |
a243b558 JF |
5342 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5343 | then ac_cv_path_EGREP="$GREP -E" | |
5344 | else | |
5345 | if test -z "$EGREP"; then | |
5346 | ac_path_EGREP_found=false | |
5347 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5349 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5350 | do |
5351 | IFS=$as_save_IFS | |
5352 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5353 | for ac_prog in egrep; do |
9c60689e | 5354 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5355 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5356 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5357 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5358 | # Check for GNU $ac_path_EGREP | |
5359 | case `"$ac_path_EGREP" --version 2>&1` in | |
5360 | *GNU*) | |
5361 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5362 | *) | |
5363 | ac_count=0 | |
5364 | $as_echo_n 0123456789 >"conftest.in" | |
5365 | while : | |
5366 | do | |
5367 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5368 | mv "conftest.tmp" "conftest.in" | |
5369 | cp "conftest.in" "conftest.nl" | |
5370 | $as_echo 'EGREP' >> "conftest.nl" | |
5371 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5372 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5373 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5374 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5375 | # Best one so far, save it but keep looking for a better one | |
5376 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5377 | ac_path_EGREP_max=$ac_count | |
5378 | fi | |
5379 | # 10*(2^10) chars as input seems more than enough | |
5380 | test $ac_count -gt 10 && break | |
9c60689e | 5381 | done |
a243b558 JF |
5382 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5383 | esac | |
9c60689e | 5384 | |
a243b558 JF |
5385 | $ac_path_EGREP_found && break 3 |
5386 | done | |
5387 | done | |
5388 | done | |
5389 | IFS=$as_save_IFS | |
5390 | if test -z "$ac_cv_path_EGREP"; then | |
5391 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5392 | fi | |
9c60689e | 5393 | else |
a243b558 | 5394 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5395 | fi |
5396 | ||
a243b558 JF |
5397 | fi |
5398 | fi | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5400 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5401 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5402 | |
ee134472 | 5403 | |
a243b558 JF |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5405 | $as_echo_n "checking for fgrep... " >&6; } | |
5406 | if ${ac_cv_path_FGREP+:} false; then : | |
5407 | $as_echo_n "(cached) " >&6 | |
5408 | else | |
5409 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5410 | then ac_cv_path_FGREP="$GREP -F" | |
5411 | else | |
5412 | if test -z "$FGREP"; then | |
5413 | ac_path_FGREP_found=false | |
5414 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5416 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5417 | do | |
5418 | IFS=$as_save_IFS | |
5419 | test -z "$as_dir" && as_dir=. | |
5420 | for ac_prog in fgrep; do | |
5421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5422 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5423 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5424 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5425 | # Check for GNU $ac_path_FGREP | |
5426 | case `"$ac_path_FGREP" --version 2>&1` in | |
5427 | *GNU*) | |
5428 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5429 | *) | |
5430 | ac_count=0 | |
5431 | $as_echo_n 0123456789 >"conftest.in" | |
5432 | while : | |
5433 | do | |
5434 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5435 | mv "conftest.tmp" "conftest.in" | |
5436 | cp "conftest.in" "conftest.nl" | |
5437 | $as_echo 'FGREP' >> "conftest.nl" | |
5438 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5439 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5440 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5441 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5442 | # Best one so far, save it but keep looking for a better one | |
5443 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5444 | ac_path_FGREP_max=$ac_count | |
5445 | fi | |
5446 | # 10*(2^10) chars as input seems more than enough | |
5447 | test $ac_count -gt 10 && break | |
5448 | done | |
5449 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5450 | esac |
a243b558 JF |
5451 | |
5452 | $ac_path_FGREP_found && break 3 | |
5453 | done | |
5454 | done | |
5455 | done | |
5456 | IFS=$as_save_IFS | |
5457 | if test -z "$ac_cv_path_FGREP"; then | |
5458 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5459 | fi |
a243b558 JF |
5460 | else |
5461 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5462 | fi |
5463 | ||
a243b558 JF |
5464 | fi |
5465 | fi | |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5467 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5468 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5469 | |
5470 | ||
a243b558 | 5471 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5472 | |
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
ee134472 | 5479 | |
ee134472 | 5480 | |
ee134472 | 5481 | |
ee134472 | 5482 | |
ee134472 | 5483 | |
ee134472 JF |
5484 | |
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
a243b558 JF |
5491 | # Check whether --with-gnu-ld was given. |
5492 | if test "${with_gnu_ld+set}" = set; then : | |
5493 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5494 | else | |
5495 | with_gnu_ld=no | |
5496 | fi | |
5497 | ||
5498 | ac_prog=ld | |
5499 | if test "$GCC" = yes; then | |
5500 | # Check if gcc -print-prog-name=ld gives a path. | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5502 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5503 | case $host in | |
5504 | *-*-mingw*) | |
5505 | # gcc leaves a trailing carriage return which upsets mingw | |
5506 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5507 | *) | |
5508 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5509 | esac | |
5510 | case $ac_prog in | |
5511 | # Accept absolute paths. | |
5512 | [\\/]* | ?:[\\/]*) | |
5513 | re_direlt='/[^/][^/]*/\.\./' | |
5514 | # Canonicalize the pathname of ld | |
5515 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5516 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5517 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5518 | done | |
5519 | test -z "$LD" && LD="$ac_prog" | |
5520 | ;; | |
5521 | "") | |
5522 | # If it fails, then pretend we aren't using GCC. | |
5523 | ac_prog=ld | |
5524 | ;; | |
5525 | *) | |
5526 | # If it is relative, then search for the first ld in PATH. | |
5527 | with_gnu_ld=unknown | |
5528 | ;; | |
5529 | esac | |
5530 | elif test "$with_gnu_ld" = yes; then | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5532 | $as_echo_n "checking for GNU ld... " >&6; } | |
5533 | else | |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5535 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5536 | fi | |
5537 | if ${lt_cv_path_LD+:} false; then : | |
5538 | $as_echo_n "(cached) " >&6 | |
5539 | else | |
5540 | if test -z "$LD"; then | |
5541 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5542 | for ac_dir in $PATH; do | |
5543 | IFS="$lt_save_ifs" | |
5544 | test -z "$ac_dir" && ac_dir=. | |
5545 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5546 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5547 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5548 | # but apparently some variants of GNU ld only accept -v. | |
5549 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5550 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5551 | *GNU* | *'with BFD'*) | |
5552 | test "$with_gnu_ld" != no && break | |
5553 | ;; | |
5554 | *) | |
5555 | test "$with_gnu_ld" != yes && break | |
5556 | ;; | |
5557 | esac | |
5558 | fi | |
5559 | done | |
5560 | IFS="$lt_save_ifs" | |
5561 | else | |
5562 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5563 | fi | |
5564 | fi | |
5565 | ||
5566 | LD="$lt_cv_path_LD" | |
5567 | if test -n "$LD"; then | |
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5569 | $as_echo "$LD" >&6; } | |
5570 | else | |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5572 | $as_echo "no" >&6; } | |
5573 | fi | |
5574 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5576 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5577 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5578 | $as_echo_n "(cached) " >&6 | |
5579 | else | |
5580 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5581 | case `$LD -v 2>&1 </dev/null` in | |
5582 | *GNU* | *'with BFD'*) | |
5583 | lt_cv_prog_gnu_ld=yes | |
5584 | ;; | |
5585 | *) | |
5586 | lt_cv_prog_gnu_ld=no | |
5587 | ;; | |
5588 | esac | |
5589 | fi | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5591 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5592 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5603 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5604 | if ${lt_cv_path_NM+:} false; then : | |
5605 | $as_echo_n "(cached) " >&6 | |
5606 | else | |
5607 | if test -n "$NM"; then | |
5608 | # Let the user override the test. | |
5609 | lt_cv_path_NM="$NM" | |
5610 | else | |
5611 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5612 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5613 | lt_nm_to_check="$lt_nm_to_check nm" | |
5614 | fi | |
5615 | for lt_tmp_nm in $lt_nm_to_check; do | |
5616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5617 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5618 | IFS="$lt_save_ifs" | |
5619 | test -z "$ac_dir" && ac_dir=. | |
5620 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5621 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5622 | # Check to see if the nm accepts a BSD-compat flag. | |
5623 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5624 | # nm: unknown option "B" ignored | |
5625 | # Tru64's nm complains that /dev/null is an invalid object file | |
5626 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5627 | */dev/null* | *'Invalid file or object type'*) | |
5628 | lt_cv_path_NM="$tmp_nm -B" | |
5629 | break | |
5630 | ;; | |
5631 | *) | |
5632 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5633 | */dev/null*) | |
5634 | lt_cv_path_NM="$tmp_nm -p" | |
5635 | break | |
5636 | ;; | |
5637 | *) | |
5638 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5639 | continue # so that we can try to find one that supports BSD flags | |
5640 | ;; | |
5641 | esac | |
5642 | ;; | |
5643 | esac | |
5644 | fi | |
5645 | done | |
5646 | IFS="$lt_save_ifs" | |
5647 | done | |
5648 | : ${lt_cv_path_NM=no} | |
5649 | fi | |
5650 | fi | |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5652 | $as_echo "$lt_cv_path_NM" >&6; } | |
5653 | if test "$lt_cv_path_NM" != "no"; then | |
5654 | NM="$lt_cv_path_NM" | |
5655 | else | |
5656 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5657 | if test -n "$DUMPBIN"; then : | |
5658 | # Let the user override the test. | |
5659 | else | |
5660 | if test -n "$ac_tool_prefix"; then | |
5661 | for ac_prog in dumpbin "link -dump" | |
5662 | do | |
5663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5666 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5667 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5668 | $as_echo_n "(cached) " >&6 |
5669 | else | |
a243b558 JF |
5670 | if test -n "$DUMPBIN"; then |
5671 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5672 | else |
5673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5674 | for as_dir in $PATH | |
5675 | do | |
5676 | IFS=$as_save_IFS | |
5677 | test -z "$as_dir" && as_dir=. | |
5678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5680 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5682 | break 2 | |
5683 | fi | |
5684 | done | |
5685 | done | |
5686 | IFS=$as_save_IFS | |
5687 | ||
5688 | fi | |
5689 | fi | |
a243b558 JF |
5690 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5691 | if test -n "$DUMPBIN"; then | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5693 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5694 | else |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5696 | $as_echo "no" >&6; } | |
5697 | fi | |
5698 | ||
5699 | ||
a243b558 JF |
5700 | test -n "$DUMPBIN" && break |
5701 | done | |
ee134472 | 5702 | fi |
a243b558 JF |
5703 | if test -z "$DUMPBIN"; then |
5704 | ac_ct_DUMPBIN=$DUMPBIN | |
5705 | for ac_prog in dumpbin "link -dump" | |
5706 | do | |
5707 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5708 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5710 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5711 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5712 | $as_echo_n "(cached) " >&6 |
5713 | else | |
a243b558 JF |
5714 | if test -n "$ac_ct_DUMPBIN"; then |
5715 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5716 | else |
5717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5718 | for as_dir in $PATH | |
5719 | do | |
5720 | IFS=$as_save_IFS | |
5721 | test -z "$as_dir" && as_dir=. | |
5722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5724 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5726 | break 2 | |
5727 | fi | |
5728 | done | |
5729 | done | |
5730 | IFS=$as_save_IFS | |
5731 | ||
5732 | fi | |
5733 | fi | |
a243b558 JF |
5734 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5735 | if test -n "$ac_ct_DUMPBIN"; then | |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5737 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5738 | else |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5740 | $as_echo "no" >&6; } | |
5741 | fi | |
5742 | ||
a243b558 JF |
5743 | |
5744 | test -n "$ac_ct_DUMPBIN" && break | |
5745 | done | |
5746 | ||
5747 | if test "x$ac_ct_DUMPBIN" = x; then | |
5748 | DUMPBIN=":" | |
ee134472 JF |
5749 | else |
5750 | case $cross_compiling:$ac_tool_warned in | |
5751 | yes:) | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5754 | ac_tool_warned=yes ;; | |
5755 | esac | |
a243b558 | 5756 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5757 | fi |
9c60689e DWT |
5758 | fi |
5759 | ||
a243b558 JF |
5760 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5761 | *COFF*) | |
5762 | DUMPBIN="$DUMPBIN -symbols" | |
5763 | ;; | |
5764 | *) | |
5765 | DUMPBIN=: | |
5766 | ;; | |
5767 | esac | |
5768 | fi | |
9c60689e | 5769 | |
a243b558 JF |
5770 | if test "$DUMPBIN" != ":"; then |
5771 | NM="$DUMPBIN" | |
5772 | fi | |
5773 | fi | |
5774 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5775 | |
5776 | ||
5777 | ||
5778 | ||
5779 | ||
a243b558 JF |
5780 | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5782 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5783 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5784 | $as_echo_n "(cached) " >&6 |
5785 | else | |
a243b558 JF |
5786 | lt_cv_nm_interface="BSD nm" |
5787 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5788 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5789 | (eval "$ac_compile" 2>conftest.err) | |
5790 | cat conftest.err >&5 | |
5791 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5792 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5793 | cat conftest.err >&5 | |
5794 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5795 | cat conftest.out >&5 | |
5796 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5797 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5798 | fi |
a243b558 | 5799 | rm -rf conftest* |
9c60689e | 5800 | fi |
a243b558 JF |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5802 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5803 | ||
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5805 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5806 | LN_S=$as_ln_s | |
5807 | if test "$LN_S" = "ln -s"; then | |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5809 | $as_echo "yes" >&6; } | |
9c60689e | 5810 | else |
a243b558 JF |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5812 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5813 | fi |
5814 | ||
a243b558 JF |
5815 | # find the maximum length of command line arguments |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5817 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5818 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5819 | $as_echo_n "(cached) " >&6 |
5820 | else | |
a243b558 JF |
5821 | i=0 |
5822 | teststring="ABCD" | |
9c60689e | 5823 | |
a243b558 JF |
5824 | case $build_os in |
5825 | msdosdjgpp*) | |
5826 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5827 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5828 | # during glob expansion). Even if it were fixed, the result of this | |
5829 | # check would be larger than it should be. | |
5830 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5831 | ;; | |
9c60689e | 5832 | |
a243b558 JF |
5833 | gnu*) |
5834 | # Under GNU Hurd, this test is not required because there is | |
5835 | # no limit to the length of command line arguments. | |
5836 | # Libtool will interpret -1 as no limit whatsoever | |
5837 | lt_cv_sys_max_cmd_len=-1; | |
5838 | ;; | |
9c60689e | 5839 | |
a243b558 JF |
5840 | cygwin* | mingw* | cegcc*) |
5841 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5842 | # about 5 minutes as the teststring grows exponentially. | |
5843 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5844 | # you end up with a "frozen" computer, even though with patience | |
5845 | # the test eventually succeeds (with a max line length of 256k). | |
5846 | # Instead, let's just punt: use the minimum linelength reported by | |
5847 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5848 | lt_cv_sys_max_cmd_len=8192; | |
5849 | ;; | |
9c60689e | 5850 | |
a243b558 JF |
5851 | mint*) |
5852 | # On MiNT this can take a long time and run out of memory. | |
5853 | lt_cv_sys_max_cmd_len=8192; | |
5854 | ;; | |
9c60689e | 5855 | |
a243b558 JF |
5856 | amigaos*) |
5857 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5858 | # So we just punt and use a minimum line length of 8192. | |
5859 | lt_cv_sys_max_cmd_len=8192; | |
5860 | ;; | |
9c60689e | 5861 | |
a243b558 JF |
5862 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5863 | # This has been around since 386BSD, at least. Likely further. | |
5864 | if test -x /sbin/sysctl; then | |
5865 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5866 | elif test -x /usr/sbin/sysctl; then | |
5867 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5868 | else | |
5869 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5870 | fi | |
5871 | # And add a safety zone | |
5872 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5873 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5874 | ;; | |
9c60689e | 5875 | |
a243b558 JF |
5876 | interix*) |
5877 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5878 | lt_cv_sys_max_cmd_len=196608 | |
5879 | ;; | |
9c60689e | 5880 | |
a243b558 JF |
5881 | os2*) |
5882 | # The test takes a long time on OS/2. | |
5883 | lt_cv_sys_max_cmd_len=8192 | |
5884 | ;; | |
9c60689e | 5885 | |
a243b558 JF |
5886 | osf*) |
5887 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5888 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5889 | # nice to cause kernel panics so lets avoid the loop below. | |
5890 | # First set a reasonable default. | |
5891 | lt_cv_sys_max_cmd_len=16384 | |
5892 | # | |
5893 | if test -x /sbin/sysconfig; then | |
5894 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5895 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5896 | esac | |
5897 | fi | |
5898 | ;; | |
5899 | sco3.2v5*) | |
5900 | lt_cv_sys_max_cmd_len=102400 | |
5901 | ;; | |
5902 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5903 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5904 | if test -n "$kargmax"; then | |
5905 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5906 | else | |
5907 | lt_cv_sys_max_cmd_len=32768 | |
5908 | fi | |
9c60689e DWT |
5909 | ;; |
5910 | *) | |
a243b558 JF |
5911 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5912 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5913 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5914 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5915 | else | |
5916 | # Make teststring a little bigger before we do anything with it. | |
5917 | # a 1K string should be a reasonable start. | |
5918 | for i in 1 2 3 4 5 6 7 8 ; do | |
5919 | teststring=$teststring$teststring | |
5920 | done | |
5921 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5922 | # If test is not a shell built-in, we'll probably end up computing a | |
5923 | # maximum length that is only half of the actual maximum length, but | |
5924 | # we can't tell. | |
5925 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5926 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5927 | test $i != 17 # 1/2 MB should be enough | |
5928 | do | |
5929 | i=`expr $i + 1` | |
5930 | teststring=$teststring$teststring | |
5931 | done | |
5932 | # Only check the string length outside the loop. | |
5933 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5934 | teststring= | |
5935 | # Add a significant safety factor because C++ compilers can tack on | |
5936 | # massive amounts of additional arguments before passing them to the | |
5937 | # linker. It appears as though 1/2 is a usable value. | |
5938 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5939 | fi | |
9c60689e DWT |
5940 | ;; |
5941 | esac | |
ee134472 | 5942 | |
a243b558 | 5943 | fi |
ee134472 | 5944 | |
a243b558 JF |
5945 | if test -n $lt_cv_sys_max_cmd_len ; then |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5947 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5948 | else | |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5950 | $as_echo "none" >&6; } | |
5951 | fi | |
5952 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
5953 | |
5954 | ||
9c60689e DWT |
5955 | |
5956 | ||
5957 | ||
5958 | ||
a243b558 JF |
5959 | : ${CP="cp -f"} |
5960 | : ${MV="mv -f"} | |
5961 | : ${RM="rm -f"} | |
9c60689e | 5962 | |
a243b558 JF |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5964 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5965 | # Try some XSI features | |
5966 | xsi_shell=no | |
5967 | ( _lt_dummy="a/b/c" | |
5968 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5969 | = c,a/b,b/c, \ | |
5970 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5971 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5972 | && xsi_shell=yes | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5974 | $as_echo "$xsi_shell" >&6; } | |
9c60689e DWT |
5975 | |
5976 | ||
a243b558 JF |
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5978 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5979 | lt_shell_append=no | |
5980 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5981 | >/dev/null 2>&1 \ | |
5982 | && lt_shell_append=yes | |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5984 | $as_echo "$lt_shell_append" >&6; } | |
9c60689e DWT |
5985 | |
5986 | ||
a243b558 JF |
5987 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5988 | lt_unset=unset | |
5989 | else | |
5990 | lt_unset=false | |
5991 | fi | |
9c60689e DWT |
5992 | |
5993 | ||
5994 | ||
5995 | ||
5996 | ||
a243b558 JF |
5997 | # test EBCDIC or ASCII |
5998 | case `echo X|tr X '\101'` in | |
5999 | A) # ASCII based system | |
6000 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6001 | lt_SP2NL='tr \040 \012' | |
6002 | lt_NL2SP='tr \015\012 \040\040' | |
6003 | ;; | |
6004 | *) # EBCDIC based system | |
6005 | lt_SP2NL='tr \100 \n' | |
6006 | lt_NL2SP='tr \r\n \100\100' | |
6007 | ;; | |
6008 | esac | |
9c60689e DWT |
6009 | |
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | ||
6017 | ||
a243b558 JF |
6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6019 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6020 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6021 | $as_echo_n "(cached) " >&6 | |
6022 | else | |
6023 | case $host in | |
6024 | *-*-mingw* ) | |
6025 | case $build in | |
6026 | *-*-mingw* ) # actually msys | |
6027 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6028 | ;; | |
6029 | *-*-cygwin* ) | |
6030 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6031 | ;; | |
6032 | * ) # otherwise, assume *nix | |
6033 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6034 | ;; | |
6035 | esac | |
6036 | ;; | |
6037 | *-*-cygwin* ) | |
6038 | case $build in | |
6039 | *-*-mingw* ) # actually msys | |
6040 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6041 | ;; | |
6042 | *-*-cygwin* ) | |
6043 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6044 | ;; | |
6045 | * ) # otherwise, assume *nix | |
6046 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6047 | ;; | |
6048 | esac | |
6049 | ;; | |
6050 | * ) # unhandled hosts (and "normal" native builds) | |
6051 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6052 | ;; | |
6053 | esac | |
9c60689e | 6054 | |
a243b558 | 6055 | fi |
9c60689e | 6056 | |
a243b558 JF |
6057 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6059 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6060 | |
6061 | ||
6062 | ||
6063 | ||
6064 | ||
a243b558 JF |
6065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6066 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6067 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6068 | $as_echo_n "(cached) " >&6 | |
6069 | else | |
6070 | #assume ordinary cross tools, or native build. | |
6071 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6072 | case $host in | |
6073 | *-*-mingw* ) | |
6074 | case $build in | |
6075 | *-*-mingw* ) # actually msys | |
6076 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6077 | ;; | |
6078 | esac | |
6079 | ;; | |
6080 | esac | |
9c60689e | 6081 | |
a243b558 | 6082 | fi |
9c60689e | 6083 | |
a243b558 JF |
6084 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6086 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6087 | |
9c60689e | 6088 | |
9c60689e | 6089 | |
9c60689e DWT |
6090 | |
6091 | ||
a243b558 JF |
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6093 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6094 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6095 | $as_echo_n "(cached) " >&6 |
6096 | else | |
a243b558 JF |
6097 | lt_cv_ld_reload_flag='-r' |
6098 | fi | |
6099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6100 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6101 | reload_flag=$lt_cv_ld_reload_flag | |
6102 | case $reload_flag in | |
6103 | "" | " "*) ;; | |
6104 | *) reload_flag=" $reload_flag" ;; | |
6105 | esac | |
6106 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6107 | case $host_os in |
a243b558 JF |
6108 | cygwin* | mingw* | pw32* | cegcc*) |
6109 | if test "$GCC" != yes; then | |
6110 | reload_cmds=false | |
6111 | fi | |
6112 | ;; | |
6113 | darwin*) | |
6114 | if test "$GCC" = yes; then | |
6115 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6116 | else | |
6117 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6118 | fi | |
6119 | ;; | |
9c60689e DWT |
6120 | esac |
6121 | ||
9c60689e | 6122 | |
9c60689e | 6123 | |
9c60689e | 6124 | |
9c60689e | 6125 | |
9c60689e | 6126 | |
9c60689e | 6127 | |
9c60689e | 6128 | |
9c60689e | 6129 | |
a243b558 JF |
6130 | if test -n "$ac_tool_prefix"; then |
6131 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6132 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6134 | $as_echo_n "checking for $ac_word... " >&6; } | |
6135 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6136 | $as_echo_n "(cached) " >&6 | |
6137 | else | |
6138 | if test -n "$OBJDUMP"; then | |
6139 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6140 | else | |
6141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6142 | for as_dir in $PATH | |
6143 | do | |
6144 | IFS=$as_save_IFS | |
6145 | test -z "$as_dir" && as_dir=. | |
6146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6147 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6148 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6150 | break 2 | |
6151 | fi | |
6152 | done | |
6153 | done | |
6154 | IFS=$as_save_IFS | |
9c60689e | 6155 | |
a243b558 JF |
6156 | fi |
6157 | fi | |
6158 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6159 | if test -n "$OBJDUMP"; then | |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6161 | $as_echo "$OBJDUMP" >&6; } | |
6162 | else | |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6164 | $as_echo "no" >&6; } | |
6165 | fi | |
9c60689e | 6166 | |
9c60689e | 6167 | |
a243b558 JF |
6168 | fi |
6169 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6170 | ac_ct_OBJDUMP=$OBJDUMP | |
6171 | # Extract the first word of "objdump", so it can be a program name with args. | |
6172 | set dummy objdump; ac_word=$2 | |
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6174 | $as_echo_n "checking for $ac_word... " >&6; } | |
6175 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6176 | $as_echo_n "(cached) " >&6 | |
6177 | else | |
6178 | if test -n "$ac_ct_OBJDUMP"; then | |
6179 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6180 | else | |
6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6182 | for as_dir in $PATH | |
6183 | do | |
6184 | IFS=$as_save_IFS | |
6185 | test -z "$as_dir" && as_dir=. | |
6186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6188 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6190 | break 2 | |
9c60689e DWT |
6191 | fi |
6192 | done | |
a243b558 JF |
6193 | done |
6194 | IFS=$as_save_IFS | |
9c60689e DWT |
6195 | |
6196 | fi | |
9c60689e | 6197 | fi |
a243b558 JF |
6198 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6199 | if test -n "$ac_ct_OBJDUMP"; then | |
6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6201 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6202 | else |
a243b558 JF |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6204 | $as_echo "no" >&6; } | |
9c60689e DWT |
6205 | fi |
6206 | ||
a243b558 JF |
6207 | if test "x$ac_ct_OBJDUMP" = x; then |
6208 | OBJDUMP="false" | |
6209 | else | |
6210 | case $cross_compiling:$ac_tool_warned in | |
6211 | yes:) | |
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6213 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6214 | ac_tool_warned=yes ;; | |
6215 | esac | |
6216 | OBJDUMP=$ac_ct_OBJDUMP | |
6217 | fi | |
6218 | else | |
6219 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6220 | fi |
6221 | ||
a243b558 | 6222 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6223 | |
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
a243b558 JF |
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6233 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6234 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6235 | $as_echo_n "(cached) " >&6 | |
6236 | else | |
6237 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6238 | lt_cv_file_magic_test_file= | |
6239 | lt_cv_deplibs_check_method='unknown' | |
6240 | # Need to set the preceding variable on all platforms that support | |
6241 | # interlibrary dependencies. | |
6242 | # 'none' -- dependencies not supported. | |
6243 | # `unknown' -- same as none, but documents that we really don't know. | |
6244 | # 'pass_all' -- all dependencies passed with no checks. | |
6245 | # 'test_compile' -- check by making test program. | |
6246 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6247 | # which responds to the $file_magic_cmd with a given extended regex. | |
6248 | # If you have `file' or equivalent on your system and you're not sure | |
6249 | # whether `pass_all' will *always* work, you probably want this one. | |
9c60689e | 6250 | |
a243b558 JF |
6251 | case $host_os in |
6252 | aix[4-9]*) | |
6253 | lt_cv_deplibs_check_method=pass_all | |
6254 | ;; | |
9c60689e | 6255 | |
a243b558 JF |
6256 | beos*) |
6257 | lt_cv_deplibs_check_method=pass_all | |
6258 | ;; | |
9c60689e | 6259 | |
a243b558 JF |
6260 | bsdi[45]*) |
6261 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6262 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6263 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6264 | ;; | |
9c60689e | 6265 | |
a243b558 JF |
6266 | cygwin*) |
6267 | # func_win32_libid is a shell function defined in ltmain.sh | |
6268 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6269 | lt_cv_file_magic_cmd='func_win32_libid' | |
6270 | ;; | |
9c60689e | 6271 | |
a243b558 JF |
6272 | mingw* | pw32*) |
6273 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6274 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6275 | # unless we find 'file', for example because we are cross-compiling. | |
6276 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6277 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6278 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6279 | lt_cv_file_magic_cmd='func_win32_libid' | |
6280 | else | |
6281 | # Keep this pattern in sync with the one in func_win32_libid. | |
6282 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6283 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6284 | fi | |
6285 | ;; | |
9c60689e | 6286 | |
a243b558 JF |
6287 | cegcc*) |
6288 | # use the weaker test based on 'objdump'. See mingw*. | |
6289 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6290 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6291 | ;; | |
9c60689e | 6292 | |
a243b558 JF |
6293 | darwin* | rhapsody*) |
6294 | lt_cv_deplibs_check_method=pass_all | |
6295 | ;; | |
9c60689e | 6296 | |
a243b558 JF |
6297 | freebsd* | dragonfly*) |
6298 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6299 | case $host_cpu in | |
6300 | i*86 ) | |
6301 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6302 | # Let's accept both of them until this is cleared up. | |
6303 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6304 | lt_cv_file_magic_cmd=/usr/bin/file | |
6305 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6306 | ;; | |
6307 | esac | |
6308 | else | |
6309 | lt_cv_deplibs_check_method=pass_all | |
6310 | fi | |
6311 | ;; | |
9c60689e | 6312 | |
a243b558 JF |
6313 | gnu*) |
6314 | lt_cv_deplibs_check_method=pass_all | |
6315 | ;; | |
9c60689e | 6316 | |
a243b558 JF |
6317 | haiku*) |
6318 | lt_cv_deplibs_check_method=pass_all | |
6319 | ;; | |
9c60689e | 6320 | |
a243b558 JF |
6321 | hpux10.20* | hpux11*) |
6322 | lt_cv_file_magic_cmd=/usr/bin/file | |
6323 | case $host_cpu in | |
6324 | ia64*) | |
6325 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6326 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6327 | ;; | |
6328 | hppa*64*) | |
6329 | 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]' | |
6330 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6331 | ;; | |
6332 | *) | |
6333 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6334 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6335 | ;; | |
6336 | esac | |
6337 | ;; | |
9c60689e | 6338 | |
a243b558 JF |
6339 | interix[3-9]*) |
6340 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6341 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6342 | ;; | |
9c60689e | 6343 | |
a243b558 JF |
6344 | irix5* | irix6* | nonstopux*) |
6345 | case $LD in | |
6346 | *-32|*"-32 ") libmagic=32-bit;; | |
6347 | *-n32|*"-n32 ") libmagic=N32;; | |
6348 | *-64|*"-64 ") libmagic=64-bit;; | |
6349 | *) libmagic=never-match;; | |
6350 | esac | |
6351 | lt_cv_deplibs_check_method=pass_all | |
6352 | ;; | |
9c60689e | 6353 | |
a243b558 JF |
6354 | # This must be glibc/ELF. |
6355 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6356 | lt_cv_deplibs_check_method=pass_all | |
6357 | ;; | |
9c60689e | 6358 | |
a243b558 JF |
6359 | netbsd*) |
6360 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6361 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6362 | else | |
6363 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6364 | fi | |
6365 | ;; | |
9c60689e | 6366 | |
a243b558 JF |
6367 | newos6*) |
6368 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6369 | lt_cv_file_magic_cmd=/usr/bin/file | |
6370 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6371 | ;; | |
9c60689e | 6372 | |
a243b558 JF |
6373 | *nto* | *qnx*) |
6374 | lt_cv_deplibs_check_method=pass_all | |
6375 | ;; | |
9c60689e | 6376 | |
a243b558 JF |
6377 | openbsd*) |
6378 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6379 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6380 | else | |
6381 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6382 | fi | |
6383 | ;; | |
9c60689e | 6384 | |
a243b558 JF |
6385 | osf3* | osf4* | osf5*) |
6386 | lt_cv_deplibs_check_method=pass_all | |
6387 | ;; | |
9c60689e | 6388 | |
a243b558 JF |
6389 | rdos*) |
6390 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6391 | ;; |
a243b558 JF |
6392 | |
6393 | solaris*) | |
6394 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6395 | ;; |
6396 | ||
a243b558 JF |
6397 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6398 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6399 | ;; |
6400 | ||
a243b558 JF |
6401 | sysv4 | sysv4.3*) |
6402 | case $host_vendor in | |
6403 | motorola) | |
6404 | 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]' | |
6405 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6406 | ;; | |
6407 | ncr) | |
6408 | lt_cv_deplibs_check_method=pass_all | |
6409 | ;; | |
6410 | sequent) | |
6411 | lt_cv_file_magic_cmd='/bin/file' | |
6412 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6413 | ;; | |
6414 | sni) | |
6415 | lt_cv_file_magic_cmd='/bin/file' | |
6416 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6417 | lt_cv_file_magic_test_file=/lib/libc.so | |
6418 | ;; | |
6419 | siemens) | |
6420 | lt_cv_deplibs_check_method=pass_all | |
6421 | ;; | |
6422 | pc) | |
6423 | lt_cv_deplibs_check_method=pass_all | |
6424 | ;; | |
6425 | esac | |
6426 | ;; | |
9c60689e | 6427 | |
a243b558 JF |
6428 | tpf*) |
6429 | lt_cv_deplibs_check_method=pass_all | |
6430 | ;; | |
6431 | esac | |
9c60689e | 6432 | |
a243b558 JF |
6433 | fi |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6435 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6436 | |
a243b558 JF |
6437 | file_magic_glob= |
6438 | want_nocaseglob=no | |
6439 | if test "$build" = "$host"; then | |
6440 | case $host_os in | |
6441 | mingw* | pw32*) | |
6442 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6443 | want_nocaseglob=yes | |
6444 | else | |
6445 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6446 | fi | |
6447 | ;; | |
6448 | esac | |
9c60689e | 6449 | fi |
9c60689e | 6450 | |
a243b558 JF |
6451 | file_magic_cmd=$lt_cv_file_magic_cmd |
6452 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6453 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
9c60689e | 6474 | |
9c60689e | 6475 | |
ee134472 | 6476 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6477 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6478 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6480 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6481 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6482 | $as_echo_n "(cached) " >&6 |
6483 | else | |
a243b558 JF |
6484 | if test -n "$DLLTOOL"; then |
6485 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6486 | else |
6487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6488 | for as_dir in $PATH | |
6489 | do | |
6490 | IFS=$as_save_IFS | |
6491 | test -z "$as_dir" && as_dir=. | |
6492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6494 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6496 | break 2 | |
6497 | fi | |
6498 | done | |
6499 | done | |
6500 | IFS=$as_save_IFS | |
6501 | ||
6502 | fi | |
6503 | fi | |
a243b558 JF |
6504 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6505 | if test -n "$DLLTOOL"; then | |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6507 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6508 | else |
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6510 | $as_echo "no" >&6; } | |
6511 | fi | |
6512 | ||
6513 | ||
6514 | fi | |
a243b558 JF |
6515 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6516 | ac_ct_DLLTOOL=$DLLTOOL | |
6517 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6518 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6520 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6521 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6522 | $as_echo_n "(cached) " >&6 |
6523 | else | |
a243b558 JF |
6524 | if test -n "$ac_ct_DLLTOOL"; then |
6525 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6526 | else |
6527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6528 | for as_dir in $PATH | |
6529 | do | |
6530 | IFS=$as_save_IFS | |
6531 | test -z "$as_dir" && as_dir=. | |
6532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6534 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6536 | break 2 | |
6537 | fi | |
6538 | done | |
6539 | done | |
6540 | IFS=$as_save_IFS | |
6541 | ||
6542 | fi | |
6543 | fi | |
a243b558 JF |
6544 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6545 | if test -n "$ac_ct_DLLTOOL"; then | |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6547 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6548 | else |
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6550 | $as_echo "no" >&6; } | |
6551 | fi | |
6552 | ||
a243b558 JF |
6553 | if test "x$ac_ct_DLLTOOL" = x; then |
6554 | DLLTOOL="false" | |
ee134472 JF |
6555 | else |
6556 | case $cross_compiling:$ac_tool_warned in | |
6557 | yes:) | |
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6559 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6560 | ac_tool_warned=yes ;; | |
6561 | esac | |
a243b558 | 6562 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6563 | fi |
6564 | else | |
a243b558 | 6565 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6566 | fi |
6567 | ||
a243b558 JF |
6568 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6580 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6581 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6582 | $as_echo_n "(cached) " >&6 |
6583 | else | |
a243b558 JF |
6584 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6585 | ||
6586 | case $host_os in | |
6587 | cygwin* | mingw* | pw32* | cegcc*) | |
6588 | # two different shell functions defined in ltmain.sh | |
6589 | # decide which to use based on capabilities of $DLLTOOL | |
6590 | case `$DLLTOOL --help 2>&1` in | |
6591 | *--identify-strict*) | |
6592 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6593 | ;; | |
6594 | *) | |
6595 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6596 | ;; | |
6597 | esac | |
6598 | ;; | |
6599 | *) | |
6600 | # fallback: assume linklib IS sharedlib | |
6601 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6602 | ;; | |
6603 | esac | |
6604 | ||
ee134472 | 6605 | fi |
a243b558 JF |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6607 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6608 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6609 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6610 | |
6611 | ||
6612 | ||
6613 | ||
6614 | ||
9c60689e | 6615 | |
a243b558 JF |
6616 | |
6617 | if test -n "$ac_tool_prefix"; then | |
6618 | for ac_prog in ar | |
6619 | do | |
6620 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6621 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6623 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6624 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6625 | $as_echo_n "(cached) " >&6 |
6626 | else | |
a243b558 JF |
6627 | if test -n "$AR"; then |
6628 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6629 | else |
6630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6631 | for as_dir in $PATH | |
6632 | do | |
6633 | IFS=$as_save_IFS | |
6634 | test -z "$as_dir" && as_dir=. | |
6635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6637 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6639 | break 2 | |
6640 | fi | |
6641 | done | |
6642 | done | |
6643 | IFS=$as_save_IFS | |
6644 | ||
6645 | fi | |
6646 | fi | |
a243b558 JF |
6647 | AR=$ac_cv_prog_AR |
6648 | if test -n "$AR"; then | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6650 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6651 | else |
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6653 | $as_echo "no" >&6; } | |
6654 | fi | |
6655 | ||
6656 | ||
a243b558 JF |
6657 | test -n "$AR" && break |
6658 | done | |
9c60689e | 6659 | fi |
a243b558 JF |
6660 | if test -z "$AR"; then |
6661 | ac_ct_AR=$AR | |
6662 | for ac_prog in ar | |
6663 | do | |
6664 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6665 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6667 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6668 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6669 | $as_echo_n "(cached) " >&6 |
6670 | else | |
a243b558 JF |
6671 | if test -n "$ac_ct_AR"; then |
6672 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6673 | else |
6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6675 | for as_dir in $PATH | |
6676 | do | |
6677 | IFS=$as_save_IFS | |
6678 | test -z "$as_dir" && as_dir=. | |
6679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6681 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6683 | break 2 | |
6684 | fi | |
6685 | done | |
6686 | done | |
6687 | IFS=$as_save_IFS | |
6688 | ||
6689 | fi | |
6690 | fi | |
a243b558 JF |
6691 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6692 | if test -n "$ac_ct_AR"; then | |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6694 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6695 | else |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6697 | $as_echo "no" >&6; } | |
6698 | fi | |
6699 | ||
a243b558 JF |
6700 | |
6701 | test -n "$ac_ct_AR" && break | |
6702 | done | |
6703 | ||
6704 | if test "x$ac_ct_AR" = x; then | |
6705 | AR="false" | |
9c60689e DWT |
6706 | else |
6707 | case $cross_compiling:$ac_tool_warned in | |
6708 | yes:) | |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6710 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6711 | ac_tool_warned=yes ;; | |
6712 | esac | |
a243b558 | 6713 | AR=$ac_ct_AR |
9c60689e | 6714 | fi |
a243b558 JF |
6715 | fi |
6716 | ||
6717 | : ${AR=ar} | |
6718 | : ${AR_FLAGS=cru} | |
6719 | ||
6720 | ||
6721 | ||
6722 | ||
6723 | ||
6724 | ||
6725 | ||
6726 | ||
6727 | ||
6728 | ||
6729 | ||
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6731 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6732 | if ${lt_cv_ar_at_file+:} false; then : | |
6733 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6734 | else |
a243b558 JF |
6735 | lt_cv_ar_at_file=no |
6736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6737 | /* end confdefs.h. */ | |
6738 | ||
6739 | int | |
6740 | main () | |
6741 | { | |
6742 | ||
6743 | ; | |
6744 | return 0; | |
6745 | } | |
6746 | _ACEOF | |
6747 | if ac_fn_c_try_compile "$LINENO"; then : | |
6748 | echo conftest.$ac_objext > conftest.lst | |
6749 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6751 | (eval $lt_ar_try) 2>&5 | |
6752 | ac_status=$? | |
6753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6754 | test $ac_status = 0; } | |
6755 | if test "$ac_status" -eq 0; then | |
6756 | # Ensure the archiver fails upon bogus file names. | |
6757 | rm -f conftest.$ac_objext libconftest.a | |
6758 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6759 | (eval $lt_ar_try) 2>&5 | |
6760 | ac_status=$? | |
6761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6762 | test $ac_status = 0; } | |
6763 | if test "$ac_status" -ne 0; then | |
6764 | lt_cv_ar_at_file=@ | |
6765 | fi | |
6766 | fi | |
6767 | rm -f conftest.* libconftest.a | |
6768 | ||
9c60689e | 6769 | fi |
a243b558 | 6770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6771 | |
a243b558 JF |
6772 | fi |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6774 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6775 | ||
6776 | if test "x$lt_cv_ar_at_file" = xno; then | |
6777 | archiver_list_spec= | |
6778 | else | |
6779 | archiver_list_spec=$lt_cv_ar_at_file | |
6780 | fi | |
6781 | ||
6782 | ||
6783 | ||
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | if test -n "$ac_tool_prefix"; then | |
6789 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6790 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6792 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6793 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6794 | $as_echo_n "(cached) " >&6 |
6795 | else | |
a243b558 JF |
6796 | if test -n "$STRIP"; then |
6797 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6798 | else |
6799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6800 | for as_dir in $PATH | |
6801 | do | |
6802 | IFS=$as_save_IFS | |
6803 | test -z "$as_dir" && as_dir=. | |
6804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6806 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6808 | break 2 | |
6809 | fi | |
6810 | done | |
6811 | done | |
6812 | IFS=$as_save_IFS | |
6813 | ||
6814 | fi | |
6815 | fi | |
a243b558 JF |
6816 | STRIP=$ac_cv_prog_STRIP |
6817 | if test -n "$STRIP"; then | |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6819 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6820 | else |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6822 | $as_echo "no" >&6; } | |
6823 | fi | |
6824 | ||
6825 | ||
6826 | fi | |
a243b558 JF |
6827 | if test -z "$ac_cv_prog_STRIP"; then |
6828 | ac_ct_STRIP=$STRIP | |
6829 | # Extract the first word of "strip", so it can be a program name with args. | |
6830 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6832 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6833 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6834 | $as_echo_n "(cached) " >&6 |
6835 | else | |
a243b558 JF |
6836 | if test -n "$ac_ct_STRIP"; then |
6837 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6838 | else |
6839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6840 | for as_dir in $PATH | |
6841 | do | |
6842 | IFS=$as_save_IFS | |
6843 | test -z "$as_dir" && as_dir=. | |
6844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6846 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6848 | break 2 | |
6849 | fi | |
6850 | done | |
6851 | done | |
6852 | IFS=$as_save_IFS | |
6853 | ||
6854 | fi | |
6855 | fi | |
a243b558 JF |
6856 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6857 | if test -n "$ac_ct_STRIP"; then | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6859 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6860 | else |
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6862 | $as_echo "no" >&6; } | |
6863 | fi | |
6864 | ||
a243b558 JF |
6865 | if test "x$ac_ct_STRIP" = x; then |
6866 | STRIP=":" | |
9c60689e DWT |
6867 | else |
6868 | case $cross_compiling:$ac_tool_warned in | |
6869 | yes:) | |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6871 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6872 | ac_tool_warned=yes ;; | |
6873 | esac | |
a243b558 | 6874 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6875 | fi |
6876 | else | |
a243b558 | 6877 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6878 | fi |
6879 | ||
a243b558 JF |
6880 | test -z "$STRIP" && STRIP=: |
6881 | ||
6882 | ||
6883 | ||
6884 | ||
6885 | ||
6886 | ||
6887 | if test -n "$ac_tool_prefix"; then | |
6888 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6889 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6891 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6892 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
6893 | $as_echo_n "(cached) " >&6 |
6894 | else | |
a243b558 JF |
6895 | if test -n "$RANLIB"; then |
6896 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
6897 | else |
6898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6899 | for as_dir in $PATH | |
6900 | do | |
6901 | IFS=$as_save_IFS | |
6902 | test -z "$as_dir" && as_dir=. | |
6903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6905 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
6906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6907 | break 2 | |
6908 | fi | |
6909 | done | |
6910 | done | |
6911 | IFS=$as_save_IFS | |
6912 | ||
6913 | fi | |
6914 | fi | |
a243b558 JF |
6915 | RANLIB=$ac_cv_prog_RANLIB |
6916 | if test -n "$RANLIB"; then | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6918 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
6919 | else |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6921 | $as_echo "no" >&6; } | |
6922 | fi | |
6923 | ||
6924 | ||
6925 | fi | |
a243b558 JF |
6926 | if test -z "$ac_cv_prog_RANLIB"; then |
6927 | ac_ct_RANLIB=$RANLIB | |
6928 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6929 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6931 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6932 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
6933 | $as_echo_n "(cached) " >&6 |
6934 | else | |
a243b558 JF |
6935 | if test -n "$ac_ct_RANLIB"; then |
6936 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
6937 | else |
6938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6939 | for as_dir in $PATH | |
6940 | do | |
6941 | IFS=$as_save_IFS | |
6942 | test -z "$as_dir" && as_dir=. | |
6943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6945 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
6946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6947 | break 2 | |
6948 | fi | |
6949 | done | |
6950 | done | |
6951 | IFS=$as_save_IFS | |
6952 | ||
6953 | fi | |
6954 | fi | |
a243b558 JF |
6955 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6956 | if test -n "$ac_ct_RANLIB"; then | |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6958 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
6959 | else |
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6961 | $as_echo "no" >&6; } | |
6962 | fi | |
6963 | ||
a243b558 JF |
6964 | if test "x$ac_ct_RANLIB" = x; then |
6965 | RANLIB=":" | |
9c60689e DWT |
6966 | else |
6967 | case $cross_compiling:$ac_tool_warned in | |
6968 | yes:) | |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6971 | ac_tool_warned=yes ;; | |
6972 | esac | |
a243b558 | 6973 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
6974 | fi |
6975 | else | |
a243b558 | 6976 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
6977 | fi |
6978 | ||
a243b558 JF |
6979 | test -z "$RANLIB" && RANLIB=: |
6980 | ||
6981 | ||
9c60689e | 6982 | |
9c60689e DWT |
6983 | |
6984 | ||
a243b558 JF |
6985 | |
6986 | # Determine commands to create old-style static archives. | |
6987 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6988 | old_postinstall_cmds='chmod 644 $oldlib' | |
6989 | old_postuninstall_cmds= | |
6990 | ||
6991 | if test -n "$RANLIB"; then | |
6992 | case $host_os in | |
6993 | openbsd*) | |
6994 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6995 | ;; | |
6996 | *) | |
6997 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6998 | ;; | |
6999 | esac | |
7000 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
7001 | fi |
7002 | ||
a243b558 JF |
7003 | case $host_os in |
7004 | darwin*) | |
7005 | lock_old_archive_extraction=yes ;; | |
7006 | *) | |
7007 | lock_old_archive_extraction=no ;; | |
9c60689e | 7008 | esac |
9c60689e | 7009 | |
9c60689e | 7010 | |
9c60689e DWT |
7011 | |
7012 | ||
9c60689e | 7013 | |
9c60689e | 7014 | |
9c60689e DWT |
7015 | |
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | ||
7022 | ||
7023 | ||
7024 | ||
7025 | ||
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
53ba6704 | 7042 | |
9c60689e | 7043 | |
9c60689e | 7044 | |
9c60689e | 7045 | |
53ba6704 | 7046 | |
a243b558 JF |
7047 | |
7048 | # If no C compiler was specified, use CC. | |
7049 | LTCC=${LTCC-"$CC"} | |
7050 | ||
7051 | # If no C compiler flags were specified, use CFLAGS. | |
7052 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7053 | ||
7054 | # Allow CC to be a program name with arguments. | |
7055 | compiler=$CC | |
7056 | ||
7057 | ||
7058 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7060 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7061 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7062 | $as_echo_n "(cached) " >&6 |
7063 | else | |
ee134472 | 7064 | |
a243b558 JF |
7065 | # These are sane defaults that work on at least a few old systems. |
7066 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7067 | |
a243b558 JF |
7068 | # Character class describing NM global symbol codes. |
7069 | symcode='[BCDEGRST]' | |
9c60689e | 7070 | |
a243b558 JF |
7071 | # Regexp to match symbols that can be accessed directly from C. |
7072 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7073 | |
a243b558 JF |
7074 | # Define system-specific variables. |
7075 | case $host_os in | |
7076 | aix*) | |
7077 | symcode='[BCDT]' | |
7078 | ;; | |
7079 | cygwin* | mingw* | pw32* | cegcc*) | |
7080 | symcode='[ABCDGISTW]' | |
7081 | ;; | |
7082 | hpux*) | |
7083 | if test "$host_cpu" = ia64; then | |
7084 | symcode='[ABCDEGRST]' | |
7085 | fi | |
7086 | ;; | |
7087 | irix* | nonstopux*) | |
7088 | symcode='[BCDEGRST]' | |
7089 | ;; | |
7090 | osf*) | |
7091 | symcode='[BCDEGQRST]' | |
7092 | ;; | |
7093 | solaris*) | |
7094 | symcode='[BDRT]' | |
7095 | ;; | |
7096 | sco3.2v5*) | |
7097 | symcode='[DT]' | |
7098 | ;; | |
7099 | sysv4.2uw2*) | |
7100 | symcode='[DT]' | |
7101 | ;; | |
7102 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7103 | symcode='[ABDT]' | |
7104 | ;; | |
7105 | sysv4) | |
7106 | symcode='[DFNSTU]' | |
7107 | ;; | |
7108 | esac | |
9c60689e | 7109 | |
a243b558 JF |
7110 | # If we're using GNU nm, then use its standard symbol codes. |
7111 | case `$NM -V 2>&1` in | |
7112 | *GNU* | *'with BFD'*) | |
7113 | symcode='[ABCDGIRSTW]' ;; | |
7114 | esac | |
9c60689e | 7115 | |
a243b558 JF |
7116 | # Transform an extracted symbol line into a proper C declaration. |
7117 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7118 | # so use this general approach. | |
7119 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7120 | |
a243b558 JF |
7121 | # Transform an extracted symbol line into symbol name and symbol address |
7122 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7123 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
9c60689e | 7124 | |
a243b558 JF |
7125 | # Handle CRLF in mingw tool chain |
7126 | opt_cr= | |
7127 | case $build_os in | |
7128 | mingw*) | |
7129 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7130 | ;; | |
7131 | esac | |
9c60689e | 7132 | |
a243b558 JF |
7133 | # Try without a prefix underscore, then with it. |
7134 | for ac_symprfx in "" "_"; do | |
9c60689e | 7135 | |
a243b558 JF |
7136 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7137 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7138 | |
a243b558 JF |
7139 | # Write the raw and C identifiers. |
7140 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7141 | # Fake it for dumpbin and say T for any non-static function | |
7142 | # and D for any global variable. | |
7143 | # Also find C++ and __fastcall symbols from MSVC++, | |
7144 | # which start with @ or ?. | |
7145 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7146 | " {last_section=section; section=\$ 3};"\ | |
7147 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7148 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7149 | " \$ 0!~/External *\|/{next};"\ | |
7150 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7151 | " {if(hide[section]) next};"\ | |
7152 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7153 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7154 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7155 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7156 | " ' prfx=^$ac_symprfx" | |
7157 | else | |
7158 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7159 | fi | |
7160 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7161 | |
a243b558 JF |
7162 | # Check to see that the pipe works correctly. |
7163 | pipe_works=no | |
9c60689e | 7164 | |
a243b558 JF |
7165 | rm -rf conftest* |
7166 | cat > conftest.$ac_ext <<_LT_EOF | |
7167 | #ifdef __cplusplus | |
7168 | extern "C" { | |
7169 | #endif | |
7170 | char nm_test_var; | |
7171 | void nm_test_func(void); | |
7172 | void nm_test_func(void){} | |
7173 | #ifdef __cplusplus | |
7174 | } | |
7175 | #endif | |
7176 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7177 | _LT_EOF | |
9c60689e | 7178 | |
a243b558 JF |
7179 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7180 | (eval $ac_compile) 2>&5 | |
7181 | ac_status=$? | |
7182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7183 | test $ac_status = 0; }; then | |
7184 | # Now try to grab the symbols. | |
7185 | nlist=conftest.nm | |
7186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7187 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7188 | ac_status=$? | |
7189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7190 | test $ac_status = 0; } && test -s "$nlist"; then | |
7191 | # Try sorting and uniquifying the output. | |
7192 | if sort "$nlist" | uniq > "$nlist"T; then | |
7193 | mv -f "$nlist"T "$nlist" | |
7194 | else | |
7195 | rm -f "$nlist"T | |
7196 | fi | |
9c60689e | 7197 | |
a243b558 JF |
7198 | # Make sure that we snagged all the symbols we need. |
7199 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7200 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7201 | cat <<_LT_EOF > conftest.$ac_ext | |
7202 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7203 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7204 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7205 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7206 | # define LT_DLSYM_CONST | |
7207 | #elif defined(__osf__) | |
7208 | /* This system does not cope well with relocations in const data. */ | |
7209 | # define LT_DLSYM_CONST | |
7210 | #else | |
7211 | # define LT_DLSYM_CONST const | |
7212 | #endif | |
9c60689e | 7213 | |
a243b558 JF |
7214 | #ifdef __cplusplus |
7215 | extern "C" { | |
7216 | #endif | |
9c60689e | 7217 | |
a243b558 JF |
7218 | _LT_EOF |
7219 | # Now generate the symbol file. | |
7220 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7221 | |
a243b558 | 7222 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7223 | |
a243b558 JF |
7224 | /* The mapping between symbol names and symbols. */ |
7225 | LT_DLSYM_CONST struct { | |
7226 | const char *name; | |
7227 | void *address; | |
7228 | } | |
7229 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7230 | { | |
7231 | { "@PROGRAM@", (void *) 0 }, | |
7232 | _LT_EOF | |
7233 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7234 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7235 | {0, (void *) 0} | |
7236 | }; | |
9c60689e | 7237 | |
a243b558 JF |
7238 | /* This works around a problem in FreeBSD linker */ |
7239 | #ifdef FREEBSD_WORKAROUND | |
7240 | static const void *lt_preloaded_setup() { | |
7241 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7242 | } | |
7243 | #endif | |
9c60689e | 7244 | |
a243b558 JF |
7245 | #ifdef __cplusplus |
7246 | } | |
7247 | #endif | |
7248 | _LT_EOF | |
7249 | # Now try linking the two files. | |
7250 | mv conftest.$ac_objext conftstm.$ac_objext | |
7251 | lt_globsym_save_LIBS=$LIBS | |
7252 | lt_globsym_save_CFLAGS=$CFLAGS | |
7253 | LIBS="conftstm.$ac_objext" | |
7254 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7255 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7256 | (eval $ac_link) 2>&5 | |
7257 | ac_status=$? | |
7258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7259 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7260 | pipe_works=yes | |
7261 | fi | |
7262 | LIBS=$lt_globsym_save_LIBS | |
7263 | CFLAGS=$lt_globsym_save_CFLAGS | |
7264 | else | |
7265 | echo "cannot find nm_test_func in $nlist" >&5 | |
7266 | fi | |
7267 | else | |
7268 | echo "cannot find nm_test_var in $nlist" >&5 | |
7269 | fi | |
7270 | else | |
7271 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7272 | fi | |
7273 | else | |
7274 | echo "$progname: failed program was:" >&5 | |
7275 | cat conftest.$ac_ext >&5 | |
7276 | fi | |
7277 | rm -rf conftest* conftst* | |
9c60689e | 7278 | |
a243b558 JF |
7279 | # Do not use the global_symbol_pipe unless it works. |
7280 | if test "$pipe_works" = yes; then | |
7281 | break | |
7282 | else | |
7283 | lt_cv_sys_global_symbol_pipe= | |
7284 | fi | |
7285 | done | |
9c60689e | 7286 | |
9c60689e | 7287 | fi |
9c60689e | 7288 | |
a243b558 JF |
7289 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7290 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7291 | fi |
a243b558 JF |
7292 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7294 | $as_echo "failed" >&6; } | |
9c60689e | 7295 | else |
a243b558 JF |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7297 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7298 | fi |
7299 | ||
a243b558 JF |
7300 | # Response file support. |
7301 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7302 | nm_file_list_spec='@' | |
7303 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7304 | nm_file_list_spec='@' | |
9c60689e | 7305 | fi |
9c60689e | 7306 | |
9c60689e | 7307 | |
9c60689e | 7308 | |
9c60689e | 7309 | |
9c60689e | 7310 | |
9c60689e DWT |
7311 | |
7312 | ||
9c60689e | 7313 | |
9c60689e | 7314 | |
9c60689e DWT |
7315 | |
7316 | ||
7317 | ||
ee134472 JF |
7318 | |
7319 | ||
9c60689e DWT |
7320 | |
7321 | ||
7322 | ||
7323 | ||
7324 | ||
7325 | ||
7326 | ||
7327 | ||
7328 | ||
549f29b5 | 7329 | |
549f29b5 DWT |
7330 | |
7331 | ||
549f29b5 | 7332 | |
a243b558 JF |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7334 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7335 | |
a243b558 JF |
7336 | # Check whether --with-sysroot was given. |
7337 | if test "${with_sysroot+set}" = set; then : | |
7338 | withval=$with_sysroot; | |
9c60689e | 7339 | else |
a243b558 | 7340 | with_sysroot=no |
9c60689e DWT |
7341 | fi |
7342 | ||
7343 | ||
a243b558 JF |
7344 | lt_sysroot= |
7345 | case ${with_sysroot} in #( | |
7346 | yes) | |
7347 | if test "$GCC" = yes; then | |
7348 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7349 | fi | |
7350 | ;; #( | |
7351 | /*) | |
7352 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7353 | ;; #( | |
7354 | no|'') | |
7355 | ;; #( | |
7356 | *) | |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7358 | $as_echo "${with_sysroot}" >&6; } | |
7359 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7360 | ;; | |
7361 | esac | |
9c60689e | 7362 | |
a243b558 JF |
7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7364 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7365 | |
7366 | ||
7367 | ||
7368 | ||
7369 | ||
a243b558 JF |
7370 | # Check whether --enable-libtool-lock was given. |
7371 | if test "${enable_libtool_lock+set}" = set; then : | |
7372 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7373 | fi |
7374 | ||
a243b558 | 7375 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
9c60689e | 7376 | |
a243b558 JF |
7377 | # Some flags need to be propagated to the compiler or linker for good |
7378 | # libtool support. | |
7379 | case $host in | |
7380 | ia64-*-hpux*) | |
7381 | # Find out which ABI we are using. | |
7382 | echo 'int i;' > conftest.$ac_ext | |
7383 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7384 | (eval $ac_compile) 2>&5 | |
7385 | ac_status=$? | |
7386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7387 | test $ac_status = 0; }; then | |
7388 | case `/usr/bin/file conftest.$ac_objext` in | |
7389 | *ELF-32*) | |
7390 | HPUX_IA64_MODE="32" | |
7391 | ;; | |
7392 | *ELF-64*) | |
7393 | HPUX_IA64_MODE="64" | |
7394 | ;; | |
7395 | esac | |
7396 | fi | |
7397 | rm -rf conftest* | |
7398 | ;; | |
7399 | *-*-irix6*) | |
7400 | # Find out which ABI we are using. | |
7401 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7402 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7403 | (eval $ac_compile) 2>&5 | |
7404 | ac_status=$? | |
7405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7406 | test $ac_status = 0; }; then | |
7407 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7408 | case `/usr/bin/file conftest.$ac_objext` in | |
7409 | *32-bit*) | |
7410 | LD="${LD-ld} -melf32bsmip" | |
7411 | ;; | |
7412 | *N32*) | |
7413 | LD="${LD-ld} -melf32bmipn32" | |
7414 | ;; | |
7415 | *64-bit*) | |
7416 | LD="${LD-ld} -melf64bmip" | |
7417 | ;; | |
7418 | esac | |
7419 | else | |
7420 | case `/usr/bin/file conftest.$ac_objext` in | |
7421 | *32-bit*) | |
7422 | LD="${LD-ld} -32" | |
7423 | ;; | |
7424 | *N32*) | |
7425 | LD="${LD-ld} -n32" | |
7426 | ;; | |
7427 | *64-bit*) | |
7428 | LD="${LD-ld} -64" | |
7429 | ;; | |
7430 | esac | |
7431 | fi | |
7432 | fi | |
7433 | rm -rf conftest* | |
7434 | ;; | |
9c60689e | 7435 | |
a243b558 JF |
7436 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7437 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7438 | # Find out which ABI we are using. | |
7439 | echo 'int i;' > conftest.$ac_ext | |
7440 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7441 | (eval $ac_compile) 2>&5 | |
7442 | ac_status=$? | |
7443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7444 | test $ac_status = 0; }; then | |
7445 | case `/usr/bin/file conftest.o` in | |
7446 | *32-bit*) | |
7447 | case $host in | |
7448 | x86_64-*kfreebsd*-gnu) | |
7449 | LD="${LD-ld} -m elf_i386_fbsd" | |
7450 | ;; | |
7451 | x86_64-*linux*) | |
7452 | LD="${LD-ld} -m elf_i386" | |
7453 | ;; | |
7454 | ppc64-*linux*|powerpc64-*linux*) | |
7455 | LD="${LD-ld} -m elf32ppclinux" | |
7456 | ;; | |
7457 | s390x-*linux*) | |
7458 | LD="${LD-ld} -m elf_s390" | |
7459 | ;; | |
7460 | sparc64-*linux*) | |
7461 | LD="${LD-ld} -m elf32_sparc" | |
7462 | ;; | |
7463 | esac | |
7464 | ;; | |
7465 | *64-bit*) | |
7466 | case $host in | |
7467 | x86_64-*kfreebsd*-gnu) | |
7468 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7469 | ;; | |
7470 | x86_64-*linux*) | |
7471 | LD="${LD-ld} -m elf_x86_64" | |
7472 | ;; | |
7473 | ppc*-*linux*|powerpc*-*linux*) | |
7474 | LD="${LD-ld} -m elf64ppc" | |
7475 | ;; | |
7476 | s390*-*linux*|s390*-*tpf*) | |
7477 | LD="${LD-ld} -m elf64_s390" | |
7478 | ;; | |
7479 | sparc*-*linux*) | |
7480 | LD="${LD-ld} -m elf64_sparc" | |
7481 | ;; | |
7482 | esac | |
7483 | ;; | |
7484 | esac | |
7485 | fi | |
7486 | rm -rf conftest* | |
7487 | ;; | |
9c60689e | 7488 | |
a243b558 JF |
7489 | *-*-sco3.2v5*) |
7490 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7491 | SAVE_CFLAGS="$CFLAGS" | |
7492 | CFLAGS="$CFLAGS -belf" | |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7494 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7495 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7496 | $as_echo_n "(cached) " >&6 | |
7497 | else | |
7498 | ac_ext=c | |
7499 | ac_cpp='$CPP $CPPFLAGS' | |
7500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7503 | |
a243b558 JF |
7504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7505 | /* end confdefs.h. */ | |
9c60689e | 7506 | |
a243b558 JF |
7507 | int |
7508 | main () | |
7509 | { | |
9c60689e | 7510 | |
a243b558 JF |
7511 | ; |
7512 | return 0; | |
7513 | } | |
7514 | _ACEOF | |
7515 | if ac_fn_c_try_link "$LINENO"; then : | |
7516 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7517 | else |
a243b558 | 7518 | lt_cv_cc_needs_belf=no |
9c60689e | 7519 | fi |
a243b558 JF |
7520 | rm -f core conftest.err conftest.$ac_objext \ |
7521 | conftest$ac_exeext conftest.$ac_ext | |
7522 | ac_ext=c | |
7523 | ac_cpp='$CPP $CPPFLAGS' | |
7524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7527 | |
a243b558 JF |
7528 | fi |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7530 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7531 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7532 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7533 | CFLAGS="$SAVE_CFLAGS" | |
7534 | fi | |
7535 | ;; | |
7536 | *-*solaris*) | |
7537 | # Find out which ABI we are using. | |
7538 | echo 'int i;' > conftest.$ac_ext | |
7539 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7540 | (eval $ac_compile) 2>&5 | |
7541 | ac_status=$? | |
7542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7543 | test $ac_status = 0; }; then | |
7544 | case `/usr/bin/file conftest.o` in | |
7545 | *64-bit*) | |
7546 | case $lt_cv_prog_gnu_ld in | |
7547 | yes*) | |
7548 | case $host in | |
7549 | i?86-*-solaris*) | |
7550 | LD="${LD-ld} -m elf_x86_64" | |
7551 | ;; | |
7552 | sparc*-*-solaris*) | |
7553 | LD="${LD-ld} -m elf64_sparc" | |
7554 | ;; | |
7555 | esac | |
7556 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7557 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7558 | LD="${LD-ld}_sol2" | |
7559 | fi | |
7560 | ;; | |
7561 | *) | |
7562 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7563 | LD="${LD-ld} -64" | |
7564 | fi | |
7565 | ;; | |
7566 | esac | |
7567 | ;; | |
7568 | esac | |
7569 | fi | |
7570 | rm -rf conftest* | |
7571 | ;; | |
7572 | esac | |
9c60689e | 7573 | |
a243b558 | 7574 | need_locks="$enable_libtool_lock" |
9c60689e | 7575 | |
a243b558 JF |
7576 | if test -n "$ac_tool_prefix"; then |
7577 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7578 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7580 | $as_echo_n "checking for $ac_word... " >&6; } | |
7581 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7582 | $as_echo_n "(cached) " >&6 | |
7583 | else | |
7584 | if test -n "$MANIFEST_TOOL"; then | |
7585 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7586 | else | |
7587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7588 | for as_dir in $PATH | |
7589 | do | |
7590 | IFS=$as_save_IFS | |
7591 | test -z "$as_dir" && as_dir=. | |
7592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7594 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7596 | break 2 | |
7597 | fi | |
7598 | done | |
7599 | done | |
7600 | IFS=$as_save_IFS | |
9c60689e | 7601 | |
a243b558 JF |
7602 | fi |
7603 | fi | |
7604 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7605 | if test -n "$MANIFEST_TOOL"; then | |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7607 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7608 | else | |
7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7610 | $as_echo "no" >&6; } | |
7611 | fi | |
9c60689e DWT |
7612 | |
7613 | ||
a243b558 JF |
7614 | fi |
7615 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7616 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7617 | # Extract the first word of "mt", so it can be a program name with args. | |
7618 | set dummy mt; ac_word=$2 | |
7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7620 | $as_echo_n "checking for $ac_word... " >&6; } | |
7621 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7622 | $as_echo_n "(cached) " >&6 | |
7623 | else | |
7624 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7625 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7626 | else | |
7627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7628 | for as_dir in $PATH | |
7629 | do | |
7630 | IFS=$as_save_IFS | |
7631 | test -z "$as_dir" && as_dir=. | |
7632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7634 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7636 | break 2 | |
7637 | fi | |
7638 | done | |
7639 | done | |
7640 | IFS=$as_save_IFS | |
9c60689e | 7641 | |
a243b558 JF |
7642 | fi |
7643 | fi | |
7644 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7645 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7647 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7648 | else | |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7650 | $as_echo "no" >&6; } | |
7651 | fi | |
9c60689e | 7652 | |
a243b558 JF |
7653 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7654 | MANIFEST_TOOL=":" | |
7655 | else | |
7656 | case $cross_compiling:$ac_tool_warned in | |
7657 | yes:) | |
7658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7660 | ac_tool_warned=yes ;; | |
7661 | esac | |
7662 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7663 | fi | |
7664 | else | |
7665 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7666 | fi | |
9c60689e | 7667 | |
a243b558 JF |
7668 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7670 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7671 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7672 | $as_echo_n "(cached) " >&6 | |
7673 | else | |
7674 | lt_cv_path_mainfest_tool=no | |
7675 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7676 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7677 | cat conftest.err >&5 | |
7678 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7679 | lt_cv_path_mainfest_tool=yes | |
7680 | fi | |
7681 | rm -rf conftest* | |
7682 | fi | |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7684 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7685 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7686 | MANIFEST_TOOL=: | |
7687 | fi | |
9c60689e DWT |
7688 | |
7689 | ||
7690 | ||
7691 | ||
7692 | ||
7693 | ||
a243b558 JF |
7694 | case $host_os in |
7695 | rhapsody* | darwin*) | |
7696 | if test -n "$ac_tool_prefix"; then | |
7697 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7698 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7700 | $as_echo_n "checking for $ac_word... " >&6; } | |
7701 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7702 | $as_echo_n "(cached) " >&6 | |
7703 | else | |
7704 | if test -n "$DSYMUTIL"; then | |
7705 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7706 | else | |
7707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7708 | for as_dir in $PATH | |
7709 | do | |
7710 | IFS=$as_save_IFS | |
7711 | test -z "$as_dir" && as_dir=. | |
7712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7714 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7716 | break 2 | |
7717 | fi | |
7718 | done | |
7719 | done | |
7720 | IFS=$as_save_IFS | |
9c60689e | 7721 | |
a243b558 JF |
7722 | fi |
7723 | fi | |
7724 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7725 | if test -n "$DSYMUTIL"; then | |
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7727 | $as_echo "$DSYMUTIL" >&6; } | |
7728 | else | |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7730 | $as_echo "no" >&6; } | |
7731 | fi | |
9c60689e DWT |
7732 | |
7733 | ||
9c60689e | 7734 | fi |
a243b558 JF |
7735 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7736 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7737 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7738 | set dummy dsymutil; ac_word=$2 | |
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7740 | $as_echo_n "checking for $ac_word... " >&6; } | |
7741 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
7742 | $as_echo_n "(cached) " >&6 |
7743 | else | |
a243b558 JF |
7744 | if test -n "$ac_ct_DSYMUTIL"; then |
7745 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 7746 | else |
a243b558 JF |
7747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7748 | for as_dir in $PATH | |
7749 | do | |
7750 | IFS=$as_save_IFS | |
7751 | test -z "$as_dir" && as_dir=. | |
7752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7754 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7756 | break 2 | |
7757 | fi | |
7758 | done | |
7759 | done | |
7760 | IFS=$as_save_IFS | |
7761 | ||
9c60689e | 7762 | fi |
9c60689e | 7763 | fi |
a243b558 JF |
7764 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7765 | if test -n "$ac_ct_DSYMUTIL"; then | |
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7767 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7768 | else | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7770 | $as_echo "no" >&6; } | |
7771 | fi | |
9c60689e | 7772 | |
a243b558 JF |
7773 | if test "x$ac_ct_DSYMUTIL" = x; then |
7774 | DSYMUTIL=":" | |
7775 | else | |
7776 | case $cross_compiling:$ac_tool_warned in | |
7777 | yes:) | |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7779 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7780 | ac_tool_warned=yes ;; | |
9c60689e | 7781 | esac |
a243b558 JF |
7782 | DSYMUTIL=$ac_ct_DSYMUTIL |
7783 | fi | |
7784 | else | |
7785 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7786 | fi | |
9c60689e | 7787 | |
a243b558 JF |
7788 | if test -n "$ac_tool_prefix"; then |
7789 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7790 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7792 | $as_echo_n "checking for $ac_word... " >&6; } | |
7793 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
7794 | $as_echo_n "(cached) " >&6 |
7795 | else | |
a243b558 JF |
7796 | if test -n "$NMEDIT"; then |
7797 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7798 | else | |
7799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7800 | for as_dir in $PATH | |
7801 | do | |
7802 | IFS=$as_save_IFS | |
7803 | test -z "$as_dir" && as_dir=. | |
7804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7806 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7808 | break 2 | |
7809 | fi | |
7810 | done | |
9c60689e | 7811 | done |
a243b558 | 7812 | IFS=$as_save_IFS |
9c60689e | 7813 | |
a243b558 JF |
7814 | fi |
7815 | fi | |
7816 | NMEDIT=$ac_cv_prog_NMEDIT | |
7817 | if test -n "$NMEDIT"; then | |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7819 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
7820 | else |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7822 | $as_echo "no" >&6; } | |
7823 | fi | |
7824 | ||
7825 | ||
a243b558 JF |
7826 | fi |
7827 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7828 | ac_ct_NMEDIT=$NMEDIT | |
7829 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7830 | set dummy nmedit; ac_word=$2 | |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7832 | $as_echo_n "checking for $ac_word... " >&6; } | |
7833 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
7834 | $as_echo_n "(cached) " >&6 |
7835 | else | |
a243b558 JF |
7836 | if test -n "$ac_ct_NMEDIT"; then |
7837 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7838 | else | |
7839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7840 | for as_dir in $PATH | |
7841 | do | |
7842 | IFS=$as_save_IFS | |
7843 | test -z "$as_dir" && as_dir=. | |
7844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7846 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7848 | break 2 | |
7849 | fi | |
7850 | done | |
9c60689e | 7851 | done |
a243b558 | 7852 | IFS=$as_save_IFS |
9c60689e | 7853 | |
a243b558 JF |
7854 | fi |
7855 | fi | |
7856 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7857 | if test -n "$ac_ct_NMEDIT"; then | |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7859 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
7860 | else |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7862 | $as_echo "no" >&6; } | |
7863 | fi | |
7864 | ||
a243b558 JF |
7865 | if test "x$ac_ct_NMEDIT" = x; then |
7866 | NMEDIT=":" | |
9c60689e | 7867 | else |
a243b558 JF |
7868 | case $cross_compiling:$ac_tool_warned in |
7869 | yes:) | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7871 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7872 | ac_tool_warned=yes ;; | |
7873 | esac | |
7874 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 7875 | fi |
a243b558 JF |
7876 | else |
7877 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
7878 | fi |
7879 | ||
a243b558 JF |
7880 | if test -n "$ac_tool_prefix"; then |
7881 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7882 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7884 | $as_echo_n "checking for $ac_word... " >&6; } | |
7885 | if ${ac_cv_prog_LIPO+:} false; then : | |
7886 | $as_echo_n "(cached) " >&6 | |
7887 | else | |
7888 | if test -n "$LIPO"; then | |
7889 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7890 | else | |
7891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7892 | for as_dir in $PATH | |
7893 | do | |
7894 | IFS=$as_save_IFS | |
7895 | test -z "$as_dir" && as_dir=. | |
7896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7898 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7900 | break 2 | |
7901 | fi | |
7902 | done | |
7903 | done | |
7904 | IFS=$as_save_IFS | |
9c60689e | 7905 | |
a243b558 JF |
7906 | fi |
7907 | fi | |
7908 | LIPO=$ac_cv_prog_LIPO | |
7909 | if test -n "$LIPO"; then | |
7910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7911 | $as_echo "$LIPO" >&6; } | |
7912 | else | |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7914 | $as_echo "no" >&6; } | |
7915 | fi | |
9c60689e | 7916 | |
9c60689e | 7917 | |
a243b558 JF |
7918 | fi |
7919 | if test -z "$ac_cv_prog_LIPO"; then | |
7920 | ac_ct_LIPO=$LIPO | |
7921 | # Extract the first word of "lipo", so it can be a program name with args. | |
7922 | set dummy lipo; ac_word=$2 | |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7924 | $as_echo_n "checking for $ac_word... " >&6; } | |
7925 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
7926 | $as_echo_n "(cached) " >&6 |
7927 | else | |
a243b558 JF |
7928 | if test -n "$ac_ct_LIPO"; then |
7929 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7930 | else | |
7931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7932 | for as_dir in $PATH | |
7933 | do | |
7934 | IFS=$as_save_IFS | |
7935 | test -z "$as_dir" && as_dir=. | |
7936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7938 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7940 | break 2 | |
7941 | fi | |
7942 | done | |
7943 | done | |
7944 | IFS=$as_save_IFS | |
9c60689e DWT |
7945 | |
7946 | fi | |
a243b558 JF |
7947 | fi |
7948 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7949 | if test -n "$ac_ct_LIPO"; then | |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7951 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 7952 | else |
a243b558 JF |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7954 | $as_echo "no" >&6; } | |
9c60689e DWT |
7955 | fi |
7956 | ||
a243b558 JF |
7957 | if test "x$ac_ct_LIPO" = x; then |
7958 | LIPO=":" | |
7959 | else | |
7960 | case $cross_compiling:$ac_tool_warned in | |
7961 | yes:) | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7964 | ac_tool_warned=yes ;; | |
7965 | esac | |
7966 | LIPO=$ac_ct_LIPO | |
7967 | fi | |
7968 | else | |
7969 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
7970 | fi |
7971 | ||
a243b558 JF |
7972 | if test -n "$ac_tool_prefix"; then |
7973 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7974 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7976 | $as_echo_n "checking for $ac_word... " >&6; } | |
7977 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7978 | $as_echo_n "(cached) " >&6 | |
7979 | else | |
7980 | if test -n "$OTOOL"; then | |
7981 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7982 | else | |
7983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7984 | for as_dir in $PATH | |
7985 | do | |
7986 | IFS=$as_save_IFS | |
7987 | test -z "$as_dir" && as_dir=. | |
7988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7990 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7992 | break 2 | |
7993 | fi | |
7994 | done | |
7995 | done | |
7996 | IFS=$as_save_IFS | |
9c60689e | 7997 | |
a243b558 JF |
7998 | fi |
7999 | fi | |
8000 | OTOOL=$ac_cv_prog_OTOOL | |
8001 | if test -n "$OTOOL"; then | |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8003 | $as_echo "$OTOOL" >&6; } | |
8004 | else | |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8006 | $as_echo "no" >&6; } | |
8007 | fi | |
9c60689e DWT |
8008 | |
8009 | ||
a243b558 JF |
8010 | fi |
8011 | if test -z "$ac_cv_prog_OTOOL"; then | |
8012 | ac_ct_OTOOL=$OTOOL | |
8013 | # Extract the first word of "otool", so it can be a program name with args. | |
8014 | set dummy otool; ac_word=$2 | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8016 | $as_echo_n "checking for $ac_word... " >&6; } | |
8017 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8018 | $as_echo_n "(cached) " >&6 | |
8019 | else | |
8020 | if test -n "$ac_ct_OTOOL"; then | |
8021 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8022 | else | |
8023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8024 | for as_dir in $PATH | |
8025 | do | |
8026 | IFS=$as_save_IFS | |
8027 | test -z "$as_dir" && as_dir=. | |
8028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8030 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8032 | break 2 | |
8033 | fi | |
8034 | done | |
8035 | done | |
8036 | IFS=$as_save_IFS | |
9c60689e | 8037 | |
a243b558 JF |
8038 | fi |
8039 | fi | |
8040 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8041 | if test -n "$ac_ct_OTOOL"; then | |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8043 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8044 | else | |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8046 | $as_echo "no" >&6; } | |
8047 | fi | |
9c60689e | 8048 | |
a243b558 JF |
8049 | if test "x$ac_ct_OTOOL" = x; then |
8050 | OTOOL=":" | |
8051 | else | |
8052 | case $cross_compiling:$ac_tool_warned in | |
8053 | yes:) | |
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8056 | ac_tool_warned=yes ;; | |
8057 | esac | |
8058 | OTOOL=$ac_ct_OTOOL | |
8059 | fi | |
8060 | else | |
8061 | OTOOL="$ac_cv_prog_OTOOL" | |
8062 | fi | |
9c60689e | 8063 | |
a243b558 JF |
8064 | if test -n "$ac_tool_prefix"; then |
8065 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8066 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8068 | $as_echo_n "checking for $ac_word... " >&6; } | |
8069 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8070 | $as_echo_n "(cached) " >&6 | |
8071 | else | |
8072 | if test -n "$OTOOL64"; then | |
8073 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8074 | else | |
8075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8076 | for as_dir in $PATH | |
8077 | do | |
8078 | IFS=$as_save_IFS | |
8079 | test -z "$as_dir" && as_dir=. | |
8080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8082 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8084 | break 2 | |
8085 | fi | |
8086 | done | |
8087 | done | |
8088 | IFS=$as_save_IFS | |
9c60689e | 8089 | |
a243b558 JF |
8090 | fi |
8091 | fi | |
8092 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8093 | if test -n "$OTOOL64"; then | |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8095 | $as_echo "$OTOOL64" >&6; } | |
8096 | else | |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8098 | $as_echo "no" >&6; } | |
8099 | fi | |
9c60689e | 8100 | |
9c60689e | 8101 | |
a243b558 JF |
8102 | fi |
8103 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8104 | ac_ct_OTOOL64=$OTOOL64 | |
8105 | # Extract the first word of "otool64", so it can be a program name with args. | |
8106 | set dummy otool64; ac_word=$2 | |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8108 | $as_echo_n "checking for $ac_word... " >&6; } | |
8109 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8110 | $as_echo_n "(cached) " >&6 | |
8111 | else | |
8112 | if test -n "$ac_ct_OTOOL64"; then | |
8113 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8114 | else | |
8115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8116 | for as_dir in $PATH | |
8117 | do | |
8118 | IFS=$as_save_IFS | |
8119 | test -z "$as_dir" && as_dir=. | |
8120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8122 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8124 | break 2 | |
8125 | fi | |
8126 | done | |
8127 | done | |
8128 | IFS=$as_save_IFS | |
9c60689e | 8129 | |
a243b558 JF |
8130 | fi |
8131 | fi | |
8132 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8133 | if test -n "$ac_ct_OTOOL64"; then | |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8135 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8136 | else | |
8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8138 | $as_echo "no" >&6; } | |
8139 | fi | |
9c60689e | 8140 | |
a243b558 JF |
8141 | if test "x$ac_ct_OTOOL64" = x; then |
8142 | OTOOL64=":" | |
8143 | else | |
8144 | case $cross_compiling:$ac_tool_warned in | |
8145 | yes:) | |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8147 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8148 | ac_tool_warned=yes ;; | |
8149 | esac | |
8150 | OTOOL64=$ac_ct_OTOOL64 | |
8151 | fi | |
8152 | else | |
8153 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8154 | fi | |
ee134472 | 8155 | |
9c60689e | 8156 | |
9c60689e | 8157 | |
9c60689e | 8158 | |
9c60689e | 8159 | |
9c60689e | 8160 | |
ee134472 | 8161 | |
9c60689e | 8162 | |
9c60689e | 8163 | |
9c60689e | 8164 | |
9c60689e | 8165 | |
9c60689e | 8166 | |
9c60689e | 8167 | |
9c60689e | 8168 | |
9c60689e | 8169 | |
9c60689e | 8170 | |
9c60689e | 8171 | |
9c60689e | 8172 | |
9c60689e | 8173 | |
9c60689e | 8174 | |
9c60689e | 8175 | |
9c60689e | 8176 | |
9c60689e | 8177 | |
9c60689e | 8178 | |
9c60689e | 8179 | |
a243b558 JF |
8180 | |
8181 | ||
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8183 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8184 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8185 | $as_echo_n "(cached) " >&6 |
8186 | else | |
a243b558 JF |
8187 | lt_cv_apple_cc_single_mod=no |
8188 | if test -z "${LT_MULTI_MODULE}"; then | |
8189 | # By default we will add the -single_module flag. You can override | |
8190 | # by either setting the environment variable LT_MULTI_MODULE | |
8191 | # non-empty at configure time, or by adding -multi_module to the | |
8192 | # link flags. | |
8193 | rm -rf libconftest.dylib* | |
8194 | echo "int foo(void){return 1;}" > conftest.c | |
8195 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8196 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8197 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8198 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8199 | _lt_result=$? | |
8200 | # If there is a non-empty error log, and "single_module" | |
8201 | # appears in it, assume the flag caused a linker warning | |
8202 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8203 | cat conftest.err >&5 | |
8204 | # Otherwise, if the output was created with a 0 exit code from | |
8205 | # the compiler, it worked. | |
8206 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8207 | lt_cv_apple_cc_single_mod=yes | |
8208 | else | |
8209 | cat conftest.err >&5 | |
8210 | fi | |
8211 | rm -rf libconftest.dylib* | |
8212 | rm -f conftest.* | |
8213 | fi | |
ee134472 | 8214 | fi |
a243b558 JF |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8216 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8217 | |
a243b558 JF |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8219 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8220 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8221 | $as_echo_n "(cached) " >&6 |
8222 | else | |
a243b558 JF |
8223 | lt_cv_ld_exported_symbols_list=no |
8224 | save_LDFLAGS=$LDFLAGS | |
8225 | echo "_main" > conftest.sym | |
8226 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8228 | /* end confdefs.h. */ | |
9c60689e | 8229 | |
a243b558 JF |
8230 | int |
8231 | main () | |
8232 | { | |
9c60689e | 8233 | |
a243b558 JF |
8234 | ; |
8235 | return 0; | |
8236 | } | |
8237 | _ACEOF | |
8238 | if ac_fn_c_try_link "$LINENO"; then : | |
8239 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8240 | else |
a243b558 | 8241 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8242 | fi |
a243b558 JF |
8243 | rm -f core conftest.err conftest.$ac_objext \ |
8244 | conftest$ac_exeext conftest.$ac_ext | |
8245 | LDFLAGS="$save_LDFLAGS" | |
9c60689e DWT |
8246 | |
8247 | fi | |
a243b558 JF |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8249 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8250 | |
a243b558 JF |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8252 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8253 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8254 | $as_echo_n "(cached) " >&6 |
8255 | else | |
a243b558 JF |
8256 | lt_cv_ld_force_load=no |
8257 | cat > conftest.c << _LT_EOF | |
8258 | int forced_loaded() { return 2;} | |
8259 | _LT_EOF | |
8260 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8261 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8262 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8263 | $AR cru libconftest.a conftest.o 2>&5 | |
8264 | echo "$RANLIB libconftest.a" >&5 | |
8265 | $RANLIB libconftest.a 2>&5 | |
8266 | cat > conftest.c << _LT_EOF | |
8267 | int main() { return 0;} | |
8268 | _LT_EOF | |
8269 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8270 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8271 | _lt_result=$? | |
8272 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8273 | cat conftest.err >&5 | |
8274 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8275 | lt_cv_ld_force_load=yes | |
8276 | else | |
8277 | cat conftest.err >&5 | |
8278 | fi | |
8279 | rm -f conftest.err libconftest.a conftest conftest.c | |
8280 | rm -rf conftest.dSYM | |
9c60689e DWT |
8281 | |
8282 | fi | |
a243b558 JF |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8284 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8285 | case $host_os in | |
8286 | rhapsody* | darwin1.[012]) | |
8287 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8288 | darwin1.*) | |
8289 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8290 | darwin*) # darwin 5.x on | |
8291 | # if running on 10.5 or later, the deployment target defaults | |
8292 | # to the OS version, if on x86, and 10.4, the deployment | |
8293 | # target defaults to 10.4. Don't you love it? | |
8294 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8295 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8296 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8297 | 10.[012]*) | |
8298 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8299 | 10.*) | |
8300 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8301 | esac | |
8302 | ;; | |
8303 | esac | |
8304 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8305 | _lt_dar_single_mod='$single_module' | |
8306 | fi | |
8307 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8308 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8309 | else | |
8310 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8311 | fi | |
8312 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8313 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8314 | else | |
8315 | _lt_dsymutil= | |
8316 | fi | |
8317 | ;; | |
8318 | esac | |
9c60689e | 8319 | |
a243b558 JF |
8320 | ac_ext=c |
8321 | ac_cpp='$CPP $CPPFLAGS' | |
8322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8326 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8327 | # On Suns, sometimes $CPP names a directory. | |
8328 | if test -n "$CPP" && test -d "$CPP"; then | |
8329 | CPP= | |
9c60689e | 8330 | fi |
a243b558 JF |
8331 | if test -z "$CPP"; then |
8332 | if ${ac_cv_prog_CPP+:} false; then : | |
8333 | $as_echo_n "(cached) " >&6 | |
8334 | else | |
8335 | # Double quotes because CPP needs to be expanded | |
8336 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8337 | do | |
8338 | ac_preproc_ok=false | |
8339 | for ac_c_preproc_warn_flag in '' yes | |
8340 | do | |
8341 | # Use a header file that comes with gcc, so configuring glibc | |
8342 | # with a fresh cross-compiler works. | |
8343 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8344 | # <limits.h> exists even on freestanding compilers. | |
8345 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8346 | # not just through cpp. "Syntax error" is here to catch this case. | |
8347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8348 | /* end confdefs.h. */ | |
8349 | #ifdef __STDC__ | |
8350 | # include <limits.h> | |
8351 | #else | |
8352 | # include <assert.h> | |
8353 | #endif | |
8354 | Syntax error | |
8355 | _ACEOF | |
8356 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8357 | |
a243b558 JF |
8358 | else |
8359 | # Broken: fails on valid input. | |
8360 | continue | |
8361 | fi | |
8362 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8363 | |
a243b558 JF |
8364 | # OK, works on sane cases. Now check whether nonexistent headers |
8365 | # can be detected and how. | |
8366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8367 | /* end confdefs.h. */ | |
8368 | #include <ac_nonexistent.h> | |
8369 | _ACEOF | |
8370 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8371 | # Broken: success on invalid input. | |
8372 | continue | |
8373 | else | |
8374 | # Passes both tests. | |
8375 | ac_preproc_ok=: | |
8376 | break | |
8377 | fi | |
8378 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8379 | |
a243b558 JF |
8380 | done |
8381 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8382 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8383 | if $ac_preproc_ok; then : | |
8384 | break | |
8385 | fi | |
9c60689e | 8386 | |
a243b558 JF |
8387 | done |
8388 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8389 | |
a243b558 JF |
8390 | fi |
8391 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8392 | else |
a243b558 JF |
8393 | ac_cv_prog_CPP=$CPP |
8394 | fi | |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8396 | $as_echo "$CPP" >&6; } | |
8397 | ac_preproc_ok=false | |
8398 | for ac_c_preproc_warn_flag in '' yes | |
8399 | do | |
8400 | # Use a header file that comes with gcc, so configuring glibc | |
8401 | # with a fresh cross-compiler works. | |
8402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8403 | # <limits.h> exists even on freestanding compilers. | |
8404 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8405 | # not just through cpp. "Syntax error" is here to catch this case. | |
8406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8407 | /* end confdefs.h. */ | |
8408 | #ifdef __STDC__ | |
8409 | # include <limits.h> | |
8410 | #else | |
8411 | # include <assert.h> | |
8412 | #endif | |
8413 | Syntax error | |
8414 | _ACEOF | |
8415 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8416 | |
a243b558 JF |
8417 | else |
8418 | # Broken: fails on valid input. | |
8419 | continue | |
9c60689e | 8420 | fi |
a243b558 | 8421 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8422 | |
a243b558 JF |
8423 | # OK, works on sane cases. Now check whether nonexistent headers |
8424 | # can be detected and how. | |
8425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8426 | /* end confdefs.h. */ | |
8427 | #include <ac_nonexistent.h> | |
8428 | _ACEOF | |
8429 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8430 | # Broken: success on invalid input. | |
8431 | continue | |
8432 | else | |
8433 | # Passes both tests. | |
8434 | ac_preproc_ok=: | |
8435 | break | |
8436 | fi | |
8437 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8438 | |
a243b558 JF |
8439 | done |
8440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8441 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8442 | if $ac_preproc_ok; then : | |
9c60689e | 8443 | |
a243b558 JF |
8444 | else |
8445 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8447 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8448 | See \`config.log' for more details" "$LINENO" 5; } | |
8449 | fi | |
9c60689e | 8450 | |
a243b558 JF |
8451 | ac_ext=c |
8452 | ac_cpp='$CPP $CPPFLAGS' | |
8453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8456 | |
8457 | ||
a243b558 JF |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8459 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8460 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8461 | $as_echo_n "(cached) " >&6 |
8462 | else | |
a243b558 JF |
8463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8464 | /* end confdefs.h. */ | |
8465 | #include <stdlib.h> | |
8466 | #include <stdarg.h> | |
8467 | #include <string.h> | |
8468 | #include <float.h> | |
9c60689e | 8469 | |
a243b558 JF |
8470 | int |
8471 | main () | |
8472 | { | |
9c60689e | 8473 | |
a243b558 JF |
8474 | ; |
8475 | return 0; | |
8476 | } | |
8477 | _ACEOF | |
8478 | if ac_fn_c_try_compile "$LINENO"; then : | |
8479 | ac_cv_header_stdc=yes | |
8480 | else | |
8481 | ac_cv_header_stdc=no | |
9c60689e | 8482 | fi |
a243b558 JF |
8483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8484 | ||
8485 | if test $ac_cv_header_stdc = yes; then | |
8486 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8488 | /* end confdefs.h. */ | |
8489 | #include <string.h> | |
9c60689e | 8490 | |
a243b558 JF |
8491 | _ACEOF |
8492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8493 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8494 | |
a243b558 JF |
8495 | else |
8496 | ac_cv_header_stdc=no | |
8497 | fi | |
8498 | rm -f conftest* | |
9c60689e | 8499 | |
a243b558 JF |
8500 | fi |
8501 | ||
8502 | if test $ac_cv_header_stdc = yes; then | |
8503 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8505 | /* end confdefs.h. */ | |
8506 | #include <stdlib.h> | |
8507 | ||
8508 | _ACEOF | |
8509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8510 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8511 | |
9c60689e | 8512 | else |
a243b558 | 8513 | ac_cv_header_stdc=no |
9c60689e | 8514 | fi |
a243b558 | 8515 | rm -f conftest* |
9c60689e | 8516 | |
a243b558 | 8517 | fi |
9c60689e | 8518 | |
a243b558 JF |
8519 | if test $ac_cv_header_stdc = yes; then |
8520 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8521 | if test "$cross_compiling" = yes; then : | |
8522 | : | |
8523 | else | |
8524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8525 | /* end confdefs.h. */ | |
8526 | #include <ctype.h> | |
8527 | #include <stdlib.h> | |
8528 | #if ((' ' & 0x0FF) == 0x020) | |
8529 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8530 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8531 | #else | |
8532 | # define ISLOWER(c) \ | |
8533 | (('a' <= (c) && (c) <= 'i') \ | |
8534 | || ('j' <= (c) && (c) <= 'r') \ | |
8535 | || ('s' <= (c) && (c) <= 'z')) | |
8536 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8537 | #endif | |
9c60689e | 8538 | |
a243b558 JF |
8539 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8540 | int | |
8541 | main () | |
8542 | { | |
8543 | int i; | |
8544 | for (i = 0; i < 256; i++) | |
8545 | if (XOR (islower (i), ISLOWER (i)) | |
8546 | || toupper (i) != TOUPPER (i)) | |
8547 | return 2; | |
8548 | return 0; | |
8549 | } | |
8550 | _ACEOF | |
8551 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8552 | |
a243b558 JF |
8553 | else |
8554 | ac_cv_header_stdc=no | |
8555 | fi | |
8556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8557 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8558 | fi | |
9c60689e | 8559 | |
a243b558 JF |
8560 | fi |
8561 | fi | |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8563 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8564 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8565 | |
a243b558 | 8566 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8567 | |
a243b558 | 8568 | fi |
9c60689e | 8569 | |
a243b558 JF |
8570 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8571 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8572 | inttypes.h stdint.h unistd.h | |
8573 | do : | |
8574 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8575 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8576 | " | |
8577 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8578 | cat >>confdefs.h <<_ACEOF | |
8579 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8580 | _ACEOF | |
9c60689e | 8581 | |
a243b558 | 8582 | fi |
ee134472 | 8583 | |
a243b558 | 8584 | done |
ee134472 | 8585 | |
9c60689e | 8586 | |
a243b558 JF |
8587 | for ac_header in dlfcn.h |
8588 | do : | |
8589 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8590 | " | |
8591 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8592 | cat >>confdefs.h <<_ACEOF | |
8593 | #define HAVE_DLFCN_H 1 | |
8594 | _ACEOF | |
9c60689e | 8595 | |
a243b558 | 8596 | fi |
9c60689e | 8597 | |
a243b558 | 8598 | done |
9c60689e | 8599 | |
9c60689e | 8600 | |
9c60689e | 8601 | |
9c60689e | 8602 | |
a243b558 JF |
8603 | func_stripname_cnf () |
8604 | { | |
8605 | case ${2} in | |
8606 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8607 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8608 | esac | |
8609 | } # func_stripname_cnf | |
9c60689e | 8610 | |
9c60689e | 8611 | |
ee134472 | 8612 | |
a243b558 JF |
8613 | |
8614 | ||
8615 | # Set options | |
8616 | # Check whether --enable-static was given. | |
8617 | if test "${enable_static+set}" = set; then : | |
8618 | enableval=$enable_static; p=${PACKAGE-default} | |
8619 | case $enableval in | |
8620 | yes) enable_static=yes ;; | |
8621 | no) enable_static=no ;; | |
8622 | *) | |
8623 | enable_static=no | |
8624 | # Look at the argument we got. We use all the common list separators. | |
8625 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8626 | for pkg in $enableval; do | |
8627 | IFS="$lt_save_ifs" | |
8628 | if test "X$pkg" = "X$p"; then | |
8629 | enable_static=yes | |
8630 | fi | |
8631 | done | |
8632 | IFS="$lt_save_ifs" | |
9c60689e | 8633 | ;; |
a243b558 JF |
8634 | esac |
8635 | else | |
8636 | enable_static=no | |
8637 | fi | |
9c60689e | 8638 | |
9c60689e | 8639 | |
9c60689e | 8640 | |
9c60689e | 8641 | |
9c60689e | 8642 | |
9c60689e | 8643 | |
9c60689e | 8644 | |
9c60689e | 8645 | |
9c60689e | 8646 | |
9c60689e | 8647 | |
a243b558 | 8648 | enable_dlopen=no |
9c60689e | 8649 | |
9c60689e | 8650 | |
a243b558 JF |
8651 | enable_win32_dll=no |
8652 | ||
8653 | ||
8654 | # Check whether --enable-shared was given. | |
8655 | if test "${enable_shared+set}" = set; then : | |
8656 | enableval=$enable_shared; p=${PACKAGE-default} | |
8657 | case $enableval in | |
8658 | yes) enable_shared=yes ;; | |
8659 | no) enable_shared=no ;; | |
9c60689e | 8660 | *) |
a243b558 JF |
8661 | enable_shared=no |
8662 | # Look at the argument we got. We use all the common list separators. | |
8663 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8664 | for pkg in $enableval; do | |
8665 | IFS="$lt_save_ifs" | |
8666 | if test "X$pkg" = "X$p"; then | |
8667 | enable_shared=yes | |
8668 | fi | |
8669 | done | |
8670 | IFS="$lt_save_ifs" | |
9c60689e DWT |
8671 | ;; |
8672 | esac | |
a243b558 JF |
8673 | else |
8674 | enable_shared=yes | |
8675 | fi | |
9c60689e | 8676 | |
9c60689e | 8677 | |
9c60689e | 8678 | |
9c60689e | 8679 | |
9c60689e | 8680 | |
9c60689e | 8681 | |
9c60689e | 8682 | |
9c60689e | 8683 | |
9c60689e | 8684 | |
9c60689e | 8685 | |
9c60689e | 8686 | |
a243b558 JF |
8687 | # Check whether --with-pic was given. |
8688 | if test "${with_pic+set}" = set; then : | |
8689 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8690 | case $withval in | |
8691 | yes|no) pic_mode=$withval ;; | |
8692 | *) | |
8693 | pic_mode=default | |
8694 | # Look at the argument we got. We use all the common list separators. | |
8695 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8696 | for lt_pkg in $withval; do | |
8697 | IFS="$lt_save_ifs" | |
8698 | if test "X$lt_pkg" = "X$lt_p"; then | |
8699 | pic_mode=yes | |
8700 | fi | |
8701 | done | |
8702 | IFS="$lt_save_ifs" | |
8703 | ;; | |
8704 | esac | |
8705 | else | |
8706 | pic_mode=default | |
9c60689e | 8707 | fi |
ee134472 | 8708 | |
ee134472 | 8709 | |
a243b558 | 8710 | test -z "$pic_mode" && pic_mode=default |
9c60689e | 8711 | |
9c60689e | 8712 | |
9c60689e | 8713 | |
9c60689e | 8714 | |
ee134472 | 8715 | |
ee134472 | 8716 | |
9c60689e | 8717 | |
a243b558 JF |
8718 | # Check whether --enable-fast-install was given. |
8719 | if test "${enable_fast_install+set}" = set; then : | |
8720 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8721 | case $enableval in | |
8722 | yes) enable_fast_install=yes ;; | |
8723 | no) enable_fast_install=no ;; | |
8724 | *) | |
8725 | enable_fast_install=no | |
8726 | # Look at the argument we got. We use all the common list separators. | |
8727 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8728 | for pkg in $enableval; do | |
8729 | IFS="$lt_save_ifs" | |
8730 | if test "X$pkg" = "X$p"; then | |
8731 | enable_fast_install=yes | |
9c60689e | 8732 | fi |
a243b558 JF |
8733 | done |
8734 | IFS="$lt_save_ifs" | |
9c60689e | 8735 | ;; |
a243b558 JF |
8736 | esac |
8737 | else | |
8738 | enable_fast_install=yes | |
8739 | fi | |
9c60689e | 8740 | |
9c60689e | 8741 | |
9c60689e | 8742 | |
9c60689e | 8743 | |
9c60689e DWT |
8744 | |
8745 | ||
53ba6704 | 8746 | |
9c60689e | 8747 | |
9c60689e | 8748 | |
9c60689e | 8749 | |
9c60689e | 8750 | |
a243b558 JF |
8751 | # This can be used to rebuild libtool when needed |
8752 | LIBTOOL_DEPS="$ltmain" | |
9c60689e | 8753 | |
a243b558 JF |
8754 | # Always use our own libtool. |
8755 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 8756 | |
9c60689e | 8757 | |
9c60689e | 8758 | |
9c60689e | 8759 | |
9c60689e | 8760 | |
ee134472 | 8761 | |
ee134472 | 8762 | |
ee134472 | 8763 | |
ee134472 | 8764 | |
9c60689e | 8765 | |
9c60689e | 8766 | |
9c60689e | 8767 | |
9c60689e | 8768 | |
9c60689e | 8769 | |
9c60689e | 8770 | |
9c60689e | 8771 | |
9c60689e | 8772 | |
9c60689e | 8773 | |
9c60689e | 8774 | |
9c60689e | 8775 | |
9c60689e | 8776 | |
9c60689e | 8777 | |
9c60689e | 8778 | |
9c60689e | 8779 | |
9c60689e | 8780 | |
9c60689e | 8781 | |
9c60689e | 8782 | |
9c60689e | 8783 | |
9c60689e | 8784 | |
9c60689e | 8785 | |
a243b558 | 8786 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
8787 | |
8788 | ||
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
8800 | ||
a243b558 JF |
8801 | if test -n "${ZSH_VERSION+set}" ; then |
8802 | setopt NO_GLOB_SUBST | |
8803 | fi | |
9c60689e | 8804 | |
a243b558 JF |
8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8806 | $as_echo_n "checking for objdir... " >&6; } | |
8807 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
8808 | $as_echo_n "(cached) " >&6 |
8809 | else | |
a243b558 JF |
8810 | rm -f .libs 2>/dev/null |
8811 | mkdir .libs 2>/dev/null | |
8812 | if test -d .libs; then | |
8813 | lt_cv_objdir=.libs | |
8814 | else | |
8815 | # MS-DOS does not allow filenames that begin with a dot. | |
8816 | lt_cv_objdir=_libs | |
ee134472 | 8817 | fi |
a243b558 JF |
8818 | rmdir .libs 2>/dev/null |
8819 | fi | |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8821 | $as_echo "$lt_cv_objdir" >&6; } | |
8822 | objdir=$lt_cv_objdir | |
9c60689e DWT |
8823 | |
8824 | ||
8825 | ||
8826 | ||
8827 | ||
a243b558 JF |
8828 | cat >>confdefs.h <<_ACEOF |
8829 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8830 | _ACEOF | |
9c60689e DWT |
8831 | |
8832 | ||
8833 | ||
8834 | ||
a243b558 JF |
8835 | case $host_os in |
8836 | aix3*) | |
8837 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8838 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8839 | # vanish in a puff of smoke. | |
8840 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8841 | COLLECT_NAMES= | |
8842 | export COLLECT_NAMES | |
8843 | fi | |
8844 | ;; | |
8845 | esac | |
9c60689e | 8846 | |
a243b558 JF |
8847 | # Global variables: |
8848 | ofile=libtool | |
8849 | can_build_shared=yes | |
9c60689e | 8850 | |
a243b558 JF |
8851 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8852 | # which needs '.lib'). | |
8853 | libext=a | |
9c60689e | 8854 | |
a243b558 | 8855 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
9c60689e | 8856 | |
a243b558 JF |
8857 | old_CC="$CC" |
8858 | old_CFLAGS="$CFLAGS" | |
9c60689e | 8859 | |
a243b558 JF |
8860 | # Set sane defaults for various variables |
8861 | test -z "$CC" && CC=cc | |
8862 | test -z "$LTCC" && LTCC=$CC | |
8863 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8864 | test -z "$LD" && LD=ld | |
8865 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 8866 | |
a243b558 JF |
8867 | for cc_temp in $compiler""; do |
8868 | case $cc_temp in | |
8869 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8870 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8871 | \-*) ;; | |
8872 | *) break;; | |
8873 | esac | |
8874 | done | |
8875 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9c60689e DWT |
8876 | |
8877 | ||
a243b558 JF |
8878 | # Only perform the check for file, if the check method requires it |
8879 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8880 | case $deplibs_check_method in | |
8881 | file_magic*) | |
8882 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8884 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8885 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8886 | $as_echo_n "(cached) " >&6 | |
8887 | else | |
8888 | case $MAGIC_CMD in | |
8889 | [\\/*] | ?:[\\/]*) | |
8890 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8891 | ;; | |
8892 | *) | |
8893 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8894 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8895 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8896 | for ac_dir in $ac_dummy; do | |
8897 | IFS="$lt_save_ifs" | |
8898 | test -z "$ac_dir" && ac_dir=. | |
8899 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8900 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8901 | if test -n "$file_magic_test_file"; then | |
8902 | case $deplibs_check_method in | |
8903 | "file_magic "*) | |
8904 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8905 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8906 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8907 | $EGREP "$file_magic_regex" > /dev/null; then | |
8908 | : | |
8909 | else | |
8910 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8911 | |
a243b558 JF |
8912 | *** Warning: the command libtool uses to detect shared libraries, |
8913 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8914 | *** The result is that libtool may fail to recognize shared libraries | |
8915 | *** as such. This will affect the creation of libtool libraries that | |
8916 | *** depend on shared libraries, but programs linked with such libtool | |
8917 | *** libraries will work regardless of this problem. Nevertheless, you | |
8918 | *** may want to report the problem to your system manager and/or to | |
8919 | *** bug-libtool@gnu.org | |
9c60689e | 8920 | |
a243b558 JF |
8921 | _LT_EOF |
8922 | fi ;; | |
8923 | esac | |
8924 | fi | |
8925 | break | |
8926 | fi | |
8927 | done | |
8928 | IFS="$lt_save_ifs" | |
8929 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8930 | ;; | |
8931 | esac | |
8932 | fi | |
9c60689e | 8933 | |
a243b558 JF |
8934 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8935 | if test -n "$MAGIC_CMD"; then | |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8937 | $as_echo "$MAGIC_CMD" >&6; } | |
8938 | else | |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8940 | $as_echo "no" >&6; } | |
8941 | fi | |
9c60689e DWT |
8942 | |
8943 | ||
8944 | ||
8945 | ||
8946 | ||
a243b558 JF |
8947 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8948 | if test -n "$ac_tool_prefix"; then | |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8950 | $as_echo_n "checking for file... " >&6; } | |
8951 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8952 | $as_echo_n "(cached) " >&6 | |
8953 | else | |
8954 | case $MAGIC_CMD in | |
8955 | [\\/*] | ?:[\\/]*) | |
8956 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8957 | ;; | |
8958 | *) | |
8959 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8960 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8961 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8962 | for ac_dir in $ac_dummy; do | |
8963 | IFS="$lt_save_ifs" | |
8964 | test -z "$ac_dir" && ac_dir=. | |
8965 | if test -f $ac_dir/file; then | |
8966 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8967 | if test -n "$file_magic_test_file"; then | |
8968 | case $deplibs_check_method in | |
8969 | "file_magic "*) | |
8970 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8971 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8972 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8973 | $EGREP "$file_magic_regex" > /dev/null; then | |
8974 | : | |
8975 | else | |
8976 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8977 | |
a243b558 JF |
8978 | *** Warning: the command libtool uses to detect shared libraries, |
8979 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8980 | *** The result is that libtool may fail to recognize shared libraries | |
8981 | *** as such. This will affect the creation of libtool libraries that | |
8982 | *** depend on shared libraries, but programs linked with such libtool | |
8983 | *** libraries will work regardless of this problem. Nevertheless, you | |
8984 | *** may want to report the problem to your system manager and/or to | |
8985 | *** bug-libtool@gnu.org | |
9c60689e | 8986 | |
a243b558 JF |
8987 | _LT_EOF |
8988 | fi ;; | |
8989 | esac | |
8990 | fi | |
8991 | break | |
8992 | fi | |
8993 | done | |
8994 | IFS="$lt_save_ifs" | |
8995 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8996 | ;; | |
8997 | esac | |
8998 | fi | |
9c60689e | 8999 | |
a243b558 JF |
9000 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9001 | if test -n "$MAGIC_CMD"; then | |
9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9003 | $as_echo "$MAGIC_CMD" >&6; } | |
9004 | else | |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9006 | $as_echo "no" >&6; } | |
9007 | fi | |
9c60689e DWT |
9008 | |
9009 | ||
a243b558 JF |
9010 | else |
9011 | MAGIC_CMD=: | |
9012 | fi | |
9013 | fi | |
9c60689e | 9014 | |
a243b558 JF |
9015 | fi |
9016 | ;; | |
9017 | esac | |
9c60689e | 9018 | |
a243b558 | 9019 | # Use C for the default configuration in the libtool script |
9c60689e | 9020 | |
a243b558 JF |
9021 | lt_save_CC="$CC" |
9022 | ac_ext=c | |
9023 | ac_cpp='$CPP $CPPFLAGS' | |
9024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
9027 | |
9028 | ||
a243b558 JF |
9029 | # Source file extension for C test sources. |
9030 | ac_ext=c | |
9c60689e | 9031 | |
a243b558 JF |
9032 | # Object file extension for compiled C test sources. |
9033 | objext=o | |
9034 | objext=$objext | |
9c60689e | 9035 | |
a243b558 JF |
9036 | # Code to be used in simple compile tests |
9037 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9038 | |
a243b558 JF |
9039 | # Code to be used in simple link tests |
9040 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9041 | |
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | ||
a243b558 JF |
9048 | # If no C compiler was specified, use CC. |
9049 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9050 | |
a243b558 JF |
9051 | # If no C compiler flags were specified, use CFLAGS. |
9052 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9053 | |
a243b558 JF |
9054 | # Allow CC to be a program name with arguments. |
9055 | compiler=$CC | |
9c60689e | 9056 | |
a243b558 JF |
9057 | # Save the default compiler, since it gets overwritten when the other |
9058 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9059 | compiler_DEFAULT=$CC | |
9c60689e | 9060 | |
a243b558 JF |
9061 | # save warnings/boilerplate of simple test code |
9062 | ac_outfile=conftest.$ac_objext | |
9063 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9064 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9065 | _lt_compiler_boilerplate=`cat conftest.err` | |
9066 | $RM -r conftest* | |
9c60689e | 9067 | |
a243b558 JF |
9068 | ac_outfile=conftest.$ac_objext |
9069 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9070 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9071 | _lt_linker_boilerplate=`cat conftest.err` | |
9072 | $RM -r conftest* | |
9c60689e DWT |
9073 | |
9074 | ||
a243b558 JF |
9075 | ## CAVEAT EMPTOR: |
9076 | ## There is no encapsulation within the following macros, do not change | |
9077 | ## the running order or otherwise move them around unless you know exactly | |
9078 | ## what you are doing... | |
9079 | if test -n "$compiler"; then | |
9c60689e | 9080 | |
a243b558 | 9081 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9082 | |
a243b558 JF |
9083 | if test "$GCC" = yes; then |
9084 | case $cc_basename in | |
9085 | nvcc*) | |
9086 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9087 | *) | |
9088 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9089 | esac | |
9c60689e | 9090 | |
a243b558 JF |
9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9092 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9093 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9094 | $as_echo_n "(cached) " >&6 | |
9095 | else | |
9096 | lt_cv_prog_compiler_rtti_exceptions=no | |
9097 | ac_outfile=conftest.$ac_objext | |
9098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9099 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9100 | # Insert the option either (1) after the last *FLAGS variable, or | |
9101 | # (2) before a word containing "conftest.", or (3) at the end. | |
9102 | # Note that $ac_compile itself does not contain backslashes and begins | |
9103 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9104 | # The option is referenced via a variable to avoid confusing sed. | |
9105 | lt_compile=`echo "$ac_compile" | $SED \ | |
9106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9108 | -e 's:$: $lt_compiler_flag:'` | |
9109 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9110 | (eval "$lt_compile" 2>conftest.err) | |
9111 | ac_status=$? | |
9112 | cat conftest.err >&5 | |
9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9114 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9115 | # The compiler can only warn and ignore the option if not recognized | |
9116 | # So say no if there are warnings other than the usual output. | |
9117 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9118 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9119 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9120 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9121 | fi | |
9122 | fi | |
9123 | $RM -r conftest* | |
9c60689e | 9124 | |
a243b558 JF |
9125 | fi |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9127 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9128 | |
a243b558 JF |
9129 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9130 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9131 | else | |
9132 | : | |
9133 | fi | |
9c60689e | 9134 | |
a243b558 | 9135 | fi |
9c60689e DWT |
9136 | |
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
a243b558 JF |
9142 | lt_prog_compiler_wl= |
9143 | lt_prog_compiler_pic= | |
9144 | lt_prog_compiler_static= | |
9c60689e DWT |
9145 | |
9146 | ||
a243b558 JF |
9147 | if test "$GCC" = yes; then |
9148 | lt_prog_compiler_wl='-Wl,' | |
9149 | lt_prog_compiler_static='-static' | |
9c60689e | 9150 | |
a243b558 JF |
9151 | case $host_os in |
9152 | aix*) | |
9153 | # All AIX code is PIC. | |
9154 | if test "$host_cpu" = ia64; then | |
9155 | # AIX 5 now supports IA64 processor | |
9156 | lt_prog_compiler_static='-Bstatic' | |
9157 | fi | |
9158 | ;; | |
9c60689e | 9159 | |
a243b558 JF |
9160 | amigaos*) |
9161 | case $host_cpu in | |
9162 | powerpc) | |
9163 | # see comment about AmigaOS4 .so support | |
9164 | lt_prog_compiler_pic='-fPIC' | |
9165 | ;; | |
9166 | m68k) | |
9167 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9168 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9169 | # like `-m68040'. | |
9170 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9171 | ;; | |
9172 | esac | |
9173 | ;; | |
9c60689e | 9174 | |
a243b558 JF |
9175 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9176 | # PIC is the default for these OSes. | |
9177 | ;; | |
9c60689e | 9178 | |
a243b558 JF |
9179 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9180 | # This hack is so that the source file can tell whether it is being | |
9181 | # built for inclusion in a dll (and should export symbols for example). | |
9182 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9183 | # (--disable-auto-import) libraries | |
9184 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9185 | ;; | |
9c60689e | 9186 | |
a243b558 JF |
9187 | darwin* | rhapsody*) |
9188 | # PIC is the default on this platform | |
9189 | # Common symbols not allowed in MH_DYLIB files | |
9190 | lt_prog_compiler_pic='-fno-common' | |
9191 | ;; | |
9c60689e | 9192 | |
a243b558 JF |
9193 | haiku*) |
9194 | # PIC is the default for Haiku. | |
9195 | # The "-static" flag exists, but is broken. | |
9196 | lt_prog_compiler_static= | |
9197 | ;; | |
9c60689e | 9198 | |
a243b558 JF |
9199 | hpux*) |
9200 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9201 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9202 | # sets the default TLS model and affects inlining. | |
9203 | case $host_cpu in | |
9204 | hppa*64*) | |
9205 | # +Z the default | |
9206 | ;; | |
9207 | *) | |
9208 | lt_prog_compiler_pic='-fPIC' | |
9209 | ;; | |
9210 | esac | |
9211 | ;; | |
9c60689e | 9212 | |
a243b558 JF |
9213 | interix[3-9]*) |
9214 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9215 | # Instead, we relocate shared libraries at runtime. | |
9216 | ;; | |
9c60689e | 9217 | |
a243b558 JF |
9218 | msdosdjgpp*) |
9219 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9220 | # on systems that don't support them. | |
9221 | lt_prog_compiler_can_build_shared=no | |
9222 | enable_shared=no | |
9223 | ;; | |
9c60689e | 9224 | |
a243b558 JF |
9225 | *nto* | *qnx*) |
9226 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9227 | # it will coredump. | |
9228 | lt_prog_compiler_pic='-fPIC -shared' | |
9229 | ;; | |
9c60689e | 9230 | |
a243b558 JF |
9231 | sysv4*MP*) |
9232 | if test -d /usr/nec; then | |
9233 | lt_prog_compiler_pic=-Kconform_pic | |
9234 | fi | |
9235 | ;; | |
9c60689e | 9236 | |
a243b558 JF |
9237 | *) |
9238 | lt_prog_compiler_pic='-fPIC' | |
9239 | ;; | |
9240 | esac | |
9c60689e | 9241 | |
a243b558 JF |
9242 | case $cc_basename in |
9243 | nvcc*) # Cuda Compiler Driver 2.2 | |
9244 | lt_prog_compiler_wl='-Xlinker ' | |
9245 | if test -n "$lt_prog_compiler_pic"; then | |
9246 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9247 | fi | |
9248 | ;; | |
9249 | esac | |
9250 | else | |
9251 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9252 | case $host_os in | |
9253 | aix*) | |
9254 | lt_prog_compiler_wl='-Wl,' | |
9255 | if test "$host_cpu" = ia64; then | |
9256 | # AIX 5 now supports IA64 processor | |
9257 | lt_prog_compiler_static='-Bstatic' | |
9258 | else | |
9259 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9260 | fi | |
9261 | ;; | |
9c60689e | 9262 | |
a243b558 JF |
9263 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9264 | # This hack is so that the source file can tell whether it is being | |
9265 | # built for inclusion in a dll (and should export symbols for example). | |
9266 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9267 | ;; | |
9c60689e | 9268 | |
a243b558 JF |
9269 | hpux9* | hpux10* | hpux11*) |
9270 | lt_prog_compiler_wl='-Wl,' | |
9271 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9272 | # not for PA HP-UX. | |
9273 | case $host_cpu in | |
9274 | hppa*64*|ia64*) | |
9275 | # +Z the default | |
9276 | ;; | |
9277 | *) | |
9278 | lt_prog_compiler_pic='+Z' | |
9279 | ;; | |
9280 | esac | |
9281 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9282 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9283 | ;; | |
9c60689e | 9284 | |
a243b558 JF |
9285 | irix5* | irix6* | nonstopux*) |
9286 | lt_prog_compiler_wl='-Wl,' | |
9287 | # PIC (with -KPIC) is the default. | |
9288 | lt_prog_compiler_static='-non_shared' | |
9289 | ;; | |
9c60689e | 9290 | |
a243b558 JF |
9291 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9292 | case $cc_basename in | |
9293 | # old Intel for x86_64 which still supported -KPIC. | |
9294 | ecc*) | |
9295 | lt_prog_compiler_wl='-Wl,' | |
9296 | lt_prog_compiler_pic='-KPIC' | |
9297 | lt_prog_compiler_static='-static' | |
9298 | ;; | |
9299 | # icc used to be incompatible with GCC. | |
9300 | # ICC 10 doesn't accept -KPIC any more. | |
9301 | icc* | ifort*) | |
9302 | lt_prog_compiler_wl='-Wl,' | |
9303 | lt_prog_compiler_pic='-fPIC' | |
9304 | lt_prog_compiler_static='-static' | |
9305 | ;; | |
9306 | # Lahey Fortran 8.1. | |
9307 | lf95*) | |
9308 | lt_prog_compiler_wl='-Wl,' | |
9309 | lt_prog_compiler_pic='--shared' | |
9310 | lt_prog_compiler_static='--static' | |
9311 | ;; | |
9312 | nagfor*) | |
9313 | # NAG Fortran compiler | |
9314 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9315 | lt_prog_compiler_pic='-PIC' | |
9316 | lt_prog_compiler_static='-Bstatic' | |
9317 | ;; | |
9318 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9319 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9320 | # which looks to be a dead project) | |
9321 | lt_prog_compiler_wl='-Wl,' | |
9322 | lt_prog_compiler_pic='-fpic' | |
9323 | lt_prog_compiler_static='-Bstatic' | |
9324 | ;; | |
9325 | ccc*) | |
9326 | lt_prog_compiler_wl='-Wl,' | |
9327 | # All Alpha code is PIC. | |
9328 | lt_prog_compiler_static='-non_shared' | |
9329 | ;; | |
9330 | xl* | bgxl* | bgf* | mpixl*) | |
9331 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9332 | lt_prog_compiler_wl='-Wl,' | |
9333 | lt_prog_compiler_pic='-qpic' | |
9334 | lt_prog_compiler_static='-qstaticlink' | |
9335 | ;; | |
9336 | *) | |
9337 | case `$CC -V 2>&1 | sed 5q` in | |
9338 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9339 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9340 | lt_prog_compiler_pic='-KPIC' | |
9341 | lt_prog_compiler_static='-Bstatic' | |
9342 | lt_prog_compiler_wl='' | |
9343 | ;; | |
9344 | *Sun\ F* | *Sun*Fortran*) | |
9345 | lt_prog_compiler_pic='-KPIC' | |
9346 | lt_prog_compiler_static='-Bstatic' | |
9347 | lt_prog_compiler_wl='-Qoption ld ' | |
9348 | ;; | |
9349 | *Sun\ C*) | |
9350 | # Sun C 5.9 | |
9351 | lt_prog_compiler_pic='-KPIC' | |
9352 | lt_prog_compiler_static='-Bstatic' | |
9353 | lt_prog_compiler_wl='-Wl,' | |
9354 | ;; | |
9355 | *Intel*\ [CF]*Compiler*) | |
9356 | lt_prog_compiler_wl='-Wl,' | |
9357 | lt_prog_compiler_pic='-fPIC' | |
9358 | lt_prog_compiler_static='-static' | |
9359 | ;; | |
9360 | *Portland\ Group*) | |
9361 | lt_prog_compiler_wl='-Wl,' | |
9362 | lt_prog_compiler_pic='-fpic' | |
9363 | lt_prog_compiler_static='-Bstatic' | |
9364 | ;; | |
9365 | esac | |
9366 | ;; | |
9367 | esac | |
9368 | ;; | |
9c60689e | 9369 | |
a243b558 JF |
9370 | newsos6) |
9371 | lt_prog_compiler_pic='-KPIC' | |
9372 | lt_prog_compiler_static='-Bstatic' | |
9373 | ;; | |
9c60689e | 9374 | |
a243b558 JF |
9375 | *nto* | *qnx*) |
9376 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9377 | # it will coredump. | |
9378 | lt_prog_compiler_pic='-fPIC -shared' | |
9379 | ;; | |
9c60689e | 9380 | |
a243b558 JF |
9381 | osf3* | osf4* | osf5*) |
9382 | lt_prog_compiler_wl='-Wl,' | |
9383 | # All OSF/1 code is PIC. | |
9384 | lt_prog_compiler_static='-non_shared' | |
9385 | ;; | |
9c60689e | 9386 | |
a243b558 JF |
9387 | rdos*) |
9388 | lt_prog_compiler_static='-non_shared' | |
9389 | ;; | |
9c60689e | 9390 | |
a243b558 JF |
9391 | solaris*) |
9392 | lt_prog_compiler_pic='-KPIC' | |
9393 | lt_prog_compiler_static='-Bstatic' | |
9394 | case $cc_basename in | |
9395 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9396 | lt_prog_compiler_wl='-Qoption ld ';; | |
9397 | *) | |
9398 | lt_prog_compiler_wl='-Wl,';; | |
9399 | esac | |
9400 | ;; | |
9c60689e | 9401 | |
a243b558 JF |
9402 | sunos4*) |
9403 | lt_prog_compiler_wl='-Qoption ld ' | |
9404 | lt_prog_compiler_pic='-PIC' | |
9405 | lt_prog_compiler_static='-Bstatic' | |
9406 | ;; | |
9c60689e | 9407 | |
a243b558 JF |
9408 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9409 | lt_prog_compiler_wl='-Wl,' | |
9410 | lt_prog_compiler_pic='-KPIC' | |
9411 | lt_prog_compiler_static='-Bstatic' | |
9412 | ;; | |
9c60689e | 9413 | |
a243b558 JF |
9414 | sysv4*MP*) |
9415 | if test -d /usr/nec ;then | |
9416 | lt_prog_compiler_pic='-Kconform_pic' | |
9417 | lt_prog_compiler_static='-Bstatic' | |
9418 | fi | |
9419 | ;; | |
9c60689e | 9420 | |
a243b558 JF |
9421 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9422 | lt_prog_compiler_wl='-Wl,' | |
9423 | lt_prog_compiler_pic='-KPIC' | |
9424 | lt_prog_compiler_static='-Bstatic' | |
9425 | ;; | |
9c60689e | 9426 | |
a243b558 JF |
9427 | unicos*) |
9428 | lt_prog_compiler_wl='-Wl,' | |
9429 | lt_prog_compiler_can_build_shared=no | |
9430 | ;; | |
9c60689e | 9431 | |
a243b558 JF |
9432 | uts4*) |
9433 | lt_prog_compiler_pic='-pic' | |
9434 | lt_prog_compiler_static='-Bstatic' | |
9435 | ;; | |
9c60689e | 9436 | |
a243b558 JF |
9437 | *) |
9438 | lt_prog_compiler_can_build_shared=no | |
9439 | ;; | |
9440 | esac | |
9441 | fi | |
9c60689e | 9442 | |
a243b558 JF |
9443 | case $host_os in |
9444 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9445 | *djgpp*) | |
9446 | lt_prog_compiler_pic= | |
9447 | ;; | |
9448 | *) | |
9449 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9450 | ;; | |
9451 | esac | |
9c60689e | 9452 | |
a243b558 JF |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9454 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9455 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9456 | $as_echo_n "(cached) " >&6 | |
9457 | else | |
9458 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9459 | fi | |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9461 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9462 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9463 | |
a243b558 JF |
9464 | # |
9465 | # Check to make sure the PIC flag actually works. | |
9466 | # | |
9467 | if test -n "$lt_prog_compiler_pic"; then | |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9469 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9470 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9471 | $as_echo_n "(cached) " >&6 | |
9472 | else | |
9473 | lt_cv_prog_compiler_pic_works=no | |
9474 | ac_outfile=conftest.$ac_objext | |
9475 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9476 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9477 | # Insert the option either (1) after the last *FLAGS variable, or | |
9478 | # (2) before a word containing "conftest.", or (3) at the end. | |
9479 | # Note that $ac_compile itself does not contain backslashes and begins | |
9480 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9481 | # The option is referenced via a variable to avoid confusing sed. | |
9482 | lt_compile=`echo "$ac_compile" | $SED \ | |
9483 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9484 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9485 | -e 's:$: $lt_compiler_flag:'` | |
9486 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9487 | (eval "$lt_compile" 2>conftest.err) | |
9488 | ac_status=$? | |
9489 | cat conftest.err >&5 | |
9490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9491 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9492 | # The compiler can only warn and ignore the option if not recognized | |
9493 | # So say no if there are warnings other than the usual output. | |
9494 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9495 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9496 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9497 | lt_cv_prog_compiler_pic_works=yes | |
9498 | fi | |
9499 | fi | |
9500 | $RM -r conftest* | |
9c60689e | 9501 | |
a243b558 JF |
9502 | fi |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9504 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9505 | |
a243b558 JF |
9506 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9507 | case $lt_prog_compiler_pic in | |
9508 | "" | " "*) ;; | |
9509 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9510 | esac | |
9511 | else | |
9512 | lt_prog_compiler_pic= | |
9513 | lt_prog_compiler_can_build_shared=no | |
9514 | fi | |
9c60689e | 9515 | |
a243b558 | 9516 | fi |
9c60689e DWT |
9517 | |
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9c60689e DWT |
9523 | |
9524 | ||
9525 | ||
9526 | ||
9527 | ||
a243b558 JF |
9528 | # |
9529 | # Check to make sure the static flag actually works. | |
9530 | # | |
9531 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9533 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9534 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9535 | $as_echo_n "(cached) " >&6 | |
9536 | else | |
9537 | lt_cv_prog_compiler_static_works=no | |
9538 | save_LDFLAGS="$LDFLAGS" | |
9539 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9540 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9541 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9542 | # The linker can only warn and ignore the option if not recognized | |
9543 | # So say no if there are warnings | |
9544 | if test -s conftest.err; then | |
9545 | # Append any errors to the config.log. | |
9546 | cat conftest.err 1>&5 | |
9547 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9548 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9549 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9550 | lt_cv_prog_compiler_static_works=yes | |
9551 | fi | |
9552 | else | |
9553 | lt_cv_prog_compiler_static_works=yes | |
9554 | fi | |
9555 | fi | |
9556 | $RM -r conftest* | |
9557 | LDFLAGS="$save_LDFLAGS" | |
9c60689e | 9558 | |
a243b558 JF |
9559 | fi |
9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9561 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9562 | |
a243b558 JF |
9563 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9564 | : | |
9c60689e | 9565 | else |
a243b558 | 9566 | lt_prog_compiler_static= |
9c60689e | 9567 | fi |
9c60689e | 9568 | |
9c60689e | 9569 | |
9c60689e | 9570 | |
9c60689e | 9571 | |
9c60689e | 9572 | |
9c60689e | 9573 | |
9c60689e | 9574 | |
a243b558 JF |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9576 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9577 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9578 | $as_echo_n "(cached) " >&6 | |
9579 | else | |
9580 | lt_cv_prog_compiler_c_o=no | |
9581 | $RM -r conftest 2>/dev/null | |
9582 | mkdir conftest | |
9583 | cd conftest | |
9584 | mkdir out | |
9585 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9586 | |
a243b558 JF |
9587 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9588 | # Insert the option either (1) after the last *FLAGS variable, or | |
9589 | # (2) before a word containing "conftest.", or (3) at the end. | |
9590 | # Note that $ac_compile itself does not contain backslashes and begins | |
9591 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9592 | lt_compile=`echo "$ac_compile" | $SED \ | |
9593 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9594 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9595 | -e 's:$: $lt_compiler_flag:'` | |
9596 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9597 | (eval "$lt_compile" 2>out/conftest.err) | |
9598 | ac_status=$? | |
9599 | cat out/conftest.err >&5 | |
9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9601 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9602 | then | |
9603 | # The compiler can only warn and ignore the option if not recognized | |
9604 | # So say no if there are warnings | |
9605 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9606 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9607 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9608 | lt_cv_prog_compiler_c_o=yes | |
9609 | fi | |
9610 | fi | |
9611 | chmod u+w . 2>&5 | |
9612 | $RM -r conftest* | |
9613 | # SGI C++ compiler will create directory out/ii_files/ for | |
9614 | # template instantiation | |
9615 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9616 | $RM out/* && rmdir out | |
9617 | cd .. | |
9618 | $RM -r conftest | |
9619 | $RM -r conftest* | |
9c60689e | 9620 | |
a243b558 JF |
9621 | fi |
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9623 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9624 | |
ee134472 | 9625 | |
ee134472 | 9626 | |
ee134472 | 9627 | |
ee134472 | 9628 | |
9c60689e | 9629 | |
a243b558 JF |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9631 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9632 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9633 | $as_echo_n "(cached) " >&6 | |
9634 | else | |
9635 | lt_cv_prog_compiler_c_o=no | |
9636 | $RM -r conftest 2>/dev/null | |
9637 | mkdir conftest | |
9638 | cd conftest | |
9639 | mkdir out | |
9640 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9641 | |
a243b558 JF |
9642 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9643 | # Insert the option either (1) after the last *FLAGS variable, or | |
9644 | # (2) before a word containing "conftest.", or (3) at the end. | |
9645 | # Note that $ac_compile itself does not contain backslashes and begins | |
9646 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9647 | lt_compile=`echo "$ac_compile" | $SED \ | |
9648 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9649 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9650 | -e 's:$: $lt_compiler_flag:'` | |
9651 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9652 | (eval "$lt_compile" 2>out/conftest.err) | |
9653 | ac_status=$? | |
9654 | cat out/conftest.err >&5 | |
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9656 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9657 | then | |
9658 | # The compiler can only warn and ignore the option if not recognized | |
9659 | # So say no if there are warnings | |
9660 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9661 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9662 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9663 | lt_cv_prog_compiler_c_o=yes | |
9664 | fi | |
9665 | fi | |
9666 | chmod u+w . 2>&5 | |
9667 | $RM -r conftest* | |
9668 | # SGI C++ compiler will create directory out/ii_files/ for | |
9669 | # template instantiation | |
9670 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9671 | $RM out/* && rmdir out | |
9672 | cd .. | |
9673 | $RM -r conftest | |
9674 | $RM -r conftest* | |
9c60689e | 9675 | |
a243b558 JF |
9676 | fi |
9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9678 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9679 | |
9c60689e | 9680 | |
a243b558 JF |
9681 | |
9682 | ||
9683 | hard_links="nottested" | |
9684 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9685 | # do not overwrite the value of need_locks provided by the user | |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9687 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9688 | hard_links=yes | |
9689 | $RM -r conftest* | |
9690 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9691 | touch conftest.a | |
9692 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9693 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9695 | $as_echo "$hard_links" >&6; } | |
9696 | if test "$hard_links" = no; then | |
9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9698 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9699 | need_locks=warn | |
9c60689e | 9700 | fi |
a243b558 JF |
9701 | else |
9702 | need_locks=no | |
9703 | fi | |
9c60689e | 9704 | |
ee134472 | 9705 | |
9c60689e | 9706 | |
9c60689e | 9707 | |
9c60689e | 9708 | |
a243b558 JF |
9709 | |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9711 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9712 | ||
9713 | runpath_var= | |
9714 | allow_undefined_flag= | |
9715 | always_export_symbols=no | |
9716 | archive_cmds= | |
9717 | archive_expsym_cmds= | |
9718 | compiler_needs_object=no | |
9719 | enable_shared_with_static_runtimes=no | |
9720 | export_dynamic_flag_spec= | |
9721 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9722 | hardcode_automatic=no | |
9723 | hardcode_direct=no | |
9724 | hardcode_direct_absolute=no | |
9725 | hardcode_libdir_flag_spec= | |
9726 | hardcode_libdir_separator= | |
9727 | hardcode_minus_L=no | |
9728 | hardcode_shlibpath_var=unsupported | |
9729 | inherit_rpath=no | |
9730 | link_all_deplibs=unknown | |
9731 | module_cmds= | |
9732 | module_expsym_cmds= | |
9733 | old_archive_from_new_cmds= | |
9734 | old_archive_from_expsyms_cmds= | |
9735 | thread_safe_flag_spec= | |
9736 | whole_archive_flag_spec= | |
9737 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9738 | # included in the symbol list | |
9739 | include_expsyms= | |
9740 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9741 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9742 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9743 | # as well as any symbol that contains `d'. | |
9744 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9745 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9746 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9747 | # the symbol is explicitly referenced. Since portable code cannot | |
9748 | # rely on this symbol name, it's probably fine to never include it in | |
9749 | # preloaded symbol tables. | |
9750 | # Exclude shared library initialization/finalization symbols. | |
9751 | extract_expsyms_cmds= | |
9752 | ||
9c60689e | 9753 | case $host_os in |
a243b558 JF |
9754 | cygwin* | mingw* | pw32* | cegcc*) |
9755 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9756 | # When not using gcc, we currently assume that we are using | |
9757 | # Microsoft Visual C++. | |
9758 | if test "$GCC" != yes; then | |
9759 | with_gnu_ld=no | |
9760 | fi | |
9c60689e | 9761 | ;; |
a243b558 JF |
9762 | interix*) |
9763 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9764 | with_gnu_ld=yes | |
9765 | ;; | |
9766 | openbsd*) | |
9767 | with_gnu_ld=no | |
9c60689e DWT |
9768 | ;; |
9769 | esac | |
9c60689e | 9770 | |
a243b558 | 9771 | ld_shlibs=yes |
ee134472 | 9772 | |
a243b558 JF |
9773 | # On some targets, GNU ld is compatible enough with the native linker |
9774 | # that we're better off using the native interface for both. | |
9775 | lt_use_gnu_ld_interface=no | |
9776 | if test "$with_gnu_ld" = yes; then | |
9777 | case $host_os in | |
9778 | aix*) | |
9779 | # The AIX port of GNU ld has always aspired to compatibility | |
9780 | # with the native linker. However, as the warning in the GNU ld | |
9781 | # block says, versions before 2.19.5* couldn't really create working | |
9782 | # shared libraries, regardless of the interface used. | |
9783 | case `$LD -v 2>&1` in | |
9784 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9785 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9786 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9787 | *) | |
9788 | lt_use_gnu_ld_interface=yes | |
9789 | ;; | |
9790 | esac | |
9791 | ;; | |
9792 | *) | |
9793 | lt_use_gnu_ld_interface=yes | |
9794 | ;; | |
9795 | esac | |
9796 | fi | |
9c60689e | 9797 | |
a243b558 JF |
9798 | if test "$lt_use_gnu_ld_interface" = yes; then |
9799 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9800 | wlarc='${wl}' | |
9c60689e | 9801 | |
a243b558 JF |
9802 | # Set some defaults for GNU ld with shared library support. These |
9803 | # are reset later if shared libraries are not supported. Putting them | |
9804 | # here allows them to be overridden if necessary. | |
9805 | runpath_var=LD_RUN_PATH | |
9806 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9807 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9808 | # ancient GNU ld didn't support --whole-archive et. al. | |
9809 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9810 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9811 | else | |
9812 | whole_archive_flag_spec= | |
9813 | fi | |
9814 | supports_anon_versioning=no | |
9815 | case `$LD -v 2>&1` in | |
9816 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9817 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9818 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9819 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9820 | *\ 2.11.*) ;; # other 2.11 versions | |
9821 | *) supports_anon_versioning=yes ;; | |
9822 | esac | |
ee134472 | 9823 | |
a243b558 JF |
9824 | # See if GNU ld supports shared libraries. |
9825 | case $host_os in | |
9826 | aix[3-9]*) | |
9827 | # On AIX/PPC, the GNU linker is very broken | |
9828 | if test "$host_cpu" != ia64; then | |
9829 | ld_shlibs=no | |
9830 | cat <<_LT_EOF 1>&2 | |
ee134472 | 9831 | |
a243b558 JF |
9832 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9833 | *** to be unable to reliably create shared libraries on AIX. | |
9834 | *** Therefore, libtool is disabling shared libraries support. If you | |
9835 | *** really care for shared libraries, you may want to install binutils | |
9836 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9837 | *** You will then need to restart the configuration process. | |
9c60689e | 9838 | |
a243b558 JF |
9839 | _LT_EOF |
9840 | fi | |
9841 | ;; | |
9c60689e | 9842 | |
a243b558 JF |
9843 | amigaos*) |
9844 | case $host_cpu in | |
9845 | powerpc) | |
9846 | # see comment about AmigaOS4 .so support | |
9847 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9848 | archive_expsym_cmds='' | |
9849 | ;; | |
9850 | m68k) | |
9851 | 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)' | |
9852 | hardcode_libdir_flag_spec='-L$libdir' | |
9853 | hardcode_minus_L=yes | |
9854 | ;; | |
9855 | esac | |
9856 | ;; | |
9c60689e | 9857 | |
a243b558 JF |
9858 | beos*) |
9859 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9860 | allow_undefined_flag=unsupported | |
9861 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9862 | # support --undefined. This deserves some investigation. FIXME | |
9863 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9864 | else | |
9865 | ld_shlibs=no | |
9866 | fi | |
9867 | ;; | |
9c60689e | 9868 | |
a243b558 JF |
9869 | cygwin* | mingw* | pw32* | cegcc*) |
9870 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9871 | # as there is no search path for DLLs. | |
9872 | hardcode_libdir_flag_spec='-L$libdir' | |
9873 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9874 | allow_undefined_flag=unsupported | |
9875 | always_export_symbols=no | |
9876 | enable_shared_with_static_runtimes=yes | |
9877 | 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' | |
9878 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 9879 | |
a243b558 JF |
9880 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9882 | # If the export-symbols file already is a .def file (1st line | |
9883 | # is EXPORTS), use it as is; otherwise, prepend... | |
9884 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9885 | cp $export_symbols $output_objdir/$soname.def; | |
9886 | else | |
9887 | echo EXPORTS > $output_objdir/$soname.def; | |
9888 | cat $export_symbols >> $output_objdir/$soname.def; | |
9889 | fi~ | |
9890 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9891 | else | |
9892 | ld_shlibs=no | |
9893 | fi | |
9894 | ;; | |
9c60689e | 9895 | |
a243b558 JF |
9896 | haiku*) |
9897 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9898 | link_all_deplibs=yes | |
9899 | ;; | |
9c60689e | 9900 | |
a243b558 JF |
9901 | interix[3-9]*) |
9902 | hardcode_direct=no | |
9903 | hardcode_shlibpath_var=no | |
9904 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9905 | export_dynamic_flag_spec='${wl}-E' | |
9906 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9907 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9908 | # default) and relocated if they conflict, which is a slow very memory | |
9909 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9910 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9911 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9912 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9913 | 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' | |
9914 | ;; | |
9c60689e | 9915 | |
a243b558 JF |
9916 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9917 | tmp_diet=no | |
9918 | if test "$host_os" = linux-dietlibc; then | |
9919 | case $cc_basename in | |
9920 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9921 | esac | |
9922 | fi | |
9923 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9924 | && test "$tmp_diet" = no | |
9925 | then | |
9926 | tmp_addflag=' $pic_flag' | |
9927 | tmp_sharedflag='-shared' | |
9928 | case $cc_basename,$host_cpu in | |
9929 | pgcc*) # Portland Group C compiler | |
9930 | 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' | |
9931 | tmp_addflag=' $pic_flag' | |
9932 | ;; | |
9933 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9934 | # Portland Group f77 and f90 compilers | |
9935 | 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' | |
9936 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9937 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9938 | tmp_addflag=' -i_dynamic' ;; | |
9939 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9940 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9941 | ifc* | ifort*) # Intel Fortran compiler | |
9942 | tmp_addflag=' -nofor_main' ;; | |
9943 | lf95*) # Lahey Fortran 8.1 | |
9944 | whole_archive_flag_spec= | |
9945 | tmp_sharedflag='--shared' ;; | |
9946 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9947 | tmp_sharedflag='-qmkshrobj' | |
9948 | tmp_addflag= ;; | |
9949 | nvcc*) # Cuda Compiler Driver 2.2 | |
9950 | 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' | |
9951 | compiler_needs_object=yes | |
9952 | ;; | |
9953 | esac | |
9954 | case `$CC -V 2>&1 | sed 5q` in | |
9955 | *Sun\ C*) # Sun C 5.9 | |
9956 | 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' | |
9957 | compiler_needs_object=yes | |
9958 | tmp_sharedflag='-G' ;; | |
9959 | *Sun\ F*) # Sun Fortran 8.3 | |
9960 | tmp_sharedflag='-G' ;; | |
9961 | esac | |
9962 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9c60689e | 9963 | |
a243b558 JF |
9964 | if test "x$supports_anon_versioning" = xyes; then |
9965 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9966 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9967 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9968 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9969 | fi | |
9c60689e | 9970 | |
a243b558 JF |
9971 | case $cc_basename in |
9972 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9973 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9974 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9975 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9976 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9977 | if test "x$supports_anon_versioning" = xyes; then | |
9978 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9979 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9980 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9981 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9982 | fi | |
9983 | ;; | |
9984 | esac | |
9985 | else | |
9986 | ld_shlibs=no | |
9987 | fi | |
9988 | ;; | |
9c60689e | 9989 | |
a243b558 JF |
9990 | netbsd*) |
9991 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9992 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9993 | wlarc= | |
9994 | else | |
9995 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9996 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9997 | fi | |
9998 | ;; | |
9c60689e | 9999 | |
a243b558 JF |
10000 | solaris*) |
10001 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10002 | ld_shlibs=no | |
10003 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10004 | |
a243b558 JF |
10005 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10006 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10007 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10008 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10009 | *** your PATH or compiler configuration so that the native linker is | |
10010 | *** used, and then restart. | |
9c60689e | 10011 | |
a243b558 JF |
10012 | _LT_EOF |
10013 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10014 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10015 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10016 | else | |
10017 | ld_shlibs=no | |
10018 | fi | |
10019 | ;; | |
9c60689e | 10020 | |
a243b558 JF |
10021 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10022 | case `$LD -v 2>&1` in | |
10023 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10024 | ld_shlibs=no | |
10025 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10026 | |
a243b558 JF |
10027 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
10028 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10029 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10030 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10031 | *** your PATH or compiler configuration so that the native linker is | |
10032 | *** used, and then restart. | |
9c60689e | 10033 | |
a243b558 JF |
10034 | _LT_EOF |
10035 | ;; | |
10036 | *) | |
10037 | # For security reasons, it is highly recommended that you always | |
10038 | # use absolute paths for naming shared libraries, and exclude the | |
10039 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10040 | # requires that you compile everything twice, which is a pain. | |
10041 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10042 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10043 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10044 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10045 | else | |
10046 | ld_shlibs=no | |
10047 | fi | |
10048 | ;; | |
10049 | esac | |
10050 | ;; | |
9c60689e | 10051 | |
a243b558 JF |
10052 | sunos4*) |
10053 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10054 | wlarc= | |
10055 | hardcode_direct=yes | |
10056 | hardcode_shlibpath_var=no | |
10057 | ;; | |
9c60689e | 10058 | |
a243b558 JF |
10059 | *) |
10060 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10061 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10062 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10063 | else | |
10064 | ld_shlibs=no | |
10065 | fi | |
10066 | ;; | |
10067 | esac | |
9c60689e | 10068 | |
a243b558 JF |
10069 | if test "$ld_shlibs" = no; then |
10070 | runpath_var= | |
10071 | hardcode_libdir_flag_spec= | |
10072 | export_dynamic_flag_spec= | |
10073 | whole_archive_flag_spec= | |
10074 | fi | |
10075 | else | |
10076 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10077 | case $host_os in | |
10078 | aix3*) | |
10079 | allow_undefined_flag=unsupported | |
10080 | always_export_symbols=yes | |
10081 | 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' | |
10082 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10083 | # are no directories specified by -L. | |
10084 | hardcode_minus_L=yes | |
10085 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10086 | # Neither direct hardcoding nor static linking is supported with a | |
10087 | # broken collect2. | |
10088 | hardcode_direct=unsupported | |
10089 | fi | |
10090 | ;; | |
9c60689e | 10091 | |
a243b558 JF |
10092 | aix[4-9]*) |
10093 | if test "$host_cpu" = ia64; then | |
10094 | # On IA64, the linker does run time linking by default, so we don't | |
10095 | # have to do anything special. | |
10096 | aix_use_runtimelinking=no | |
10097 | exp_sym_flag='-Bexport' | |
10098 | no_entry_flag="" | |
10099 | else | |
10100 | # If we're using GNU nm, then we don't want the "-C" option. | |
10101 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10102 | # Also, AIX nm treats weak defined symbols like other global | |
10103 | # defined symbols, whereas GNU nm marks them as "W". | |
10104 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10105 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10106 | else | |
10107 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10108 | fi | |
10109 | aix_use_runtimelinking=no | |
9c60689e | 10110 | |
a243b558 JF |
10111 | # Test if we are trying to use run time linking or normal |
10112 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10113 | # need to do runtime linking. | |
10114 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10115 | for ld_flag in $LDFLAGS; do | |
10116 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10117 | aix_use_runtimelinking=yes | |
10118 | break | |
10119 | fi | |
10120 | done | |
10121 | ;; | |
10122 | esac | |
9c60689e | 10123 | |
a243b558 JF |
10124 | exp_sym_flag='-bexport' |
10125 | no_entry_flag='-bnoentry' | |
10126 | fi | |
9c60689e | 10127 | |
a243b558 JF |
10128 | # When large executables or shared objects are built, AIX ld can |
10129 | # have problems creating the table of contents. If linking a library | |
10130 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10131 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10132 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10133 | |
a243b558 JF |
10134 | archive_cmds='' |
10135 | hardcode_direct=yes | |
10136 | hardcode_direct_absolute=yes | |
10137 | hardcode_libdir_separator=':' | |
10138 | link_all_deplibs=yes | |
10139 | file_list_spec='${wl}-f,' | |
9c60689e | 10140 | |
a243b558 JF |
10141 | if test "$GCC" = yes; then |
10142 | case $host_os in aix4.[012]|aix4.[012].*) | |
10143 | # We only want to do this on AIX 4.2 and lower, the check | |
10144 | # below for broken collect2 doesn't work under 4.3+ | |
10145 | collect2name=`${CC} -print-prog-name=collect2` | |
10146 | if test -f "$collect2name" && | |
10147 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10148 | then | |
10149 | # We have reworked collect2 | |
10150 | : | |
10151 | else | |
10152 | # We have old collect2 | |
10153 | hardcode_direct=unsupported | |
10154 | # It fails to find uninstalled libraries when the uninstalled | |
10155 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10156 | # to unsupported forces relinking | |
10157 | hardcode_minus_L=yes | |
10158 | hardcode_libdir_flag_spec='-L$libdir' | |
10159 | hardcode_libdir_separator= | |
10160 | fi | |
10161 | ;; | |
10162 | esac | |
10163 | shared_flag='-shared' | |
10164 | if test "$aix_use_runtimelinking" = yes; then | |
10165 | shared_flag="$shared_flag "'${wl}-G' | |
10166 | fi | |
10167 | else | |
10168 | # not using gcc | |
10169 | if test "$host_cpu" = ia64; then | |
10170 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10171 | # chokes on -Wl,-G. The following line is correct: | |
10172 | shared_flag='-G' | |
10173 | else | |
10174 | if test "$aix_use_runtimelinking" = yes; then | |
10175 | shared_flag='${wl}-G' | |
10176 | else | |
10177 | shared_flag='${wl}-bM:SRE' | |
10178 | fi | |
10179 | fi | |
10180 | fi | |
9c60689e | 10181 | |
a243b558 JF |
10182 | export_dynamic_flag_spec='${wl}-bexpall' |
10183 | # It seems that -bexpall does not export symbols beginning with | |
10184 | # underscore (_), so it is better to generate a list of symbols to export. | |
10185 | always_export_symbols=yes | |
10186 | if test "$aix_use_runtimelinking" = yes; then | |
10187 | # Warning - without using the other runtime loading flags (-brtl), | |
10188 | # -berok will link without error, but may produce a broken library. | |
10189 | allow_undefined_flag='-berok' | |
10190 | # Determine the default libpath from the value encoded in an | |
10191 | # empty executable. | |
10192 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10193 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10194 | else |
a243b558 | 10195 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10196 | $as_echo_n "(cached) " >&6 |
10197 | else | |
a243b558 | 10198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10199 | /* end confdefs.h. */ |
10200 | ||
9c60689e DWT |
10201 | int |
10202 | main () | |
10203 | { | |
a243b558 | 10204 | |
9c60689e DWT |
10205 | ; |
10206 | return 0; | |
10207 | } | |
10208 | _ACEOF | |
10209 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10210 | |
10211 | lt_aix_libpath_sed=' | |
10212 | /Import File Strings/,/^$/ { | |
10213 | /^0/ { | |
10214 | s/^0 *\([^ ]*\) *$/\1/ | |
10215 | p | |
10216 | } | |
10217 | }' | |
10218 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10219 | # Check for a 64-bit object if we didn't find anything. | |
10220 | if test -z "$lt_cv_aix_libpath_"; then | |
10221 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10222 | fi | |
9c60689e DWT |
10223 | fi |
10224 | rm -f core conftest.err conftest.$ac_objext \ | |
10225 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10226 | if test -z "$lt_cv_aix_libpath_"; then |
10227 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10228 | fi | |
9c60689e DWT |
10229 | |
10230 | fi | |
10231 | ||
a243b558 JF |
10232 | aix_libpath=$lt_cv_aix_libpath_ |
10233 | fi | |
9c60689e | 10234 | |
a243b558 JF |
10235 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10236 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10237 | else | |
10238 | if test "$host_cpu" = ia64; then | |
10239 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10240 | allow_undefined_flag="-z nodefs" | |
10241 | 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" | |
10242 | else | |
10243 | # Determine the default libpath from the value encoded in an | |
10244 | # empty executable. | |
10245 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10246 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10247 | else |
a243b558 | 10248 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10249 | $as_echo_n "(cached) " >&6 |
10250 | else | |
a243b558 | 10251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10252 | /* end confdefs.h. */ |
10253 | ||
9c60689e DWT |
10254 | int |
10255 | main () | |
10256 | { | |
a243b558 | 10257 | |
9c60689e DWT |
10258 | ; |
10259 | return 0; | |
10260 | } | |
10261 | _ACEOF | |
10262 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10263 | |
a243b558 JF |
10264 | lt_aix_libpath_sed=' |
10265 | /Import File Strings/,/^$/ { | |
10266 | /^0/ { | |
10267 | s/^0 *\([^ ]*\) *$/\1/ | |
10268 | p | |
10269 | } | |
10270 | }' | |
10271 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10272 | # Check for a 64-bit object if we didn't find anything. | |
10273 | if test -z "$lt_cv_aix_libpath_"; then | |
10274 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10275 | fi | |
9c60689e DWT |
10276 | fi |
10277 | rm -f core conftest.err conftest.$ac_objext \ | |
10278 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10279 | if test -z "$lt_cv_aix_libpath_"; then |
10280 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10281 | fi | |
10282 | ||
9c60689e | 10283 | fi |
9c60689e | 10284 | |
a243b558 JF |
10285 | aix_libpath=$lt_cv_aix_libpath_ |
10286 | fi | |
10287 | ||
10288 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10289 | # Warning - without using the other run time loading flags, | |
10290 | # -berok will link without error, but may produce a broken library. | |
10291 | no_undefined_flag=' ${wl}-bernotok' | |
10292 | allow_undefined_flag=' ${wl}-berok' | |
10293 | if test "$with_gnu_ld" = yes; then | |
10294 | # We only use this code for GNU lds that support --whole-archive. | |
10295 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10296 | else | |
10297 | # Exported symbols can be pulled into shared objects from archives | |
10298 | whole_archive_flag_spec='$convenience' | |
10299 | fi | |
10300 | archive_cmds_need_lc=yes | |
10301 | # This is similar to how AIX traditionally builds its shared libraries. | |
10302 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
10303 | fi | |
10304 | fi | |
10305 | ;; | |
10306 | ||
10307 | amigaos*) | |
10308 | case $host_cpu in | |
10309 | powerpc) | |
10310 | # see comment about AmigaOS4 .so support | |
10311 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10312 | archive_expsym_cmds='' | |
10313 | ;; | |
10314 | m68k) | |
10315 | 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)' | |
10316 | hardcode_libdir_flag_spec='-L$libdir' | |
10317 | hardcode_minus_L=yes | |
10318 | ;; | |
10319 | esac | |
10320 | ;; | |
10321 | ||
10322 | bsdi[45]*) | |
10323 | export_dynamic_flag_spec=-rdynamic | |
10324 | ;; | |
10325 | ||
10326 | cygwin* | mingw* | pw32* | cegcc*) | |
10327 | # When not using gcc, we currently assume that we are using | |
10328 | # Microsoft Visual C++. | |
10329 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10330 | # no search path for DLLs. | |
10331 | case $cc_basename in | |
10332 | cl*) | |
10333 | # Native MSVC | |
10334 | hardcode_libdir_flag_spec=' ' | |
10335 | allow_undefined_flag=unsupported | |
10336 | always_export_symbols=yes | |
10337 | file_list_spec='@' | |
10338 | # Tell ltmain to make .lib files, not .a files. | |
10339 | libext=lib | |
10340 | # Tell ltmain to make .dll files, not .so files. | |
10341 | shrext_cmds=".dll" | |
10342 | # FIXME: Setting linknames here is a bad hack. | |
10343 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10344 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10345 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10346 | else | |
10347 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10348 | fi~ | |
10349 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10350 | linknames=' | |
10351 | # The linker will not automatically build a static lib if we build a DLL. | |
10352 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10353 | enable_shared_with_static_runtimes=yes | |
10354 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10355 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10356 | # Don't use ranlib | |
10357 | old_postinstall_cmds='chmod 644 $oldlib' | |
10358 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10359 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10360 | case $lt_outputfile in | |
10361 | *.exe|*.EXE) ;; | |
10362 | *) | |
10363 | lt_outputfile="$lt_outputfile.exe" | |
10364 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10365 | ;; | |
10366 | esac~ | |
10367 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10368 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10369 | $RM "$lt_outputfile.manifest"; | |
10370 | fi' | |
10371 | ;; | |
10372 | *) | |
10373 | # Assume MSVC wrapper | |
10374 | hardcode_libdir_flag_spec=' ' | |
10375 | allow_undefined_flag=unsupported | |
10376 | # Tell ltmain to make .lib files, not .a files. | |
10377 | libext=lib | |
10378 | # Tell ltmain to make .dll files, not .so files. | |
10379 | shrext_cmds=".dll" | |
10380 | # FIXME: Setting linknames here is a bad hack. | |
10381 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10382 | # The linker will automatically build a .lib file if we build a DLL. | |
10383 | old_archive_from_new_cmds='true' | |
10384 | # FIXME: Should let the user specify the lib program. | |
10385 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10386 | enable_shared_with_static_runtimes=yes | |
10387 | ;; | |
10388 | esac | |
10389 | ;; | |
10390 | ||
10391 | darwin* | rhapsody*) | |
10392 | ||
10393 | ||
10394 | archive_cmds_need_lc=no | |
10395 | hardcode_direct=no | |
10396 | hardcode_automatic=yes | |
10397 | hardcode_shlibpath_var=unsupported | |
10398 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10399 | 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\"`' | |
10400 | ||
10401 | else | |
10402 | whole_archive_flag_spec='' | |
10403 | fi | |
10404 | link_all_deplibs=yes | |
10405 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10406 | case $cc_basename in | |
10407 | ifort*) _lt_dar_can_shared=yes ;; | |
10408 | *) _lt_dar_can_shared=$GCC ;; | |
10409 | esac | |
10410 | if test "$_lt_dar_can_shared" = "yes"; then | |
10411 | output_verbose_link_cmd=func_echo_all | |
10412 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10413 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10414 | 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}" | |
10415 | 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}" | |
10416 | ||
10417 | else | |
10418 | ld_shlibs=no | |
10419 | fi | |
10420 | ||
10421 | ;; | |
10422 | ||
10423 | dgux*) | |
10424 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10425 | hardcode_libdir_flag_spec='-L$libdir' | |
10426 | hardcode_shlibpath_var=no | |
10427 | ;; | |
10428 | ||
10429 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10430 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10431 | # does not break anything, and helps significantly (at the cost of a little | |
10432 | # extra space). | |
10433 | freebsd2.2*) | |
10434 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10435 | hardcode_libdir_flag_spec='-R$libdir' | |
10436 | hardcode_direct=yes | |
10437 | hardcode_shlibpath_var=no | |
10438 | ;; | |
10439 | ||
10440 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10441 | freebsd2.*) | |
10442 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10443 | hardcode_direct=yes | |
10444 | hardcode_minus_L=yes | |
10445 | hardcode_shlibpath_var=no | |
10446 | ;; | |
10447 | ||
10448 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10449 | freebsd* | dragonfly*) | |
10450 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10451 | hardcode_libdir_flag_spec='-R$libdir' | |
10452 | hardcode_direct=yes | |
10453 | hardcode_shlibpath_var=no | |
10454 | ;; | |
10455 | ||
10456 | hpux9*) | |
10457 | if test "$GCC" = yes; then | |
10458 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10459 | else | |
10460 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10461 | fi | |
10462 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10463 | hardcode_libdir_separator=: | |
10464 | hardcode_direct=yes | |
10465 | ||
10466 | # hardcode_minus_L: Not really in the search PATH, | |
10467 | # but as the default location of the library. | |
10468 | hardcode_minus_L=yes | |
10469 | export_dynamic_flag_spec='${wl}-E' | |
10470 | ;; | |
10471 | ||
10472 | hpux10*) | |
10473 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10474 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10475 | else | |
10476 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10477 | fi | |
10478 | if test "$with_gnu_ld" = no; then | |
10479 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10480 | hardcode_libdir_separator=: | |
10481 | hardcode_direct=yes | |
10482 | hardcode_direct_absolute=yes | |
10483 | export_dynamic_flag_spec='${wl}-E' | |
10484 | # hardcode_minus_L: Not really in the search PATH, | |
10485 | # but as the default location of the library. | |
10486 | hardcode_minus_L=yes | |
10487 | fi | |
10488 | ;; | |
10489 | ||
10490 | hpux11*) | |
10491 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10492 | case $host_cpu in | |
10493 | hppa*64*) | |
10494 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10495 | ;; | |
10496 | ia64*) | |
10497 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10498 | ;; | |
10499 | *) | |
10500 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10501 | ;; | |
10502 | esac | |
10503 | else | |
10504 | case $host_cpu in | |
10505 | hppa*64*) | |
10506 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10507 | ;; | |
10508 | ia64*) | |
10509 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10510 | ;; | |
10511 | *) | |
10512 | ||
10513 | # Older versions of the 11.00 compiler do not understand -b yet | |
10514 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10516 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10517 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10518 | $as_echo_n "(cached) " >&6 | |
10519 | else | |
10520 | lt_cv_prog_compiler__b=no | |
10521 | save_LDFLAGS="$LDFLAGS" | |
10522 | LDFLAGS="$LDFLAGS -b" | |
10523 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10524 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10525 | # The linker can only warn and ignore the option if not recognized | |
10526 | # So say no if there are warnings | |
10527 | if test -s conftest.err; then | |
10528 | # Append any errors to the config.log. | |
10529 | cat conftest.err 1>&5 | |
10530 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10531 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10532 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10533 | lt_cv_prog_compiler__b=yes | |
10534 | fi | |
10535 | else | |
10536 | lt_cv_prog_compiler__b=yes | |
10537 | fi | |
10538 | fi | |
10539 | $RM -r conftest* | |
10540 | LDFLAGS="$save_LDFLAGS" | |
10541 | ||
10542 | fi | |
10543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10544 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10545 | ||
10546 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10547 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10548 | else | |
10549 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10550 | fi | |
10551 | ||
10552 | ;; | |
10553 | esac | |
10554 | fi | |
10555 | if test "$with_gnu_ld" = no; then | |
10556 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10557 | hardcode_libdir_separator=: | |
10558 | ||
10559 | case $host_cpu in | |
10560 | hppa*64*|ia64*) | |
10561 | hardcode_direct=no | |
10562 | hardcode_shlibpath_var=no | |
10563 | ;; | |
10564 | *) | |
10565 | hardcode_direct=yes | |
10566 | hardcode_direct_absolute=yes | |
10567 | export_dynamic_flag_spec='${wl}-E' | |
10568 | ||
10569 | # hardcode_minus_L: Not really in the search PATH, | |
10570 | # but as the default location of the library. | |
10571 | hardcode_minus_L=yes | |
10572 | ;; | |
10573 | esac | |
10574 | fi | |
10575 | ;; | |
10576 | ||
10577 | irix5* | irix6* | nonstopux*) | |
10578 | if test "$GCC" = yes; then | |
10579 | 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' | |
10580 | # Try to use the -exported_symbol ld option, if it does not | |
10581 | # work, assume that -exports_file does not work either and | |
10582 | # implicitly export all symbols. | |
10583 | # This should be the same for all languages, so no per-tag cache variable. | |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10585 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10586 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10587 | $as_echo_n "(cached) " >&6 | |
10588 | else | |
10589 | save_LDFLAGS="$LDFLAGS" | |
10590 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10592 | /* end confdefs.h. */ | |
10593 | int foo (void) { return 0; } | |
10594 | _ACEOF | |
10595 | if ac_fn_c_try_link "$LINENO"; then : | |
10596 | lt_cv_irix_exported_symbol=yes | |
10597 | else | |
10598 | lt_cv_irix_exported_symbol=no | |
10599 | fi | |
10600 | rm -f core conftest.err conftest.$ac_objext \ | |
10601 | conftest$ac_exeext conftest.$ac_ext | |
10602 | LDFLAGS="$save_LDFLAGS" | |
10603 | fi | |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10605 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10606 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10607 | 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' | |
10608 | fi | |
10609 | else | |
10610 | 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' | |
10611 | 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' | |
10612 | fi | |
10613 | archive_cmds_need_lc='no' | |
10614 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10615 | hardcode_libdir_separator=: | |
10616 | inherit_rpath=yes | |
10617 | link_all_deplibs=yes | |
10618 | ;; | |
10619 | ||
10620 | netbsd*) | |
10621 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10622 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10623 | else | |
10624 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10625 | fi | |
10626 | hardcode_libdir_flag_spec='-R$libdir' | |
10627 | hardcode_direct=yes | |
10628 | hardcode_shlibpath_var=no | |
10629 | ;; | |
10630 | ||
10631 | newsos6) | |
10632 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10633 | hardcode_direct=yes | |
10634 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10635 | hardcode_libdir_separator=: | |
10636 | hardcode_shlibpath_var=no | |
10637 | ;; | |
10638 | ||
10639 | *nto* | *qnx*) | |
10640 | ;; | |
10641 | ||
10642 | openbsd*) | |
10643 | if test -f /usr/libexec/ld.so; then | |
10644 | hardcode_direct=yes | |
10645 | hardcode_shlibpath_var=no | |
10646 | hardcode_direct_absolute=yes | |
10647 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10648 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10649 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10650 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10651 | export_dynamic_flag_spec='${wl}-E' | |
10652 | else | |
10653 | case $host_os in | |
10654 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10655 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10656 | hardcode_libdir_flag_spec='-R$libdir' | |
10657 | ;; | |
10658 | *) | |
10659 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10660 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10661 | ;; | |
10662 | esac | |
10663 | fi | |
10664 | else | |
10665 | ld_shlibs=no | |
10666 | fi | |
10667 | ;; | |
10668 | ||
10669 | os2*) | |
10670 | hardcode_libdir_flag_spec='-L$libdir' | |
10671 | hardcode_minus_L=yes | |
10672 | allow_undefined_flag=unsupported | |
10673 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
10674 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10675 | ;; | |
10676 | ||
10677 | osf3*) | |
10678 | if test "$GCC" = yes; then | |
10679 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10680 | 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' | |
10681 | else | |
10682 | allow_undefined_flag=' -expect_unresolved \*' | |
10683 | 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' | |
10684 | fi | |
10685 | archive_cmds_need_lc='no' | |
10686 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10687 | hardcode_libdir_separator=: | |
10688 | ;; | |
10689 | ||
10690 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10691 | if test "$GCC" = yes; then | |
10692 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10693 | 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' | |
10694 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10695 | else | |
10696 | allow_undefined_flag=' -expect_unresolved \*' | |
10697 | 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' | |
10698 | 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~ | |
10699 | $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' | |
10700 | ||
10701 | # Both c and cxx compiler support -rpath directly | |
10702 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10703 | fi | |
10704 | archive_cmds_need_lc='no' | |
10705 | hardcode_libdir_separator=: | |
10706 | ;; | |
10707 | ||
10708 | solaris*) | |
10709 | no_undefined_flag=' -z defs' | |
10710 | if test "$GCC" = yes; then | |
10711 | wlarc='${wl}' | |
10712 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10713 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10714 | $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' | |
10715 | else | |
10716 | case `$CC -V 2>&1` in | |
10717 | *"Compilers 5.0"*) | |
10718 | wlarc='' | |
10719 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10720 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10721 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10722 | ;; | |
10723 | *) | |
10724 | wlarc='${wl}' | |
10725 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10726 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10727 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10728 | ;; | |
10729 | esac | |
10730 | fi | |
10731 | hardcode_libdir_flag_spec='-R$libdir' | |
10732 | hardcode_shlibpath_var=no | |
10733 | case $host_os in | |
10734 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10735 | *) | |
10736 | # The compiler driver will combine and reorder linker options, | |
10737 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10738 | # but is careful enough not to reorder. | |
10739 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10740 | if test "$GCC" = yes; then | |
10741 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10742 | else | |
10743 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10744 | fi | |
10745 | ;; | |
10746 | esac | |
10747 | link_all_deplibs=yes | |
10748 | ;; | |
10749 | ||
10750 | sunos4*) | |
10751 | if test "x$host_vendor" = xsequent; then | |
10752 | # Use $CC to link under sequent, because it throws in some extra .o | |
10753 | # files that make .init and .fini sections work. | |
10754 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10755 | else | |
10756 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10757 | fi | |
10758 | hardcode_libdir_flag_spec='-L$libdir' | |
10759 | hardcode_direct=yes | |
10760 | hardcode_minus_L=yes | |
10761 | hardcode_shlibpath_var=no | |
10762 | ;; | |
10763 | ||
10764 | sysv4) | |
10765 | case $host_vendor in | |
10766 | sni) | |
10767 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10768 | hardcode_direct=yes # is this really true??? | |
10769 | ;; | |
10770 | siemens) | |
10771 | ## LD is ld it makes a PLAMLIB | |
10772 | ## CC just makes a GrossModule. | |
10773 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10774 | reload_cmds='$CC -r -o $output$reload_objs' | |
10775 | hardcode_direct=no | |
10776 | ;; | |
10777 | motorola) | |
10778 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10779 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10780 | ;; | |
10781 | esac | |
10782 | runpath_var='LD_RUN_PATH' | |
10783 | hardcode_shlibpath_var=no | |
10784 | ;; | |
10785 | ||
10786 | sysv4.3*) | |
10787 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10788 | hardcode_shlibpath_var=no | |
10789 | export_dynamic_flag_spec='-Bexport' | |
10790 | ;; | |
10791 | ||
10792 | sysv4*MP*) | |
10793 | if test -d /usr/nec; then | |
10794 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10795 | hardcode_shlibpath_var=no | |
10796 | runpath_var=LD_RUN_PATH | |
10797 | hardcode_runpath_var=yes | |
10798 | ld_shlibs=yes | |
10799 | fi | |
10800 | ;; | |
10801 | ||
10802 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10803 | no_undefined_flag='${wl}-z,text' | |
10804 | archive_cmds_need_lc=no | |
10805 | hardcode_shlibpath_var=no | |
10806 | runpath_var='LD_RUN_PATH' | |
10807 | ||
10808 | if test "$GCC" = yes; then | |
10809 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10810 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10811 | else | |
10812 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10813 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10814 | fi | |
10815 | ;; | |
10816 | ||
10817 | sysv5* | sco3.2v5* | sco5v6*) | |
10818 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10819 | # link with -lc, and that would cause any symbols used from libc to | |
10820 | # always be unresolved, which means just about no library would | |
10821 | # ever link correctly. If we're not using GNU ld we use -z text | |
10822 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10823 | # as -z defs. | |
10824 | no_undefined_flag='${wl}-z,text' | |
10825 | allow_undefined_flag='${wl}-z,nodefs' | |
10826 | archive_cmds_need_lc=no | |
10827 | hardcode_shlibpath_var=no | |
10828 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10829 | hardcode_libdir_separator=':' | |
10830 | link_all_deplibs=yes | |
10831 | export_dynamic_flag_spec='${wl}-Bexport' | |
10832 | runpath_var='LD_RUN_PATH' | |
10833 | ||
10834 | if test "$GCC" = yes; then | |
10835 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10836 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10837 | else | |
10838 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10839 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10840 | fi | |
10841 | ;; | |
10842 | ||
10843 | uts4*) | |
10844 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10845 | hardcode_libdir_flag_spec='-L$libdir' | |
10846 | hardcode_shlibpath_var=no | |
10847 | ;; | |
10848 | ||
10849 | *) | |
10850 | ld_shlibs=no | |
10851 | ;; | |
10852 | esac | |
10853 | ||
10854 | if test x$host_vendor = xsni; then | |
10855 | case $host in | |
10856 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10857 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10858 | ;; | |
10859 | esac | |
10860 | fi | |
10861 | fi | |
10862 | ||
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10864 | $as_echo "$ld_shlibs" >&6; } | |
10865 | test "$ld_shlibs" = no && can_build_shared=no | |
10866 | ||
10867 | with_gnu_ld=$with_gnu_ld | |
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | # | |
10884 | # Do we need to explicitly link libc? | |
10885 | # | |
10886 | case "x$archive_cmds_need_lc" in | |
10887 | x|xyes) | |
10888 | # Assume -lc should be added | |
10889 | archive_cmds_need_lc=yes | |
10890 | ||
10891 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10892 | case $archive_cmds in | |
10893 | *'~'*) | |
10894 | # FIXME: we may have to deal with multi-command sequences. | |
10895 | ;; | |
10896 | '$CC '*) | |
10897 | # Test whether the compiler implicitly links with -lc since on some | |
10898 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10899 | # to ld, don't add -lc before -lgcc. | |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10901 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10902 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10903 | $as_echo_n "(cached) " >&6 | |
10904 | else | |
10905 | $RM -r conftest* | |
10906 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10907 | ||
10908 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10909 | (eval $ac_compile) 2>&5 | |
10910 | ac_status=$? | |
10911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10912 | test $ac_status = 0; } 2>conftest.err; then | |
10913 | soname=conftest | |
10914 | lib=conftest | |
10915 | libobjs=conftest.$ac_objext | |
10916 | deplibs= | |
10917 | wl=$lt_prog_compiler_wl | |
10918 | pic_flag=$lt_prog_compiler_pic | |
10919 | compiler_flags=-v | |
10920 | linker_flags=-v | |
10921 | verstring= | |
10922 | output_objdir=. | |
10923 | libname=conftest | |
10924 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10925 | allow_undefined_flag= | |
10926 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10927 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10928 | ac_status=$? | |
10929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10930 | test $ac_status = 0; } | |
10931 | then | |
10932 | lt_cv_archive_cmds_need_lc=no | |
10933 | else | |
10934 | lt_cv_archive_cmds_need_lc=yes | |
10935 | fi | |
10936 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10937 | else | |
10938 | cat conftest.err 1>&5 | |
10939 | fi | |
10940 | $RM -r conftest* | |
10941 | ||
10942 | fi | |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10944 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10945 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10946 | ;; | |
10947 | esac | |
10948 | fi | |
10949 | ;; | |
10950 | esac | |
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
10959 | ||
10960 | ||
10961 | ||
10962 | ||
10963 | ||
10964 | ||
10965 | ||
10966 | ||
10967 | ||
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11104 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11105 | ||
11106 | if test "$GCC" = yes; then | |
11107 | case $host_os in | |
11108 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11109 | *) lt_awk_arg="/^libraries:/" ;; | |
11110 | esac | |
11111 | case $host_os in | |
11112 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11113 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11114 | esac | |
11115 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11116 | case $lt_search_path_spec in | |
11117 | *\;*) | |
11118 | # if the path contains ";" then we assume it to be the separator | |
11119 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11120 | # assumed that no part of a normal pathname contains ";" but that should | |
11121 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11122 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11123 | ;; | |
11124 | *) | |
11125 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11126 | ;; | |
11127 | esac | |
11128 | # Ok, now we have the path, separated by spaces, we can step through it | |
11129 | # and add multilib dir if necessary. | |
11130 | lt_tmp_lt_search_path_spec= | |
11131 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11132 | for lt_sys_path in $lt_search_path_spec; do | |
11133 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11134 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11135 | else | |
11136 | test -d "$lt_sys_path" && \ | |
11137 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11138 | fi | |
11139 | done | |
11140 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11141 | BEGIN {RS=" "; FS="/|\n";} { | |
11142 | lt_foo=""; | |
11143 | lt_count=0; | |
11144 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11145 | if ($lt_i != "" && $lt_i != ".") { | |
11146 | if ($lt_i == "..") { | |
11147 | lt_count++; | |
11148 | } else { | |
11149 | if (lt_count == 0) { | |
11150 | lt_foo="/" $lt_i lt_foo; | |
11151 | } else { | |
11152 | lt_count--; | |
11153 | } | |
11154 | } | |
11155 | } | |
11156 | } | |
11157 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11158 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11159 | }'` | |
11160 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11161 | # for these hosts. | |
11162 | case $host_os in | |
11163 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11164 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11165 | esac | |
11166 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11167 | else | |
11168 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11169 | fi | |
11170 | library_names_spec= | |
11171 | libname_spec='lib$name' | |
11172 | soname_spec= | |
11173 | shrext_cmds=".so" | |
11174 | postinstall_cmds= | |
11175 | postuninstall_cmds= | |
11176 | finish_cmds= | |
11177 | finish_eval= | |
11178 | shlibpath_var= | |
11179 | shlibpath_overrides_runpath=unknown | |
11180 | version_type=none | |
11181 | dynamic_linker="$host_os ld.so" | |
11182 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11183 | need_lib_prefix=unknown | |
11184 | hardcode_into_libs=no | |
11185 | ||
11186 | # when you set need_version to no, make sure it does not cause -set_version | |
11187 | # flags to be left without arguments | |
11188 | need_version=unknown | |
11189 | ||
11190 | case $host_os in | |
11191 | aix3*) | |
11192 | version_type=linux # correct to gnu/linux during the next big refactor | |
11193 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11194 | shlibpath_var=LIBPATH | |
11195 | ||
11196 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11197 | soname_spec='${libname}${release}${shared_ext}$major' | |
11198 | ;; | |
11199 | ||
11200 | aix[4-9]*) | |
11201 | version_type=linux # correct to gnu/linux during the next big refactor | |
11202 | need_lib_prefix=no | |
11203 | need_version=no | |
11204 | hardcode_into_libs=yes | |
11205 | if test "$host_cpu" = ia64; then | |
11206 | # AIX 5 supports IA64 | |
11207 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11208 | shlibpath_var=LD_LIBRARY_PATH | |
11209 | else | |
11210 | # With GCC up to 2.95.x, collect2 would create an import file | |
11211 | # for dependence libraries. The import file would start with | |
11212 | # the line `#! .'. This would cause the generated library to | |
11213 | # depend on `.', always an invalid library. This was fixed in | |
11214 | # development snapshots of GCC prior to 3.0. | |
11215 | case $host_os in | |
11216 | aix4 | aix4.[01] | aix4.[01].*) | |
11217 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11218 | echo ' yes ' | |
11219 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11220 | : | |
11221 | else | |
11222 | can_build_shared=no | |
11223 | fi | |
11224 | ;; | |
11225 | esac | |
11226 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11227 | # soname into executable. Probably we can add versioning support to | |
11228 | # collect2, so additional links can be useful in future. | |
11229 | if test "$aix_use_runtimelinking" = yes; then | |
11230 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11231 | # instead of lib<name>.a to let people know that these are not | |
11232 | # typical AIX shared libraries. | |
11233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11234 | else | |
11235 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11236 | # and later when we are not doing run time linking. | |
11237 | library_names_spec='${libname}${release}.a $libname.a' | |
11238 | soname_spec='${libname}${release}${shared_ext}$major' | |
11239 | fi | |
11240 | shlibpath_var=LIBPATH | |
11241 | fi | |
11242 | ;; | |
11243 | ||
11244 | amigaos*) | |
11245 | case $host_cpu in | |
11246 | powerpc) | |
11247 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11248 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11250 | ;; | |
11251 | m68k) | |
11252 | library_names_spec='$libname.ixlibrary $libname.a' | |
11253 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11254 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' | |
11255 | ;; | |
11256 | esac | |
11257 | ;; | |
11258 | ||
11259 | beos*) | |
11260 | library_names_spec='${libname}${shared_ext}' | |
11261 | dynamic_linker="$host_os ld.so" | |
11262 | shlibpath_var=LIBRARY_PATH | |
11263 | ;; | |
11264 | ||
11265 | bsdi[45]*) | |
11266 | version_type=linux # correct to gnu/linux during the next big refactor | |
11267 | need_version=no | |
11268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11269 | soname_spec='${libname}${release}${shared_ext}$major' | |
11270 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11271 | shlibpath_var=LD_LIBRARY_PATH | |
11272 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11273 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11274 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11275 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11276 | # libtool to hard-code these into programs | |
11277 | ;; | |
11278 | ||
11279 | cygwin* | mingw* | pw32* | cegcc*) | |
11280 | version_type=windows | |
11281 | shrext_cmds=".dll" | |
11282 | need_version=no | |
11283 | need_lib_prefix=no | |
9c60689e | 11284 | |
a243b558 JF |
11285 | case $GCC,$cc_basename in |
11286 | yes,*) | |
11287 | # gcc | |
11288 | library_names_spec='$libname.dll.a' | |
11289 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11290 | postinstall_cmds='base_file=`basename \${file}`~ | |
11291 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11292 | dldir=$destdir/`dirname \$dlpath`~ | |
11293 | test -d \$dldir || mkdir -p \$dldir~ | |
11294 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11295 | chmod a+x \$dldir/$dlname~ | |
11296 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11297 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11298 | fi' | |
11299 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11300 | dlpath=$dir/\$dldll~ | |
11301 | $RM \$dlpath' | |
11302 | shlibpath_overrides_runpath=yes | |
9c60689e | 11303 | |
a243b558 JF |
11304 | case $host_os in |
11305 | cygwin*) | |
11306 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11307 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9c60689e | 11308 | |
a243b558 JF |
11309 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11310 | ;; | |
11311 | mingw* | cegcc*) | |
11312 | # MinGW DLLs use traditional 'lib' prefix | |
11313 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11314 | ;; | |
11315 | pw32*) | |
11316 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11317 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11318 | ;; | |
11319 | esac | |
11320 | dynamic_linker='Win32 ld.exe' | |
11321 | ;; | |
9c60689e | 11322 | |
a243b558 JF |
11323 | *,cl*) |
11324 | # Native MSVC | |
11325 | libname_spec='$name' | |
11326 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11327 | library_names_spec='${libname}.dll.lib' | |
9c60689e | 11328 | |
a243b558 JF |
11329 | case $build_os in |
11330 | mingw*) | |
11331 | sys_lib_search_path_spec= | |
11332 | lt_save_ifs=$IFS | |
11333 | IFS=';' | |
11334 | for lt_path in $LIB | |
11335 | do | |
11336 | IFS=$lt_save_ifs | |
11337 | # Let DOS variable expansion print the short 8.3 style file name. | |
11338 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11339 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11340 | done | |
11341 | IFS=$lt_save_ifs | |
11342 | # Convert to MSYS style. | |
11343 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11344 | ;; | |
11345 | cygwin*) | |
11346 | # Convert to unix form, then to dos form, then back to unix form | |
11347 | # but this time dos style (no spaces!) so that the unix form looks | |
11348 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11349 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11350 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11351 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11352 | ;; | |
11353 | *) | |
11354 | sys_lib_search_path_spec="$LIB" | |
11355 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11356 | # It is most probably a Windows format PATH. | |
11357 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11358 | else | |
11359 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11360 | fi | |
11361 | # FIXME: find the short name or the path components, as spaces are | |
11362 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11363 | ;; | |
11364 | esac | |
11365 | ||
11366 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11367 | postinstall_cmds='base_file=`basename \${file}`~ | |
11368 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11369 | dldir=$destdir/`dirname \$dlpath`~ | |
11370 | test -d \$dldir || mkdir -p \$dldir~ | |
11371 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11372 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11373 | dlpath=$dir/\$dldll~ | |
11374 | $RM \$dlpath' | |
11375 | shlibpath_overrides_runpath=yes | |
11376 | dynamic_linker='Win32 link.exe' | |
11377 | ;; | |
9c60689e | 11378 | |
a243b558 JF |
11379 | *) |
11380 | # Assume MSVC wrapper | |
11381 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11382 | dynamic_linker='Win32 ld.exe' | |
11383 | ;; | |
11384 | esac | |
11385 | # FIXME: first we should search . and the directory the executable is in | |
11386 | shlibpath_var=PATH | |
11387 | ;; | |
9c60689e | 11388 | |
a243b558 JF |
11389 | darwin* | rhapsody*) |
11390 | dynamic_linker="$host_os dyld" | |
11391 | version_type=darwin | |
11392 | need_lib_prefix=no | |
11393 | need_version=no | |
11394 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11395 | soname_spec='${libname}${release}${major}$shared_ext' | |
11396 | shlibpath_overrides_runpath=yes | |
11397 | shlibpath_var=DYLD_LIBRARY_PATH | |
11398 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11399 | |
a243b558 JF |
11400 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11401 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11402 | ;; | |
9c60689e | 11403 | |
a243b558 JF |
11404 | dgux*) |
11405 | version_type=linux # correct to gnu/linux during the next big refactor | |
11406 | need_lib_prefix=no | |
11407 | need_version=no | |
11408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11409 | soname_spec='${libname}${release}${shared_ext}$major' | |
11410 | shlibpath_var=LD_LIBRARY_PATH | |
11411 | ;; | |
11412 | ||
11413 | freebsd* | dragonfly*) | |
11414 | # DragonFly does not have aout. When/if they implement a new | |
11415 | # versioning mechanism, adjust this. | |
11416 | if test -x /usr/bin/objformat; then | |
11417 | objformat=`/usr/bin/objformat` | |
11418 | else | |
11419 | case $host_os in | |
11420 | freebsd[23].*) objformat=aout ;; | |
11421 | *) objformat=elf ;; | |
11422 | esac | |
11423 | fi | |
11424 | version_type=freebsd-$objformat | |
11425 | case $version_type in | |
11426 | freebsd-elf*) | |
11427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11428 | need_version=no | |
11429 | need_lib_prefix=no | |
11430 | ;; | |
11431 | freebsd-*) | |
11432 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11433 | need_version=yes | |
11434 | ;; | |
11435 | esac | |
11436 | shlibpath_var=LD_LIBRARY_PATH | |
11437 | case $host_os in | |
11438 | freebsd2.*) | |
11439 | shlibpath_overrides_runpath=yes | |
11440 | ;; | |
11441 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11442 | shlibpath_overrides_runpath=yes | |
11443 | hardcode_into_libs=yes | |
11444 | ;; | |
11445 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11446 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11447 | shlibpath_overrides_runpath=no | |
11448 | hardcode_into_libs=yes | |
11449 | ;; | |
11450 | *) # from 4.6 on, and DragonFly | |
11451 | shlibpath_overrides_runpath=yes | |
11452 | hardcode_into_libs=yes | |
11453 | ;; | |
11454 | esac | |
11455 | ;; | |
9c60689e | 11456 | |
a243b558 JF |
11457 | gnu*) |
11458 | version_type=linux # correct to gnu/linux during the next big refactor | |
11459 | need_lib_prefix=no | |
11460 | need_version=no | |
11461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11462 | soname_spec='${libname}${release}${shared_ext}$major' | |
11463 | shlibpath_var=LD_LIBRARY_PATH | |
11464 | shlibpath_overrides_runpath=no | |
11465 | hardcode_into_libs=yes | |
11466 | ;; | |
9c60689e | 11467 | |
a243b558 JF |
11468 | haiku*) |
11469 | version_type=linux # correct to gnu/linux during the next big refactor | |
11470 | need_lib_prefix=no | |
11471 | need_version=no | |
11472 | dynamic_linker="$host_os runtime_loader" | |
11473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11474 | soname_spec='${libname}${release}${shared_ext}$major' | |
11475 | shlibpath_var=LIBRARY_PATH | |
11476 | shlibpath_overrides_runpath=yes | |
11477 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11478 | hardcode_into_libs=yes | |
11479 | ;; | |
9c60689e | 11480 | |
a243b558 JF |
11481 | hpux9* | hpux10* | hpux11*) |
11482 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11483 | # link against other versions. | |
11484 | version_type=sunos | |
11485 | need_lib_prefix=no | |
11486 | need_version=no | |
11487 | case $host_cpu in | |
11488 | ia64*) | |
11489 | shrext_cmds='.so' | |
11490 | hardcode_into_libs=yes | |
11491 | dynamic_linker="$host_os dld.so" | |
11492 | shlibpath_var=LD_LIBRARY_PATH | |
11493 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11495 | soname_spec='${libname}${release}${shared_ext}$major' | |
11496 | if test "X$HPUX_IA64_MODE" = X32; then | |
11497 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11498 | else | |
11499 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11500 | fi | |
11501 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11502 | ;; | |
11503 | hppa*64*) | |
11504 | shrext_cmds='.sl' | |
11505 | hardcode_into_libs=yes | |
11506 | dynamic_linker="$host_os dld.sl" | |
11507 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11508 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11510 | soname_spec='${libname}${release}${shared_ext}$major' | |
11511 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11512 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11513 | ;; | |
11514 | *) | |
11515 | shrext_cmds='.sl' | |
11516 | dynamic_linker="$host_os dld.sl" | |
11517 | shlibpath_var=SHLIB_PATH | |
11518 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11520 | soname_spec='${libname}${release}${shared_ext}$major' | |
9c60689e DWT |
11521 | ;; |
11522 | esac | |
a243b558 JF |
11523 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11524 | postinstall_cmds='chmod 555 $lib' | |
11525 | # or fails outright, so override atomically: | |
11526 | install_override_mode=555 | |
11527 | ;; | |
9c60689e | 11528 | |
a243b558 JF |
11529 | interix[3-9]*) |
11530 | version_type=linux # correct to gnu/linux during the next big refactor | |
11531 | need_lib_prefix=no | |
11532 | need_version=no | |
11533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11534 | soname_spec='${libname}${release}${shared_ext}$major' | |
11535 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11536 | shlibpath_var=LD_LIBRARY_PATH | |
11537 | shlibpath_overrides_runpath=no | |
11538 | hardcode_into_libs=yes | |
11539 | ;; | |
9c60689e | 11540 | |
a243b558 JF |
11541 | irix5* | irix6* | nonstopux*) |
11542 | case $host_os in | |
11543 | nonstopux*) version_type=nonstopux ;; | |
11544 | *) | |
11545 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11546 | version_type=linux # correct to gnu/linux during the next big refactor | |
11547 | else | |
11548 | version_type=irix | |
11549 | fi ;; | |
11550 | esac | |
11551 | need_lib_prefix=no | |
11552 | need_version=no | |
11553 | soname_spec='${libname}${release}${shared_ext}$major' | |
11554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11555 | case $host_os in | |
11556 | irix5* | nonstopux*) | |
11557 | libsuff= shlibsuff= | |
11558 | ;; | |
11559 | *) | |
11560 | case $LD in # libtool.m4 will add one of these switches to LD | |
11561 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11562 | libsuff= shlibsuff= libmagic=32-bit;; | |
11563 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11564 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11565 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11566 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11567 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11568 | esac | |
11569 | ;; | |
11570 | esac | |
11571 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11572 | shlibpath_overrides_runpath=no | |
11573 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11574 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11575 | hardcode_into_libs=yes | |
11576 | ;; | |
9c60689e | 11577 | |
a243b558 JF |
11578 | # No shared lib support for Linux oldld, aout, or coff. |
11579 | linux*oldld* | linux*aout* | linux*coff*) | |
11580 | dynamic_linker=no | |
11581 | ;; | |
9c60689e | 11582 | |
a243b558 JF |
11583 | # This must be glibc/ELF. |
11584 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11585 | version_type=linux # correct to gnu/linux during the next big refactor | |
11586 | need_lib_prefix=no | |
11587 | need_version=no | |
11588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11589 | soname_spec='${libname}${release}${shared_ext}$major' | |
11590 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11591 | shlibpath_var=LD_LIBRARY_PATH | |
11592 | shlibpath_overrides_runpath=no | |
9c60689e | 11593 | |
a243b558 JF |
11594 | # Some binutils ld are patched to set DT_RUNPATH |
11595 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
11596 | $as_echo_n "(cached) " >&6 |
11597 | else | |
a243b558 JF |
11598 | lt_cv_shlibpath_overrides_runpath=no |
11599 | save_LDFLAGS=$LDFLAGS | |
11600 | save_libdir=$libdir | |
11601 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11602 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11604 | /* end confdefs.h. */ | |
ee134472 | 11605 | |
a243b558 JF |
11606 | int |
11607 | main () | |
9c60689e | 11608 | { |
9c60689e | 11609 | |
a243b558 JF |
11610 | ; |
11611 | return 0; | |
11612 | } | |
11613 | _ACEOF | |
11614 | if ac_fn_c_try_link "$LINENO"; then : | |
11615 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11616 | lt_cv_shlibpath_overrides_runpath=yes | |
11617 | fi | |
11618 | fi | |
11619 | rm -f core conftest.err conftest.$ac_objext \ | |
11620 | conftest$ac_exeext conftest.$ac_ext | |
11621 | LDFLAGS=$save_LDFLAGS | |
11622 | libdir=$save_libdir | |
9c60689e | 11623 | |
a243b558 | 11624 | fi |
9c60689e | 11625 | |
a243b558 | 11626 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 11627 | |
a243b558 JF |
11628 | # This implies no fast_install, which is unacceptable. |
11629 | # Some rework will be needed to allow for fast_install | |
11630 | # before this can be enabled. | |
11631 | hardcode_into_libs=yes | |
9c60689e | 11632 | |
a243b558 JF |
11633 | # Append ld.so.conf contents to the search path |
11634 | if test -f /etc/ld.so.conf; then | |
11635 | 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' ' '` | |
11636 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11637 | fi | |
ee134472 | 11638 | |
a243b558 JF |
11639 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11640 | # powerpc, because MkLinux only supported shared libraries with the | |
11641 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11642 | # most powerpc-linux boxes support dynamic linking these days and | |
11643 | # people can always --disable-shared, the test was removed, and we | |
11644 | # assume the GNU/Linux dynamic linker is in use. | |
11645 | dynamic_linker='GNU/Linux ld.so' | |
11646 | ;; | |
9c60689e | 11647 | |
a243b558 JF |
11648 | netbsd*) |
11649 | version_type=sunos | |
11650 | need_lib_prefix=no | |
11651 | need_version=no | |
11652 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11654 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11655 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 11656 | else |
a243b558 JF |
11657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11658 | soname_spec='${libname}${release}${shared_ext}$major' | |
11659 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 11660 | fi |
a243b558 JF |
11661 | shlibpath_var=LD_LIBRARY_PATH |
11662 | shlibpath_overrides_runpath=yes | |
11663 | hardcode_into_libs=yes | |
11664 | ;; | |
9c60689e | 11665 | |
a243b558 JF |
11666 | newsos6) |
11667 | version_type=linux # correct to gnu/linux during the next big refactor | |
11668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11669 | shlibpath_var=LD_LIBRARY_PATH | |
11670 | shlibpath_overrides_runpath=yes | |
11671 | ;; | |
9c60689e | 11672 | |
a243b558 JF |
11673 | *nto* | *qnx*) |
11674 | version_type=qnx | |
11675 | need_lib_prefix=no | |
11676 | need_version=no | |
11677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11678 | soname_spec='${libname}${release}${shared_ext}$major' | |
11679 | shlibpath_var=LD_LIBRARY_PATH | |
11680 | shlibpath_overrides_runpath=no | |
11681 | hardcode_into_libs=yes | |
11682 | dynamic_linker='ldqnx.so' | |
11683 | ;; | |
9c60689e | 11684 | |
a243b558 JF |
11685 | openbsd*) |
11686 | version_type=sunos | |
11687 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11688 | need_lib_prefix=no | |
11689 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11690 | case $host_os in | |
11691 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11692 | *) need_version=no ;; | |
9c60689e | 11693 | esac |
a243b558 JF |
11694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11695 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11696 | shlibpath_var=LD_LIBRARY_PATH | |
11697 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11698 | case $host_os in | |
11699 | openbsd2.[89] | openbsd2.[89].*) | |
11700 | shlibpath_overrides_runpath=no | |
11701 | ;; | |
11702 | *) | |
11703 | shlibpath_overrides_runpath=yes | |
11704 | ;; | |
11705 | esac | |
11706 | else | |
11707 | shlibpath_overrides_runpath=yes | |
11708 | fi | |
11709 | ;; | |
9c60689e | 11710 | |
a243b558 JF |
11711 | os2*) |
11712 | libname_spec='$name' | |
11713 | shrext_cmds=".dll" | |
11714 | need_lib_prefix=no | |
11715 | library_names_spec='$libname${shared_ext} $libname.a' | |
11716 | dynamic_linker='OS/2 ld.exe' | |
11717 | shlibpath_var=LIBPATH | |
11718 | ;; | |
9c60689e | 11719 | |
a243b558 JF |
11720 | osf3* | osf4* | osf5*) |
11721 | version_type=osf | |
11722 | need_lib_prefix=no | |
11723 | need_version=no | |
11724 | soname_spec='${libname}${release}${shared_ext}$major' | |
11725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11726 | shlibpath_var=LD_LIBRARY_PATH | |
11727 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11728 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11729 | ;; | |
11730 | ||
11731 | rdos*) | |
11732 | dynamic_linker=no | |
11733 | ;; | |
11734 | ||
11735 | solaris*) | |
11736 | version_type=linux # correct to gnu/linux during the next big refactor | |
11737 | need_lib_prefix=no | |
11738 | need_version=no | |
11739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11740 | soname_spec='${libname}${release}${shared_ext}$major' | |
11741 | shlibpath_var=LD_LIBRARY_PATH | |
11742 | shlibpath_overrides_runpath=yes | |
11743 | hardcode_into_libs=yes | |
11744 | # ldd complains unless libraries are executable | |
11745 | postinstall_cmds='chmod +x $lib' | |
11746 | ;; | |
9c60689e | 11747 | |
a243b558 JF |
11748 | sunos4*) |
11749 | version_type=sunos | |
11750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11751 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11752 | shlibpath_var=LD_LIBRARY_PATH | |
11753 | shlibpath_overrides_runpath=yes | |
11754 | if test "$with_gnu_ld" = yes; then | |
11755 | need_lib_prefix=no | |
11756 | fi | |
11757 | need_version=yes | |
11758 | ;; | |
9c60689e | 11759 | |
a243b558 JF |
11760 | sysv4 | sysv4.3*) |
11761 | version_type=linux # correct to gnu/linux during the next big refactor | |
11762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11763 | soname_spec='${libname}${release}${shared_ext}$major' | |
11764 | shlibpath_var=LD_LIBRARY_PATH | |
11765 | case $host_vendor in | |
11766 | sni) | |
11767 | shlibpath_overrides_runpath=no | |
11768 | need_lib_prefix=no | |
11769 | runpath_var=LD_RUN_PATH | |
11770 | ;; | |
11771 | siemens) | |
11772 | need_lib_prefix=no | |
11773 | ;; | |
11774 | motorola) | |
11775 | need_lib_prefix=no | |
11776 | need_version=no | |
11777 | shlibpath_overrides_runpath=no | |
11778 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11779 | ;; | |
11780 | esac | |
11781 | ;; | |
9c60689e | 11782 | |
a243b558 JF |
11783 | sysv4*MP*) |
11784 | if test -d /usr/nec ;then | |
11785 | version_type=linux # correct to gnu/linux during the next big refactor | |
11786 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11787 | soname_spec='$libname${shared_ext}.$major' | |
11788 | shlibpath_var=LD_LIBRARY_PATH | |
11789 | fi | |
11790 | ;; | |
9c60689e | 11791 | |
a243b558 JF |
11792 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11793 | version_type=freebsd-elf | |
11794 | need_lib_prefix=no | |
11795 | need_version=no | |
11796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11797 | soname_spec='${libname}${release}${shared_ext}$major' | |
11798 | shlibpath_var=LD_LIBRARY_PATH | |
11799 | shlibpath_overrides_runpath=yes | |
11800 | hardcode_into_libs=yes | |
11801 | if test "$with_gnu_ld" = yes; then | |
11802 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11803 | else | |
11804 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11805 | case $host_os in | |
11806 | sco3.2v5*) | |
11807 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11808 | ;; | |
11809 | esac | |
11810 | fi | |
11811 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11812 | ;; | |
9c60689e | 11813 | |
a243b558 JF |
11814 | tpf*) |
11815 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11816 | version_type=linux # correct to gnu/linux during the next big refactor | |
11817 | need_lib_prefix=no | |
11818 | need_version=no | |
11819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11820 | shlibpath_var=LD_LIBRARY_PATH | |
11821 | shlibpath_overrides_runpath=no | |
11822 | hardcode_into_libs=yes | |
11823 | ;; | |
9c60689e | 11824 | |
a243b558 JF |
11825 | uts4*) |
11826 | version_type=linux # correct to gnu/linux during the next big refactor | |
11827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11828 | soname_spec='${libname}${release}${shared_ext}$major' | |
11829 | shlibpath_var=LD_LIBRARY_PATH | |
11830 | ;; | |
9c60689e | 11831 | |
a243b558 JF |
11832 | *) |
11833 | dynamic_linker=no | |
11834 | ;; | |
11835 | esac | |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11837 | $as_echo "$dynamic_linker" >&6; } | |
11838 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 11839 | |
a243b558 JF |
11840 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11841 | if test "$GCC" = yes; then | |
11842 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11843 | fi | |
9c60689e | 11844 | |
a243b558 JF |
11845 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11846 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11847 | fi | |
11848 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11849 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11850 | fi | |
9c60689e DWT |
11851 | |
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
9c60689e DWT |
11859 | |
11860 | ||
11861 | ||
11862 | ||
11863 | ||
11864 | ||
11865 | ||
11866 | ||
11867 | ||
11868 | ||
11869 | ||
11870 | ||
9c60689e | 11871 | |
9c60689e | 11872 | |
9c60689e | 11873 | |
9c60689e | 11874 | |
9c60689e DWT |
11875 | |
11876 | ||
11877 | ||
11878 | ||
9c60689e | 11879 | |
9c60689e DWT |
11880 | |
11881 | ||
11882 | ||
11883 | ||
11884 | ||
11885 | ||
11886 | ||
11887 | ||
11888 | ||
11889 | ||
11890 | ||
11891 | ||
11892 | ||
53ba6704 JF |
11893 | |
11894 | ||
9c60689e DWT |
11895 | |
11896 | ||
11897 | ||
11898 | ||
9c60689e DWT |
11899 | |
11900 | ||
3fd51f51 | 11901 | |
66170b30 JF |
11902 | |
11903 | ||
11904 | ||
3fd51f51 | 11905 | |
12833ad8 JF |
11906 | |
11907 | ||
11908 | ||
11909 | ||
3fd51f51 | 11910 | |
3fd51f51 DWT |
11911 | |
11912 | ||
3fd51f51 | 11913 | |
3fd51f51 | 11914 | |
3fd51f51 | 11915 | |
66170b30 | 11916 | |
632b71ea | 11917 | |
632b71ea DWT |
11918 | |
11919 | ||
790e5246 | 11920 | |
66170b30 | 11921 | |
9c60689e | 11922 | |
9c60689e DWT |
11923 | |
11924 | ||
9c60689e | 11925 | |
9c60689e DWT |
11926 | |
11927 | ||
66170b30 | 11928 | |
66170b30 | 11929 | |
9c60689e | 11930 | |
e9c9a47c DWT |
11931 | |
11932 | ||
11933 | ||
66170b30 JF |
11934 | |
11935 | ||
66170b30 | 11936 | |
e9c9a47c | 11937 | |
a243b558 JF |
11938 | |
11939 | ||
11940 | ||
11941 | ||
11942 | ||
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11944 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11945 | hardcode_action= | |
11946 | if test -n "$hardcode_libdir_flag_spec" || | |
11947 | test -n "$runpath_var" || | |
11948 | test "X$hardcode_automatic" = "Xyes" ; then | |
11949 | ||
11950 | # We can hardcode non-existent directories. | |
11951 | if test "$hardcode_direct" != no && | |
11952 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11953 | # have to relink, otherwise we might link with an installed library | |
11954 | # when we should be linking with a yet-to-be-installed one | |
11955 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11956 | test "$hardcode_minus_L" != no; then | |
11957 | # Linking always hardcodes the temporary library directory. | |
11958 | hardcode_action=relink | |
11959 | else | |
11960 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11961 | hardcode_action=immediate | |
9c60689e | 11962 | fi |
e9c9a47c | 11963 | else |
a243b558 JF |
11964 | # We cannot hardcode anything, or else we can only hardcode existing |
11965 | # directories. | |
11966 | hardcode_action=unsupported | |
11967 | fi | |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11969 | $as_echo "$hardcode_action" >&6; } | |
11970 | ||
11971 | if test "$hardcode_action" = relink || | |
11972 | test "$inherit_rpath" = yes; then | |
11973 | # Fast installation is not supported | |
11974 | enable_fast_install=no | |
11975 | elif test "$shlibpath_overrides_runpath" = yes || | |
11976 | test "$enable_shared" = no; then | |
11977 | # Fast installation is not necessary | |
11978 | enable_fast_install=needless | |
9c60689e | 11979 | fi |
9c60689e | 11980 | |
9c60689e | 11981 | |
66170b30 | 11982 | |
66170b30 | 11983 | |
9c60689e | 11984 | |
a243b558 JF |
11985 | |
11986 | if test "x$enable_dlopen" != xyes; then | |
11987 | enable_dlopen=unknown | |
11988 | enable_dlopen_self=unknown | |
11989 | enable_dlopen_self_static=unknown | |
66170b30 | 11990 | else |
a243b558 JF |
11991 | lt_cv_dlopen=no |
11992 | lt_cv_dlopen_libs= | |
66170b30 | 11993 | |
a243b558 JF |
11994 | case $host_os in |
11995 | beos*) | |
11996 | lt_cv_dlopen="load_add_on" | |
11997 | lt_cv_dlopen_libs= | |
11998 | lt_cv_dlopen_self=yes | |
11999 | ;; | |
66170b30 | 12000 | |
a243b558 JF |
12001 | mingw* | pw32* | cegcc*) |
12002 | lt_cv_dlopen="LoadLibrary" | |
12003 | lt_cv_dlopen_libs= | |
12004 | ;; | |
66170b30 | 12005 | |
a243b558 JF |
12006 | cygwin*) |
12007 | lt_cv_dlopen="dlopen" | |
12008 | lt_cv_dlopen_libs= | |
12009 | ;; | |
66170b30 | 12010 | |
a243b558 JF |
12011 | darwin*) |
12012 | # if libdl is installed we need to link against it | |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12014 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12015 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12016 | $as_echo_n "(cached) " >&6 | |
12017 | else | |
12018 | ac_check_lib_save_LIBS=$LIBS | |
12019 | LIBS="-ldl $LIBS" | |
12020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12021 | /* end confdefs.h. */ | |
66170b30 | 12022 | |
a243b558 JF |
12023 | /* Override any GCC internal prototype to avoid an error. |
12024 | Use char because int might match the return type of a GCC | |
12025 | builtin and then its argument prototype would still apply. */ | |
12026 | #ifdef __cplusplus | |
12027 | extern "C" | |
12028 | #endif | |
12029 | char dlopen (); | |
12030 | int | |
12031 | main () | |
12032 | { | |
12033 | return dlopen (); | |
12034 | ; | |
12035 | return 0; | |
12036 | } | |
12037 | _ACEOF | |
12038 | if ac_fn_c_try_link "$LINENO"; then : | |
12039 | ac_cv_lib_dl_dlopen=yes | |
12040 | else | |
12041 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12042 | fi |
a243b558 JF |
12043 | rm -f core conftest.err conftest.$ac_objext \ |
12044 | conftest$ac_exeext conftest.$ac_ext | |
12045 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12046 | fi |
a243b558 JF |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12048 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12049 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12050 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12051 | else | |
66170b30 | 12052 | |
a243b558 JF |
12053 | lt_cv_dlopen="dyld" |
12054 | lt_cv_dlopen_libs= | |
12055 | lt_cv_dlopen_self=yes | |
66170b30 | 12056 | |
a243b558 | 12057 | fi |
9c60689e | 12058 | |
a243b558 | 12059 | ;; |
9c60689e | 12060 | |
a243b558 JF |
12061 | *) |
12062 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12063 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12064 | lt_cv_dlopen="shl_load" | |
12065 | else | |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12067 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12068 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12069 | $as_echo_n "(cached) " >&6 | |
12070 | else | |
12071 | ac_check_lib_save_LIBS=$LIBS | |
12072 | LIBS="-ldld $LIBS" | |
12073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12074 | /* end confdefs.h. */ | |
66170b30 | 12075 | |
a243b558 JF |
12076 | /* Override any GCC internal prototype to avoid an error. |
12077 | Use char because int might match the return type of a GCC | |
12078 | builtin and then its argument prototype would still apply. */ | |
12079 | #ifdef __cplusplus | |
12080 | extern "C" | |
12081 | #endif | |
12082 | char shl_load (); | |
12083 | int | |
12084 | main () | |
12085 | { | |
12086 | return shl_load (); | |
12087 | ; | |
12088 | return 0; | |
12089 | } | |
12090 | _ACEOF | |
12091 | if ac_fn_c_try_link "$LINENO"; then : | |
12092 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12093 | else |
a243b558 JF |
12094 | ac_cv_lib_dld_shl_load=no |
12095 | fi | |
12096 | rm -f core conftest.err conftest.$ac_objext \ | |
12097 | conftest$ac_exeext conftest.$ac_ext | |
12098 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12099 | fi |
a243b558 JF |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12101 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12102 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12103 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12104 | else | |
12105 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12106 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12107 | lt_cv_dlopen="dlopen" | |
12108 | else | |
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12110 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12111 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12112 | $as_echo_n "(cached) " >&6 | |
12113 | else | |
12114 | ac_check_lib_save_LIBS=$LIBS | |
12115 | LIBS="-ldl $LIBS" | |
12116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12117 | /* end confdefs.h. */ | |
e9c9a47c | 12118 | |
a243b558 JF |
12119 | /* Override any GCC internal prototype to avoid an error. |
12120 | Use char because int might match the return type of a GCC | |
12121 | builtin and then its argument prototype would still apply. */ | |
12122 | #ifdef __cplusplus | |
12123 | extern "C" | |
12124 | #endif | |
12125 | char dlopen (); | |
12126 | int | |
12127 | main () | |
12128 | { | |
12129 | return dlopen (); | |
12130 | ; | |
12131 | return 0; | |
12132 | } | |
12133 | _ACEOF | |
12134 | if ac_fn_c_try_link "$LINENO"; then : | |
12135 | ac_cv_lib_dl_dlopen=yes | |
12136 | else | |
12137 | ac_cv_lib_dl_dlopen=no | |
12138 | fi | |
12139 | rm -f core conftest.err conftest.$ac_objext \ | |
12140 | conftest$ac_exeext conftest.$ac_ext | |
12141 | LIBS=$ac_check_lib_save_LIBS | |
12142 | fi | |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12144 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12145 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12146 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12147 | else | |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12149 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12150 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12151 | $as_echo_n "(cached) " >&6 | |
12152 | else | |
12153 | ac_check_lib_save_LIBS=$LIBS | |
12154 | LIBS="-lsvld $LIBS" | |
12155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12156 | /* end confdefs.h. */ | |
12157 | ||
12158 | /* Override any GCC internal prototype to avoid an error. | |
12159 | Use char because int might match the return type of a GCC | |
12160 | builtin and then its argument prototype would still apply. */ | |
12161 | #ifdef __cplusplus | |
12162 | extern "C" | |
12163 | #endif | |
12164 | char dlopen (); | |
12165 | int | |
12166 | main () | |
12167 | { | |
12168 | return dlopen (); | |
12169 | ; | |
12170 | return 0; | |
12171 | } | |
12172 | _ACEOF | |
12173 | if ac_fn_c_try_link "$LINENO"; then : | |
12174 | ac_cv_lib_svld_dlopen=yes | |
12175 | else | |
12176 | ac_cv_lib_svld_dlopen=no | |
12177 | fi | |
12178 | rm -f core conftest.err conftest.$ac_objext \ | |
12179 | conftest$ac_exeext conftest.$ac_ext | |
12180 | LIBS=$ac_check_lib_save_LIBS | |
12181 | fi | |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12183 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12184 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12185 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12186 | else | |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12188 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12189 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12190 | $as_echo_n "(cached) " >&6 | |
12191 | else | |
12192 | ac_check_lib_save_LIBS=$LIBS | |
12193 | LIBS="-ldld $LIBS" | |
12194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12195 | /* end confdefs.h. */ | |
12196 | ||
12197 | /* Override any GCC internal prototype to avoid an error. | |
12198 | Use char because int might match the return type of a GCC | |
12199 | builtin and then its argument prototype would still apply. */ | |
12200 | #ifdef __cplusplus | |
12201 | extern "C" | |
12202 | #endif | |
12203 | char dld_link (); | |
12204 | int | |
12205 | main () | |
12206 | { | |
12207 | return dld_link (); | |
12208 | ; | |
12209 | return 0; | |
12210 | } | |
12211 | _ACEOF | |
12212 | if ac_fn_c_try_link "$LINENO"; then : | |
12213 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12214 | else |
a243b558 JF |
12215 | ac_cv_lib_dld_dld_link=no |
12216 | fi | |
12217 | rm -f core conftest.err conftest.$ac_objext \ | |
12218 | conftest$ac_exeext conftest.$ac_ext | |
12219 | LIBS=$ac_check_lib_save_LIBS | |
12220 | fi | |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12222 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12223 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12224 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9c60689e DWT |
12225 | fi |
12226 | ||
12227 | ||
a243b558 | 12228 | fi |
66170b30 | 12229 | |
66170b30 | 12230 | |
a243b558 | 12231 | fi |
66170b30 | 12232 | |
66170b30 JF |
12233 | |
12234 | fi | |
e9c9a47c | 12235 | |
66170b30 | 12236 | |
a243b558 | 12237 | fi |
66170b30 | 12238 | |
66170b30 | 12239 | |
66170b30 | 12240 | fi |
e9c9a47c | 12241 | |
a243b558 JF |
12242 | ;; |
12243 | esac | |
9c60689e | 12244 | |
a243b558 JF |
12245 | if test "x$lt_cv_dlopen" != xno; then |
12246 | enable_dlopen=yes | |
12247 | else | |
12248 | enable_dlopen=no | |
12249 | fi | |
9c60689e | 12250 | |
a243b558 JF |
12251 | case $lt_cv_dlopen in |
12252 | dlopen) | |
12253 | save_CPPFLAGS="$CPPFLAGS" | |
12254 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12255 | |
a243b558 JF |
12256 | save_LDFLAGS="$LDFLAGS" |
12257 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
66170b30 | 12258 | |
a243b558 JF |
12259 | save_LIBS="$LIBS" |
12260 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
3fd51f51 | 12261 | |
a243b558 JF |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12263 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12264 | if ${lt_cv_dlopen_self+:} false; then : | |
12265 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12266 | else |
a243b558 JF |
12267 | if test "$cross_compiling" = yes; then : |
12268 | lt_cv_dlopen_self=cross | |
12269 | else | |
12270 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12271 | lt_status=$lt_dlunknown | |
12272 | cat > conftest.$ac_ext <<_LT_EOF | |
12273 | #line $LINENO "configure" | |
12274 | #include "confdefs.h" | |
e9c9a47c | 12275 | |
a243b558 JF |
12276 | #if HAVE_DLFCN_H |
12277 | #include <dlfcn.h> | |
12278 | #endif | |
e9c9a47c | 12279 | |
a243b558 | 12280 | #include <stdio.h> |
66170b30 | 12281 | |
a243b558 JF |
12282 | #ifdef RTLD_GLOBAL |
12283 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12284 | #else | |
12285 | # ifdef DL_GLOBAL | |
12286 | # define LT_DLGLOBAL DL_GLOBAL | |
12287 | # else | |
12288 | # define LT_DLGLOBAL 0 | |
12289 | # endif | |
12290 | #endif | |
66170b30 | 12291 | |
a243b558 JF |
12292 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12293 | find out it does not work in some platform. */ | |
12294 | #ifndef LT_DLLAZY_OR_NOW | |
12295 | # ifdef RTLD_LAZY | |
12296 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12297 | # else | |
12298 | # ifdef DL_LAZY | |
12299 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12300 | # else | |
12301 | # ifdef RTLD_NOW | |
12302 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12303 | # else | |
12304 | # ifdef DL_NOW | |
12305 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12306 | # else | |
12307 | # define LT_DLLAZY_OR_NOW 0 | |
12308 | # endif | |
12309 | # endif | |
12310 | # endif | |
12311 | # endif | |
12312 | #endif | |
e9c9a47c | 12313 | |
a243b558 JF |
12314 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12315 | correspondingly for the symbols needed. */ | |
12316 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12317 | int fnord () __attribute__((visibility("default"))); | |
12318 | #endif | |
e9c9a47c | 12319 | |
a243b558 JF |
12320 | int fnord () { return 42; } |
12321 | int main () | |
12322 | { | |
12323 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12324 | int status = $lt_dlunknown; | |
e9c9a47c | 12325 | |
a243b558 JF |
12326 | if (self) |
12327 | { | |
12328 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12329 | else | |
12330 | { | |
12331 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12332 | else puts (dlerror ()); | |
12333 | } | |
12334 | /* dlclose (self); */ | |
12335 | } | |
12336 | else | |
12337 | puts (dlerror ()); | |
e9c9a47c | 12338 | |
a243b558 JF |
12339 | return status; |
12340 | } | |
12341 | _LT_EOF | |
12342 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12343 | (eval $ac_link) 2>&5 | |
12344 | ac_status=$? | |
12345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12346 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12347 | (./conftest; exit; ) >&5 2>/dev/null | |
12348 | lt_status=$? | |
12349 | case x$lt_status in | |
12350 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12351 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12352 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12353 | esac | |
12354 | else : | |
12355 | # compilation failed | |
12356 | lt_cv_dlopen_self=no | |
12357 | fi | |
12358 | fi | |
12359 | rm -fr conftest* | |
e9c9a47c | 12360 | |
e9c9a47c | 12361 | |
e9c9a47c | 12362 | fi |
a243b558 JF |
12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12364 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12365 | |
a243b558 JF |
12366 | if test "x$lt_cv_dlopen_self" = xyes; then |
12367 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12369 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12370 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12371 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12372 | else |
a243b558 JF |
12373 | if test "$cross_compiling" = yes; then : |
12374 | lt_cv_dlopen_self_static=cross | |
12375 | else | |
12376 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12377 | lt_status=$lt_dlunknown | |
12378 | cat > conftest.$ac_ext <<_LT_EOF | |
12379 | #line $LINENO "configure" | |
12380 | #include "confdefs.h" | |
12381 | ||
12382 | #if HAVE_DLFCN_H | |
12383 | #include <dlfcn.h> | |
12384 | #endif | |
12385 | ||
12386 | #include <stdio.h> | |
e9c9a47c | 12387 | |
a243b558 JF |
12388 | #ifdef RTLD_GLOBAL |
12389 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12390 | #else | |
12391 | # ifdef DL_GLOBAL | |
12392 | # define LT_DLGLOBAL DL_GLOBAL | |
12393 | # else | |
12394 | # define LT_DLGLOBAL 0 | |
12395 | # endif | |
12396 | #endif | |
e9c9a47c | 12397 | |
a243b558 JF |
12398 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12399 | find out it does not work in some platform. */ | |
12400 | #ifndef LT_DLLAZY_OR_NOW | |
12401 | # ifdef RTLD_LAZY | |
12402 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12403 | # else | |
12404 | # ifdef DL_LAZY | |
12405 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12406 | # else | |
12407 | # ifdef RTLD_NOW | |
12408 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12409 | # else | |
12410 | # ifdef DL_NOW | |
12411 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12412 | # else | |
12413 | # define LT_DLLAZY_OR_NOW 0 | |
12414 | # endif | |
12415 | # endif | |
12416 | # endif | |
12417 | # endif | |
12418 | #endif | |
66170b30 | 12419 | |
a243b558 JF |
12420 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12421 | correspondingly for the symbols needed. */ | |
12422 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12423 | int fnord () __attribute__((visibility("default"))); | |
12424 | #endif | |
e9c9a47c | 12425 | |
a243b558 JF |
12426 | int fnord () { return 42; } |
12427 | int main () | |
12428 | { | |
12429 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12430 | int status = $lt_dlunknown; | |
e9c9a47c | 12431 | |
a243b558 JF |
12432 | if (self) |
12433 | { | |
12434 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12435 | else | |
12436 | { | |
12437 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12438 | else puts (dlerror ()); | |
12439 | } | |
12440 | /* dlclose (self); */ | |
12441 | } | |
12442 | else | |
12443 | puts (dlerror ()); | |
e9c9a47c | 12444 | |
a243b558 JF |
12445 | return status; |
12446 | } | |
12447 | _LT_EOF | |
12448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12449 | (eval $ac_link) 2>&5 | |
12450 | ac_status=$? | |
12451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12452 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12453 | (./conftest; exit; ) >&5 2>/dev/null | |
12454 | lt_status=$? | |
12455 | case x$lt_status in | |
12456 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12457 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12458 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12459 | esac | |
12460 | else : | |
12461 | # compilation failed | |
12462 | lt_cv_dlopen_self_static=no | |
12463 | fi | |
12464 | fi | |
12465 | rm -fr conftest* | |
e9c9a47c | 12466 | |
b65019fe | 12467 | |
a243b558 JF |
12468 | fi |
12469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12470 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12471 | fi | |
66170b30 | 12472 | |
a243b558 JF |
12473 | CPPFLAGS="$save_CPPFLAGS" |
12474 | LDFLAGS="$save_LDFLAGS" | |
12475 | LIBS="$save_LIBS" | |
12476 | ;; | |
12477 | esac | |
66170b30 | 12478 | |
a243b558 JF |
12479 | case $lt_cv_dlopen_self in |
12480 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12481 | *) enable_dlopen_self=unknown ;; | |
12482 | esac | |
12483 | ||
12484 | case $lt_cv_dlopen_self_static in | |
12485 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12486 | *) enable_dlopen_self_static=unknown ;; | |
12487 | esac | |
b65019fe DWT |
12488 | fi |
12489 | ||
12490 | ||
66170b30 | 12491 | |
b65019fe | 12492 | |
e9c9a47c | 12493 | |
e9c9a47c DWT |
12494 | |
12495 | ||
e9c9a47c | 12496 | |
e9c9a47c DWT |
12497 | |
12498 | ||
e9c9a47c | 12499 | |
e9c9a47c | 12500 | |
3530897b | 12501 | |
47aaa820 | 12502 | |
47aaa820 | 12503 | |
a243b558 JF |
12504 | |
12505 | ||
12506 | striplib= | |
12507 | old_striplib= | |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12509 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12510 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12511 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12512 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12514 | $as_echo "yes" >&6; } | |
47aaa820 | 12515 | else |
a243b558 JF |
12516 | # FIXME - insert some real tests, host_os isn't really good enough |
12517 | case $host_os in | |
12518 | darwin*) | |
12519 | if test -n "$STRIP" ; then | |
12520 | striplib="$STRIP -x" | |
12521 | old_striplib="$STRIP -S" | |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12523 | $as_echo "yes" >&6; } | |
12524 | else | |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12526 | $as_echo "no" >&6; } | |
12527 | fi | |
12528 | ;; | |
12529 | *) | |
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12531 | $as_echo "no" >&6; } | |
12532 | ;; | |
12533 | esac | |
3530897b | 12534 | fi |
47aaa820 | 12535 | |
3530897b DWT |
12536 | |
12537 | ||
9c60689e | 12538 | |
9c60689e | 12539 | |
9c60689e | 12540 | |
9c60689e | 12541 | |
9c60689e | 12542 | |
66170b30 | 12543 | |
66170b30 | 12544 | |
66170b30 | 12545 | |
66170b30 | 12546 | |
a243b558 JF |
12547 | # Report which library types will actually be built |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12549 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12551 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 12552 | |
a243b558 JF |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12554 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12555 | test "$can_build_shared" = "no" && enable_shared=no | |
66170b30 | 12556 | |
a243b558 JF |
12557 | # On AIX, shared libraries and static libraries use the same namespace, and |
12558 | # are all built from PIC. | |
12559 | case $host_os in | |
12560 | aix3*) | |
12561 | test "$enable_shared" = yes && enable_static=no | |
12562 | if test -n "$RANLIB"; then | |
12563 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12564 | postinstall_cmds='$RANLIB $lib' | |
12565 | fi | |
12566 | ;; | |
66170b30 | 12567 | |
a243b558 JF |
12568 | aix[4-9]*) |
12569 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12570 | test "$enable_shared" = yes && enable_static=no | |
12571 | fi | |
12572 | ;; | |
12573 | esac | |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12575 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 12576 | |
a243b558 JF |
12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12578 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12579 | # Make sure either enable_shared or enable_static is yes. | |
12580 | test "$enable_shared" = yes || enable_static=yes | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12582 | $as_echo "$enable_static" >&6; } | |
66170b30 | 12583 | |
9c60689e | 12584 | |
e9c9a47c | 12585 | |
9c60689e | 12586 | |
a243b558 JF |
12587 | fi |
12588 | ac_ext=c | |
12589 | ac_cpp='$CPP $CPPFLAGS' | |
12590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12593 | ||
12594 | CC="$lt_save_CC" | |
e9c9a47c | 12595 | |
ee134472 | 12596 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
e9c9a47c DWT |
12597 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
12598 | (test "X$CXX" != "Xg++"))) ; then | |
12599 | ac_ext=cpp | |
12600 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12601 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12602 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12603 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12605 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12606 | if test -z "$CXXCPP"; then | |
ee134472 | 12607 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
12608 | $as_echo_n "(cached) " >&6 |
12609 | else | |
12610 | # Double quotes because CXXCPP needs to be expanded | |
12611 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12612 | do | |
12613 | ac_preproc_ok=false | |
12614 | for ac_cxx_preproc_warn_flag in '' yes | |
12615 | do | |
12616 | # Use a header file that comes with gcc, so configuring glibc | |
12617 | # with a fresh cross-compiler works. | |
12618 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12619 | # <limits.h> exists even on freestanding compilers. | |
12620 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12621 | # not just through cpp. "Syntax error" is here to catch this case. | |
12622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12623 | /* end confdefs.h. */ | |
12624 | #ifdef __STDC__ | |
12625 | # include <limits.h> | |
12626 | #else | |
12627 | # include <assert.h> | |
12628 | #endif | |
12629 | Syntax error | |
12630 | _ACEOF | |
12631 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12632 | ||
12633 | else | |
12634 | # Broken: fails on valid input. | |
12635 | continue | |
12636 | fi | |
12833ad8 | 12637 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12638 | |
12639 | # OK, works on sane cases. Now check whether nonexistent headers | |
12640 | # can be detected and how. | |
12641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12642 | /* end confdefs.h. */ | |
12643 | #include <ac_nonexistent.h> | |
12644 | _ACEOF | |
12645 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12646 | # Broken: success on invalid input. | |
12647 | continue | |
12648 | else | |
12649 | # Passes both tests. | |
12650 | ac_preproc_ok=: | |
12651 | break | |
12652 | fi | |
12833ad8 | 12653 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12654 | |
12655 | done | |
12656 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12657 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12658 | if $ac_preproc_ok; then : |
12659 | break | |
12660 | fi | |
12661 | ||
12662 | done | |
12663 | ac_cv_prog_CXXCPP=$CXXCPP | |
12664 | ||
12665 | fi | |
12666 | CXXCPP=$ac_cv_prog_CXXCPP | |
12667 | else | |
12668 | ac_cv_prog_CXXCPP=$CXXCPP | |
12669 | fi | |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12671 | $as_echo "$CXXCPP" >&6; } | |
12672 | ac_preproc_ok=false | |
12673 | for ac_cxx_preproc_warn_flag in '' yes | |
12674 | do | |
12675 | # Use a header file that comes with gcc, so configuring glibc | |
12676 | # with a fresh cross-compiler works. | |
12677 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12678 | # <limits.h> exists even on freestanding compilers. | |
12679 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12680 | # not just through cpp. "Syntax error" is here to catch this case. | |
12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12682 | /* end confdefs.h. */ | |
12683 | #ifdef __STDC__ | |
12684 | # include <limits.h> | |
12685 | #else | |
12686 | # include <assert.h> | |
12687 | #endif | |
12688 | Syntax error | |
12689 | _ACEOF | |
12690 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12691 | ||
12692 | else | |
12693 | # Broken: fails on valid input. | |
12694 | continue | |
12695 | fi | |
12833ad8 | 12696 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12697 | |
12698 | # OK, works on sane cases. Now check whether nonexistent headers | |
12699 | # can be detected and how. | |
12700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12701 | /* end confdefs.h. */ | |
12702 | #include <ac_nonexistent.h> | |
12703 | _ACEOF | |
12704 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12705 | # Broken: success on invalid input. | |
12706 | continue | |
12707 | else | |
12708 | # Passes both tests. | |
12709 | ac_preproc_ok=: | |
12710 | break | |
12711 | fi | |
12833ad8 | 12712 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12713 | |
12714 | done | |
12715 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12716 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12717 | if $ac_preproc_ok; then : |
12718 | ||
12719 | else | |
12720 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12721 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
12722 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12723 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
12724 | fi |
12725 | ||
a243b558 JF |
12726 | ac_ext=c |
12727 | ac_cpp='$CPP $CPPFLAGS' | |
12728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
12731 | |
12732 | else | |
e9c9a47c DWT |
12733 | _lt_caught_CXX_error=yes |
12734 | fi | |
12735 | ||
9c60689e DWT |
12736 | ac_ext=cpp |
12737 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12738 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12739 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12740 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 12741 | |
47aaa820 DWT |
12742 | archive_cmds_need_lc_CXX=no |
12743 | allow_undefined_flag_CXX= | |
12744 | always_export_symbols_CXX=no | |
12745 | archive_expsym_cmds_CXX= | |
12746 | compiler_needs_object_CXX=no | |
12747 | export_dynamic_flag_spec_CXX= | |
12748 | hardcode_direct_CXX=no | |
12749 | hardcode_direct_absolute_CXX=no | |
12750 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
12751 | hardcode_libdir_separator_CXX= |
12752 | hardcode_minus_L_CXX=no | |
12753 | hardcode_shlibpath_var_CXX=unsupported | |
12754 | hardcode_automatic_CXX=no | |
12755 | inherit_rpath_CXX=no | |
12756 | module_cmds_CXX= | |
12757 | module_expsym_cmds_CXX= | |
12758 | link_all_deplibs_CXX=unknown | |
12759 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
12760 | reload_flag_CXX=$reload_flag |
12761 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
12762 | no_undefined_flag_CXX= |
12763 | whole_archive_flag_spec_CXX= | |
12764 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 12765 | |
47aaa820 DWT |
12766 | # Source file extension for C++ test sources. |
12767 | ac_ext=cpp | |
9c60689e | 12768 | |
47aaa820 DWT |
12769 | # Object file extension for compiled C++ test sources. |
12770 | objext=o | |
12771 | objext_CXX=$objext | |
9c60689e | 12772 | |
47aaa820 DWT |
12773 | # No sense in running all these tests if we already determined that |
12774 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12775 | # are currently assumed to apply to all compilers on this platform, | |
12776 | # and will be corrupted by setting them based on a non-working compiler. | |
12777 | if test "$_lt_caught_CXX_error" != yes; then | |
12778 | # Code to be used in simple compile tests | |
12779 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 12780 | |
47aaa820 DWT |
12781 | # Code to be used in simple link tests |
12782 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 12783 | |
47aaa820 | 12784 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 12785 | |
9c60689e | 12786 | |
9c60689e | 12787 | |
9c60689e | 12788 | |
9c60689e | 12789 | |
9c60689e | 12790 | |
47aaa820 DWT |
12791 | # If no C compiler was specified, use CC. |
12792 | LTCC=${LTCC-"$CC"} | |
9c60689e | 12793 | |
47aaa820 DWT |
12794 | # If no C compiler flags were specified, use CFLAGS. |
12795 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 12796 | |
47aaa820 DWT |
12797 | # Allow CC to be a program name with arguments. |
12798 | compiler=$CC | |
9c60689e | 12799 | |
9c60689e | 12800 | |
47aaa820 DWT |
12801 | # save warnings/boilerplate of simple test code |
12802 | ac_outfile=conftest.$ac_objext | |
12803 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12804 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12805 | _lt_compiler_boilerplate=`cat conftest.err` | |
53ba6704 | 12806 | $RM -r conftest* |
9c60689e | 12807 | |
47aaa820 DWT |
12808 | ac_outfile=conftest.$ac_objext |
12809 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12810 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12811 | _lt_linker_boilerplate=`cat conftest.err` | |
12812 | $RM -r conftest* | |
9c60689e | 12813 | |
9c60689e | 12814 | |
47aaa820 DWT |
12815 | # Allow CC to be a program name with arguments. |
12816 | lt_save_CC=$CC | |
ee134472 | 12817 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
12818 | lt_save_LD=$LD |
12819 | lt_save_GCC=$GCC | |
12820 | GCC=$GXX | |
12821 | lt_save_with_gnu_ld=$with_gnu_ld | |
12822 | lt_save_path_LD=$lt_cv_path_LD | |
12823 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12824 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 12825 | else |
47aaa820 | 12826 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 12827 | fi |
47aaa820 DWT |
12828 | if test -n "${lt_cv_path_LDCXX+set}"; then |
12829 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 12830 | else |
47aaa820 | 12831 | $as_unset lt_cv_path_LD |
9c60689e | 12832 | fi |
47aaa820 DWT |
12833 | test -z "${LDCXX+set}" || LD=$LDCXX |
12834 | CC=${CXX-"c++"} | |
ee134472 | 12835 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
12836 | compiler=$CC |
12837 | compiler_CXX=$CC | |
12838 | for cc_temp in $compiler""; do | |
12839 | case $cc_temp in | |
12840 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12841 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12842 | \-*) ;; | |
12843 | *) break;; | |
12844 | esac | |
12845 | done | |
ee134472 | 12846 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
9c60689e DWT |
12847 | |
12848 | ||
47aaa820 DWT |
12849 | if test -n "$compiler"; then |
12850 | # We don't want -fno-exception when compiling C++ code, so set the | |
12851 | # no_builtin_flag separately | |
12852 | if test "$GXX" = yes; then | |
12853 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12854 | else | |
12855 | lt_prog_compiler_no_builtin_flag_CXX= | |
12856 | fi | |
9c60689e | 12857 | |
47aaa820 DWT |
12858 | if test "$GXX" = yes; then |
12859 | # Set up default GNU C++ configuration | |
12860 | ||
12861 | ||
12862 | ||
12863 | # Check whether --with-gnu-ld was given. | |
12864 | if test "${with_gnu_ld+set}" = set; then : | |
12865 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 12866 | else |
47aaa820 | 12867 | with_gnu_ld=no |
9c60689e DWT |
12868 | fi |
12869 | ||
47aaa820 DWT |
12870 | ac_prog=ld |
12871 | if test "$GCC" = yes; then | |
12872 | # Check if gcc -print-prog-name=ld gives a path. | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12874 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12875 | case $host in | |
12876 | *-*-mingw*) | |
12877 | # gcc leaves a trailing carriage return which upsets mingw | |
12878 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12879 | *) | |
12880 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12881 | esac | |
12882 | case $ac_prog in | |
12883 | # Accept absolute paths. | |
12884 | [\\/]* | ?:[\\/]*) | |
12885 | re_direlt='/[^/][^/]*/\.\./' | |
12886 | # Canonicalize the pathname of ld | |
12887 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12888 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12889 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12890 | done | |
12891 | test -z "$LD" && LD="$ac_prog" | |
12892 | ;; | |
12893 | "") | |
12894 | # If it fails, then pretend we aren't using GCC. | |
12895 | ac_prog=ld | |
12896 | ;; | |
12897 | *) | |
12898 | # If it is relative, then search for the first ld in PATH. | |
12899 | with_gnu_ld=unknown | |
12900 | ;; | |
12901 | esac | |
12902 | elif test "$with_gnu_ld" = yes; then | |
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12904 | $as_echo_n "checking for GNU ld... " >&6; } | |
12905 | else | |
12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12907 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 12908 | fi |
ee134472 | 12909 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
12910 | $as_echo_n "(cached) " >&6 |
12911 | else | |
47aaa820 DWT |
12912 | if test -z "$LD"; then |
12913 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12914 | for ac_dir in $PATH; do | |
12915 | IFS="$lt_save_ifs" | |
12916 | test -z "$ac_dir" && ac_dir=. | |
12917 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12918 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12919 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12920 | # but apparently some variants of GNU ld only accept -v. | |
12921 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12922 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12923 | *GNU* | *'with BFD'*) | |
12924 | test "$with_gnu_ld" != no && break | |
12925 | ;; | |
12926 | *) | |
12927 | test "$with_gnu_ld" != yes && break | |
12928 | ;; | |
12929 | esac | |
12930 | fi | |
9c60689e | 12931 | done |
47aaa820 DWT |
12932 | IFS="$lt_save_ifs" |
12933 | else | |
12934 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
12935 | fi |
12936 | fi | |
47aaa820 DWT |
12937 | |
12938 | LD="$lt_cv_path_LD" | |
12939 | if test -n "$LD"; then | |
12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12941 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
12942 | else |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12944 | $as_echo "no" >&6; } | |
12945 | fi | |
12833ad8 | 12946 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12948 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 12949 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
12950 | $as_echo_n "(cached) " >&6 |
12951 | else | |
12952 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12953 | case `$LD -v 2>&1 </dev/null` in | |
12954 | *GNU* | *'with BFD'*) | |
12955 | lt_cv_prog_gnu_ld=yes | |
12956 | ;; | |
12957 | *) | |
12958 | lt_cv_prog_gnu_ld=no | |
12959 | ;; | |
12960 | esac | |
12961 | fi | |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12963 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12964 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
12965 | |
12966 | ||
9c60689e | 12967 | |
9c60689e | 12968 | |
9c60689e | 12969 | |
9c60689e | 12970 | |
9c60689e | 12971 | |
47aaa820 DWT |
12972 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
12973 | # archiving commands below assume that GNU ld is being used. | |
12974 | if test "$with_gnu_ld" = yes; then | |
ee134472 JF |
12975 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12976 | 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 | 12977 | |
47aaa820 DWT |
12978 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12979 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12980 | |
47aaa820 DWT |
12981 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12982 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12983 | # investigate it a little bit more. (MM) | |
12984 | wlarc='${wl}' | |
9c60689e | 12985 | |
47aaa820 DWT |
12986 | # ancient GNU ld didn't support --whole-archive et. al. |
12987 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12988 | $GREP 'no-whole-archive' > /dev/null; then | |
12989 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12990 | else | |
12991 | whole_archive_flag_spec_CXX= | |
12992 | fi | |
12993 | else | |
12994 | with_gnu_ld=no | |
12995 | wlarc= | |
12996 | ||
12997 | # A generic and very simple default shared library creation | |
12998 | # command for GNU C++ for the case where it uses the native | |
12999 | # linker, instead of GNU ld. If possible, this setting should | |
13000 | # overridden to take advantage of the native linker features on | |
13001 | # the platform it is being used on. | |
13002 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13003 | fi | |
13004 | ||
13005 | # Commands to make compiler produce verbose output that lists | |
13006 | # what "hidden" libraries, object files and flags are used when | |
13007 | # linking a shared library. | |
ee134472 | 13008 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13009 | |
13010 | else | |
13011 | GXX=no | |
13012 | with_gnu_ld=no | |
13013 | wlarc= | |
13014 | fi | |
13015 | ||
13016 | # PORTME: fill in a description of your system's C++ link characteristics | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13018 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13019 | ld_shlibs_CXX=yes | |
13020 | case $host_os in | |
13021 | aix3*) | |
13022 | # FIXME: insert proper C++ library support | |
13023 | ld_shlibs_CXX=no | |
13024 | ;; | |
13025 | aix[4-9]*) | |
13026 | if test "$host_cpu" = ia64; then | |
13027 | # On IA64, the linker does run time linking by default, so we don't | |
13028 | # have to do anything special. | |
13029 | aix_use_runtimelinking=no | |
13030 | exp_sym_flag='-Bexport' | |
13031 | no_entry_flag="" | |
13032 | else | |
13033 | aix_use_runtimelinking=no | |
13034 | ||
13035 | # Test if we are trying to use run time linking or normal | |
13036 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13037 | # need to do runtime linking. | |
13038 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13039 | for ld_flag in $LDFLAGS; do | |
13040 | case $ld_flag in | |
13041 | *-brtl*) | |
13042 | aix_use_runtimelinking=yes | |
13043 | break | |
13044 | ;; | |
13045 | esac | |
13046 | done | |
13047 | ;; | |
13048 | esac | |
13049 | ||
13050 | exp_sym_flag='-bexport' | |
13051 | no_entry_flag='-bnoentry' | |
13052 | fi | |
13053 | ||
13054 | # When large executables or shared objects are built, AIX ld can | |
13055 | # have problems creating the table of contents. If linking a library | |
13056 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13057 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13058 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13059 | ||
13060 | archive_cmds_CXX='' | |
13061 | hardcode_direct_CXX=yes | |
13062 | hardcode_direct_absolute_CXX=yes | |
13063 | hardcode_libdir_separator_CXX=':' | |
13064 | link_all_deplibs_CXX=yes | |
13065 | file_list_spec_CXX='${wl}-f,' | |
13066 | ||
13067 | if test "$GXX" = yes; then | |
13068 | case $host_os in aix4.[012]|aix4.[012].*) | |
13069 | # We only want to do this on AIX 4.2 and lower, the check | |
13070 | # below for broken collect2 doesn't work under 4.3+ | |
13071 | collect2name=`${CC} -print-prog-name=collect2` | |
13072 | if test -f "$collect2name" && | |
13073 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13074 | then | |
13075 | # We have reworked collect2 | |
13076 | : | |
13077 | else | |
13078 | # We have old collect2 | |
13079 | hardcode_direct_CXX=unsupported | |
13080 | # It fails to find uninstalled libraries when the uninstalled | |
13081 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13082 | # to unsupported forces relinking | |
13083 | hardcode_minus_L_CXX=yes | |
13084 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13085 | hardcode_libdir_separator_CXX= | |
13086 | fi | |
13087 | esac | |
13088 | shared_flag='-shared' | |
13089 | if test "$aix_use_runtimelinking" = yes; then | |
13090 | shared_flag="$shared_flag "'${wl}-G' | |
13091 | fi | |
13092 | else | |
13093 | # not using gcc | |
13094 | if test "$host_cpu" = ia64; then | |
13095 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13096 | # chokes on -Wl,-G. The following line is correct: | |
13097 | shared_flag='-G' | |
13098 | else | |
13099 | if test "$aix_use_runtimelinking" = yes; then | |
13100 | shared_flag='${wl}-G' | |
13101 | else | |
13102 | shared_flag='${wl}-bM:SRE' | |
13103 | fi | |
13104 | fi | |
13105 | fi | |
13106 | ||
13107 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13108 | # It seems that -bexpall does not export symbols beginning with | |
13109 | # underscore (_), so it is better to generate a list of symbols to | |
13110 | # export. | |
13111 | always_export_symbols_CXX=yes | |
13112 | if test "$aix_use_runtimelinking" = yes; then | |
13113 | # Warning - without using the other runtime loading flags (-brtl), | |
13114 | # -berok will link without error, but may produce a broken library. | |
13115 | allow_undefined_flag_CXX='-berok' | |
13116 | # Determine the default libpath from the value encoded in an empty | |
13117 | # executable. | |
ee134472 JF |
13118 | if test "${lt_cv_aix_libpath+set}" = set; then |
13119 | aix_libpath=$lt_cv_aix_libpath | |
13120 | else | |
13121 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13122 | $as_echo_n "(cached) " >&6 | |
13123 | else | |
13124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13125 | /* end confdefs.h. */ |
13126 | ||
13127 | int | |
13128 | main () | |
13129 | { | |
13130 | ||
13131 | ; | |
13132 | return 0; | |
13133 | } | |
13134 | _ACEOF | |
47aaa820 | 13135 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13136 | |
ee134472 JF |
13137 | lt_aix_libpath_sed=' |
13138 | /Import File Strings/,/^$/ { | |
13139 | /^0/ { | |
13140 | s/^0 *\([^ ]*\) *$/\1/ | |
13141 | p | |
13142 | } | |
13143 | }' | |
13144 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13145 | # Check for a 64-bit object if we didn't find anything. | |
13146 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13147 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13148 | fi | |
47aaa820 DWT |
13149 | fi |
13150 | rm -f core conftest.err conftest.$ac_objext \ | |
13151 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13152 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13153 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13154 | fi | |
13155 | ||
13156 | fi | |
13157 | ||
13158 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13159 | fi | |
47aaa820 DWT |
13160 | |
13161 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13162 | ||
ee134472 | 13163 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
47aaa820 DWT |
13164 | else |
13165 | if test "$host_cpu" = ia64; then | |
13166 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13167 | allow_undefined_flag_CXX="-z nodefs" | |
13168 | 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" | |
13169 | else | |
13170 | # Determine the default libpath from the value encoded in an | |
13171 | # empty executable. | |
ee134472 JF |
13172 | if test "${lt_cv_aix_libpath+set}" = set; then |
13173 | aix_libpath=$lt_cv_aix_libpath | |
13174 | else | |
13175 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13176 | $as_echo_n "(cached) " >&6 | |
13177 | else | |
13178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13179 | /* end confdefs.h. */ |
13180 | ||
13181 | int | |
13182 | main () | |
13183 | { | |
13184 | ||
13185 | ; | |
13186 | return 0; | |
13187 | } | |
13188 | _ACEOF | |
47aaa820 | 13189 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13190 | |
ee134472 JF |
13191 | lt_aix_libpath_sed=' |
13192 | /Import File Strings/,/^$/ { | |
13193 | /^0/ { | |
13194 | s/^0 *\([^ ]*\) *$/\1/ | |
13195 | p | |
13196 | } | |
13197 | }' | |
13198 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13199 | # Check for a 64-bit object if we didn't find anything. | |
13200 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13201 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13202 | fi | |
9c60689e | 13203 | fi |
47aaa820 DWT |
13204 | rm -f core conftest.err conftest.$ac_objext \ |
13205 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13206 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13207 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13208 | fi | |
13209 | ||
13210 | fi | |
13211 | ||
13212 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13213 | fi | |
9c60689e | 13214 | |
47aaa820 DWT |
13215 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13216 | # Warning - without using the other run time loading flags, | |
13217 | # -berok will link without error, but may produce a broken library. | |
13218 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13219 | allow_undefined_flag_CXX=' ${wl}-berok' | |
ee134472 JF |
13220 | if test "$with_gnu_ld" = yes; then |
13221 | # We only use this code for GNU lds that support --whole-archive. | |
13222 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13223 | else | |
13224 | # Exported symbols can be pulled into shared objects from archives | |
13225 | whole_archive_flag_spec_CXX='$convenience' | |
13226 | fi | |
47aaa820 DWT |
13227 | archive_cmds_need_lc_CXX=yes |
13228 | # This is similar to how AIX traditionally builds its shared | |
13229 | # libraries. | |
13230 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
13231 | fi | |
13232 | fi | |
13233 | ;; | |
9c60689e | 13234 | |
47aaa820 DWT |
13235 | beos*) |
13236 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13237 | allow_undefined_flag_CXX=unsupported | |
13238 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13239 | # support --undefined. This deserves some investigation. FIXME | |
13240 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13241 | else | |
13242 | ld_shlibs_CXX=no | |
13243 | fi | |
13244 | ;; | |
9c60689e | 13245 | |
47aaa820 DWT |
13246 | chorus*) |
13247 | case $cc_basename in | |
13248 | *) | |
13249 | # FIXME: insert proper C++ library support | |
13250 | ld_shlibs_CXX=no | |
13251 | ;; | |
13252 | esac | |
13253 | ;; | |
9c60689e | 13254 | |
47aaa820 | 13255 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13256 | case $GXX,$cc_basename in |
13257 | ,cl* | no,cl*) | |
13258 | # Native MSVC | |
13259 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13260 | # no search path for DLLs. | |
13261 | hardcode_libdir_flag_spec_CXX=' ' | |
13262 | allow_undefined_flag_CXX=unsupported | |
13263 | always_export_symbols_CXX=yes | |
13264 | file_list_spec_CXX='@' | |
13265 | # Tell ltmain to make .lib files, not .a files. | |
13266 | libext=lib | |
13267 | # Tell ltmain to make .dll files, not .so files. | |
13268 | shrext_cmds=".dll" | |
13269 | # FIXME: Setting linknames here is a bad hack. | |
13270 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
13271 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13272 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
13273 | else | |
13274 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
13275 | fi~ | |
13276 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13277 | linknames=' | |
13278 | # The linker will not automatically build a static lib if we build a DLL. | |
13279 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13280 | enable_shared_with_static_runtimes_CXX=yes | |
13281 | # Don't use ranlib | |
13282 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13283 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13284 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13285 | case $lt_outputfile in | |
13286 | *.exe|*.EXE) ;; | |
13287 | *) | |
13288 | lt_outputfile="$lt_outputfile.exe" | |
13289 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
13290 | ;; | |
13291 | esac~ | |
13292 | func_to_tool_file "$lt_outputfile"~ | |
13293 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
13294 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13295 | $RM "$lt_outputfile.manifest"; | |
13296 | fi' | |
13297 | ;; | |
13298 | *) | |
13299 | # g++ | |
13300 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13301 | # as there is no search path for DLLs. | |
13302 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13303 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13304 | allow_undefined_flag_CXX=unsupported | |
13305 | always_export_symbols_CXX=no | |
13306 | enable_shared_with_static_runtimes_CXX=yes | |
13307 | ||
13308 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13309 | 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' | |
13310 | # If the export-symbols file already is a .def file (1st line | |
13311 | # is EXPORTS), use it as is; otherwise, prepend... | |
13312 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13313 | cp $export_symbols $output_objdir/$soname.def; | |
13314 | else | |
13315 | echo EXPORTS > $output_objdir/$soname.def; | |
13316 | cat $export_symbols >> $output_objdir/$soname.def; | |
13317 | fi~ | |
13318 | $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' | |
13319 | else | |
13320 | ld_shlibs_CXX=no | |
13321 | fi | |
13322 | ;; | |
13323 | esac | |
13324 | ;; | |
47aaa820 | 13325 | darwin* | rhapsody*) |
9c60689e | 13326 | |
9c60689e | 13327 | |
47aaa820 DWT |
13328 | archive_cmds_need_lc_CXX=no |
13329 | hardcode_direct_CXX=no | |
13330 | hardcode_automatic_CXX=yes | |
13331 | hardcode_shlibpath_var_CXX=unsupported | |
ee134472 JF |
13332 | if test "$lt_cv_ld_force_load" = "yes"; then |
13333 | 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 | 13334 | |
ee134472 JF |
13335 | else |
13336 | whole_archive_flag_spec_CXX='' | |
13337 | fi | |
47aaa820 DWT |
13338 | link_all_deplibs_CXX=yes |
13339 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13340 | case $cc_basename in | |
13341 | ifort*) _lt_dar_can_shared=yes ;; | |
13342 | *) _lt_dar_can_shared=$GCC ;; | |
13343 | esac | |
13344 | if test "$_lt_dar_can_shared" = "yes"; then | |
ee134472 | 13345 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13346 | 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}" |
13347 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13348 | 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}" | |
13349 | 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}" | |
13350 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13351 | 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}" | |
13352 | 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}" | |
13353 | fi | |
9c60689e | 13354 | |
47aaa820 DWT |
13355 | else |
13356 | ld_shlibs_CXX=no | |
13357 | fi | |
9c60689e | 13358 | |
47aaa820 | 13359 | ;; |
9c60689e | 13360 | |
47aaa820 DWT |
13361 | dgux*) |
13362 | case $cc_basename in | |
13363 | ec++*) | |
13364 | # FIXME: insert proper C++ library support | |
13365 | ld_shlibs_CXX=no | |
13366 | ;; | |
13367 | ghcx*) | |
13368 | # Green Hills C++ Compiler | |
13369 | # FIXME: insert proper C++ library support | |
13370 | ld_shlibs_CXX=no | |
13371 | ;; | |
13372 | *) | |
13373 | # FIXME: insert proper C++ library support | |
13374 | ld_shlibs_CXX=no | |
13375 | ;; | |
13376 | esac | |
13377 | ;; | |
9c60689e | 13378 | |
53ba6704 | 13379 | freebsd2.*) |
47aaa820 DWT |
13380 | # C++ shared libraries reported to be fairly broken before |
13381 | # switch to ELF | |
13382 | ld_shlibs_CXX=no | |
13383 | ;; | |
9c60689e | 13384 | |
47aaa820 DWT |
13385 | freebsd-elf*) |
13386 | archive_cmds_need_lc_CXX=no | |
13387 | ;; | |
9c60689e | 13388 | |
47aaa820 DWT |
13389 | freebsd* | dragonfly*) |
13390 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13391 | # conventions | |
13392 | ld_shlibs_CXX=yes | |
13393 | ;; | |
9c60689e | 13394 | |
47aaa820 DWT |
13395 | gnu*) |
13396 | ;; | |
9c60689e | 13397 | |
ee134472 JF |
13398 | haiku*) |
13399 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13400 | link_all_deplibs_CXX=yes | |
13401 | ;; | |
13402 | ||
47aaa820 DWT |
13403 | hpux9*) |
13404 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13405 | hardcode_libdir_separator_CXX=: | |
13406 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13407 | hardcode_direct_CXX=yes | |
13408 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13409 | # but as the default | |
13410 | # location of the library. | |
9c60689e | 13411 | |
47aaa820 DWT |
13412 | case $cc_basename in |
13413 | CC*) | |
13414 | # FIXME: insert proper C++ library support | |
13415 | ld_shlibs_CXX=no | |
13416 | ;; | |
13417 | aCC*) | |
13418 | 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13419 | # Commands to make compiler produce verbose output that lists | |
13420 | # what "hidden" libraries, object files and flags are used when | |
13421 | # linking a shared library. | |
13422 | # | |
13423 | # There doesn't appear to be a way to prevent this compiler from | |
13424 | # explicitly linking system object files so we need to strip them | |
13425 | # from the output so that they don't get included in the library | |
13426 | # dependencies. | |
ee134472 | 13427 | 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 |
13428 | ;; |
13429 | *) | |
13430 | if test "$GXX" = yes; then | |
ee134472 | 13431 | 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
47aaa820 DWT |
13432 | else |
13433 | # FIXME: insert proper C++ library support | |
13434 | ld_shlibs_CXX=no | |
13435 | fi | |
13436 | ;; | |
13437 | esac | |
13438 | ;; | |
9c60689e | 13439 | |
47aaa820 DWT |
13440 | hpux10*|hpux11*) |
13441 | if test $with_gnu_ld = no; then | |
13442 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13443 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13444 | |
47aaa820 DWT |
13445 | case $host_cpu in |
13446 | hppa*64*|ia64*) | |
13447 | ;; | |
13448 | *) | |
13449 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13450 | ;; | |
13451 | esac | |
13452 | fi | |
13453 | case $host_cpu in | |
13454 | hppa*64*|ia64*) | |
13455 | hardcode_direct_CXX=no | |
13456 | hardcode_shlibpath_var_CXX=no | |
13457 | ;; | |
13458 | *) | |
13459 | hardcode_direct_CXX=yes | |
13460 | hardcode_direct_absolute_CXX=yes | |
13461 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13462 | # but as the default | |
13463 | # location of the library. | |
13464 | ;; | |
13465 | esac | |
9c60689e | 13466 | |
47aaa820 DWT |
13467 | case $cc_basename in |
13468 | CC*) | |
13469 | # FIXME: insert proper C++ library support | |
13470 | ld_shlibs_CXX=no | |
13471 | ;; | |
13472 | aCC*) | |
13473 | case $host_cpu in | |
13474 | hppa*64*) | |
13475 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13476 | ;; | |
13477 | ia64*) | |
13478 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13479 | ;; | |
13480 | *) | |
13481 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13482 | ;; | |
13483 | esac | |
13484 | # Commands to make compiler produce verbose output that lists | |
13485 | # what "hidden" libraries, object files and flags are used when | |
13486 | # linking a shared library. | |
13487 | # | |
13488 | # There doesn't appear to be a way to prevent this compiler from | |
13489 | # explicitly linking system object files so we need to strip them | |
13490 | # from the output so that they don't get included in the library | |
13491 | # dependencies. | |
ee134472 | 13492 | 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 |
13493 | ;; |
13494 | *) | |
13495 | if test "$GXX" = yes; then | |
13496 | if test $with_gnu_ld = no; then | |
13497 | case $host_cpu in | |
13498 | hppa*64*) | |
13499 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13500 | ;; | |
13501 | ia64*) | |
ee134472 | 13502 | 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 |
13503 | ;; |
13504 | *) | |
ee134472 | 13505 | 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 |
13506 | ;; |
13507 | esac | |
13508 | fi | |
13509 | else | |
13510 | # FIXME: insert proper C++ library support | |
13511 | ld_shlibs_CXX=no | |
13512 | fi | |
13513 | ;; | |
13514 | esac | |
13515 | ;; | |
9c60689e | 13516 | |
47aaa820 DWT |
13517 | interix[3-9]*) |
13518 | hardcode_direct_CXX=no | |
13519 | hardcode_shlibpath_var_CXX=no | |
13520 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13521 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13522 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13523 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13524 | # default) and relocated if they conflict, which is a slow very memory | |
13525 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13526 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13527 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13528 | 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' | |
13529 | 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' | |
13530 | ;; | |
13531 | irix5* | irix6*) | |
13532 | case $cc_basename in | |
13533 | CC*) | |
13534 | # SGI C++ | |
ee134472 | 13535 | 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 | 13536 | |
47aaa820 DWT |
13537 | # Archives containing C++ object files must be created using |
13538 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13539 | # necessary to make sure instantiated templates are included | |
13540 | # in the archive. | |
13541 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13542 | ;; | |
13543 | *) | |
13544 | if test "$GXX" = yes; then | |
13545 | if test "$with_gnu_ld" = no; then | |
ee134472 | 13546 | 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 | 13547 | else |
ee134472 | 13548 | 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 |
13549 | fi |
13550 | fi | |
13551 | link_all_deplibs_CXX=yes | |
13552 | ;; | |
13553 | esac | |
13554 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13555 | hardcode_libdir_separator_CXX=: | |
13556 | inherit_rpath_CXX=yes | |
13557 | ;; | |
9c60689e | 13558 | |
1504c9b8 | 13559 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13560 | case $cc_basename in |
13561 | KCC*) | |
13562 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13563 | |
47aaa820 DWT |
13564 | # KCC will only create a shared library if the output file |
13565 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13566 | # to its proper name (with version) after linking. | |
13567 | 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' | |
13568 | 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' | |
13569 | # Commands to make compiler produce verbose output that lists | |
13570 | # what "hidden" libraries, object files and flags are used when | |
13571 | # linking a shared library. | |
13572 | # | |
13573 | # There doesn't appear to be a way to prevent this compiler from | |
13574 | # explicitly linking system object files so we need to strip them | |
13575 | # from the output so that they don't get included in the library | |
13576 | # dependencies. | |
ee134472 | 13577 | 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 | 13578 | |
47aaa820 DWT |
13579 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13580 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13581 | |
47aaa820 DWT |
13582 | # Archives containing C++ object files must be created using |
13583 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13584 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13585 | ;; | |
13586 | icpc* | ecpc* ) | |
13587 | # Intel C++ | |
13588 | with_gnu_ld=yes | |
13589 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13590 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13591 | # earlier do not add the objects themselves. | |
13592 | case `$CC -V 2>&1` in | |
13593 | *"Version 7."*) | |
13594 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13595 | 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' | |
13596 | ;; | |
13597 | *) # Version 8.0 or newer | |
13598 | tmp_idyn= | |
13599 | case $host_cpu in | |
13600 | ia64*) tmp_idyn=' -i_dynamic';; | |
13601 | esac | |
13602 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13603 | 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' | |
13604 | ;; | |
13605 | esac | |
13606 | archive_cmds_need_lc_CXX=no | |
13607 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13608 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13609 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13610 | ;; | |
13611 | pgCC* | pgcpp*) | |
13612 | # Portland Group C++ compiler | |
13613 | case `$CC -V` in | |
ee134472 | 13614 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 DWT |
13615 | prelink_cmds_CXX='tpldir=Template.dir~ |
13616 | rm -rf $tpldir~ | |
13617 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
ee134472 | 13618 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
47aaa820 DWT |
13619 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13620 | rm -rf $tpldir~ | |
13621 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
ee134472 | 13622 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
47aaa820 DWT |
13623 | $RANLIB $oldlib' |
13624 | archive_cmds_CXX='tpldir=Template.dir~ | |
13625 | rm -rf $tpldir~ | |
13626 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13627 | $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 DWT |
13628 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13629 | rm -rf $tpldir~ | |
13630 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13631 | $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 | 13632 | ;; |
ee134472 | 13633 | *) # Version 6 and above use weak symbols |
47aaa820 DWT |
13634 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13635 | 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' | |
13636 | ;; | |
13637 | esac | |
9c60689e | 13638 | |
47aaa820 DWT |
13639 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13640 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
ee134472 | 13641 | 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 |
13642 | ;; |
13643 | cxx*) | |
13644 | # Compaq C++ | |
13645 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13646 | 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 | 13647 | |
47aaa820 DWT |
13648 | runpath_var=LD_RUN_PATH |
13649 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13650 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13651 | |
47aaa820 DWT |
13652 | # Commands to make compiler produce verbose output that lists |
13653 | # what "hidden" libraries, object files and flags are used when | |
13654 | # linking a shared library. | |
13655 | # | |
13656 | # There doesn't appear to be a way to prevent this compiler from | |
13657 | # explicitly linking system object files so we need to strip them | |
13658 | # from the output so that they don't get included in the library | |
13659 | # dependencies. | |
ee134472 | 13660 | 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 | 13661 | ;; |
ee134472 | 13662 | xl* | mpixl* | bgxl*) |
47aaa820 DWT |
13663 | # IBM XL 8.0 on PPC, with GNU ld |
13664 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13665 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13666 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13667 | if test "x$supports_anon_versioning" = xyes; then | |
13668 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13669 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13670 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13671 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13672 | fi | |
13673 | ;; | |
13674 | *) | |
13675 | case `$CC -V 2>&1 | sed 5q` in | |
13676 | *Sun\ C*) | |
13677 | # Sun C++ 5.9 | |
13678 | no_undefined_flag_CXX=' -zdefs' | |
13679 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13680 | 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' | |
13681 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
ee134472 | 13682 | 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 | 13683 | compiler_needs_object_CXX=yes |
9c60689e | 13684 | |
47aaa820 DWT |
13685 | # Not sure whether something based on |
13686 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13687 | # would be better. | |
ee134472 | 13688 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13689 | |
47aaa820 DWT |
13690 | # Archives containing C++ object files must be created using |
13691 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13692 | # necessary to make sure instantiated templates are included | |
13693 | # in the archive. | |
13694 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13695 | ;; | |
13696 | esac | |
13697 | ;; | |
13698 | esac | |
13699 | ;; | |
9c60689e | 13700 | |
47aaa820 DWT |
13701 | lynxos*) |
13702 | # FIXME: insert proper C++ library support | |
13703 | ld_shlibs_CXX=no | |
13704 | ;; | |
9c60689e | 13705 | |
47aaa820 DWT |
13706 | m88k*) |
13707 | # FIXME: insert proper C++ library support | |
13708 | ld_shlibs_CXX=no | |
13709 | ;; | |
9c60689e | 13710 | |
47aaa820 DWT |
13711 | mvs*) |
13712 | case $cc_basename in | |
13713 | cxx*) | |
13714 | # FIXME: insert proper C++ library support | |
13715 | ld_shlibs_CXX=no | |
13716 | ;; | |
13717 | *) | |
13718 | # FIXME: insert proper C++ library support | |
13719 | ld_shlibs_CXX=no | |
13720 | ;; | |
13721 | esac | |
13722 | ;; | |
9c60689e | 13723 | |
47aaa820 DWT |
13724 | netbsd*) |
13725 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13726 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13727 | wlarc= | |
13728 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13729 | hardcode_direct_CXX=yes | |
13730 | hardcode_shlibpath_var_CXX=no | |
13731 | fi | |
13732 | # Workaround some broken pre-1.5 toolchains | |
13733 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 13734 | ;; |
47aaa820 DWT |
13735 | |
13736 | *nto* | *qnx*) | |
13737 | ld_shlibs_CXX=yes | |
9c60689e | 13738 | ;; |
9c60689e | 13739 | |
47aaa820 DWT |
13740 | openbsd2*) |
13741 | # C++ shared libraries are fairly broken | |
13742 | ld_shlibs_CXX=no | |
13743 | ;; | |
9c60689e | 13744 | |
47aaa820 DWT |
13745 | openbsd*) |
13746 | if test -f /usr/libexec/ld.so; then | |
13747 | hardcode_direct_CXX=yes | |
13748 | hardcode_shlibpath_var_CXX=no | |
13749 | hardcode_direct_absolute_CXX=yes | |
13750 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13751 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13752 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13753 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13754 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13755 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13756 | fi | |
ee134472 | 13757 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13758 | else |
13759 | ld_shlibs_CXX=no | |
13760 | fi | |
13761 | ;; | |
9c60689e | 13762 | |
47aaa820 DWT |
13763 | osf3* | osf4* | osf5*) |
13764 | case $cc_basename in | |
13765 | KCC*) | |
13766 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13767 | |
47aaa820 DWT |
13768 | # KCC will only create a shared library if the output file |
13769 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13770 | # to its proper name (with version) after linking. | |
13771 | 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 | 13772 | |
47aaa820 DWT |
13773 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13774 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13775 | |
47aaa820 DWT |
13776 | # Archives containing C++ object files must be created using |
13777 | # the KAI C++ compiler. | |
13778 | case $host in | |
13779 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13780 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13781 | esac | |
13782 | ;; | |
13783 | RCC*) | |
13784 | # Rational C++ 2.4.1 | |
13785 | # FIXME: insert proper C++ library support | |
13786 | ld_shlibs_CXX=no | |
13787 | ;; | |
13788 | cxx*) | |
13789 | case $host in | |
13790 | osf3*) | |
13791 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
ee134472 | 13792 | 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' |
47aaa820 DWT |
13793 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13794 | ;; | |
13795 | *) | |
13796 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
ee134472 | 13797 | 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 DWT |
13798 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13799 | echo "-hidden">> $lib.exp~ | |
ee134472 | 13800 | $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~ |
47aaa820 DWT |
13801 | $RM $lib.exp' |
13802 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13803 | ;; | |
13804 | esac | |
9c60689e | 13805 | |
47aaa820 | 13806 | hardcode_libdir_separator_CXX=: |
9c60689e | 13807 | |
47aaa820 DWT |
13808 | # Commands to make compiler produce verbose output that lists |
13809 | # what "hidden" libraries, object files and flags are used when | |
13810 | # linking a shared library. | |
13811 | # | |
13812 | # There doesn't appear to be a way to prevent this compiler from | |
13813 | # explicitly linking system object files so we need to strip them | |
13814 | # from the output so that they don't get included in the library | |
13815 | # dependencies. | |
ee134472 | 13816 | 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 |
13817 | ;; |
13818 | *) | |
13819 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13820 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13821 | case $host in | |
13822 | osf3*) | |
ee134472 | 13823 | 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 |
13824 | ;; |
13825 | *) | |
ee134472 | 13826 | 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 |
13827 | ;; |
13828 | esac | |
9c60689e | 13829 | |
47aaa820 DWT |
13830 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13831 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13832 | |
47aaa820 DWT |
13833 | # Commands to make compiler produce verbose output that lists |
13834 | # what "hidden" libraries, object files and flags are used when | |
13835 | # linking a shared library. | |
ee134472 | 13836 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 13837 | |
47aaa820 DWT |
13838 | else |
13839 | # FIXME: insert proper C++ library support | |
13840 | ld_shlibs_CXX=no | |
13841 | fi | |
13842 | ;; | |
13843 | esac | |
13844 | ;; | |
9c60689e | 13845 | |
47aaa820 | 13846 | psos*) |
9c60689e DWT |
13847 | # FIXME: insert proper C++ library support |
13848 | ld_shlibs_CXX=no | |
13849 | ;; | |
9c60689e | 13850 | |
47aaa820 DWT |
13851 | sunos4*) |
13852 | case $cc_basename in | |
13853 | CC*) | |
13854 | # Sun C++ 4.x | |
13855 | # FIXME: insert proper C++ library support | |
13856 | ld_shlibs_CXX=no | |
9c60689e | 13857 | ;; |
47aaa820 DWT |
13858 | lcc*) |
13859 | # Lucid | |
13860 | # FIXME: insert proper C++ library support | |
13861 | ld_shlibs_CXX=no | |
13862 | ;; | |
13863 | *) | |
13864 | # FIXME: insert proper C++ library support | |
13865 | ld_shlibs_CXX=no | |
13866 | ;; | |
13867 | esac | |
13868 | ;; | |
9c60689e | 13869 | |
47aaa820 DWT |
13870 | solaris*) |
13871 | case $cc_basename in | |
ee134472 | 13872 | CC* | sunCC*) |
47aaa820 DWT |
13873 | # Sun C++ 4.2, 5.x and Centerline C++ |
13874 | archive_cmds_need_lc_CXX=yes | |
13875 | no_undefined_flag_CXX=' -zdefs' | |
13876 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13877 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13878 | $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 | 13879 | |
47aaa820 DWT |
13880 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13881 | hardcode_shlibpath_var_CXX=no | |
13882 | case $host_os in | |
13883 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13884 | *) | |
13885 | # The compiler driver will combine and reorder linker options, | |
13886 | # but understands `-z linker_flag'. | |
13887 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13888 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13889 | ;; | |
13890 | esac | |
13891 | link_all_deplibs_CXX=yes | |
9c60689e | 13892 | |
ee134472 | 13893 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13894 | |
47aaa820 DWT |
13895 | # Archives containing C++ object files must be created using |
13896 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13897 | # necessary to make sure instantiated templates are included | |
13898 | # in the archive. | |
13899 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13900 | ;; | |
13901 | gcx*) | |
13902 | # Green Hills C++ Compiler | |
13903 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 13904 | |
47aaa820 DWT |
13905 | # The C++ compiler must be used to create the archive. |
13906 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13907 | ;; | |
13908 | *) | |
13909 | # GNU C++ compiler with Solaris linker | |
13910 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13911 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13912 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
ee134472 | 13913 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
47aaa820 | 13914 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
ee134472 | 13915 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 13916 | |
47aaa820 DWT |
13917 | # Commands to make compiler produce verbose output that lists |
13918 | # what "hidden" libraries, object files and flags are used when | |
13919 | # linking a shared library. | |
ee134472 | 13920 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13921 | else |
13922 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13923 | # platform. | |
13924 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13925 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13926 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 13927 | |
47aaa820 DWT |
13928 | # Commands to make compiler produce verbose output that lists |
13929 | # what "hidden" libraries, object files and flags are used when | |
13930 | # linking a shared library. | |
ee134472 | 13931 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 13932 | fi |
9c60689e | 13933 | |
47aaa820 DWT |
13934 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
13935 | case $host_os in | |
13936 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13937 | *) | |
13938 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13939 | ;; | |
13940 | esac | |
13941 | fi | |
13942 | ;; | |
13943 | esac | |
13944 | ;; | |
9c60689e | 13945 | |
47aaa820 DWT |
13946 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
13947 | no_undefined_flag_CXX='${wl}-z,text' | |
13948 | archive_cmds_need_lc_CXX=no | |
13949 | hardcode_shlibpath_var_CXX=no | |
13950 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13951 | |
47aaa820 DWT |
13952 | case $cc_basename in |
13953 | CC*) | |
13954 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13955 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13956 | ;; | |
13957 | *) | |
13958 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13959 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13960 | ;; | |
13961 | esac | |
13962 | ;; | |
9c60689e | 13963 | |
47aaa820 DWT |
13964 | sysv5* | sco3.2v5* | sco5v6*) |
13965 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13966 | # link with -lc, and that would cause any symbols used from libc to | |
13967 | # always be unresolved, which means just about no library would | |
13968 | # ever link correctly. If we're not using GNU ld we use -z text | |
13969 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13970 | # as -z defs. | |
13971 | no_undefined_flag_CXX='${wl}-z,text' | |
13972 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13973 | archive_cmds_need_lc_CXX=no | |
13974 | hardcode_shlibpath_var_CXX=no | |
13975 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13976 | hardcode_libdir_separator_CXX=':' | |
13977 | link_all_deplibs_CXX=yes | |
13978 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13979 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13980 | |
47aaa820 DWT |
13981 | case $cc_basename in |
13982 | CC*) | |
13983 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13984 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 JF |
13985 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
13986 | '"$old_archive_cmds_CXX" | |
13987 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13988 | '"$reload_cmds_CXX" | |
47aaa820 DWT |
13989 | ;; |
13990 | *) | |
13991 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13992 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13993 | ;; | |
13994 | esac | |
13995 | ;; | |
9c60689e | 13996 | |
47aaa820 | 13997 | tandem*) |
9c60689e | 13998 | case $cc_basename in |
47aaa820 DWT |
13999 | NCC*) |
14000 | # NonStop-UX NCC 3.20 | |
14001 | # FIXME: insert proper C++ library support | |
14002 | ld_shlibs_CXX=no | |
14003 | ;; | |
9c60689e | 14004 | *) |
47aaa820 DWT |
14005 | # FIXME: insert proper C++ library support |
14006 | ld_shlibs_CXX=no | |
14007 | ;; | |
9c60689e DWT |
14008 | esac |
14009 | ;; | |
14010 | ||
47aaa820 DWT |
14011 | vxworks*) |
14012 | # FIXME: insert proper C++ library support | |
14013 | ld_shlibs_CXX=no | |
14014 | ;; | |
9c60689e | 14015 | |
47aaa820 DWT |
14016 | *) |
14017 | # FIXME: insert proper C++ library support | |
14018 | ld_shlibs_CXX=no | |
9c60689e | 14019 | ;; |
47aaa820 | 14020 | esac |
9c60689e | 14021 | |
47aaa820 DWT |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
14023 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14024 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 14025 | |
47aaa820 DWT |
14026 | GCC_CXX="$GXX" |
14027 | LD_CXX="$LD" | |
9c60689e | 14028 | |
47aaa820 DWT |
14029 | ## CAVEAT EMPTOR: |
14030 | ## There is no encapsulation within the following macros, do not change | |
14031 | ## the running order or otherwise move them around unless you know exactly | |
14032 | ## what you are doing... | |
14033 | # Dependencies to place before and after the object being linked: | |
14034 | predep_objects_CXX= | |
14035 | postdep_objects_CXX= | |
14036 | predeps_CXX= | |
14037 | postdeps_CXX= | |
14038 | compiler_lib_search_path_CXX= | |
9c60689e | 14039 | |
47aaa820 DWT |
14040 | cat > conftest.$ac_ext <<_LT_EOF |
14041 | class Foo | |
14042 | { | |
14043 | public: | |
14044 | Foo (void) { a = 0; } | |
14045 | private: | |
14046 | int a; | |
14047 | }; | |
14048 | _LT_EOF | |
9c60689e | 14049 | |
ee134472 JF |
14050 | |
14051 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14052 | case "$CC $CFLAGS " in #( | |
14053 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14054 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14055 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14056 | esac |
14057 | ||
47aaa820 DWT |
14058 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14059 | (eval $ac_compile) 2>&5 | |
14060 | ac_status=$? | |
14061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14062 | test $ac_status = 0; }; then | |
14063 | # Parse the compiler output and extract the necessary | |
14064 | # objects, libraries and library flags. | |
9c60689e | 14065 | |
47aaa820 DWT |
14066 | # Sentinel used to keep track of whether or not we are before |
14067 | # the conftest object file. | |
14068 | pre_test_object_deps_done=no | |
9c60689e | 14069 | |
47aaa820 | 14070 | for p in `eval "$output_verbose_link_cmd"`; do |
ee134472 | 14071 | case ${prev}${p} in |
9c60689e | 14072 | |
47aaa820 DWT |
14073 | -L* | -R* | -l*) |
14074 | # Some compilers place space between "-{L,R}" and the path. | |
14075 | # Remove the space. | |
14076 | if test $p = "-L" || | |
14077 | test $p = "-R"; then | |
14078 | prev=$p | |
14079 | continue | |
47aaa820 | 14080 | fi |
9c60689e | 14081 | |
ee134472 JF |
14082 | # Expand the sysroot to ease extracting the directories later. |
14083 | if test -z "$prev"; then | |
14084 | case $p in | |
14085 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14086 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14087 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14088 | esac | |
14089 | fi | |
14090 | case $p in | |
14091 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14092 | esac | |
47aaa820 | 14093 | if test "$pre_test_object_deps_done" = no; then |
ee134472 JF |
14094 | case ${prev} in |
14095 | -L | -R) | |
47aaa820 DWT |
14096 | # Internal compiler library paths should come after those |
14097 | # provided the user. The postdeps already come after the | |
14098 | # user supplied libs so there is no need to process them. | |
14099 | if test -z "$compiler_lib_search_path_CXX"; then | |
14100 | compiler_lib_search_path_CXX="${prev}${p}" | |
14101 | else | |
14102 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14103 | fi | |
14104 | ;; | |
14105 | # The "-l" case would never come before the object being | |
14106 | # linked, so don't bother handling this case. | |
14107 | esac | |
14108 | else | |
14109 | if test -z "$postdeps_CXX"; then | |
14110 | postdeps_CXX="${prev}${p}" | |
14111 | else | |
14112 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14113 | fi | |
14114 | fi | |
ee134472 | 14115 | prev= |
47aaa820 | 14116 | ;; |
9c60689e | 14117 | |
ee134472 | 14118 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14119 | *.$objext) |
14120 | # This assumes that the test object file only shows up | |
14121 | # once in the compiler output. | |
14122 | if test "$p" = "conftest.$objext"; then | |
14123 | pre_test_object_deps_done=yes | |
14124 | continue | |
14125 | fi | |
9c60689e | 14126 | |
47aaa820 DWT |
14127 | if test "$pre_test_object_deps_done" = no; then |
14128 | if test -z "$predep_objects_CXX"; then | |
14129 | predep_objects_CXX="$p" | |
14130 | else | |
14131 | predep_objects_CXX="$predep_objects_CXX $p" | |
14132 | fi | |
14133 | else | |
14134 | if test -z "$postdep_objects_CXX"; then | |
14135 | postdep_objects_CXX="$p" | |
14136 | else | |
14137 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14138 | fi | |
14139 | fi | |
14140 | ;; | |
9c60689e | 14141 | |
47aaa820 | 14142 | *) ;; # Ignore the rest. |
9c60689e | 14143 | |
47aaa820 DWT |
14144 | esac |
14145 | done | |
9c60689e | 14146 | |
47aaa820 DWT |
14147 | # Clean up. |
14148 | rm -f a.out a.exe | |
14149 | else | |
14150 | echo "libtool.m4: error: problem compiling CXX test program" | |
14151 | fi | |
9c60689e | 14152 | |
47aaa820 | 14153 | $RM -f confest.$objext |
ee134472 | 14154 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14155 | |
47aaa820 DWT |
14156 | # PORTME: override above test on systems where it is broken |
14157 | case $host_os in | |
14158 | interix[3-9]*) | |
14159 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14160 | # hack all around it, let's just trust "g++" to DTRT. | |
14161 | predep_objects_CXX= | |
14162 | postdep_objects_CXX= | |
14163 | postdeps_CXX= | |
14164 | ;; | |
9c60689e | 14165 | |
47aaa820 DWT |
14166 | linux*) |
14167 | case `$CC -V 2>&1 | sed 5q` in | |
14168 | *Sun\ C*) | |
14169 | # Sun C++ 5.9 | |
9c60689e | 14170 | |
47aaa820 DWT |
14171 | # The more standards-conforming stlport4 library is |
14172 | # incompatible with the Cstd library. Avoid specifying | |
14173 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14174 | # -library=stlport4 depends on it. | |
14175 | case " $CXX $CXXFLAGS " in | |
14176 | *" -library=stlport4 "*) | |
14177 | solaris_use_stlport4=yes | |
14178 | ;; | |
14179 | esac | |
9c60689e | 14180 | |
47aaa820 DWT |
14181 | if test "$solaris_use_stlport4" != yes; then |
14182 | postdeps_CXX='-library=Cstd -library=Crun' | |
14183 | fi | |
14184 | ;; | |
14185 | esac | |
14186 | ;; | |
9c60689e | 14187 | |
47aaa820 DWT |
14188 | solaris*) |
14189 | case $cc_basename in | |
ee134472 | 14190 | CC* | sunCC*) |
47aaa820 DWT |
14191 | # The more standards-conforming stlport4 library is |
14192 | # incompatible with the Cstd library. Avoid specifying | |
14193 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14194 | # -library=stlport4 depends on it. | |
14195 | case " $CXX $CXXFLAGS " in | |
14196 | *" -library=stlport4 "*) | |
14197 | solaris_use_stlport4=yes | |
14198 | ;; | |
14199 | esac | |
9c60689e | 14200 | |
47aaa820 DWT |
14201 | # Adding this requires a known-good setup of shared libraries for |
14202 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14203 | # archive will be linked into the output, leading to subtle bugs. | |
14204 | if test "$solaris_use_stlport4" != yes; then | |
14205 | postdeps_CXX='-library=Cstd -library=Crun' | |
14206 | fi | |
14207 | ;; | |
14208 | esac | |
14209 | ;; | |
14210 | esac | |
9c60689e | 14211 | |
9c60689e | 14212 | |
47aaa820 DWT |
14213 | case " $postdeps_CXX " in |
14214 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14215 | esac | |
14216 | compiler_lib_search_dirs_CXX= | |
14217 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14218 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14219 | fi | |
9c60689e | 14220 | |
9c60689e | 14221 | |
9c60689e | 14222 | |
9c60689e | 14223 | |
9c60689e | 14224 | |
9c60689e | 14225 | |
9c60689e | 14226 | |
9c60689e | 14227 | |
9c60689e | 14228 | |
9c60689e | 14229 | |
9c60689e | 14230 | |
9c60689e | 14231 | |
9c60689e | 14232 | |
9c60689e | 14233 | |
9c60689e | 14234 | |
9c60689e | 14235 | |
9c60689e | 14236 | |
9c60689e | 14237 | |
9c60689e | 14238 | |
9c60689e | 14239 | |
9c60689e | 14240 | |
9c60689e | 14241 | |
9c60689e | 14242 | |
9c60689e | 14243 | |
9c60689e | 14244 | |
9c60689e | 14245 | |
9c60689e | 14246 | |
9c60689e | 14247 | |
9c60689e | 14248 | |
9c60689e | 14249 | |
9c60689e | 14250 | |
47aaa820 DWT |
14251 | lt_prog_compiler_wl_CXX= |
14252 | lt_prog_compiler_pic_CXX= | |
14253 | lt_prog_compiler_static_CXX= | |
9c60689e | 14254 | |
9c60689e DWT |
14255 | |
14256 | # C++ specific cases for pic, static, wl, etc. | |
14257 | if test "$GXX" = yes; then | |
14258 | lt_prog_compiler_wl_CXX='-Wl,' | |
14259 | lt_prog_compiler_static_CXX='-static' | |
14260 | ||
14261 | case $host_os in | |
14262 | aix*) | |
14263 | # All AIX code is PIC. | |
14264 | if test "$host_cpu" = ia64; then | |
14265 | # AIX 5 now supports IA64 processor | |
14266 | lt_prog_compiler_static_CXX='-Bstatic' | |
14267 | fi | |
14268 | ;; | |
14269 | ||
14270 | amigaos*) | |
14271 | case $host_cpu in | |
14272 | powerpc) | |
14273 | # see comment about AmigaOS4 .so support | |
14274 | lt_prog_compiler_pic_CXX='-fPIC' | |
14275 | ;; | |
14276 | m68k) | |
14277 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14278 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14279 | # like `-m68040'. | |
14280 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14281 | ;; | |
14282 | esac | |
14283 | ;; | |
14284 | ||
14285 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14286 | # PIC is the default for these OSes. | |
14287 | ;; | |
14288 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14289 | # This hack is so that the source file can tell whether it is being | |
14290 | # built for inclusion in a dll (and should export symbols for example). | |
14291 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14292 | # (--disable-auto-import) libraries | |
14293 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14294 | ;; | |
14295 | darwin* | rhapsody*) | |
14296 | # PIC is the default on this platform | |
14297 | # Common symbols not allowed in MH_DYLIB files | |
14298 | lt_prog_compiler_pic_CXX='-fno-common' | |
14299 | ;; | |
14300 | *djgpp*) | |
14301 | # DJGPP does not support shared libraries at all | |
14302 | lt_prog_compiler_pic_CXX= | |
14303 | ;; | |
ee134472 JF |
14304 | haiku*) |
14305 | # PIC is the default for Haiku. | |
14306 | # The "-static" flag exists, but is broken. | |
14307 | lt_prog_compiler_static_CXX= | |
14308 | ;; | |
9c60689e DWT |
14309 | interix[3-9]*) |
14310 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14311 | # Instead, we relocate shared libraries at runtime. | |
14312 | ;; | |
14313 | sysv4*MP*) | |
14314 | if test -d /usr/nec; then | |
14315 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14316 | fi | |
14317 | ;; | |
14318 | hpux*) | |
14319 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14320 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14321 | # sets the default TLS model and affects inlining. | |
14322 | case $host_cpu in | |
14323 | hppa*64*) | |
14324 | ;; | |
14325 | *) | |
14326 | lt_prog_compiler_pic_CXX='-fPIC' | |
14327 | ;; | |
14328 | esac | |
14329 | ;; | |
14330 | *qnx* | *nto*) | |
14331 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14332 | # it will coredump. | |
14333 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14334 | ;; | |
14335 | *) | |
14336 | lt_prog_compiler_pic_CXX='-fPIC' | |
14337 | ;; | |
14338 | esac | |
14339 | else | |
14340 | case $host_os in | |
14341 | aix[4-9]*) | |
14342 | # All AIX code is PIC. | |
14343 | if test "$host_cpu" = ia64; then | |
14344 | # AIX 5 now supports IA64 processor | |
14345 | lt_prog_compiler_static_CXX='-Bstatic' | |
14346 | else | |
14347 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14348 | fi | |
14349 | ;; | |
14350 | chorus*) | |
14351 | case $cc_basename in | |
14352 | cxch68*) | |
14353 | # Green Hills C++ Compiler | |
14354 | # _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" | |
14355 | ;; | |
14356 | esac | |
14357 | ;; | |
ee134472 JF |
14358 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14359 | # This hack is so that the source file can tell whether it is being | |
14360 | # built for inclusion in a dll (and should export symbols for example). | |
14361 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14362 | ;; | |
9c60689e DWT |
14363 | dgux*) |
14364 | case $cc_basename in | |
14365 | ec++*) | |
14366 | lt_prog_compiler_pic_CXX='-KPIC' | |
14367 | ;; | |
14368 | ghcx*) | |
14369 | # Green Hills C++ Compiler | |
14370 | lt_prog_compiler_pic_CXX='-pic' | |
14371 | ;; | |
14372 | *) | |
14373 | ;; | |
14374 | esac | |
14375 | ;; | |
14376 | freebsd* | dragonfly*) | |
14377 | # FreeBSD uses GNU C++ | |
14378 | ;; | |
14379 | hpux9* | hpux10* | hpux11*) | |
14380 | case $cc_basename in | |
14381 | CC*) | |
14382 | lt_prog_compiler_wl_CXX='-Wl,' | |
14383 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14384 | if test "$host_cpu" != ia64; then | |
14385 | lt_prog_compiler_pic_CXX='+Z' | |
14386 | fi | |
14387 | ;; | |
14388 | aCC*) | |
14389 | lt_prog_compiler_wl_CXX='-Wl,' | |
14390 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14391 | case $host_cpu in | |
14392 | hppa*64*|ia64*) | |
14393 | # +Z the default | |
14394 | ;; | |
14395 | *) | |
14396 | lt_prog_compiler_pic_CXX='+Z' | |
14397 | ;; | |
14398 | esac | |
14399 | ;; | |
14400 | *) | |
14401 | ;; | |
14402 | esac | |
14403 | ;; | |
14404 | interix*) | |
14405 | # This is c89, which is MS Visual C++ (no shared libs) | |
14406 | # Anyone wants to do a port? | |
14407 | ;; | |
14408 | irix5* | irix6* | nonstopux*) | |
14409 | case $cc_basename in | |
14410 | CC*) | |
14411 | lt_prog_compiler_wl_CXX='-Wl,' | |
14412 | lt_prog_compiler_static_CXX='-non_shared' | |
14413 | # CC pic flag -KPIC is the default. | |
14414 | ;; | |
14415 | *) | |
14416 | ;; | |
14417 | esac | |
14418 | ;; | |
1504c9b8 | 14419 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
14420 | case $cc_basename in |
14421 | KCC*) | |
14422 | # KAI C++ Compiler | |
14423 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14424 | lt_prog_compiler_pic_CXX='-fPIC' | |
14425 | ;; | |
14426 | ecpc* ) | |
14427 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14428 | lt_prog_compiler_wl_CXX='-Wl,' | |
14429 | lt_prog_compiler_pic_CXX='-KPIC' | |
14430 | lt_prog_compiler_static_CXX='-static' | |
14431 | ;; | |
14432 | icpc* ) | |
14433 | # Intel C++, used to be incompatible with GCC. | |
14434 | # ICC 10 doesn't accept -KPIC any more. | |
14435 | lt_prog_compiler_wl_CXX='-Wl,' | |
14436 | lt_prog_compiler_pic_CXX='-fPIC' | |
14437 | lt_prog_compiler_static_CXX='-static' | |
14438 | ;; | |
14439 | pgCC* | pgcpp*) | |
14440 | # Portland Group C++ compiler | |
14441 | lt_prog_compiler_wl_CXX='-Wl,' | |
14442 | lt_prog_compiler_pic_CXX='-fpic' | |
14443 | lt_prog_compiler_static_CXX='-Bstatic' | |
14444 | ;; | |
14445 | cxx*) | |
14446 | # Compaq C++ | |
14447 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14448 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14449 | lt_prog_compiler_pic_CXX= | |
14450 | lt_prog_compiler_static_CXX='-non_shared' | |
14451 | ;; | |
ee134472 JF |
14452 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
14453 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
14454 | lt_prog_compiler_wl_CXX='-Wl,' |
14455 | lt_prog_compiler_pic_CXX='-qpic' | |
14456 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14457 | ;; | |
14458 | *) | |
14459 | case `$CC -V 2>&1 | sed 5q` in | |
14460 | *Sun\ C*) | |
14461 | # Sun C++ 5.9 | |
14462 | lt_prog_compiler_pic_CXX='-KPIC' | |
14463 | lt_prog_compiler_static_CXX='-Bstatic' | |
14464 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14465 | ;; | |
14466 | esac | |
14467 | ;; | |
14468 | esac | |
14469 | ;; | |
14470 | lynxos*) | |
14471 | ;; | |
14472 | m88k*) | |
14473 | ;; | |
14474 | mvs*) | |
14475 | case $cc_basename in | |
14476 | cxx*) | |
14477 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14478 | ;; | |
14479 | *) | |
14480 | ;; | |
14481 | esac | |
14482 | ;; | |
53ba6704 | 14483 | netbsd*) |
9c60689e DWT |
14484 | ;; |
14485 | *qnx* | *nto*) | |
14486 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14487 | # it will coredump. | |
14488 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14489 | ;; | |
14490 | osf3* | osf4* | osf5*) | |
14491 | case $cc_basename in | |
14492 | KCC*) | |
14493 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14494 | ;; | |
14495 | RCC*) | |
14496 | # Rational C++ 2.4.1 | |
14497 | lt_prog_compiler_pic_CXX='-pic' | |
14498 | ;; | |
14499 | cxx*) | |
14500 | # Digital/Compaq C++ | |
14501 | lt_prog_compiler_wl_CXX='-Wl,' | |
14502 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14503 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14504 | lt_prog_compiler_pic_CXX= | |
14505 | lt_prog_compiler_static_CXX='-non_shared' | |
14506 | ;; | |
14507 | *) | |
14508 | ;; | |
14509 | esac | |
14510 | ;; | |
14511 | psos*) | |
14512 | ;; | |
14513 | solaris*) | |
14514 | case $cc_basename in | |
ee134472 | 14515 | CC* | sunCC*) |
9c60689e DWT |
14516 | # Sun C++ 4.2, 5.x and Centerline C++ |
14517 | lt_prog_compiler_pic_CXX='-KPIC' | |
14518 | lt_prog_compiler_static_CXX='-Bstatic' | |
14519 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14520 | ;; | |
14521 | gcx*) | |
14522 | # Green Hills C++ Compiler | |
14523 | lt_prog_compiler_pic_CXX='-PIC' | |
14524 | ;; | |
14525 | *) | |
14526 | ;; | |
14527 | esac | |
14528 | ;; | |
14529 | sunos4*) | |
14530 | case $cc_basename in | |
14531 | CC*) | |
14532 | # Sun C++ 4.x | |
14533 | lt_prog_compiler_pic_CXX='-pic' | |
14534 | lt_prog_compiler_static_CXX='-Bstatic' | |
14535 | ;; | |
14536 | lcc*) | |
14537 | # Lucid | |
14538 | lt_prog_compiler_pic_CXX='-pic' | |
14539 | ;; | |
14540 | *) | |
14541 | ;; | |
14542 | esac | |
14543 | ;; | |
14544 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14545 | case $cc_basename in | |
14546 | CC*) | |
14547 | lt_prog_compiler_wl_CXX='-Wl,' | |
14548 | lt_prog_compiler_pic_CXX='-KPIC' | |
14549 | lt_prog_compiler_static_CXX='-Bstatic' | |
14550 | ;; | |
14551 | esac | |
14552 | ;; | |
14553 | tandem*) | |
14554 | case $cc_basename in | |
14555 | NCC*) | |
14556 | # NonStop-UX NCC 3.20 | |
14557 | lt_prog_compiler_pic_CXX='-KPIC' | |
14558 | ;; | |
14559 | *) | |
14560 | ;; | |
14561 | esac | |
14562 | ;; | |
14563 | vxworks*) | |
14564 | ;; | |
14565 | *) | |
14566 | lt_prog_compiler_can_build_shared_CXX=no | |
14567 | ;; | |
14568 | esac | |
14569 | fi | |
14570 | ||
14571 | case $host_os in | |
14572 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14573 | *djgpp*) | |
14574 | lt_prog_compiler_pic_CXX= | |
14575 | ;; | |
14576 | *) | |
14577 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14578 | ;; | |
14579 | esac | |
9c60689e | 14580 | |
ee134472 JF |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
14582 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14583 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14584 | $as_echo_n "(cached) " >&6 | |
14585 | else | |
14586 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14587 | fi | |
14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14589 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14590 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
14591 | |
14592 | # | |
14593 | # Check to make sure the PIC flag actually works. | |
14594 | # | |
14595 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14597 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 14598 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
14599 | $as_echo_n "(cached) " >&6 |
14600 | else | |
14601 | lt_cv_prog_compiler_pic_works_CXX=no | |
14602 | ac_outfile=conftest.$ac_objext | |
14603 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14604 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14605 | # Insert the option either (1) after the last *FLAGS variable, or | |
14606 | # (2) before a word containing "conftest.", or (3) at the end. | |
14607 | # Note that $ac_compile itself does not contain backslashes and begins | |
14608 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14609 | # The option is referenced via a variable to avoid confusing sed. | |
14610 | lt_compile=`echo "$ac_compile" | $SED \ | |
14611 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14612 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14613 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14614 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
14615 | (eval "$lt_compile" 2>conftest.err) |
14616 | ac_status=$? | |
14617 | cat conftest.err >&5 | |
ee134472 | 14618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
14619 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14620 | # The compiler can only warn and ignore the option if not recognized | |
14621 | # So say no if there are warnings other than the usual output. | |
ee134472 | 14622 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
14623 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14624 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14625 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14626 | fi | |
14627 | fi | |
53ba6704 | 14628 | $RM -r conftest* |
9c60689e DWT |
14629 | |
14630 | fi | |
14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14632 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14633 | ||
14634 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14635 | case $lt_prog_compiler_pic_CXX in | |
14636 | "" | " "*) ;; | |
14637 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14638 | esac | |
14639 | else | |
14640 | lt_prog_compiler_pic_CXX= | |
14641 | lt_prog_compiler_can_build_shared_CXX=no | |
14642 | fi | |
14643 | ||
14644 | fi | |
14645 | ||
14646 | ||
14647 | ||
ee134472 JF |
14648 | |
14649 | ||
47aaa820 DWT |
14650 | # |
14651 | # Check to make sure the static flag actually works. | |
14652 | # | |
14653 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14655 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 14656 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
14657 | $as_echo_n "(cached) " >&6 |
14658 | else | |
14659 | lt_cv_prog_compiler_static_works_CXX=no | |
14660 | save_LDFLAGS="$LDFLAGS" | |
14661 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14662 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14663 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14664 | # The linker can only warn and ignore the option if not recognized | |
14665 | # So say no if there are warnings | |
14666 | if test -s conftest.err; then | |
14667 | # Append any errors to the config.log. | |
14668 | cat conftest.err 1>&5 | |
ee134472 | 14669 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
14670 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14671 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14672 | lt_cv_prog_compiler_static_works_CXX=yes | |
14673 | fi | |
14674 | else | |
14675 | lt_cv_prog_compiler_static_works_CXX=yes | |
14676 | fi | |
14677 | fi | |
14678 | $RM -r conftest* | |
14679 | LDFLAGS="$save_LDFLAGS" | |
14680 | ||
14681 | fi | |
14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14683 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14684 | ||
14685 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14686 | : | |
14687 | else | |
14688 | lt_prog_compiler_static_CXX= | |
14689 | fi | |
14690 | ||
14691 | ||
14692 | ||
14693 | ||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14695 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14696 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14697 | $as_echo_n "(cached) " >&6 |
14698 | else | |
14699 | lt_cv_prog_compiler_c_o_CXX=no | |
14700 | $RM -r conftest 2>/dev/null | |
14701 | mkdir conftest | |
14702 | cd conftest | |
14703 | mkdir out | |
14704 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14705 | ||
14706 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14707 | # Insert the option either (1) after the last *FLAGS variable, or | |
14708 | # (2) before a word containing "conftest.", or (3) at the end. | |
14709 | # Note that $ac_compile itself does not contain backslashes and begins | |
14710 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14711 | lt_compile=`echo "$ac_compile" | $SED \ | |
14712 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14714 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14715 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14716 | (eval "$lt_compile" 2>out/conftest.err) |
14717 | ac_status=$? | |
14718 | cat out/conftest.err >&5 | |
ee134472 | 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14720 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14721 | then | |
14722 | # The compiler can only warn and ignore the option if not recognized | |
14723 | # So say no if there are warnings | |
ee134472 | 14724 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14725 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14726 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14727 | lt_cv_prog_compiler_c_o_CXX=yes | |
14728 | fi | |
14729 | fi | |
14730 | chmod u+w . 2>&5 | |
53ba6704 | 14731 | $RM -r conftest* |
47aaa820 DWT |
14732 | # SGI C++ compiler will create directory out/ii_files/ for |
14733 | # template instantiation | |
14734 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14735 | $RM out/* && rmdir out | |
14736 | cd .. | |
14737 | $RM -r conftest | |
53ba6704 | 14738 | $RM -r conftest* |
47aaa820 DWT |
14739 | |
14740 | fi | |
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14742 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14743 | ||
14744 | ||
14745 | ||
14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14747 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14748 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14749 | $as_echo_n "(cached) " >&6 |
14750 | else | |
14751 | lt_cv_prog_compiler_c_o_CXX=no | |
14752 | $RM -r conftest 2>/dev/null | |
14753 | mkdir conftest | |
14754 | cd conftest | |
14755 | mkdir out | |
14756 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14757 | ||
14758 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14759 | # Insert the option either (1) after the last *FLAGS variable, or | |
14760 | # (2) before a word containing "conftest.", or (3) at the end. | |
14761 | # Note that $ac_compile itself does not contain backslashes and begins | |
14762 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14763 | lt_compile=`echo "$ac_compile" | $SED \ | |
14764 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14765 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14766 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14767 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14768 | (eval "$lt_compile" 2>out/conftest.err) |
14769 | ac_status=$? | |
14770 | cat out/conftest.err >&5 | |
ee134472 | 14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14772 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14773 | then | |
14774 | # The compiler can only warn and ignore the option if not recognized | |
14775 | # So say no if there are warnings | |
ee134472 | 14776 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14777 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14778 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14779 | lt_cv_prog_compiler_c_o_CXX=yes | |
14780 | fi | |
14781 | fi | |
14782 | chmod u+w . 2>&5 | |
53ba6704 | 14783 | $RM -r conftest* |
47aaa820 DWT |
14784 | # SGI C++ compiler will create directory out/ii_files/ for |
14785 | # template instantiation | |
14786 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14787 | $RM out/* && rmdir out | |
14788 | cd .. | |
14789 | $RM -r conftest | |
53ba6704 | 14790 | $RM -r conftest* |
47aaa820 DWT |
14791 | |
14792 | fi | |
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14794 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14795 | ||
14796 | ||
14797 | ||
14798 | ||
14799 | hard_links="nottested" | |
14800 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14801 | # do not overwrite the value of need_locks provided by the user | |
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14803 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14804 | hard_links=yes | |
53ba6704 | 14805 | $RM -r conftest* |
47aaa820 DWT |
14806 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14807 | touch conftest.a | |
14808 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14809 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14811 | $as_echo "$hard_links" >&6; } | |
14812 | if test "$hard_links" = no; then | |
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14814 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14815 | need_locks=warn | |
14816 | fi | |
14817 | else | |
14818 | need_locks=no | |
14819 | fi | |
14820 | ||
14821 | ||
14822 | ||
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14824 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14825 | ||
14826 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14827 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
14828 | case $host_os in |
14829 | aix[4-9]*) | |
14830 | # If we're using GNU nm, then we don't want the "-C" option. | |
14831 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
ee134472 JF |
14832 | # Also, AIX nm treats weak defined symbols like other global defined |
14833 | # symbols, whereas GNU nm marks them as "W". | |
47aaa820 | 14834 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
ee134472 | 14835 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
47aaa820 DWT |
14836 | else |
14837 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14838 | fi | |
14839 | ;; | |
14840 | pw32*) | |
14841 | export_symbols_cmds_CXX="$ltdll_cmds" | |
ee134472 | 14842 | ;; |
47aaa820 | 14843 | cygwin* | mingw* | cegcc*) |
ee134472 | 14844 | case $cc_basename in |
53ba6704 JF |
14845 | cl*) |
14846 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14847 | ;; | |
ee134472 JF |
14848 | *) |
14849 | 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' | |
14850 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14851 | ;; | |
14852 | esac | |
14853 | ;; | |
47aaa820 DWT |
14854 | *) |
14855 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14856 | ;; |
47aaa820 | 14857 | esac |
47aaa820 DWT |
14858 | |
14859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14860 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14861 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14862 | ||
14863 | with_gnu_ld_CXX=$with_gnu_ld | |
14864 | ||
14865 | ||
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | # | |
14871 | # Do we need to explicitly link libc? | |
14872 | # | |
14873 | case "x$archive_cmds_need_lc_CXX" in | |
14874 | x|xyes) | |
14875 | # Assume -lc should be added | |
14876 | archive_cmds_need_lc_CXX=yes | |
14877 | ||
14878 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14879 | case $archive_cmds_CXX in | |
14880 | *'~'*) | |
14881 | # FIXME: we may have to deal with multi-command sequences. | |
14882 | ;; | |
14883 | '$CC '*) | |
14884 | # Test whether the compiler implicitly links with -lc since on some | |
14885 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14886 | # to ld, don't add -lc before -lgcc. | |
14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14888 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
14889 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
14890 | $as_echo_n "(cached) " >&6 | |
14891 | else | |
53ba6704 | 14892 | $RM -r conftest* |
ee134472 | 14893 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 14894 | |
ee134472 | 14895 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
14896 | (eval $ac_compile) 2>&5 |
14897 | ac_status=$? | |
14898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14899 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
14900 | soname=conftest |
14901 | lib=conftest | |
14902 | libobjs=conftest.$ac_objext | |
14903 | deplibs= | |
14904 | wl=$lt_prog_compiler_wl_CXX | |
14905 | pic_flag=$lt_prog_compiler_pic_CXX | |
14906 | compiler_flags=-v | |
14907 | linker_flags=-v | |
14908 | verstring= | |
14909 | output_objdir=. | |
14910 | libname=conftest | |
14911 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14912 | allow_undefined_flag_CXX= | |
14913 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
14914 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14915 | ac_status=$? | |
14916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14917 | test $ac_status = 0; } | |
ee134472 JF |
14918 | then |
14919 | lt_cv_archive_cmds_need_lc_CXX=no | |
14920 | else | |
14921 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14922 | fi | |
14923 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14924 | else | |
14925 | cat conftest.err 1>&5 | |
14926 | fi | |
53ba6704 | 14927 | $RM -r conftest* |
ee134472 JF |
14928 | |
14929 | fi | |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14931 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14932 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
14933 | ;; |
14934 | esac | |
14935 | fi | |
14936 | ;; | |
14937 | esac | |
14938 | ||
14939 | ||
14940 | ||
14941 | ||
14942 | ||
14943 | ||
14944 | ||
14945 | ||
14946 | ||
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | ||
14955 | ||
14956 | ||
14957 | ||
14958 | ||
14959 | ||
14960 | ||
14961 | ||
14962 | ||
14963 | ||
14964 | ||
14965 | ||
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | ||
14971 | ||
14972 | ||
14973 | ||
14974 | ||
14975 | ||
14976 | ||
14977 | ||
14978 | ||
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ||
14989 | ||
14990 | ||
14991 | ||
14992 | ||
14993 | ||
14994 | ||
14995 | ||
14996 | ||
47aaa820 DWT |
14997 | |
14998 | ||
14999 | ||
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15001 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15002 | ||
15003 | library_names_spec= | |
15004 | libname_spec='lib$name' | |
15005 | soname_spec= | |
15006 | shrext_cmds=".so" | |
15007 | postinstall_cmds= | |
15008 | postuninstall_cmds= | |
15009 | finish_cmds= | |
15010 | finish_eval= | |
15011 | shlibpath_var= | |
15012 | shlibpath_overrides_runpath=unknown | |
15013 | version_type=none | |
15014 | dynamic_linker="$host_os ld.so" | |
15015 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15016 | need_lib_prefix=unknown | |
15017 | hardcode_into_libs=no | |
15018 | ||
15019 | # when you set need_version to no, make sure it does not cause -set_version | |
15020 | # flags to be left without arguments | |
15021 | need_version=unknown | |
15022 | ||
15023 | case $host_os in | |
15024 | aix3*) | |
53ba6704 | 15025 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15026 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15027 | shlibpath_var=LIBPATH | |
15028 | ||
15029 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15030 | soname_spec='${libname}${release}${shared_ext}$major' | |
15031 | ;; | |
15032 | ||
15033 | aix[4-9]*) | |
53ba6704 | 15034 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15035 | need_lib_prefix=no |
15036 | need_version=no | |
15037 | hardcode_into_libs=yes | |
15038 | if test "$host_cpu" = ia64; then | |
15039 | # AIX 5 supports IA64 | |
15040 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15041 | shlibpath_var=LD_LIBRARY_PATH | |
15042 | else | |
15043 | # With GCC up to 2.95.x, collect2 would create an import file | |
15044 | # for dependence libraries. The import file would start with | |
15045 | # the line `#! .'. This would cause the generated library to | |
15046 | # depend on `.', always an invalid library. This was fixed in | |
15047 | # development snapshots of GCC prior to 3.0. | |
15048 | case $host_os in | |
15049 | aix4 | aix4.[01] | aix4.[01].*) | |
15050 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15051 | echo ' yes ' | |
15052 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15053 | : | |
15054 | else | |
15055 | can_build_shared=no | |
15056 | fi | |
15057 | ;; | |
15058 | esac | |
15059 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15060 | # soname into executable. Probably we can add versioning support to | |
15061 | # collect2, so additional links can be useful in future. | |
15062 | if test "$aix_use_runtimelinking" = yes; then | |
15063 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15064 | # instead of lib<name>.a to let people know that these are not | |
15065 | # typical AIX shared libraries. | |
15066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15067 | else | |
15068 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15069 | # and later when we are not doing run time linking. | |
15070 | library_names_spec='${libname}${release}.a $libname.a' | |
15071 | soname_spec='${libname}${release}${shared_ext}$major' | |
15072 | fi | |
15073 | shlibpath_var=LIBPATH | |
15074 | fi | |
15075 | ;; | |
15076 | ||
15077 | amigaos*) | |
15078 | case $host_cpu in | |
15079 | powerpc) | |
15080 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15081 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15083 | ;; | |
15084 | m68k) | |
15085 | library_names_spec='$libname.ixlibrary $libname.a' | |
15086 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
ee134472 | 15087 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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 |
15088 | ;; |
15089 | esac | |
15090 | ;; | |
15091 | ||
15092 | beos*) | |
15093 | library_names_spec='${libname}${shared_ext}' | |
15094 | dynamic_linker="$host_os ld.so" | |
15095 | shlibpath_var=LIBRARY_PATH | |
15096 | ;; | |
15097 | ||
15098 | bsdi[45]*) | |
53ba6704 | 15099 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15100 | need_version=no |
15101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15102 | soname_spec='${libname}${release}${shared_ext}$major' | |
15103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15104 | shlibpath_var=LD_LIBRARY_PATH | |
15105 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15106 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15107 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15108 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15109 | # libtool to hard-code these into programs | |
15110 | ;; | |
9c60689e | 15111 | |
47aaa820 DWT |
15112 | cygwin* | mingw* | pw32* | cegcc*) |
15113 | version_type=windows | |
15114 | shrext_cmds=".dll" | |
15115 | need_version=no | |
15116 | need_lib_prefix=no | |
9c60689e | 15117 | |
ee134472 JF |
15118 | case $GCC,$cc_basename in |
15119 | yes,*) | |
15120 | # gcc | |
47aaa820 DWT |
15121 | library_names_spec='$libname.dll.a' |
15122 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15123 | postinstall_cmds='base_file=`basename \${file}`~ | |
15124 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15125 | dldir=$destdir/`dirname \$dlpath`~ | |
15126 | test -d \$dldir || mkdir -p \$dldir~ | |
15127 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15128 | chmod a+x \$dldir/$dlname~ | |
15129 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15130 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15131 | fi' | |
15132 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15133 | dlpath=$dir/\$dldll~ | |
15134 | $RM \$dlpath' | |
15135 | shlibpath_overrides_runpath=yes | |
9c60689e | 15136 | |
47aaa820 DWT |
15137 | case $host_os in |
15138 | cygwin*) | |
15139 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15140 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ee134472 | 15141 | |
47aaa820 DWT |
15142 | ;; |
15143 | mingw* | cegcc*) | |
15144 | # MinGW DLLs use traditional 'lib' prefix | |
15145 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
47aaa820 DWT |
15146 | ;; |
15147 | pw32*) | |
15148 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15149 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15150 | ;; | |
15151 | esac | |
ee134472 JF |
15152 | dynamic_linker='Win32 ld.exe' |
15153 | ;; | |
15154 | ||
15155 | *,cl*) | |
15156 | # Native MSVC | |
15157 | libname_spec='$name' | |
15158 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15159 | library_names_spec='${libname}.dll.lib' | |
15160 | ||
15161 | case $build_os in | |
15162 | mingw*) | |
15163 | sys_lib_search_path_spec= | |
15164 | lt_save_ifs=$IFS | |
15165 | IFS=';' | |
15166 | for lt_path in $LIB | |
15167 | do | |
15168 | IFS=$lt_save_ifs | |
15169 | # Let DOS variable expansion print the short 8.3 style file name. | |
15170 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15171 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15172 | done | |
15173 | IFS=$lt_save_ifs | |
15174 | # Convert to MSYS style. | |
15175 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15176 | ;; | |
15177 | cygwin*) | |
15178 | # Convert to unix form, then to dos form, then back to unix form | |
15179 | # but this time dos style (no spaces!) so that the unix form looks | |
15180 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15181 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15182 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15183 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15184 | ;; | |
15185 | *) | |
15186 | sys_lib_search_path_spec="$LIB" | |
15187 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15188 | # It is most probably a Windows format PATH. | |
15189 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15190 | else | |
15191 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15192 | fi | |
15193 | # FIXME: find the short name or the path components, as spaces are | |
15194 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15195 | ;; | |
15196 | esac | |
15197 | ||
15198 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15199 | postinstall_cmds='base_file=`basename \${file}`~ | |
15200 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15201 | dldir=$destdir/`dirname \$dlpath`~ | |
15202 | test -d \$dldir || mkdir -p \$dldir~ | |
15203 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15204 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15205 | dlpath=$dir/\$dldll~ | |
15206 | $RM \$dlpath' | |
15207 | shlibpath_overrides_runpath=yes | |
15208 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15209 | ;; |
9c60689e | 15210 | |
47aaa820 | 15211 | *) |
ee134472 | 15212 | # Assume MSVC wrapper |
47aaa820 | 15213 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
ee134472 | 15214 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15215 | ;; |
15216 | esac | |
47aaa820 DWT |
15217 | # FIXME: first we should search . and the directory the executable is in |
15218 | shlibpath_var=PATH | |
15219 | ;; | |
9c60689e | 15220 | |
47aaa820 DWT |
15221 | darwin* | rhapsody*) |
15222 | dynamic_linker="$host_os dyld" | |
15223 | version_type=darwin | |
15224 | need_lib_prefix=no | |
15225 | need_version=no | |
15226 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15227 | soname_spec='${libname}${release}${major}$shared_ext' | |
15228 | shlibpath_overrides_runpath=yes | |
15229 | shlibpath_var=DYLD_LIBRARY_PATH | |
15230 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15231 | |
47aaa820 DWT |
15232 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15233 | ;; | |
9c60689e | 15234 | |
47aaa820 | 15235 | dgux*) |
53ba6704 | 15236 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15237 | need_lib_prefix=no |
15238 | need_version=no | |
15239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15240 | soname_spec='${libname}${release}${shared_ext}$major' | |
15241 | shlibpath_var=LD_LIBRARY_PATH | |
15242 | ;; | |
9c60689e | 15243 | |
47aaa820 DWT |
15244 | freebsd* | dragonfly*) |
15245 | # DragonFly does not have aout. When/if they implement a new | |
15246 | # versioning mechanism, adjust this. | |
15247 | if test -x /usr/bin/objformat; then | |
15248 | objformat=`/usr/bin/objformat` | |
15249 | else | |
15250 | case $host_os in | |
53ba6704 | 15251 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15252 | *) objformat=elf ;; |
15253 | esac | |
15254 | fi | |
15255 | version_type=freebsd-$objformat | |
15256 | case $version_type in | |
15257 | freebsd-elf*) | |
15258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15259 | need_version=no | |
15260 | need_lib_prefix=no | |
15261 | ;; | |
15262 | freebsd-*) | |
15263 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15264 | need_version=yes | |
15265 | ;; | |
15266 | esac | |
15267 | shlibpath_var=LD_LIBRARY_PATH | |
15268 | case $host_os in | |
53ba6704 | 15269 | freebsd2.*) |
47aaa820 DWT |
15270 | shlibpath_overrides_runpath=yes |
15271 | ;; | |
15272 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15273 | shlibpath_overrides_runpath=yes | |
15274 | hardcode_into_libs=yes | |
15275 | ;; | |
15276 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15277 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15278 | shlibpath_overrides_runpath=no | |
15279 | hardcode_into_libs=yes | |
15280 | ;; | |
15281 | *) # from 4.6 on, and DragonFly | |
15282 | shlibpath_overrides_runpath=yes | |
15283 | hardcode_into_libs=yes | |
15284 | ;; | |
15285 | esac | |
15286 | ;; | |
9c60689e | 15287 | |
47aaa820 | 15288 | gnu*) |
53ba6704 | 15289 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15290 | need_lib_prefix=no |
15291 | need_version=no | |
15292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15293 | soname_spec='${libname}${release}${shared_ext}$major' | |
15294 | shlibpath_var=LD_LIBRARY_PATH | |
ee134472 JF |
15295 | shlibpath_overrides_runpath=no |
15296 | hardcode_into_libs=yes | |
15297 | ;; | |
15298 | ||
15299 | haiku*) | |
53ba6704 | 15300 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15301 | need_lib_prefix=no |
15302 | need_version=no | |
15303 | dynamic_linker="$host_os runtime_loader" | |
15304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15305 | soname_spec='${libname}${release}${shared_ext}$major' | |
15306 | shlibpath_var=LIBRARY_PATH | |
15307 | shlibpath_overrides_runpath=yes | |
15308 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
47aaa820 DWT |
15309 | hardcode_into_libs=yes |
15310 | ;; | |
9c60689e | 15311 | |
47aaa820 DWT |
15312 | hpux9* | hpux10* | hpux11*) |
15313 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15314 | # link against other versions. | |
15315 | version_type=sunos | |
15316 | need_lib_prefix=no | |
15317 | need_version=no | |
15318 | case $host_cpu in | |
15319 | ia64*) | |
15320 | shrext_cmds='.so' | |
15321 | hardcode_into_libs=yes | |
15322 | dynamic_linker="$host_os dld.so" | |
15323 | shlibpath_var=LD_LIBRARY_PATH | |
15324 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15326 | soname_spec='${libname}${release}${shared_ext}$major' | |
15327 | if test "X$HPUX_IA64_MODE" = X32; then | |
15328 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15329 | else | |
15330 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15331 | fi | |
15332 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15333 | ;; | |
15334 | hppa*64*) | |
15335 | shrext_cmds='.sl' | |
15336 | hardcode_into_libs=yes | |
15337 | dynamic_linker="$host_os dld.sl" | |
15338 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15339 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15341 | soname_spec='${libname}${release}${shared_ext}$major' | |
15342 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15343 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15344 | ;; | |
15345 | *) | |
15346 | shrext_cmds='.sl' | |
15347 | dynamic_linker="$host_os dld.sl" | |
15348 | shlibpath_var=SHLIB_PATH | |
15349 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15351 | soname_spec='${libname}${release}${shared_ext}$major' | |
15352 | ;; | |
15353 | esac | |
ee134472 | 15354 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 15355 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
15356 | # or fails outright, so override atomically: |
15357 | install_override_mode=555 | |
47aaa820 | 15358 | ;; |
9c60689e | 15359 | |
47aaa820 | 15360 | interix[3-9]*) |
53ba6704 | 15361 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15362 | need_lib_prefix=no |
15363 | need_version=no | |
15364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15365 | soname_spec='${libname}${release}${shared_ext}$major' | |
15366 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15367 | shlibpath_var=LD_LIBRARY_PATH | |
15368 | shlibpath_overrides_runpath=no | |
15369 | hardcode_into_libs=yes | |
15370 | ;; | |
9c60689e | 15371 | |
47aaa820 DWT |
15372 | irix5* | irix6* | nonstopux*) |
15373 | case $host_os in | |
15374 | nonstopux*) version_type=nonstopux ;; | |
15375 | *) | |
15376 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
53ba6704 | 15377 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15378 | else |
15379 | version_type=irix | |
15380 | fi ;; | |
15381 | esac | |
15382 | need_lib_prefix=no | |
15383 | need_version=no | |
15384 | soname_spec='${libname}${release}${shared_ext}$major' | |
15385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15386 | case $host_os in | |
15387 | irix5* | nonstopux*) | |
15388 | libsuff= shlibsuff= | |
15389 | ;; | |
15390 | *) | |
15391 | case $LD in # libtool.m4 will add one of these switches to LD | |
15392 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15393 | libsuff= shlibsuff= libmagic=32-bit;; | |
15394 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15395 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15396 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15397 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15398 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15399 | esac | |
15400 | ;; | |
15401 | esac | |
15402 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15403 | shlibpath_overrides_runpath=no | |
15404 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15405 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15406 | hardcode_into_libs=yes | |
15407 | ;; | |
9c60689e | 15408 | |
47aaa820 DWT |
15409 | # No shared lib support for Linux oldld, aout, or coff. |
15410 | linux*oldld* | linux*aout* | linux*coff*) | |
15411 | dynamic_linker=no | |
15412 | ;; | |
9c60689e | 15413 | |
53ba6704 | 15414 | # This must be glibc/ELF. |
1504c9b8 | 15415 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
53ba6704 | 15416 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15417 | need_lib_prefix=no |
15418 | need_version=no | |
15419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15420 | soname_spec='${libname}${release}${shared_ext}$major' | |
15421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15422 | shlibpath_var=LD_LIBRARY_PATH | |
15423 | shlibpath_overrides_runpath=no | |
ee134472 | 15424 | |
47aaa820 | 15425 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
15426 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
15427 | $as_echo_n "(cached) " >&6 | |
15428 | else | |
15429 | lt_cv_shlibpath_overrides_runpath=no | |
15430 | save_LDFLAGS=$LDFLAGS | |
15431 | save_libdir=$libdir | |
15432 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15433 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 15435 | /* end confdefs.h. */ |
9c60689e | 15436 | |
47aaa820 DWT |
15437 | int |
15438 | main () | |
15439 | { | |
9c60689e | 15440 | |
47aaa820 DWT |
15441 | ; |
15442 | return 0; | |
15443 | } | |
15444 | _ACEOF | |
15445 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15446 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 15447 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 15448 | fi |
47aaa820 DWT |
15449 | fi |
15450 | rm -f core conftest.err conftest.$ac_objext \ | |
15451 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
15452 | LDFLAGS=$save_LDFLAGS |
15453 | libdir=$save_libdir | |
15454 | ||
15455 | fi | |
15456 | ||
15457 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 15458 | |
47aaa820 DWT |
15459 | # This implies no fast_install, which is unacceptable. |
15460 | # Some rework will be needed to allow for fast_install | |
15461 | # before this can be enabled. | |
15462 | hardcode_into_libs=yes | |
9c60689e | 15463 | |
47aaa820 DWT |
15464 | # Append ld.so.conf contents to the search path |
15465 | if test -f /etc/ld.so.conf; then | |
ee134472 | 15466 | 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 |
15467 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15468 | fi | |
9c60689e | 15469 | |
47aaa820 DWT |
15470 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15471 | # powerpc, because MkLinux only supported shared libraries with the | |
15472 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15473 | # most powerpc-linux boxes support dynamic linking these days and | |
15474 | # people can always --disable-shared, the test was removed, and we | |
15475 | # assume the GNU/Linux dynamic linker is in use. | |
15476 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 15477 | ;; |
47aaa820 | 15478 | |
47aaa820 DWT |
15479 | netbsd*) |
15480 | version_type=sunos | |
15481 | need_lib_prefix=no | |
15482 | need_version=no | |
15483 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15485 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15486 | dynamic_linker='NetBSD (a.out) ld.so' | |
15487 | else | |
15488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15489 | soname_spec='${libname}${release}${shared_ext}$major' | |
15490 | dynamic_linker='NetBSD ld.elf_so' | |
15491 | fi | |
15492 | shlibpath_var=LD_LIBRARY_PATH | |
15493 | shlibpath_overrides_runpath=yes | |
15494 | hardcode_into_libs=yes | |
9c60689e | 15495 | ;; |
9c60689e | 15496 | |
47aaa820 | 15497 | newsos6) |
53ba6704 | 15498 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15500 | shlibpath_var=LD_LIBRARY_PATH | |
15501 | shlibpath_overrides_runpath=yes | |
15502 | ;; | |
9c60689e | 15503 | |
47aaa820 DWT |
15504 | *nto* | *qnx*) |
15505 | version_type=qnx | |
15506 | need_lib_prefix=no | |
15507 | need_version=no | |
15508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15509 | soname_spec='${libname}${release}${shared_ext}$major' | |
15510 | shlibpath_var=LD_LIBRARY_PATH | |
15511 | shlibpath_overrides_runpath=no | |
15512 | hardcode_into_libs=yes | |
15513 | dynamic_linker='ldqnx.so' | |
15514 | ;; | |
9c60689e | 15515 | |
47aaa820 DWT |
15516 | openbsd*) |
15517 | version_type=sunos | |
15518 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15519 | need_lib_prefix=no | |
15520 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15521 | case $host_os in | |
15522 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15523 | *) need_version=no ;; | |
15524 | esac | |
15525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15526 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15527 | shlibpath_var=LD_LIBRARY_PATH | |
15528 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15529 | case $host_os in | |
15530 | openbsd2.[89] | openbsd2.[89].*) | |
15531 | shlibpath_overrides_runpath=no | |
15532 | ;; | |
15533 | *) | |
15534 | shlibpath_overrides_runpath=yes | |
15535 | ;; | |
15536 | esac | |
15537 | else | |
15538 | shlibpath_overrides_runpath=yes | |
15539 | fi | |
15540 | ;; | |
9c60689e | 15541 | |
47aaa820 DWT |
15542 | os2*) |
15543 | libname_spec='$name' | |
15544 | shrext_cmds=".dll" | |
15545 | need_lib_prefix=no | |
15546 | library_names_spec='$libname${shared_ext} $libname.a' | |
15547 | dynamic_linker='OS/2 ld.exe' | |
15548 | shlibpath_var=LIBPATH | |
15549 | ;; | |
9c60689e | 15550 | |
47aaa820 DWT |
15551 | osf3* | osf4* | osf5*) |
15552 | version_type=osf | |
15553 | need_lib_prefix=no | |
15554 | need_version=no | |
15555 | soname_spec='${libname}${release}${shared_ext}$major' | |
15556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15557 | shlibpath_var=LD_LIBRARY_PATH | |
15558 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15559 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15560 | ;; | |
9c60689e | 15561 | |
47aaa820 DWT |
15562 | rdos*) |
15563 | dynamic_linker=no | |
15564 | ;; | |
9c60689e | 15565 | |
47aaa820 | 15566 | solaris*) |
53ba6704 | 15567 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15568 | need_lib_prefix=no |
15569 | need_version=no | |
15570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15571 | soname_spec='${libname}${release}${shared_ext}$major' | |
15572 | shlibpath_var=LD_LIBRARY_PATH | |
15573 | shlibpath_overrides_runpath=yes | |
15574 | hardcode_into_libs=yes | |
15575 | # ldd complains unless libraries are executable | |
15576 | postinstall_cmds='chmod +x $lib' | |
15577 | ;; | |
9c60689e | 15578 | |
47aaa820 DWT |
15579 | sunos4*) |
15580 | version_type=sunos | |
15581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15582 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15583 | shlibpath_var=LD_LIBRARY_PATH | |
15584 | shlibpath_overrides_runpath=yes | |
15585 | if test "$with_gnu_ld" = yes; then | |
15586 | need_lib_prefix=no | |
15587 | fi | |
15588 | need_version=yes | |
15589 | ;; | |
9c60689e | 15590 | |
47aaa820 | 15591 | sysv4 | sysv4.3*) |
53ba6704 | 15592 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15594 | soname_spec='${libname}${release}${shared_ext}$major' | |
15595 | shlibpath_var=LD_LIBRARY_PATH | |
15596 | case $host_vendor in | |
15597 | sni) | |
15598 | shlibpath_overrides_runpath=no | |
15599 | need_lib_prefix=no | |
15600 | runpath_var=LD_RUN_PATH | |
9c60689e | 15601 | ;; |
47aaa820 DWT |
15602 | siemens) |
15603 | need_lib_prefix=no | |
9c60689e | 15604 | ;; |
47aaa820 DWT |
15605 | motorola) |
15606 | need_lib_prefix=no | |
15607 | need_version=no | |
15608 | shlibpath_overrides_runpath=no | |
15609 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15610 | ;; | |
15611 | esac | |
9c60689e | 15612 | ;; |
9c60689e | 15613 | |
47aaa820 DWT |
15614 | sysv4*MP*) |
15615 | if test -d /usr/nec ;then | |
53ba6704 | 15616 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15617 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15618 | soname_spec='$libname${shared_ext}.$major' | |
15619 | shlibpath_var=LD_LIBRARY_PATH | |
15620 | fi | |
15621 | ;; | |
9c60689e | 15622 | |
47aaa820 DWT |
15623 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15624 | version_type=freebsd-elf | |
15625 | need_lib_prefix=no | |
15626 | need_version=no | |
15627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15628 | soname_spec='${libname}${release}${shared_ext}$major' | |
15629 | shlibpath_var=LD_LIBRARY_PATH | |
15630 | shlibpath_overrides_runpath=yes | |
15631 | hardcode_into_libs=yes | |
15632 | if test "$with_gnu_ld" = yes; then | |
15633 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15634 | else | |
15635 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15636 | case $host_os in | |
15637 | sco3.2v5*) | |
15638 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15639 | ;; | |
15640 | esac | |
15641 | fi | |
15642 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15643 | ;; | |
9c60689e | 15644 | |
47aaa820 DWT |
15645 | tpf*) |
15646 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 15647 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15648 | need_lib_prefix=no |
15649 | need_version=no | |
15650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15651 | shlibpath_var=LD_LIBRARY_PATH | |
15652 | shlibpath_overrides_runpath=no | |
15653 | hardcode_into_libs=yes | |
15654 | ;; | |
9c60689e | 15655 | |
47aaa820 | 15656 | uts4*) |
53ba6704 | 15657 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15659 | soname_spec='${libname}${release}${shared_ext}$major' | |
15660 | shlibpath_var=LD_LIBRARY_PATH | |
15661 | ;; | |
9c60689e | 15662 | |
47aaa820 DWT |
15663 | *) |
15664 | dynamic_linker=no | |
e9c9a47c DWT |
15665 | ;; |
15666 | esac | |
15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15668 | $as_echo "$dynamic_linker" >&6; } | |
15669 | test "$dynamic_linker" = no && can_build_shared=no | |
15670 | ||
15671 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15672 | if test "$GCC" = yes; then | |
15673 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 15674 | fi |
9c60689e | 15675 | |
e9c9a47c DWT |
15676 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15677 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 15678 | fi |
e9c9a47c DWT |
15679 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
15680 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 15681 | fi |
9c60689e | 15682 | |
9c60689e | 15683 | |
9c60689e | 15684 | |
9c60689e | 15685 | |
47aaa820 | 15686 | |
47aaa820 | 15687 | |
47aaa820 | 15688 | |
9c60689e | 15689 | |
9c60689e | 15690 | |
47aaa820 | 15691 | |
47aaa820 | 15692 | |
47aaa820 | 15693 | |
47aaa820 | 15694 | |
47aaa820 | 15695 | |
47aaa820 | 15696 | |
47aaa820 | 15697 | |
47aaa820 | 15698 | |
9c60689e | 15699 | |
9c60689e | 15700 | |
9c60689e | 15701 | |
9c60689e | 15702 | |
9c60689e | 15703 | |
e9c9a47c DWT |
15704 | |
15705 | ||
15706 | ||
15707 | ||
15708 | ||
15709 | ||
15710 | ||
15711 | ||
15712 | ||
15713 | ||
15714 | ||
ee134472 JF |
15715 | |
15716 | ||
e9c9a47c DWT |
15717 | |
15718 | ||
15719 | ||
15720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15721 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15722 | hardcode_action_CXX= | |
15723 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15724 | test -n "$runpath_var_CXX" || | |
15725 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15726 | ||
15727 | # We can hardcode non-existent directories. | |
15728 | if test "$hardcode_direct_CXX" != no && | |
15729 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15730 | # have to relink, otherwise we might link with an installed library | |
15731 | # when we should be linking with a yet-to-be-installed one | |
15732 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15733 | test "$hardcode_minus_L_CXX" != no; then | |
15734 | # Linking always hardcodes the temporary library directory. | |
15735 | hardcode_action_CXX=relink | |
15736 | else | |
15737 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15738 | hardcode_action_CXX=immediate | |
15739 | fi | |
15740 | else | |
15741 | # We cannot hardcode anything, or else we can only hardcode existing | |
15742 | # directories. | |
15743 | hardcode_action_CXX=unsupported | |
15744 | fi | |
15745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15746 | $as_echo "$hardcode_action_CXX" >&6; } | |
15747 | ||
15748 | if test "$hardcode_action_CXX" = relink || | |
15749 | test "$inherit_rpath_CXX" = yes; then | |
15750 | # Fast installation is not supported | |
15751 | enable_fast_install=no | |
15752 | elif test "$shlibpath_overrides_runpath" = yes || | |
15753 | test "$enable_shared" = no; then | |
15754 | # Fast installation is not necessary | |
15755 | enable_fast_install=needless | |
47aaa820 | 15756 | fi |
9c60689e | 15757 | |
47aaa820 | 15758 | |
47aaa820 | 15759 | |
e9c9a47c DWT |
15760 | |
15761 | ||
15762 | ||
15763 | ||
a243b558 JF |
15764 | fi # test -n "$compiler" |
15765 | ||
15766 | CC=$lt_save_CC | |
15767 | CFLAGS=$lt_save_CFLAGS | |
15768 | LDCXX=$LD | |
15769 | LD=$lt_save_LD | |
15770 | GCC=$lt_save_GCC | |
15771 | with_gnu_ld=$lt_save_with_gnu_ld | |
15772 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15773 | lt_cv_path_LD=$lt_save_path_LD | |
15774 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15775 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15776 | fi # test "$_lt_caught_CXX_error" != yes | |
15777 | ||
15778 | ac_ext=c | |
15779 | ac_cpp='$CPP $CPPFLAGS' | |
15780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15783 | ||
15784 | ||
15785 | ||
15786 | ||
15787 | ||
15788 | ||
15789 | ||
15790 | ||
15791 | ||
15792 | ||
15793 | ||
15794 | ||
15795 | ||
15796 | ||
15797 | ||
15798 | ac_config_commands="$ac_config_commands libtool" | |
15799 | ||
15800 | ||
15801 | ||
15802 | ||
15803 | # Only expand once: | |
15804 | ||
15805 | ||
15806 | ||
15807 | ac_ext=cpp | |
15808 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15809 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15810 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15811 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15812 | ||
15813 | ||
15814 | ||
15815 | ||
15816 | ||
15817 | ||
15818 | ||
15819 | ||
15820 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15821 | if test -n "$ac_tool_prefix"; then | |
15822 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15823 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15825 | $as_echo_n "checking for $ac_word... " >&6; } | |
15826 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15827 | $as_echo_n "(cached) " >&6 | |
15828 | else | |
15829 | case $PKG_CONFIG in | |
15830 | [\\/]* | ?:[\\/]*) | |
15831 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15832 | ;; | |
15833 | *) | |
15834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15835 | for as_dir in $PATH | |
15836 | do | |
15837 | IFS=$as_save_IFS | |
15838 | test -z "$as_dir" && as_dir=. | |
15839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15841 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15843 | break 2 | |
15844 | fi | |
15845 | done | |
15846 | done | |
15847 | IFS=$as_save_IFS | |
15848 | ||
15849 | ;; | |
15850 | esac | |
15851 | fi | |
15852 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15853 | if test -n "$PKG_CONFIG"; then | |
15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15855 | $as_echo "$PKG_CONFIG" >&6; } | |
15856 | else | |
15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15858 | $as_echo "no" >&6; } | |
15859 | fi | |
15860 | ||
15861 | ||
15862 | fi | |
15863 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15864 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15865 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15866 | set dummy pkg-config; ac_word=$2 | |
15867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15868 | $as_echo_n "checking for $ac_word... " >&6; } | |
15869 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15870 | $as_echo_n "(cached) " >&6 | |
15871 | else | |
15872 | case $ac_pt_PKG_CONFIG in | |
15873 | [\\/]* | ?:[\\/]*) | |
15874 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15875 | ;; | |
15876 | *) | |
15877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15878 | for as_dir in $PATH | |
15879 | do | |
15880 | IFS=$as_save_IFS | |
15881 | test -z "$as_dir" && as_dir=. | |
15882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15884 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15886 | break 2 | |
15887 | fi | |
15888 | done | |
15889 | done | |
15890 | IFS=$as_save_IFS | |
15891 | ||
15892 | ;; | |
15893 | esac | |
15894 | fi | |
15895 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15896 | if test -n "$ac_pt_PKG_CONFIG"; then | |
15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15898 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15899 | else | |
15900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15901 | $as_echo "no" >&6; } | |
15902 | fi | |
15903 | ||
15904 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15905 | PKG_CONFIG="" | |
15906 | else | |
15907 | case $cross_compiling:$ac_tool_warned in | |
15908 | yes:) | |
15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15911 | ac_tool_warned=yes ;; | |
15912 | esac | |
15913 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15914 | fi | |
15915 | else | |
15916 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15917 | fi | |
15918 | ||
15919 | fi | |
15920 | if test -n "$PKG_CONFIG"; then | |
15921 | _pkg_min_version=0.22 | |
15922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15923 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15924 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15926 | $as_echo "yes" >&6; } | |
15927 | else | |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15929 | $as_echo "no" >&6; } | |
15930 | PKG_CONFIG="" | |
15931 | fi | |
15932 | fi | |
15933 | ||
a243b558 JF |
15934 | # Extract the first word of "git", so it can be a program name with args. |
15935 | set dummy git; ac_word=$2 | |
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15937 | $as_echo_n "checking for $ac_word... " >&6; } | |
15938 | if ${ac_cv_path_GIT+:} false; then : | |
15939 | $as_echo_n "(cached) " >&6 | |
15940 | else | |
15941 | case $GIT in | |
15942 | [\\/]* | ?:[\\/]*) | |
15943 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
15944 | ;; | |
15945 | *) | |
15946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15947 | for as_dir in $PATH | |
15948 | do | |
15949 | IFS=$as_save_IFS | |
15950 | test -z "$as_dir" && as_dir=. | |
15951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15953 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
15954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15955 | break 2 | |
15956 | fi | |
15957 | done | |
15958 | done | |
15959 | IFS=$as_save_IFS | |
e9c9a47c | 15960 | |
a243b558 JF |
15961 | ;; |
15962 | esac | |
15963 | fi | |
15964 | GIT=$ac_cv_path_GIT | |
15965 | if test -n "$GIT"; then | |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
15967 | $as_echo "$GIT" >&6; } | |
15968 | else | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15970 | $as_echo "no" >&6; } | |
15971 | fi | |
e9c9a47c DWT |
15972 | |
15973 | ||
a243b558 JF |
15974 | # Extract the first word of "time", so it can be a program name with args. |
15975 | set dummy time; ac_word=$2 | |
632b71ea DWT |
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15977 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 15978 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
15979 | $as_echo_n "(cached) " >&6 |
15980 | else | |
a243b558 JF |
15981 | case $TIME in |
15982 | [\\/]* | ?:[\\/]*) | |
15983 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
15984 | ;; | |
15985 | *) | |
15986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
15987 | for as_dir in $PATH |
15988 | do | |
15989 | IFS=$as_save_IFS | |
15990 | test -z "$as_dir" && as_dir=. | |
15991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 15992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 15993 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
15994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15995 | break 2 | |
15996 | fi | |
15997 | done | |
15998 | done | |
15999 | IFS=$as_save_IFS | |
16000 | ||
a243b558 JF |
16001 | ;; |
16002 | esac | |
632b71ea | 16003 | fi |
a243b558 JF |
16004 | TIME=$ac_cv_path_TIME |
16005 | if test -n "$TIME"; then | |
16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16007 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16008 | else |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16010 | $as_echo "no" >&6; } | |
16011 | fi | |
16012 | ||
16013 | ||
a243b558 JF |
16014 | |
16015 | ||
16016 | ||
16017 | ||
16018 | ||
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
16020 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
16021 | if test -z "$BISON"; then | |
16022 | ac_path_BISON_found=false | |
16023 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16025 | for as_dir in $PATH | |
16026 | do | |
16027 | IFS=$as_save_IFS | |
16028 | test -z "$as_dir" && as_dir=. | |
16029 | for ac_prog in bison; do | |
16030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16031 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16032 | as_fn_executable_p "$ac_path_BISON" || continue | |
16033 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16034 | if ${version:+false} :; then : | |
16035 | ||
16036 | else | |
16037 | as_awk_strverscmp=' | |
16038 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16039 | # My, what an old awk you have, Mr. Solaris! | |
16040 | END { | |
16041 | while (length(v1) && length(v2)) { | |
16042 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16043 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16044 | # compare them as integers and fractions as strverscmp does. | |
16045 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16046 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16047 | # and advance v1 and v2 past the leading digit strings. | |
16048 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16049 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16050 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16051 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16052 | if (d1 ~ /^0/) { | |
16053 | if (d2 ~ /^0/) { | |
16054 | # Compare two fractions. | |
16055 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16056 | d1 = substr(d1, 2); len1-- | |
16057 | d2 = substr(d2, 2); len2-- | |
16058 | } | |
16059 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16060 | # The two components differ in length, and the common prefix | |
16061 | # contains only leading zeros. Consider the longer to be less. | |
16062 | d1 = -len1 | |
16063 | d2 = -len2 | |
16064 | } else { | |
16065 | # Otherwise, compare as strings. | |
16066 | d1 = "x" d1 | |
16067 | d2 = "x" d2 | |
16068 | } | |
16069 | } else { | |
16070 | # A fraction is less than an integer. | |
16071 | exit 1 | |
16072 | } | |
16073 | } else { | |
16074 | if (d2 ~ /^0/) { | |
16075 | # An integer is greater than a fraction. | |
16076 | exit 2 | |
16077 | } else { | |
16078 | # Compare two integers. | |
16079 | d1 += 0 | |
16080 | d2 += 0 | |
16081 | } | |
16082 | } | |
16083 | } else { | |
16084 | # The normal case, without worrying about digits. | |
16085 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16086 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16087 | } | |
16088 | if (d1 < d2) exit 1 | |
16089 | if (d1 > d2) exit 2 | |
16090 | } | |
16091 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16092 | # which mishandles some comparisons of empty strings to integers. | |
16093 | if (length(v2)) exit 1 | |
16094 | if (length(v1)) exit 2 | |
16095 | } | |
16096 | ' | |
16097 | as_arg_v1=$version | |
16098 | as_arg_v2=2.3 | |
16099 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16100 | case $? in #( | |
16101 | 1) : | |
16102 | ;; #( | |
16103 | 0) : | |
16104 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16105 | 2) : | |
16106 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16107 | *) : | |
16108 | ;; | |
16109 | esac | |
16110 | fi | |
16111 | ||
16112 | $ac_path_BISON_found && break 3 | |
16113 | done | |
16114 | done | |
e9c9a47c | 16115 | done |
a243b558 JF |
16116 | IFS=$as_save_IFS |
16117 | if test -z "$ac_cv_path_BISON"; then | |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16119 | $as_echo "no" >&6; } | |
16120 | fi | |
16121 | else | |
16122 | ac_cv_path_BISON=$BISON | |
632b71ea | 16123 | fi |
a243b558 JF |
16124 | |
16125 | ||
16126 | if true; then : | |
16127 | ||
16128 | BISON=$ac_cv_path_BISON | |
16129 | ||
16130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16131 | $as_echo "$BISON" >&6; } | |
16132 | ||
47aaa820 | 16133 | else |
a243b558 JF |
16134 | if true; then : |
16135 | ||
16136 | as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5 | |
16137 | ||
47aaa820 | 16138 | else |
a243b558 JF |
16139 | |
16140 | BISON=: | |
16141 | ||
16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16143 | $as_echo "no" >&6; } | |
16144 | ||
16145 | fi | |
16146 | fi | |
16147 | ||
16148 | ||
16149 | ||
16150 | ||
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
16152 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
16153 | if test -z "$FLEX"; then | |
16154 | ac_path_FLEX_found=false | |
16155 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
16157 | for as_dir in $PATH |
16158 | do | |
16159 | IFS=$as_save_IFS | |
16160 | test -z "$as_dir" && as_dir=. | |
a243b558 | 16161 | for ac_prog in flex; do |
47aaa820 | 16162 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
16163 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
16164 | as_fn_executable_p "$ac_path_FLEX" || continue | |
16165 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
16166 | if ${version:+false} :; then : | |
9c60689e | 16167 | |
47aaa820 | 16168 | else |
a243b558 JF |
16169 | as_arg_v1=$version |
16170 | as_arg_v2=2.5.33 | |
16171 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16172 | case $? in #( | |
16173 | 1) : | |
16174 | ;; #( | |
16175 | 0) : | |
16176 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16177 | 2) : | |
16178 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16179 | *) : | |
16180 | ;; | |
16181 | esac | |
16182 | fi | |
16183 | ||
16184 | $ac_path_FLEX_found && break 3 | |
16185 | done | |
16186 | done | |
16187 | done | |
16188 | IFS=$as_save_IFS | |
16189 | if test -z "$ac_cv_path_FLEX"; then | |
16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 16191 | $as_echo "no" >&6; } |
a243b558 JF |
16192 | fi |
16193 | else | |
16194 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
16195 | fi |
16196 | ||
16197 | ||
a243b558 | 16198 | if true; then : |
e9c9a47c | 16199 | |
a243b558 | 16200 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 16201 | |
a243b558 JF |
16202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
16203 | $as_echo "$FLEX" >&6; } | |
9c60689e | 16204 | |
632b71ea | 16205 | else |
a243b558 | 16206 | if true; then : |
e9c9a47c | 16207 | |
a243b558 | 16208 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 16209 | |
e9c9a47c | 16210 | else |
a243b558 JF |
16211 | |
16212 | FLEX=: | |
16213 | ||
16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16215 | $as_echo "no" >&6; } | |
9c60689e | 16216 | |
632b71ea | 16217 | fi |
a243b558 JF |
16218 | fi |
16219 | ||
16220 | ||
16221 | ||
16222 | ||
16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
16224 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
16225 | if test -z "$GPERF"; then | |
16226 | ac_path_GPERF_found=false | |
16227 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16229 | for as_dir in $PATH | |
16230 | do | |
16231 | IFS=$as_save_IFS | |
16232 | test -z "$as_dir" && as_dir=. | |
16233 | for ac_prog in gperf; do | |
16234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16235 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
16236 | as_fn_executable_p "$ac_path_GPERF" || continue | |
16237 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
16238 | if ${version:+false} :; then : | |
16239 | ||
e9c9a47c | 16240 | else |
a243b558 JF |
16241 | as_arg_v1=$version |
16242 | as_arg_v2=3.0.3 | |
16243 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16244 | case $? in #( | |
16245 | 1) : | |
16246 | ;; #( | |
16247 | 0) : | |
16248 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16249 | 2) : | |
16250 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16251 | *) : | |
16252 | ;; | |
16253 | esac | |
632b71ea | 16254 | fi |
a243b558 JF |
16255 | |
16256 | $ac_path_GPERF_found && break 3 | |
16257 | done | |
16258 | done | |
16259 | done | |
16260 | IFS=$as_save_IFS | |
16261 | if test -z "$ac_cv_path_GPERF"; then | |
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16263 | $as_echo "no" >&6; } | |
16264 | fi | |
47aaa820 | 16265 | else |
a243b558 JF |
16266 | ac_cv_path_GPERF=$GPERF |
16267 | fi | |
9c60689e DWT |
16268 | |
16269 | ||
a243b558 | 16270 | if true; then : |
9c60689e | 16271 | |
a243b558 | 16272 | GPERF=$ac_cv_path_GPERF |
9c60689e | 16273 | |
a243b558 JF |
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
16275 | $as_echo "$GPERF" >&6; } | |
9c60689e | 16276 | |
47aaa820 | 16277 | else |
a243b558 | 16278 | if true; then : |
9c60689e | 16279 | |
a243b558 JF |
16280 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
16281 | ||
16282 | else | |
16283 | ||
16284 | GPERF=: | |
16285 | ||
16286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16287 | $as_echo "no" >&6; } | |
9c60689e | 16288 | |
47aaa820 | 16289 | fi |
47aaa820 | 16290 | fi |
a243b558 JF |
16291 | |
16292 | ||
16293 | ||
16294 | ||
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
16296 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
16297 | if test -z "$GNUTAR"; then | |
16298 | ac_path_GNUTAR_found=false | |
16299 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16301 | for as_dir in $PATH | |
16302 | do | |
16303 | IFS=$as_save_IFS | |
16304 | test -z "$as_dir" && as_dir=. | |
16305 | for ac_prog in tar gtar gnutar; do | |
16306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16307 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
16308 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
16309 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
16310 | if ${version:+false} :; then : | |
16311 | ||
16312 | else | |
16313 | as_arg_v1=$version | |
16314 | as_arg_v2=1.19 | |
16315 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16316 | case $? in #( | |
16317 | 1) : | |
16318 | ;; #( | |
16319 | 0) : | |
16320 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16321 | 2) : | |
16322 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16323 | *) : | |
16324 | ;; | |
16325 | esac | |
790e5246 | 16326 | fi |
a243b558 JF |
16327 | |
16328 | $ac_path_GNUTAR_found && break 3 | |
16329 | done | |
16330 | done | |
16331 | done | |
16332 | IFS=$as_save_IFS | |
16333 | if test -z "$ac_cv_path_GNUTAR"; then | |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16335 | $as_echo "no" >&6; } | |
632b71ea | 16336 | fi |
632b71ea | 16337 | else |
a243b558 | 16338 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 16339 | fi |
66170b30 | 16340 | |
66170b30 | 16341 | |
a243b558 | 16342 | if true; then : |
66170b30 | 16343 | |
a243b558 | 16344 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 16345 | |
a243b558 JF |
16346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
16347 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 16348 | |
a243b558 JF |
16349 | else |
16350 | if true; then : | |
66170b30 | 16351 | |
a243b558 | 16352 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 16353 | |
66170b30 | 16354 | else |
66170b30 | 16355 | |
a243b558 | 16356 | GNUTAR=: |
66170b30 | 16357 | |
a243b558 JF |
16358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16359 | $as_echo "no" >&6; } | |
66170b30 | 16360 | |
a243b558 JF |
16361 | fi |
16362 | fi | |
66170b30 JF |
16363 | |
16364 | ||
9228a43a JF |
16365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5 |
16366 | $as_echo_n "checking bison for %code{}... " >&6; } | |
16367 | echo '%code{}%%_:' >conftest.y | |
16368 | if $BISON conftest.y -o/dev/null 2>/dev/null; then | |
16369 | ||
16370 | for element in Bison24; do | |
16371 | haveit= | |
16372 | for x in $CY_FILTERS; do | |
16373 | ||
16374 | acl_save_prefix="$prefix" | |
16375 | prefix="$acl_final_prefix" | |
16376 | acl_save_exec_prefix="$exec_prefix" | |
16377 | exec_prefix="$acl_final_exec_prefix" | |
16378 | eval x=\"$x\" | |
16379 | exec_prefix="$acl_save_exec_prefix" | |
16380 | prefix="$acl_save_prefix" | |
16381 | ||
16382 | if test "X$x" = "X$element"; then | |
16383 | haveit=yes | |
16384 | break | |
16385 | fi | |
16386 | done | |
16387 | if test -z "$haveit"; then | |
16388 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16389 | fi | |
16390 | done | |
16391 | ||
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16393 | $as_echo "yes" >&6; } | |
16394 | else | |
16395 | ||
16396 | for element in Bison23; do | |
16397 | haveit= | |
16398 | for x in $CY_FILTERS; do | |
16399 | ||
16400 | acl_save_prefix="$prefix" | |
16401 | prefix="$acl_final_prefix" | |
16402 | acl_save_exec_prefix="$exec_prefix" | |
16403 | exec_prefix="$acl_final_exec_prefix" | |
16404 | eval x=\"$x\" | |
16405 | exec_prefix="$acl_save_exec_prefix" | |
16406 | prefix="$acl_save_prefix" | |
16407 | ||
16408 | if test "X$x" = "X$element"; then | |
16409 | haveit=yes | |
16410 | break | |
16411 | fi | |
16412 | done | |
16413 | if test -z "$haveit"; then | |
16414 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16415 | fi | |
16416 | done | |
16417 | ||
16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16419 | $as_echo "no" >&6; } | |
16420 | fi | |
16421 | ||
16422 | rm -f conftest.y | |
16423 | ||
16424 | ||
66170b30 JF |
16425 | |
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | ||
16433 | if ${CFLAGS+:} false; then : | |
16434 | case " $CFLAGS " in | |
16435 | *" "*) | |
16436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 | |
16437 | (: CFLAGS already contains ) 2>&5 | |
16438 | ac_status=$? | |
16439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16440 | test $ac_status = 0; } | |
16441 | ;; | |
16442 | *) | |
16443 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5 | |
16444 | (: CFLAGS="$CFLAGS ") 2>&5 | |
16445 | ac_status=$? | |
16446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16447 | test $ac_status = 0; } | |
16448 | CFLAGS="$CFLAGS " | |
16449 | ;; | |
16450 | esac | |
16451 | else | |
16452 | CFLAGS="" | |
16453 | fi | |
16454 | ||
e9c9a47c DWT |
16455 | ac_ext=c |
16456 | ac_cpp='$CPP $CPPFLAGS' | |
16457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 16460 | |
66170b30 JF |
16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
16462 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
16463 | if ${ac_cv_cflags_warn_all+:} false; then : | |
16464 | $as_echo_n "(cached) " >&6 | |
16465 | else | |
16466 | ac_cv_cflags_warn_all="no, unknown" | |
16467 | ac_save_CFLAGS="$CFLAGS" | |
16468 | 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" # | |
16469 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16471 | /* end confdefs.h. */ | |
16472 | ||
16473 | int | |
16474 | main () | |
16475 | { | |
16476 | ||
16477 | ; | |
16478 | return 0; | |
16479 | } | |
16480 | _ACEOF | |
16481 | if ac_fn_c_try_compile "$LINENO"; then : | |
16482 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16483 | fi | |
16484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16485 | done | |
16486 | CFLAGS="$ac_save_CFLAGS" | |
16487 | ||
16488 | fi | |
16489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
16490 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
16491 | ||
16492 | case ".$ac_cv_cflags_warn_all" in | |
16493 | .ok|.ok,*) ;; | |
16494 | .|.no|.no,*) ;; | |
16495 | *) if ${CFLAGS+:} false; then : | |
16496 | case " $CFLAGS " in | |
16497 | *" $ac_cv_cflags_warn_all "*) | |
16498 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
16499 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
16500 | ac_status=$? | |
16501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16502 | test $ac_status = 0; } | |
16503 | ;; | |
16504 | *) | |
16505 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
16506 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
16507 | ac_status=$? | |
16508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16509 | test $ac_status = 0; } | |
16510 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
16511 | ;; | |
16512 | esac | |
16513 | else | |
16514 | CFLAGS="$ac_cv_cflags_warn_all" | |
16515 | fi | |
16516 | ;; | |
16517 | esac | |
16518 | ||
b816329d JF |
16519 | ac_ext=cpp |
16520 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16524 | ||
9c60689e | 16525 | |
66170b30 JF |
16526 | ac_ext=cpp |
16527 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16528 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16529 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16530 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 16531 | |
66170b30 JF |
16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16533 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16534 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16535 | $as_echo_n "(cached) " >&6 | |
16536 | else | |
16537 | ac_cv_cxxflags_warn_all="no, unknown" | |
16538 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16539 | 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" # | |
16540 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16542 | /* end confdefs.h. */ | |
1504c9b8 | 16543 | |
66170b30 JF |
16544 | int |
16545 | main () | |
16546 | { | |
1504c9b8 | 16547 | |
66170b30 JF |
16548 | ; |
16549 | return 0; | |
16550 | } | |
16551 | _ACEOF | |
16552 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16553 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16554 | fi | |
16555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16556 | done | |
16557 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 16558 | |
66170b30 JF |
16559 | fi |
16560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16561 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16562 | ||
16563 | case ".$ac_cv_cxxflags_warn_all" in | |
16564 | .ok|.ok,*) ;; | |
16565 | .|.no|.no,*) ;; | |
16566 | *) if ${CXXFLAGS+:} false; then : | |
16567 | case " $CXXFLAGS " in | |
16568 | *" $ac_cv_cxxflags_warn_all "*) | |
16569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16570 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16571 | ac_status=$? | |
16572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16573 | test $ac_status = 0; } | |
16574 | ;; | |
16575 | *) | |
16576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16577 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16578 | ac_status=$? | |
16579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16580 | test $ac_status = 0; } | |
16581 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16582 | ;; | |
16583 | esac | |
16584 | else | |
16585 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16586 | fi | |
16587 | ;; | |
16588 | esac | |
16589 | ||
16590 | ac_ext=cpp | |
16591 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16595 | ||
16596 | ||
babf7fe8 JF |
16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16598 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16599 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16600 | $as_echo_n "(cached) " >&6 | |
16601 | else | |
16602 | ac_cv_cxxflags_warn_all="no, unknown" | |
16603 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16604 | 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" # | |
16605 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16607 | /* end confdefs.h. */ | |
16608 | ||
16609 | int | |
16610 | main () | |
16611 | { | |
16612 | ||
16613 | ; | |
16614 | return 0; | |
16615 | } | |
16616 | _ACEOF | |
16617 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16618 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16619 | fi | |
16620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16621 | done | |
16622 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16623 | ||
16624 | fi | |
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16626 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16627 | ||
16628 | case ".$ac_cv_cxxflags_warn_all" in | |
16629 | .ok|.ok,*) ;; | |
16630 | .|.no|.no,*) ;; | |
16631 | *) if ${CXXFLAGS+:} false; then : | |
16632 | case " $CXXFLAGS " in | |
16633 | *" $ac_cv_cxxflags_warn_all "*) | |
16634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16635 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16636 | ac_status=$? | |
16637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16638 | test $ac_status = 0; } | |
16639 | ;; | |
16640 | *) | |
16641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16642 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16643 | ac_status=$? | |
16644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16645 | test $ac_status = 0; } | |
16646 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16647 | ;; | |
16648 | esac | |
16649 | else | |
16650 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16651 | fi | |
16652 | ;; | |
16653 | esac | |
16654 | ||
66170b30 JF |
16655 | |
16656 | ||
66170b30 | 16657 | |
66170b30 | 16658 | |
c10a2228 JF |
16659 | ac_ext=c |
16660 | ac_cpp='$CPP $CPPFLAGS' | |
16661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16664 | ||
babf7fe8 JF |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
16666 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
16667 | |
16668 | cy_save=$CFLAGS | |
16669 | ||
babf7fe8 | 16670 | for element in -Werror; do |
c10a2228 JF |
16671 | haveit= |
16672 | for x in $CFLAGS; do | |
16673 | ||
16674 | acl_save_prefix="$prefix" | |
16675 | prefix="$acl_final_prefix" | |
16676 | acl_save_exec_prefix="$exec_prefix" | |
16677 | exec_prefix="$acl_final_exec_prefix" | |
16678 | eval x=\"$x\" | |
16679 | exec_prefix="$acl_save_exec_prefix" | |
16680 | prefix="$acl_save_prefix" | |
16681 | ||
16682 | if test "X$x" = "X$element"; then | |
16683 | haveit=yes | |
16684 | break | |
16685 | fi | |
16686 | done | |
16687 | if test -z "$haveit"; then | |
16688 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16689 | fi | |
16690 | done | |
16691 | ||
16692 | ||
16693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16694 | /* end confdefs.h. */ | |
16695 | ||
16696 | _ACEOF | |
16697 | if ac_fn_c_try_compile "$LINENO"; then : | |
16698 | cy_good=1 | |
16699 | else | |
16700 | cy_good=0 | |
16701 | fi | |
16702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16703 | ||
16704 | CFLAGS=$cy_save | |
16705 | if test "x$cy_good" = x1; then : | |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16707 | $as_echo "yes" >&6; } | |
16708 | ||
babf7fe8 | 16709 | for element in -Werror; do |
c10a2228 JF |
16710 | haveit= |
16711 | for x in $CFLAGS; do | |
16712 | ||
16713 | acl_save_prefix="$prefix" | |
16714 | prefix="$acl_final_prefix" | |
16715 | acl_save_exec_prefix="$exec_prefix" | |
16716 | exec_prefix="$acl_final_exec_prefix" | |
16717 | eval x=\"$x\" | |
16718 | exec_prefix="$acl_save_exec_prefix" | |
16719 | prefix="$acl_save_prefix" | |
16720 | ||
16721 | if test "X$x" = "X$element"; then | |
16722 | haveit=yes | |
16723 | break | |
16724 | fi | |
16725 | done | |
16726 | if test -z "$haveit"; then | |
16727 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16728 | fi | |
16729 | done | |
16730 | ||
16731 | ||
16732 | else | |
16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16734 | $as_echo "no" >&6; } | |
16735 | fi | |
16736 | ||
16737 | ac_ext=cpp | |
16738 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16739 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16740 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16741 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16742 | ||
16743 | ||
16744 | ||
16745 | ac_ext=cpp | |
16746 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16747 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16748 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16749 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16750 | ||
babf7fe8 JF |
16751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
16752 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
16753 | |
16754 | cy_save=$CXXFLAGS | |
16755 | ||
babf7fe8 | 16756 | for element in -Werror; do |
c10a2228 JF |
16757 | haveit= |
16758 | for x in $CXXFLAGS; do | |
16759 | ||
16760 | acl_save_prefix="$prefix" | |
16761 | prefix="$acl_final_prefix" | |
16762 | acl_save_exec_prefix="$exec_prefix" | |
16763 | exec_prefix="$acl_final_exec_prefix" | |
16764 | eval x=\"$x\" | |
16765 | exec_prefix="$acl_save_exec_prefix" | |
16766 | prefix="$acl_save_prefix" | |
16767 | ||
16768 | if test "X$x" = "X$element"; then | |
16769 | haveit=yes | |
16770 | break | |
16771 | fi | |
16772 | done | |
16773 | if test -z "$haveit"; then | |
16774 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16775 | fi | |
16776 | done | |
16777 | ||
16778 | ||
16779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16780 | /* end confdefs.h. */ | |
16781 | ||
16782 | _ACEOF | |
16783 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16784 | cy_good=1 | |
16785 | else | |
16786 | cy_good=0 | |
16787 | fi | |
16788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16789 | ||
16790 | CXXFLAGS=$cy_save | |
16791 | if test "x$cy_good" = x1; then : | |
16792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16793 | $as_echo "yes" >&6; } | |
16794 | ||
babf7fe8 | 16795 | for element in -Werror; do |
c10a2228 JF |
16796 | haveit= |
16797 | for x in $CXXFLAGS; do | |
16798 | ||
16799 | acl_save_prefix="$prefix" | |
16800 | prefix="$acl_final_prefix" | |
16801 | acl_save_exec_prefix="$exec_prefix" | |
16802 | exec_prefix="$acl_final_exec_prefix" | |
16803 | eval x=\"$x\" | |
16804 | exec_prefix="$acl_save_exec_prefix" | |
16805 | prefix="$acl_save_prefix" | |
16806 | ||
16807 | if test "X$x" = "X$element"; then | |
16808 | haveit=yes | |
16809 | break | |
16810 | fi | |
16811 | done | |
16812 | if test -z "$haveit"; then | |
16813 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16814 | fi | |
16815 | done | |
16816 | ||
16817 | ||
16818 | else | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16820 | $as_echo "no" >&6; } | |
16821 | fi | |
16822 | ||
16823 | ac_ext=cpp | |
16824 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16825 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16826 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16827 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16828 | ||
16829 | ||
16830 | ||
16831 | ac_ext=mm | |
16832 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16833 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16834 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16835 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16836 | ||
babf7fe8 JF |
16837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
16838 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
16839 | |
16840 | cy_save=$OBJCXXFLAGS | |
16841 | ||
babf7fe8 | 16842 | for element in -Werror; do |
c10a2228 JF |
16843 | haveit= |
16844 | for x in $OBJCXXFLAGS; do | |
16845 | ||
16846 | acl_save_prefix="$prefix" | |
16847 | prefix="$acl_final_prefix" | |
16848 | acl_save_exec_prefix="$exec_prefix" | |
16849 | exec_prefix="$acl_final_exec_prefix" | |
16850 | eval x=\"$x\" | |
16851 | exec_prefix="$acl_save_exec_prefix" | |
16852 | prefix="$acl_save_prefix" | |
16853 | ||
16854 | if test "X$x" = "X$element"; then | |
16855 | haveit=yes | |
16856 | break | |
16857 | fi | |
16858 | done | |
16859 | if test -z "$haveit"; then | |
16860 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16861 | fi | |
16862 | done | |
16863 | ||
16864 | ||
16865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16866 | /* end confdefs.h. */ | |
16867 | ||
16868 | _ACEOF | |
16869 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16870 | cy_good=1 | |
16871 | else | |
16872 | cy_good=0 | |
16873 | fi | |
16874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16875 | ||
16876 | OBJCXXFLAGS=$cy_save | |
16877 | if test "x$cy_good" = x1; then : | |
16878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16879 | $as_echo "yes" >&6; } | |
16880 | ||
babf7fe8 | 16881 | for element in -Werror; do |
c10a2228 JF |
16882 | haveit= |
16883 | for x in $OBJCXXFLAGS; do | |
16884 | ||
16885 | acl_save_prefix="$prefix" | |
16886 | prefix="$acl_final_prefix" | |
16887 | acl_save_exec_prefix="$exec_prefix" | |
16888 | exec_prefix="$acl_final_exec_prefix" | |
16889 | eval x=\"$x\" | |
16890 | exec_prefix="$acl_save_exec_prefix" | |
16891 | prefix="$acl_save_prefix" | |
16892 | ||
16893 | if test "X$x" = "X$element"; then | |
16894 | haveit=yes | |
16895 | break | |
16896 | fi | |
16897 | done | |
16898 | if test -z "$haveit"; then | |
16899 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16900 | fi | |
16901 | done | |
16902 | ||
16903 | ||
16904 | else | |
16905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16906 | $as_echo "no" >&6; } | |
16907 | fi | |
16908 | ||
16909 | ac_ext=cpp | |
16910 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16911 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16912 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16913 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16914 | ||
16915 | ||
16916 | ||
16917 | ||
16918 | ||
16919 | ||
16920 | ac_ext=c | |
16921 | ac_cpp='$CPP $CPPFLAGS' | |
16922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16925 | ||
babf7fe8 JF |
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
16927 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
16928 | |
16929 | cy_save=$CFLAGS | |
16930 | ||
babf7fe8 | 16931 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
16932 | haveit= |
16933 | for x in $CFLAGS; do | |
16934 | ||
16935 | acl_save_prefix="$prefix" | |
16936 | prefix="$acl_final_prefix" | |
16937 | acl_save_exec_prefix="$exec_prefix" | |
16938 | exec_prefix="$acl_final_exec_prefix" | |
16939 | eval x=\"$x\" | |
16940 | exec_prefix="$acl_save_exec_prefix" | |
16941 | prefix="$acl_save_prefix" | |
16942 | ||
16943 | if test "X$x" = "X$element"; then | |
16944 | haveit=yes | |
16945 | break | |
16946 | fi | |
16947 | done | |
16948 | if test -z "$haveit"; then | |
16949 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16950 | fi | |
16951 | done | |
16952 | ||
16953 | ||
16954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16955 | /* end confdefs.h. */ | |
16956 | ||
16957 | _ACEOF | |
16958 | if ac_fn_c_try_compile "$LINENO"; then : | |
16959 | cy_good=1 | |
16960 | else | |
16961 | cy_good=0 | |
16962 | fi | |
16963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16964 | ||
16965 | CFLAGS=$cy_save | |
16966 | if test "x$cy_good" = x1; then : | |
16967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16968 | $as_echo "yes" >&6; } | |
16969 | ||
babf7fe8 | 16970 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
16971 | haveit= |
16972 | for x in $CFLAGS; do | |
16973 | ||
16974 | acl_save_prefix="$prefix" | |
16975 | prefix="$acl_final_prefix" | |
16976 | acl_save_exec_prefix="$exec_prefix" | |
16977 | exec_prefix="$acl_final_exec_prefix" | |
16978 | eval x=\"$x\" | |
16979 | exec_prefix="$acl_save_exec_prefix" | |
16980 | prefix="$acl_save_prefix" | |
16981 | ||
16982 | if test "X$x" = "X$element"; then | |
16983 | haveit=yes | |
16984 | break | |
16985 | fi | |
16986 | done | |
16987 | if test -z "$haveit"; then | |
16988 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16989 | fi | |
16990 | done | |
16991 | ||
16992 | ||
16993 | else | |
16994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16995 | $as_echo "no" >&6; } | |
16996 | fi | |
16997 | ||
16998 | ac_ext=cpp | |
16999 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17000 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17001 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17002 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17003 | ||
17004 | ||
17005 | ||
17006 | ac_ext=cpp | |
17007 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17008 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17009 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17010 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17011 | ||
babf7fe8 JF |
17012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
17013 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17014 | |
17015 | cy_save=$CXXFLAGS | |
17016 | ||
babf7fe8 | 17017 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17018 | haveit= |
17019 | for x in $CXXFLAGS; do | |
17020 | ||
17021 | acl_save_prefix="$prefix" | |
17022 | prefix="$acl_final_prefix" | |
17023 | acl_save_exec_prefix="$exec_prefix" | |
17024 | exec_prefix="$acl_final_exec_prefix" | |
17025 | eval x=\"$x\" | |
17026 | exec_prefix="$acl_save_exec_prefix" | |
17027 | prefix="$acl_save_prefix" | |
17028 | ||
17029 | if test "X$x" = "X$element"; then | |
17030 | haveit=yes | |
17031 | break | |
17032 | fi | |
17033 | done | |
17034 | if test -z "$haveit"; then | |
17035 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17036 | fi | |
17037 | done | |
17038 | ||
17039 | ||
17040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17041 | /* end confdefs.h. */ | |
17042 | ||
17043 | _ACEOF | |
17044 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17045 | cy_good=1 | |
17046 | else | |
17047 | cy_good=0 | |
17048 | fi | |
17049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17050 | ||
17051 | CXXFLAGS=$cy_save | |
17052 | if test "x$cy_good" = x1; then : | |
17053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17054 | $as_echo "yes" >&6; } | |
17055 | ||
babf7fe8 | 17056 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17057 | haveit= |
17058 | for x in $CXXFLAGS; do | |
17059 | ||
17060 | acl_save_prefix="$prefix" | |
17061 | prefix="$acl_final_prefix" | |
17062 | acl_save_exec_prefix="$exec_prefix" | |
17063 | exec_prefix="$acl_final_exec_prefix" | |
17064 | eval x=\"$x\" | |
17065 | exec_prefix="$acl_save_exec_prefix" | |
17066 | prefix="$acl_save_prefix" | |
17067 | ||
17068 | if test "X$x" = "X$element"; then | |
17069 | haveit=yes | |
17070 | break | |
17071 | fi | |
17072 | done | |
17073 | if test -z "$haveit"; then | |
17074 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17075 | fi | |
17076 | done | |
17077 | ||
17078 | ||
17079 | else | |
17080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17081 | $as_echo "no" >&6; } | |
17082 | fi | |
17083 | ||
17084 | ac_ext=cpp | |
17085 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17086 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17087 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17088 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17089 | ||
17090 | ||
17091 | ||
17092 | ac_ext=mm | |
17093 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17094 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17095 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17096 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17097 | ||
babf7fe8 JF |
17098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
17099 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17100 | |
17101 | cy_save=$OBJCXXFLAGS | |
17102 | ||
babf7fe8 | 17103 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17104 | haveit= |
17105 | for x in $OBJCXXFLAGS; do | |
17106 | ||
17107 | acl_save_prefix="$prefix" | |
17108 | prefix="$acl_final_prefix" | |
17109 | acl_save_exec_prefix="$exec_prefix" | |
17110 | exec_prefix="$acl_final_exec_prefix" | |
17111 | eval x=\"$x\" | |
17112 | exec_prefix="$acl_save_exec_prefix" | |
17113 | prefix="$acl_save_prefix" | |
17114 | ||
17115 | if test "X$x" = "X$element"; then | |
17116 | haveit=yes | |
17117 | break | |
17118 | fi | |
17119 | done | |
17120 | if test -z "$haveit"; then | |
17121 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17122 | fi | |
17123 | done | |
17124 | ||
17125 | ||
17126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17127 | /* end confdefs.h. */ | |
17128 | ||
17129 | _ACEOF | |
17130 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17131 | cy_good=1 | |
17132 | else | |
17133 | cy_good=0 | |
17134 | fi | |
17135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17136 | ||
17137 | OBJCXXFLAGS=$cy_save | |
17138 | if test "x$cy_good" = x1; then : | |
17139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17140 | $as_echo "yes" >&6; } | |
17141 | ||
babf7fe8 | 17142 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17143 | haveit= |
17144 | for x in $OBJCXXFLAGS; do | |
17145 | ||
17146 | acl_save_prefix="$prefix" | |
17147 | prefix="$acl_final_prefix" | |
17148 | acl_save_exec_prefix="$exec_prefix" | |
17149 | exec_prefix="$acl_final_exec_prefix" | |
17150 | eval x=\"$x\" | |
17151 | exec_prefix="$acl_save_exec_prefix" | |
17152 | prefix="$acl_save_prefix" | |
17153 | ||
17154 | if test "X$x" = "X$element"; then | |
17155 | haveit=yes | |
17156 | break | |
17157 | fi | |
17158 | done | |
17159 | if test -z "$haveit"; then | |
17160 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17161 | fi | |
17162 | done | |
17163 | ||
17164 | ||
17165 | else | |
17166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17167 | $as_echo "no" >&6; } | |
17168 | fi | |
17169 | ||
17170 | ac_ext=cpp | |
17171 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
babf7fe8 | 17180 | |
c10a2228 JF |
17181 | ac_ext=c |
17182 | ac_cpp='$CPP $CPPFLAGS' | |
17183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17186 | ||
babf7fe8 JF |
17187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
17188 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17189 | |
17190 | cy_save=$CFLAGS | |
17191 | ||
babf7fe8 | 17192 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17193 | haveit= |
17194 | for x in $CFLAGS; do | |
17195 | ||
17196 | acl_save_prefix="$prefix" | |
17197 | prefix="$acl_final_prefix" | |
17198 | acl_save_exec_prefix="$exec_prefix" | |
17199 | exec_prefix="$acl_final_exec_prefix" | |
17200 | eval x=\"$x\" | |
17201 | exec_prefix="$acl_save_exec_prefix" | |
17202 | prefix="$acl_save_prefix" | |
17203 | ||
17204 | if test "X$x" = "X$element"; then | |
17205 | haveit=yes | |
17206 | break | |
17207 | fi | |
17208 | done | |
17209 | if test -z "$haveit"; then | |
17210 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17211 | fi | |
17212 | done | |
17213 | ||
17214 | ||
17215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17216 | /* end confdefs.h. */ | |
17217 | ||
17218 | _ACEOF | |
17219 | if ac_fn_c_try_compile "$LINENO"; then : | |
17220 | cy_good=1 | |
17221 | else | |
17222 | cy_good=0 | |
17223 | fi | |
17224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17225 | ||
17226 | CFLAGS=$cy_save | |
17227 | if test "x$cy_good" = x1; then : | |
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17229 | $as_echo "yes" >&6; } | |
17230 | ||
babf7fe8 | 17231 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17232 | haveit= |
17233 | for x in $CFLAGS; do | |
17234 | ||
17235 | acl_save_prefix="$prefix" | |
17236 | prefix="$acl_final_prefix" | |
17237 | acl_save_exec_prefix="$exec_prefix" | |
17238 | exec_prefix="$acl_final_exec_prefix" | |
17239 | eval x=\"$x\" | |
17240 | exec_prefix="$acl_save_exec_prefix" | |
17241 | prefix="$acl_save_prefix" | |
17242 | ||
17243 | if test "X$x" = "X$element"; then | |
17244 | haveit=yes | |
17245 | break | |
17246 | fi | |
17247 | done | |
17248 | if test -z "$haveit"; then | |
17249 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17250 | fi | |
17251 | done | |
17252 | ||
17253 | ||
17254 | else | |
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17256 | $as_echo "no" >&6; } | |
17257 | fi | |
17258 | ||
17259 | ac_ext=cpp | |
17260 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17261 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17262 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17263 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17264 | ||
17265 | ||
17266 | ||
17267 | ac_ext=cpp | |
17268 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17269 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17270 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17271 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17272 | ||
babf7fe8 JF |
17273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
17274 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17275 | |
17276 | cy_save=$CXXFLAGS | |
17277 | ||
babf7fe8 | 17278 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17279 | haveit= |
17280 | for x in $CXXFLAGS; do | |
17281 | ||
17282 | acl_save_prefix="$prefix" | |
17283 | prefix="$acl_final_prefix" | |
17284 | acl_save_exec_prefix="$exec_prefix" | |
17285 | exec_prefix="$acl_final_exec_prefix" | |
17286 | eval x=\"$x\" | |
17287 | exec_prefix="$acl_save_exec_prefix" | |
17288 | prefix="$acl_save_prefix" | |
17289 | ||
17290 | if test "X$x" = "X$element"; then | |
17291 | haveit=yes | |
17292 | break | |
17293 | fi | |
17294 | done | |
17295 | if test -z "$haveit"; then | |
17296 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17297 | fi | |
17298 | done | |
17299 | ||
17300 | ||
17301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17302 | /* end confdefs.h. */ | |
17303 | ||
17304 | _ACEOF | |
17305 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17306 | cy_good=1 | |
17307 | else | |
17308 | cy_good=0 | |
17309 | fi | |
17310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17311 | ||
17312 | CXXFLAGS=$cy_save | |
17313 | if test "x$cy_good" = x1; then : | |
17314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17315 | $as_echo "yes" >&6; } | |
17316 | ||
babf7fe8 | 17317 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17318 | haveit= |
17319 | for x in $CXXFLAGS; do | |
17320 | ||
17321 | acl_save_prefix="$prefix" | |
17322 | prefix="$acl_final_prefix" | |
17323 | acl_save_exec_prefix="$exec_prefix" | |
17324 | exec_prefix="$acl_final_exec_prefix" | |
17325 | eval x=\"$x\" | |
17326 | exec_prefix="$acl_save_exec_prefix" | |
17327 | prefix="$acl_save_prefix" | |
17328 | ||
17329 | if test "X$x" = "X$element"; then | |
17330 | haveit=yes | |
17331 | break | |
17332 | fi | |
17333 | done | |
17334 | if test -z "$haveit"; then | |
17335 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17336 | fi | |
17337 | done | |
17338 | ||
17339 | ||
17340 | else | |
17341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17342 | $as_echo "no" >&6; } | |
17343 | fi | |
17344 | ||
17345 | ac_ext=cpp | |
17346 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17347 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17348 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17349 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17350 | ||
17351 | ||
17352 | ||
17353 | ac_ext=mm | |
17354 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17355 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17356 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17357 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17358 | ||
babf7fe8 JF |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
17360 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17361 | |
17362 | cy_save=$OBJCXXFLAGS | |
17363 | ||
babf7fe8 | 17364 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17365 | haveit= |
17366 | for x in $OBJCXXFLAGS; do | |
17367 | ||
17368 | acl_save_prefix="$prefix" | |
17369 | prefix="$acl_final_prefix" | |
17370 | acl_save_exec_prefix="$exec_prefix" | |
17371 | exec_prefix="$acl_final_exec_prefix" | |
17372 | eval x=\"$x\" | |
17373 | exec_prefix="$acl_save_exec_prefix" | |
17374 | prefix="$acl_save_prefix" | |
17375 | ||
17376 | if test "X$x" = "X$element"; then | |
17377 | haveit=yes | |
17378 | break | |
17379 | fi | |
17380 | done | |
17381 | if test -z "$haveit"; then | |
17382 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17383 | fi | |
17384 | done | |
17385 | ||
17386 | ||
17387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17388 | /* end confdefs.h. */ | |
17389 | ||
17390 | _ACEOF | |
17391 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17392 | cy_good=1 | |
17393 | else | |
17394 | cy_good=0 | |
17395 | fi | |
17396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17397 | ||
17398 | OBJCXXFLAGS=$cy_save | |
17399 | if test "x$cy_good" = x1; then : | |
17400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17401 | $as_echo "yes" >&6; } | |
17402 | ||
babf7fe8 | 17403 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17404 | haveit= |
17405 | for x in $OBJCXXFLAGS; do | |
17406 | ||
17407 | acl_save_prefix="$prefix" | |
17408 | prefix="$acl_final_prefix" | |
17409 | acl_save_exec_prefix="$exec_prefix" | |
17410 | exec_prefix="$acl_final_exec_prefix" | |
17411 | eval x=\"$x\" | |
17412 | exec_prefix="$acl_save_exec_prefix" | |
17413 | prefix="$acl_save_prefix" | |
17414 | ||
17415 | if test "X$x" = "X$element"; then | |
17416 | haveit=yes | |
17417 | break | |
17418 | fi | |
17419 | done | |
17420 | if test -z "$haveit"; then | |
17421 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17422 | fi | |
17423 | done | |
17424 | ||
17425 | ||
17426 | else | |
17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17428 | $as_echo "no" >&6; } | |
17429 | fi | |
17430 | ||
17431 | ac_ext=cpp | |
17432 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17436 | ||
17437 | ||
17438 | ||
17439 | ||
17440 | ||
17441 | ac_ext=c | |
17442 | ac_cpp='$CPP $CPPFLAGS' | |
17443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17446 | ||
babf7fe8 JF |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
17448 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17449 | |
17450 | cy_save=$CFLAGS | |
17451 | ||
babf7fe8 | 17452 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17453 | haveit= |
c10a2228 | 17454 | for x in $CFLAGS; do |
1504c9b8 DWT |
17455 | |
17456 | acl_save_prefix="$prefix" | |
17457 | prefix="$acl_final_prefix" | |
17458 | acl_save_exec_prefix="$exec_prefix" | |
17459 | exec_prefix="$acl_final_exec_prefix" | |
17460 | eval x=\"$x\" | |
17461 | exec_prefix="$acl_save_exec_prefix" | |
17462 | prefix="$acl_save_prefix" | |
17463 | ||
17464 | if test "X$x" = "X$element"; then | |
17465 | haveit=yes | |
17466 | break | |
17467 | fi | |
17468 | done | |
17469 | if test -z "$haveit"; then | |
c10a2228 | 17470 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
17471 | fi |
17472 | done | |
17473 | ||
66170b30 JF |
17474 | |
17475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17476 | /* end confdefs.h. */ |
17477 | ||
66170b30 | 17478 | _ACEOF |
c10a2228 | 17479 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
17480 | cy_good=1 |
17481 | else | |
17482 | cy_good=0 | |
17483 | fi | |
17484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17485 | ||
c10a2228 | 17486 | CFLAGS=$cy_save |
66170b30 JF |
17487 | if test "x$cy_good" = x1; then : |
17488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17489 | $as_echo "yes" >&6; } | |
17490 | ||
babf7fe8 | 17491 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17492 | haveit= |
17493 | for x in $CFLAGS; do | |
17494 | ||
17495 | acl_save_prefix="$prefix" | |
17496 | prefix="$acl_final_prefix" | |
17497 | acl_save_exec_prefix="$exec_prefix" | |
17498 | exec_prefix="$acl_final_exec_prefix" | |
17499 | eval x=\"$x\" | |
17500 | exec_prefix="$acl_save_exec_prefix" | |
17501 | prefix="$acl_save_prefix" | |
17502 | ||
17503 | if test "X$x" = "X$element"; then | |
17504 | haveit=yes | |
17505 | break | |
17506 | fi | |
17507 | done | |
17508 | if test -z "$haveit"; then | |
17509 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17510 | fi | |
17511 | done | |
17512 | ||
17513 | ||
c10a2228 JF |
17514 | else |
17515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17516 | $as_echo "no" >&6; } | |
17517 | fi | |
17518 | ||
17519 | ac_ext=cpp | |
17520 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17524 | ||
17525 | ||
17526 | ||
17527 | ac_ext=cpp | |
17528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17532 | ||
babf7fe8 JF |
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
17534 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17535 | |
17536 | cy_save=$CXXFLAGS | |
17537 | ||
babf7fe8 | 17538 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17539 | haveit= |
17540 | for x in $CXXFLAGS; do | |
17541 | ||
17542 | acl_save_prefix="$prefix" | |
17543 | prefix="$acl_final_prefix" | |
17544 | acl_save_exec_prefix="$exec_prefix" | |
17545 | exec_prefix="$acl_final_exec_prefix" | |
17546 | eval x=\"$x\" | |
17547 | exec_prefix="$acl_save_exec_prefix" | |
17548 | prefix="$acl_save_prefix" | |
17549 | ||
17550 | if test "X$x" = "X$element"; then | |
17551 | haveit=yes | |
17552 | break | |
17553 | fi | |
17554 | done | |
17555 | if test -z "$haveit"; then | |
17556 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17557 | fi | |
17558 | done | |
17559 | ||
17560 | ||
c10a2228 JF |
17561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17562 | /* end confdefs.h. */ | |
17563 | ||
17564 | _ACEOF | |
17565 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17566 | cy_good=1 | |
17567 | else | |
17568 | cy_good=0 | |
17569 | fi | |
17570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17571 | ||
17572 | CXXFLAGS=$cy_save | |
17573 | if test "x$cy_good" = x1; then : | |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17575 | $as_echo "yes" >&6; } | |
17576 | ||
babf7fe8 | 17577 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17578 | haveit= |
c10a2228 | 17579 | for x in $CXXFLAGS; do |
66170b30 JF |
17580 | |
17581 | acl_save_prefix="$prefix" | |
17582 | prefix="$acl_final_prefix" | |
17583 | acl_save_exec_prefix="$exec_prefix" | |
17584 | exec_prefix="$acl_final_exec_prefix" | |
17585 | eval x=\"$x\" | |
17586 | exec_prefix="$acl_save_exec_prefix" | |
17587 | prefix="$acl_save_prefix" | |
17588 | ||
17589 | if test "X$x" = "X$element"; then | |
17590 | haveit=yes | |
17591 | break | |
17592 | fi | |
17593 | done | |
17594 | if test -z "$haveit"; then | |
c10a2228 | 17595 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
17596 | fi |
17597 | done | |
17598 | ||
17599 | ||
66170b30 JF |
17600 | else |
17601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17602 | $as_echo "no" >&6; } | |
17603 | fi | |
17604 | ||
c10a2228 JF |
17605 | ac_ext=cpp |
17606 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17610 | ||
66170b30 JF |
17611 | |
17612 | ||
c10a2228 JF |
17613 | ac_ext=mm |
17614 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17615 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17616 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17617 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17618 | ||
babf7fe8 JF |
17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
17620 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 17621 | |
c10a2228 | 17622 | cy_save=$OBJCXXFLAGS |
66170b30 | 17623 | |
babf7fe8 | 17624 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17625 | haveit= |
c10a2228 | 17626 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
17627 | |
17628 | acl_save_prefix="$prefix" | |
17629 | prefix="$acl_final_prefix" | |
17630 | acl_save_exec_prefix="$exec_prefix" | |
17631 | exec_prefix="$acl_final_exec_prefix" | |
17632 | eval x=\"$x\" | |
17633 | exec_prefix="$acl_save_exec_prefix" | |
17634 | prefix="$acl_save_prefix" | |
17635 | ||
17636 | if test "X$x" = "X$element"; then | |
17637 | haveit=yes | |
17638 | break | |
17639 | fi | |
17640 | done | |
17641 | if test -z "$haveit"; then | |
c10a2228 | 17642 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
17643 | fi |
17644 | done | |
17645 | ||
17646 | ||
17647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17648 | /* end confdefs.h. */ | |
1504c9b8 | 17649 | |
1504c9b8 | 17650 | _ACEOF |
c10a2228 | 17651 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
17652 | cy_good=1 |
17653 | else | |
17654 | cy_good=0 | |
17655 | fi | |
17656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17657 | ||
c10a2228 | 17658 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
17659 | if test "x$cy_good" = x1; then : |
17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17661 | $as_echo "yes" >&6; } | |
1504c9b8 | 17662 | |
babf7fe8 | 17663 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17664 | haveit= |
c10a2228 | 17665 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17666 | |
17667 | acl_save_prefix="$prefix" | |
17668 | prefix="$acl_final_prefix" | |
17669 | acl_save_exec_prefix="$exec_prefix" | |
17670 | exec_prefix="$acl_final_exec_prefix" | |
17671 | eval x=\"$x\" | |
17672 | exec_prefix="$acl_save_exec_prefix" | |
17673 | prefix="$acl_save_prefix" | |
17674 | ||
17675 | if test "X$x" = "X$element"; then | |
17676 | haveit=yes | |
17677 | break | |
17678 | fi | |
17679 | done | |
17680 | if test -z "$haveit"; then | |
c10a2228 | 17681 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17682 | fi |
17683 | done | |
17684 | ||
17685 | ||
c10a2228 JF |
17686 | else |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17688 | $as_echo "no" >&6; } | |
17689 | fi | |
17690 | ||
17691 | ac_ext=cpp | |
17692 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17696 | ||
17697 | ||
17698 | ||
17699 | ||
17700 | ||
17701 | ac_ext=c | |
17702 | ac_cpp='$CPP $CPPFLAGS' | |
17703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17706 | ||
babf7fe8 JF |
17707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
17708 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17709 | |
17710 | cy_save=$CFLAGS | |
17711 | ||
babf7fe8 | 17712 | for element in -Wno-parentheses; do |
66170b30 | 17713 | haveit= |
c10a2228 | 17714 | for x in $CFLAGS; do |
66170b30 JF |
17715 | |
17716 | acl_save_prefix="$prefix" | |
17717 | prefix="$acl_final_prefix" | |
17718 | acl_save_exec_prefix="$exec_prefix" | |
17719 | exec_prefix="$acl_final_exec_prefix" | |
17720 | eval x=\"$x\" | |
17721 | exec_prefix="$acl_save_exec_prefix" | |
17722 | prefix="$acl_save_prefix" | |
17723 | ||
17724 | if test "X$x" = "X$element"; then | |
17725 | haveit=yes | |
17726 | break | |
17727 | fi | |
17728 | done | |
17729 | if test -z "$haveit"; then | |
c10a2228 | 17730 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17731 | fi |
17732 | done | |
17733 | ||
17734 | ||
c10a2228 JF |
17735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17736 | /* end confdefs.h. */ | |
17737 | ||
17738 | _ACEOF | |
17739 | if ac_fn_c_try_compile "$LINENO"; then : | |
17740 | cy_good=1 | |
17741 | else | |
17742 | cy_good=0 | |
17743 | fi | |
17744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17745 | ||
17746 | CFLAGS=$cy_save | |
17747 | if test "x$cy_good" = x1; then : | |
17748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17749 | $as_echo "yes" >&6; } | |
17750 | ||
babf7fe8 | 17751 | for element in -Wno-parentheses; do |
66170b30 | 17752 | haveit= |
c10a2228 | 17753 | for x in $CFLAGS; do |
66170b30 JF |
17754 | |
17755 | acl_save_prefix="$prefix" | |
17756 | prefix="$acl_final_prefix" | |
17757 | acl_save_exec_prefix="$exec_prefix" | |
17758 | exec_prefix="$acl_final_exec_prefix" | |
17759 | eval x=\"$x\" | |
17760 | exec_prefix="$acl_save_exec_prefix" | |
17761 | prefix="$acl_save_prefix" | |
17762 | ||
17763 | if test "X$x" = "X$element"; then | |
17764 | haveit=yes | |
17765 | break | |
17766 | fi | |
17767 | done | |
17768 | if test -z "$haveit"; then | |
c10a2228 | 17769 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17770 | fi |
17771 | done | |
17772 | ||
17773 | ||
66170b30 JF |
17774 | else |
17775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17776 | $as_echo "no" >&6; } | |
17777 | fi | |
17778 | ||
c10a2228 JF |
17779 | ac_ext=cpp |
17780 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17781 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17782 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17783 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17784 | ||
66170b30 JF |
17785 | |
17786 | ||
c10a2228 JF |
17787 | ac_ext=cpp |
17788 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17789 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17790 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17791 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17792 | ||
babf7fe8 JF |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
17794 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
17795 | |
17796 | cy_save=$CXXFLAGS | |
17797 | ||
babf7fe8 | 17798 | for element in -Wno-parentheses; do |
66170b30 JF |
17799 | haveit= |
17800 | for x in $CXXFLAGS; do | |
17801 | ||
17802 | acl_save_prefix="$prefix" | |
17803 | prefix="$acl_final_prefix" | |
17804 | acl_save_exec_prefix="$exec_prefix" | |
17805 | exec_prefix="$acl_final_exec_prefix" | |
17806 | eval x=\"$x\" | |
17807 | exec_prefix="$acl_save_exec_prefix" | |
17808 | prefix="$acl_save_prefix" | |
17809 | ||
17810 | if test "X$x" = "X$element"; then | |
17811 | haveit=yes | |
17812 | break | |
17813 | fi | |
17814 | done | |
17815 | if test -z "$haveit"; then | |
17816 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17817 | fi | |
17818 | done | |
17819 | ||
17820 | ||
17821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17822 | /* end confdefs.h. */ | |
17823 | ||
17824 | _ACEOF | |
17825 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17826 | cy_good=1 | |
17827 | else | |
17828 | cy_good=0 | |
17829 | fi | |
17830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17831 | ||
17832 | CXXFLAGS=$cy_save | |
17833 | if test "x$cy_good" = x1; then : | |
17834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17835 | $as_echo "yes" >&6; } | |
17836 | ||
babf7fe8 | 17837 | for element in -Wno-parentheses; do |
1504c9b8 | 17838 | haveit= |
c10a2228 | 17839 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
17840 | |
17841 | acl_save_prefix="$prefix" | |
17842 | prefix="$acl_final_prefix" | |
17843 | acl_save_exec_prefix="$exec_prefix" | |
17844 | exec_prefix="$acl_final_exec_prefix" | |
17845 | eval x=\"$x\" | |
17846 | exec_prefix="$acl_save_exec_prefix" | |
17847 | prefix="$acl_save_prefix" | |
17848 | ||
17849 | if test "X$x" = "X$element"; then | |
17850 | haveit=yes | |
17851 | break | |
17852 | fi | |
17853 | done | |
17854 | if test -z "$haveit"; then | |
c10a2228 | 17855 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
17856 | fi |
17857 | done | |
17858 | ||
17859 | ||
c10a2228 JF |
17860 | else |
17861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17862 | $as_echo "no" >&6; } | |
17863 | fi | |
17864 | ||
17865 | ac_ext=cpp | |
17866 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17870 | ||
17871 | ||
17872 | ||
17873 | ac_ext=mm | |
17874 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17875 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17876 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17877 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17878 | ||
babf7fe8 JF |
17879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
17880 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17881 | |
17882 | cy_save=$OBJCXXFLAGS | |
17883 | ||
babf7fe8 | 17884 | for element in -Wno-parentheses; do |
1504c9b8 | 17885 | haveit= |
c10a2228 | 17886 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17887 | |
17888 | acl_save_prefix="$prefix" | |
17889 | prefix="$acl_final_prefix" | |
17890 | acl_save_exec_prefix="$exec_prefix" | |
17891 | exec_prefix="$acl_final_exec_prefix" | |
17892 | eval x=\"$x\" | |
17893 | exec_prefix="$acl_save_exec_prefix" | |
17894 | prefix="$acl_save_prefix" | |
17895 | ||
17896 | if test "X$x" = "X$element"; then | |
17897 | haveit=yes | |
17898 | break | |
17899 | fi | |
17900 | done | |
17901 | if test -z "$haveit"; then | |
c10a2228 | 17902 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17903 | fi |
17904 | done | |
17905 | ||
17906 | ||
c10a2228 JF |
17907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17908 | /* end confdefs.h. */ | |
17909 | ||
17910 | _ACEOF | |
17911 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17912 | cy_good=1 | |
17913 | else | |
17914 | cy_good=0 | |
17915 | fi | |
17916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17917 | ||
17918 | OBJCXXFLAGS=$cy_save | |
17919 | if test "x$cy_good" = x1; then : | |
17920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17921 | $as_echo "yes" >&6; } | |
17922 | ||
babf7fe8 | 17923 | for element in -Wno-parentheses; do |
1504c9b8 | 17924 | haveit= |
c10a2228 | 17925 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17926 | |
17927 | acl_save_prefix="$prefix" | |
17928 | prefix="$acl_final_prefix" | |
17929 | acl_save_exec_prefix="$exec_prefix" | |
17930 | exec_prefix="$acl_final_exec_prefix" | |
17931 | eval x=\"$x\" | |
17932 | exec_prefix="$acl_save_exec_prefix" | |
17933 | prefix="$acl_save_prefix" | |
17934 | ||
17935 | if test "X$x" = "X$element"; then | |
17936 | haveit=yes | |
17937 | break | |
17938 | fi | |
17939 | done | |
17940 | if test -z "$haveit"; then | |
c10a2228 | 17941 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17942 | fi |
17943 | done | |
17944 | ||
17945 | ||
66170b30 JF |
17946 | else |
17947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17948 | $as_echo "no" >&6; } | |
1504c9b8 | 17949 | fi |
1504c9b8 | 17950 | |
c10a2228 JF |
17951 | ac_ext=cpp |
17952 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17953 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17954 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17955 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17956 | ||
17957 | ||
1504c9b8 | 17958 | |
1504c9b8 | 17959 | |
1504c9b8 | 17960 | |
babf7fe8 JF |
17961 | ac_ext=c |
17962 | ac_cpp='$CPP $CPPFLAGS' | |
17963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 17966 | |
babf7fe8 JF |
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
17968 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
17969 | ||
17970 | cy_save=$CFLAGS | |
17971 | ||
17972 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 17973 | haveit= |
babf7fe8 | 17974 | for x in $CFLAGS; do |
1504c9b8 DWT |
17975 | |
17976 | acl_save_prefix="$prefix" | |
17977 | prefix="$acl_final_prefix" | |
17978 | acl_save_exec_prefix="$exec_prefix" | |
17979 | exec_prefix="$acl_final_exec_prefix" | |
17980 | eval x=\"$x\" | |
17981 | exec_prefix="$acl_save_exec_prefix" | |
17982 | prefix="$acl_save_prefix" | |
17983 | ||
17984 | if test "X$x" = "X$element"; then | |
17985 | haveit=yes | |
17986 | break | |
17987 | fi | |
17988 | done | |
17989 | if test -z "$haveit"; then | |
babf7fe8 | 17990 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
17991 | fi |
17992 | done | |
17993 | ||
66170b30 JF |
17994 | |
17995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17996 | /* end confdefs.h. */ |
17997 | ||
a243b558 | 17998 | _ACEOF |
babf7fe8 | 17999 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
18000 | cy_good=1 |
18001 | else | |
18002 | cy_good=0 | |
18003 | fi | |
babf7fe8 | 18004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 18005 | |
babf7fe8 | 18006 | CFLAGS=$cy_save |
a243b558 JF |
18007 | if test "x$cy_good" = x1; then : |
18008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18009 | $as_echo "yes" >&6; } | |
66170b30 | 18010 | |
babf7fe8 | 18011 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 18012 | haveit= |
babf7fe8 | 18013 | for x in $CFLAGS; do |
1504c9b8 DWT |
18014 | |
18015 | acl_save_prefix="$prefix" | |
18016 | prefix="$acl_final_prefix" | |
18017 | acl_save_exec_prefix="$exec_prefix" | |
18018 | exec_prefix="$acl_final_exec_prefix" | |
18019 | eval x=\"$x\" | |
18020 | exec_prefix="$acl_save_exec_prefix" | |
18021 | prefix="$acl_save_prefix" | |
18022 | ||
18023 | if test "X$x" = "X$element"; then | |
18024 | haveit=yes | |
18025 | break | |
18026 | fi | |
18027 | done | |
18028 | if test -z "$haveit"; then | |
babf7fe8 | 18029 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18030 | fi |
18031 | done | |
18032 | ||
18033 | ||
18034 | else | |
66170b30 JF |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18036 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
18037 | fi |
18038 | ||
babf7fe8 JF |
18039 | ac_ext=cpp |
18040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 18044 | |
9c60689e | 18045 | |
632b71ea | 18046 | |
babf7fe8 JF |
18047 | ac_ext=cpp |
18048 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18049 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18050 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18051 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 18052 | |
babf7fe8 JF |
18053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
18054 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 18055 | |
babf7fe8 | 18056 | cy_save=$CXXFLAGS |
9c60689e | 18057 | |
babf7fe8 JF |
18058 | for element in -Wno-unneeded-internal-declaration; do |
18059 | haveit= | |
18060 | for x in $CXXFLAGS; do | |
9c60689e | 18061 | |
babf7fe8 JF |
18062 | acl_save_prefix="$prefix" |
18063 | prefix="$acl_final_prefix" | |
18064 | acl_save_exec_prefix="$exec_prefix" | |
18065 | exec_prefix="$acl_final_exec_prefix" | |
18066 | eval x=\"$x\" | |
18067 | exec_prefix="$acl_save_exec_prefix" | |
18068 | prefix="$acl_save_prefix" | |
66170b30 | 18069 | |
babf7fe8 JF |
18070 | if test "X$x" = "X$element"; then |
18071 | haveit=yes | |
18072 | break | |
18073 | fi | |
18074 | done | |
18075 | if test -z "$haveit"; then | |
18076 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18077 | fi | |
18078 | done | |
7eda51e0 | 18079 | |
7eda51e0 | 18080 | |
babf7fe8 JF |
18081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18082 | /* end confdefs.h. */ | |
7eda51e0 | 18083 | |
7eda51e0 | 18084 | _ACEOF |
babf7fe8 JF |
18085 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18086 | cy_good=1 | |
9c60689e | 18087 | else |
babf7fe8 | 18088 | cy_good=0 |
9c60689e | 18089 | fi |
babf7fe8 | 18090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 18091 | |
babf7fe8 JF |
18092 | CXXFLAGS=$cy_save |
18093 | if test "x$cy_good" = x1; then : | |
18094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18095 | $as_echo "yes" >&6; } | |
7eda51e0 | 18096 | |
babf7fe8 | 18097 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 18098 | haveit= |
babf7fe8 | 18099 | for x in $CXXFLAGS; do |
9c60689e | 18100 | |
7eda51e0 JF |
18101 | acl_save_prefix="$prefix" |
18102 | prefix="$acl_final_prefix" | |
18103 | acl_save_exec_prefix="$exec_prefix" | |
18104 | exec_prefix="$acl_final_exec_prefix" | |
18105 | eval x=\"$x\" | |
18106 | exec_prefix="$acl_save_exec_prefix" | |
18107 | prefix="$acl_save_prefix" | |
9c60689e | 18108 | |
7eda51e0 JF |
18109 | if test "X$x" = "X$element"; then |
18110 | haveit=yes | |
18111 | break | |
18112 | fi | |
18113 | done | |
18114 | if test -z "$haveit"; then | |
babf7fe8 | 18115 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
18116 | fi |
18117 | done | |
9c60689e | 18118 | |
9c60689e | 18119 | |
5053a6d1 | 18120 | else |
babf7fe8 JF |
18121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18122 | $as_echo "no" >&6; } | |
632b71ea DWT |
18123 | fi |
18124 | ||
babf7fe8 JF |
18125 | ac_ext=cpp |
18126 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18127 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18128 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18129 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
18130 | |
18131 | ||
5053a6d1 | 18132 | |
babf7fe8 JF |
18133 | ac_ext=mm |
18134 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18135 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18136 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18137 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 18138 | |
babf7fe8 JF |
18139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
18140 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 18141 | |
babf7fe8 | 18142 | cy_save=$OBJCXXFLAGS |
632b71ea | 18143 | |
babf7fe8 | 18144 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 18145 | haveit= |
babf7fe8 | 18146 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
18147 | |
18148 | acl_save_prefix="$prefix" | |
18149 | prefix="$acl_final_prefix" | |
18150 | acl_save_exec_prefix="$exec_prefix" | |
18151 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 18152 | eval x=\"$x\" |
632b71ea DWT |
18153 | exec_prefix="$acl_save_exec_prefix" |
18154 | prefix="$acl_save_prefix" | |
18155 | ||
5053a6d1 DWT |
18156 | if test "X$x" = "X$element"; then |
18157 | haveit=yes | |
18158 | break | |
18159 | fi | |
18160 | done | |
18161 | if test -z "$haveit"; then | |
babf7fe8 | 18162 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
18163 | fi |
18164 | done | |
18165 | ||
66170b30 | 18166 | |
babf7fe8 JF |
18167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18168 | /* end confdefs.h. */ | |
18169 | ||
18170 | _ACEOF | |
18171 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18172 | cy_good=1 | |
18173 | else | |
18174 | cy_good=0 | |
18175 | fi | |
18176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18177 | ||
18178 | OBJCXXFLAGS=$cy_save | |
18179 | if test "x$cy_good" = x1; then : | |
18180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18181 | $as_echo "yes" >&6; } | |
18182 | ||
18183 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 18184 | haveit= |
babf7fe8 | 18185 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
18186 | |
18187 | acl_save_prefix="$prefix" | |
18188 | prefix="$acl_final_prefix" | |
18189 | acl_save_exec_prefix="$exec_prefix" | |
18190 | exec_prefix="$acl_final_exec_prefix" | |
18191 | eval x=\"$x\" | |
18192 | exec_prefix="$acl_save_exec_prefix" | |
18193 | prefix="$acl_save_prefix" | |
18194 | ||
18195 | if test "X$x" = "X$element"; then | |
18196 | haveit=yes | |
18197 | break | |
18198 | fi | |
18199 | done | |
18200 | if test -z "$haveit"; then | |
babf7fe8 | 18201 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
18202 | fi |
18203 | done | |
66170b30 JF |
18204 | |
18205 | ||
babf7fe8 JF |
18206 | else |
18207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18208 | $as_echo "no" >&6; } | |
5053a6d1 | 18209 | fi |
7eda51e0 | 18210 | |
babf7fe8 JF |
18211 | ac_ext=cpp |
18212 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18213 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18214 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18215 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 18216 | |
5053a6d1 DWT |
18217 | |
18218 | ||
5053a6d1 | 18219 | |
babf7fe8 JF |
18220 | for cy_arch in ppc ppc64 i386 x86_64 armv6; do |
18221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5 | |
18222 | $as_echo_n "checking for -arch $cy_arch... " >&6; } | |
5053a6d1 | 18223 | |
babf7fe8 JF |
18224 | cy_save=$CXXFLAGS |
18225 | ||
18226 | for element in "-arch $cy_arch"; do | |
18227 | haveit= | |
18228 | for x in $CXXFLAGS; do | |
18229 | ||
18230 | acl_save_prefix="$prefix" | |
18231 | prefix="$acl_final_prefix" | |
18232 | acl_save_exec_prefix="$exec_prefix" | |
18233 | exec_prefix="$acl_final_exec_prefix" | |
18234 | eval x=\"$x\" | |
18235 | exec_prefix="$acl_save_exec_prefix" | |
18236 | prefix="$acl_save_prefix" | |
18237 | ||
18238 | if test "X$x" = "X$element"; then | |
18239 | haveit=yes | |
18240 | break | |
18241 | fi | |
18242 | done | |
18243 | if test -z "$haveit"; then | |
18244 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18245 | fi | |
18246 | done | |
18247 | ||
18248 | ||
18249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18250 | /* end confdefs.h. */ | |
5053a6d1 DWT |
18251 | |
18252 | int | |
18253 | main () | |
18254 | { | |
66170b30 | 18255 | |
5053a6d1 DWT |
18256 | ; |
18257 | return 0; | |
18258 | } | |
18259 | _ACEOF | |
18260 | if ac_fn_cxx_try_link "$LINENO"; then : | |
babf7fe8 | 18261 | cy_good=1 |
5053a6d1 | 18262 | else |
babf7fe8 | 18263 | cy_good=0 |
5053a6d1 DWT |
18264 | fi |
18265 | rm -f core conftest.err conftest.$ac_objext \ | |
18266 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 18267 | |
babf7fe8 JF |
18268 | CXXFLAGS=$cy_save |
18269 | if test "x$cy_good" = x1; then : | |
18270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18271 | $as_echo "yes" >&6; } | |
5053a6d1 | 18272 | |
babf7fe8 | 18273 | for element in "-arch $cy_arch"; do |
5053a6d1 | 18274 | haveit= |
babf7fe8 | 18275 | for x in $CY_ARCH; do |
632b71ea DWT |
18276 | |
18277 | acl_save_prefix="$prefix" | |
18278 | prefix="$acl_final_prefix" | |
18279 | acl_save_exec_prefix="$exec_prefix" | |
18280 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
18281 | eval x=\"$x\" |
18282 | exec_prefix="$acl_save_exec_prefix" | |
18283 | prefix="$acl_save_prefix" | |
632b71ea | 18284 | |
5053a6d1 DWT |
18285 | if test "X$x" = "X$element"; then |
18286 | haveit=yes | |
18287 | break | |
18288 | fi | |
18289 | done | |
18290 | if test -z "$haveit"; then | |
babf7fe8 | 18291 | CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element" |
5053a6d1 DWT |
18292 | fi |
18293 | done | |
18294 | ||
66170b30 | 18295 | |
5053a6d1 | 18296 | else |
babf7fe8 JF |
18297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18298 | $as_echo "no" >&6; } | |
18299 | fi | |
5053a6d1 | 18300 | |
babf7fe8 | 18301 | done |
66170b30 | 18302 | |
babf7fe8 JF |
18303 | # Extract the first word of "xcodebuild", so it can be a program name with args. |
18304 | set dummy xcodebuild; ac_word=$2 | |
18305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18306 | $as_echo_n "checking for $ac_word... " >&6; } | |
18307 | if ${ac_cv_path_XCODEBUILD+:} false; then : | |
18308 | $as_echo_n "(cached) " >&6 | |
18309 | else | |
18310 | case $XCODEBUILD in | |
18311 | [\\/]* | ?:[\\/]*) | |
18312 | ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. | |
18313 | ;; | |
18314 | *) | |
18315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18316 | for as_dir in $PATH | |
18317 | do | |
18318 | IFS=$as_save_IFS | |
18319 | test -z "$as_dir" && as_dir=. | |
18320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18322 | ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" | |
18323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18324 | break 2 | |
18325 | fi | |
18326 | done | |
18327 | done | |
18328 | IFS=$as_save_IFS | |
18329 | ||
18330 | ;; | |
18331 | esac | |
18332 | fi | |
18333 | XCODEBUILD=$ac_cv_path_XCODEBUILD | |
18334 | if test -n "$XCODEBUILD"; then | |
18335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 | |
18336 | $as_echo "$XCODEBUILD" >&6; } | |
18337 | else | |
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18339 | $as_echo "no" >&6; } | |
18340 | fi | |
18341 | ||
18342 | ||
18343 | ||
18344 | if test "x$XCODEBUILD" != x; then : | |
18345 | ||
1635cb1f JF |
18346 | CY_XCODE_MACOSXSDK=`xcodebuild -sdk macosx -version Path` |
18347 | ||
18348 | CY_XCODE_IOSSIMSDK=`xcodebuild -sdk iphonesimulator -version Path` | |
babf7fe8 JF |
18349 | |
18350 | ||
18351 | fi | |
18352 | ||
1635cb1f | 18353 | if test "x$CY_XCODE_IOSSIMSDK" != x; then |
babf7fe8 JF |
18354 | CY_IOS_SIMULATOR_TRUE= |
18355 | CY_IOS_SIMULATOR_FALSE='#' | |
18356 | else | |
18357 | CY_IOS_SIMULATOR_TRUE='#' | |
18358 | CY_IOS_SIMULATOR_FALSE= | |
18359 | fi | |
18360 | ||
18361 | ||
18362 | ||
18363 | ||
18364 | ||
18365 | ||
18366 | ||
18367 | ||
18368 | # Check whether --enable-javascript was given. | |
18369 | if test "${enable_javascript+set}" = set; then : | |
18370 | enableval=$enable_javascript; | |
18371 | case $enableval in #( | |
18372 | yes) : | |
18373 | ||
18374 | ||
18375 | ||
18376 | ||
18377 | cy_save=$LIBS | |
18378 | LIBS= | |
18379 | ||
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18381 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18382 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18383 | $as_echo_n "(cached) " >&6 | |
18384 | else | |
18385 | ||
18386 | ac_check_framework_save_LIBS=$LIBS | |
18387 | LIBS="-framework JavaScriptCore $LIBS" | |
18388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18389 | /* end confdefs.h. */ | |
18390 | ||
18391 | #include <JavaScriptCore/JSBase.h> | |
18392 | ||
18393 | int | |
18394 | main () | |
18395 | { | |
18396 | ||
18397 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18398 | ||
18399 | ; | |
18400 | return 0; | |
18401 | } | |
18402 | _ACEOF | |
18403 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18404 | ||
18405 | ac_cv_framework_JavaScriptCore=yes | |
18406 | ||
18407 | else | |
18408 | ac_cv_framework_JavaScriptCore=no | |
18409 | fi | |
18410 | rm -f core conftest.err conftest.$ac_objext \ | |
18411 | conftest$ac_exeext conftest.$ac_ext | |
18412 | LIBS=$ac_check_framework_save_LIBS | |
18413 | ||
18414 | fi | |
18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18416 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18417 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18418 | ||
18419 | ||
18420 | for element in "-framework JavaScriptCore"; do | |
18421 | haveit= | |
18422 | for x in $LIBS; do | |
18423 | ||
18424 | acl_save_prefix="$prefix" | |
18425 | prefix="$acl_final_prefix" | |
18426 | acl_save_exec_prefix="$exec_prefix" | |
18427 | exec_prefix="$acl_final_exec_prefix" | |
18428 | eval x=\"$x\" | |
18429 | exec_prefix="$acl_save_exec_prefix" | |
18430 | prefix="$acl_save_prefix" | |
18431 | ||
18432 | if test "X$x" = "X$element"; then | |
18433 | haveit=yes | |
18434 | break | |
18435 | fi | |
18436 | done | |
18437 | if test -z "$haveit"; then | |
18438 | LIBS="${LIBS}${LIBS:+ }$element" | |
18439 | fi | |
18440 | done | |
18441 | ||
18442 | ||
18443 | CY_EXECUTE=1 | |
18444 | ||
18445 | ||
18446 | ||
18447 | else | |
18448 | ||
18449 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18450 | ||
18451 | pkg_failed=no | |
18452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 18453 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 18454 | |
7eda51e0 JF |
18455 | if test -n "$WEBKIT_CFLAGS"; then |
18456 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18457 | elif test -n "$PKG_CONFIG"; then | |
18458 | if test -n "$PKG_CONFIG" && \ | |
18459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18460 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18461 | ac_status=$? | |
18462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18463 | test $ac_status = 0; }; then | |
18464 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
18465 | else | |
18466 | pkg_failed=yes | |
18467 | fi | |
18468 | else | |
18469 | pkg_failed=untried | |
18470 | fi | |
18471 | if test -n "$WEBKIT_LIBS"; then | |
18472 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18473 | elif test -n "$PKG_CONFIG"; then | |
18474 | if test -n "$PKG_CONFIG" && \ | |
18475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18476 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18477 | ac_status=$? | |
18478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18479 | test $ac_status = 0; }; then | |
18480 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
18481 | else | |
18482 | pkg_failed=yes | |
18483 | fi | |
18484 | else | |
18485 | pkg_failed=untried | |
18486 | fi | |
632b71ea | 18487 | |
7eda51e0 JF |
18488 | |
18489 | ||
18490 | if test $pkg_failed = yes; then | |
18491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18492 | $as_echo "no" >&6; } | |
18493 | ||
18494 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18495 | _pkg_short_errors_supported=yes | |
18496 | else | |
18497 | _pkg_short_errors_supported=no | |
18498 | fi | |
18499 | if test $_pkg_short_errors_supported = yes; then | |
18500 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` | |
18501 | else | |
18502 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` | |
18503 | fi | |
18504 | # Put the nasty error message in config.log where it belongs | |
18505 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18506 | ||
18507 | : | |
18508 | elif test $pkg_failed = untried; then | |
18509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18510 | $as_echo "no" >&6; } | |
18511 | : | |
18512 | else | |
18513 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18514 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18516 | $as_echo "yes" >&6; } | |
18517 | ||
18518 | CY_EXECUTE=1 | |
18519 | ||
18520 | ||
7eda51e0 JF |
18521 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
18522 | haveit= | |
d70419f1 | 18523 | for x in $CPPFLAGS; do |
5053a6d1 | 18524 | |
7eda51e0 JF |
18525 | acl_save_prefix="$prefix" |
18526 | prefix="$acl_final_prefix" | |
18527 | acl_save_exec_prefix="$exec_prefix" | |
18528 | exec_prefix="$acl_final_exec_prefix" | |
18529 | eval x=\"$x\" | |
18530 | exec_prefix="$acl_save_exec_prefix" | |
18531 | prefix="$acl_save_prefix" | |
5053a6d1 | 18532 | |
7eda51e0 JF |
18533 | if test "X$x" = "X$element"; then |
18534 | haveit=yes | |
18535 | break | |
18536 | fi | |
18537 | done | |
18538 | if test -z "$haveit"; then | |
d70419f1 | 18539 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
18540 | fi |
18541 | done | |
5053a6d1 | 18542 | |
5053a6d1 | 18543 | |
7eda51e0 | 18544 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 18545 | haveit= |
5053a6d1 | 18546 | for x in $LIBS; do |
9c60689e | 18547 | |
632b71ea DWT |
18548 | acl_save_prefix="$prefix" |
18549 | prefix="$acl_final_prefix" | |
18550 | acl_save_exec_prefix="$exec_prefix" | |
18551 | exec_prefix="$acl_final_exec_prefix" | |
18552 | eval x=\"$x\" | |
18553 | exec_prefix="$acl_save_exec_prefix" | |
18554 | prefix="$acl_save_prefix" | |
18555 | ||
18556 | if test "X$x" = "X$element"; then | |
18557 | haveit=yes | |
18558 | break | |
18559 | fi | |
18560 | done | |
18561 | if test -z "$haveit"; then | |
5053a6d1 | 18562 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
18563 | fi |
18564 | done | |
b128dfee | 18565 | |
66170b30 | 18566 | |
7eda51e0 JF |
18567 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18568 | done | |
5053a6d1 DWT |
18569 | |
18570 | fi | |
babf7fe8 JF |
18571 | LTJAVASCRIPTCORE=$LIBS |
18572 | LIBS=$cy_save | |
18573 | ||
18574 | ||
7eda51e0 | 18575 | ;; #( |
babf7fe8 | 18576 | no) : |
7eda51e0 | 18577 | |
babf7fe8 JF |
18578 | CY_EXECUTE=0 |
18579 | ;; #( | |
18580 | JavaScriptCore) : | |
c823f118 | 18581 | |
5053a6d1 DWT |
18582 | |
18583 | ||
babf7fe8 JF |
18584 | cy_save=$LIBS |
18585 | LIBS= | |
18586 | ||
5053a6d1 DWT |
18587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18588 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18589 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
18590 | $as_echo_n "(cached) " >&6 |
18591 | else | |
18592 | ||
5053a6d1 DWT |
18593 | ac_check_framework_save_LIBS=$LIBS |
18594 | LIBS="-framework JavaScriptCore $LIBS" | |
18595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 18596 | /* end confdefs.h. */ |
5053a6d1 | 18597 | |
7eda51e0 | 18598 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 18599 | |
632b71ea DWT |
18600 | int |
18601 | main () | |
18602 | { | |
66170b30 | 18603 | |
7eda51e0 | 18604 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 18605 | |
632b71ea DWT |
18606 | ; |
18607 | return 0; | |
18608 | } | |
18609 | _ACEOF | |
5053a6d1 DWT |
18610 | if ac_fn_cxx_try_link "$LINENO"; then : |
18611 | ||
18612 | ac_cv_framework_JavaScriptCore=yes | |
18613 | ||
18614 | else | |
18615 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
18616 | fi |
18617 | rm -f core conftest.err conftest.$ac_objext \ | |
18618 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 18619 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 18620 | |
c823f118 | 18621 | fi |
5053a6d1 DWT |
18622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
18623 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18624 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
18625 | |
18626 | ||
7eda51e0 | 18627 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
18628 | haveit= |
18629 | for x in $LIBS; do | |
18630 | ||
18631 | acl_save_prefix="$prefix" | |
18632 | prefix="$acl_final_prefix" | |
18633 | acl_save_exec_prefix="$exec_prefix" | |
18634 | exec_prefix="$acl_final_exec_prefix" | |
18635 | eval x=\"$x\" | |
18636 | exec_prefix="$acl_save_exec_prefix" | |
18637 | prefix="$acl_save_prefix" | |
18638 | ||
18639 | if test "X$x" = "X$element"; then | |
18640 | haveit=yes | |
18641 | break | |
18642 | fi | |
18643 | done | |
18644 | if test -z "$haveit"; then | |
18645 | LIBS="${LIBS}${LIBS:+ }$element" | |
18646 | fi | |
18647 | done | |
c823f118 | 18648 | |
66170b30 | 18649 | |
7eda51e0 JF |
18650 | CY_EXECUTE=1 |
18651 | ||
18652 | ||
18653 | ||
18654 | else | |
18655 | ||
18656 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18657 | ||
18658 | pkg_failed=no | |
18659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18660 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18661 | ||
18662 | if test -n "$WEBKIT_CFLAGS"; then | |
18663 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18664 | elif test -n "$PKG_CONFIG"; then | |
18665 | if test -n "$PKG_CONFIG" && \ | |
18666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18667 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18668 | ac_status=$? | |
18669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18670 | test $ac_status = 0; }; then | |
18671 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
18672 | else | |
18673 | pkg_failed=yes | |
18674 | fi | |
18675 | else | |
18676 | pkg_failed=untried | |
18677 | fi | |
18678 | if test -n "$WEBKIT_LIBS"; then | |
18679 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18680 | elif test -n "$PKG_CONFIG"; then | |
18681 | if test -n "$PKG_CONFIG" && \ | |
18682 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18683 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18684 | ac_status=$? | |
18685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18686 | test $ac_status = 0; }; then | |
18687 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
18688 | else | |
18689 | pkg_failed=yes | |
18690 | fi | |
18691 | else | |
18692 | pkg_failed=untried | |
18693 | fi | |
18694 | ||
66170b30 JF |
18695 | |
18696 | ||
7eda51e0 JF |
18697 | if test $pkg_failed = yes; then |
18698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18699 | $as_echo "no" >&6; } | |
b128dfee | 18700 | |
7eda51e0 JF |
18701 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
18702 | _pkg_short_errors_supported=yes | |
18703 | else | |
18704 | _pkg_short_errors_supported=no | |
632b71ea | 18705 | fi |
7eda51e0 JF |
18706 | if test $_pkg_short_errors_supported = yes; then |
18707 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` | |
18708 | else | |
18709 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` | |
18710 | fi | |
18711 | # Put the nasty error message in config.log where it belongs | |
18712 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 18713 | |
7eda51e0 JF |
18714 | : |
18715 | elif test $pkg_failed = untried; then | |
18716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18717 | $as_echo "no" >&6; } | |
18718 | : | |
5053a6d1 DWT |
18719 | else |
18720 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18721 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18723 | $as_echo "yes" >&6; } | |
c823f118 | 18724 | |
7eda51e0 JF |
18725 | CY_EXECUTE=1 |
18726 | ||
66170b30 | 18727 | |
7eda51e0 | 18728 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 18729 | haveit= |
d70419f1 | 18730 | for x in $CPPFLAGS; do |
c823f118 | 18731 | |
5053a6d1 DWT |
18732 | acl_save_prefix="$prefix" |
18733 | prefix="$acl_final_prefix" | |
18734 | acl_save_exec_prefix="$exec_prefix" | |
18735 | exec_prefix="$acl_final_exec_prefix" | |
18736 | eval x=\"$x\" | |
18737 | exec_prefix="$acl_save_exec_prefix" | |
18738 | prefix="$acl_save_prefix" | |
c823f118 | 18739 | |
5053a6d1 DWT |
18740 | if test "X$x" = "X$element"; then |
18741 | haveit=yes | |
18742 | break | |
18743 | fi | |
18744 | done | |
18745 | if test -z "$haveit"; then | |
d70419f1 | 18746 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
18747 | fi |
18748 | done | |
c823f118 | 18749 | |
b66977f1 | 18750 | |
7eda51e0 | 18751 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
18752 | haveit= |
18753 | for x in $LIBS; do | |
18754 | ||
18755 | acl_save_prefix="$prefix" | |
18756 | prefix="$acl_final_prefix" | |
18757 | acl_save_exec_prefix="$exec_prefix" | |
18758 | exec_prefix="$acl_final_exec_prefix" | |
18759 | eval x=\"$x\" | |
18760 | exec_prefix="$acl_save_exec_prefix" | |
18761 | prefix="$acl_save_prefix" | |
18762 | ||
18763 | if test "X$x" = "X$element"; then | |
18764 | haveit=yes | |
18765 | break | |
18766 | fi | |
18767 | done | |
18768 | if test -z "$haveit"; then | |
18769 | LIBS="${LIBS}${LIBS:+ }$element" | |
18770 | fi | |
18771 | done | |
18772 | ||
18773 | ||
7eda51e0 JF |
18774 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18775 | done | |
18776 | ||
5053a6d1 | 18777 | fi |
babf7fe8 JF |
18778 | LTJAVASCRIPTCORE=$LIBS |
18779 | LIBS=$cy_save | |
5053a6d1 | 18780 | |
b66977f1 | 18781 | |
babf7fe8 JF |
18782 | ;; #( |
18783 | *) : | |
18784 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
18785 | esac | |
b66977f1 | 18786 | |
babf7fe8 | 18787 | else |
b66977f1 | 18788 | |
7eda51e0 | 18789 | |
7eda51e0 | 18790 | |
babf7fe8 JF |
18791 | cy_save=$LIBS |
18792 | LIBS= | |
7eda51e0 | 18793 | |
babf7fe8 JF |
18794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18795 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18796 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18797 | $as_echo_n "(cached) " >&6 | |
18798 | else | |
7eda51e0 | 18799 | |
babf7fe8 JF |
18800 | ac_check_framework_save_LIBS=$LIBS |
18801 | LIBS="-framework JavaScriptCore $LIBS" | |
18802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18803 | /* end confdefs.h. */ | |
7eda51e0 | 18804 | |
babf7fe8 | 18805 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 18806 | |
babf7fe8 JF |
18807 | int |
18808 | main () | |
18809 | { | |
7eda51e0 | 18810 | |
babf7fe8 | 18811 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 18812 | |
babf7fe8 JF |
18813 | ; |
18814 | return 0; | |
18815 | } | |
18816 | _ACEOF | |
18817 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 18818 | |
babf7fe8 | 18819 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 18820 | |
b66977f1 | 18821 | else |
babf7fe8 JF |
18822 | ac_cv_framework_JavaScriptCore=no |
18823 | fi | |
18824 | rm -f core conftest.err conftest.$ac_objext \ | |
18825 | conftest$ac_exeext conftest.$ac_ext | |
18826 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 18827 | |
babf7fe8 JF |
18828 | fi |
18829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18830 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18831 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 18832 | |
7eda51e0 | 18833 | |
babf7fe8 JF |
18834 | for element in "-framework JavaScriptCore"; do |
18835 | haveit= | |
18836 | for x in $LIBS; do | |
18837 | ||
18838 | acl_save_prefix="$prefix" | |
18839 | prefix="$acl_final_prefix" | |
18840 | acl_save_exec_prefix="$exec_prefix" | |
18841 | exec_prefix="$acl_final_exec_prefix" | |
18842 | eval x=\"$x\" | |
18843 | exec_prefix="$acl_save_exec_prefix" | |
18844 | prefix="$acl_save_prefix" | |
18845 | ||
18846 | if test "X$x" = "X$element"; then | |
18847 | haveit=yes | |
18848 | break | |
18849 | fi | |
18850 | done | |
18851 | if test -z "$haveit"; then | |
18852 | LIBS="${LIBS}${LIBS:+ }$element" | |
18853 | fi | |
18854 | done | |
18855 | ||
18856 | ||
18857 | CY_EXECUTE=1 | |
18858 | ||
18859 | ||
18860 | ||
18861 | else | |
18862 | ||
18863 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18864 | ||
18865 | pkg_failed=no | |
18866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18867 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18868 | ||
18869 | if test -n "$WEBKIT_CFLAGS"; then | |
18870 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18871 | elif test -n "$PKG_CONFIG"; then | |
18872 | if test -n "$PKG_CONFIG" && \ | |
18873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18874 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18875 | ac_status=$? | |
18876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18877 | test $ac_status = 0; }; then | |
18878 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
18879 | else | |
18880 | pkg_failed=yes | |
18881 | fi | |
18882 | else | |
18883 | pkg_failed=untried | |
18884 | fi | |
18885 | if test -n "$WEBKIT_LIBS"; then | |
18886 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18887 | elif test -n "$PKG_CONFIG"; then | |
18888 | if test -n "$PKG_CONFIG" && \ | |
18889 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18890 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18891 | ac_status=$? | |
18892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18893 | test $ac_status = 0; }; then | |
18894 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
18895 | else | |
18896 | pkg_failed=yes | |
18897 | fi | |
18898 | else | |
18899 | pkg_failed=untried | |
18900 | fi | |
18901 | ||
18902 | ||
18903 | ||
18904 | if test $pkg_failed = yes; then | |
18905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18906 | $as_echo "no" >&6; } | |
18907 | ||
18908 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18909 | _pkg_short_errors_supported=yes | |
18910 | else | |
18911 | _pkg_short_errors_supported=no | |
18912 | fi | |
18913 | if test $_pkg_short_errors_supported = yes; then | |
18914 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` | |
18915 | else | |
18916 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` | |
18917 | fi | |
18918 | # Put the nasty error message in config.log where it belongs | |
18919 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18920 | ||
18921 | : | |
18922 | elif test $pkg_failed = untried; then | |
18923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18924 | $as_echo "no" >&6; } | |
18925 | : | |
18926 | else | |
18927 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18928 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18930 | $as_echo "yes" >&6; } | |
18931 | ||
18932 | CY_EXECUTE=1 | |
18933 | ||
18934 | ||
18935 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
18936 | haveit= | |
18937 | for x in $CPPFLAGS; do | |
18938 | ||
18939 | acl_save_prefix="$prefix" | |
18940 | prefix="$acl_final_prefix" | |
18941 | acl_save_exec_prefix="$exec_prefix" | |
18942 | exec_prefix="$acl_final_exec_prefix" | |
18943 | eval x=\"$x\" | |
18944 | exec_prefix="$acl_save_exec_prefix" | |
18945 | prefix="$acl_save_prefix" | |
18946 | ||
18947 | if test "X$x" = "X$element"; then | |
18948 | haveit=yes | |
18949 | break | |
18950 | fi | |
18951 | done | |
18952 | if test -z "$haveit"; then | |
18953 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
18954 | fi | |
18955 | done | |
18956 | ||
18957 | ||
18958 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
18959 | haveit= | |
18960 | for x in $LIBS; do | |
18961 | ||
18962 | acl_save_prefix="$prefix" | |
18963 | prefix="$acl_final_prefix" | |
18964 | acl_save_exec_prefix="$exec_prefix" | |
18965 | exec_prefix="$acl_final_exec_prefix" | |
18966 | eval x=\"$x\" | |
18967 | exec_prefix="$acl_save_exec_prefix" | |
18968 | prefix="$acl_save_prefix" | |
18969 | ||
18970 | if test "X$x" = "X$element"; then | |
18971 | haveit=yes | |
18972 | break | |
18973 | fi | |
18974 | done | |
18975 | if test -z "$haveit"; then | |
18976 | LIBS="${LIBS}${LIBS:+ }$element" | |
18977 | fi | |
18978 | done | |
18979 | ||
18980 | ||
18981 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
18982 | done | |
18983 | ||
18984 | fi | |
18985 | LTJAVASCRIPTCORE=$LIBS | |
18986 | LIBS=$cy_save | |
18987 | ||
18988 | ||
18989 | ||
18990 | fi | |
18991 | ||
18992 | ||
18993 | ||
18994 | apr_found="no" | |
18995 | ||
18996 | if test "$target_os" = "os2-emx"; then | |
18997 | # Scripts don't pass test -x on OS/2 | |
18998 | TEST_X="test -f" | |
18999 | else | |
19000 | TEST_X="test -x" | |
19001 | fi | |
19002 | ||
19003 | acceptable_majors="1" | |
19004 | ||
19005 | apr_temp_acceptable_apr_config="" | |
19006 | for apr_temp_major in $acceptable_majors | |
19007 | do | |
19008 | case $apr_temp_major in | |
19009 | 0) | |
19010 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
19011 | ;; | |
19012 | *) | |
19013 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
19014 | ;; | |
19015 | esac | |
19016 | done | |
19017 | ||
19018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
19019 | $as_echo_n "checking for APR... " >&6; } | |
19020 | ||
19021 | # Check whether --with-apr was given. | |
19022 | if test "${with_apr+set}" = set; then : | |
19023 | withval=$with_apr; | |
19024 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
19025 | as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
19026 | fi | |
19027 | ||
19028 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19029 | do | |
19030 | for lookdir in "$withval/bin" "$withval" | |
19031 | do | |
19032 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
19033 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
19034 | ||
19035 | apr_found="yes" | |
19036 | break 2 | |
19037 | fi | |
19038 | done | |
19039 | done | |
19040 | ||
19041 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
19042 | apr_config="$withval" | |
19043 | apr_found="yes" | |
19044 | fi | |
19045 | ||
19046 | if test "$apr_found" != "yes"; then | |
19047 | as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
19048 | fi | |
19049 | ||
19050 | else | |
19051 | ||
19052 | if test -n "1" && test "1" = "1"; then | |
19053 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19054 | do | |
19055 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
19056 | apr_config="$apr_temp_apr_config_file" | |
19057 | ||
19058 | apr_found="yes" | |
19059 | break | |
19060 | else | |
19061 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
19062 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
19063 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
19064 | ||
19065 | apr_found="yes" | |
19066 | break 2 | |
19067 | fi | |
19068 | done | |
19069 | fi | |
19070 | done | |
19071 | fi | |
19072 | if test "$apr_found" = "no" && test -d ""; then | |
19073 | apr_temp_abs_srcdir="`cd && pwd`" | |
19074 | apr_found="reconfig" | |
19075 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
19076 | case $apr_bundled_major in | |
19077 | "") | |
19078 | as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 | |
19079 | ;; | |
19080 | 0) | |
7eda51e0 JF |
19081 | apr_temp_apr_config_file="apr-config" |
19082 | ;; | |
19083 | *) | |
19084 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
19085 | ;; | |
19086 | esac | |
19087 | if test -n ""; then | |
19088 | apr_config="/$apr_temp_apr_config_file" | |
19089 | else | |
19090 | apr_config="/$apr_temp_apr_config_file" | |
19091 | fi | |
19092 | fi | |
19093 | ||
b66977f1 | 19094 | fi |
7eda51e0 JF |
19095 | |
19096 | ||
19097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
19098 | $as_echo "$apr_found" >&6; } | |
19099 | ||
19100 | case $apr_found in #( | |
19101 | yes) : | |
19102 | ||
19103 | ||
19104 | for element in `$apr_config --includes`; do | |
19105 | haveit= | |
19106 | for x in $CPPFLAGS; do | |
19107 | ||
19108 | acl_save_prefix="$prefix" | |
19109 | prefix="$acl_final_prefix" | |
19110 | acl_save_exec_prefix="$exec_prefix" | |
19111 | exec_prefix="$acl_final_exec_prefix" | |
19112 | eval x=\"$x\" | |
19113 | exec_prefix="$acl_save_exec_prefix" | |
19114 | prefix="$acl_save_prefix" | |
19115 | ||
19116 | if test "X$x" = "X$element"; then | |
19117 | haveit=yes | |
19118 | break | |
19119 | fi | |
19120 | done | |
19121 | if test -z "$haveit"; then | |
19122 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19123 | fi | |
19124 | done | |
19125 | ||
19126 | ||
19127 | for element in `$apr_config --link-libtool`; do | |
19128 | haveit= | |
19129 | for x in $LTLIBAPR; do | |
19130 | ||
19131 | acl_save_prefix="$prefix" | |
19132 | prefix="$acl_final_prefix" | |
19133 | acl_save_exec_prefix="$exec_prefix" | |
19134 | exec_prefix="$acl_final_exec_prefix" | |
19135 | eval x=\"$x\" | |
19136 | exec_prefix="$acl_save_exec_prefix" | |
19137 | prefix="$acl_save_prefix" | |
19138 | ||
19139 | if test "X$x" = "X$element"; then | |
19140 | haveit=yes | |
19141 | break | |
19142 | fi | |
19143 | done | |
19144 | if test -z "$haveit"; then | |
19145 | LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element" | |
19146 | fi | |
19147 | done | |
19148 | ||
19149 | ||
19150 | ;; #( | |
19151 | *) : | |
19152 | as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;; | |
19153 | esac | |
19154 | ||
19155 | ||
19156 | ||
19157 | if test "x$CY_EXECUTE" = x1; then | |
19158 | CY_EXECUTE_TRUE= | |
19159 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 19160 | else |
7eda51e0 JF |
19161 | CY_EXECUTE_TRUE='#' |
19162 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
19163 | fi |
19164 | ||
19165 | ||
19166 | ||
7eda51e0 JF |
19167 | case $CY_EXECUTE in #( |
19168 | 1) : | |
19169 | ||
19170 | for ac_header in ffi.h ffi/ffi.h | |
19171 | do : | |
19172 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19173 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19174 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19175 | cat >>confdefs.h <<_ACEOF | |
19176 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19177 | _ACEOF | |
19178 | break | |
b66977f1 | 19179 | fi |
7eda51e0 JF |
19180 | |
19181 | done | |
19182 | ||
296ee9a6 JF |
19183 | |
19184 | ||
19185 | cy_save=$LIBS | |
19186 | LIBS= | |
7eda51e0 | 19187 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 19188 | |
b66977f1 | 19189 | |
296ee9a6 JF |
19190 | LIBFFI_CFLAGS |
19191 | C compiler flags for LIBFFI, overriding pkg-config | |
19192 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
19193 | |
19194 | pkg_failed=no | |
7eda51e0 JF |
19195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19196 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19197 | |
7eda51e0 JF |
19198 | if test -n "$LIBFFI_CFLAGS"; then |
19199 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19200 | elif test -n "$PKG_CONFIG"; then |
19201 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19202 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19203 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19204 | ac_status=$? |
19205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19206 | test $ac_status = 0; }; then | |
7eda51e0 | 19207 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
b66977f1 DWT |
19208 | else |
19209 | pkg_failed=yes | |
19210 | fi | |
12833ad8 JF |
19211 | else |
19212 | pkg_failed=untried | |
b66977f1 | 19213 | fi |
7eda51e0 JF |
19214 | if test -n "$LIBFFI_LIBS"; then |
19215 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19216 | elif test -n "$PKG_CONFIG"; then |
19217 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19218 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19219 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19220 | ac_status=$? |
19221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19222 | test $ac_status = 0; }; then | |
7eda51e0 | 19223 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
b66977f1 DWT |
19224 | else |
19225 | pkg_failed=yes | |
19226 | fi | |
12833ad8 JF |
19227 | else |
19228 | pkg_failed=untried | |
b66977f1 DWT |
19229 | fi |
19230 | ||
19231 | ||
19232 | ||
19233 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19235 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19236 | |
19237 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19238 | _pkg_short_errors_supported=yes | |
19239 | else | |
19240 | _pkg_short_errors_supported=no | |
19241 | fi | |
19242 | if test $_pkg_short_errors_supported = yes; then | |
7eda51e0 | 19243 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
b66977f1 | 19244 | else |
7eda51e0 | 19245 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
b66977f1 DWT |
19246 | fi |
19247 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19248 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19249 | |
7eda51e0 JF |
19250 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19251 | elif test $pkg_failed = untried; then | |
19252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19253 | $as_echo "no" >&6; } | |
19254 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
19255 | else | |
19256 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
19257 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19259 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
19260 | |
19261 | ||
7eda51e0 | 19262 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19263 | haveit= |
d70419f1 | 19264 | for x in $CPPFLAGS; do |
b66977f1 DWT |
19265 | |
19266 | acl_save_prefix="$prefix" | |
19267 | prefix="$acl_final_prefix" | |
19268 | acl_save_exec_prefix="$exec_prefix" | |
19269 | exec_prefix="$acl_final_exec_prefix" | |
19270 | eval x=\"$x\" | |
19271 | exec_prefix="$acl_save_exec_prefix" | |
19272 | prefix="$acl_save_prefix" | |
19273 | ||
19274 | if test "X$x" = "X$element"; then | |
19275 | haveit=yes | |
19276 | break | |
19277 | fi | |
19278 | done | |
19279 | if test -z "$haveit"; then | |
d70419f1 | 19280 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
19281 | fi |
19282 | done | |
19283 | ||
19284 | ||
7eda51e0 | 19285 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
19286 | haveit= |
19287 | for x in $LIBS; do | |
19288 | ||
19289 | acl_save_prefix="$prefix" | |
19290 | prefix="$acl_final_prefix" | |
19291 | acl_save_exec_prefix="$exec_prefix" | |
19292 | exec_prefix="$acl_final_exec_prefix" | |
19293 | eval x=\"$x\" | |
19294 | exec_prefix="$acl_save_exec_prefix" | |
19295 | prefix="$acl_save_prefix" | |
19296 | ||
19297 | if test "X$x" = "X$element"; then | |
19298 | haveit=yes | |
19299 | break | |
19300 | fi | |
19301 | done | |
19302 | if test -z "$haveit"; then | |
19303 | LIBS="${LIBS}${LIBS:+ }$element" | |
19304 | fi | |
19305 | done | |
19306 | ||
19307 | ||
19308 | fi | |
19309 | ||
7eda51e0 JF |
19310 | else |
19311 | ||
19312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
19313 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
19314 | if ${ac_cv_search_ffi_call+:} false; then : | |
19315 | $as_echo_n "(cached) " >&6 | |
19316 | else | |
19317 | ac_func_search_save_LIBS=$LIBS | |
19318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19319 | /* end confdefs.h. */ | |
19320 | ||
19321 | /* Override any GCC internal prototype to avoid an error. | |
19322 | Use char because int might match the return type of a GCC | |
19323 | builtin and then its argument prototype would still apply. */ | |
19324 | #ifdef __cplusplus | |
19325 | extern "C" | |
19326 | #endif | |
19327 | char ffi_call (); | |
19328 | int | |
19329 | main () | |
19330 | { | |
19331 | return ffi_call (); | |
19332 | ; | |
19333 | return 0; | |
19334 | } | |
19335 | _ACEOF | |
19336 | for ac_lib in '' ffi; do | |
19337 | if test -z "$ac_lib"; then | |
19338 | ac_res="none required" | |
19339 | else | |
19340 | ac_res=-l$ac_lib | |
19341 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19342 | fi | |
19343 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19344 | ac_cv_search_ffi_call=$ac_res | |
19345 | fi | |
19346 | rm -f core conftest.err conftest.$ac_objext \ | |
19347 | conftest$ac_exeext | |
19348 | if ${ac_cv_search_ffi_call+:} false; then : | |
19349 | break | |
19350 | fi | |
19351 | done | |
19352 | if ${ac_cv_search_ffi_call+:} false; then : | |
19353 | ||
19354 | else | |
19355 | ac_cv_search_ffi_call=no | |
19356 | fi | |
19357 | rm conftest.$ac_ext | |
19358 | LIBS=$ac_func_search_save_LIBS | |
19359 | fi | |
19360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
19361 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
19362 | ac_res=$ac_cv_search_ffi_call | |
19363 | if test "$ac_res" != no; then : | |
19364 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19365 | ||
19366 | fi | |
19367 | ||
19368 | case $ac_cv_search_ffi_call in #( | |
19369 | no) : | |
b66977f1 DWT |
19370 | |
19371 | ||
19372 | pkg_failed=no | |
7eda51e0 JF |
19373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19374 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19375 | |
7eda51e0 JF |
19376 | if test -n "$LIBFFI_CFLAGS"; then |
19377 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19378 | elif test -n "$PKG_CONFIG"; then |
19379 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19380 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19381 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19382 | ac_status=$? |
19383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19384 | test $ac_status = 0; }; then | |
7eda51e0 | 19385 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
b66977f1 DWT |
19386 | else |
19387 | pkg_failed=yes | |
19388 | fi | |
12833ad8 JF |
19389 | else |
19390 | pkg_failed=untried | |
b66977f1 | 19391 | fi |
7eda51e0 JF |
19392 | if test -n "$LIBFFI_LIBS"; then |
19393 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19394 | elif test -n "$PKG_CONFIG"; then |
19395 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19397 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19398 | ac_status=$? |
19399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19400 | test $ac_status = 0; }; then | |
7eda51e0 | 19401 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
b66977f1 DWT |
19402 | else |
19403 | pkg_failed=yes | |
19404 | fi | |
12833ad8 JF |
19405 | else |
19406 | pkg_failed=untried | |
b66977f1 DWT |
19407 | fi |
19408 | ||
19409 | ||
19410 | ||
19411 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19413 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19414 | |
19415 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19416 | _pkg_short_errors_supported=yes | |
19417 | else | |
19418 | _pkg_short_errors_supported=no | |
19419 | fi | |
19420 | if test $_pkg_short_errors_supported = yes; then | |
7eda51e0 | 19421 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
b66977f1 | 19422 | else |
7eda51e0 | 19423 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
b66977f1 DWT |
19424 | fi |
19425 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19426 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19427 | |
7eda51e0 JF |
19428 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19429 | elif test $pkg_failed = untried; then | |
19430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19431 | $as_echo "no" >&6; } | |
19432 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 19433 | else |
7eda51e0 JF |
19434 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
19435 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19437 | $as_echo "yes" >&6; } | |
b66977f1 | 19438 | |
b66977f1 | 19439 | |
7eda51e0 | 19440 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19441 | haveit= |
d70419f1 | 19442 | for x in $CPPFLAGS; do |
7eda51e0 JF |
19443 | |
19444 | acl_save_prefix="$prefix" | |
19445 | prefix="$acl_final_prefix" | |
19446 | acl_save_exec_prefix="$exec_prefix" | |
19447 | exec_prefix="$acl_final_exec_prefix" | |
19448 | eval x=\"$x\" | |
19449 | exec_prefix="$acl_save_exec_prefix" | |
19450 | prefix="$acl_save_prefix" | |
19451 | ||
19452 | if test "X$x" = "X$element"; then | |
19453 | haveit=yes | |
19454 | break | |
19455 | fi | |
19456 | done | |
19457 | if test -z "$haveit"; then | |
d70419f1 | 19458 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
19459 | fi |
19460 | done | |
19461 | ||
19462 | ||
7eda51e0 JF |
19463 | for element in `$PKG_CONFIG --libs libffi`; do |
19464 | haveit= | |
19465 | for x in $LIBS; do | |
19466 | ||
19467 | acl_save_prefix="$prefix" | |
19468 | prefix="$acl_final_prefix" | |
19469 | acl_save_exec_prefix="$exec_prefix" | |
19470 | exec_prefix="$acl_final_exec_prefix" | |
19471 | eval x=\"$x\" | |
19472 | exec_prefix="$acl_save_exec_prefix" | |
19473 | prefix="$acl_save_prefix" | |
19474 | ||
19475 | if test "X$x" = "X$element"; then | |
19476 | haveit=yes | |
19477 | break | |
19478 | fi | |
19479 | done | |
19480 | if test -z "$haveit"; then | |
19481 | LIBS="${LIBS}${LIBS:+ }$element" | |
19482 | fi | |
19483 | done | |
19484 | ||
19485 | ||
19486 | fi ;; #( | |
19487 | *) : | |
19488 | ;; | |
19489 | esac | |
19490 | ||
19491 | fi | |
296ee9a6 JF |
19492 | LTLIBFFI=$LIBS |
19493 | LIBS=$cy_save | |
19494 | ||
19495 | ||
7eda51e0 JF |
19496 | |
19497 | ac_ext=mm | |
19498 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19499 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19500 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19501 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19502 | ||
19503 | ||
19504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
19505 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
19506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19507 | /* end confdefs.h. */ | |
19508 | ||
19509 | _ACEOF | |
19510 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19511 | ||
19512 | CY_OBJECTIVEC=1 | |
19513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19514 | $as_echo "yes" >&6; } | |
19515 | ||
19516 | else | |
19517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 19518 | $as_echo "no" >&6; } |
7eda51e0 JF |
19519 | fi |
19520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 19521 | |
7eda51e0 | 19522 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 19523 | |
7eda51e0 | 19524 | |
babf7fe8 JF |
19525 | cy_save=$LIBS |
19526 | LIBS= | |
19527 | ||
7eda51e0 JF |
19528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
19529 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
19530 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
19531 | $as_echo_n "(cached) " >&6 |
19532 | else | |
19533 | ||
19534 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 19535 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
19536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19537 | /* end confdefs.h. */ | |
19538 | ||
7eda51e0 | 19539 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
19540 | |
19541 | int | |
19542 | main () | |
19543 | { | |
7eda51e0 | 19544 | CFAllocatorGetDefault(); |
b66977f1 DWT |
19545 | ; |
19546 | return 0; | |
19547 | } | |
19548 | _ACEOF | |
7eda51e0 | 19549 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 19550 | |
7eda51e0 | 19551 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
19552 | |
19553 | else | |
7eda51e0 | 19554 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
19555 | fi |
19556 | rm -f core conftest.err conftest.$ac_objext \ | |
19557 | conftest$ac_exeext conftest.$ac_ext | |
19558 | LIBS=$ac_check_framework_save_LIBS | |
19559 | ||
19560 | fi | |
7eda51e0 JF |
19561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
19562 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
19563 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
19564 | |
19565 | ||
7eda51e0 | 19566 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
19567 | haveit= |
19568 | for x in $LIBS; do | |
19569 | ||
19570 | acl_save_prefix="$prefix" | |
19571 | prefix="$acl_final_prefix" | |
19572 | acl_save_exec_prefix="$exec_prefix" | |
19573 | exec_prefix="$acl_final_exec_prefix" | |
19574 | eval x=\"$x\" | |
19575 | exec_prefix="$acl_save_exec_prefix" | |
19576 | prefix="$acl_save_prefix" | |
19577 | ||
19578 | if test "X$x" = "X$element"; then | |
19579 | haveit=yes | |
19580 | break | |
19581 | fi | |
19582 | done | |
19583 | if test -z "$haveit"; then | |
19584 | LIBS="${LIBS}${LIBS:+ }$element" | |
19585 | fi | |
19586 | done | |
19587 | ||
66170b30 | 19588 | |
66170b30 JF |
19589 | |
19590 | ||
b66977f1 | 19591 | |
b66977f1 | 19592 | |
7eda51e0 JF |
19593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
19594 | $as_echo_n "checking for framework Foundation... " >&6; } | |
19595 | if ${ac_cv_framework_Foundation+:} false; then : | |
19596 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19597 | else |
b66977f1 | 19598 | |
7eda51e0 JF |
19599 | ac_check_framework_save_LIBS=$LIBS |
19600 | LIBS="-framework Foundation $LIBS" | |
19601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19602 | /* end confdefs.h. */ | |
66170b30 | 19603 | |
7eda51e0 | 19604 | #include <Foundation/NSObject.h> |
b66977f1 | 19605 | |
7eda51e0 JF |
19606 | int |
19607 | main () | |
19608 | { | |
19609 | [[NSObject alloc] init]; | |
19610 | ; | |
19611 | return 0; | |
19612 | } | |
19613 | _ACEOF | |
19614 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 19615 | |
7eda51e0 | 19616 | ac_cv_framework_Foundation=yes |
b66977f1 | 19617 | |
7eda51e0 JF |
19618 | else |
19619 | ac_cv_framework_Foundation=no | |
19620 | fi | |
19621 | rm -f core conftest.err conftest.$ac_objext \ | |
19622 | conftest$ac_exeext conftest.$ac_ext | |
19623 | LIBS=$ac_check_framework_save_LIBS | |
19624 | ||
19625 | fi | |
19626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
19627 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
19628 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
19629 | |
19630 | ||
7eda51e0 | 19631 | for element in "-framework Foundation"; do |
b66977f1 DWT |
19632 | haveit= |
19633 | for x in $LIBS; do | |
19634 | ||
19635 | acl_save_prefix="$prefix" | |
19636 | prefix="$acl_final_prefix" | |
19637 | acl_save_exec_prefix="$exec_prefix" | |
19638 | exec_prefix="$acl_final_exec_prefix" | |
19639 | eval x=\"$x\" | |
19640 | exec_prefix="$acl_save_exec_prefix" | |
19641 | prefix="$acl_save_prefix" | |
19642 | ||
19643 | if test "X$x" = "X$element"; then | |
19644 | haveit=yes | |
19645 | break | |
19646 | fi | |
19647 | done | |
19648 | if test -z "$haveit"; then | |
19649 | LIBS="${LIBS}${LIBS:+ }$element" | |
19650 | fi | |
19651 | done | |
19652 | ||
7eda51e0 JF |
19653 | cat >>confdefs.h <<_ACEOF |
19654 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
19655 | _ACEOF | |
19656 | ||
b66977f1 | 19657 | |
7eda51e0 | 19658 | fi |
b66977f1 DWT |
19659 | |
19660 | ||
7eda51e0 | 19661 | else |
b66977f1 | 19662 | |
b66977f1 | 19663 | |
7eda51e0 JF |
19664 | for ac_prog in gnustep-config |
19665 | do | |
19666 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19667 | set dummy $ac_prog; ac_word=$2 | |
19668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19669 | $as_echo_n "checking for $ac_word... " >&6; } | |
19670 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
19671 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19672 | else |
7eda51e0 JF |
19673 | if test -n "$GNUSTEP_CONFIG"; then |
19674 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 19675 | else |
7eda51e0 JF |
19676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19677 | for as_dir in $PATH | |
19678 | do | |
19679 | IFS=$as_save_IFS | |
19680 | test -z "$as_dir" && as_dir=. | |
19681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19683 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
19684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19685 | break 2 | |
19686 | fi | |
19687 | done | |
19688 | done | |
19689 | IFS=$as_save_IFS | |
b66977f1 | 19690 | |
b66977f1 | 19691 | fi |
b66977f1 | 19692 | fi |
7eda51e0 JF |
19693 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
19694 | if test -n "$GNUSTEP_CONFIG"; then | |
19695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
19696 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 19697 | else |
7eda51e0 | 19698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 19699 | $as_echo "no" >&6; } |
b66977f1 | 19700 | fi |
66170b30 | 19701 | |
66170b30 | 19702 | |
7eda51e0 JF |
19703 | test -n "$GNUSTEP_CONFIG" && break |
19704 | done | |
b66977f1 | 19705 | |
b66977f1 | 19706 | |
7eda51e0 | 19707 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 19708 | |
b66977f1 DWT |
19709 | |
19710 | ||
7eda51e0 | 19711 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 19712 | haveit= |
7eda51e0 | 19713 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
19714 | |
19715 | acl_save_prefix="$prefix" | |
19716 | prefix="$acl_final_prefix" | |
19717 | acl_save_exec_prefix="$exec_prefix" | |
19718 | exec_prefix="$acl_final_exec_prefix" | |
19719 | eval x=\"$x\" | |
19720 | exec_prefix="$acl_save_exec_prefix" | |
19721 | prefix="$acl_save_prefix" | |
19722 | ||
19723 | if test "X$x" = "X$element"; then | |
19724 | haveit=yes | |
19725 | break | |
19726 | fi | |
19727 | done | |
babf7fe8 JF |
19728 | if test -z "$haveit"; then |
19729 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19730 | fi | |
19731 | done | |
a667869d | 19732 | |
a667869d | 19733 | |
babf7fe8 | 19734 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 19735 | haveit= |
babf7fe8 | 19736 | for x in $LIBS; do |
a667869d | 19737 | |
632b71ea DWT |
19738 | acl_save_prefix="$prefix" |
19739 | prefix="$acl_final_prefix" | |
19740 | acl_save_exec_prefix="$exec_prefix" | |
19741 | exec_prefix="$acl_final_exec_prefix" | |
19742 | eval x=\"$x\" | |
19743 | exec_prefix="$acl_save_exec_prefix" | |
19744 | prefix="$acl_save_prefix" | |
19745 | ||
19746 | if test "X$x" = "X$element"; then | |
19747 | haveit=yes | |
19748 | break | |
19749 | fi | |
19750 | done | |
19751 | if test -z "$haveit"; then | |
babf7fe8 | 19752 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
19753 | fi |
19754 | done | |
19755 | ||
5053a6d1 | 19756 | |
babf7fe8 JF |
19757 | else |
19758 | CY_OBJECTIVEC=0 | |
19759 | ||
19760 | fi | |
19761 | ||
19762 | fi | |
19763 | LTOBJECTIVEC=$LIBS | |
19764 | LIBS=$cy_save | |
19765 | ||
19766 | ||
19767 | ||
19768 | fi | |
19769 | ||
19770 | ac_ext=cpp | |
19771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19775 | ||
19776 | ;; #( | |
19777 | *) : | |
19778 | ;; | |
19779 | esac | |
19780 | ||
19781 | if test "x$CY_OBJECTIVEC" = x1; then | |
19782 | CY_OBJECTIVEC_TRUE= | |
19783 | CY_OBJECTIVEC_FALSE='#' | |
19784 | else | |
19785 | CY_OBJECTIVEC_TRUE='#' | |
19786 | CY_OBJECTIVEC_FALSE= | |
19787 | fi | |
19788 | ||
19789 | ||
19790 | ||
19791 | cy_save=$LIBS | |
19792 | LIBS= | |
19793 | ||
19794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
19795 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
19796 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 19797 | $as_echo_n "(cached) " >&6 |
a667869d | 19798 | else |
632b71ea | 19799 | |
babf7fe8 JF |
19800 | ORIG_LIBS="$LIBS" |
19801 | for readline_lib in readline edit editline; do | |
19802 | for termcap_lib in "" termcap curses ncurses; do | |
19803 | if test -z "$termcap_lib"; then | |
19804 | TRY_LIB="-l$readline_lib" | |
19805 | else | |
19806 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
19807 | fi | |
19808 | LIBS="$ORIG_LIBS $TRY_LIB" | |
19809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 19810 | /* end confdefs.h. */ |
632b71ea | 19811 | |
babf7fe8 JF |
19812 | /* Override any GCC internal prototype to avoid an error. |
19813 | Use char because int might match the return type of a GCC | |
19814 | builtin and then its argument prototype would still apply. */ | |
19815 | #ifdef __cplusplus | |
19816 | extern "C" | |
19817 | #endif | |
19818 | char readline (); | |
5053a6d1 DWT |
19819 | int |
19820 | main () | |
19821 | { | |
babf7fe8 | 19822 | return readline (); |
5053a6d1 DWT |
19823 | ; |
19824 | return 0; | |
19825 | } | |
19826 | _ACEOF | |
babf7fe8 JF |
19827 | if ac_fn_cxx_try_link "$LINENO"; then : |
19828 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
19829 | fi |
19830 | rm -f core conftest.err conftest.$ac_objext \ | |
19831 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
19832 | if test -n "$ax_cv_lib_readline"; then |
19833 | break | |
19834 | fi | |
19835 | done | |
19836 | if test -n "$ax_cv_lib_readline"; then | |
19837 | break | |
19838 | fi | |
19839 | done | |
19840 | if test -z "$ax_cv_lib_readline"; then | |
19841 | ax_cv_lib_readline="no" | |
19842 | fi | |
19843 | LIBS="$ORIG_LIBS" | |
19844 | ||
19845 | fi | |
19846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
19847 | $as_echo "$ax_cv_lib_readline" >&6; } | |
19848 | ||
19849 | if test "$ax_cv_lib_readline" != "no"; then | |
19850 | LIBS="$LIBS $ax_cv_lib_readline" | |
19851 | ||
19852 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
19853 | ||
19854 | for ac_header in readline.h readline/readline.h | |
19855 | do : | |
19856 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19857 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19858 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19859 | cat >>confdefs.h <<_ACEOF | |
19860 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19861 | _ACEOF | |
19862 | ||
19863 | fi | |
19864 | ||
19865 | done | |
19866 | ||
19867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
19868 | $as_echo_n "checking whether readline supports history... " >&6; } | |
19869 | if ${ax_cv_lib_readline_history+:} false; then : | |
19870 | $as_echo_n "(cached) " >&6 | |
19871 | else | |
19872 | ||
19873 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
19874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19875 | /* end confdefs.h. */ | |
5053a6d1 | 19876 | |
babf7fe8 JF |
19877 | /* Override any GCC internal prototype to avoid an error. |
19878 | Use char because int might match the return type of a GCC | |
19879 | builtin and then its argument prototype would still apply. */ | |
19880 | #ifdef __cplusplus | |
19881 | extern "C" | |
19882 | #endif | |
19883 | char add_history (); | |
058f1bc8 DWT |
19884 | int |
19885 | main () | |
19886 | { | |
babf7fe8 | 19887 | return add_history (); |
058f1bc8 DWT |
19888 | ; |
19889 | return 0; | |
19890 | } | |
19891 | _ACEOF | |
babf7fe8 JF |
19892 | if ac_fn_cxx_try_link "$LINENO"; then : |
19893 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
19894 | fi |
19895 | rm -f core conftest.err conftest.$ac_objext \ | |
19896 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 19897 | |
a667869d | 19898 | fi |
babf7fe8 JF |
19899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
19900 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
19901 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 19902 | |
babf7fe8 | 19903 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 19904 | |
babf7fe8 JF |
19905 | for ac_header in history.h readline/history.h |
19906 | do : | |
19907 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19908 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19909 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19910 | cat >>confdefs.h <<_ACEOF | |
19911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 19912 | _ACEOF |
babf7fe8 | 19913 | |
7eda51e0 | 19914 | fi |
058f1bc8 | 19915 | |
babf7fe8 | 19916 | done |
058f1bc8 | 19917 | |
babf7fe8 | 19918 | fi |
7eda51e0 | 19919 | fi |
058f1bc8 | 19920 | |
babf7fe8 JF |
19921 | LTLIBREADLINE=$LIBS |
19922 | LIBS=$cy_save | |
058f1bc8 | 19923 | |
058f1bc8 | 19924 | |
babf7fe8 JF |
19925 | case $ax_cv_lib_readline in #( |
19926 | no) : | |
19927 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
19928 | *) : | |
19929 | ;; | |
19930 | esac | |
058f1bc8 DWT |
19931 | |
19932 | ||
babf7fe8 JF |
19933 | cy_save=$LIBS |
19934 | LIBS= | |
19935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
19936 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
19937 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
19938 | $as_echo_n "(cached) " >&6 |
19939 | else | |
babf7fe8 JF |
19940 | ac_func_search_save_LIBS=$LIBS |
19941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
19942 | /* end confdefs.h. */ |
19943 | ||
babf7fe8 JF |
19944 | /* Override any GCC internal prototype to avoid an error. |
19945 | Use char because int might match the return type of a GCC | |
19946 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 19947 | #ifdef __cplusplus |
babf7fe8 | 19948 | extern "C" |
7eda51e0 | 19949 | #endif |
babf7fe8 | 19950 | char cur_term (); |
7eda51e0 JF |
19951 | int |
19952 | main () | |
19953 | { | |
babf7fe8 | 19954 | return cur_term (); |
7eda51e0 JF |
19955 | ; |
19956 | return 0; | |
19957 | } | |
19958 | _ACEOF | |
babf7fe8 JF |
19959 | for ac_lib in '' termcap; do |
19960 | if test -z "$ac_lib"; then | |
19961 | ac_res="none required" | |
19962 | else | |
19963 | ac_res=-l$ac_lib | |
19964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19965 | fi | |
19966 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19967 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 19968 | fi |
babf7fe8 JF |
19969 | rm -f core conftest.err conftest.$ac_objext \ |
19970 | conftest$ac_exeext | |
19971 | if ${ac_cv_search_cur_term+:} false; then : | |
19972 | break | |
7eda51e0 | 19973 | fi |
babf7fe8 JF |
19974 | done |
19975 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 19976 | |
babf7fe8 JF |
19977 | else |
19978 | ac_cv_search_cur_term=no | |
19979 | fi | |
19980 | rm conftest.$ac_ext | |
19981 | LIBS=$ac_func_search_save_LIBS | |
19982 | fi | |
19983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
19984 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
19985 | ac_res=$ac_cv_search_cur_term | |
19986 | if test "$ac_res" != no; then : | |
19987 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 19988 | |
babf7fe8 | 19989 | fi |
058f1bc8 | 19990 | |
babf7fe8 JF |
19991 | LTLIBTERMCAP=$LIBS |
19992 | LIBS=$cy_save | |
058f1bc8 | 19993 | |
058f1bc8 | 19994 | |
66170b30 JF |
19995 | |
19996 | ||
9777bd50 JF |
19997 | SO=$acl_shlibext |
19998 | ||
e1cce270 | 19999 | |
7eda51e0 JF |
20000 | if test "x$CY_EXECUTE" = x1; then : |
20001 | ||
20002 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
ee134472 | 20003 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : |
e1cce270 | 20004 | |
7eda51e0 | 20005 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20006 | for ac_prog in lipo |
794e88e7 DWT |
20007 | do |
20008 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20009 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20011 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20012 | if ${ac_cv_prog__LIPO+:} false; then : |
794e88e7 DWT |
20013 | $as_echo_n "(cached) " >&6 |
20014 | else | |
a243b558 JF |
20015 | if test -n "$_LIPO"; then |
20016 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
794e88e7 DWT |
20017 | else |
20018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20019 | for as_dir in $PATH | |
20020 | do | |
20021 | IFS=$as_save_IFS | |
20022 | test -z "$as_dir" && as_dir=. | |
20023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20025 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20027 | break 2 | |
20028 | fi | |
20029 | done | |
20030 | done | |
20031 | IFS=$as_save_IFS | |
20032 | ||
20033 | fi | |
20034 | fi | |
a243b558 JF |
20035 | _LIPO=$ac_cv_prog__LIPO |
20036 | if test -n "$_LIPO"; then | |
20037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
20038 | $as_echo "$_LIPO" >&6; } | |
794e88e7 DWT |
20039 | else |
20040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20041 | $as_echo "no" >&6; } | |
20042 | fi | |
20043 | ||
20044 | ||
a243b558 | 20045 | test -n "$_LIPO" && break |
794e88e7 DWT |
20046 | done |
20047 | fi | |
a243b558 JF |
20048 | if test -z "$_LIPO"; then |
20049 | ac_ct__LIPO=$_LIPO | |
20050 | for ac_prog in lipo | |
794e88e7 DWT |
20051 | do |
20052 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20053 | set dummy $ac_prog; ac_word=$2 | |
20054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20055 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20056 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : |
794e88e7 DWT |
20057 | $as_echo_n "(cached) " >&6 |
20058 | else | |
a243b558 JF |
20059 | if test -n "$ac_ct__LIPO"; then |
20060 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
794e88e7 DWT |
20061 | else |
20062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20063 | for as_dir in $PATH | |
20064 | do | |
20065 | IFS=$as_save_IFS | |
20066 | test -z "$as_dir" && as_dir=. | |
20067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20069 | ac_cv_prog_ac_ct__LIPO="$ac_prog" |
794e88e7 DWT |
20070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20071 | break 2 | |
20072 | fi | |
20073 | done | |
20074 | done | |
20075 | IFS=$as_save_IFS | |
20076 | ||
20077 | fi | |
20078 | fi | |
a243b558 JF |
20079 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO |
20080 | if test -n "$ac_ct__LIPO"; then | |
20081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
20082 | $as_echo "$ac_ct__LIPO" >&6; } | |
794e88e7 DWT |
20083 | else |
20084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20085 | $as_echo "no" >&6; } | |
20086 | fi | |
20087 | ||
20088 | ||
a243b558 | 20089 | test -n "$ac_ct__LIPO" && break |
794e88e7 DWT |
20090 | done |
20091 | ||
a243b558 JF |
20092 | if test "x$ac_ct__LIPO" = x; then |
20093 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
794e88e7 DWT |
20094 | else |
20095 | case $cross_compiling:$ac_tool_warned in | |
20096 | yes:) | |
20097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20099 | ac_tool_warned=yes ;; | |
e1cce270 | 20100 | esac |
a243b558 | 20101 | _LIPO=$ac_ct__LIPO |
794e88e7 DWT |
20102 | fi |
20103 | fi | |
20104 | ||
7eda51e0 | 20105 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20106 | for ac_prog in nm |
794e88e7 DWT |
20107 | do |
20108 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20109 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20111 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20112 | if ${ac_cv_prog__NM+:} false; then : |
794e88e7 DWT |
20113 | $as_echo_n "(cached) " >&6 |
20114 | else | |
a243b558 JF |
20115 | if test -n "$_NM"; then |
20116 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
794e88e7 DWT |
20117 | else |
20118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20119 | for as_dir in $PATH | |
20120 | do | |
20121 | IFS=$as_save_IFS | |
20122 | test -z "$as_dir" && as_dir=. | |
20123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20125 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20127 | break 2 | |
20128 | fi | |
20129 | done | |
20130 | done | |
20131 | IFS=$as_save_IFS | |
20132 | ||
20133 | fi | |
20134 | fi | |
a243b558 JF |
20135 | _NM=$ac_cv_prog__NM |
20136 | if test -n "$_NM"; then | |
20137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
20138 | $as_echo "$_NM" >&6; } | |
794e88e7 DWT |
20139 | else |
20140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20141 | $as_echo "no" >&6; } | |
20142 | fi | |
20143 | ||
20144 | ||
a243b558 | 20145 | test -n "$_NM" && break |
794e88e7 DWT |
20146 | done |
20147 | fi | |
a243b558 JF |
20148 | if test -z "$_NM"; then |
20149 | ac_ct__NM=$_NM | |
20150 | for ac_prog in nm | |
794e88e7 DWT |
20151 | do |
20152 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20153 | set dummy $ac_prog; ac_word=$2 | |
20154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20155 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20156 | if ${ac_cv_prog_ac_ct__NM+:} false; then : |
794e88e7 DWT |
20157 | $as_echo_n "(cached) " >&6 |
20158 | else | |
a243b558 JF |
20159 | if test -n "$ac_ct__NM"; then |
20160 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
794e88e7 DWT |
20161 | else |
20162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20163 | for as_dir in $PATH | |
20164 | do | |
20165 | IFS=$as_save_IFS | |
20166 | test -z "$as_dir" && as_dir=. | |
20167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20169 | ac_cv_prog_ac_ct__NM="$ac_prog" |
794e88e7 DWT |
20170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20171 | break 2 | |
20172 | fi | |
20173 | done | |
20174 | done | |
20175 | IFS=$as_save_IFS | |
20176 | ||
20177 | fi | |
20178 | fi | |
a243b558 JF |
20179 | ac_ct__NM=$ac_cv_prog_ac_ct__NM |
20180 | if test -n "$ac_ct__NM"; then | |
20181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
20182 | $as_echo "$ac_ct__NM" >&6; } | |
794e88e7 DWT |
20183 | else |
20184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20185 | $as_echo "no" >&6; } | |
20186 | fi | |
20187 | ||
20188 | ||
a243b558 | 20189 | test -n "$ac_ct__NM" && break |
794e88e7 DWT |
20190 | done |
20191 | ||
a243b558 JF |
20192 | if test "x$ac_ct__NM" = x; then |
20193 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
794e88e7 DWT |
20194 | else |
20195 | case $cross_compiling:$ac_tool_warned in | |
20196 | yes:) | |
20197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20198 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20199 | ac_tool_warned=yes ;; | |
20200 | esac | |
a243b558 | 20201 | _NM=$ac_ct__NM |
794e88e7 DWT |
20202 | fi |
20203 | fi | |
20204 | ||
7eda51e0 | 20205 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20206 | for ac_prog in otool |
794e88e7 DWT |
20207 | do |
20208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20211 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20212 | if ${ac_cv_prog__OTOOL+:} false; then : |
794e88e7 DWT |
20213 | $as_echo_n "(cached) " >&6 |
20214 | else | |
a243b558 JF |
20215 | if test -n "$_OTOOL"; then |
20216 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20217 | else |
20218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20219 | for as_dir in $PATH | |
20220 | do | |
20221 | IFS=$as_save_IFS | |
20222 | test -z "$as_dir" && as_dir=. | |
20223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20225 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20227 | break 2 | |
20228 | fi | |
20229 | done | |
20230 | done | |
20231 | IFS=$as_save_IFS | |
20232 | ||
20233 | fi | |
20234 | fi | |
a243b558 JF |
20235 | _OTOOL=$ac_cv_prog__OTOOL |
20236 | if test -n "$_OTOOL"; then | |
20237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
20238 | $as_echo "$_OTOOL" >&6; } | |
794e88e7 DWT |
20239 | else |
20240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20241 | $as_echo "no" >&6; } | |
20242 | fi | |
20243 | ||
20244 | ||
a243b558 | 20245 | test -n "$_OTOOL" && break |
794e88e7 DWT |
20246 | done |
20247 | fi | |
a243b558 JF |
20248 | if test -z "$_OTOOL"; then |
20249 | ac_ct__OTOOL=$_OTOOL | |
20250 | for ac_prog in otool | |
794e88e7 DWT |
20251 | do |
20252 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20253 | set dummy $ac_prog; ac_word=$2 | |
20254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20255 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20256 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : |
794e88e7 DWT |
20257 | $as_echo_n "(cached) " >&6 |
20258 | else | |
a243b558 JF |
20259 | if test -n "$ac_ct__OTOOL"; then |
20260 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20261 | else |
20262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20263 | for as_dir in $PATH | |
20264 | do | |
20265 | IFS=$as_save_IFS | |
20266 | test -z "$as_dir" && as_dir=. | |
20267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20269 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" |
794e88e7 DWT |
20270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20271 | break 2 | |
20272 | fi | |
20273 | done | |
20274 | done | |
20275 | IFS=$as_save_IFS | |
20276 | ||
20277 | fi | |
20278 | fi | |
a243b558 JF |
20279 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL |
20280 | if test -n "$ac_ct__OTOOL"; then | |
20281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
20282 | $as_echo "$ac_ct__OTOOL" >&6; } | |
794e88e7 DWT |
20283 | else |
20284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20285 | $as_echo "no" >&6; } | |
20286 | fi | |
20287 | ||
20288 | ||
a243b558 | 20289 | test -n "$ac_ct__OTOOL" && break |
794e88e7 DWT |
20290 | done |
20291 | ||
a243b558 JF |
20292 | if test "x$ac_ct__OTOOL" = x; then |
20293 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
794e88e7 DWT |
20294 | else |
20295 | case $cross_compiling:$ac_tool_warned in | |
20296 | yes:) | |
20297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20299 | ac_tool_warned=yes ;; | |
20300 | esac | |
a243b558 | 20301 | _OTOOL=$ac_ct__OTOOL |
794e88e7 DWT |
20302 | fi |
20303 | fi | |
20304 | ||
7eda51e0 | 20305 | CY_ATTACH_GROUP=procmod |
794e88e7 | 20306 | |
7eda51e0 | 20307 | CY_MACH=1 |
e1cce270 DWT |
20308 | |
20309 | fi | |
20310 | ||
20311 | ||
7eda51e0 | 20312 | fi |
a243b558 JF |
20313 | if test "x$CY_MACH" = x1; then |
20314 | CY_MACH_TRUE= | |
20315 | CY_MACH_FALSE='#' | |
20316 | else | |
20317 | CY_MACH_TRUE='#' | |
20318 | CY_MACH_FALSE= | |
47aaa820 | 20319 | fi |
9c60689e | 20320 | |
66170b30 | 20321 | |
a243b558 JF |
20322 | ac_config_files="$ac_config_files Makefile" |
20323 | ||
9c60689e DWT |
20324 | cat >confcache <<\_ACEOF |
20325 | # This file is a shell script that caches the results of configure | |
20326 | # tests run on this system so they can be shared between configure | |
20327 | # scripts and configure runs, see configure's option --config-cache. | |
20328 | # It is not useful on other systems. If it contains results you don't | |
20329 | # want to keep, you may remove or edit it. | |
20330 | # | |
20331 | # config.status only pays attention to the cache file if you give it | |
20332 | # the --recheck option to rerun configure. | |
20333 | # | |
20334 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20335 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20336 | # following values. | |
20337 | ||
20338 | _ACEOF | |
20339 | ||
20340 | # The following way of writing the cache mishandles newlines in values, | |
20341 | # but we know of no workaround that is simple, portable, and efficient. | |
20342 | # So, we kill variables containing newlines. | |
20343 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20344 | # and sets the high bit in the cache file unless we assign to the vars. | |
20345 | ( | |
20346 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20347 | eval ac_val=\$$ac_var | |
20348 | case $ac_val in #( | |
20349 | *${as_nl}*) | |
20350 | case $ac_var in #( | |
20351 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
20352 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
20353 | esac | |
20354 | case $ac_var in #( | |
20355 | _ | IFS | as_nl) ;; #( | |
20356 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
20357 | *) { eval $ac_var=; unset $ac_var;} ;; | |
20358 | esac ;; | |
20359 | esac | |
20360 | done | |
20361 | ||
20362 | (set) 2>&1 | | |
20363 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20364 | *${as_nl}ac_space=\ *) | |
20365 | # `set' does not quote correctly, so add quotes: double-quote | |
20366 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
20367 | sed -n \ | |
20368 | "s/'/'\\\\''/g; | |
20369 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20370 | ;; #( | |
20371 | *) | |
20372 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20373 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20374 | ;; | |
20375 | esac | | |
20376 | sort | |
20377 | ) | | |
20378 | sed ' | |
20379 | /^ac_cv_env_/b end | |
20380 | t clear | |
20381 | :clear | |
20382 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20383 | t end | |
20384 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20385 | :end' >>confcache | |
20386 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20387 | if test -w "$cache_file"; then | |
ee134472 | 20388 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
20389 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
20390 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
20391 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
20392 | cat confcache >"$cache_file" | |
20393 | else | |
20394 | case $cache_file in #( | |
20395 | */* | ?:*) | |
20396 | mv -f confcache "$cache_file"$$ && | |
20397 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
20398 | *) | |
20399 | mv -f confcache "$cache_file" ;; | |
20400 | esac | |
20401 | fi | |
20402 | fi | |
9c60689e DWT |
20403 | else |
20404 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
20405 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20406 | fi | |
20407 | fi | |
20408 | rm -f confcache | |
20409 | ||
20410 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20411 | # Let make expand exec_prefix. | |
20412 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20413 | ||
296ee9a6 | 20414 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
20415 | |
20416 | ac_libobjs= | |
20417 | ac_ltlibobjs= | |
12833ad8 | 20418 | U= |
9c60689e DWT |
20419 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20420 | # 1. Remove the extension, and $U if already installed. | |
20421 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20422 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
20423 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20424 | # will be set to the directory where LIBOBJS objects are built. | |
20425 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20426 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
20427 | done | |
20428 | LIBOBJS=$ac_libobjs | |
20429 | ||
20430 | LTLIBOBJS=$ac_ltlibobjs | |
20431 | ||
20432 | ||
66170b30 JF |
20433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
20434 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
20435 | if test -n "$am_sleep_pid"; then | |
20436 | # Hide warnings about reused PIDs. | |
20437 | wait $am_sleep_pid 2>/dev/null | |
20438 | fi | |
20439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
20440 | $as_echo "done" >&6; } | |
20441 | if test -n "$EXEEXT"; then | |
20442 | am__EXEEXT_TRUE= | |
20443 | am__EXEEXT_FALSE='#' | |
20444 | else | |
20445 | am__EXEEXT_TRUE='#' | |
20446 | am__EXEEXT_FALSE= | |
20447 | fi | |
20448 | ||
babf7fe8 JF |
20449 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
20450 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
20451 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20452 | fi | |
66170b30 JF |
20453 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20454 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
20455 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20456 | fi | |
66170b30 JF |
20457 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20458 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
20459 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20460 | fi | |
20461 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
20462 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
20463 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20464 | fi | |
a243b558 JF |
20465 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20466 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
20467 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20468 | fi | |
babf7fe8 JF |
20469 | if test -z "${CY_IOS_SIMULATOR_TRUE}" && test -z "${CY_IOS_SIMULATOR_FALSE}"; then |
20470 | as_fn_error $? "conditional \"CY_IOS_SIMULATOR\" was never defined. | |
20471 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20472 | fi | |
a243b558 JF |
20473 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
20474 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
20475 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20476 | fi | |
20477 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
20478 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
20479 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20480 | fi | |
20481 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
20482 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
20483 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20484 | fi | |
9c60689e | 20485 | |
ee134472 | 20486 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
20487 | ac_write_fail=0 |
20488 | ac_clean_files_save=$ac_clean_files | |
20489 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20490 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
20491 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20492 | as_write_fail=0 | |
20493 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
20494 | #! $SHELL | |
20495 | # Generated by $as_me. | |
20496 | # Run this file to recreate the current configuration. | |
20497 | # Compiler output produced by configure, useful for debugging | |
20498 | # configure, is in config.log if it exists. | |
20499 | ||
20500 | debug=false | |
20501 | ac_cs_recheck=false | |
20502 | ac_cs_silent=false | |
20503 | ||
20504 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20505 | export SHELL | |
20506 | _ASEOF | |
20507 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
20508 | ## -------------------- ## | |
20509 | ## M4sh Initialization. ## | |
20510 | ## -------------------- ## | |
20511 | ||
20512 | # Be more Bourne compatible | |
20513 | DUALCASE=1; export DUALCASE # for MKS sh | |
20514 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20515 | emulate sh | |
20516 | NULLCMD=: | |
20517 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
20518 | # is contrary to our usage. Disable this feature. | |
20519 | alias -g '${1+"$@"}'='"$@"' | |
20520 | setopt NO_GLOB_SUBST | |
20521 | else | |
20522 | case `(set -o) 2>/dev/null` in #( | |
20523 | *posix*) : | |
20524 | set -o posix ;; #( | |
20525 | *) : | |
20526 | ;; | |
20527 | esac | |
20528 | fi | |
20529 | ||
20530 | ||
20531 | as_nl=' | |
20532 | ' | |
20533 | export as_nl | |
20534 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20535 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20536 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20537 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20538 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
20539 | # but without wasting forks for bash or zsh. | |
20540 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
20541 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20542 | as_echo='print -r --' | |
20543 | as_echo_n='print -rn --' | |
20544 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20545 | as_echo='printf %s\n' | |
20546 | as_echo_n='printf %s' | |
20547 | else | |
20548 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20549 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20550 | as_echo_n='/usr/ucb/echo -n' | |
20551 | else | |
20552 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20553 | as_echo_n_body='eval | |
20554 | arg=$1; | |
20555 | case $arg in #( | |
20556 | *"$as_nl"*) | |
20557 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20558 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20559 | esac; | |
20560 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20561 | ' | |
20562 | export as_echo_n_body | |
20563 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
20564 | fi | |
20565 | export as_echo_body | |
20566 | as_echo='sh -c $as_echo_body as_echo' | |
20567 | fi | |
20568 | ||
20569 | # The user is always right. | |
20570 | if test "${PATH_SEPARATOR+set}" != set; then | |
20571 | PATH_SEPARATOR=: | |
20572 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20573 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20574 | PATH_SEPARATOR=';' | |
20575 | } | |
20576 | fi | |
20577 | ||
20578 | ||
20579 | # IFS | |
20580 | # We need space, tab and new line, in precisely that order. Quoting is | |
20581 | # there to prevent editors from complaining about space-tab. | |
20582 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20583 | # splitting by setting IFS to empty value.) | |
20584 | IFS=" "" $as_nl" | |
20585 | ||
20586 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 20587 | as_myself= |
9c60689e DWT |
20588 | case $0 in #(( |
20589 | *[\\/]* ) as_myself=$0 ;; | |
20590 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20591 | for as_dir in $PATH | |
20592 | do | |
20593 | IFS=$as_save_IFS | |
20594 | test -z "$as_dir" && as_dir=. | |
20595 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20596 | done | |
20597 | IFS=$as_save_IFS | |
20598 | ||
20599 | ;; | |
20600 | esac | |
20601 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20602 | # in which case we are not to be found in the path. | |
20603 | if test "x$as_myself" = x; then | |
20604 | as_myself=$0 | |
20605 | fi | |
20606 | if test ! -f "$as_myself"; then | |
20607 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20608 | exit 1 | |
20609 | fi | |
20610 | ||
20611 | # Unset variables that we do not need and which cause bugs (e.g. in | |
20612 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
20613 | # suppresses any "Segmentation fault" message there. '((' could | |
20614 | # trigger a bug in pdksh 5.2.14. | |
20615 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
20616 | do eval test x\${$as_var+set} = xset \ | |
20617 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
20618 | done | |
20619 | PS1='$ ' | |
20620 | PS2='> ' | |
20621 | PS4='+ ' | |
20622 | ||
20623 | # NLS nuisances. | |
20624 | LC_ALL=C | |
20625 | export LC_ALL | |
20626 | LANGUAGE=C | |
20627 | export LANGUAGE | |
20628 | ||
20629 | # CDPATH. | |
20630 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20631 | ||
20632 | ||
12833ad8 JF |
20633 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
20634 | # ---------------------------------------- | |
9c60689e DWT |
20635 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
20636 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 20637 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
20638 | as_fn_error () |
20639 | { | |
12833ad8 JF |
20640 | as_status=$1; test $as_status -eq 0 && as_status=1 |
20641 | if test "$4"; then | |
20642 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
20643 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 20644 | fi |
12833ad8 | 20645 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
20646 | as_fn_exit $as_status |
20647 | } # as_fn_error | |
20648 | ||
20649 | ||
20650 | # as_fn_set_status STATUS | |
20651 | # ----------------------- | |
20652 | # Set $? to STATUS, without forking. | |
20653 | as_fn_set_status () | |
20654 | { | |
20655 | return $1 | |
20656 | } # as_fn_set_status | |
20657 | ||
20658 | # as_fn_exit STATUS | |
20659 | # ----------------- | |
20660 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20661 | as_fn_exit () | |
20662 | { | |
20663 | set +e | |
20664 | as_fn_set_status $1 | |
20665 | exit $1 | |
20666 | } # as_fn_exit | |
20667 | ||
20668 | # as_fn_unset VAR | |
20669 | # --------------- | |
20670 | # Portably unset VAR. | |
20671 | as_fn_unset () | |
20672 | { | |
20673 | { eval $1=; unset $1;} | |
20674 | } | |
20675 | as_unset=as_fn_unset | |
20676 | # as_fn_append VAR VALUE | |
20677 | # ---------------------- | |
20678 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20679 | # advantage of any shell optimizations that allow amortized linear growth over | |
20680 | # repeated appends, instead of the typical quadratic growth present in naive | |
20681 | # implementations. | |
20682 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20683 | eval 'as_fn_append () | |
20684 | { | |
20685 | eval $1+=\$2 | |
20686 | }' | |
20687 | else | |
20688 | as_fn_append () | |
20689 | { | |
20690 | eval $1=\$$1\$2 | |
20691 | } | |
20692 | fi # as_fn_append | |
20693 | ||
20694 | # as_fn_arith ARG... | |
20695 | # ------------------ | |
20696 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20697 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20698 | # must be portable across $(()) and expr. | |
20699 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20700 | eval 'as_fn_arith () | |
20701 | { | |
20702 | as_val=$(( $* )) | |
20703 | }' | |
20704 | else | |
20705 | as_fn_arith () | |
20706 | { | |
20707 | as_val=`expr "$@" || test $? -eq 1` | |
20708 | } | |
20709 | fi # as_fn_arith | |
20710 | ||
20711 | ||
20712 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20713 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20714 | as_expr=expr | |
20715 | else | |
20716 | as_expr=false | |
20717 | fi | |
20718 | ||
20719 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20720 | as_basename=basename | |
20721 | else | |
20722 | as_basename=false | |
20723 | fi | |
20724 | ||
20725 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20726 | as_dirname=dirname | |
20727 | else | |
20728 | as_dirname=false | |
20729 | fi | |
20730 | ||
20731 | as_me=`$as_basename -- "$0" || | |
20732 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20733 | X"$0" : 'X\(//\)$' \| \ | |
20734 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20735 | $as_echo X/"$0" | | |
20736 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20737 | s//\1/ | |
20738 | q | |
20739 | } | |
20740 | /^X\/\(\/\/\)$/{ | |
20741 | s//\1/ | |
20742 | q | |
20743 | } | |
20744 | /^X\/\(\/\).*/{ | |
20745 | s//\1/ | |
20746 | q | |
20747 | } | |
20748 | s/.*/./; q'` | |
20749 | ||
20750 | # Avoid depending upon Character Ranges. | |
20751 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20752 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20753 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20754 | as_cr_digits='0123456789' | |
20755 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20756 | ||
20757 | ECHO_C= ECHO_N= ECHO_T= | |
20758 | case `echo -n x` in #((((( | |
20759 | -n*) | |
20760 | case `echo 'xy\c'` in | |
20761 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20762 | xy) ECHO_C='\c';; | |
20763 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20764 | ECHO_T=' ';; | |
20765 | esac;; | |
20766 | *) | |
20767 | ECHO_N='-n';; | |
20768 | esac | |
20769 | ||
20770 | rm -f conf$$ conf$$.exe conf$$.file | |
20771 | if test -d conf$$.dir; then | |
20772 | rm -f conf$$.dir/conf$$.file | |
20773 | else | |
20774 | rm -f conf$$.dir | |
20775 | mkdir conf$$.dir 2>/dev/null | |
20776 | fi | |
20777 | if (echo >conf$$.file) 2>/dev/null; then | |
20778 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20779 | as_ln_s='ln -s' | |
20780 | # ... but there are two gotchas: | |
20781 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20782 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 20783 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 20784 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 20785 | as_ln_s='cp -pR' |
9c60689e DWT |
20786 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20787 | as_ln_s=ln | |
20788 | else | |
53ba6704 | 20789 | as_ln_s='cp -pR' |
9c60689e DWT |
20790 | fi |
20791 | else | |
53ba6704 | 20792 | as_ln_s='cp -pR' |
9c60689e DWT |
20793 | fi |
20794 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20795 | rmdir conf$$.dir 2>/dev/null | |
20796 | ||
20797 | ||
20798 | # as_fn_mkdir_p | |
20799 | # ------------- | |
20800 | # Create "$as_dir" as a directory, including parents if necessary. | |
20801 | as_fn_mkdir_p () | |
20802 | { | |
20803 | ||
20804 | case $as_dir in #( | |
20805 | -*) as_dir=./$as_dir;; | |
20806 | esac | |
20807 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20808 | as_dirs= | |
20809 | while :; do | |
20810 | case $as_dir in #( | |
20811 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20812 | *) as_qdir=$as_dir;; | |
20813 | esac | |
20814 | as_dirs="'$as_qdir' $as_dirs" | |
20815 | as_dir=`$as_dirname -- "$as_dir" || | |
20816 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20817 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20818 | X"$as_dir" : 'X\(//\)$' \| \ | |
20819 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20820 | $as_echo X"$as_dir" | | |
20821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20822 | s//\1/ | |
20823 | q | |
20824 | } | |
20825 | /^X\(\/\/\)[^/].*/{ | |
20826 | s//\1/ | |
20827 | q | |
20828 | } | |
20829 | /^X\(\/\/\)$/{ | |
20830 | s//\1/ | |
20831 | q | |
20832 | } | |
20833 | /^X\(\/\).*/{ | |
20834 | s//\1/ | |
20835 | q | |
20836 | } | |
20837 | s/.*/./; q'` | |
20838 | test -d "$as_dir" && break | |
20839 | done | |
20840 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 20841 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
20842 | |
20843 | ||
20844 | } # as_fn_mkdir_p | |
20845 | if mkdir -p . 2>/dev/null; then | |
20846 | as_mkdir_p='mkdir -p "$as_dir"' | |
20847 | else | |
20848 | test -d ./-p && rmdir ./-p | |
20849 | as_mkdir_p=false | |
20850 | fi | |
20851 | ||
53ba6704 JF |
20852 | |
20853 | # as_fn_executable_p FILE | |
20854 | # ----------------------- | |
20855 | # Test if FILE is an executable regular file. | |
20856 | as_fn_executable_p () | |
20857 | { | |
20858 | test -f "$1" && test -x "$1" | |
20859 | } # as_fn_executable_p | |
20860 | as_test_x='test -x' | |
20861 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
20862 | |
20863 | # Sed expression to map a string onto a valid CPP name. | |
20864 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20865 | ||
20866 | # Sed expression to map a string onto a valid variable name. | |
20867 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20868 | ||
20869 | ||
20870 | exec 6>&1 | |
20871 | ## ----------------------------------- ## | |
20872 | ## Main body of $CONFIG_STATUS script. ## | |
20873 | ## ----------------------------------- ## | |
20874 | _ASEOF | |
20875 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20876 | ||
20877 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20878 | # Save the log message, to keep $0 and so on meaningful, and to | |
20879 | # report actual input values of CONFIG_FILES etc. instead of their | |
20880 | # values after options handling. | |
20881 | ac_log=" | |
20882 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 20883 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
20884 | |
20885 | CONFIG_FILES = $CONFIG_FILES | |
20886 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20887 | CONFIG_LINKS = $CONFIG_LINKS | |
20888 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20889 | $ $0 $@ | |
20890 | ||
20891 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20892 | " | |
20893 | ||
20894 | _ACEOF | |
20895 | ||
20896 | case $ac_config_files in *" | |
20897 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20898 | esac | |
20899 | ||
296ee9a6 JF |
20900 | case $ac_config_headers in *" |
20901 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20902 | esac | |
9c60689e DWT |
20903 | |
20904 | ||
20905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20906 | # Files that config.status was made for. | |
20907 | config_files="$ac_config_files" | |
296ee9a6 | 20908 | config_headers="$ac_config_headers" |
9c60689e DWT |
20909 | config_commands="$ac_config_commands" |
20910 | ||
20911 | _ACEOF | |
20912 | ||
20913 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20914 | ac_cs_usage="\ | |
20915 | \`$as_me' instantiates files and other configuration actions | |
20916 | from templates according to the current configuration. Unless the files | |
20917 | and actions are specified as TAGs, all are instantiated by default. | |
20918 | ||
20919 | Usage: $0 [OPTION]... [TAG]... | |
20920 | ||
20921 | -h, --help print this help, then exit | |
20922 | -V, --version print version number and configuration settings, then exit | |
20923 | --config print configuration, then exit | |
20924 | -q, --quiet, --silent | |
20925 | do not print progress messages | |
20926 | -d, --debug don't remove temporary files | |
20927 | --recheck update $as_me by reconfiguring in the same conditions | |
20928 | --file=FILE[:TEMPLATE] | |
20929 | instantiate the configuration file FILE | |
296ee9a6 JF |
20930 | --header=FILE[:TEMPLATE] |
20931 | instantiate the configuration header FILE | |
9c60689e DWT |
20932 | |
20933 | Configuration files: | |
20934 | $config_files | |
20935 | ||
296ee9a6 JF |
20936 | Configuration headers: |
20937 | $config_headers | |
20938 | ||
9c60689e DWT |
20939 | Configuration commands: |
20940 | $config_commands | |
20941 | ||
20942 | Report bugs to <saurik@saurik.com>. | |
20943 | Cycript home page: <http://www.cycript.org/>." | |
20944 | ||
20945 | _ACEOF | |
20946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20947 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
20948 | ac_cs_version="\\ | |
20949 | Cycript config.status 0.9 | |
53ba6704 | 20950 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
20951 | with options \\"\$ac_cs_config\\" |
20952 | ||
53ba6704 | 20953 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
20954 | This config.status script is free software; the Free Software Foundation |
20955 | gives unlimited permission to copy, distribute and modify it." | |
20956 | ||
20957 | ac_pwd='$ac_pwd' | |
20958 | srcdir='$srcdir' | |
20959 | INSTALL='$INSTALL' | |
66170b30 JF |
20960 | MKDIR_P='$MKDIR_P' |
20961 | AWK='$AWK' | |
9c60689e DWT |
20962 | test -n "\$AWK" || AWK=awk |
20963 | _ACEOF | |
20964 | ||
20965 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20966 | # The default lists apply if the user does not specify any file. | |
20967 | ac_need_defaults=: | |
20968 | while test $# != 0 | |
20969 | do | |
20970 | case $1 in | |
12833ad8 | 20971 | --*=?*) |
9c60689e DWT |
20972 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20973 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20974 | ac_shift=: | |
20975 | ;; | |
12833ad8 JF |
20976 | --*=) |
20977 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20978 | ac_optarg= | |
20979 | ac_shift=: | |
20980 | ;; | |
9c60689e DWT |
20981 | *) |
20982 | ac_option=$1 | |
20983 | ac_optarg=$2 | |
20984 | ac_shift=shift | |
20985 | ;; | |
20986 | esac | |
20987 | ||
20988 | case $ac_option in | |
20989 | # Handling of the options. | |
20990 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20991 | ac_cs_recheck=: ;; | |
20992 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
20993 | $as_echo "$ac_cs_version"; exit ;; | |
20994 | --config | --confi | --conf | --con | --co | --c ) | |
20995 | $as_echo "$ac_cs_config"; exit ;; | |
20996 | --debug | --debu | --deb | --de | --d | -d ) | |
20997 | debug=: ;; | |
20998 | --file | --fil | --fi | --f ) | |
20999 | $ac_shift | |
21000 | case $ac_optarg in | |
21001 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 21002 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
21003 | esac |
21004 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
21005 | ac_need_defaults=false;; | |
296ee9a6 JF |
21006 | --header | --heade | --head | --hea ) |
21007 | $ac_shift | |
21008 | case $ac_optarg in | |
21009 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21010 | esac | |
21011 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
21012 | ac_need_defaults=false;; | |
21013 | --he | --h) | |
21014 | # Conflict between --help and --header | |
21015 | as_fn_error $? "ambiguous option: \`$1' | |
21016 | Try \`$0 --help' for more information.";; | |
21017 | --help | --hel | -h ) | |
9c60689e DWT |
21018 | $as_echo "$ac_cs_usage"; exit ;; |
21019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21020 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21021 | ac_cs_silent=: ;; | |
21022 | ||
21023 | # This is an error. | |
12833ad8 | 21024 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
21025 | Try \`$0 --help' for more information." ;; |
21026 | ||
21027 | *) as_fn_append ac_config_targets " $1" | |
21028 | ac_need_defaults=false ;; | |
21029 | ||
21030 | esac | |
21031 | shift | |
21032 | done | |
21033 | ||
21034 | ac_configure_extra_args= | |
21035 | ||
21036 | if $ac_cs_silent; then | |
21037 | exec 6>/dev/null | |
21038 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21039 | fi | |
21040 | ||
21041 | _ACEOF | |
21042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21043 | if \$ac_cs_recheck; then | |
53ba6704 | 21044 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
21045 | shift |
21046 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21047 | CONFIG_SHELL='$SHELL' | |
21048 | export CONFIG_SHELL | |
21049 | exec "\$@" | |
21050 | fi | |
21051 | ||
21052 | _ACEOF | |
21053 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21054 | exec 5>>config.log | |
21055 | { | |
21056 | echo | |
21057 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21058 | ## Running $as_me. ## | |
21059 | _ASBOX | |
21060 | $as_echo "$ac_log" | |
21061 | } >&5 | |
21062 | ||
21063 | _ACEOF | |
21064 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21065 | # | |
21066 | # INIT-COMMANDS | |
21067 | # | |
66170b30 | 21068 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
21069 | |
21070 | ||
21071 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21072 | # if CDPATH is set. | |
21073 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21074 | ||
21075 | sed_quote_subst='$sed_quote_subst' | |
21076 | double_quote_subst='$double_quote_subst' | |
21077 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
21078 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
21079 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
21080 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
21081 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
21082 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
21083 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
21084 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
21085 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 21086 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
21087 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
21088 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
21089 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
21090 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
21091 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
21092 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
21093 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
21094 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
21095 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
21096 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
21097 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
21098 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
21099 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
21100 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
21101 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
21102 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
21103 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
21104 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
21105 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
21106 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
21107 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21108 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21109 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
21110 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
21111 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
21112 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
21113 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
21114 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
21115 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
21116 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
21117 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
21118 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
21119 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
21120 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
21121 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
21122 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
21123 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21124 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21125 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21126 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
21127 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
21128 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
21129 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
21130 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
21131 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
21132 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
21133 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
21134 | 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"`' | |
21135 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21136 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
21137 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
21138 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
21139 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
21140 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
21141 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
21142 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
21143 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
21144 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
21145 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
21146 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
21147 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
21148 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
21149 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
21150 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
21151 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
21152 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
21153 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21154 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
21155 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
21156 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21157 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21158 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
21159 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
21160 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21161 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21162 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21163 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
21164 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21165 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
21166 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21167 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21168 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21169 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
21170 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
21171 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
21172 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
21173 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21174 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
21175 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
21176 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
21177 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
21178 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
21179 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
21180 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
21181 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
21182 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
21183 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21184 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
21185 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
21186 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
21187 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
21188 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
21189 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21190 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
21191 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
21192 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
21193 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
21194 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
21195 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21196 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21197 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
21198 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
21199 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
21200 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
21201 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
21202 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
21203 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
21204 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
21205 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
21206 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
21207 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
21208 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
21209 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
21210 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
21211 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
21212 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
21213 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
21214 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
21215 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21216 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21217 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21218 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
21219 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
21220 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21221 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
21222 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
21223 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
21224 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
21225 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
21226 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
21227 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21228 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21229 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
21230 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21231 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21232 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21233 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21234 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21235 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21236 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
21237 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21238 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21239 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21240 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
21241 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
21242 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
21243 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
21244 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
21245 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
21246 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
21247 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
21248 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
21249 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21250 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21251 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21252 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21253 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21254 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21255 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
21256 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
21257 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21258 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21259 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21260 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21261 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
21262 | |
21263 | LTCC='$LTCC' | |
21264 | LTCFLAGS='$LTCFLAGS' | |
21265 | compiler='$compiler_DEFAULT' | |
21266 | ||
ee134472 JF |
21267 | # A function that is used when there is no print builtin or printf. |
21268 | func_fallback_echo () | |
21269 | { | |
21270 | eval 'cat <<_LTECHO_EOF | |
21271 | \$1 | |
21272 | _LTECHO_EOF' | |
21273 | } | |
21274 | ||
9c60689e | 21275 | # Quote evaled strings. |
ee134472 JF |
21276 | for var in SHELL \ |
21277 | ECHO \ | |
53ba6704 | 21278 | PATH_SEPARATOR \ |
ee134472 | 21279 | SED \ |
9c60689e DWT |
21280 | GREP \ |
21281 | EGREP \ | |
21282 | FGREP \ | |
21283 | LD \ | |
21284 | NM \ | |
21285 | LN_S \ | |
21286 | lt_SP2NL \ | |
21287 | lt_NL2SP \ | |
21288 | reload_flag \ | |
21289 | OBJDUMP \ | |
21290 | deplibs_check_method \ | |
21291 | file_magic_cmd \ | |
ee134472 JF |
21292 | file_magic_glob \ |
21293 | want_nocaseglob \ | |
21294 | DLLTOOL \ | |
21295 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
21296 | AR \ |
21297 | AR_FLAGS \ | |
ee134472 | 21298 | archiver_list_spec \ |
9c60689e DWT |
21299 | STRIP \ |
21300 | RANLIB \ | |
21301 | CC \ | |
21302 | CFLAGS \ | |
21303 | compiler \ | |
21304 | lt_cv_sys_global_symbol_pipe \ | |
21305 | lt_cv_sys_global_symbol_to_cdecl \ | |
21306 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21307 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
ee134472 | 21308 | nm_file_list_spec \ |
9c60689e | 21309 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 21310 | lt_prog_compiler_pic \ |
ee134472 | 21311 | lt_prog_compiler_wl \ |
9c60689e DWT |
21312 | lt_prog_compiler_static \ |
21313 | lt_cv_prog_compiler_c_o \ | |
21314 | need_locks \ | |
ee134472 | 21315 | MANIFEST_TOOL \ |
9c60689e DWT |
21316 | DSYMUTIL \ |
21317 | NMEDIT \ | |
21318 | LIPO \ | |
21319 | OTOOL \ | |
21320 | OTOOL64 \ | |
21321 | shrext_cmds \ | |
21322 | export_dynamic_flag_spec \ | |
21323 | whole_archive_flag_spec \ | |
21324 | compiler_needs_object \ | |
21325 | with_gnu_ld \ | |
21326 | allow_undefined_flag \ | |
21327 | no_undefined_flag \ | |
21328 | hardcode_libdir_flag_spec \ | |
9c60689e | 21329 | hardcode_libdir_separator \ |
9c60689e DWT |
21330 | exclude_expsyms \ |
21331 | include_expsyms \ | |
21332 | file_list_spec \ | |
21333 | variables_saved_for_relink \ | |
21334 | libname_spec \ | |
21335 | library_names_spec \ | |
21336 | soname_spec \ | |
ee134472 | 21337 | install_override_mode \ |
9c60689e DWT |
21338 | finish_eval \ |
21339 | old_striplib \ | |
21340 | striplib \ | |
21341 | compiler_lib_search_dirs \ | |
21342 | predep_objects \ | |
21343 | postdep_objects \ | |
21344 | predeps \ | |
21345 | postdeps \ | |
21346 | compiler_lib_search_path \ | |
21347 | LD_CXX \ | |
ee134472 | 21348 | reload_flag_CXX \ |
9c60689e DWT |
21349 | compiler_CXX \ |
21350 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 21351 | lt_prog_compiler_pic_CXX \ |
ee134472 | 21352 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
21353 | lt_prog_compiler_static_CXX \ |
21354 | lt_cv_prog_compiler_c_o_CXX \ | |
21355 | export_dynamic_flag_spec_CXX \ | |
21356 | whole_archive_flag_spec_CXX \ | |
21357 | compiler_needs_object_CXX \ | |
21358 | with_gnu_ld_CXX \ | |
21359 | allow_undefined_flag_CXX \ | |
21360 | no_undefined_flag_CXX \ | |
21361 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 21362 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
21363 | exclude_expsyms_CXX \ |
21364 | include_expsyms_CXX \ | |
21365 | file_list_spec_CXX \ | |
21366 | compiler_lib_search_dirs_CXX \ | |
21367 | predep_objects_CXX \ | |
21368 | postdep_objects_CXX \ | |
21369 | predeps_CXX \ | |
21370 | postdeps_CXX \ | |
21371 | compiler_lib_search_path_CXX; do | |
ee134472 | 21372 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 21373 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21374 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21375 | ;; |
21376 | *) | |
21377 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21378 | ;; | |
21379 | esac | |
21380 | done | |
21381 | ||
21382 | # Double-quote double-evaled strings. | |
21383 | for var in reload_cmds \ | |
21384 | old_postinstall_cmds \ | |
21385 | old_postuninstall_cmds \ | |
21386 | old_archive_cmds \ | |
21387 | extract_expsyms_cmds \ | |
21388 | old_archive_from_new_cmds \ | |
21389 | old_archive_from_expsyms_cmds \ | |
21390 | archive_cmds \ | |
21391 | archive_expsym_cmds \ | |
21392 | module_cmds \ | |
21393 | module_expsym_cmds \ | |
21394 | export_symbols_cmds \ | |
21395 | prelink_cmds \ | |
ee134472 | 21396 | postlink_cmds \ |
9c60689e DWT |
21397 | postinstall_cmds \ |
21398 | postuninstall_cmds \ | |
21399 | finish_cmds \ | |
21400 | sys_lib_search_path_spec \ | |
21401 | sys_lib_dlsearch_path_spec \ | |
ee134472 | 21402 | reload_cmds_CXX \ |
9c60689e DWT |
21403 | old_archive_cmds_CXX \ |
21404 | old_archive_from_new_cmds_CXX \ | |
21405 | old_archive_from_expsyms_cmds_CXX \ | |
21406 | archive_cmds_CXX \ | |
21407 | archive_expsym_cmds_CXX \ | |
21408 | module_cmds_CXX \ | |
21409 | module_expsym_cmds_CXX \ | |
21410 | export_symbols_cmds_CXX \ | |
ee134472 JF |
21411 | prelink_cmds_CXX \ |
21412 | postlink_cmds_CXX; do | |
21413 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 21414 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21415 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21416 | ;; |
21417 | *) | |
21418 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21419 | ;; | |
21420 | esac | |
21421 | done | |
21422 | ||
9c60689e DWT |
21423 | ac_aux_dir='$ac_aux_dir' |
21424 | xsi_shell='$xsi_shell' | |
21425 | lt_shell_append='$lt_shell_append' | |
21426 | ||
21427 | # See if we are running on zsh, and set the options which allow our | |
21428 | # commands through without removal of \ escapes INIT. | |
21429 | if test -n "\${ZSH_VERSION+set}" ; then | |
21430 | setopt NO_GLOB_SUBST | |
21431 | fi | |
21432 | ||
21433 | ||
21434 | PACKAGE='$PACKAGE' | |
21435 | VERSION='$VERSION' | |
21436 | TIMESTAMP='$TIMESTAMP' | |
21437 | RM='$RM' | |
21438 | ofile='$ofile' | |
21439 | ||
21440 | ||
21441 | ||
21442 | ||
21443 | ||
21444 | ||
21445 | _ACEOF | |
21446 | ||
21447 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21448 | ||
21449 | # Handling of arguments. | |
21450 | for ac_config_target in $ac_config_targets | |
21451 | do | |
21452 | case $ac_config_target in | |
296ee9a6 | 21453 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 21454 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 21455 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 21456 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 21457 | |
ee134472 | 21458 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
21459 | esac |
21460 | done | |
21461 | ||
21462 | ||
21463 | # If the user did not use the arguments to specify the items to instantiate, | |
21464 | # then the envvar interface is used. Set only those that are not. | |
21465 | # We use the long form for the default assignment because of an extremely | |
21466 | # bizarre bug on SunOS 4.1.3. | |
21467 | if $ac_need_defaults; then | |
21468 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 21469 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
21470 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21471 | fi | |
21472 | ||
21473 | # Have a temporary directory for convenience. Make it in the build tree | |
21474 | # simply because there is no reason against having it here, and in addition, | |
21475 | # creating and moving files from /tmp can sometimes cause problems. | |
21476 | # Hook for its removal unless debugging. | |
21477 | # Note that there is a small window in which the directory will not be cleaned: | |
21478 | # after its creation but before its name has been assigned to `$tmp'. | |
21479 | $debug || | |
21480 | { | |
ee134472 | 21481 | tmp= ac_tmp= |
9c60689e | 21482 | trap 'exit_status=$? |
ee134472 JF |
21483 | : "${ac_tmp:=$tmp}" |
21484 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
21485 | ' 0 |
21486 | trap 'as_fn_exit 1' 1 2 13 15 | |
21487 | } | |
21488 | # Create a (secure) tmp directory for tmp files. | |
21489 | ||
21490 | { | |
21491 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 21492 | test -d "$tmp" |
9c60689e DWT |
21493 | } || |
21494 | { | |
21495 | tmp=./conf$$-$RANDOM | |
21496 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 21497 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 21498 | ac_tmp=$tmp |
9c60689e DWT |
21499 | |
21500 | # Set up the scripts for CONFIG_FILES section. | |
21501 | # No need to generate them if there are no CONFIG_FILES. | |
21502 | # This happens for instance with `./config.status config.h'. | |
21503 | if test -n "$CONFIG_FILES"; then | |
21504 | ||
21505 | ||
21506 | ac_cr=`echo X | tr X '\015'` | |
21507 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
21508 | # But we know of no other shell where ac_cr would be empty at this | |
21509 | # point, so we can use a bashism as a fallback. | |
21510 | if test "x$ac_cr" = x; then | |
21511 | eval ac_cr=\$\'\\r\' | |
21512 | fi | |
21513 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
21514 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 21515 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
21516 | else |
21517 | ac_cs_awk_cr=$ac_cr | |
21518 | fi | |
21519 | ||
ee134472 | 21520 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
21521 | _ACEOF |
21522 | ||
21523 | ||
21524 | { | |
21525 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
21526 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
21527 | echo "_ACEOF" | |
21528 | } >conf$$subs.sh || | |
12833ad8 JF |
21529 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
21530 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
21531 | ac_delim='%!_!# ' |
21532 | for ac_last_try in false false false false false :; do | |
21533 | . ./conf$$subs.sh || | |
12833ad8 | 21534 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21535 | |
21536 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
21537 | if test $ac_delim_n = $ac_delim_num; then | |
21538 | break | |
21539 | elif $ac_last_try; then | |
12833ad8 | 21540 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21541 | else |
21542 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21543 | fi | |
21544 | done | |
21545 | rm -f conf$$subs.sh | |
21546 | ||
21547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 21548 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
21549 | _ACEOF |
21550 | sed -n ' | |
21551 | h | |
21552 | s/^/S["/; s/!.*/"]=/ | |
21553 | p | |
21554 | g | |
21555 | s/^[^!]*!// | |
21556 | :repl | |
21557 | t repl | |
21558 | s/'"$ac_delim"'$// | |
21559 | t delim | |
21560 | :nl | |
21561 | h | |
21562 | s/\(.\{148\}\)..*/\1/ | |
21563 | t more1 | |
21564 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
21565 | p | |
21566 | n | |
21567 | b repl | |
21568 | :more1 | |
21569 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21570 | p | |
21571 | g | |
21572 | s/.\{148\}// | |
21573 | t nl | |
21574 | :delim | |
21575 | h | |
21576 | s/\(.\{148\}\)..*/\1/ | |
21577 | t more2 | |
21578 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
21579 | p | |
21580 | b | |
21581 | :more2 | |
21582 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21583 | p | |
21584 | g | |
21585 | s/.\{148\}// | |
21586 | t delim | |
21587 | ' <conf$$subs.awk | sed ' | |
21588 | /^[^""]/{ | |
21589 | N | |
21590 | s/\n// | |
21591 | } | |
21592 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
21593 | rm -f conf$$subs.awk | |
21594 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21595 | _ACAWK | |
ee134472 | 21596 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
21597 | for (key in S) S_is_set[key] = 1 |
21598 | FS = "\a" | |
21599 | ||
21600 | } | |
21601 | { | |
21602 | line = $ 0 | |
21603 | nfields = split(line, field, "@") | |
21604 | substed = 0 | |
21605 | len = length(field[1]) | |
21606 | for (i = 2; i < nfields; i++) { | |
21607 | key = field[i] | |
21608 | keylen = length(key) | |
21609 | if (S_is_set[key]) { | |
21610 | value = S[key] | |
21611 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
21612 | len += length(value) + length(field[++i]) | |
21613 | substed = 1 | |
21614 | } else | |
21615 | len += 1 + keylen | |
21616 | } | |
21617 | ||
21618 | print line | |
21619 | } | |
21620 | ||
21621 | _ACAWK | |
21622 | _ACEOF | |
21623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21624 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
21625 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
21626 | else | |
21627 | cat | |
ee134472 | 21628 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 21629 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
21630 | _ACEOF |
21631 | ||
12833ad8 JF |
21632 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
21633 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
21634 | # trailing colons and then remove the whole line if VPATH becomes empty |
21635 | # (actually we leave an empty line to preserve line numbers). | |
21636 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
21637 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
21638 | h | |
21639 | s/// | |
21640 | s/^/:/ | |
21641 | s/[ ]*$/:/ | |
21642 | s/:\$(srcdir):/:/g | |
21643 | s/:\${srcdir}:/:/g | |
21644 | s/:@srcdir@:/:/g | |
21645 | s/^:*// | |
9c60689e | 21646 | s/:*$// |
12833ad8 JF |
21647 | x |
21648 | s/\(=[ ]*\).*/\1/ | |
21649 | G | |
21650 | s/\n// | |
9c60689e DWT |
21651 | s/^[^=]*=[ ]*$// |
21652 | }' | |
21653 | fi | |
21654 | ||
21655 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21656 | fi # test -n "$CONFIG_FILES" | |
21657 | ||
296ee9a6 JF |
21658 | # Set up the scripts for CONFIG_HEADERS section. |
21659 | # No need to generate them if there are no CONFIG_HEADERS. | |
21660 | # This happens for instance with `./config.status Makefile'. | |
21661 | if test -n "$CONFIG_HEADERS"; then | |
21662 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
21663 | BEGIN { | |
21664 | _ACEOF | |
21665 | ||
21666 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
21667 | # here-document in config.status, that substitutes the proper values into | |
21668 | # config.h.in to produce config.h. | |
21669 | ||
21670 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
21671 | # handling of long lines. | |
21672 | ac_delim='%!_!# ' | |
21673 | for ac_last_try in false false :; do | |
21674 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
21675 | if test -z "$ac_tt"; then | |
21676 | break | |
21677 | elif $ac_last_try; then | |
21678 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
21679 | else | |
21680 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21681 | fi | |
21682 | done | |
21683 | ||
21684 | # For the awk script, D is an array of macro values keyed by name, | |
21685 | # likewise P contains macro parameters if any. Preserve backslash | |
21686 | # newline sequences. | |
21687 | ||
21688 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
21689 | sed -n ' | |
21690 | s/.\{148\}/&'"$ac_delim"'/g | |
21691 | t rset | |
21692 | :rset | |
21693 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
21694 | t def | |
21695 | d | |
21696 | :def | |
21697 | s/\\$// | |
21698 | t bsnl | |
21699 | s/["\\]/\\&/g | |
21700 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21701 | D["\1"]=" \3"/p | |
21702 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
21703 | d | |
21704 | :bsnl | |
21705 | s/["\\]/\\&/g | |
21706 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21707 | D["\1"]=" \3\\\\\\n"\\/p | |
21708 | t cont | |
21709 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
21710 | t cont | |
21711 | d | |
21712 | :cont | |
21713 | n | |
21714 | s/.\{148\}/&'"$ac_delim"'/g | |
21715 | t clear | |
21716 | :clear | |
21717 | s/\\$// | |
21718 | t bsnlc | |
21719 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21720 | d | |
21721 | :bsnlc | |
21722 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21723 | b cont | |
21724 | ' <confdefs.h | sed ' | |
21725 | s/'"$ac_delim"'/"\\\ | |
21726 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21727 | ||
21728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21729 | for (key in D) D_is_set[key] = 1 | |
21730 | FS = "\a" | |
21731 | } | |
21732 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21733 | line = \$ 0 | |
21734 | split(line, arg, " ") | |
21735 | if (arg[1] == "#") { | |
21736 | defundef = arg[2] | |
21737 | mac1 = arg[3] | |
21738 | } else { | |
21739 | defundef = substr(arg[1], 2) | |
21740 | mac1 = arg[2] | |
21741 | } | |
21742 | split(mac1, mac2, "(") #) | |
21743 | macro = mac2[1] | |
21744 | prefix = substr(line, 1, index(line, defundef) - 1) | |
21745 | if (D_is_set[macro]) { | |
21746 | # Preserve the white space surrounding the "#". | |
21747 | print prefix "define", macro P[macro] D[macro] | |
21748 | next | |
21749 | } else { | |
21750 | # Replace #undef with comments. This is necessary, for example, | |
21751 | # in the case of _POSIX_SOURCE, which is predefined and required | |
21752 | # on some systems where configure will not decide to define it. | |
21753 | if (defundef == "undef") { | |
21754 | print "/*", prefix defundef, macro, "*/" | |
21755 | next | |
21756 | } | |
21757 | } | |
21758 | } | |
21759 | { print } | |
21760 | _ACAWK | |
21761 | _ACEOF | |
21762 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21763 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
21764 | fi # test -n "$CONFIG_HEADERS" | |
21765 | ||
9c60689e | 21766 | |
296ee9a6 | 21767 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
21768 | shift |
21769 | for ac_tag | |
21770 | do | |
21771 | case $ac_tag in | |
21772 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
21773 | esac | |
21774 | case $ac_mode$ac_tag in | |
21775 | :[FHL]*:*);; | |
ee134472 | 21776 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
21777 | :[FH]-) ac_tag=-:-;; |
21778 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
21779 | esac | |
21780 | ac_save_IFS=$IFS | |
21781 | IFS=: | |
21782 | set x $ac_tag | |
21783 | IFS=$ac_save_IFS | |
21784 | shift | |
21785 | ac_file=$1 | |
21786 | shift | |
21787 | ||
21788 | case $ac_mode in | |
21789 | :L) ac_source=$1;; | |
21790 | :[FH]) | |
21791 | ac_file_inputs= | |
21792 | for ac_f | |
21793 | do | |
21794 | case $ac_f in | |
ee134472 | 21795 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
21796 | *) # Look for the file first in the build tree, then in the source tree |
21797 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
21798 | # because $ac_f cannot contain `:'. | |
21799 | test -f "$ac_f" || | |
21800 | case $ac_f in | |
21801 | [\\/$]*) false;; | |
21802 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21803 | esac || | |
ee134472 | 21804 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
21805 | esac |
21806 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
21807 | as_fn_append ac_file_inputs " '$ac_f'" | |
21808 | done | |
21809 | ||
21810 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21811 | # use $as_me), people would be surprised to read: | |
21812 | # /* config.h. Generated by config.status. */ | |
21813 | configure_input='Generated from '` | |
21814 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21815 | `' by configure.' | |
21816 | if test x"$ac_file" != x-; then | |
21817 | configure_input="$ac_file. $configure_input" | |
21818 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21819 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21820 | fi | |
21821 | # Neutralize special characters interpreted by sed in replacement strings. | |
21822 | case $configure_input in #( | |
21823 | *\&* | *\|* | *\\* ) | |
21824 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21825 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21826 | *) ac_sed_conf_input=$configure_input;; | |
21827 | esac | |
21828 | ||
21829 | case $ac_tag in | |
ee134472 JF |
21830 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
21831 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
21832 | esac |
21833 | ;; | |
21834 | esac | |
21835 | ||
21836 | ac_dir=`$as_dirname -- "$ac_file" || | |
21837 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21838 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21839 | X"$ac_file" : 'X\(//\)$' \| \ | |
21840 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21841 | $as_echo X"$ac_file" | | |
21842 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21843 | s//\1/ | |
21844 | q | |
21845 | } | |
21846 | /^X\(\/\/\)[^/].*/{ | |
21847 | s//\1/ | |
21848 | q | |
21849 | } | |
21850 | /^X\(\/\/\)$/{ | |
21851 | s//\1/ | |
21852 | q | |
21853 | } | |
21854 | /^X\(\/\).*/{ | |
21855 | s//\1/ | |
21856 | q | |
21857 | } | |
21858 | s/.*/./; q'` | |
21859 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21860 | ac_builddir=. | |
21861 | ||
21862 | case "$ac_dir" in | |
21863 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21864 | *) | |
21865 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21866 | # A ".." for each directory in $ac_dir_suffix. | |
21867 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21868 | case $ac_top_builddir_sub in | |
21869 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21870 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21871 | esac ;; | |
21872 | esac | |
21873 | ac_abs_top_builddir=$ac_pwd | |
21874 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21875 | # for backward compatibility: | |
21876 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 21877 | |
9c60689e DWT |
21878 | case $srcdir in |
21879 | .) # We are building in place. | |
21880 | ac_srcdir=. | |
21881 | ac_top_srcdir=$ac_top_builddir_sub | |
21882 | ac_abs_top_srcdir=$ac_pwd ;; | |
21883 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21884 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21885 | ac_top_srcdir=$srcdir | |
21886 | ac_abs_top_srcdir=$srcdir ;; | |
21887 | *) # Relative name. | |
21888 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21889 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21890 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21891 | esac | |
21892 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
21893 | |
21894 | ||
9c60689e DWT |
21895 | case $ac_mode in |
21896 | :F) | |
21897 | # | |
21898 | # CONFIG_FILE | |
21899 | # | |
35fa52c0 | 21900 | |
9c60689e DWT |
21901 | case $INSTALL in |
21902 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21903 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21904 | esac | |
66170b30 JF |
21905 | ac_MKDIR_P=$MKDIR_P |
21906 | case $MKDIR_P in | |
21907 | [\\/$]* | ?:[\\/]* ) ;; | |
21908 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
21909 | esac | |
9c60689e | 21910 | _ACEOF |
35fa52c0 | 21911 | |
9c60689e DWT |
21912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
21913 | # If the template does not know about datarootdir, expand it. | |
21914 | # FIXME: This hack should be removed a few years after 2.60. | |
21915 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
21916 | ac_sed_dataroot=' | |
21917 | /datarootdir/ { | |
21918 | p | |
21919 | q | |
21920 | } | |
21921 | /@datadir@/p | |
21922 | /@docdir@/p | |
21923 | /@infodir@/p | |
21924 | /@localedir@/p | |
21925 | /@mandir@/p' | |
21926 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21927 | *datarootdir*) ac_datarootdir_seen=yes;; | |
21928 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21930 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21931 | _ACEOF | |
21932 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21933 | ac_datarootdir_hack=' | |
21934 | s&@datadir@&$datadir&g | |
21935 | s&@docdir@&$docdir&g | |
21936 | s&@infodir@&$infodir&g | |
21937 | s&@localedir@&$localedir&g | |
21938 | s&@mandir@&$mandir&g | |
21939 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
21940 | esac | |
21941 | _ACEOF | |
35fa52c0 | 21942 | |
9c60689e DWT |
21943 | # Neutralize VPATH when `$srcdir' = `.'. |
21944 | # Shell code in configure.ac might set extrasub. | |
21945 | # FIXME: do we really want to maintain this feature? | |
21946 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21947 | ac_sed_extra="$ac_vpsub | |
21948 | $extrasub | |
21949 | _ACEOF | |
21950 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21951 | :t | |
21952 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21953 | s|@configure_input@|$ac_sed_conf_input|;t t | |
21954 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21955 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21956 | s&@srcdir@&$ac_srcdir&;t t | |
21957 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21958 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21959 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21960 | s&@builddir@&$ac_builddir&;t t | |
21961 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21962 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21963 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 21964 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
21965 | $ac_datarootdir_hack |
21966 | " | |
ee134472 JF |
21967 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
21968 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
21969 | |
21970 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
21971 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
21972 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
21973 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 21974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 21975 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 21976 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 21977 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 21978 | |
ee134472 | 21979 | rm -f "$ac_tmp/stdin" |
9c60689e | 21980 | case $ac_file in |
ee134472 JF |
21981 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
21982 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 21983 | esac \ |
12833ad8 | 21984 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 21985 | ;; |
296ee9a6 JF |
21986 | :H) |
21987 | # | |
21988 | # CONFIG_HEADER | |
21989 | # | |
21990 | if test x"$ac_file" != x-; then | |
21991 | { | |
21992 | $as_echo "/* $configure_input */" \ | |
21993 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
21994 | } >"$ac_tmp/config.h" \ | |
21995 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21996 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
21997 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
21998 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
21999 | else | |
22000 | rm -f "$ac_file" | |
22001 | mv "$ac_tmp/config.h" "$ac_file" \ | |
22002 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22003 | fi | |
22004 | else | |
22005 | $as_echo "/* $configure_input */" \ | |
22006 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
22007 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
22008 | fi | |
22009 | # Compute "$ac_file"'s index in $config_headers. | |
22010 | _am_arg="$ac_file" | |
22011 | _am_stamp_count=1 | |
22012 | for _am_header in $config_headers :; do | |
22013 | case $_am_header in | |
22014 | $_am_arg | $_am_arg:* ) | |
22015 | break ;; | |
22016 | * ) | |
22017 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22018 | esac | |
22019 | done | |
22020 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22021 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22022 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22023 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22024 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22025 | $as_echo X"$_am_arg" | | |
22026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22027 | s//\1/ | |
22028 | q | |
22029 | } | |
22030 | /^X\(\/\/\)[^/].*/{ | |
22031 | s//\1/ | |
22032 | q | |
22033 | } | |
22034 | /^X\(\/\/\)$/{ | |
22035 | s//\1/ | |
22036 | q | |
22037 | } | |
22038 | /^X\(\/\).*/{ | |
22039 | s//\1/ | |
22040 | q | |
22041 | } | |
22042 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22043 | ;; | |
35fa52c0 | 22044 | |
9c60689e DWT |
22045 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
22046 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22047 | ;; | |
22048 | esac | |
35fa52c0 | 22049 | |
35fa52c0 | 22050 | |
9c60689e | 22051 | case $ac_file$ac_mode in |
66170b30 JF |
22052 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22053 | # Older Autoconf quotes --file arguments for eval, but not when files | |
22054 | # are listed without --file. Let's play safe and only enable the eval | |
22055 | # if we detect the quoting. | |
22056 | case $CONFIG_FILES in | |
22057 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22058 | *) set x $CONFIG_FILES ;; | |
22059 | esac | |
22060 | shift | |
22061 | for mf | |
22062 | do | |
22063 | # Strip MF so we end up with the name of the file. | |
22064 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22065 | # Check whether this is an Automake generated Makefile or not. | |
22066 | # We used to match only the files named 'Makefile.in', but | |
22067 | # some people rename them; so instead we look at the file content. | |
22068 | # Grep'ing the first line is not enough: some people post-process | |
22069 | # each Makefile.in and add a new line on top of each file to say so. | |
22070 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22071 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22072 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22073 | dirpart=`$as_dirname -- "$mf" || | |
22074 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22075 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22076 | X"$mf" : 'X\(//\)$' \| \ | |
22077 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22078 | $as_echo X"$mf" | | |
22079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22080 | s//\1/ | |
22081 | q | |
22082 | } | |
22083 | /^X\(\/\/\)[^/].*/{ | |
22084 | s//\1/ | |
22085 | q | |
22086 | } | |
22087 | /^X\(\/\/\)$/{ | |
22088 | s//\1/ | |
22089 | q | |
22090 | } | |
22091 | /^X\(\/\).*/{ | |
22092 | s//\1/ | |
22093 | q | |
22094 | } | |
22095 | s/.*/./; q'` | |
22096 | else | |
22097 | continue | |
22098 | fi | |
22099 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22100 | # from the Makefile without running 'make'. | |
22101 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22102 | test -z "$DEPDIR" && continue | |
22103 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22104 | test -z "am__include" && continue | |
22105 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22106 | # Find all dependency output files, they are included files with | |
22107 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22108 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22109 | # expansion. | |
22110 | for file in `sed -n " | |
22111 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22112 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
22113 | # Make sure the directory exists. | |
22114 | test -f "$dirpart/$file" && continue | |
22115 | fdir=`$as_dirname -- "$file" || | |
22116 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22117 | X"$file" : 'X\(//\)[^/]' \| \ | |
22118 | X"$file" : 'X\(//\)$' \| \ | |
22119 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22120 | $as_echo X"$file" | | |
22121 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22122 | s//\1/ | |
22123 | q | |
22124 | } | |
22125 | /^X\(\/\/\)[^/].*/{ | |
22126 | s//\1/ | |
22127 | q | |
22128 | } | |
22129 | /^X\(\/\/\)$/{ | |
22130 | s//\1/ | |
22131 | q | |
22132 | } | |
22133 | /^X\(\/\).*/{ | |
22134 | s//\1/ | |
22135 | q | |
22136 | } | |
22137 | s/.*/./; q'` | |
22138 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
22139 | # echo "creating $dirpart/$file" | |
22140 | echo '# dummy' > "$dirpart/$file" | |
22141 | done | |
22142 | done | |
22143 | } | |
22144 | ;; | |
9c60689e DWT |
22145 | "libtool":C) |
22146 | ||
22147 | # See if we are running on zsh, and set the options which allow our | |
22148 | # commands through without removal of \ escapes. | |
22149 | if test -n "${ZSH_VERSION+set}" ; then | |
22150 | setopt NO_GLOB_SUBST | |
35fa52c0 | 22151 | fi |
35fa52c0 | 22152 | |
9c60689e DWT |
22153 | cfgfile="${ofile}T" |
22154 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22155 | $RM "$cfgfile" | |
35fa52c0 | 22156 | |
9c60689e DWT |
22157 | cat <<_LT_EOF >> "$cfgfile" |
22158 | #! $SHELL | |
35fa52c0 | 22159 | |
9c60689e DWT |
22160 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
22161 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
22162 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22163 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22164 | # | |
22165 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
53ba6704 JF |
22166 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
22167 | # Foundation, Inc. | |
9c60689e DWT |
22168 | # Written by Gordon Matzigkeit, 1996 |
22169 | # | |
22170 | # This file is part of GNU Libtool. | |
22171 | # | |
22172 | # GNU Libtool is free software; you can redistribute it and/or | |
22173 | # modify it under the terms of the GNU General Public License as | |
22174 | # published by the Free Software Foundation; either version 2 of | |
22175 | # the License, or (at your option) any later version. | |
22176 | # | |
22177 | # As a special exception to the GNU General Public License, | |
22178 | # if you distribute this file as part of a program or library that | |
22179 | # is built using GNU Libtool, you may include this file under the | |
22180 | # same distribution terms that you use for the rest of that program. | |
22181 | # | |
22182 | # GNU Libtool is distributed in the hope that it will be useful, | |
22183 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22184 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22185 | # GNU General Public License for more details. | |
22186 | # | |
22187 | # You should have received a copy of the GNU General Public License | |
22188 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
22189 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
22190 | # obtained by writing to the Free Software Foundation, Inc., | |
22191 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 22192 | |
35fa52c0 | 22193 | |
9c60689e DWT |
22194 | # The names of the tagged configurations supported by this script. |
22195 | available_tags="CXX " | |
35fa52c0 | 22196 | |
9c60689e | 22197 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 22198 | |
9c60689e DWT |
22199 | # Which release of libtool.m4 was used? |
22200 | macro_version=$macro_version | |
22201 | macro_revision=$macro_revision | |
35fa52c0 | 22202 | |
9c60689e DWT |
22203 | # Whether or not to build static libraries. |
22204 | build_old_libs=$enable_static | |
35fa52c0 | 22205 | |
549f29b5 DWT |
22206 | # Whether or not to build shared libraries. |
22207 | build_libtool_libs=$enable_shared | |
22208 | ||
9c60689e DWT |
22209 | # What type of objects to build. |
22210 | pic_mode=$pic_mode | |
35fa52c0 | 22211 | |
9c60689e DWT |
22212 | # Whether or not to optimize for fast installation. |
22213 | fast_install=$enable_fast_install | |
35fa52c0 | 22214 | |
ee134472 JF |
22215 | # Shell to use when invoking shell scripts. |
22216 | SHELL=$lt_SHELL | |
22217 | ||
22218 | # An echo program that protects backslashes. | |
22219 | ECHO=$lt_ECHO | |
22220 | ||
53ba6704 JF |
22221 | # The PATH separator for the build system. |
22222 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
22223 | ||
9c60689e DWT |
22224 | # The host system. |
22225 | host_alias=$host_alias | |
22226 | host=$host | |
22227 | host_os=$host_os | |
35fa52c0 | 22228 | |
9c60689e DWT |
22229 | # The build system. |
22230 | build_alias=$build_alias | |
22231 | build=$build | |
22232 | build_os=$build_os | |
22233 | ||
22234 | # A sed program that does not truncate output. | |
22235 | SED=$lt_SED | |
22236 | ||
22237 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22238 | Xsed="\$SED -e 1s/^X//" | |
22239 | ||
22240 | # A grep program that handles long lines. | |
22241 | GREP=$lt_GREP | |
22242 | ||
22243 | # An ERE matcher. | |
22244 | EGREP=$lt_EGREP | |
22245 | ||
22246 | # A literal string matcher. | |
22247 | FGREP=$lt_FGREP | |
22248 | ||
22249 | # A BSD- or MS-compatible name lister. | |
22250 | NM=$lt_NM | |
22251 | ||
22252 | # Whether we need soft or hard links. | |
22253 | LN_S=$lt_LN_S | |
22254 | ||
22255 | # What is the maximum length of a command? | |
22256 | max_cmd_len=$max_cmd_len | |
22257 | ||
22258 | # Object file suffix (normally "o"). | |
22259 | objext=$ac_objext | |
22260 | ||
22261 | # Executable file suffix (normally ""). | |
22262 | exeext=$exeext | |
22263 | ||
22264 | # whether the shell understands "unset". | |
22265 | lt_unset=$lt_unset | |
22266 | ||
22267 | # turn spaces into newlines. | |
22268 | SP2NL=$lt_lt_SP2NL | |
22269 | ||
22270 | # turn newlines into spaces. | |
22271 | NL2SP=$lt_lt_NL2SP | |
22272 | ||
ee134472 JF |
22273 | # convert \$build file names to \$host format. |
22274 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
22275 | ||
22276 | # convert \$build files to toolchain format. | |
22277 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
22278 | |
22279 | # An object symbol dumper. | |
22280 | OBJDUMP=$lt_OBJDUMP | |
22281 | ||
22282 | # Method to check whether dependent libraries are shared objects. | |
22283 | deplibs_check_method=$lt_deplibs_check_method | |
22284 | ||
ee134472 | 22285 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
22286 | file_magic_cmd=$lt_file_magic_cmd |
22287 | ||
ee134472 JF |
22288 | # How to find potential files when deplibs_check_method = "file_magic". |
22289 | file_magic_glob=$lt_file_magic_glob | |
22290 | ||
22291 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
22292 | want_nocaseglob=$lt_want_nocaseglob | |
22293 | ||
22294 | # DLL creation program. | |
22295 | DLLTOOL=$lt_DLLTOOL | |
22296 | ||
22297 | # Command to associate shared and link libraries. | |
22298 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
22299 | ||
9c60689e DWT |
22300 | # The archiver. |
22301 | AR=$lt_AR | |
ee134472 JF |
22302 | |
22303 | # Flags to create an archive. | |
9c60689e DWT |
22304 | AR_FLAGS=$lt_AR_FLAGS |
22305 | ||
ee134472 JF |
22306 | # How to feed a file listing to the archiver. |
22307 | archiver_list_spec=$lt_archiver_list_spec | |
22308 | ||
9c60689e DWT |
22309 | # A symbol stripping program. |
22310 | STRIP=$lt_STRIP | |
22311 | ||
22312 | # Commands used to install an old-style archive. | |
22313 | RANLIB=$lt_RANLIB | |
22314 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22315 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22316 | ||
ee134472 JF |
22317 | # Whether to use a lock for old archive extraction. |
22318 | lock_old_archive_extraction=$lock_old_archive_extraction | |
22319 | ||
9c60689e DWT |
22320 | # A C compiler. |
22321 | LTCC=$lt_CC | |
22322 | ||
22323 | # LTCC compiler flags. | |
22324 | LTCFLAGS=$lt_CFLAGS | |
22325 | ||
22326 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22327 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22328 | ||
22329 | # Transform the output of nm in a proper C declaration. | |
22330 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22331 | ||
22332 | # Transform the output of nm in a C name address pair. | |
22333 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22334 | ||
22335 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
22336 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
22337 | ||
ee134472 JF |
22338 | # Specify filename containing input files for \$NM. |
22339 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 22340 | |
ee134472 JF |
22341 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
22342 | lt_sysroot=$lt_sysroot | |
9c60689e | 22343 | |
ee134472 JF |
22344 | # The name of the directory that contains temporary libtool files. |
22345 | objdir=$objdir | |
9c60689e DWT |
22346 | |
22347 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22348 | MAGIC_CMD=$MAGIC_CMD | |
22349 | ||
22350 | # Must we lock files when doing compilation? | |
22351 | need_locks=$lt_need_locks | |
22352 | ||
ee134472 JF |
22353 | # Manifest tool. |
22354 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
22355 | ||
9c60689e DWT |
22356 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
22357 | DSYMUTIL=$lt_DSYMUTIL | |
22358 | ||
22359 | # Tool to change global to local symbols on Mac OS X. | |
22360 | NMEDIT=$lt_NMEDIT | |
22361 | ||
22362 | # Tool to manipulate fat objects and archives on Mac OS X. | |
22363 | LIPO=$lt_LIPO | |
22364 | ||
22365 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
22366 | OTOOL=$lt_OTOOL | |
22367 | ||
22368 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
22369 | OTOOL64=$lt_OTOOL64 | |
22370 | ||
22371 | # Old archive suffix (normally "a"). | |
22372 | libext=$libext | |
22373 | ||
22374 | # Shared library suffix (normally ".so"). | |
22375 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 22376 | |
9c60689e DWT |
22377 | # The commands to extract the exported symbol list from a shared archive. |
22378 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 22379 | |
9c60689e DWT |
22380 | # Variables whose values should be saved in libtool wrapper scripts and |
22381 | # restored at link time. | |
22382 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 22383 | |
9c60689e DWT |
22384 | # Do we need the "lib" prefix for modules? |
22385 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 22386 | |
9c60689e DWT |
22387 | # Do we need a version for libraries? |
22388 | need_version=$need_version | |
35fa52c0 | 22389 | |
9c60689e DWT |
22390 | # Library versioning type. |
22391 | version_type=$version_type | |
35fa52c0 | 22392 | |
9c60689e DWT |
22393 | # Shared library runtime path variable. |
22394 | runpath_var=$runpath_var | |
35fa52c0 | 22395 | |
9c60689e DWT |
22396 | # Shared library path variable. |
22397 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 22398 | |
9c60689e DWT |
22399 | # Is shlibpath searched before the hard-coded library search path? |
22400 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 22401 | |
9c60689e DWT |
22402 | # Format of library name prefix. |
22403 | libname_spec=$lt_libname_spec | |
35fa52c0 | 22404 | |
9c60689e DWT |
22405 | # List of archive names. First name is the real one, the rest are links. |
22406 | # The last name is the one that the linker finds with -lNAME | |
22407 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 22408 | |
9c60689e DWT |
22409 | # The coded name of the library, if different from the real name. |
22410 | soname_spec=$lt_soname_spec | |
dbadc56a | 22411 | |
ee134472 JF |
22412 | # Permission mode override for installation of shared libraries. |
22413 | install_override_mode=$lt_install_override_mode | |
22414 | ||
9c60689e DWT |
22415 | # Command to use after installation of a shared archive. |
22416 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 22417 | |
9c60689e DWT |
22418 | # Command to use after uninstallation of a shared archive. |
22419 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 22420 | |
9c60689e DWT |
22421 | # Commands used to finish a libtool library installation in a directory. |
22422 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 22423 | |
9c60689e DWT |
22424 | # As "finish_cmds", except a single script fragment to be evaled but |
22425 | # not shown. | |
22426 | finish_eval=$lt_finish_eval | |
35fa52c0 | 22427 | |
9c60689e DWT |
22428 | # Whether we should hardcode library paths into libraries. |
22429 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 22430 | |
9c60689e DWT |
22431 | # Compile-time system search path for libraries. |
22432 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 22433 | |
9c60689e DWT |
22434 | # Run-time system search path for libraries. |
22435 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 22436 | |
9c60689e DWT |
22437 | # Whether dlopen is supported. |
22438 | dlopen_support=$enable_dlopen | |
dbadc56a | 22439 | |
9c60689e DWT |
22440 | # Whether dlopen of programs is supported. |
22441 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 22442 | |
9c60689e DWT |
22443 | # Whether dlopen of statically linked programs is supported. |
22444 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 22445 | |
9c60689e DWT |
22446 | # Commands to strip libraries. |
22447 | old_striplib=$lt_old_striplib | |
22448 | striplib=$lt_striplib | |
35fa52c0 | 22449 | |
35fa52c0 | 22450 | |
9c60689e DWT |
22451 | # The linker used to build libraries. |
22452 | LD=$lt_LD | |
dbadc56a | 22453 | |
ee134472 JF |
22454 | # How to create reloadable object files. |
22455 | reload_flag=$lt_reload_flag | |
22456 | reload_cmds=$lt_reload_cmds | |
22457 | ||
9c60689e DWT |
22458 | # Commands used to build an old-style archive. |
22459 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 22460 | |
9c60689e DWT |
22461 | # A language specific compiler. |
22462 | CC=$lt_compiler | |
35fa52c0 | 22463 | |
9c60689e DWT |
22464 | # Is the compiler the GNU compiler? |
22465 | with_gcc=$GCC | |
dbadc56a | 22466 | |
9c60689e DWT |
22467 | # Compiler flag to turn off builtin functions. |
22468 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 22469 | |
9c60689e DWT |
22470 | # Additional compiler flags for building library objects. |
22471 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 22472 | |
ee134472 JF |
22473 | # How to pass a linker flag through the compiler. |
22474 | wl=$lt_lt_prog_compiler_wl | |
22475 | ||
9c60689e DWT |
22476 | # Compiler flag to prevent dynamic linking. |
22477 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 22478 | |
9c60689e DWT |
22479 | # Does compiler simultaneously support -c and -o options? |
22480 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 22481 | |
9c60689e DWT |
22482 | # Whether or not to add -lc for building shared libraries. |
22483 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 22484 | |
9c60689e DWT |
22485 | # Whether or not to disallow shared libs when runtime libs are static. |
22486 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 22487 | |
9c60689e DWT |
22488 | # Compiler flag to allow reflexive dlopens. |
22489 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 22490 | |
9c60689e DWT |
22491 | # Compiler flag to generate shared objects directly from archives. |
22492 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 22493 | |
9c60689e DWT |
22494 | # Whether the compiler copes with passing no objects directly. |
22495 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 22496 | |
9c60689e DWT |
22497 | # Create an old-style archive from a shared archive. |
22498 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 22499 | |
9c60689e DWT |
22500 | # Create a temporary old-style archive to link instead of a shared archive. |
22501 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 22502 | |
9c60689e DWT |
22503 | # Commands used to build a shared archive. |
22504 | archive_cmds=$lt_archive_cmds | |
22505 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 22506 | |
9c60689e DWT |
22507 | # Commands used to build a loadable module if different from building |
22508 | # a shared archive. | |
22509 | module_cmds=$lt_module_cmds | |
22510 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 22511 | |
9c60689e DWT |
22512 | # Whether we are building with GNU ld or not. |
22513 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 22514 | |
9c60689e DWT |
22515 | # Flag that allows shared libraries with undefined symbols to be built. |
22516 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 22517 | |
9c60689e DWT |
22518 | # Flag that enforces no undefined symbols. |
22519 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 22520 | |
9c60689e DWT |
22521 | # Flag to hardcode \$libdir into a binary during linking. |
22522 | # This must work even if \$libdir does not exist | |
22523 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 22524 | |
9c60689e DWT |
22525 | # Whether we need a single "-rpath" flag with a separated argument. |
22526 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 22527 | |
9c60689e DWT |
22528 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22529 | # DIR into the resulting binary. | |
22530 | hardcode_direct=$hardcode_direct | |
6b66678a | 22531 | |
9c60689e DWT |
22532 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22533 | # DIR into the resulting binary and the resulting library dependency is | |
22534 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22535 | # library is relocated. | |
22536 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 22537 | |
9c60689e DWT |
22538 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22539 | # into the resulting binary. | |
22540 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 22541 | |
9c60689e DWT |
22542 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22543 | # into the resulting binary. | |
22544 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 22545 | |
9c60689e DWT |
22546 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22547 | # into the library and all subsequent libraries and executables linked | |
22548 | # against it. | |
22549 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 22550 | |
9c60689e DWT |
22551 | # Set to yes if linker adds runtime paths of dependent libraries |
22552 | # to runtime path list. | |
22553 | inherit_rpath=$inherit_rpath | |
6b66678a | 22554 | |
9c60689e DWT |
22555 | # Whether libtool must link a program against all its dependency libraries. |
22556 | link_all_deplibs=$link_all_deplibs | |
22557 | ||
9c60689e DWT |
22558 | # Set to "yes" if exported symbols are required. |
22559 | always_export_symbols=$always_export_symbols | |
6b66678a | 22560 | |
9c60689e DWT |
22561 | # The commands to list exported symbols. |
22562 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 22563 | |
9c60689e DWT |
22564 | # Symbols that should not be listed in the preloaded symbols. |
22565 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 22566 | |
9c60689e DWT |
22567 | # Symbols that must always be exported. |
22568 | include_expsyms=$lt_include_expsyms | |
6b66678a | 22569 | |
9c60689e DWT |
22570 | # Commands necessary for linking programs (against libraries) with templates. |
22571 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 22572 | |
ee134472 JF |
22573 | # Commands necessary for finishing linking programs. |
22574 | postlink_cmds=$lt_postlink_cmds | |
22575 | ||
9c60689e DWT |
22576 | # Specify filename containing input files. |
22577 | file_list_spec=$lt_file_list_spec | |
6b66678a | 22578 | |
9c60689e DWT |
22579 | # How to hardcode a shared library path into an executable. |
22580 | hardcode_action=$hardcode_action | |
22581 | ||
22582 | # The directories searched by this compiler when creating a shared library. | |
22583 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
22584 | ||
22585 | # Dependencies to place before and after the objects being linked to | |
22586 | # create a shared library. | |
22587 | predep_objects=$lt_predep_objects | |
22588 | postdep_objects=$lt_postdep_objects | |
22589 | predeps=$lt_predeps | |
22590 | postdeps=$lt_postdeps | |
22591 | ||
22592 | # The library search path used internally by the compiler when linking | |
22593 | # a shared library. | |
22594 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
22595 | ||
22596 | # ### END LIBTOOL CONFIG | |
22597 | ||
22598 | _LT_EOF | |
22599 | ||
22600 | case $host_os in | |
22601 | aix3*) | |
22602 | cat <<\_LT_EOF >> "$cfgfile" | |
22603 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22604 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22605 | # vanish in a puff of smoke. | |
22606 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22607 | COLLECT_NAMES= | |
22608 | export COLLECT_NAMES | |
6b66678a | 22609 | fi |
9c60689e DWT |
22610 | _LT_EOF |
22611 | ;; | |
22612 | esac | |
6b66678a DWT |
22613 | |
22614 | ||
9c60689e | 22615 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 22616 | |
9c60689e DWT |
22617 | |
22618 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22619 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22620 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22621 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
22622 | sed '$q' "$ltmain" >> "$cfgfile" \ |
22623 | || (rm -f "$cfgfile"; exit 1) | |
22624 | ||
22625 | if test x"$xsi_shell" = xyes; then | |
22626 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
22627 | func_dirname ()\ | |
22628 | {\ | |
22629 | \ case ${1} in\ | |
22630 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22631 | \ * ) func_dirname_result="${3}" ;;\ | |
22632 | \ esac\ | |
22633 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22634 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22635 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22636 | test 0 -eq $? || _lt_function_replace_fail=: | |
22637 | ||
22638 | ||
22639 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
22640 | func_basename ()\ | |
22641 | {\ | |
22642 | \ func_basename_result="${1##*/}"\ | |
22643 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22644 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22645 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22646 | test 0 -eq $? || _lt_function_replace_fail=: | |
22647 | ||
22648 | ||
22649 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
22650 | func_dirname_and_basename ()\ | |
22651 | {\ | |
22652 | \ case ${1} in\ | |
22653 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22654 | \ * ) func_dirname_result="${3}" ;;\ | |
22655 | \ esac\ | |
22656 | \ func_basename_result="${1##*/}"\ | |
22657 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22658 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22659 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22660 | test 0 -eq $? || _lt_function_replace_fail=: | |
22661 | ||
22662 | ||
22663 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
22664 | func_stripname ()\ | |
22665 | {\ | |
22666 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
22667 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
22668 | \ func_stripname_result=${3}\ | |
22669 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
22670 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
22671 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22672 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22673 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22674 | test 0 -eq $? || _lt_function_replace_fail=: | |
22675 | ||
22676 | ||
22677 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
22678 | func_split_long_opt ()\ | |
22679 | {\ | |
22680 | \ func_split_long_opt_name=${1%%=*}\ | |
22681 | \ func_split_long_opt_arg=${1#*=}\ | |
22682 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22683 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22684 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22685 | test 0 -eq $? || _lt_function_replace_fail=: | |
22686 | ||
22687 | ||
22688 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
22689 | func_split_short_opt ()\ | |
22690 | {\ | |
22691 | \ func_split_short_opt_arg=${1#??}\ | |
22692 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
22693 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22694 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22695 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22696 | test 0 -eq $? || _lt_function_replace_fail=: | |
22697 | ||
22698 | ||
22699 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
22700 | func_lo2o ()\ | |
22701 | {\ | |
22702 | \ case ${1} in\ | |
22703 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
22704 | \ *) func_lo2o_result=${1} ;;\ | |
22705 | \ esac\ | |
22706 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
22707 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22708 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22709 | test 0 -eq $? || _lt_function_replace_fail=: | |
22710 | ||
22711 | ||
22712 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
22713 | func_xform ()\ | |
22714 | {\ | |
22715 | func_xform_result=${1%.*}.lo\ | |
22716 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
22717 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22718 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22719 | test 0 -eq $? || _lt_function_replace_fail=: | |
22720 | ||
22721 | ||
22722 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
22723 | func_arith ()\ | |
22724 | {\ | |
22725 | func_arith_result=$(( $* ))\ | |
22726 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
22727 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22728 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22729 | test 0 -eq $? || _lt_function_replace_fail=: | |
22730 | ||
22731 | ||
22732 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
22733 | func_len ()\ | |
22734 | {\ | |
22735 | func_len_result=${#1}\ | |
22736 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
22737 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22738 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22739 | test 0 -eq $? || _lt_function_replace_fail=: | |
22740 | ||
22741 | fi | |
22742 | ||
22743 | if test x"$lt_shell_append" = xyes; then | |
22744 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
22745 | func_append ()\ | |
22746 | {\ | |
22747 | eval "${1}+=\\${2}"\ | |
22748 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
22749 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22750 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22751 | test 0 -eq $? || _lt_function_replace_fail=: | |
22752 | ||
22753 | ||
22754 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
22755 | func_append_quoted ()\ | |
22756 | {\ | |
22757 | \ func_quote_for_eval "${2}"\ | |
22758 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
22759 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
22760 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22761 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22762 | test 0 -eq $? || _lt_function_replace_fail=: | |
22763 | ||
22764 | ||
22765 | # Save a `func_append' function call where possible by direct use of '+=' | |
22766 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
22767 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22768 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22769 | test 0 -eq $? || _lt_function_replace_fail=: | |
22770 | else | |
22771 | # Save a `func_append' function call even when '+=' is not available | |
22772 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
22773 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22774 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22775 | test 0 -eq $? || _lt_function_replace_fail=: | |
22776 | fi | |
22777 | ||
22778 | if test x"$_lt_function_replace_fail" = x":"; then | |
22779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
22780 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
22781 | fi | |
22782 | ||
22783 | ||
22784 | mv -f "$cfgfile" "$ofile" || | |
9c60689e DWT |
22785 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
22786 | chmod +x "$ofile" | |
22787 | ||
22788 | ||
22789 | cat <<_LT_EOF >> "$ofile" | |
22790 | ||
22791 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
22792 | ||
22793 | # The linker used to build libraries. | |
22794 | LD=$lt_LD_CXX | |
22795 | ||
ee134472 JF |
22796 | # How to create reloadable object files. |
22797 | reload_flag=$lt_reload_flag_CXX | |
22798 | reload_cmds=$lt_reload_cmds_CXX | |
22799 | ||
9c60689e DWT |
22800 | # Commands used to build an old-style archive. |
22801 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
22802 | ||
22803 | # A language specific compiler. | |
22804 | CC=$lt_compiler_CXX | |
22805 | ||
22806 | # Is the compiler the GNU compiler? | |
22807 | with_gcc=$GCC_CXX | |
22808 | ||
22809 | # Compiler flag to turn off builtin functions. | |
22810 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 22811 | |
9c60689e DWT |
22812 | # Additional compiler flags for building library objects. |
22813 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 22814 | |
ee134472 JF |
22815 | # How to pass a linker flag through the compiler. |
22816 | wl=$lt_lt_prog_compiler_wl_CXX | |
22817 | ||
9c60689e DWT |
22818 | # Compiler flag to prevent dynamic linking. |
22819 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 22820 | |
9c60689e DWT |
22821 | # Does compiler simultaneously support -c and -o options? |
22822 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 22823 | |
9c60689e DWT |
22824 | # Whether or not to add -lc for building shared libraries. |
22825 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 22826 | |
9c60689e DWT |
22827 | # Whether or not to disallow shared libs when runtime libs are static. |
22828 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 22829 | |
9c60689e DWT |
22830 | # Compiler flag to allow reflexive dlopens. |
22831 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 22832 | |
9c60689e DWT |
22833 | # Compiler flag to generate shared objects directly from archives. |
22834 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 22835 | |
9c60689e DWT |
22836 | # Whether the compiler copes with passing no objects directly. |
22837 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 22838 | |
9c60689e DWT |
22839 | # Create an old-style archive from a shared archive. |
22840 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 22841 | |
9c60689e DWT |
22842 | # Create a temporary old-style archive to link instead of a shared archive. |
22843 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 22844 | |
9c60689e DWT |
22845 | # Commands used to build a shared archive. |
22846 | archive_cmds=$lt_archive_cmds_CXX | |
22847 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 22848 | |
9c60689e DWT |
22849 | # Commands used to build a loadable module if different from building |
22850 | # a shared archive. | |
22851 | module_cmds=$lt_module_cmds_CXX | |
22852 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 22853 | |
9c60689e DWT |
22854 | # Whether we are building with GNU ld or not. |
22855 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 22856 | |
9c60689e DWT |
22857 | # Flag that allows shared libraries with undefined symbols to be built. |
22858 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 22859 | |
9c60689e DWT |
22860 | # Flag that enforces no undefined symbols. |
22861 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 22862 | |
9c60689e DWT |
22863 | # Flag to hardcode \$libdir into a binary during linking. |
22864 | # This must work even if \$libdir does not exist | |
22865 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 22866 | |
9c60689e DWT |
22867 | # Whether we need a single "-rpath" flag with a separated argument. |
22868 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 22869 | |
9c60689e DWT |
22870 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22871 | # DIR into the resulting binary. | |
22872 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 22873 | |
9c60689e DWT |
22874 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22875 | # DIR into the resulting binary and the resulting library dependency is | |
22876 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22877 | # library is relocated. | |
22878 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 22879 | |
9c60689e DWT |
22880 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22881 | # into the resulting binary. | |
22882 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 22883 | |
9c60689e DWT |
22884 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22885 | # into the resulting binary. | |
22886 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 22887 | |
9c60689e DWT |
22888 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22889 | # into the library and all subsequent libraries and executables linked | |
22890 | # against it. | |
22891 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 22892 | |
9c60689e DWT |
22893 | # Set to yes if linker adds runtime paths of dependent libraries |
22894 | # to runtime path list. | |
22895 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 22896 | |
9c60689e DWT |
22897 | # Whether libtool must link a program against all its dependency libraries. |
22898 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 22899 | |
9c60689e DWT |
22900 | # Set to "yes" if exported symbols are required. |
22901 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 22902 | |
9c60689e DWT |
22903 | # The commands to list exported symbols. |
22904 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 22905 | |
9c60689e DWT |
22906 | # Symbols that should not be listed in the preloaded symbols. |
22907 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 22908 | |
9c60689e DWT |
22909 | # Symbols that must always be exported. |
22910 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 22911 | |
9c60689e DWT |
22912 | # Commands necessary for linking programs (against libraries) with templates. |
22913 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 22914 | |
ee134472 JF |
22915 | # Commands necessary for finishing linking programs. |
22916 | postlink_cmds=$lt_postlink_cmds_CXX | |
22917 | ||
9c60689e DWT |
22918 | # Specify filename containing input files. |
22919 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 22920 | |
9c60689e DWT |
22921 | # How to hardcode a shared library path into an executable. |
22922 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 22923 | |
9c60689e DWT |
22924 | # The directories searched by this compiler when creating a shared library. |
22925 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 22926 | |
9c60689e DWT |
22927 | # Dependencies to place before and after the objects being linked to |
22928 | # create a shared library. | |
22929 | predep_objects=$lt_predep_objects_CXX | |
22930 | postdep_objects=$lt_postdep_objects_CXX | |
22931 | predeps=$lt_predeps_CXX | |
22932 | postdeps=$lt_postdeps_CXX | |
309b0535 | 22933 | |
9c60689e DWT |
22934 | # The library search path used internally by the compiler when linking |
22935 | # a shared library. | |
22936 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
22937 | ||
22938 | # ### END LIBTOOL TAG CONFIG: CXX | |
22939 | _LT_EOF | |
22940 | ||
22941 | ;; | |
22942 | ||
22943 | esac | |
22944 | done # for ac_tag | |
22945 | ||
22946 | ||
22947 | as_fn_exit 0 | |
22948 | _ACEOF | |
22949 | ac_clean_files=$ac_clean_files_save | |
22950 | ||
22951 | test $ac_write_fail = 0 || | |
12833ad8 | 22952 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
22953 | |
22954 | ||
22955 | # configure is writing to config.log, and then calls config.status. | |
22956 | # config.status does its own redirection, appending to config.log. | |
22957 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22958 | # by configure, so config.status won't be able to write to it; its | |
22959 | # output is simply discarded. So we exec the FD to /dev/null, | |
22960 | # effectively closing config.log, so it can be properly (re)opened and | |
22961 | # appended to by config.status. When coming back to configure, we | |
22962 | # need to make the FD available again. | |
22963 | if test "$no_create" != yes; then | |
22964 | ac_cs_success=: | |
22965 | ac_config_status_args= | |
22966 | test "$silent" = yes && | |
22967 | ac_config_status_args="$ac_config_status_args --quiet" | |
22968 | exec 5>/dev/null | |
22969 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22970 | exec 5>>config.log | |
22971 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22972 | # would make configure fail if this is the last instruction. | |
12833ad8 | 22973 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 22974 | fi |
9c60689e DWT |
22975 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22977 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22978 | fi | |
22979 |